/* ==========================================================================
   /check — the tagging table
   States on <main data-state>: draft | reviewing | review | ready
   ========================================================================== */

.is-app { background: var(--mist); }
.is-app .site-header { background: var(--mist); }
.is-app .site-header.is-scrolled { background: var(--white); }
.app { padding: 22px 0 72px; }

/* ---------------------------------------------------------- Progress rail */
.rail { display: flex; align-items: stretch; margin: 6px 0 30px; list-style: none; padding: 0; gap: 0; }
.rail li {
  --notch: 12px;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 30px; margin-right: -4px;
  background: var(--mist-2); color: var(--ink-3);
  font-stretch: 125%; font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
}
.rail__dot { display: none; }
.rail li[aria-current="step"] { background: var(--ink); color: var(--white); }
.rail li.is-done { background: var(--mint); color: var(--ink); }

.app-notices { display: grid; gap: 12px; margin-bottom: 24px; }
.app-notices:empty { display: none; }

/* ---------------------------------------------------------- Composer */
.draft-grid > * { min-width: 0; }
.draft-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.composer { background: var(--white); border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 36px clamp(18px, 4vw, 44px) 0; }
.composer__intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.composer__intro h1 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: .88; text-transform: uppercase; }
.composer__intro .label { background: var(--mint); color: var(--ink); padding: 6px 10px; }

.where { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px 22px; align-items: end; padding-bottom: 26px; margin-bottom: 26px; border-bottom: var(--line) solid var(--ink); }
.platforms { border: 0; margin: 0; padding: 0; min-width: 0; }
.platforms legend { padding: 0; margin-bottom: 10px; }
.platforms__list { display: flex; flex-wrap: wrap; gap: 6px; }
.platforms__list label { position: relative; }
.platforms__list input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.platforms__list span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: var(--line) solid var(--ink); background: var(--white);
  font-weight: 700; font-size: .9rem; transition: background .12s;
}
.platforms__list input:hover + span { background: var(--mint-soft); }
.platforms__list input:checked + span { background: var(--ink); color: var(--white); }
.platforms__list input:focus-visible + span { box-shadow: 0 0 0 4px var(--mint); }

.caption { min-height: 180px; resize: vertical; line-height: 1.6; }
.counter { font-weight: 700; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--warn); }
.counter.is-over { color: var(--alert); }

.dropzone {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 30px 16px; border: var(--line) dashed var(--ink); background: var(--white);
  cursor: pointer; transition: background .15s;
}
.dropzone:hover, .dropzone.is-over { background: var(--mint-soft); }
.dropzone:focus-within { box-shadow: 0 0 0 4px var(--mint); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { font-stretch: 125%; font-weight: 750; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.dropzone small { color: var(--ink-3); font-size: .88rem; }
.dropzone[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border: var(--line) solid var(--ink); overflow: hidden; background: var(--mist); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__num { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--white); font-weight: 800; font-size: .7rem; padding: 4px 7px; }
.thumb__remove { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); font-size: 1.1rem; line-height: 1; }
.thumb__remove:hover { background: var(--alert); color: var(--white); }
.thumb.is-loading::after { content: "Preparing…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.88); font-weight: 700; font-size: .78rem; }
.thumb__flag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--mint); font-stretch: 125%; font-weight: 700; font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 6px; }

