:root {
  --bg: #11100e;
  --surface: #1a1916;
  --surface-2: #24221d;
  --paper: #f2eddf;
  --paper-dim: #c9c1b1;
  --muted: #aaa294;
  --line: #4d493f;
  --line-hot: #f2eddf;
  --yellow: #f4df33;
  --yellow-hi: #fff064;
  --coral: #ff5b4d;
  --mint: #8ff0bd;
  --ink: #11100e;
  --font-display: "Arial Narrow", "Roboto Condensed", "Aptos Display", "Franklin Gothic Medium", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
  --ticker-h: 28px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; overflow: hidden; color: var(--paper); background: var(--bg); font-family: var(--font-body); font-size: 15px; }
body::before { content: ""; position: fixed; inset: var(--ticker-h) 0 0; pointer-events: none; opacity: .3; background: linear-gradient(120deg, transparent 0 51%, rgba(244,223,51,.06) 51% 51.3%, transparent 51.3%), repeating-linear-gradient(90deg, transparent 0 79px, rgba(242,237,223,.035) 80px); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.sr-only { position: fixed; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 14px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; text-transform: uppercase; }
.skip-link:focus { top: 38px; }
.paper-noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045; background-image: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px); mix-blend-mode: overlay; }

.annoyance-meter { height: var(--ticker-h); position: relative; z-index: 8; display: grid; grid-template-columns: auto 90px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 20px; color: var(--ink); background: var(--yellow); border-bottom: 2px solid var(--ink); font: 800 9px/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; overflow: hidden; }
.meter-label { white-space: nowrap; }
.meter-track { height: 7px; background: rgba(17,16,14,.2); border: 1px solid var(--ink); }
.meter-track i { display: block; width: 76%; height: 100%; background: var(--coral); border-right: 1px solid var(--ink); animation: meter-pulse 2.5s steps(3,end) infinite; }
.ticker-window { min-width: 0; overflow: hidden; white-space: nowrap; border-left: 1px solid rgba(17,16,14,.35); border-right: 1px solid rgba(17,16,14,.35); }
.ticker-copy { width: max-content; animation: ticker 24s linear infinite; }
.annoyance-meter strong { color: var(--paper); background: var(--ink); padding: 5px 8px; letter-spacing: .08em; }

