/* Hallmark · shape: app screen · genre: modern-minimal · theme: Console (deal 2/3, seed token-risk-checker-memecoin-be7d·2a932b29·2026-10-30·r0) · redesign: full
 * nav: kept, a top bar with the wordmark and the account · signature: the risk reading, set large in the measured face, the AI summary right under it · states: scanning, queued, failed, cached, locked, partial, full · console: graphite
 * axes: dark/grotesk-sans/chromatic-amber · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, a checker is a checker; the argument is that the verdict and the AI summary come first and every number shows where it came from */
/* Hallmark · dropped ringRisk, sumRiskVal, sumRiskLabel · the overall-risk ring repeated the risk reading in the report head; the head's big number is the one scale now */
/* Hallmark · reworded "AI summary (Gemini)" to "AI summary" with "Gemini, from the verified numbers below" beside it · 30a named the emoji head, the model credit moved out of the heading */
/* Hallmark · reworded "$0.00" to "-" · the stat cells showed a fake zero price before any scan ran, 46a */
/* Hallmark · dismissed F26 · at 375 the head breaks as "Check a token" over "before you ape", two phrases, no stub */
/* Hallmark · dismissed F23 · server.py injects the title, description and og tags into this file at request time */
/* Hallmark · report: verdict band (reading, reason, flag chips, key numbers) over the AI summary beside the GMGN chart; the report builds as sources answer, the scan log folds under it */
/* Hallmark · dismissed F4 · .seg-btn.active is the chosen chain in a segmented control, a selection state on the cool tint, not a second primary */
@import url("./tokens.css?v=20261030");
@import url("./base.css?v=20261030");

/* ---------------------------------------------------------------- shell */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
.measured { font-family: var(--font-outlier); font-variant-numeric: tabular-nums slashed-zero; }

.topbar { border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); position: sticky; top: 0; z-index: var(--z-sticky-nav); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-lg); font-weight: 500; letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark:hover { color: var(--color-ink-2); }
.account { display: flex; align-items: center; gap: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); flex-wrap: wrap; justify-content: flex-end; }
.account-scans .measured { color: var(--color-ink); margin-left: var(--space-2xs); }
.account-wallet { color: var(--color-cool); }

.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); background: var(--color-paper-2); white-space: nowrap; }
.chip--plain { font-size: var(--text-xs); }
.tier-holder, .tier-whale, .tier-open { color: var(--color-ink); background: var(--color-accent-soft); border-color: var(--color-accent-soft); }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; position: relative; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn::after { content: ""; position: absolute; inset: -4px 0; }
.btn:hover { background: var(--color-rule); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); min-height: 48px; padding: 0 var(--space-lg); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--s { min-height: 32px; font-size: var(--text-sm); padding: 0 var(--space-sm); }
.btn-cost { font-size: var(--text-sm); font-weight: 400; }