.tokens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 52px; padding: 7px 8px; background: var(--white); border: var(--line) solid var(--ink); cursor: text; }
.tokens:focus-within { box-shadow: 0 0 0 4px var(--mint); }
.tokens input { flex: 1 1 140px; border: 0; outline: 0; background: transparent; min-height: 34px; padding: 0 6px; font-size: 1rem; }
.token {
  --notch: 9px;
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 2px 4px 20px;
  background: var(--people); color: var(--ink); font-weight: 700; font-size: .9rem;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  -webkit-mask: radial-gradient(circle 3px at 10px 50%, transparent 96%, #000 100%);
          mask: radial-gradient(circle 3px at 10px 50%, transparent 96%, #000 100%);
}
.token button { width: 26px; height: 26px; border: 0; background: transparent; color: inherit; font-size: 1.05rem; line-height: 1; }
.token button:hover { background: rgba(0,0,0,.12); }

.more { margin-top: 26px; border-top: var(--line) solid var(--ink); }
.more > summary { cursor: pointer; padding: 18px 0 4px; font-stretch: 125%; font-weight: 750; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; list-style: none; display: flex; gap: 10px; align-items: center; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--white); font-size: .9rem; }
.more[open] > summary::before { content: "−"; }
.more > div { padding-top: 16px; }

.composer__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 32px calc(-1 * clamp(18px, 4vw, 44px)) 0; padding: 18px clamp(18px, 4vw, 44px);
  border-top: var(--line) solid var(--ink); background: var(--mint);
}
.privacy-line { display: flex; gap: 10px; align-items: flex-start; max-width: 34em; margin: 0; font-size: .9rem; font-weight: 500; }
.privacy-line svg { flex: none; margin-top: 3px; }
.composer__foot .btn:hover, .composer__foot .btn:focus-visible { --btn-bg: var(--white); --btn-fg: var(--ink); }

.side-note { padding-top: 8px; }
.side-note > .label { display: inline-block; background: var(--ink); color: var(--white); padding: 6px 10px; }
.side-note ol { list-style: none; margin: 16px 0 0; padding: 0; }
.side-note li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .94rem; color: var(--ink-2); }
.side-note li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; background: var(--c, var(--mint)); outline: 1.5px solid var(--ink); }
.side-note li:nth-child(1) { --c: var(--people); } .side-note li:nth-child(2) { --c: var(--facts); }
.side-note li:nth-child(3) { --c: var(--privacy); } .side-note li:nth-child(4) { --c: var(--context); } .side-note li:nth-child(5) { --c: var(--media); }
.side-note li b { color: var(--ink); font-weight: 800; display: block; }

@media (max-width: 980px) { .draft-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) {
  .where { grid-template-columns: 1fr; }
  .composer { box-shadow: 6px 6px 0 var(--ink); }
  .composer__foot { position: sticky; bottom: 0; z-index: 5; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .composer__foot .btn { width: 100%; }
  .privacy-line { font-size: .84rem; }
  .rail li { padding: 9px 12px 9px 24px; }
}

/* ---------------------------------------------------------- Review layout */
.review-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; margin-bottom: 26px; }
.review-head h1 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .88; text-transform: uppercase; margin-top: 14px; max-width: 14em; }
.review-head h1 em { font-style: normal; background: var(--mint); padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.review-head #review-kicker { display: inline-block; background: var(--ink); color: var(--white); padding: 6px 10px; }
.review-head p { margin: 14px 0 0; color: var(--ink-2); max-width: 46em; font-size: 1.05rem; }
.review-head__actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .review-head { grid-template-columns: 1fr; } .review-head__actions { display: none; } }

.tally { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 26px; padding: 0; list-style: none; }
.tally button {
  --notch: 11px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 26px;
  background: var(--white); color: var(--ink); border: 0;
  font-stretch: 125%; font-weight: 700; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 50%);
  -webkit-mask: radial-gradient(circle 3px at 12px 50%, transparent 96%, #000 100%);
          mask: radial-gradient(circle 3px at 12px 50%, transparent 96%, #000 100%);
}
.tally button[data-k]:not([data-k="all"]) { background: var(--c); color: var(--c-on); }
.tally button .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--ink); color: var(--white); font-stretch: 100%; font-size: .72rem; }
.tally .cat--privacy .n { background: var(--white); color: var(--ink); }
.tally button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tally button[aria-pressed="true"] .n { background: var(--mint); color: var(--ink); }
.tally button .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review > * { min-width: 0; }
.review { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }

/* The draft being tagged */
.proof { position: sticky; top: calc(var(--header-h) + 16px); overflow: hidden; background: var(--white); border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.proof__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: var(--line) solid var(--ink); }
.proof__head .post__avatar { width: 36px; height: 36px; font-size: .68rem; }
.proof__where { font-size: .9rem; color: var(--ink-3); }
.proof__where b { color: var(--ink); font-weight: 800; }
.proof__text { padding: 22px 22px; font-size: 1.1rem; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.proof__text:empty { display: none; }
.proof__link { margin: 0 22px 18px; padding: 10px 12px; border: var(--line) solid var(--ink); font-size: .88rem; overflow-wrap: anywhere; background: var(--mist); }
.proof__mentions { padding: 0 22px 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.proof__media { display: grid; gap: 2px; background: var(--ink); border-top: var(--line) solid var(--ink); }
.proof__media.n-2, .proof__media.n-4 { grid-template-columns: 1fr 1fr; }
.proof__media.n-3 { grid-template-columns: 1fr 1fr; }
.proof__media.n-3 figure:first-child { grid-column: 1 / -1; }
.proof__media.n-5, .proof__media.n-6 { grid-template-columns: 1fr 1fr 1fr; }
.proof__media figure { margin: 0; position: relative; background: var(--mist); }
.proof__media img { width: 100%; height: auto; display: block; }
.proof__media figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white); font-weight: 800; font-size: .7rem; padding: 5px 8px; }
.proof .region { cursor: pointer; }
.proof__collapse { display: none; }

/* Scanning */
.scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; z-index: 4; }
[data-state="reviewing"] .scan { display: block; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--mint); box-shadow: 0 2px 0 var(--ink), 0 -2px 0 var(--ink); animation: scan 2.2s cubic-bezier(.45, .05, .55, .95) infinite alternate; }
@keyframes scan { from { top: 0; } to { top: calc(100% - 10px); } }
@media (prefers-reduced-motion: reduce) { .scan::before { animation: none; top: 50%; } }

/* ---------------------------------------------------------- Tag notes */
.margin { display: grid; gap: 18px; }
.margin__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.margin__label .label { background: var(--ink); color: var(--white); padding: 6px 10px; }

.progress-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: var(--line) solid var(--ink); }
.progress-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: .96rem; }
.progress-list li:last-child { border-bottom: 0; }
.progress-list .pulse { width: 14px; height: 14px; background: var(--c); outline: 1.5px solid var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.progress-list li:nth-child(2) .pulse { animation-delay: .15s; } .progress-list li:nth-child(3) .pulse { animation-delay: .3s; }
.progress-list li:nth-child(4) .pulse { animation-delay: .45s; } .progress-list li:nth-child(5) .pulse { animation-delay: .6s; }
@keyframes pulse { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(45deg) scale(.8); } }
.progress-hint { margin: 16px 0 0; font-size: .92rem; color: var(--ink-2); }