.app-header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 2px solid var(--paper); position: relative; z-index: 7; background: rgba(17,16,14,.94); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand-logo { width: 38px; height: 38px; color: var(--paper); overflow: visible; }
.logo-burst { fill: var(--coral); stroke: var(--paper); stroke-width: 1.2; }
.logo-bubble { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; }
.logo-alert { stroke: var(--ink); stroke-width: 2.4; }
.wordmark { font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: .055em; transform: scaleX(.92); transform-origin: left; white-space: nowrap; }
.wordmark b { color: var(--yellow); font-weight: 900; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.connection { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--paper-dim); font: 800 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.connection i { width: 8px; height: 8px; background: var(--mint); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--mint); }
.connection.busy i { background: var(--yellow); box-shadow: 2px 2px 0 var(--coral); animation: blink .8s steps(2,end) infinite; }
.connection.error i { background: var(--coral); box-shadow: none; }
.quiet-button, .icon-button, .tool-button, .secondary-button { border: 1px solid var(--line); border-radius: 0; background: var(--surface); cursor: pointer; }
.quiet-button { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quiet-button svg { width: 15px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; font-size: 25px; }
.quiet-button:hover, .icon-button:hover, .tool-button:hover, .secondary-button:hover { color: var(--ink); border-color: var(--yellow); background: var(--yellow); }

.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 330px; max-width: 1600px; height: calc(100vh - var(--ticker-h) - var(--header-h)); margin: 0 auto; }
.conversation { min-width: 0; display: flex; flex-direction: column; border-right: 2px solid var(--paper); }
.message-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-color: var(--yellow) var(--surface); }
.empty-state { min-height: 100%; display: grid; grid-template-columns: minmax(110px, .28fr) minmax(450px, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 28px 44px; padding: 46px clamp(28px,5vw,72px) 30px; animation: rise .5s ease both; }
.interrupt-stamp { width: 128px; height: 128px; display: grid; place-content: center; justify-items: center; color: var(--ink); background: var(--coral); border: 3px solid var(--paper); box-shadow: 10px 10px 0 var(--yellow); transform: rotate(-4deg); text-align: center; }
.interrupt-stamp span { font: 900 52px/.72 var(--font-display); }
.interrupt-stamp b { margin-top: 10px; font: 900 11px/1.05 var(--font-mono); letter-spacing: .05em; }
.hero-copy { position: relative; min-width: 0; max-width: 100%; padding-left: 4px; }
.hero-copy::after { content: "YES, REALLY."; position: absolute; right: -16px; top: 4px; padding: 6px 8px; color: var(--ink); background: var(--paper); font: 900 9px var(--font-mono); letter-spacing: .08em; transform: rotate(2deg); }
.eyebrow { margin: 0 0 12px; color: var(--yellow); font: 800 10px var(--font-mono); letter-spacing: .17em; }
.empty-state h1 { margin: 0; max-width: 850px; font-family: var(--font-display); font-size: clamp(48px,6.3vw,96px); line-height: .82; letter-spacing: -.055em; font-stretch: condensed; text-transform: uppercase; font-weight: 900; }
.empty-state h1 span { color: var(--yellow); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .1em; text-underline-offset: .1em; }
.intro { max-width: 640px; margin: 26px 0 0; color: var(--paper-dim); line-height: 1.55; font-size: 16px; }
.suggestions { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); border: 2px solid var(--paper); background: var(--paper); gap: 2px; text-align: left; }
.suggestions button { position: relative; min-height: 96px; padding: 17px 18px; border: 0; color: var(--paper); background: var(--surface); cursor: pointer; text-align: left; transition: transform .16s ease, background .16s ease, color .16s ease; }
.suggestions button:hover { z-index: 1; color: var(--ink); background: var(--yellow); transform: translate(-4px,-4px); box-shadow: 5px 5px 0 var(--coral); }
.suggestions span, .suggestions b, .suggestions small { display: block; }
.suggestions span { color: var(--coral); font: 800 9px var(--font-mono); letter-spacing: .1em; }
.suggestions button:hover span { color: var(--ink); }
.suggestions b { margin-top: 13px; font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.suggestions small { color: var(--muted); margin-top: 5px; font-size: 11px; }
.suggestions button:hover small { color: #4c4636; }

.demo-deck { grid-column: 1/-1; min-width: 0; margin-top: 4px; padding: 18px 0 3px; border-top: 1px dashed var(--line); }
.demo-deck-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 14px; }
.demo-deck-head .eyebrow { margin-bottom: 7px; }
.demo-deck-head h2 { margin: 0; color: var(--paper); font-family: var(--font-display); font-size: clamp(25px,2.4vw,38px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.demo-deck-head h2 span { display: inline-grid; place-items: center; width: 43px; height: 39px; margin-right: 6px; color: var(--ink); background: var(--yellow); border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--coral); font: 900 18px var(--font-mono); vertical-align: 3px; transform: rotate(-2deg); }
.demo-deck-head > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.demo-deck-head > p b { color: var(--paper); }
.demo-rail { display: flex; gap: 8px; padding: 3px 7px 13px 3px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-color: var(--coral) var(--surface-2); scrollbar-width: thin; }
.demo-card { position: relative; width: 210px; min-width: 210px; height: 142px; padding: 13px 13px 11px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 0; color: var(--paper); background: var(--surface); cursor: pointer; text-align: left; transition: transform .14s ease, color .14s ease, background .14s ease, border-color .14s ease; }
.demo-card:nth-child(4n+2) { border-top: 3px solid var(--coral); }
.demo-card:nth-child(4n+3) { border-top: 3px solid var(--yellow); }
.demo-card:nth-child(4n+4) { border-top: 3px solid var(--mint); }
.demo-card::after { content: ""; position: absolute; right: -15px; bottom: -20px; width: 50px; height: 50px; border: 1px solid var(--line); transform: rotate(45deg); }
.demo-card:hover { z-index: 1; color: var(--ink); border-color: var(--paper); background: var(--yellow); transform: translateY(-3px); box-shadow: 4px 4px 0 var(--coral); }
.demo-card:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.demo-card:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.demo-number, .demo-category, .demo-card strong, .demo-card small, .demo-run { display: block; }
.demo-number { position: absolute; right: 10px; top: 8px; color: var(--line); font: 900 25px var(--font-display); }
.demo-category { color: var(--coral); font: 900 8px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.demo-card:hover .demo-category, .demo-card:hover .demo-number { color: var(--ink); }
.demo-card strong { max-width: 165px; margin-top: 18px; font-family: var(--font-display); font-size: 16px; line-height: 1; letter-spacing: .015em; text-transform: uppercase; }
.demo-card small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.demo-card:hover small { color: #534b28; }
.demo-run { position: absolute; left: 13px; bottom: 10px; color: var(--yellow); font: 900 8px var(--font-mono); letter-spacing: .08em; }
.demo-card:hover .demo-run { color: var(--ink); }
.demo-hint { margin: 4px 0 0; color: var(--muted); font: 800 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.demo-hint span { color: var(--yellow); font-size: 13px; }

.message { max-width: 880px; margin: 0 auto; padding: 28px clamp(22px,5vw,68px); animation: rise .25s ease both; }
.message + .message { border-top: 1px dashed var(--line); }
.message.user { padding-top: 34px; padding-bottom: 22px; }
.message-label { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; color: var(--muted); font: 800 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.message-label i { width: 9px; height: 9px; background: var(--coral); border: 1px solid var(--paper); }
.message.assistant .message-label i { background: var(--yellow); }
.message-content { margin: 0; color: var(--paper); font-size: 15.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .message-content { font-size: 17px; }
.message-meta { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; border: 1px solid var(--line); background: var(--surface); box-shadow: 4px 4px 0 rgba(242,237,223,.08); }
.message-verdict { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-right: 1px solid var(--line); font: 800 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.message-verdict.certified { color: var(--mint); }
.message-verdict.denied { color: var(--coral); }
.message-verdict.unverified { color: var(--yellow); }
.message-verdict i { width: 7px; height: 7px; background: currentColor; }
.message-claim { min-width: 0; padding: 9px 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.message-claim b { color: var(--paper); font-weight: 700; }
.message-root { display: block; margin-top: 5px; color: var(--paper-dim); font: 9px var(--font-mono); overflow-wrap: anywhere; }
.copy-receipt { width: 38px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.copy-receipt:hover { color: var(--ink); background: var(--yellow); }
.copy-receipt svg { width: 15px; }
.typing-cursor { display: inline-block; width: 8px; height: 1em; margin-left: 3px; background: var(--yellow); vertical-align: -2px; animation: blink .8s steps(2) infinite; }

.composer { margin: 0 clamp(18px,4vw,56px); border: 2px solid var(--paper); background: var(--surface); box-shadow: 8px 8px 0 var(--coral), 0 -18px 60px rgba(17,16,14,.68); position: relative; }
.composer:focus-within { border-color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow), 0 -18px 60px rgba(17,16,14,.72); }
.composer > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.composer textarea { width: 100%; max-height: 190px; resize: none; padding: 18px 18px 8px; border: 0; outline: 0; background: transparent; color: var(--paper); line-height: 1.5; }
.composer textarea::placeholder { color: #918a7c; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 9px 12px; border-top: 1px dashed var(--line); }
.composer-tools { display: flex; align-items: center; gap: 14px; }
.tool-button { display: flex; align-items: center; gap: 7px; padding: 7px 9px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tool-button svg { width: 15px; color: var(--yellow); }
.privacy-note { color: var(--muted); font: 9px var(--font-mono); text-transform: uppercase; }
.privacy-note i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--mint); }
.send-button, .primary-button { border: 2px solid var(--ink); border-radius: 0; background: var(--yellow); color: var(--ink); font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0 var(--coral); text-transform: uppercase; letter-spacing: .04em; }
.send-button { height: 40px; padding: 0 13px 0 16px; display: flex; gap: 12px; align-items: center; }
.send-button:hover, .primary-button:hover { background: var(--yellow-hi); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--coral); }
.send-button svg { width: 17px; }
.send-button:disabled, .primary-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.disclaimer { margin: 13px 20px 15px; text-align: center; color: var(--muted); font-size: 10px; }
.disclaimer b { color: var(--coral); }

.verification-panel { min-width: 0; padding: 30px 24px; background: var(--paper); color: var(--ink); overflow-y: auto; }
.rail-mobile-toggle { display: none; }
.rail-heading .eyebrow { color: #a6251c; }
.rail-heading h2 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: .9; text-transform: uppercase; letter-spacing: -.02em; }
.rail-heading > p:last-child { color: #514d44; font-size: 12px; line-height: 1.5; }
.verification-steps { position: relative; list-style: none; padding: 3px 0; margin: 28px 0; }
.verification-steps::before { content: ""; position: absolute; left: 17px; top: 17px; bottom: 17px; width: 2px; background: #aaa292; }
.verification-steps li { position: relative; display: flex; align-items: center; gap: 13px; min-height: 58px; color: #6f695d; }
.step-node { z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 2px solid #7c7567; background: var(--paper); font: 800 9px var(--font-mono); }
.verification-steps li b, .verification-steps li small { display: block; }
.verification-steps li b { color: var(--ink); font-family: var(--font-display); font-size: 15px; text-transform: uppercase; }
.verification-steps li small { margin-top: 2px; font-size: 10px; }
.verification-steps li.active .step-node { color: var(--ink); border-color: var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--coral); }
.verification-steps li.complete .step-node { border-color: var(--ink); background: var(--ink); color: var(--mint); }
.rail-verdict { display: flex; align-items: center; gap: 11px; padding: 14px; border: 2px solid var(--ink); background: #e6dfce; box-shadow: 5px 5px 0 var(--ink); }
.verdict-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--paper); background: #5a554c; font: 900 20px var(--font-display); }
.rail-verdict small, .rail-verdict strong { display: block; }
.rail-verdict small { color: #635d52; font: 800 8px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rail-verdict strong { margin-top: 4px; font-family: var(--font-display); text-transform: uppercase; }
.rail-verdict.certified { background: var(--mint); }
.rail-verdict.certified .verdict-icon { background: var(--ink); color: var(--mint); }
.rail-verdict.unverified, .rail-verdict.verifying { background: var(--yellow); }
.rail-verdict.denied, .rail-verdict.error { background: var(--coral); }
.claim-readout, .receipt-mini { margin-top: 25px; padding-top: 11px; border-top: 2px solid var(--ink); }
.claim-readout > span, .receipt-mini > span { font: 800 8px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.claim-readout p { margin: 8px 0 0; color: #4c483f; font-size: 12px; line-height: 1.55; }
.receipt-mini code { display: block; margin-top: 8px; color: #4c483f; font: 9px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.authority-note { margin: 25px 0 0; padding: 9px; color: var(--paper); background: var(--ink); font: 800 8px var(--font-mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.authority-note span { color: var(--mint); }

.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(17,16,14,.74); }
.drawer { position: fixed; z-index: 22; top: 0; right: 0; width: min(440px,100%); height: 100%; padding: 30px; overflow-y: auto; color: var(--paper); background: var(--surface); border-left: 3px solid var(--yellow); box-shadow: -12px 0 0 rgba(255,91,77,.7); transform: translateX(calc(100% + 16px)); transition: transform .22s ease; }
.drawer.open { transform: translateX(0); }
.drawer-header, .modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--paper); }
.drawer-header h2, .modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: .9; text-transform: uppercase; }
.drawer form > label, .modal form > label { display: block; margin: 20px 0 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.drawer input, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; color: var(--paper); background: var(--bg); }
.drawer input { height: 44px; padding: 0 12px; }
.modal textarea { padding: 13px; resize: vertical; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; }
.field-help { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.secret-field { display: flex; }
.secret-field input { min-width: 0; border-right: 0; }
.secret-field button { width: 58px; border: 1px solid var(--line); color: var(--ink); background: var(--yellow); cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.secondary-button, .primary-button { padding: 10px 14px; font-size: 11px; }
.empty-drawer { margin-top: 90px; color: var(--muted); text-align: center; }
.empty-drawer > span { color: var(--yellow); font-size: 42px; }
.empty-drawer h3 { margin: 15px 0 7px; color: var(--paper); font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.empty-drawer p { max-width: 290px; margin: auto; line-height: 1.55; }
.receipt-item { margin: 14px 0; padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.receipt-item header { display: flex; justify-content: space-between; }
.receipt-item strong { color: var(--yellow); font: 800 10px var(--font-mono); text-transform: uppercase; }
.receipt-item.certified strong { color: var(--mint); }
.receipt-item.denied strong { color: var(--coral); }
.receipt-item time { color: var(--muted); font: 9px var(--font-mono); }
.receipt-item p { color: var(--paper-dim); font-size: 11px; line-height: 1.5; }
.receipt-item code { color: var(--muted); font: 9px var(--font-mono); overflow-wrap: anywhere; }

.modal { position: fixed; z-index: 22; left: 50%; top: 50%; width: min(650px,calc(100% - 32px)); max-height: calc(100% - 32px); padding: 28px; overflow-y: auto; color: var(--paper); background: var(--surface); border: 3px solid var(--paper); box-shadow: 12px 12px 0 var(--coral); opacity: 0; pointer-events: none; transform: translate(-50%,-47%); transition: opacity .18s ease, transform .18s ease; }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%); }
.modal-intro { color: var(--paper-dim); font-size: 12px; line-height: 1.5; }
.check-meta { display: flex; justify-content: space-between; gap: 15px; margin: 8px 0 17px; color: var(--muted); font: 9px var(--font-mono); }
.check-submit { width: 100%; padding: 13px; }
.check-result { margin-top: 18px; padding: 15px; border: 2px solid var(--yellow); background: rgba(244,223,51,.08); }
.check-result.certified { border-color: var(--mint); }
.check-result.denied, .check-result.error { border-color: var(--coral); }
.check-result h3 { margin: 0 0 7px; font-family: var(--font-display); text-transform: uppercase; }
.check-result p, .catch-list { color: var(--paper-dim); font-size: 11px; line-height: 1.55; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes meter-pulse { 50% { width: 92%; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 940px) {
  body { overflow-y: auto; }
  .app-shell { display: flex; flex-direction: column; height: auto; min-height: calc(100vh - var(--ticker-h) - var(--header-h)); }
  .conversation { min-height: calc(100vh - var(--ticker-h) - var(--header-h)); border-right: 0; }
  .verification-panel { padding: 0; border-top: 2px solid var(--paper); }
  .rail-mobile-toggle { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; color: var(--ink); background: var(--yellow); font-weight: 900; text-transform: uppercase; cursor: pointer; }
  .rail-mobile-toggle i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--ink); }
  .rail-content { display: none; padding: 24px; }
  .verification-panel.expanded .rail-content { display: block; }
  .verification-panel.expanded .rail-mobile-toggle svg { transform: rotate(180deg); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { overflow-x: hidden; }
  .app-shell, .conversation, .empty-state { width: 100%; max-width: 100%; }
  .annoyance-meter { grid-template-columns: auto minmax(0,1fr); padding: 0 12px; }
  .meter-track, .annoyance-meter strong { display: none; }
  .app-header { padding: 0 14px; }
  .wordmark { font-size: 15px; }
  .brand-logo { width: 32px; height: 32px; }
  .connection { margin-right: 2px; }
  .connection span { display: none; }
  .quiet-button { width: 38px; padding: 0; justify-content: center; }
  .quiet-button span { display: none; }
  .empty-state { grid-template-columns: 1fr; grid-template-rows: auto; gap: 28px; padding: 38px 20px 28px; }
  .interrupt-stamp { width: 76px; height: 76px; justify-self: start; box-shadow: 6px 6px 0 var(--yellow); }
  .interrupt-stamp span { font-size: 32px; }
  .interrupt-stamp b { font-size: 7px; margin-top: 5px; }
  .hero-copy::after { right: 0; top: -24px; }
  .empty-state h1 { max-width: 100%; font-size: clamp(38px,10.5vw,56px); line-height: .86; }
  .empty-state h1 br { display: none; }
  .intro { font-size: 14px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestions button { min-height: 76px; }
  .demo-deck { margin-top: 0; padding-top: 14px; }
  .demo-deck-head { display: block; margin-bottom: 10px; }
  .demo-deck-head h2 { font-size: 27px; }
  .demo-deck-head h2 span { width: 37px; height: 34px; font-size: 15px; }
  .demo-deck-head > p { max-width: none; margin-top: 10px; text-align: left; }
  .demo-rail { width: calc(100vw - 40px); }
  .demo-card { width: 184px; min-width: 184px; height: 132px; }
  .demo-hint { margin-top: 1px; }
  .composer { margin: 0 14px; box-shadow: 5px 5px 0 var(--coral); }
  .privacy-note { display: none; }
  .disclaimer { margin-top: 11px; }
  .message { padding-left: 20px; padding-right: 20px; }
  .message-meta { grid-template-columns: 1fr auto; }
  .message-verdict { border-right: 0; }
  .message-claim { grid-column: 1/-1; grid-row: 2; border-top: 1px solid var(--line); }
  .copy-receipt { grid-column: 2; grid-row: 1; }
  .drawer { padding: 22px; }
  .modal { padding: 20px; box-shadow: 7px 7px 0 var(--coral); }
  .check-meta { flex-direction: column; }
  .composer textarea { font-size: 16px; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 13px; letter-spacing: .025em; }
  .header-actions { gap: 5px; }
  .empty-state h1 { font-size: 38px; }
  .suggestions small { display: none; }
  .suggestions button { min-height: 62px; }
  .send-button span { display: none; }
  .send-button { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .ticker-copy { transform: none; }
  .meter-track i { width: 76%; }
}