.seg { display: inline-flex; align-self: flex-start; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); overflow: hidden; background: var(--color-paper-3); }
.seg-btn { min-height: 40px; padding: 0 var(--space-md); border: 0; background: transparent; color: var(--color-muted); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg-btn + .seg-btn { border-left: var(--rule-hair) solid var(--color-rule); }
.seg-btn:hover { color: var(--color-ink); }
.seg-btn:active { background: var(--color-paper-2); }
.seg-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.seg-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.seg-btn.active { background: var(--color-cool-soft); color: var(--color-ink); }

.field { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-md); }
.field::placeholder { color: var(--color-muted); font-family: var(--font-body); }
.field:hover { border-color: var(--color-ink-2); }
.field:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.field:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------------------------------------- intake */
.page { padding-block: var(--space-2xl) var(--space-3xl); display: flex; flex-direction: column; gap: var(--space-xl); }
.intake { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg) var(--space-2xl); align-items: end; }
.intake h1 { font-size: var(--text-head); line-height: 1.05; max-width: 14ch; }
.intake .lead { margin-top: var(--space-md); font-size: var(--text-md); color: var(--color-muted); max-width: 46ch; }
.scanner { display: flex; flex-direction: column; gap: var(--space-sm); }
.scan-row { display: flex; gap: var(--space-xs); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.presets-label { margin-right: var(--space-2xs); }
.preset-pill { min-height: 32px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; background: transparent; color: var(--color-ink-2); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; position: relative; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.preset-pill::after { content: ""; position: absolute; inset: -6px 0; }
.preset-pill:hover { border-color: var(--color-rule-2); color: var(--color-ink); }
.preset-pill:active { background: var(--color-paper-2); }
.preset-pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.preset-pill:disabled { opacity: 0.55; cursor: not-allowed; }
.track-strip { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-sm); }
.track-strip b { color: var(--color-ink); font-weight: 500; }

/* ---------------------------------------------------------------- scan progress and log */
.scan-hud:empty { display: none; }
.scan-hud { display: flex; flex-direction: column; gap: var(--space-xs); }
.scan-nodes { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.scan-node { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 28px; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.scan-node i { display: none; }
.scan-node.busy { color: var(--color-ink-2); border-color: var(--color-rule-2); }
.scan-node.busy::after { content: "working"; font-weight: 400; color: var(--color-muted); }
.scan-node.ok { color: var(--color-ink); background: var(--color-cool-soft); border-color: var(--color-cool-soft); }
.scan-node.ok::after { content: "answered"; font-weight: 400; color: var(--color-cool); }
.scan-node.fail { color: var(--color-ink); background: var(--color-bad-soft); border-color: var(--color-bad-soft); }
.scan-node.fail::after { content: "no answer"; font-weight: 400; color: var(--color-bad); }
.scan-bar { height: 2px; background: var(--color-rule); border-radius: 1px; overflow: hidden; }
.scan-bar-fill { height: 100%; width: 100%; background: var(--color-cool); transform-origin: left; transform: scaleX(0.04); transition: transform var(--dur-long) var(--ease-out); }
.scan-stat { display: flex; justify-content: space-between; font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); }

.scan-log { border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.scan-log summary { cursor: pointer; width: max-content; padding: var(--space-2xs) 0; color: var(--color-muted); }
.scan-log summary:hover { color: var(--color-ink); }
.scan-log summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.log-lines { margin-top: var(--space-xs); max-height: 240px; overflow-y: auto; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-3); font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.6; }
.term-line { color: var(--color-ink-2); }
.term-line.info { color: var(--color-cool); }
.term-line.success { color: var(--color-ok); }
.term-line.warn { color: var(--color-accent); }
.term-line.danger { color: var(--color-bad); }
.term-line.dim { color: var(--color-muted); }

/* ---------------------------------------------------------------- report mode: the search shrinks to one row */
.has-report .page { padding-block: var(--space-md) var(--space-3xl); gap: var(--space-md); }
.has-report .intake { display: block; }
.has-report .intake-copy, .has-report .presets, .has-report .track-strip { display: none; }
.has-report .scanner { flex-direction: row; align-items: center; gap: var(--space-sm); }
.has-report .scan-row { flex: 1; }

/* ---------------------------------------------------------------- report */
.report { display: none; flex-direction: column; gap: var(--space-lg); }
.note { border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-2); padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }

.band { color: var(--color-ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
.band-main { padding: var(--space-md) 0 var(--space-md) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.band .reading { padding: var(--space-md) var(--space-xl) var(--space-md) 0; align-self: center; }
.band-reason { font-size: var(--text-lg); line-height: 1.4; color: var(--color-ink); max-width: 60ch; }
.band-reason:empty { display: none; }
.flag-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.flag-chips:empty { display: none; }
.flag-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); max-width: 100%; }
.flag-danger { background: var(--color-bad-soft); border-color: var(--color-bad-soft); color: var(--color-ink); }
.flag-warn { background: var(--color-accent-soft); border-color: var(--color-accent-soft); color: var(--color-ink); }
.flag-ok { background: var(--color-ok-soft); border-color: var(--color-ok-soft); color: var(--color-ink); }
.band-stats { grid-column: 1 / -1; border: 0; border-top: var(--rule-hair) solid var(--color-rule); border-radius: 0; }
.stats.band-stats > div { background: var(--color-paper-2); }
.stats.band-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
.band-stats dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reading-value.is-waiting { color: var(--color-muted); }
.is-building .band-stats dd { color: var(--color-muted); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-md); align-items: stretch; }
.report-more { display: flex; flex-direction: column; gap: var(--space-lg); }
.is-building .report-more, .is-failed .report-more { display: none; }

.token { display: flex; align-items: center; gap: var(--space-md); min-width: 0; }
.token-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: var(--text-2xl); font-weight: 500; color: var(--color-ink-2); }
.token-avatar img { width: 100%; height: 100%; object-fit: cover; }
.token-title { min-width: 0; }
.token-title h2 { font-size: var(--text-2xl); overflow-wrap: break-word; line-height: 1.05; max-width: none; }
.token-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); margin-top: var(--space-2xs); }
.token-symbol { color: var(--color-muted); font-size: var(--text-md); }
.reading { text-align: right; }
.reading-value { font-size: var(--text-reading); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--color-ink); }
.reading-value.badge-green { color: var(--color-ok); }
.reading-value.badge-red { color: var(--color-bad); }
.reading-unit { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.verdict { display: inline-flex; margin-top: var(--space-xs); min-height: 28px; align-items: center; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 4px; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.verdict.bg-green { background: var(--color-ok-soft); border-color: var(--color-ok-soft); }
.verdict.bg-red { background: var(--color-bad-soft); border-color: var(--color-bad-soft); }

.summary { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); padding: var(--space-lg) var(--space-xl); display: flex; flex-direction: column; min-width: 0; }
.chart { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); padding: var(--space-md) var(--space-lg); min-width: 0; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.chart h3 { font-size: var(--text-panel); max-width: none; }
.seg--s .seg-btn { min-height: 32px; padding: 0 var(--space-sm); }
.chart-frame { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); overflow: hidden; background: var(--color-paper-3); height: 380px; }
.chart-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.chart-by { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.summary-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); }
.summary h3 { font-size: var(--text-panel); max-width: none; }
.summary-by { font-size: var(--text-sm); color: var(--color-muted); }
.ai-content { margin-top: var(--space-md); font-size: var(--text-md); line-height: 1.6; color: var(--color-ink-2); white-space: pre-line; max-width: 72ch; }
.ai-content.is-clamped { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) 80%, transparent); mask-image: linear-gradient(to bottom, var(--color-ink) 80%, transparent); }
.ai-content.is-waiting { white-space: normal; display: flex; flex-direction: column; gap: var(--space-sm); }
.ai-wait { color: var(--color-muted); font-size: var(--text-sm); }
.ai-line { display: block; height: 10px; border-radius: 3px; background: var(--color-rule); animation: aiPulse 1.4s var(--ease-out) infinite alternate; }
.ai-line:nth-of-type(2) { width: 92%; } .ai-line:nth-of-type(3) { width: 78%; } .ai-line:nth-of-type(4) { width: 85%; } .ai-line:nth-of-type(5) { width: 60%; }
.is-failed .ai-line { display: none; }
@keyframes aiPulse { from { opacity: 0.45; } to { opacity: 1; } }
.ai-more { align-self: flex-start; margin-top: var(--space-sm); border: 0; padding: var(--space-xs) 0; background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.16em; }
.ai-more:hover { color: var(--color-accent); }
.ai-more:active { color: var(--color-ink-2); }
.ai-more:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.ai-content strong { color: var(--color-ink); font-weight: 500; }
.locked-box { color: var(--color-muted); font-size: var(--text-sm); }
.locked-box a, .link-accent { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
.locked-box a:hover, .link-accent:hover { color: var(--color-accent); }

/* verdict row and meters: panels cut from one surface, 1px seams */
.verdict-row, .meters, .stats { display: grid; gap: var(--rule-hair); background: var(--color-rule); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
.verdict-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.verdict-row:empty { display: none; }
.verdict-cell { background: var(--color-paper-2); padding: var(--space-md) var(--space-lg); min-width: 0; font-size: var(--text-md); color: var(--color-ink-2); line-height: 1.5; }
.verdict-cell .vc-title { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-xs); }
.verdict-cell .vc-main { font-size: var(--text-panel); font-weight: 500; color: var(--color-ink); }
.verdict-cell .vc-note { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.verdict-cell ol { margin: 0; padding-left: var(--space-md); }
.verdict-cell li + li { margin-top: var(--space-2xs); }
.tone-green { color: var(--color-ok); }
.tone-red { color: var(--color-bad); }
.tone-yellow { color: var(--color-ink); }
.tone-muted { color: var(--color-muted); }

.meters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meter-panel { background: var(--color-paper-2); color: var(--color-ink); padding: var(--space-md) var(--space-lg) var(--space-lg); min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.meter-title { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.meter-value { font-size: var(--text-3xl); line-height: 1; color: var(--color-ink); }
.meter, .impact { height: 4px; border-radius: 2px; background: var(--color-rule); overflow: hidden; }
.meter-fill, .impact-fill { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--color-ink-2); transition: transform var(--dur-long) var(--ease-out); }
.impact { margin-top: var(--space-2xs); }
.impact-fill { background: var(--color-bad); }
.meter-label { font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }
.meter-note { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }
.fineprint { margin-top: calc(var(--space-sm) * -1); font-size: var(--text-xs); color: var(--color-muted); }

.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.stats > div { background: var(--color-paper-2); padding: var(--space-sm) var(--space-md); min-width: 0; }
.stats dt { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.stats dd { margin: var(--space-2xs) 0 0; font-size: var(--text-md); color: var(--color-ink); overflow-wrap: anywhere; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.details h3, .factors h3 { font-size: var(--text-panel); margin-bottom: var(--space-sm); }
.facts { margin: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.facts dt { color: var(--color-muted); min-width: 0; }
.facts dd { margin: 0; color: var(--color-ink); text-align: right; overflow-wrap: anywhere; }
.facts dd.measured { white-space: nowrap; overflow-wrap: normal; flex-shrink: 0; }
.facts a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
.facts a:hover { color: var(--color-accent); }

.factors-list { display: flex; flex-direction: column; font-size: var(--text-sm); }
.factor-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--space-sm); align-items: baseline; padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.factor-tag { justify-self: start; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; font-weight: 500; color: var(--color-muted); }
.tag-danger { background: var(--color-bad-soft); border-color: var(--color-bad-soft); color: var(--color-bad); }
.tag-warn { background: var(--color-accent-soft); border-color: var(--color-accent-soft); color: var(--color-accent); }
.factor-row.level-danger { color: var(--color-ink); }
.factor-meta { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); text-align: right; white-space: nowrap; }
.factors-foot { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }
.factors-list .locked-box { padding: var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: flex-end; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }

.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

.toasts { position: fixed; left: 50%; bottom: var(--space-lg); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--space-xs); z-index: var(--z-toast); width: min(92vw, 28rem); pointer-events: none; }
.toast { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); border-radius: var(--radius-pill); padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); animation: toastIn var(--dur-short) var(--ease-out); }
.toast.warn { border-color: var(--color-accent-soft); }
.toast.error { border-color: var(--color-bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 60rem) {
  .intake { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stats, .stats.band-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .verdict-row { grid-template-columns: minmax(0, 1fr); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-content.is-clamped { max-height: 320px; }
}
@media (max-width: 40rem) {
  .page { padding-block: var(--space-xl) var(--space-2xl); }
  .scan-row { flex-direction: column; }
  .band { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); }
  .band-main { display: contents; }
  .band .token, .band-reason, .flag-chips, .scan-hud { padding-inline: var(--space-md); }
  .band .token { order: 1; } .band-reason { order: 3; } .flag-chips { order: 4; } .scan-hud { order: 5; } .band-stats { order: 6; }
  .band .reading { order: 2; padding: 0 var(--space-md); text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); }
  .band .token-avatar { width: 44px; height: 44px; }
  .band .reading-value { font-size: var(--text-3xl); }
  .band .reading .verdict { margin-top: 0; }
  .has-report .scanner { flex-direction: column; align-items: stretch; }
  .summary { padding: var(--space-md); }
  .chart { padding: var(--space-md); }
  .chart-frame { height: 360px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.band-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band-stats > div { padding: var(--space-xs) var(--space-sm); }
  .band-stats dt { font-size: var(--text-xs); }
  .band-stats dd { font-size: var(--text-sm); }
  .band-stats .ath { display: none; }
  .factor-row { grid-template-columns: 5rem minmax(0, 1fr); }
  .factor-meta { grid-column: 2; text-align: left; }
  .account-scans { font-size: var(--text-sm); }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1 1 auto; }
  #tweetShareBtn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .seg-btn, .preset-pill, .scan-node { transition: background-color var(--dur-short) linear; }
  .scan-bar-fill, .meter-fill, .impact-fill { transition: none; }
  .ai-line { animation: none; }
  .toast { animation: none; }
}

/* ---------------------------------------------------------------- home: one screen, the search over a field of wallets */
/* The field: wallets drifting like any holder list looks, a scan line sweeps across and the ones that
   move together get tied up in red. What looks random is connected; that is what a scan shows. */
.field-canvas { position: fixed; inset: 64px 0 0 0; width: 100%; height: calc(100dvh - 64px); z-index: 0; pointer-events: none; display: none; }
.is-home .field-canvas { display: block; }
.page, .footer { position: relative; z-index: 1; }
.is-home .page { min-height: calc(100dvh - 64px - 72px); justify-content: center; padding-block: var(--space-2xl); }
.is-home .intake { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--space-xl); }
.is-home .intake-copy { display: flex; flex-direction: column; align-items: center; }
.is-home .intake h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.02; max-width: 12ch; }
.is-home .intake .lead { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 44ch; margin-top: var(--space-lg); }
.is-home .scanner { width: min(100%, 44rem); align-items: center; }
.is-home .seg { align-self: center; }
.is-home .scan-row { width: 100%; }
.is-home .field { min-height: 56px; font-size: var(--text-lg); background: var(--color-paper-3); }
.is-home .btn--primary { min-height: 56px; }
.is-home .presets { justify-content: center; }
.is-home .track-strip { border-top: 0; padding-top: 0; max-width: 60ch; }
.is-home .report { display: none !important; }
.is-home .footer { background: var(--color-paper); }

