/* ============================================
   Mirror · 极简终端风
   继承 aibtapp.com 的调性：
   - mono font · 方括号元信息
   - 黑白为主 + 朱红强调
   - 大量留白
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;600;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg: #fafaf7;
  --bg-2: #f0ede4;
  --ink: #111111;
  --ink-soft: #555;
  --ink-faint: #999;
  --rule: #111;
  --accent: #d63c2a;
  --accent-soft: #fef1ed;
  --hl: #ffe86b;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ============ page scaffold ============ */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 120px;
  min-height: 100vh;
  position: relative;
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 48px;
}
.topbar .brand {
  color: var(--ink); font-weight: 600;
  letter-spacing: 1px;
}
.topbar .brand .dot {
  display: inline-block; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; margin-right: 8px; vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.topbar .meta a { text-decoration: none; margin-left: 14px; }
.topbar .meta a:hover { color: var(--accent); }

/* meta brackets */
.bracket {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.5px;
}
.bracket::before { content: "[ "; }
.bracket::after { content: " ]"; }

/* ============ landing ============ */
.hero {
  padding: 32px 0 12px;
}
.hero .tag {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 54px; line-height: 1.15; font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, var(--hl) 62%);
  padding: 0 2px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: 17px; color: var(--ink-soft); max-width: 540px;
  line-height: 1.7;
}
.hero .stats {
  display: flex; gap: 32px; margin-top: 32px;
  font-family: var(--mono); font-size: 13px;
}
.hero .stats .n { color: var(--accent); font-weight: 600; }
.hero .stats .l { color: var(--ink-soft); }

/* section */
.section { margin-top: 64px; }
.section-label {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  letter-spacing: 2px; text-transform: uppercase;
  padding-bottom: 8px; margin-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  display: flex; justify-content: space-between;
}

/* universe picker */
.universe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.universe-chip {
  border: 1px solid var(--ink); padding: 14px 16px; text-align: left;
  font-family: var(--mono); font-size: 13px; background: transparent;
  cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; gap: 4px;
}
.universe-chip .icon { font-size: 20px; }
.universe-chip .name { font-weight: 600; color: var(--ink); }
.universe-chip .count { font-size: 11px; color: var(--ink-faint); }
.universe-chip:hover { background: var(--ink); color: var(--bg); }
.universe-chip:hover .name, .universe-chip:hover .count { color: var(--bg); }
.universe-chip.selected {
  background: var(--ink); color: var(--bg);
}
.universe-chip.selected .name, .universe-chip.selected .count { color: var(--bg); }

