/* shozen, look C5: the buyer's side as a phone app. White ground, soft near-white panels, black pills.
   Colour comes from the product photos; green and vermilion are for state only. No gradient, no blur, no drawn shape (D10).
   D8 puts the first design's structure back under it: large bold titles, grouped lists with a hairline between rows,
   a status line with a small dot, a black pill with a plain second action under it, the sheet you check a request on.
   Type: Hanken Grotesk, one family; large titles are bold, as in the first design.
   Fonts, the reset and the photo tile (.ph) come from ../shared/base.css. */
:root {
  --bg: #ffffff;
  --panel: #f5f5f3;
  --raised: #ffffff;
  --tile: #f1f0ed;
  --line: #e8e8e5;
  --line-2: #cfcfca;
  --field: #878782;
  --ink: #0d0d0d;
  --ink-2: #5d5d59;
  --accent: #cc3510;
  --live: #1a8a4a;
  --primary: #0d0d0d;
  --on-primary: #ffffff;
  --ground: #e9e9e6;
  --scrim: rgba(13, 13, 13, .38);
  --ring: rgba(13, 13, 13, .12);
  --shadow: 0 12px 40px rgba(13, 13, 13, .14), 0 2px 8px rgba(13, 13, 13, .06);
  --shadow-s: 0 6px 24px rgba(13, 13, 13, .08);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0c0c0d;
  --panel: #1a1a1c;
  --raised: #2a2a2d;
  --tile: #ecebe8;
  --line: #2a2a2d;
  --line-2: #4a4a4e;
  --field: #77777b;
  --ink: #f4f4f2;
  --ink-2: #a5a5a1;
  --accent: #ff8a5c;
  --live: #4cd487;
  --primary: #f4f4f2;
  --on-primary: #0c0c0d;
  --ground: #000000;
  --scrim: rgba(0, 0, 0, .6);
  --ring: rgba(244, 244, 242, .18);
  --shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 244, 242, .08);
  --shadow-s: 0 6px 24px rgba(0, 0, 0, .5);
}
/* the drawn phone: an iPhone's safe areas */
:root[data-device] { --sat: 47px; --sab: 34px; }