.anno {
  --bg: var(--mist);
  position: relative; background: var(--white); border: var(--line) solid var(--ink);
  padding: 0 18px 18px; animation: tagIn .7s var(--ease) both; transform-origin: 18px 18px;
  scroll-margin-top: calc(var(--header-h) + 90px);
}
.anno:focus { outline: none; }
.anno:focus-visible, .anno.is-active { box-shadow: 8px 8px 0 var(--c); }
@keyframes tagIn { 0% { opacity: 0; transform: rotate(-6deg) translateY(-8px); } 60% { transform: rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
/* notched corner + punched hole: the luggage-tag head */
.anno::before { content: ""; position: absolute; left: -2px; top: -2px; width: 22px; height: 22px; z-index: 2;
  background: linear-gradient(135deg, var(--bg) 0 calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.anno__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 11px 14px 11px 40px; background: var(--c); color: var(--c-on); border-bottom: var(--line) solid var(--ink); }
.anno__top::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--ink); }
.anno__top .mark-chip { background: transparent; color: inherit; padding: 0; clip-path: none; -webkit-mask: none; mask: none; font-size: .64rem; }
.anno__top .ref { vertical-align: 0; margin: 0 8px 0 0; }
.cat--privacy .anno__top .ref { background: var(--mint); color: var(--ink); }
.anno.is-handled { opacity: .55; }
.anno.is-handled .anno__body { display: none; }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
  font-stretch: 125%; font-weight: 750; font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.status--clear::before { background: var(--mint); outline: 1.5px solid var(--ink); }
.status--check::before { background: var(--context); outline: 1.5px solid var(--ink); }
.status--important { background: var(--alert); color: var(--white); box-shadow: none; }
.status--important::before { background: var(--white); }
.status--pending::before { background: var(--facts); outline: 1.5px solid var(--ink); animation: pulse 1s infinite; }
.status--muted { color: var(--ink-3); }
.status--muted::before { background: var(--mist-2); }
.anno__body > .label:first-child { display: block; margin-bottom: 4px; }
.anno__title { font-stretch: 85%; font-weight: 850; font-size: 1.25rem; line-height: 1.12; margin: 0 0 8px; }
.anno__text { margin: 0; color: var(--ink-2); font-size: .97rem; }
.anno__evidence { margin: 10px 0 0; font-size: .88rem; color: var(--ink-3); }
.anno__evidence::before { content: "Seen: "; font-weight: 750; color: var(--ink-2); }
.anno__action { margin: 14px 0 0; padding: 10px 12px; background: var(--mist); font-size: .95rem; font-weight: 600; display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.anno__action::before { content: "→"; font-weight: 900; }
.anno__foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.anno__question { font-weight: 750; font-size: 1.08rem; line-height: 1.35; margin: 2px 0 10px; color: var(--ink); }

.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.choice { min-height: 40px; padding: 0 12px; border: var(--line) solid var(--ink); background: var(--white); font-weight: 700; font-size: .86rem; text-align: left; }
.choice:hover { background: var(--mint-soft); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ask-box { margin-top: 14px; padding: 14px; background: var(--mint); }
.ask-box > .label { color: var(--ink); }
.ask-box textarea { width: 100%; min-height: 80px; margin-top: 8px; border: var(--line) solid var(--ink); background: var(--white); padding: 10px; font-size: 1rem; resize: vertical; }
.ask-box__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.ask-box .btn:hover, .ask-box .btn:focus-visible { --btn-bg: var(--white); --btn-fg: var(--ink); }
.copied { font-stretch: 125%; font-weight: 750; font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }

/* Fact tags */
.claim { margin: 0 0 12px; padding: 12px 14px; background: var(--mist); font-stretch: 85%; font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.claim::before { content: "Claim"; display: block; font-stretch: 125%; font-weight: 750; font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.found { margin: 12px 0 0; }
.found b { display: block; font-stretch: 125%; font-weight: 750; font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.sources { list-style: none; margin: 10px 0 0; padding: 0; border-top: var(--line) solid var(--ink); }
.sources li { padding: 11px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 3px; }
.sources a { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; box-shadow: inset 0 -.45em 0 color-mix(in srgb, var(--facts) 45%, transparent); }
.sources a:hover { box-shadow: inset 0 -1.2em 0 color-mix(in srgb, var(--facts) 45%, transparent); }
.sources a::after { content: " ↗"; }
.sources .src-meta { font-size: .8rem; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stance { font-stretch: 125%; font-weight: 750; font-size: .54rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; }
.stance--supports { background: var(--mint); color: var(--ink); }
.stance--contradicts { background: var(--alert); color: var(--white); }
.stance--context { background: var(--mist-2); color: var(--ink); }

.suggest { margin-top: 12px; display: grid; gap: 6px; font-size: .97rem; }
.suggest del { color: var(--ink-3); text-decoration-color: var(--alert); text-decoration-thickness: 2px; }
.suggest ins { text-decoration: none; background: var(--mint); padding: 2px 5px; font-weight: 600; }

.context-note { padding: 16px 18px; background: var(--context); border: var(--line) solid var(--ink); font-size: .95rem; }
.context-note b { display: block; margin-bottom: 4px; font-stretch: 125%; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.context-note p { margin: 0 0 6px; }

.clear-card { padding: 26px 22px; background: var(--white); border: var(--line) solid var(--ink); }
.clear-card .stamp { margin-bottom: 18px; }

.module-off { font-size: .92rem; color: var(--ink-2); padding: 14px 16px; background: var(--white); border: var(--line) dashed var(--ink); }

/* Mobile: swipeable tag deck */
.deck-nav { display: none; }
@media (max-width: 860px) {
  .review { grid-template-columns: minmax(0, 1fr); }
  .proof { position: relative; top: 0; box-shadow: 6px 6px 0 var(--ink); }
  .proof.is-collapsed .proof__body { max-height: 40vh; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .proof__collapse { display: flex; justify-content: center; padding: 10px; border-top: var(--line) solid var(--ink); background: var(--mist); }
  .margin { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--gutter) 20px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; overscroll-behavior-x: contain; }
  .margin::-webkit-scrollbar { display: none; }
  .margin > * { flex: 0 0 86%; scroll-snap-align: center; }
  .margin > .margin__label, .margin > .progress-wrap { flex-basis: 100%; }
  .anno { animation: none; }
  .deck-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 0; }
  .deck-nav button { width: 48px; height: 48px; border: var(--line) solid var(--ink); background: var(--white); font-size: 1.15rem; font-weight: 800; }
  .deck-nav button:disabled { opacity: .3; }
  .deck-nav .label { color: var(--ink); font-size: .8rem; }
  .tally { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tally::-webkit-scrollbar { display: none; }
  .tally li { flex: none; }
}

/* ---------------------------------------------------------- Final check */
.final { margin-top: clamp(44px, 6vw, 80px); padding: clamp(24px, 4vw, 44px); background: var(--white); border: var(--line) solid var(--ink); }
.final__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
.final > .final__grid > div > .label { display: inline-block; background: var(--mint); color: var(--ink); padding: 6px 10px; }
.final h2 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .88; text-transform: uppercase; margin: 14px 0 12px; }
.final__list { list-style: none; margin: 0; padding: 0; border-top: var(--line) solid var(--ink); }
.final__list li { padding: 15px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.final__actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 26px; }
.final__hint { font-size: .9rem; color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 860px) { .final__grid { grid-template-columns: 1fr; gap: 12px; } .final__actions .btn--teal { width: 100%; } }

.mobile-dock { display: none; position: sticky; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: var(--line) solid var(--ink); gap: 10px; }
@media (max-width: 760px) { [data-state="review"] .mobile-dock { display: flex; } .mobile-dock .btn { flex: 1; } }

/* ---------------------------------------------------------- Ready */
.ready { max-width: 820px; margin: 10px auto 0; padding: clamp(30px, 5vw, 60px); background: var(--white); border: var(--line) solid var(--ink); box-shadow: 12px 12px 0 var(--mint); }
.ready .stamp { font-size: 2.6rem; padding: 16px 30px 14px 54px; margin-bottom: 30px; }
.ready h1 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .88; text-transform: uppercase; margin-bottom: 18px; }
.ready__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 30px 0 0; }
.feedback { margin-top: 44px; padding-top: 28px; border-top: var(--line) solid var(--ink); }
.feedback__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.feedback textarea { margin-top: 12px; min-height: 90px; }

/* ---------------------------------------------------------- Error panel */
.error-panel { padding: 22px 24px; background: #FFE6E1; border: var(--line) solid var(--ink); border-left: 8px solid var(--alert); }
.error-panel h2 { font-stretch: 70%; font-weight: 900; font-size: 1.9rem; line-height: .95; text-transform: uppercase; margin: 8px 0 10px; }
.error-panel p { margin: 0 0 14px; color: var(--ink-2); }
.is-app .btn--ghost { --btn-bg: var(--white); }