/* ---------------------------------------------------------------- history */
.history { position: relative; }
.history-panel { position: absolute; right: 0; top: calc(100% + var(--space-xs)); width: min(24rem, calc(100dvw - 2 * var(--gutter))); max-height: min(70dvh, 32rem); overflow-y: auto; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); padding: var(--space-md); z-index: var(--z-dropdown); text-align: left; }
.history-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-xs); }
.history-title { font-size: var(--text-md); letter-spacing: 0; color: var(--color-ink); }
.history-clear { border: 0; background: transparent; color: var(--color-muted); font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer; padding: var(--space-xs); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.16em; }
.history-clear:hover { color: var(--color-ink); }
.history-clear:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.history-clear:active { color: var(--color-ink-2); }
.history-clear:disabled { opacity: 0.55; cursor: not-allowed; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); text-decoration: none; }
.history-list a:hover .h-name { color: var(--color-accent); }
.history-list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.h-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-risk { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; text-align: right; }
.h-risk.good { color: var(--color-ok); }
.h-risk.bad { color: var(--color-bad); }
.h-meta { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); }
.history-empty { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 40rem) {
  .is-home .intake h1 { font-size: 2.75rem; }
  .is-home .intake .lead { font-size: var(--text-md); }
  .account { gap: var(--space-xs); }
}