html, body { height: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 16px/24px var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: 0; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.ic-w { display: inline-flex; flex: none; }
.sub { color: var(--ink-2); font-size: 14px; line-height: 20px; }
/* W1: the label on an offer that no seller sent ("From a public listing"). Small, beside the seller's name; it goes to its own line when there is no room. */
.sub-src { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.src { display: inline-block; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 12px/18px var(--f); color: var(--ink-2); white-space: nowrap; }
.honest { padding: 0 4px; text-wrap: pretty; }
.fine { color: var(--ink-2); font-size: 13px; line-height: 18px; }
.hint { color: var(--ink-2); font-size: 12px; line-height: 16px; }
.lbl { color: var(--ink-2); font: 500 13px/18px var(--f); }
.err { color: var(--accent); font: 500 14px/20px var(--f); }
.price { font: 600 20px/24px var(--f); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { display: block; font: 400 12px/16px var(--f); color: var(--ink-2); text-align: right; }
.price-l { font-weight: 700; font-size: 22px; letter-spacing: -.01em; }

/* ---------- the phone ---------- */
.wrap { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 48px; padding: 28px; }
.device { position: relative; grid-column: 2; width: 390px; height: 844px; background: var(--bg); border-radius: 54px; overflow: hidden; box-shadow: 0 0 0 11px var(--ink), var(--shadow); isolation: isolate; }
:root[data-theme="dark"] .device { box-shadow: 0 0 0 11px var(--raised), var(--shadow); }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sb, .hi { display: none; }
:root[data-device] .sb { display: flex; position: absolute; z-index: 70; top: 0; left: 0; right: 0; height: 47px; padding: 14px 30px 0 38px; align-items: center; justify-content: space-between; font: 600 16px/20px var(--f); pointer-events: none; }
.sb svg { height: 13px; width: auto; display: block; }
.sb span { display: flex; gap: 6px; align-items: center; }
:root[data-device] .hi { display: block; position: absolute; z-index: 70; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); pointer-events: none; }
.safe { height: var(--sab); flex: none; background: var(--bg); }
@media (max-width: 500px) {
  .wrap { display: block; padding: 0; height: 100%; }
  .device { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none !important; }
  .side { display: none !important; }
}

/* ---------- the bar on top: the menu or a way back; a large title in the page gives way to a small one here ---------- */
.nav { flex: none; display: grid; grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(44px, auto); align-items: center; gap: 4px; padding: var(--sat) 8px 0; min-height: calc(var(--sat) + 52px); background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { font: 700 18px/24px var(--f); letter-spacing: -.02em; }
.nav-b { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 22px; color: var(--ink); }
.nav-b .ic { width: 24px; height: 24px; }
.nav-d { position: absolute; top: 9px; right: 7px; box-shadow: 0 0 0 2px var(--bg); }
.nav-back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; border: 0; background: none; border-radius: 22px; font: 400 17px/22px var(--f); color: var(--ink); }
.nav-back .ic { width: 24px; height: 24px; }
.nav-c { min-width: 0; text-align: center; }
.nav-t { font: 600 16px/20px var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.nav-s { font: 400 12px/16px var(--f); color: var(--ink-2); }
.nav-fade { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.nav.is-small .nav-fade { opacity: 1; transform: none; }
.nav-o { display: grid; place-items: center; min-width: 44px; height: 44px; }

.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.view { min-height: 100%; display: flex; flex-direction: column; padding: 4px 20px 24px; }
.view.push { animation: push .28s var(--ease); }
.view.fade { animation: fade .2s ease-out; }
@keyframes push { from { opacity: 0; transform: translateX(28px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.lt { font: 700 34px/40px var(--f); letter-spacing: -.025em; text-wrap: balance; }
.sec-h { font: 700 22px/28px var(--f); letter-spacing: -.015em; }
.sec-n { font-weight: 400; color: var(--ink-2); }
.lead-p { margin: -8px 0 16px; font-size: 15px; line-height: 22px; }
.lead-p b { display: block; font: 600 17px/24px var(--f); color: var(--ink); }

/* ---------- pills, chips, the plain second action ---------- */
.pill { min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/20px var(--f); text-align: center; transition: transform .12s, opacity .12s; }
.pill:active { transform: scale(.975); }
.pill-p { background: var(--primary); color: var(--on-primary); }
.pill-s { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.pill-t { background: none; color: var(--ink); }
.pill-w { width: 100%; }
.pill-l { min-height: 56px; }
.pill-xs { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pill[disabled] { opacity: .6; }
.pill .ic-b { width: 18px; height: 18px; }
.txt { width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 22px; font: 600 16px/20px var(--f); color: var(--ink); text-align: center; }
.txt:active { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; max-width: 100%; padding: 0 16px; border-radius: 999px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font: 500 15px/20px var(--f); text-align: left; transition: transform .12s, background-color .15s, color .15s; }
button.chip:active, a.chip:active { transform: scale(.96); }
.chip .ic { width: 18px; height: 18px; }
.chip-r[aria-checked="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip-q { border-style: dashed; border-color: var(--line-2); color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .pill { padding: 0 12px; }
.col2 { display: flex; flex-direction: column; gap: 4px; }
.lk { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: 600 12px/16px var(--f); color: var(--ink); }
.lk-b { font-size: 14px; align-self: flex-start; color: var(--ink-2); }

/* ---------- product photos; the small dot that says a request is looking (green) or has something to see ---------- */
.th { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.th img { padding: 4px; }
.th-s { width: 48px; height: 48px; border-radius: 12px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.sdot-live { background: var(--live); }
.sdot-new { background: var(--accent); }
.peek { display: flex; padding-left: 2px; }
.peek .th { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 2.5px var(--panel); }
.peek .th + .th { margin-left: -10px; }
.peek-s .th { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- the menu: a panel from the left ---------- */
.drawer { position: absolute; z-index: 45; top: 0; bottom: 0; left: 0; width: min(84%, 320px); display: flex; flex-direction: column; padding: calc(var(--sat) + 8px) 12px calc(var(--sab) + 12px); background: var(--bg); box-shadow: var(--shadow); }
.drawer.is-sliding { animation: slide .28s var(--ease); }
@keyframes slide { from { transform: translateX(-100%); } }
.dr-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px 8px; }
.dr-who { flex: 1; min-width: 0; }
.dr-l { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dr-i { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border: 0; background: none; border-radius: 16px; font: 500 17px/22px var(--f); color: var(--ink); text-align: left; }
.dr-i .ic { width: 22px; height: 22px; }
.dr-i[aria-current] { background: var(--panel); font-weight: 600; }
.dr-n { flex: 1; min-width: 0; }
.dr-c { font: 500 14px/20px var(--f); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.dr-new { color: var(--accent); font-weight: 600; }
.dr-f { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.dr-f .txt { width: auto; padding: 0 8px; }
.dr-f .lk-b { padding: 0 8px; }

/* ---------- the dock: a screen's main button, a plain second one under it, the text box ---------- */
.dock { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; background: var(--bg); }
.acts { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.acts .err { text-align: center; padding-bottom: 6px; }
.box { display: flex; align-items: flex-end; gap: 4px; padding: 3px 3px 3px 18px; border: 1px solid var(--field); border-radius: 26px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.box textarea, .box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; padding: 10px 0; font: 400 16px/24px var(--f); max-height: 120px; }
.box input { height: 44px; }
.box ::placeholder, .inp::placeholder { color: var(--ink-2); opacity: 1; }
.send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.send:active { transform: scale(.94); }

/* ---------- grouped lists, as in the first design: a soft grey card, a hairline between rows ---------- */
.group { display: flex; flex-direction: column; background: var(--panel); border-radius: 20px; margin-bottom: 12px; }
.group > li + li { border-top: 1px solid var(--line); }
.ck { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 9px 16px; border: 0; background: none; color: var(--ink); text-align: left; }
.ck:focus-visible { outline-offset: -3px; border-radius: 20px; }
.ck-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-n { font: 600 16px/22px var(--f); }
.ck-g { flex: 1; min-width: 0; }
.ck-s { font: 400 14px/20px var(--f); color: var(--ink-2); }
.ck-c { flex: none; font: 500 15px/20px var(--f); color: var(--ink-2); }
.ck-add .ck-n { font-weight: 500; }
.ck-q .ck-n { color: var(--ink-2); }
.ck.is-arriving { animation: rise .32s var(--ease) backwards; }
.ck .row-c { width: 18px; }

/* ---------- requests (home) ---------- */
.v-home .lt, .v-liked .lt, .v-knows .lt, .v-account .lt, .v-settings .lt { margin: 4px 0 16px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 24px; background: var(--panel); margin-bottom: 8px; min-height: 72px; }
.agent p { flex: 1; min-width: 0; font: 400 15px/20px var(--f); }
.agent b { display: block; font-weight: 600; }
.agent-n { flex-direction: column; align-items: stretch; padding: 14px; }
.agent-t { display: flex; align-items: center; gap: 12px; }
.agent-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-e .err { font-size: 15px; }
.rows { display: flex; flex-direction: column; }
.rows li + li { border-top: 1px solid var(--line); }
.row { width: 100%; min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 9px 0; border: 0; background: none; color: var(--ink); text-align: left; }
.row:active { background: var(--panel); }
.row .th { width: 52px; height: 52px; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-n { font: 600 17px/22px var(--f); }
.row-s { display: flex; align-items: center; gap: 6px; font: 400 15px/20px var(--f); color: var(--ink-2); }
.is-new .row-s { color: var(--accent); font-weight: 600; }
.row-c { width: 24px; flex: none; display: grid; place-items: center; color: var(--line-2); }
.row-c .ic { width: 18px; height: 18px; }
.short { margin-top: 12px; }
.cap { padding: 4px 4px 0; }
.sk-c { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-b { width: 62%; height: 14px; border-radius: 7px; background: var(--panel); animation: pulse 1.2s ease-in-out infinite alternate; }
.sk-b2 { width: 38%; height: 12px; }
.sk-g { height: 112px; margin-top: 12px; border-radius: 20px; background: var(--panel); animation: pulse 1.2s ease-in-out infinite alternate; }
.sk-n { height: 88px; margin: 0 0 8px; border-radius: 24px; }
.sk-r { display: block; height: 56px; border-radius: 20px; background: var(--panel); animation: pulse 1.2s ease-in-out infinite alternate; }
.sk-r2 { width: 60%; height: 44px; border-radius: 22px; }
@keyframes pulse { to { opacity: .45; } }

/* ---------- a new request: the question, examples with a photo each, how it works, what you asked before ---------- */
.hello { padding-top: 4px; }
.hello .lt { margin-bottom: 4px; }
.egs, .how, .recent { margin-top: 12px; }
.egs > .lbl, .how > .lbl, .recent > .lbl { display: block; margin: 0 4px 6px; }
.eg-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eg-g li { display: flex; }
.eg { width: 100%; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 20px; background: var(--panel); color: var(--ink); text-align: left; overflow: hidden; transition: transform .12s; }
.eg:active { transform: scale(.98); }
.eg-ph { width: 100%; height: 84px; flex: none; }
.eg-ph img { padding: 8px; }
.eg-t { padding: 8px 12px 10px; font: 500 14px/19px var(--f); }
/* three numbered steps, joined by a line that ends in a small arrow: a sequence, not three tiles */
.how-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 4px; border-radius: 20px; background: var(--panel); }
.how-l li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 8px; }
.how-h { display: flex; align-items: center; gap: 10px; width: 100%; height: 24px; margin-bottom: 6px; }
.how-i { font: 600 14px/24px var(--f); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.how-a { position: relative; flex: 1; height: 1px; background: var(--line-2); }
.how-a i { position: absolute; top: -3px; right: 2px; width: 6px; height: 6px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: rotate(45deg); }
.how-l b { font: 600 14px/18px var(--f); }
.how-s { font: 400 12px/16px var(--f); color: var(--ink-2); }

/* ---------- the chat ---------- */
.thread { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 12px; }
.thread li.is-arriving { animation: rise .3s var(--ease) backwards; }
.me { align-self: flex-end; max-width: 84%; }
.me p { background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 20px 20px 6px 20px; }
.ag { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 88%; }
.ag-b { background: var(--panel); padding: 10px 16px; border-radius: 20px 20px 20px 6px; }
.ag-b .hint { margin-top: 6px; }
.ag.is-arriving + .ag.is-arriving { animation-delay: .12s; }
.nt { align-self: center; text-align: center; font: 400 13px/18px var(--f); color: var(--ink-2); padding: 2px 12px; }
.rd-t { color: var(--ink-2); }

/* ---------- the request, checked. In a draft it is a sheet that has slid up over the chat. ---------- */
.v-draft { background: var(--panel); padding-bottom: 0; }
.v-draft .ag-b { background: var(--raised); }
.v-draft .egs { padding-bottom: 20px; }
.v-draft .eg { background: var(--raised); }
.check { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.check > .lbl { margin: 8px 4px 0; }
.check > .sec-h + .lbl { margin-top: 4px; }
.check .group { margin-bottom: 0; }
.check > .fine, .check > .err { padding: 2px 4px 0; }
.check > .txt { align-self: flex-start; width: auto; padding: 0 4px; color: var(--ink-2); }
.check > .chips { padding-top: 2px; }
.check-d { flex: 1; margin: 8px -20px 0; padding: 10px 20px 20px; background: var(--bg); border-radius: 30px 30px 0 0; box-shadow: var(--shadow-s); }
.check-d .sh-grab { margin-bottom: 8px; }
.check-d.is-rising { animation: lift .42s var(--ease); }
@keyframes lift { from { opacity: 0; transform: translateY(56px); } }
.check-sk { gap: 8px; }
.fold { width: 100%; min-height: 52px; margin-top: 4px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; font: 600 16px/20px var(--f); color: var(--ink); border-radius: 18px; }
.fold .sub { font-weight: 400; }
.fold .ic { transition: transform .2s; color: var(--ink-2); }
.fold[aria-expanded="true"] .ic { transform: rotate(180deg); }

/* ---------- what the request is doing: its name as the title, a status line, then what is going on ---------- */
.v-stage .lt { margin: 4px 0 6px; }
.status { display: flex; align-items: center; gap: 8px; font: 400 17px/24px var(--f); color: var(--ink-2); }
.status b { font-weight: 600; color: var(--ink); }
.status .sdot { width: 10px; height: 10px; }
.status span + b, .status b + span { margin-left: -4px; }
.stage { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 16px; }
.st-h { font: 700 22px/28px var(--f); letter-spacing: -.015em; text-wrap: balance; }
.st-h + .sub { margin-top: -8px; }
.st-k { font: 500 14px/20px var(--f); color: var(--ink-2); margin-bottom: -8px; }
.st-p { font: 400 15px/22px var(--f); color: var(--ink-2); }
.live { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 24px; background: var(--panel); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; }
.stat-v { font: 600 22px/26px var(--f); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-l { font: 400 12px/15px var(--f); color: var(--ink-2); }
.time { display: flex; flex-direction: column; gap: 6px; }
.time-b { display: block; height: 2px; background: var(--line-2); }
.time-b i { display: block; height: 100%; min-width: 2px; background: var(--ink); }
.time-l { display: flex; justify-content: space-between; gap: 12px; font: 400 13px/18px var(--f); color: var(--ink-2); }
.time-l span:first-child { font-weight: 600; color: var(--ink); }
.outs { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.out-l { display: flex; flex-direction: column; }
.out { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; }
.out + .out { border-top: 1px solid var(--line); }
.out.is-arriving { animation: rise .4s var(--ease); }
.out-t { display: flex; flex-direction: column; min-width: 0; }
.out-n { font: 600 15px/20px var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-k { display: flex; align-items: flex-start; gap: 4px; font: 500 14px/20px var(--f); }
.out-k .ic { width: 14px; height: 14px; margin-top: 3px; }
.out-w { font: 400 14px/20px var(--f); color: var(--ink-2); }
.out-p { font: 500 15px/20px var(--f); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.tiles li { display: flex; flex-direction: column; min-width: 0; }
.tile { aspect-ratio: 1; border-radius: 18px; }
.tile img { padding: 8px; }
.tile-p { margin-top: 6px; font: 600 16px/22px var(--f); font-variant-numeric: tabular-nums; }
.tile-s { font: 400 13px/18px var(--f); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-n { padding: 8px 4px 0; }
.note { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 14px; border-radius: 22px; background: var(--panel); font: 400 14px/18px var(--f); }
.note.is-arriving { animation: rise .3s var(--ease); }
.note p { flex: 1; min-width: 0; padding: 8px 0; }
.note .ic { width: 18px; height: 18px; }

/* a liked offer, with the first design's density */
.liked { display: flex; flex-direction: column; gap: 12px; }
.lk-o { display: flex; flex-direction: column; border-radius: 24px; background: var(--panel); overflow: hidden; }
.lk-ph { height: 200px; flex: none; }
.lk-ph img { padding: 14px; }
.lk-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px; }
.lk-r { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 0 -8px; padding: 0; border: 0; background: none; font: 500 13px/18px var(--f); color: var(--ink-2); text-align: left; }
.lk-n { font: 600 17px/22px var(--f); }
.lk-b .price small { text-align: left; }
.lk-b .proofs { margin: 8px 0 12px; }
.lk-f { text-align: center; padding-top: 4px; }
.proofs { display: flex; flex-direction: column; gap: 6px; }
.proof { display: flex; gap: 10px; font: 400 14px/20px var(--f); }
.proof .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--live); }
.proof b { display: block; font-weight: 600; }
.proof q { display: block; color: var(--ink-2); quotes: '“' '”'; }

/* ---------- one offer at a time ---------- */
.v-rv { padding: 0 16px 12px; }
.rv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.deck { position: relative; flex: 1; min-height: 320px; }
.offer { position: absolute; inset: 0 0 14px; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-s); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.offer.is-arriving { animation: rise .32s var(--ease); }
.offer-under { transform: translateY(14px) scale(.93); box-shadow: none; background: var(--panel); }
.offer-under .ph { opacity: .35; }
.offer:not(.is-drag) { transition: transform .22s var(--ease), opacity .2s; }
.offer.offer-held { transform: rotate(-3deg) scale(.9) !important; }
.offer.out-r { transform: translateX(120%) rotate(14deg) !important; opacity: 0; }
.offer-ph { flex: 1 1 0; min-height: 120px; }
.offer-ph img { padding: 14px; pointer-events: none; }
.offer-b { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 3px; }
.offer-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.rank { font: 700 22px/24px var(--f); font-variant-numeric: tabular-nums; }
.offer-n { font: 600 17px/22px var(--f); letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.offer-b > .lbl { margin-top: 8px; }
.whys { font: 400 14px/20px var(--f); }
.stamp { position: absolute; top: 20px; padding: 8px 16px; border-radius: 999px; font: 600 15px/20px var(--f); opacity: 0; box-shadow: var(--shadow-s); }
.stamp-l { right: 20px; background: #ffffff; color: #0d0d0d; }
.stamp-r { left: 20px; background: #0d0d0d; color: #ffffff; }
.offer[data-dir="l"] .stamp-l, .offer[data-dir="r"] .stamp-r { opacity: var(--pull, 0); }
.rv-a .pill .ic { width: 18px; height: 18px; }

/* ---------- what the agent knows, what a seller sees, account, settings ---------- */
.kn { margin-bottom: 12px; padding-bottom: 6px; border-radius: 20px; background: var(--panel); }
.kn-h { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border: 0; background: none; color: var(--ink); text-align: left; }
.kn-h .ck-n { flex: 1; min-width: 0; }
.kn-h:focus-visible { outline-offset: -3px; border-radius: 20px; }
.kn-l { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 10px; font: 400 14px/20px var(--f); color: var(--ink-2); }
.kn-l b { display: block; font-weight: 600; color: var(--ink); }
.seller { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 14px 16px; border-radius: 20px; background: var(--panel); }
.seller-b { display: flex; align-items: center; gap: 8px; font: 600 17px/22px var(--f); }
.seller-l { display: flex; flex-direction: column; font: 400 14px/20px var(--f); color: var(--ink-2); }
.v-account > .lbl, .v-settings > .lbl, .v-knows > .lbl { margin: 4px 4px 6px; }
.v-account > .pill { margin-top: 4px; }
.v-settings > .fine { margin: -4px 4px 12px; }
.v-settings > .banner { margin-bottom: 16px; box-shadow: none; }
.sw { width: 52px; height: 44px; flex: none; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.sw-k { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 2px solid var(--ink-2); transition: background-color .2s, border-color .2s; }
.sw-k::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .2s var(--ease), background-color .2s; }
.sw[aria-checked="true"] .sw-k { background: var(--primary); border-color: var(--primary); }
.sw[aria-checked="true"] .sw-k::after { transform: translateX(20px); background: var(--on-primary); }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.look { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg); color: var(--ink); text-align: left; }
.look[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.look-v { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 76px; padding: 10px; border-radius: 13px; }
.look-v i { display: block; height: 8px; border-radius: 4px; }
.look-v i:nth-child(1) { width: 62%; }
.look-v i:nth-child(2) { width: 40%; opacity: .45; }
.look-v i:nth-child(3) { width: 48%; height: 14px; border-radius: 7px; align-self: flex-end; }
/* the two previews show each theme as it is, whichever one is on: fixed colours */
.look-light .look-v { background: #ffffff; box-shadow: inset 0 0 0 1px #e8e8e5; }
.look-light .look-v i { background: #0d0d0d; }
.look-dark .look-v { background: #0c0c0d; box-shadow: inset 0 0 0 1px #2a2a2d; }
.look-dark .look-v i { background: #f4f4f2; }
.look-n { padding: 0 6px; font: 600 15px/20px var(--f); }
.auth { display: flex; flex-direction: column; gap: 8px; }

/* ---------- sign-up, and the four screens after it ---------- */
.v-onb, .v-signup { padding: calc(var(--sat) + 8px) 24px 12px; }
.brand-l { padding: 10px 0; font-size: 20px; }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ob-top .pill { padding: 0 0 0 16px; color: var(--ink-2); }
.dots3 { display: flex; gap: 6px; }
.dots3 i { width: 6px; height: 6px; border-radius: 3px; background: var(--field); transition: width .2s; }
.dots3 i.on { width: 22px; background: var(--ink); }
.ov { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0 20px; }
.ov-me { align-self: flex-end; max-width: 84%; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 20px 20px 6px 20px; animation: rise .4s var(--ease) .25s backwards; }
.ov-c { margin-bottom: 0; animation: rise .4s var(--ease) .7s backwards; }
.ov-n { display: flex; flex-direction: column; font: 500 20px/26px var(--f); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ov-2 .banner { animation: drop .5s var(--ease) 3.3s backwards; }
.ov-3 { position: relative; min-height: 170px; }
.ov-3 .offer { inset: 8px auto 20px 50%; width: 232px; margin-left: -116px; max-height: 300px; }
.ov-3 .offer-under { transform: translateX(24px) rotate(6deg); }
.ov-3 .offer-b { padding: 12px 16px 16px; overflow: visible; }
.ov-3 .offer-top { display: flex; justify-content: space-between; }
.ov-3 .offer-n { font-size: 14px; line-height: 18px; display: block; overflow: visible; }
.ov-3 .price { font-size: 16px; }
.ov-3 .proof { font-size: 12px; line-height: 16px; margin-top: 4px; }
.ov-3 .offer-ph img { padding: 10px; }
.su-c { display: flex; flex-direction: column; gap: 8px; animation: rise .4s var(--ease) .7s backwards; }
.su-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.su-g li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.su-g .ph { aspect-ratio: 1; border-radius: 18px; }
.su-g .ph img { padding: 8px; }
.su-p { font: 600 15px/20px var(--f); font-variant-numeric: tabular-nums; }
.su-n { font: 400 14px/20px var(--f); color: var(--ink-2); }
.ob-b { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.ob-p { font: 400 17px/24px var(--f); color: var(--ink-2); }
.ob-f { display: flex; flex-direction: column; gap: 8px; }
.ob-f .fine { text-align: center; padding-top: 2px; }
.ob-f .txt { margin-top: -4px; }
.v-onb4 .ob-b { padding: 20px 0 16px; }
/* the two buttons of the city screen stay in sight when the list of suggestions makes the screen longer than a short phone */
.v-onb4 .ob-f { position: sticky; bottom: 0; padding-top: 8px; background: var(--bg); }
.ov-2 .out-l { align-self: stretch; }
.ov-2 .out { animation: rise .4s var(--ease) 1.2s backwards; }
.ov-2 .out + .out { animation-delay: 1.9s; }

.ob-form { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ob-form .seller { margin-bottom: 0; }
.sugg { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 18px; }
.sugg li + li { border-top: 1px solid var(--line); }
.sg { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; background: none; font: 400 16px/22px var(--f); color: var(--ink); text-align: left; }
.sg .ic { width: 18px; height: 18px; color: var(--ink-2); }
.sg:focus-visible { outline-offset: -3px; border-radius: 18px; }
body[data-still] .ov * { animation-delay: 0s !important; animation-duration: 0s !important; }

/* ---------- sheets, the banner, the toast ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: var(--scrim); animation: fade .2s; }
.sheet { position: absolute; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 20px calc(var(--sab) + 20px); background: var(--bg); border-radius: 30px 30px 0 0; box-shadow: var(--shadow); }
.sheet.in { animation: up .32s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-120%); } }
.sh-grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; flex: none; }
.sh-x { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); display: grid; place-items: center; }
.sh-h { display: flex; flex-direction: column; gap: 4px; padding-right: 40px; }
.sh-h h2 { font: 700 22px/28px var(--f); letter-spacing: -.015em; outline: 0; }
.sh-f { display: flex; flex-direction: column; gap: 14px; }
.sh-f > .lbl { margin-bottom: -8px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.inp { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 18px; background: var(--bg); font: 400 16px/24px var(--f); outline: 0; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.inp-code { text-align: center; font: 600 24px/28px var(--f); letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.mini { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.mini .th { width: 48px; height: 48px; }
.mini-t { display: flex; flex-direction: column; min-width: 0; }
.mini-n { font: 600 15px/20px var(--f); }
.prop { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 22px; background: var(--panel); }
.prop-s { color: var(--ink-2); }
.prop-l { font: 400 17px/24px var(--f); }
.prop-l b { font-weight: 600; }
.states { display: flex; flex-direction: column; gap: 12px; }
.states li { display: flex; flex-direction: column; gap: 6px; }
.states-l { display: flex; flex-wrap: wrap; gap: 6px; }
.states .chip { background: var(--panel); border-color: var(--panel); font-size: 13px; }

.banner-l { position: absolute; z-index: 60; top: var(--sat); left: 6px; right: 6px; }
.banner { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 26px; background: var(--raised); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.banner.in { animation: drop .5s var(--ease); }
.banner-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.banner-a { display: flex; justify-content: space-between; font: 400 12px/16px var(--f); color: var(--ink-2); }
.banner-a b { font-weight: 600; color: var(--ink); }
.banner-h { font: 600 15px/20px var(--f); }
.banner-b { font: 400 14px/18px var(--f); color: var(--ink-2); }
.toast-l { position: absolute; z-index: 45; left: 16px; right: 16px; bottom: calc(var(--sab) + 76px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 18px; background: var(--primary); color: var(--on-primary); font: 400 14px/20px var(--f); box-shadow: var(--shadow-s); }
.toast.in { animation: rise .3s var(--ease); }

/* ---------- beside the phone, on a wide screen: the prototype's own notes. Not part of the look. ---------- */
.proto.side { display: block; align-self: center; max-width: 300px; padding: 0; margin: 0; border: 0; background: none; font: 400 13px/20px var(--f); color: var(--ink-2); z-index: auto; }
.side-l { justify-self: end; grid-column: 1; grid-row: 1; }
.side-r { justify-self: start; grid-column: 3; grid-row: 1; }
:root[data-theme="dark"] .proto.side { background: none; }
.proto.side h2 { font: 600 20px/26px var(--f); color: var(--ink); letter-spacing: -.01em; margin-bottom: 8px; }
.proto.side p { margin-bottom: 10px; }
.proto.side b { color: var(--ink); }
.proto.side dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.proto.side dt { color: var(--ink); font-weight: 600; white-space: nowrap; }
.proto.side a, .proto.side button { color: var(--ink-2); text-decoration: none; padding: 0; margin-right: 8px; display: inline-block; }
.proto.side a:hover, .proto.side button:hover { color: var(--ink); }
@media (max-width: 1100px) { .side-l { display: none !important; } .wrap { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 32px; } }
@media (max-width: 780px) { .side-r { display: none !important; } }
@media (hover: hover) {
  .fold:hover, .nav-b:hover, .nav-back:hover, .sh-x:hover, .dr-i:hover { background: var(--panel); }
  .pill-p:hover, .send:hover { opacity: .86; }
  .pill-s:hover, .chip:not(.chip-s):not([aria-checked="true"]):hover, .look:hover { border-color: var(--ink-2); }
  .txt:hover, .row:hover .row-n, button.ck:hover .ck-n, .kn-h:hover .ck-n, .eg:hover .eg-t { opacity: .7; }
}

/* a short phone: the sign-up screen and the opening of New give up some air; the offer's photo gives way to its proof */
@media (max-height: 780px) {
  .su-v { gap: 10px; padding-bottom: 12px; }
  .su-g .ph { aspect-ratio: auto; height: 64px; }
  .su-g .ph img { padding: 5px; }
  .brand-l { padding: 4px 0; }
  .v-signup .lt { font-size: 30px; line-height: 34px; }
  .v-signup .ob-p { font-size: 15px; line-height: 21px; }
  .ov-2 .out-l { display: none; }
  .sk-n { display: none; }
  .ob-b { padding-bottom: 16px; }
  .hello .lt { font-size: 28px; line-height: 32px; }
  .eg-ph { height: 76px; }
  .offer-ph { min-height: 88px; }
  .offer-b { padding-top: 10px; padding-bottom: 14px; }
  .offer-b .proofs { gap: 3px; }
  .offer-b > .lbl { margin-top: 5px; }
}

/* The card in hand is above the one waiting under it, said outright: without it axe-core cannot tell which of the two is behind the text. */
.offer:not(.offer-under) { z-index: 1; }
.banner-l:empty, .toast-l:empty { display: none; }

/* shozen lockup (C Seal, small cut for the top bar): one mask, so it follows the text colour in light and dark */
.logo { display: inline-block; height: 22px; aspect-ratio: 403.764 / 92; flex: none; background: currentColor; -webkit-mask: url(/img/logo/lockup-horizontal-small.svg) no-repeat center / contain; mask: url(/img/logo/lockup-horizontal-small.svg) no-repeat center / contain; }
.brand-l .logo { height: 24px; }

/* the drawer's legal links, and the sign-up agreement line */
.dr-legal { display: flex; gap: 4px; padding: 0 0 4px; }
.dr-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font: 500 14px/20px var(--f); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ob-f .fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
