/* Every value here comes from .claude/DESIGN.md. Add new values there first. */
:root {
  --ink: #16181D;
  --ink-2: #4A5360;
  --line: #E1E4E8;
  --fill: #F1F3F5;
  --fill-2: #EEF0F3;
  --soft: rgba(22, 24, 29, 0.08);
  --quiet: rgba(22, 24, 29, 0.07);
  --rec: #B3261E;
  --good: #0B6B45;
  --line-dashed: #C9CED6;
  --paper: #FFFFFF;
  --body: Inter, 'Noto Sans Ethiopic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Outfit, Inter, 'Noto Sans Ethiopic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
body { color: var(--ink); font: 400 16px/normal var(--body); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* A heading that takes the focus after a card goes away: it is read out, but shows no ring. */
.h1[tabindex="-1"]:focus { outline: none; }

/* ---- the page ---- */
.app { max-width: 480px; margin: 0 auto; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.screen--home { background: radial-gradient(120% 52% at 0% 0%, #FFE3D6 0%, rgba(255, 227, 214, 0) 62%), radial-gradient(95% 48% at 100% 6%, #DDEBFF 0%, rgba(221, 235, 255, 0) 64%), var(--paper); }
.screen--asking { background: radial-gradient(85% 46% at 50% 36%, #DDEBFF 0%, rgba(221, 235, 255, 0) 72%), radial-gradient(70% 38% at 86% 30%, #FFE3D6 0%, rgba(255, 227, 214, 0) 72%), var(--paper); }
.boot { padding: 40px 24px; color: var(--ink-2); }
/* The dock stays at the bottom of the screen. The page scrolls under it and fades out in the 20px above its first row. */
.dock { position: sticky; bottom: 0; margin-top: auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 20px); }
.bottom-row { display: flex; align-items: center; gap: 10px; }
.bottom-row .btn-dark { flex: 1 1 0; }
.error { padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---- top row ---- */
.top { min-height: 66px; padding: 22px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-left { display: flex; align-items: center; gap: 10px; }
.top-title { font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: center; }
.top-space { flex: 0 0 48px; }
/* The name of the ask, on one line: a long one ends in "...". */
.top-title.is-ask { flex: 1 1 0; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 0; }
.avatar { width: 38px; height: 38px; border-radius: 19px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* ---- words ---- */
.lead { padding: 56px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.date { font-size: 14px; color: var(--ink-2); }
.h1 { font: 400 38px/1.12 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.h1.is-narrow { max-width: 250px; }
.h1.is-item { font-size: 36px; }
.lead.is-centred { padding-top: 6px; align-items: center; text-align: center; }
.lead.is-centred .pill-soft { align-self: center; }
.lead.is-asking { padding-top: 0; align-items: center; gap: 6px; text-align: center; }
.h1.is-asking { font-size: 26px; line-height: 1.15; letter-spacing: 0; }
.lead-line { font-size: 14px; color: var(--ink-2); }
.note-line { margin-top: 2px; font-size: 13px; color: var(--ink-2); text-align: center; }
.tiny { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-2); }
.strong { font-size: 15px; font-weight: 600; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }

/* ---- pills ---- */
.pill-dark { align-self: flex-start; padding: 6px 12px; border-radius: 14px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.pill-soft { align-self: flex-start; padding: 6px 14px; border-radius: 16px; background: var(--soft); font-size: 14px; font-weight: 600; }
.pill-soft.is-small { padding: 4px 10px; border-radius: 12px; font-size: 12px; }

/* ---- cards and tiles ---- */
.stack { padding: 30px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.card { padding: 14px 16px; border-radius: 26px; border: 1px solid var(--line); background: var(--paper); }
.card.is-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-text .pill-dark, .card-text .pill-soft { margin-top: 4px; }
.thumb { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 18px; background: var(--fill-2); object-fit: cover; display: block; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* An odd tile out takes the whole row, and only the height its words need. */
.tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.tile { min-height: 166px; padding: 16px; border-radius: 26px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.tile .small { line-height: 1.35; }
.big-number { font: 400 34px/1 var(--display); }
/* What the buyer said, in one row: the play button, then "You said" over the voice note's length. */
.card.is-note { margin: 20px 16px 0; padding: 14px 18px; border-radius: 24px; display: flex; align-items: center; gap: 12px; }
.note-words { display: flex; flex-direction: column; gap: 4px; }
.note-time { font-size: 13px; font-weight: 600; }
/* On the tinted home screen the surfaces let a little of the colour through. */
.screen--home .card { background: rgba(255, 255, 255, 0.58); }
.screen--home .tile { background: rgba(255, 255, 255, 0.5); }

/* ---- buttons ---- */
.btn-dark { min-height: 68px; padding: 0 24px; border-radius: 34px; border: 0; background: var(--ink); color: #FFFFFF; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-align: center; }
.btn-round { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 34px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 0; }
.round:disabled, .btn-round:disabled, .btn-dark:disabled { opacity: 0.45; }
.text-button { flex: 0 0 auto; min-height: 44px; padding: 0 8px; border: 0; background: transparent; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- choices ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.choices { display: flex; flex-direction: column; gap: 8px; }
/* A real list sits unseen over whatever shows its value, so the phone opens its own picker. 16px stops iPhones zooming in. */
.has-select { position: relative; }
.has-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.has-select:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
/* A pill is too short for a finger, so its list reaches a little past it. */
.pill-soft.has-select select { inset: -8px -6px; width: calc(100% + 12px); height: calc(100% + 16px); }

/* ---- the stage: a photo with what we know about it around it ---- */
/* The figure keeps the design's 390 x 330 frame and sits in the middle of the stage, whatever its size.
   When the screen is too short for everything, the stage gives back up to 80px. The cut comes evenly off
   the empty space above and below the figure's words, so the photo and the words stay whole.
   477px is everything else at its busiest: top row 66, stage margin 8, heading and area 87, and
   choices and buttons 316 (three rows of choices on a narrow phone). */
.stage { position: relative; height: 330px; height: clamp(250px, 100vh - 477px, 330px); height: clamp(250px, 100dvh - 477px, 330px); margin-top: 8px; overflow: hidden; }
/* A voice note card under the photo (90px with its margin) takes its room from the stage. */
.screen:has(.card.is-note) .stage { height: clamp(250px, 100vh - 567px, 330px); height: clamp(250px, 100dvh - 567px, 330px); }
.stage-figure { position: absolute; left: 50%; top: 50%; width: 390px; height: 330px; margin: -165px 0 0 -195px; }
.stage-figure > svg { position: absolute; left: 0; top: 0; }
.stage-photo { position: absolute; left: 105px; top: 76px; width: 182px; height: 182px; border-radius: 32px; border: 1px solid var(--line); background: var(--fill); object-fit: cover; }
.stage-photo.is-voice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stage-chip { position: absolute; min-width: 64px; max-width: 170px; padding: 8px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-chip.is-1 { left: 28px; top: 44px; }
.stage-chip.is-2 { right: 26px; top: 50px; }
.stage-chip.is-3 { left: 30px; top: 252px; }
.stage-chip.is-4 { right: 40px; top: 248px; }

/* ---- the ask bar ---- */
.ask-label { padding-left: 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ask-extra { display: flex; flex-direction: column; gap: 8px; }
.ask-extra:empty { display: none; }
.understood { min-height: 44px; padding: 0 4px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.understood b { color: var(--ink); font-weight: 600; }
.attached { display: flex; flex-wrap: wrap; gap: 6px; }
.attachment { min-height: 48px; padding: 4px; border-radius: 24px; border: 1px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.attachment img { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; display: block; }
.mini { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--quiet); display: flex; align-items: center; justify-content: center; padding: 0; }
.askbar { min-height: 70px; padding: 0 10px; border-radius: 34px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.66); display: flex; align-items: center; gap: 8px; }
.askbar:focus-within { border-color: var(--ink); }
.askbar input { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 500; }
.askbar input::placeholder { color: var(--ink-2); opacity: 1; }
.round-quiet { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--quiet); display: flex; align-items: center; justify-content: center; padding: 0; }
.send { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 26px; border: 0; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 0; }
.send.is-recording { background: var(--rec); }
.round-quiet:disabled, .send:disabled { opacity: 0.45; }
.recording { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.recording::before { content: ''; flex: 0 0 10px; height: 10px; border-radius: 5px; background: var(--rec); }

/* ---- the net: the ask in the middle, and the sellers it reached around it ---- */
/* The figure keeps the design's 390 x 456 frame, in the middle of the screen's width. When the screen is too
   short for everything, the net gives back up to 72px, cut from the empty space above and below the sellers,
   so every seller stays whole. 318px is everything else: top row 66, net margin 8, the heading and the line
   under it (each up to two lines on a narrow phone) 106, and the button and the note under it 138. */
.net { position: relative; height: 456px; height: clamp(384px, 100vh - 318px, 456px); height: clamp(384px, 100dvh - 318px, 456px); margin-top: 8px; overflow: hidden; }
/* The sellers fill the frame from 26px to 410px, so the figure moves up only once the net is shorter than that. */
.net-figure { position: absolute; left: 50%; top: min(0px, 50% - 218px); width: 390px; height: 456px; margin-left: -195px; }
.net-figure > svg { position: absolute; left: 0; top: 0; }
.net-ask { position: absolute; left: 135px; top: 166px; width: 122px; height: 122px; border-radius: 28px; border: 1px solid var(--line); background: var(--fill); object-fit: cover; }
.net-ask.is-words { padding: 10px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.net-words { max-width: 100px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.bubble { position: absolute; max-width: 168px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.82); display: flex; flex-direction: column; gap: 2px; }
.bubble-who { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble-said { font-size: 13px; font-weight: 700; color: var(--good); white-space: nowrap; }
.bubble.is-waiting { border: 1px dashed var(--line-dashed); background: rgba(255, 255, 255, 0.5); }
.bubble.is-waiting .bubble-who, .bubble.is-waiting .bubble-said { color: var(--ink-2); }
.bubble.is-waiting .bubble-said { font-weight: 400; }
/* 24px lower than in the first L3 drawing, so a long name here never runs into the seller above the ask. */
.bubble.is-1 { left: 20px; top: 86px; }
.bubble.is-2 { right: 18px; top: 100px; }
.bubble.is-3 { left: 132px; top: 26px; }
.bubble.is-4 { left: 26px; top: 340px; }
.bubble.is-5 { right: 22px; top: 352px; }

/* ---- who has it: the answers ---- */
.card.is-summary { margin: 12px 16px 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.summary-head { display: flex; align-items: center; gap: 14px; }
.thumb.is-small { flex-basis: 60px; width: 60px; height: 60px; border-radius: 16px; }
.summary-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.big-number.is-summary { line-height: 1.05; }
/* "2 have something similar" is too long for 34px next to the photo. */
.big-number.is-summary.is-long { font-size: 26px; line-height: 1.15; }
.progress-block { display: flex; flex-direction: column; gap: 6px; }
.progress { height: 6px; border-radius: 3px; background: rgba(22, 24, 29, 0.12); overflow: hidden; }
/* The width is set from the script, because the page's security policy refuses style attributes. */
.progress > span { display: block; width: 0; height: 6px; border-radius: 3px; background: var(--ink); }
.sorts { padding: 12px 16px 0; display: flex; gap: 6px; }
/* All four stay on one row, as drawn: a long name goes onto two lines inside its button. */
.sorts .chip { flex: 0 1 auto; justify-content: center; text-align: center; }
.answers { padding-bottom: 24px; }
.group { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.group + .group { padding-top: 20px; }
.group-title { margin: 0 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.row { padding: 12px 12px 12px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; gap: 10px; }
.row-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.row-who { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.row-price { font-size: 18px; font-weight: 700; }
.row-condition { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.row-note { font-size: 14px; }
.row-confirmed { font-size: 13px; font-weight: 600; color: var(--good); }
.btn-dark.is-row { flex: 0 0 auto; min-height: 52px; padding: 0 20px; border-radius: 26px; font-size: 15px; }
.foot { margin-top: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.btn-light { min-height: 52px; padding: 0 20px; border-radius: 26px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.btn-light.is-wide { width: 100%; min-height: 64px; border-radius: 32px; font-size: 16px; justify-content: space-between; gap: 12px; text-align: left; }
.btn-aside { font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: right; }
.quiet-end { margin-top: auto; padding: 0 24px calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---- one seller in detail ---- */
.pill { min-width: 0; padding: 8px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; text-align: center; }
.tag { flex: 0 0 auto; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.seller-photo { position: relative; margin: 14px 16px 0; height: 302px; border-radius: 32px; border: 1px solid var(--line); background: var(--fill); overflow: hidden; }
.seller-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 18px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.seller-words { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 8px; }
/* With no photo, the words start 28px under the top row. */
.top + .seller-words { padding-top: 28px; }
.seller-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.seller-who .pill-soft { align-self: center; }
.seller-name { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.price-big { font: 400 46px/1.05 var(--display); letter-spacing: -0.01em; }
.price-condition { font: 500 16px var(--body); color: var(--ink-2); letter-spacing: 0; }
.seller-note { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.seller-record { font-size: 14px; font-weight: 600; color: var(--good); }
.seller-actions { padding: 16px 16px 0; display: flex; gap: 10px; }
.seller-actions .btn-light { flex: 1 1 0; min-width: 0; text-align: center; }
.btn-light.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.card.is-directions { margin: 12px 16px 0; padding: 14px 18px; border-radius: 24px; display: flex; flex-direction: column; gap: 4px; }
.card.is-directions .tiny { font-weight: 700; }
.directions-text { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
/* At either end of the list the step button stays, with a lighter arrow. */
.btn-round.is-end:disabled { opacity: 1; color: var(--line-dashed); }

/* ---- did you buy it? (on home) ---- */
.btn-dark.is-mid { min-height: 56px; border-radius: 28px; font-size: 16px; }
.btn-light:disabled { opacity: 0.45; }
/* While home asks, the heading sits a little higher and the tiles are shorter, as drawn. */
/* The frame puts the heading 108px from the top: its 60px top row and 48px. The built top row is 66px, so 42px here. */
.screen--home.is-question .lead { padding-top: 42px; }
.screen--home.is-question .h1.is-narrow { max-width: 260px; }
.screen--home.is-question .stack { padding-top: 26px; }
.screen--home.is-question .tile { min-height: 154px; }
.card.is-question { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.screen--home .card.is-question { background: rgba(255, 255, 255, 0.62); }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.question-buttons { display: flex; gap: 10px; }
.question-buttons .btn-dark { flex: 1 1 0; padding: 0 16px; }
.btn-light.is-answer { flex: 0 0 112px; min-height: 56px; padding: 0 12px; border-radius: 28px; border-color: rgba(22, 24, 29, 0.25); background: rgba(255, 255, 255, 0.6); }
.question-note { padding: 0 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---- the way in for sellers, on home ---- */
.pill-link { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.count-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- joining, and the seller's details ---- */
.lead.is-form { padding-top: 32px; }
.lead-text { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.form { flex: 1 0 auto; padding: 26px 16px 0; display: flex; flex-direction: column; gap: 18px; }
.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-label { padding-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-hint { padding-left: 6px; font-size: 13px; color: var(--ink-2); }
.field { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 16px var(--body); }
.field:focus { border-color: var(--ink); outline: 0; }
.field.is-long { padding: 14px 16px; line-height: 1.4; resize: none; }
.field-row { display: flex; gap: 10px; }
.field-row .btn-light { flex: 1 1 0; padding: 0 16px; }
.field-done { min-height: 52px; padding: 0 4px 0 20px; border-radius: 26px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
/* 18px of the form's gap and 6px here make the frame's 24px above the button. */
.form-end { margin-top: auto; padding: 6px 0 calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.form-end > :empty { display: none; }
.form-end .note-line { margin-top: 0; }

/* ---- your asks ---- */
.shop-body { flex: 1 0 auto; display: flex; flex-direction: column; }
.ask-rows { padding: 26px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.ask-row { padding: 12px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; gap: 12px; }
.thumb.is-row { flex-basis: 52px; width: 52px; height: 52px; border-radius: 14px; }
.ask-row-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ask-row-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.group.is-answered { padding-top: 22px; }
.answered-row { padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 3px; }
.answered-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.answered-line { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.answered-line.is-offer { color: var(--good); }
.shop-body .quiet-end { padding-top: 24px; }

/* ---- an ask arrives (the seller's "Do you have this?") ---- */
.ask-row .ask-row-text + svg { flex: 0 0 auto; }
.lead.is-ask-seller { padding-top: 26px; }
/* The seller's stage is smaller than the check screen's: 390 x 300, the photo 172 (170 + border). */
/* On a short screen the stage gives back room, as on the check screen, so the title, the buyer's words, the
   voice note and the pill stay above the answers. 355px is everything else (top row 70, heading 96, the
   stage's margin 4, title and pill 73, the bottom row 112); each optional part adds its own height.
   It never goes below what the photo and the words around it need, 212px (one row of words) or 250px
   (two), so only empty space is cut. If that is still too tall, the page scrolls, and at the end of
   the scroll the bottom row sits after the pill. */
.screen:has(.buyer-wrote) { --ask-wrote: 28px; }
.screen:has(.ask-words ~ .card.is-note) { --ask-voice: 90px; }
.screen:has(.notice.is-dock) { --ask-notice: 49px; }
.stage.is-ask, .screen:has(.card.is-note) .stage.is-ask {
  --ask-rest: calc(355px + var(--ask-wrote, 0px) + var(--ask-voice, 0px) + var(--ask-notice, 0px));
  height: 300px;
  height: clamp(var(--stage-min, 212px), 100vh - var(--ask-rest), 300px);
  height: clamp(var(--stage-min, 212px), 100dvh - var(--ask-rest), 300px);
  margin-top: 4px;
}
.stage.is-ask:has(.stage-chip.is-3) { --stage-min: 250px; --stage-mid: 151px; }
/* The figure keeps the part that matters in view: the words and the photo, from 30px to 242px of its 300
   (to 280px with a second row of words). At full height it sits as drawn. */
.stage.is-ask .stage-figure { width: 390px; height: 300px; top: max(100% - 300px, min(0px, 50% - var(--stage-mid, 136px))); margin: 0 0 0 -195px; }
.stage.is-ask .stage-photo { left: 110px; top: 66px; width: 172px; height: 172px; }
.stage.is-ask .stage-chip { background: var(--paper); }
/* On a screen narrower than the 390px figure, the words move in so they stay 8px inside the screen. */
.stage.is-ask .stage-chip.is-1 { left: max(28px, 203px - 50vw); top: 34px; }
.stage.is-ask .stage-chip.is-2 { right: max(26px, 203px - 50vw); top: 40px; }
.stage.is-ask .stage-chip.is-3 { left: max(30px, 203px - 50vw); top: 232px; }
.stage.is-ask .stage-chip.is-4 { right: max(40px, 203px - 50vw); top: 228px; }
.stage-photo.is-words { padding: 12px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.stage-photo.is-words .net-words { max-width: 140px; }
.ask-words { padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ask-title { font: 400 30px/1.12 var(--display); overflow-wrap: anywhere; }
.buyer-wrote { font-size: 14px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.ask-words .pill-soft { align-self: center; margin-top: 2px; }
.btn-dark[aria-disabled="true"], .btn-round[aria-disabled="true"], .btn-word[aria-disabled="true"], .btn-word:disabled { opacity: 0.45; }
/* "No" and "Similar" beside the main answer: the bottom row's round buttons, widened to hold a word. */
.btn-word { flex: 0 0 auto; min-width: 68px; height: 68px; padding: 0 20px; border-radius: 34px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* ---- the answer ---- */
.answer-form { flex: 1 0 auto; display: flex; flex-direction: column; }
.answer-head { padding: 36px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.answer-head.is-for { padding-top: 18px; }
.answer-heading { margin: 0; font: 400 30px/1.15 var(--display); letter-spacing: -0.01em; }
.price-box { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
/* The box has no outline of its own; while typing, its line grows thicker instead. */
.price-box:focus-within { box-shadow: 0 2px 0 var(--ink); }
/* 74 tall with 1px 2px padding: the frame's 72px box with the browser's own padding on top. */
.price-input { flex: 1 1 0; min-width: 0; min-height: 74px; padding: 1px 2px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 64px var(--display); letter-spacing: -0.01em; }
.price-input::placeholder { color: var(--ink-2); opacity: 1; }
.price-unit { font-size: 20px; font-weight: 500; color: var(--ink-2); }
.answer-condition { padding: 18px 16px 0; display: flex; gap: 10px; }
.btn-light.is-tall { flex: 1 1 0; min-height: 56px; padding: 0 16px; border-radius: 28px; gap: 10px; }
.answer-field { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.answer-head + .answer-field { padding-top: 16px; }
.answer-media { padding: 12px 16px 0; display: flex; gap: 10px; }
/* Little padding at the sides, as drawn, so "Add your photo" stays on one line next to its icon. */
.answer-media .btn-light { padding: 0 8px; }
.answer-attached { padding: 12px 16px 0; }
.recording-dot { flex: 0 0 10px; height: 10px; border-radius: 5px; background: var(--rec); }
.notice { margin: 16px 16px 0; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; font-weight: 600; }

/* ---- the buyer's phone number ---- */
.lead.is-phone { padding-top: 36px; }
.phone-form { flex: 1 0 auto; display: flex; flex-direction: column; }
.phone-form > .field-block { padding: 22px 16px 0; }
/* A link inside a line of text ("Change"). Its tap area reaches 14px above and below the words. */
.text-link { padding: 14px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* "Sellers never see your name." has the frame's 1.45 line height, which also sets where the button sits. */
.phone-form .note-line { line-height: 1.45; }

/* ---- credits (the pilot) ---- */
.pill-link.is-credits { align-self: flex-start; margin-top: 4px; background: var(--paper); }
.pill-aside { font-weight: 500; color: var(--ink-2); }
.answered-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.answered-row.is-link { padding: 12px 14px 12px 16px; flex-direction: row; align-items: center; gap: 12px; }
.answered-row.is-link > svg { flex: 0 0 auto; }
.notice.is-dock { margin: 0; }
.answer-end { display: flex; flex-direction: column; gap: 10px; }
.answer-end .note-line { margin-top: 0; }
.lead.is-credits { padding-top: 28px; gap: 8px; }
.credit-count { display: flex; align-items: baseline; gap: 10px; font-weight: 400; outline: 0; }
.credit-number { font: 400 64px/1 var(--display); letter-spacing: -0.01em; }
.card.is-free { margin: 22px 16px 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.free-title { font-size: 16px; font-weight: 600; }
.free-text { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ask-more { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.ask-more .btn-light { flex: 0 0 auto; font-size: 16px; }
.free-hint { padding: 0 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.quiet-end.is-tall { line-height: 1.45; }

/* ---- the buyer's number ---- */
.lead.is-buyer { padding-top: 28px; }
.card.is-number { margin: 22px 16px 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card.is-number .tiny { font-weight: 700; }
.buyer-number { font: 400 38px/1.1 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.number-note { margin: 12px 26px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.wrong-number { padding: 14px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.wrong-number .text-button { align-self: flex-start; padding: 0; }
.wrong-number.is-asking { flex-direction: row; gap: 20px; }
.wrong-number.is-done { font-size: 14px; font-weight: 600; outline: 0; }
.wrong-hint { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
/* The line under "Call" on the buyer's number has the frame's 1.45 line height, which also sets where the button sits. */
.note-line.is-tall { line-height: 1.45; }

/* ---- found today ---- */
.found-list { margin: 0; padding: 14px 26px 0; list-style: none; display: flex; flex-direction: column; }
.found-item { padding: 12px 6px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.found-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.found-more { padding: 14px 32px 0; font-size: 13px; color: var(--ink-2); }

/* ---- alerts for sellers ---- */
.alert-card { padding: 14px 14px 14px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.alert-words { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.alert-title { font-size: 15px; font-weight: 600; }
.alert-line { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.alert-words .error { margin-top: 6px; }
.btn-dark.is-small { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; }
.alert-on { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.text-button.is-inline { min-height: 44px; padding: 0; font-size: 13px; color: var(--ink); }