.trade-links { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.trade-links:empty { display: none; }

/* ---- owl mascot: mood follows the verdict ---- */
.owl-perch { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.owl-perch:empty { display: none; }
.owl-say { position: relative; max-width: 220px; padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--owl, var(--color-rule-2)); border-radius: 8px; background: var(--color-paper-2); font-size: var(--text-sm); line-height: 1.4; color: var(--color-ink); text-align: left; }
.owl-say::after { content: ''; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--color-paper-2); border-right: var(--rule-hair) solid var(--owl, var(--color-rule-2)); border-top: var(--rule-hair) solid var(--owl, var(--color-rule-2)); transform: rotate(45deg); }
.owl { display: block; overflow: visible; flex: none; }
.owl .ob { fill: var(--owl); transition: fill var(--dur-long) var(--ease-out); }
.owl .obl { fill: oklch(100% 0 0 / 0.28); }
.owl .ow { fill: oklch(96% 0.005 250); }
.owl .op { fill: oklch(15% 0.01 250); }
.owl .ink { stroke: oklch(15% 0.01 250); stroke-width: 3; stroke-linecap: round; fill: none; }
.owl .beak { fill: oklch(78% 0.15 70); }
.owl .x, .owl .wide, .owl .sus, .owl .calm, .owl .shades, .owl .sweat, .owl .brow, .owl .bopen, .owl .bshut,
.owl .sparks, .owl .candle, .owl .tongue, .owl .smile, .owl .qm { display: none; }
.owl-think, .owl-calm { --owl: var(--color-cool); }
.owl-dead { --owl: var(--color-muted); }
.owl-panic { --owl: var(--color-bad); }
.owl-sus { --owl: var(--color-accent); }
.owl-gem { --owl: var(--color-ok); }
.owl-think .calm, .owl-think .bshut, .owl-think .qm,
.owl-dead .x, .owl-dead .bshut, .owl-dead .tongue, .owl-dead .candle,
.owl-panic .wide, .owl-panic .bopen, .owl-panic .sweat,
.owl-sus .sus, .owl-sus .brow, .owl-sus .bshut,
.owl-calm .calm, .owl-calm .bshut,
.owl-gem .shades, .owl-gem .bshut, .owl-gem .smile, .owl-gem .sparks,
.owl-fog .qm { display: inline; }
.owl .bird, .owl .lids, .owl .pup, .owl .sparks path, .owl .sweat path, .owl .qm { transform-box: fill-box; transform-origin: 50% 50%; }
.owl .bird { transform-origin: 50% 100%; }
.owl-dead .bird { transform-origin: 50% 55%; }
.owl .lids { transform: scaleY(0); fill: var(--owl); }
.owl-think .bird { animation: owlTilt 2.4s ease-in-out infinite; }
.owl-think .pup { animation: owlLook 1.6s ease-in-out infinite; }
.owl-think .lids, .owl-calm .lids { animation: owlBlink 3.6s infinite; }
.owl-think .qm, .owl-fog .qm { animation: owlBob 1.2s ease-in-out infinite; }
.owl-dead .bird { animation: owlFall .9s cubic-bezier(.5, 0, .7, 1.3) forwards; }
.owl-panic .bird { animation: owlShake .18s linear infinite; }
.owl-panic .sweat path { animation: owlDrip 1.1s ease-in infinite; }
.owl-sus .pup { animation: owlSide 3s ease-in-out infinite; }
.owl-gem .bird { animation: owlPop .6s cubic-bezier(.3, 1.6, .6, 1) both; }
.owl-gem .sparks path { animation: owlTwinkle 1.4s ease-in-out infinite; }
.owl-gem .sparks path + path { animation-delay: .7s; }
.owl-gem .shades { animation: owlShades .5s .35s cubic-bezier(.3, 1.4, .6, 1) both; }
@keyframes owlTilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes owlLook { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes owlSide { 0%, 40%, 100% { transform: translateX(5px); } 55%, 85% { transform: translateX(-3px); } }
@keyframes owlBlink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes owlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes owlFall { 0% { transform: rotate(0); } 60% { transform: rotate(-8deg); } 100% { transform: rotate(-90deg) translateX(-8px); } }
@keyframes owlShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes owlDrip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes owlPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes owlTwinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes owlShades { 0% { transform: translateY(-40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .owl * { animation: none !important; }
  .owl-dead .bird { transform: rotate(-90deg) translateX(-8px); }
  .owl-gem .shades { opacity: 1; }
}
@media (max-width: 40rem) {
  .band .reading .owl-perch { flex-basis: 100%; justify-content: flex-end; flex-direction: row-reverse; }
  .owl-say::after { right: auto; left: -6px; transform: rotate(-135deg); }
}