/* how it works */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step {
  border-left: 2px solid var(--ink); padding: 4px 0 4px 16px;
}
.how-step .n {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 6px;
}
.how-step .t {
  font-weight: 600; margin-bottom: 4px; font-size: 15px;
}
.how-step .d { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ============ CTA ============ */
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 14px 28px; border: 1px solid var(--ink); background: transparent;
  cursor: pointer; transition: all .15s; letter-spacing: 0.5px;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { border-color: var(--ink-faint); color: var(--ink-soft); }
.btn .arrow { font-weight: 300; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ input page ============ */
.prompt-wrap {
  position: relative;
}
.prompt-box {
  background: var(--bg-2); border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  padding: 20px 22px; white-space: pre-wrap; position: relative;
  color: var(--ink); max-height: 240px; overflow: auto;
}
/* Copy button lives OUTSIDE the scroll container so internal scroll can't move it */
.prompt-wrap > .copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: 11px; padding: 6px 12px;
  background: var(--ink); color: var(--bg); border: none; letter-spacing: 0.5px;
  cursor: pointer; box-shadow: 0 0 0 3px var(--bg-2);
}
.prompt-wrap > .copy-btn:hover { background: var(--accent); }
.prompt-wrap > .copy-btn.copied { background: #2e7d32; }

textarea.paste {
  width: 100%; min-height: 180px;
  border: 1px solid var(--ink); background: var(--bg);
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  padding: 16px; resize: vertical; color: var(--ink);
}
textarea.paste:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea.paste::placeholder { color: var(--ink-faint); }

.char-count {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  text-align: right; margin-top: 4px;
}

.divider {
  text-align: center; font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 4px; margin: 28px 0;
  position: relative;
}
.divider::before, .divider::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--ink-faint);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.quick-quiz-teaser {
  border: 1px dashed var(--ink-faint); padding: 18px 20px; font-size: 13px;
  color: var(--ink-soft); text-align: center; font-family: var(--mono);
}
.quick-quiz-teaser a { color: var(--accent); }

.privacy-note {
  margin-top: 18px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.5px;
}
.privacy-note::before { content: "🔒  "; color: var(--accent); }

/* ============ loading ============ */
.loader {
  padding: 80px 0; text-align: center;
}
.loader .ping {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 18px;
}
.loader .word {
  font-family: var(--serif); font-size: 34px; font-weight: 900;
  min-height: 46px;
}
.loader .steps {
  margin-top: 48px; font-family: var(--mono); font-size: 13px;
  text-align: left; max-width: 360px; margin-left: auto; margin-right: auto;
}
.loader .steps div { padding: 4px 0; color: var(--ink-faint); transition: color .4s; }
.loader .steps div.active { color: var(--ink); }
.loader .steps div.active::before { content: "▸ "; color: var(--accent); }
.loader .steps div.done { color: var(--ink-soft); }
.loader .steps div.done::before { content: "✓ "; color: #2e7d32; }
.loader .steps div:not(.active):not(.done)::before { content: "·  "; color: var(--ink-faint); }

/* ============ result page ============ */
.result-stack { display: flex; flex-direction: column; gap: 32px; }

.verdict-card {
  text-align: center; padding: 40px 20px 48px; position: relative;
  background: var(--bg); border: 1px solid var(--ink);
  overflow: hidden;
}
.verdict-card .rarity {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 1px;
}
.verdict-card .uni {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 1px;
}
.verdict-card .avatar-wrap {
  width: 160px; height: 160px; margin: 8px auto 20px;
  border-radius: 50%; position: relative;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--ink);
}
.verdict-card .avatar-wrap .av-inner {
  width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.verdict-card .name-zh {
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  letter-spacing: 2px; margin-bottom: 6px;
}
.verdict-card .name {
  font-family: var(--serif); font-size: 56px; font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1;
}
.verdict-card .tagline {
  font-family: var(--serif); font-size: 19px; color: var(--ink-soft);
  margin-top: 16px; font-style: italic;
  max-width: 420px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.verdict-card .source {
  margin-top: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.3px; line-height: 1.5;
  max-width: 85%; margin-left: auto; margin-right: auto;
  padding: 0 8px;
  text-wrap: balance;
}

/* why-section */
.why {
  border: 1px solid var(--ink); padding: 24px 28px;
}
.why h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px;
}
.why ul { list-style: none; }
.why li {
  padding: 14px 0; border-bottom: 1px dashed var(--ink-faint);
  display: flex; gap: 16px; align-items: flex-start;
}
.why li:last-child { border-bottom: none; }
.why li .bullet {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  font-weight: 600; width: 30px; flex-shrink: 0; padding-top: 3px;
}
.why li .txt { font-size: 15px; line-height: 1.7; }

/* radar (simple CSS-drawn placeholder + SVG) */
.traits-box {
  border: 1px solid var(--ink); padding: 24px 28px;
}
.traits-box h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px;
  grid-column: 1 / -1;
}
.traits-bars { display: flex; flex-direction: column; gap: 10px; }
.trait-row {
  display: grid; grid-template-columns: 80px 1fr 28px; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px;
}
.trait-row .label { color: var(--ink-soft); letter-spacing: 0.5px; }
.trait-row .bar { height: 8px; background: var(--bg-2); position: relative; display: block; }
.trait-row .bar .fill {
  display: block;
  height: 100%; background: var(--ink); transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.trait-row .val { color: var(--accent); text-align: right; font-weight: 600; }

/* top-3 alt */
.alt-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alt-card {
  border: 1px solid var(--ink-faint); padding: 14px; text-align: center;
  font-family: var(--mono); font-size: 12px; transition: all .15s;
  cursor: pointer; position: relative;
}
.alt-card:hover { border-color: var(--ink); background: var(--bg-2); }
.alt-card .n { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.alt-card .m { font-size: 10px; color: var(--accent); letter-spacing: 1px; }

/* Currently selected card — stays in its original grid slot, just visually marked */
.alt-card.alt-current {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  cursor: default;
  padding: 13px; /* keep size consistent despite thicker border */
}
.alt-card.alt-current:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.alt-card.alt-current .n { color: var(--accent); }
.alt-current-badge {
  position: absolute; top: -9px; left: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 1.5px; padding: 2px 8px;
  border-radius: 1px;
}

/* signature line */
.quote {
  border-left: 3px solid var(--accent); padding: 16px 20px;
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--ink); line-height: 1.6; background: var(--accent-soft);
}
.quote cite {
  display: block; margin-top: 10px; font-style: normal;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 1px;
}

/* action row */
.actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.actions .btn { justify-content: center; }
.actions-wide { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* share card preview (portrait, ~3:5 to fit radar + QR block) */
.share-card {
  width: 300px; height: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 20px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.share-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--ink-faint);
  pointer-events: none;
}
.share-card .sc-top {
  font-family: var(--mono); font-size: 10px; color: var(--ink-soft);
  letter-spacing: 1px; display: flex; justify-content: space-between;
}
.share-card .sc-av {
  flex-shrink: 0; flex-grow: 0;
  width: 110px; height: 110px; border-radius: 50%; background: var(--bg-2);
  border: 1px solid var(--ink); margin: 18px auto 14px; overflow: hidden;
  display: grid; place-items: center; align-self: center;
}
.share-card .sc-av svg { width: 110px; height: 110px; display: block; }
.share-card .sc-name {
  font-family: var(--serif); font-size: 34px; font-weight: 900;
  text-align: center; letter-spacing: -1px;
}
.share-card .sc-tag {
  font-family: var(--serif); font-size: 13px; text-align: center;
  color: var(--ink-soft); margin-top: 8px; font-style: italic; line-height: 1.5;
  padding: 0 12px;
}
.share-card .sc-traits {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--ink-faint);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; color: var(--ink-soft);
}
.share-card .sc-radar {
  margin: 10px auto 4px;
  padding-top: 10px; border-top: 1px dashed var(--ink-faint);
  width: 100%; display: flex; justify-content: center;
}
.share-card .sc-radar svg { display: block; }
.share-card .sc-foot {
  margin-top: 10px; text-align: center;
  font-family: var(--mono); font-size: 9px; color: var(--accent);
  letter-spacing: 2px;
}
/* QR block tucked into bottom-right corner (absolute so it doesn't fight
   the flex column's layout; radar stays centered). */
.share-card .sc-bottom {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.share-card .sc-qr {
  flex-shrink: 0;
  width: 54px; height: 54px;
  background: #fff; border: 1px solid #111;
  display: block; line-height: 0;
  padding: 2px;
}
.share-card .sc-qr img {
  display: block; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: -moz-crisp-edges;
}
.share-card .sc-bottom-text {
  font-family: var(--mono); line-height: 1.2; text-align: center;
}
.share-card .sc-bottom-text .sc-url {
  font-size: 8px; color: #555; letter-spacing: 0.3px;
}
.share-card .sc-bottom-text .sc-cta { display: none; }

/* avatar svg canvas */
.avatar-svg { width: 100%; height: 100%; display: block; }

/* footer */
.footer {
  margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer a { margin-left: 14px; text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* view switching */
.view { display: none; }
.view.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* mobile */
@media (max-width: 640px) {
  .page { padding: 24px 18px 80px; }
  .hero h1 { font-size: 38px; }
  .universe-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .traits-box { grid-template-columns: 1fr; }
  .alt-list { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .verdict-card .name { font-size: 42px; }
}

/* ============ deep report (paid) ============ */
.deep-report {
  border: 1px solid var(--ink);
  padding: 24px 28px;
}
.caret {
  display: inline-block;
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s steps(2, end) infinite;
  font-weight: normal;
}
@keyframes blink { 50% { opacity: 0; } }

.deep-report-actions {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--ink-faint);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.deep-report-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

/* Print mode — keep everything on the result page (verdict, why, traits,
   signature, alternates, deep report), hide only chrome / interactive / toast.
   Triggered by `printing-report` on body via printReport(). */
@media print {
  body.printing-report .topbar,
  body.printing-report .footer,
  body.printing-report .actions-wide,
  body.printing-report .deep-report-actions,
  body.printing-report #result-actions,
  body.printing-report .paywall,
  body.printing-report .toast,
  body.printing-report #btn-deep-load,
  body.printing-report .share-card,
  body.printing-report .deep-report-locked {
    display: none !important;
  }
  body.printing-report {
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.printing-report .page {
    padding: 0 !important;
    max-width: 100% !important;
  }
  body.printing-report .caret { display: none !important; }
  body.printing-report .verdict-card,
  body.printing-report .why,
  body.printing-report .traits-box,
  body.printing-report .quote,
  body.printing-report .deep-report {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  body.printing-report .deep-report-body h3 {
    page-break-after: avoid;
    break-after: avoid;
  }
  /* ensure fills and accent colors actually print */
  body.printing-report .trait-row .bar .fill {
    background: #111 !important;
  }
}
.deep-report-body h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 900;
  letter-spacing: -0.5px; margin: 24px 0 12px;
  padding-bottom: 8px; border-bottom: 1px dashed var(--ink-faint);
}
.deep-report-body h3:first-child { margin-top: 4px; }
.deep-report-body h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 16px 0 8px;
}
.deep-report-body p {
  font-family: var(--serif); font-size: 16px; line-height: 1.8;
  color: var(--ink); margin-bottom: 14px;
}
.deep-report-body ul {
  list-style: none; margin: 10px 0 16px 0;
}
.deep-report-body li {
  font-family: var(--serif); font-size: 15px; line-height: 1.7;
  color: var(--ink); padding: 6px 0 6px 16px; position: relative;
}
.deep-report-body li::before {
  content: "▸"; position: absolute; left: 0;
  color: var(--accent); font-family: var(--mono);
}
.deep-report-body strong { font-weight: 700; }
.deep-report-body em { font-style: italic; color: var(--ink-soft); }
.deep-report-body code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-2); padding: 1px 6px; border-radius: 2px;
}

.paywall .paywall-lead {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  margin-bottom: 14px;
}
.paywall .paywall-list {
  list-style: none; margin-bottom: 18px;
}
.paywall .paywall-list li {
  font-size: 14px; color: var(--ink-soft); padding: 6px 0 6px 18px;
  position: relative; line-height: 1.6;
}
.paywall .paywall-list li::before {
  content: "◇"; position: absolute; left: 0; color: var(--accent);
}
.paywall .paywall-note {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.5px; margin-bottom: 16px;
}
#btn-deep-buy { text-decoration: none; }

/* Full-screen share-image preview (for long-press-to-save on iOS) */
.img-preview-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeInOverlay .2s ease;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.img-preview-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px;
  font-size: 26px; color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  line-height: 1;
}
.img-preview-close:hover { background: rgba(255, 255, 255, 0.2); }
.img-preview-inner {
  max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.img-preview-img {
  max-width: 100%; max-height: 72vh;
  width: auto; height: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  -webkit-user-select: auto; user-select: auto;
  -webkit-touch-callout: default;  /* 允许 iOS 长按弹菜单 */
}
.img-preview-tip {
  color: #fafaf7; font-family: var(--mono); font-size: 13px;
  letter-spacing: 1px; text-align: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0;
}
.img-preview-tip-ok {
  color: #8fe0a8; border-color: rgba(143, 224, 168, 0.3);
  background: rgba(143, 224, 168, 0.08);
}
.img-preview-dl { text-decoration: none; }

/* simple toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px;
  z-index: 999; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
