/* =====================================================================================
   BantayBayan app components. Shared by every screen, the onepager and the prototype.
   Ported from the approved design kit (design-kit/kit.css) and extended for all 64 screens.
   Every value is a token from tokens.css. Bare px appear only as component dimensions.
   Catalogue with copyable markup: components.html
   ===================================================================================== */

/* ---------- 0. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-page); color: var(--color-text-primary); font: var(--text-body); -webkit-font-smoothing: antialiased; }
/* Plus Jakarta Sans draws "0x" as "0×" unless ligatures are fully off (only font-variant-ligatures: none works; calt/liga/clig toggles do not). !important because every `font:` shorthand resets it. */
*, *::before, *::after { font-variant-ligatures: none !important; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
svg { fill: currentColor; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }
.num { font-variant-numeric: var(--meta-figures); }

/* Icons: Phosphor only. <svg class="i" aria-hidden="true"><use href="#r-camera"/></svg> */
.i { width: 20px; height: 20px; flex: none; fill: currentColor; display: block; }
.i-s { width: 16px; height: 16px; }
.i-l { width: 24px; height: 24px; }
.i-xl { width: 32px; height: 32px; }
.i--red { color: var(--color-red); }
.i--ok { color: var(--verified-fg); }
.i--amber { color: var(--review-icon); }
.i--muted { color: var(--color-text-secondary); }

/* Type helpers (use sparingly; components already set their type) */
.t-display { font: var(--text-display); letter-spacing: var(--track-display); }
.t-h2 { font: var(--text-h2); letter-spacing: var(--track-h2); }
.t-h3 { font: var(--text-h3); letter-spacing: var(--track-h3); }
.t-title { font: var(--text-title); letter-spacing: var(--track-title); }
.t-body-lg { font: var(--text-body-lg); }
.t-body { font: var(--text-body); }
.t-sm { font: var(--text-body-sm); }
.t-2 { color: var(--color-text-secondary); }
.t-red { color: var(--color-red); }          /* only at >=19px bold or >=24px */
.t-center { text-align: center; }
.overline { font: var(--text-overline); letter-spacing: var(--track-overline); text-transform: uppercase; color: var(--color-text-secondary); }
.meta { font: var(--text-meta); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); }
.hint { font: var(--text-body-sm); color: var(--color-text-secondary); }
.hint--center { text-align: center; }

/* Layout helpers */
.between { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.between--center { align-items: center; }
.hstack { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: var(--space-2); }
.vstack--4 { gap: var(--space-4); }
.grow { flex: 1 1 auto; }

/* ---------- 1. Phone frame + screen layout ---------- */
/* The build wraps every screen in <section class="phone">. 390 x 844, page background, clips everything. */
.phone { position: relative; width: 390px; height: 844px; flex: none; overflow: hidden; background: var(--color-page); border: var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); isolation: isolate; }
.phone[hidden] { display: none !important; }
/* One root per screen file: <div class="screen">. Flex column, full height. Bars are flex:none; .scroll takes the rest. */
.screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--color-page); }
.screen--white { background: var(--color-white); }
.screen--cam { background: var(--color-charcoal); color: var(--color-white); }
/* Scroll region: content taller than the phone. Sits between fixed bars and ends exactly at the next bar. */
.scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: var(--space-4) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.scroll::-webkit-scrollbar { display: none; }
/* "Scrolls" hint for long screens: sticks to the bottom of .scroll until the end is reached. Annotation, not a control. */
.scroll-hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-end; height: 88px; padding-bottom: var(--space-4); background: linear-gradient(transparent, var(--hint-bg, var(--color-page)) 60%); pointer-events: none; }
/* Screens with a .foot: put the hint as the LAST child of .scroll; it sticks to the bottom of the scroll area, above the foot */
.scroll > .scroll-hint--sticky { position: sticky; bottom: calc(var(--space-6) * -1); left: auto; right: auto; height: 72px; margin: calc(var(--space-12) * -1) calc(var(--space-4) * -1) calc(var(--space-6) * -1); padding-bottom: var(--space-3); }
.scroll-hint__pill { display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--space-6); width: 32px; height: 32px; padding: 0 0 0 7px; overflow: hidden; white-space: nowrap; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-text-primary); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--color-border-strong); font: var(--text-label); }
.scroll-hint__pill .i { flex: none; }
.scroll-hint .i { width: 18px; height: 18px; }
/* Tab screens: right-aligned so it clears the raised Record disc. In .screen it sits on top of the 80 px nav; inside .scroll (with --sticky) it just right-aligns */
.scroll-hint--nav { justify-content: flex-end; padding-right: var(--space-4); }
.screen > .scroll-hint--nav { bottom: 80px; }
/* Fully scrolled, the last row clears the hint */
.scroll:has(~ .scroll-hint) { padding-bottom: 96px; }
.scroll > * { flex: none; }
.scroll > .grow { flex: 1 1 auto; }
.scroll--flush { padding: 0; gap: 0; }
.scroll--tight { gap: var(--space-3); }
.scroll--top0 { padding-top: 0; }
.scroll--center { justify-content: center; }
/* Static (non-scrolling) body, same rhythm. */
.body { flex: 1 1 auto; min-height: 0; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.section-h { font: var(--text-title); letter-spacing: var(--track-title); }
.section-h--sm { font: var(--text-overline); letter-spacing: var(--track-overline); text-transform: uppercase; color: var(--color-text-secondary); }

/* ---------- 2. Status bar (system UI) ---------- */
/* <div class="sbar"><span>9:41</span><span class="sbar__r">…icons</span></div>  44px, sits on top of whatever is behind. */
.sbar { height: 44px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-6); font: var(--text-body-sm); font-weight: 700; font-variant-numeric: var(--meta-figures); position: relative; z-index: 6; color: var(--color-text-primary); }
.sbar__r { display: inline-flex; gap: var(--space-1); align-items: center; }
.sbar__r .i { width: 16px; height: 16px; }
.sbar--white { background: var(--color-white); }
.sbar--dark { color: var(--color-white); background: var(--color-charcoal); }
.sbar--over { position: absolute; top: 0; left: 0; right: 0; background: none; }

/* ---------- 3. Top bar ---------- */
/* Back / close on the left, centred title, optional action on the right. Empty sides use <span></span>. */
.topbar { height: 56px; flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--space-2); padding: 0 var(--space-2); position: relative; z-index: 5; }
.topbar__title { font: var(--text-title); letter-spacing: var(--track-title); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar--line { border-bottom: var(--border-default); }
.topbar--white { background: var(--color-white); }
.topbar--dark { color: var(--color-white); }
.topbar--dark .icon-btn { color: var(--color-white); }
/* Tab root title (Reports, Wallet, Help): large, left-aligned. */
.topbar--large { height: 64px; display: flex; justify-content: space-between; padding: 0 var(--space-4); }
.topbar--large .topbar__title { font: var(--text-h2); letter-spacing: var(--track-h2); text-align: left; }

/* Icon buttons: 44px square (UI), circle on photos/maps. */
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-control); color: var(--color-text-primary); flex: none; transition: background var(--dur-fast) var(--ease); }
.icon-btn:hover { background: var(--color-subtle); }
.icon-btn .i { width: 24px; height: 24px; }
.circ-btn { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--color-white); display: grid; place-items: center; box-shadow: var(--shadow-card); color: var(--color-text-primary); flex: none; }
.circ-btn--dark { background: var(--color-overlay); color: var(--color-white); box-shadow: none; }

/* ---------- 4. Bottom navigation ---------- */
/* Map · Reports · Record (raised red disc) · Wallet · Help. Active: red icon (fill), charcoal bold label. */
.nav { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--color-white); border-top: var(--border-default); height: 80px; padding: 0 var(--space-2) var(--space-3); align-items: start; position: relative; z-index: 5; }
.nav__item { display: grid; justify-items: center; align-content: center; gap: var(--space-1); height: 64px; font: var(--text-label); color: var(--color-text-secondary); }
.nav__item .i { width: 24px; height: 24px; }
.nav__item.is-on { color: var(--color-text-primary); font-weight: 700; }
.nav__item.is-on .i { color: var(--color-red); }
.nav__rec { color: var(--color-text-primary); align-content: start; height: 72px; }
.nav__disc { width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-action); color: var(--color-white); display: grid; place-items: center; margin-top: -22px; border: 4px solid var(--color-white); box-sizing: content-box; box-shadow: var(--shadow-float); }
.nav__disc .i { width: 28px; height: 28px; color: var(--color-white); }

/* ---------- 5. Logo ---------- */
/* <span class="lockup" role="img" aria-label="BantayBayan"><svg class="logo" viewBox="0 0 1083 373" aria-hidden="true"><use href="#bb-logo" width="1083" height="373"/></svg></span> */
.lockup { display: inline-flex; color: var(--color-red); line-height: 0; }
.logo { display: block; flex: none; width: 104px; height: 36px; }
.lockup--md .logo { width: 128px; height: 44px; }
.lockup--white { color: var(--color-white); }
/* App icon: white mark on a red rounded square (install prompt, splash). */
.appicon { width: 64px; height: 64px; border-radius: 22.5%; background: var(--color-red); color: var(--color-white); display: grid; place-items: center; flex: none; }
.appicon svg { width: 62%; height: 70%; transform: translateX(2%); }

/* ---------- 6. Buttons ---------- */
/* One primary per screen and it is the largest control. Labels on red are 19/700. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-control); font: var(--text-button); white-space: nowrap; transition: background var(--dur-fast) var(--ease); text-align: center; }
.btn .i { width: 22px; height: 22px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { height: 56px; background: var(--color-action); color: var(--color-white); }
.btn--primary:hover { background: var(--color-action-hover); }
.btn--primary:active { background: var(--color-action-pressed); }
.btn--secondary { background: var(--color-white); border: var(--border-strong); color: var(--color-text-primary); font: var(--text-button-sm); }
.btn--secondary:hover { background: var(--color-subtle); }
.btn--secondary .i { width: 20px; height: 20px; }
.btn--tonal { background: var(--color-pale-pink); color: var(--color-text-primary); font: var(--text-button-sm); }
.btn--tonal .i { color: var(--color-red); width: 20px; height: 20px; }
.btn--tonal:hover { background: var(--color-border); }
/* Text button: charcoal 15/700 with a red underline. Quiet second action. */
.btn--text { height: 44px; padding: 0 var(--space-3); color: var(--color-text-primary); font: var(--text-button-sm); text-decoration: underline; text-decoration-color: var(--color-red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn--text .i { color: var(--color-red); width: 18px; height: 18px; }
.btn--text:hover { background: var(--color-subtle); }
/* Destructive (sign out): charcoal, never red. */
.btn--destructive { height: 56px; background: var(--color-charcoal); color: var(--color-white); }
.btn--destructive:hover { background: var(--color-text-secondary); }
/* Small (inline: Paste, + Add, Retake, Delete). Still a 44px tap target. */
.btn--sm { height: 44px; padding: 0 var(--space-4); font: var(--text-button-sm); }
.btn--xs { height: 44px; padding: 0 var(--space-3); font: var(--text-label); font-weight: 700; border-width: 4px; border-style: solid; border-color: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.btn[disabled], .btn.is-off { background: var(--color-disabled); color: var(--color-text-secondary); border-color: var(--color-disabled); cursor: not-allowed; box-shadow: none; text-decoration: none; }
.btn--text[disabled], .btn--text.is-off { background: none; }
.btn:focus-visible, .is-focus { outline: none; box-shadow: var(--focus-ring); }
/* Why a button is off, under it. */
.btn-why { font: var(--text-body-sm); color: var(--color-text-secondary); text-align: center; }
/* Stack of actions (sheet, state screens). */
.actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch; }
.actions .btn--text { align-self: center; }
.actions--row { flex-direction: row; }
.actions--row > .btn { flex: 1; }

/* Fixed footer for the main action. White, top border, soft fade over scrolled content. */
.foot { flex: none; padding: var(--space-3) var(--space-4) var(--space-6); background: var(--color-white); border-top: var(--border-default); display: flex; flex-direction: column; gap: var(--space-2); position: relative; z-index: 4; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--space-6); background: linear-gradient(transparent, var(--color-page)); pointer-events: none; }
.foot .btn--text { align-self: center; }
.foot--plain { background: none; border-top: 0; }
.foot--plain::before { display: none; }

/* Text link (source links, "View transaction ↗"): charcoal, red underline. 44px tall. */
.link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; font: var(--text-body-sm); font-weight: 700; color: var(--color-text-primary); text-decoration: underline; text-decoration-color: var(--color-red); text-decoration-thickness: 2px; text-underline-offset: 4px; align-self: flex-start; }
.link .i { width: 16px; height: 16px; color: var(--color-red); }
.link--sm { font: var(--text-label); }
/* Inline link inside a secondary line: draws small, keeps a 44 px tap area via ::after, row height unchanged */
.link--inline { position: relative; min-height: 44px; margin: -14px 0; vertical-align: middle; font: var(--text-meta); font-weight: 700; }
.link--inline .i { width: 14px; height: 14px; }

/* ---------- 7. Badges, tags, pills ---------- */
/* Status badge: pill, icon + exact words. Never red for a status. */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 28px; padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2); border-radius: var(--radius-pill); font: var(--text-label); white-space: nowrap; max-width: 100%; }
.badge .i { width: 16px; height: 16px; }
.badge--wrap { white-space: normal; align-items: flex-start; border-radius: var(--radius-control); text-align: left; }
.badge--wrap .i { margin-top: 2px; flex: none; }
.bounty .badge--wrap { grid-column: 1 / -1; justify-self: start; }
.badge--verified { background: var(--verified-bg); color: var(--verified-fg); }
.badge--open { background: var(--open-bg); color: var(--open-fg); }
.badge--open .i { color: var(--open-icon); }
.badge--review { background: var(--review-bg); color: var(--review-fg); }
.badge--review .i { color: var(--review-icon); }
.badge--notpaid { background: var(--notpaid-bg); color: var(--notpaid-fg); }
.badge--rejected { background: var(--rejected-bg); color: var(--rejected-fg); }
.badge--rejected-dark { background: var(--color-charcoal); color: var(--color-white); }
.badge--paid { background: var(--color-charcoal); color: var(--color-white); }
.badge--neutral { background: var(--color-white); color: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.badge--failed { background: var(--color-white); color: var(--color-text-primary); box-shadow: none; outline: 1.5px dashed var(--color-charcoal); outline-offset: -1.5px; }
.badge--failed .i { color: var(--color-charcoal); }
.badge--notsent { background: var(--color-white); color: var(--color-text-primary); box-shadow: inset 0 0 0 1.5px var(--color-charcoal); }
/* Tags: category (slate), official status, neutral. No icon. */
.tag { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; padding: 2px var(--space-2); border-radius: var(--radius-pill); font: var(--text-label); white-space: nowrap; }
.tag .i { width: 14px; height: 14px; }
.tag--cat { background: var(--category-bg); color: var(--category-fg); }
.tag--prog { background: var(--verified-bg); color: var(--verified-fg); }
.tag--neutral { background: var(--notpaid-bg); color: var(--notpaid-fg); }
.tag--late { background: var(--review-bg); color: var(--review-fg); }
.tag--late .i { color: var(--review-icon); }
.tag--req { background: var(--color-charcoal); color: var(--color-white); }
.tag--opt { background: var(--color-white); color: var(--color-text-secondary); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Filter chips (category filters, language). 44px tap, 36px visual. */
.chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 44px; padding: 0 var(--space-4); border: 4px solid transparent; background: var(--color-white); background-clip: padding-box; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-border-strong); font: var(--text-label); color: var(--color-text-primary); white-space: nowrap; }
.chip .i { width: 16px; height: 16px; }
.chip.is-on { background-color: var(--color-pale-pink); box-shadow: inset 0 0 0 2px var(--color-red); }
.chips { display: flex; gap: var(--space-1); flex-wrap: wrap; }

/* ---------- 8. Banners (inline messages) ---------- */
/* Icon + bold line + one line of what to do. Errors/blocked are charcoal-bordered, never red. */
.banner { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: start; padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-subtle); font: var(--text-body-sm); color: var(--color-text-primary); }
.banner > .i { width: 24px; height: 24px; color: var(--color-text-primary); }
.banner__t, .banner__p { grid-column: 2; min-width: 0; }
.banner__t { font: var(--text-body); font-weight: 700; }
.banner__p { color: var(--color-text-secondary); padding-top: 2px; }
.banner__p b { color: var(--color-text-primary); }
.banner__x { grid-column: 2; display: flex; gap: var(--space-2); flex-wrap: wrap; padding-top: var(--space-2); }
.banner--info > .i { color: var(--color-text-secondary); }
.banner--warning { background: var(--review-bg); }
.banner--warning > .i { color: var(--review-icon); }
.banner--warning .banner__p { color: var(--color-text-primary); }
.banner--error, .banner--rule { background: var(--color-white); box-shadow: inset 0 0 0 1.5px var(--color-charcoal); }
.banner--error .banner__p, .banner--rule .banner__p { color: var(--color-text-primary); }
.banner--blocked { background: var(--color-charcoal); color: var(--color-white); }
.banner--blocked > .i, .banner--blocked .banner__p, .banner--blocked .banner__p b { color: var(--color-white); }
.banner--success { background: var(--verified-bg); }
.banner--success > .i { color: var(--verified-fg); }
.banner--success .banner__p { color: var(--color-text-primary); }
.banner--brand { background: var(--color-pale-pink); }
.banner--brand > .i { color: var(--color-red); }
/* Plain note (how to earn, keep the app open): subtle panel, bold lead-in. */
.note { padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--color-subtle); font: var(--text-body-sm); color: var(--color-text-secondary); }
.note b { color: var(--color-text-primary); }

/* ---------- 9. Cards, lists, rows ---------- */
.card { background: var(--color-white); border: var(--border-default); border-radius: var(--radius-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card--strong { border: var(--border-strong); box-shadow: var(--shadow-card); }
.card--subtle { background: var(--color-subtle); border-color: transparent; }
/* List of rows inside a white card, hairline dividers. */
.list { background: var(--color-white); border: var(--border-default); border-radius: var(--radius-card); overflow: hidden; }
.list--plain { background: none; border: 0; border-radius: 0; }
.list > * + * { border-top: var(--border-default); }
.list--inset > * + * { border-top: 0; box-shadow: inset var(--space-4) 1px 0 var(--color-white), inset 0 1px 0 var(--color-border); }
/* Row: [lead] [title + sub] [trail]. Use <a>/<button> with data-go when tappable. */
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; min-height: 56px; padding: var(--space-3) var(--space-4); width: 100%; text-align: left; background: none; transition: background var(--dur-fast) var(--ease); }
.list--plain > .row { padding-left: 0; padding-right: 0; }
a.row:hover, button.row:hover { background: var(--color-subtle); }
/* Plain rows have no inset: push the hover/focus/tap area outward so it doesn't hug the text */
.list--plain > .row { position: relative; }
.list--plain > a.row:hover, .list--plain > button.row:hover { background: none; }
.list--plain > a.row:hover::before, .list--plain > button.row:hover::before { content: ""; position: absolute; inset: 0 calc(var(--space-3) * -1); border-radius: var(--radius-control); background: var(--color-subtle); z-index: -1; }
.list--plain > .row:focus-visible { outline: none; box-shadow: none; }
.list--plain > .row:focus-visible::before { content: ""; position: absolute; inset: 0 calc(var(--space-3) * -1); border-radius: var(--radius-control); box-shadow: var(--focus-ring); }
.list--plain { isolation: isolate; }
.row--lead { grid-template-columns: auto minmax(0, 1fr) auto; }
.row__lead { display: grid; place-items: center; color: var(--color-text-secondary); }
.row__lead .i { width: 24px; height: 24px; }
.row__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__title { font: var(--text-body); font-weight: 700; color: var(--color-text-primary); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.row__title--lg { font: var(--text-title); letter-spacing: var(--track-title); }
.row__sub { font: var(--text-body-sm); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); }
.row__trail { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font: var(--text-body-sm); white-space: nowrap; justify-self: end; }
.row__trail .i { width: 18px; height: 18px; }
.row__amt { font: var(--text-title); color: var(--color-text-primary); font-variant-numeric: var(--meta-figures); white-space: nowrap; }
.row__value { font: var(--text-body-sm); color: var(--color-text-secondary); }
.row--off .row__title { color: var(--color-text-secondary); font-weight: 600; }
/* Radio + checkbox marks used inside rows. */
.radio { width: 24px; height: 24px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--color-border-strong); background: var(--color-white); flex: none; display: block; }
.is-on > .radio, .radio.is-on { box-shadow: inset 0 0 0 2px var(--color-red), inset 0 0 0 7px var(--color-white); background: var(--color-red); }
.row.is-on { background: var(--color-pale-pink); }

/* Report / payout row (6.x, 7.9): title + amount + chevron, status badge, the why/next step. */
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); padding: var(--space-4); width: 100%; text-align: left; background: var(--color-white); }
.rrow__title { font: var(--text-body); font-weight: 700; }
.rrow__meta { font: var(--text-meta); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); }
.rrow__trail { display: flex; align-items: center; gap: var(--space-1); align-self: start; }
.rrow__trail .i { width: 18px; height: 18px; color: var(--color-text-secondary); }
.rrow__amt { font: var(--text-body); font-weight: 700; font-variant-numeric: var(--meta-figures); white-space: nowrap; }
.rrow__amt--off { color: var(--color-text-secondary); text-decoration: line-through; font-weight: 500; }
.rrow__status, .rrow__why { grid-column: 1 / -1; }
.rrow__why { font: var(--text-body-sm); color: var(--color-text-secondary); }
.rrow__why b { color: var(--color-text-primary); }
.rrow--link { position: relative; }
.rrow--link .rrow__main { color: inherit; text-decoration: none; }
.rrow--link .rrow__main::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.rrow--link .link--inline { z-index: 1; }
.rrow--top { box-shadow: inset 4px 0 0 var(--color-charcoal); }
.rrow__act { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

/* Sheet / list header: title left, count right. */
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; }
.list-head__t { font: var(--text-title); letter-spacing: var(--track-title); }
.list-head__m { font: var(--text-body-sm); color: var(--color-text-secondary); }

/* Project preview card (map) with thumbnail: from the kit. */
.preview { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3); background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-float); width: 100%; text-align: left; }
.preview .media { width: 64px; height: 64px; border-radius: var(--radius-control); }
.preview__t { font: var(--text-title); letter-spacing: var(--track-title); }
.preview__s { font: var(--text-body-sm); color: var(--color-text-secondary); padding-top: 2px; }

/* ---------- 10. Project header, facts, bounty panel ---------- */
.proj { display: flex; flex-direction: column; gap: var(--space-2); }
.proj__title { font: var(--text-h3); letter-spacing: var(--track-h3); }
.proj__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font: var(--text-body-sm); color: var(--color-text-secondary); }
.proj__meta .i { width: 16px; height: 16px; }
.proj__sent { font: var(--text-meta); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); }
/* Fact rows: label left (secondary), value right (600, tabular). <dl class="facts"><div><dt/><dd/></div></dl> */
.facts { display: grid; background: var(--color-white); border: var(--border-default); border-radius: var(--radius-card); padding: 0 var(--space-4); }
.facts--plain { background: none; border: 0; padding: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--border-default); align-items: baseline; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: var(--text-body-sm); color: var(--color-text-secondary); }
.facts dd { font: var(--text-body-sm); font-weight: 600; text-align: right; font-variant-numeric: var(--meta-figures); }
.facts dd small { font-weight: 500; color: var(--color-text-secondary); font-size: inherit; }
/* Bounty panel: pale pink, the one red brand moment on the project screen. */
.bounty { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-pale-pink); }
.bounty__t { font: var(--text-body); font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.bounty__t .i { color: var(--color-red); width: 20px; height: 20px; }
.bounty__amt { font: var(--text-h3); font-weight: 800; letter-spacing: var(--track-h3); color: var(--color-red); white-space: nowrap; font-variant-numeric: var(--meta-figures); }
.bounty__p { grid-column: 1 / -1; font: var(--text-body-sm); color: var(--color-text-secondary); }
.bounty--closed { background: var(--color-subtle); }
.bounty--closed .bounty__t .i { color: var(--color-text-secondary); }

/* ---------- 11. Fields ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field__label { font: var(--text-label); color: var(--color-text-primary); }
.field__label i { font-style: normal; font-weight: 500; color: var(--color-text-secondary); }
.input { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-1) 0 var(--space-4); border: var(--border-strong); border-radius: var(--radius-control); background: var(--color-white); font: var(--text-body); color: var(--color-text-primary); min-width: 0; width: 100%; }
.input__v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: var(--meta-figures); }
.input__ph { flex: 1; min-width: 0; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input > .i { color: var(--color-text-secondary); }
.input.is-focus { border: var(--border-selected); box-shadow: var(--focus-ring); }
.input.is-error { border: var(--border-error); }
.input.is-locked { background: var(--color-subtle); border-color: var(--color-border); color: var(--color-text-secondary); padding-right: var(--space-4); }
.input.is-locked b { color: var(--color-text-primary); }
.caret { display: inline-block; width: 2px; height: 20px; background: var(--color-action); margin-left: -6px; flex: none; }
.field__help { font: var(--text-body-sm); color: var(--color-text-secondary); display: flex; gap: var(--space-2); align-items: flex-start; }
.field__help .i { width: 18px; height: 18px; margin-top: 1px; }
.field__error { font: var(--text-body-sm); color: var(--color-text-primary); display: flex; gap: var(--space-2); align-items: flex-start; }
.field__error .i { width: 18px; height: 18px; margin-top: 1px; color: var(--color-text-primary); }
/* Search (map). A button that opens search. */
.search { display: flex; align-items: center; gap: var(--space-3); height: 48px; padding: 0 var(--space-4); background: var(--color-white); border: var(--border-strong); border-radius: var(--radius-control); color: var(--color-text-secondary); min-width: 0; flex: none; width: 100%; font: var(--text-body); text-align: left; }
.maptop__search > .search { flex: 1 1 auto; width: auto; }
.search > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Checkbox (18+ tick, consent). The whole label is the tap target. */
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; min-height: 44px; padding: var(--space-2) 0; font: var(--text-body); color: var(--color-text-primary); text-align: left; width: 100%; }
.check__box { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-border-strong); display: grid; place-items: center; color: var(--color-white); }
.check__box .i { width: 16px; height: 16px; opacity: 0; }
.check.is-on .check__box { background: var(--color-red); box-shadow: none; }
.check.is-on .check__box .i { opacity: 1; }
/* Consent: a check inside a card, required before Send. */
.consent { padding: var(--space-3) var(--space-4); background: var(--color-white); border: var(--border-strong); border-radius: var(--radius-card); }
.consent.is-on { border: var(--border-selected); padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); }
/* Segmented control (Photo | Video). */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-subtle); border-radius: var(--radius-pill); padding: var(--space-1); width: 220px; align-self: center; }
.seg > * { height: 44px; border-radius: var(--radius-pill); font: var(--text-label); color: var(--color-text-secondary); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); }
.seg .i { width: 16px; height: 16px; }
.seg > .is-on { background: var(--color-white); color: var(--color-text-primary); box-shadow: var(--shadow-card); font-weight: 700; }
.seg--dark { background: var(--color-overlay); }
.seg--dark > * { color: var(--color-white); }
.seg--dark > .is-on { background: var(--color-white); color: var(--color-text-primary); }
.seg[aria-disabled="true"] { opacity: 0.5; }

/* ---------- 12. Progress, steps, timeline ---------- */
/* Progress bar: --w sets the fill. */
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.progress > i { display: block; width: var(--w, 0); height: 100%; background: var(--color-action); border-radius: var(--radius-pill); }
.progress--lg { height: 12px; }
.progress--done > i { background: var(--verified-fg); }
.progress--dark > i { background: var(--color-charcoal); }
/* Numbered steps (how it works, fix steps). */
.steps { display: flex; flex-direction: column; gap: var(--space-3); counter-reset: st; }
.steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; font: var(--text-body); counter-increment: st; }
.steps > li::before { content: counter(st); width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--color-charcoal); color: var(--color-white); display: grid; place-items: center; font: var(--text-label); font-weight: 700; }
.steps--pink > li::before { background: var(--color-pale-pink); color: var(--color-text-primary); }
/* Bullets (rules under a form). */
.bullets { display: flex; flex-direction: column; gap: var(--space-1); font: var(--text-body-sm); color: var(--color-text-secondary); }
.bullets > li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: var(--space-2); }
.bullets > li::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--color-text-secondary); margin-top: 7px; }
/* Timeline (report detail): done (charcoal), verified (green), now (red ring), next (hollow), rejected (charcoal x). */
.tl { display: flex; flex-direction: column; }
.tl__i { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); position: relative; padding-bottom: var(--space-4); align-items: start; }
.tl__i:last-child { padding-bottom: 0; }
.tl__i::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--color-border-strong); }
.tl__i:last-child::before { display: none; }
.tl__dot { width: 28px; height: 28px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-border-strong); color: var(--color-text-secondary); }
.tl__dot .i { width: 16px; height: 16px; }
.tl__i.is-done .tl__dot { background: var(--color-charcoal); box-shadow: none; color: var(--color-white); }
.tl__i.is-ver .tl__dot { background: var(--verified-fg); box-shadow: none; color: var(--color-white); }
.tl__i.is-now .tl__dot { background: var(--review-bg); box-shadow: inset 0 0 0 2px var(--review-icon); color: var(--review-icon); }
.tl__i.is-rej .tl__dot { background: var(--color-charcoal); box-shadow: none; color: var(--color-white); }
.tl__i.is-dashed .tl__dot { box-shadow: none; border: 2px dashed var(--color-border-strong); }
.tl__t { font: var(--text-body); font-weight: 700; padding-top: 3px; }
.tl__t p { font: var(--text-body-sm); font-weight: 400; color: var(--color-text-secondary); padding-top: 2px; }
.tl__i.is-next .tl__t { color: var(--color-text-secondary); font-weight: 600; }
.tl__d { font: var(--text-meta); color: var(--color-text-secondary); padding-top: 6px; white-space: nowrap; font-variant-numeric: var(--meta-figures); }

/* ---------- 13. Result card (report detail, wallet) ---------- */
/* Status title + amount, one sentence. Variants carry the status pair. */
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-white); border: var(--border-strong); align-items: center; }
.result__t { font: var(--text-h3); letter-spacing: var(--track-h3); display: flex; gap: var(--space-2); align-items: flex-start; }
.result__t .i { width: 24px; height: 24px; flex: none; margin-top: calc((1lh - 24px) / 2); }
.result__amt { font: var(--text-h3); letter-spacing: var(--track-h3); font-variant-numeric: var(--meta-figures); white-space: nowrap; }
.result__amt--off { color: var(--color-text-secondary); text-decoration: line-through; font-weight: 600; }
.result__p { grid-column: 1 / -1; font: var(--text-body-sm); color: var(--color-text-primary); }
.result__p .meta { display: block; padding-top: var(--space-1); }
.result--verified { background: var(--verified-bg); border-color: transparent; }
.result--verified .result__t .i { color: var(--verified-fg); }
.result--rejected { background: var(--color-white); border: var(--border-error); }
.result--notpaid { background: var(--notpaid-bg); border-color: transparent; }
/* Long status words ("Verified · Not paid") take the full row; the struck-out amount drops below */
.result--notpaid .result__t, .result--stack .result__t { grid-column: 1 / -1; }
.result--notpaid .result__amt, .result--stack .result__amt { grid-column: 1 / -1; justify-self: start; }
.result--paid { background: var(--color-white); border: var(--border-strong); }
.result--paid .result__t .i { color: var(--verified-fg); }

/* ---------- 14. Media placeholders, thumbnails, quality marks ---------- */
/* No real photos exist: pale fill + icon + short caption. */
.media { position: relative; background: var(--color-subtle); border-radius: var(--radius-card); overflow: hidden; color: var(--color-text-secondary); display: grid; place-items: center; flex: none; }
.media__c { display: grid; justify-items: center; gap: var(--space-2); text-align: center; padding: var(--space-3); font: var(--text-label); color: var(--color-text-secondary); position: relative; z-index: 1; }
.media__c .i { width: 32px; height: 32px; }
.media--map { background: var(--map-land); }
.media--map .map__base { position: absolute; inset: 0; width: 100%; height: 100%; }
.media--map .media__c { background: var(--color-white); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); box-shadow: var(--shadow-card); align-self: end; margin-bottom: var(--space-3); color: var(--color-text-primary); }
.media--dark { background: var(--color-text-secondary); color: var(--color-white); }
.media--dark .media__c { color: var(--color-white); }
.media--h120 { height: 120px; } .media--h160 { height: 160px; } .media--h200 { height: 200px; }
.media--shot { height: 430px; width: auto; max-width: 100%; aspect-ratio: 9 / 16; align-self: center; }
/* Blurry shot: smeared shapes behind a sharp caption, so it reads differently from a clear one */
.media--blur { background: var(--color-border-strong); }
.media--blur::before { content: ""; position: absolute; inset: -24px; background: radial-gradient(40% 30% at 30% 35%, var(--color-text-secondary), transparent 70%), radial-gradient(35% 25% at 70% 65%, var(--color-white), transparent 70%), radial-gradient(30% 40% at 55% 20%, var(--color-text-muted), transparent 70%); filter: blur(14px); }
.media--blur .media__c { background: var(--color-white); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); color: var(--color-text-primary); grid-auto-flow: column; align-items: center; }
.media--blur .media__c .i { width: 18px; height: 18px; }
.r916 { aspect-ratio: 9 / 16; } .r1610 { aspect-ratio: 16 / 10; } .r43 { aspect-ratio: 4 / 3; }
/* Kind label + duration on media. */
.kind { position: absolute; top: var(--space-2); left: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; padding: 0 var(--space-2); background: var(--color-white); color: var(--color-text-primary); border-radius: var(--radius-sm); font: var(--text-label); z-index: 2; }
.kind .i { width: 14px; height: 14px; }
.kind--video { background: var(--color-charcoal); color: var(--color-white); }
.dur { position: absolute; bottom: var(--space-2); right: var(--space-2); font: var(--text-meta); background: var(--color-charcoal); color: var(--color-white); padding: 0 var(--space-2); border-radius: var(--radius-sm); font-variant-numeric: var(--meta-figures); z-index: 2; }
.play { width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-charcoal); display: grid; place-items: center; box-shadow: var(--shadow-float); }
.play .i { margin-left: 2px; }
/* Thumbnails: 9:16 shots. Row of small ones (checklist), larger tappable ones (review). */
.thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.thumb { position: relative; width: 24px; height: 32px; border-radius: 4px; background: var(--color-border-strong); flex: none; display: grid; place-items: center; color: var(--color-text-secondary); }
.thumb--md { width: 48px; height: 64px; border-radius: var(--radius-sm); background: var(--color-subtle); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.thumb--lg { width: 64px; height: 88px; border-radius: var(--radius-sm); background: var(--color-subtle); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.thumb--lg .i, .thumb--md .i { width: 20px; height: 20px; }
.thumb--video::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: var(--radius-pill); background: var(--color-charcoal); box-shadow: 0 0 0 2px var(--color-white); }
.thumb--video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -4px 0 0 -2px; width: 0; height: 0; border-left: 7px solid var(--color-white); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.thumb--video > .i { display: none; }
.thumb.is-bad { box-shadow: inset 0 0 0 2px var(--color-charcoal); }
/* Quality mark on a thumbnail corner: ok (green check) / bad (charcoal warning). */
.qmark { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: var(--radius-pill); display: grid; place-items: center; border: 2px solid var(--color-white); }
.qmark .i { width: 12px; height: 12px; }
.qmark--ok { background: var(--verified-fg); color: var(--color-white); }
.qmark--bad { background: var(--color-charcoal); color: var(--color-white); }
.qlegend { display: flex; gap: var(--space-4); flex-wrap: wrap; font: var(--text-body-sm); color: var(--color-text-secondary); align-items: center; }
.qlegend > span { display: inline-flex; gap: var(--space-2); align-items: center; }
.qlegend .qmark { position: static; border: 0; }
/* Shot grid (one point's shots, 5.4): 2 columns of 9:16 cards with Retake/Delete. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
.shot { display: flex; flex-direction: column; gap: var(--space-2); }
.shot .media { aspect-ratio: 3 / 4; }
.shot__q { display: inline-flex; align-items: center; gap: var(--space-1); font: var(--text-label); }
.shot__q .i { width: 16px; height: 16px; }
.shot__acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); }
.shot__acts .btn { padding: 0; }
.shot-add { aspect-ratio: 3 / 4; border-radius: var(--radius-card); border: 2px dashed var(--color-border-strong); display: grid; place-items: center; align-content: center; gap: var(--space-1); font: var(--text-label); color: var(--color-text-primary); background: var(--color-white); }
.shot-add .i { color: var(--color-red); width: 24px; height: 24px; }
/* Grouped shots (review all, public report). */
.group { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: var(--border-default); }
.group:last-child { border-bottom: 0; }
.group__h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); font: var(--text-body); font-weight: 700; }
.group__h .meta { font-weight: 500; }
.group .thumbs { padding-top: var(--space-1); gap: var(--space-3); }

/* ---------- 15. Checklist (show the site) ---------- */
.ck { display: flex; flex-direction: column; background: var(--color-white); border: var(--border-default); border-radius: var(--radius-card); }
.ck__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); min-height: 76px; text-align: left; width: 100%; }
.ck__row + .ck__row { border-top: var(--border-default); }
.ck__mark { width: 28px; height: 28px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--color-border-strong); display: grid; place-items: center; color: var(--color-white); background: var(--color-white); }
.ck__mark .i { width: 16px; height: 16px; }
.ck__row.is-done .ck__mark { background: var(--color-charcoal); box-shadow: none; }
.ck__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.ck__t { font: var(--text-body); font-weight: 700; }
.ck__sub { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font: var(--text-body-sm); color: var(--color-text-secondary); }
.ck__count { font: var(--text-body-sm); font-weight: 600; color: var(--color-text-primary); text-decoration: underline; text-decoration-color: var(--color-red); text-underline-offset: 3px; }
.ck-progress { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- 16. Map ---------- */
/* Base map comes from the sprite: <svg class="map__base" viewBox="0 0 400 600" preserveAspectRatio="xMidYMid slice"><use href="#basemap"/></svg> */
.m-land { fill: var(--map-land); }
.m-park { fill: var(--map-park); }
.m-water { fill: none; stroke: var(--map-water); stroke-linecap: round; }
.m-road { fill: none; stroke: var(--map-road); stroke-linecap: round; }
.m-cas { fill: none; stroke: var(--map-road-casing); stroke-linecap: round; }
.m-major { fill: none; stroke: var(--map-road-major); stroke-linecap: round; }
.m-lbl { font-family: var(--font-sans); font-weight: 600; fill: var(--map-label); }
.m-lbl-maj { font-family: var(--font-sans); font-weight: 800; fill: var(--map-label-major); }
.map { position: relative; overflow: hidden; background: var(--map-land); flex: 1 1 auto; min-height: 0; }
.map--inset { flex: none; height: 300px; border-radius: var(--radius-card); border: var(--border-default); }
.map__base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Everything placed on the map uses --x / --y (inline custom properties). */
.pin, .bpin, .clu, .you, .pin-tag, .ring { position: absolute; left: var(--x); top: var(--y); }
/* Teardrop pin: open (red), verified (green), none (grey). 44px tap target, 32 x 42 drop. */
.pin { width: 44px; height: 46px; transform: translate(-50%, -100%); display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.pin svg { width: 32px; height: 42px; display: block; filter: drop-shadow(0 2px 3px var(--color-overlay)); }
.pin--open { color: var(--pin-open); }
.pin--ver { color: var(--pin-verified); }
.pin--none { color: var(--pin-none); }
.pin--site { color: var(--color-charcoal); }
.pin--sel { height: 60px; z-index: 3; }
.pin--sel svg { width: 44px; height: 58px; filter: drop-shadow(0 8px 12px var(--color-overlay)); }
/* Bounty pin: shows what a site pays ("20 USDC") or "Not open". White pill + red coin; charcoal when selected. */
.bpin { transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: var(--space-1); height: 44px; padding: 0 var(--space-1) 8px; z-index: 2; font: var(--text-label); font-weight: 700; color: var(--color-text-primary); white-space: nowrap; font-variant-numeric: var(--meta-figures); }
.bpin__in { display: inline-flex; align-items: center; gap: var(--space-1); height: 32px; padding: 0 var(--space-3) 0 var(--space-2); border-radius: var(--radius-pill); background: var(--color-white); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--color-border); position: relative; }
.bpin__in::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.bpin .i { width: 18px; height: 18px; color: var(--color-red); }
.bpin--off .bpin__in { background: var(--color-subtle); color: var(--color-text-secondary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.bpin--off .i { color: var(--pin-none); }
.bpin--ver .i { color: var(--verified-fg); }
.bpin--sel { z-index: 3; }
.bpin--sel .bpin__in { background: var(--color-charcoal); color: var(--color-white); box-shadow: var(--shadow-float); }
.bpin--sel .i { color: var(--color-white); }
/* Cluster: red circle, white bold count. */
.clu { transform: translate(-50%, -50%); border-radius: var(--radius-pill); background: var(--pin-open); color: var(--color-white); border: 2px solid var(--color-white); display: grid; place-items: center; font: var(--text-title); font-weight: 800; font-size: 19px; box-shadow: var(--shadow-float); font-variant-numeric: var(--meta-figures); width: 48px; height: 48px; z-index: 2; }
.clu--l { width: 60px; height: 60px; font: var(--text-h3); font-weight: 800; }
/* You: blue dot, white ring, soft halo. Optional label. */
.you { width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: var(--radius-pill); background: var(--you); border: 3px solid var(--color-white); box-shadow: 0 0 0 12px var(--map-water), var(--shadow-card); z-index: 2; }
/* Small white label on the map (Site, You, 340 m). */
.pin-tag { transform: translate(-50%, 0); background: var(--color-white); border-radius: var(--radius-sm); box-shadow: var(--shadow-float); padding: 2px var(--space-2); font: var(--text-label); white-space: nowrap; z-index: 3; color: var(--color-text-primary); font-variant-numeric: var(--meta-figures); }
.pin-tag--up { transform: translate(-50%, -100%); }
.pin-tag--dark { background: var(--color-charcoal); color: var(--color-white); }
/* Site area ring (150 m) and GPS accuracy disc. --d is the diameter. */
.ring { width: var(--d, 200px); height: var(--d, 200px); transform: translate(-50%, -50%); border-radius: var(--radius-pill); border: 2px dashed var(--color-charcoal); background: var(--color-off-white); opacity: 0.85; z-index: 1; }
.ring--ok { border-style: solid; border-color: var(--verified-fg); background: var(--verified-bg); }
.ring--accuracy { border: 2px solid var(--you); background: var(--map-water); opacity: 0.7; }
/* Distance line between you and the site: rotate with --a, length --l. */
.map-line { position: absolute; left: var(--x); top: var(--y); width: var(--l); height: 0; border-top: 2px dashed var(--color-charcoal); transform-origin: 0 0; transform: rotate(var(--a)); z-index: 1; }
/* Floating map controls and top area. */
.map-fab { position: absolute; right: var(--space-3); top: var(--space-3); z-index: 4; width: 44px; height: 44px; border-radius: var(--radius-control); background: var(--color-white); box-shadow: var(--shadow-float); display: grid; place-items: center; color: var(--color-text-primary); }
.maptop { flex: none; background: var(--color-white); padding: 0 var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); position: relative; z-index: 5; box-shadow: var(--shadow-card); }
.maptop__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; }
.maptop__search { display: flex; gap: var(--space-2); align-items: center; }
/* Language switch (EN · FIL): small secondary control. */
.lang-btn { display: inline-flex; align-items: center; gap: var(--space-1); height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font: var(--text-label); font-weight: 700; color: var(--color-text-primary); border: 4px solid transparent; background: var(--color-white); background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.lang-btn .i { width: 16px; height: 16px; color: var(--color-red); }
/* Earned chip on the signed-in map (5.9): white pill over the map, tap → Wallet. */
.earned { position: absolute; left: var(--space-4); top: var(--space-3); z-index: 4; display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-3) 0 var(--space-2); border-radius: var(--radius-pill); background: var(--color-white); box-shadow: var(--shadow-float); font: var(--text-label); font-weight: 700; color: var(--color-text-primary); font-variant-numeric: var(--meta-figures); }
.earned .i { width: 24px; height: 24px; color: var(--color-red); }
.earned .i-s { width: 16px; height: 16px; color: var(--color-text-secondary); }

/* ---------- 17. Sheets, scrim, dialogs, toast ---------- */
/* Docked sheet (Near you on the map): in the flow, overlaps the map by its radius. */
.sheet { position: relative; z-index: 4; background: var(--color-white); border-radius: var(--radius-modal) var(--radius-modal) 0 0; padding: var(--space-2) var(--space-4) var(--space-4); box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: var(--space-2); flex: none; }
.sheet--dock { margin-top: calc(var(--radius-modal) * -1); }
.sheet__handle { width: 40px; height: 4px; border-radius: var(--radius-pill); background: var(--color-border-strong); margin: 0 auto var(--space-2); flex: none; }
.sheet__t { font: var(--text-h3); letter-spacing: var(--track-h3); }
.sheet__p { font: var(--text-body); color: var(--color-text-secondary); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.sheet .actions { padding-top: var(--space-4); }
/* Modal sheet over a scrim: absolutely placed at the bottom of the screen. */
.scrim { position: absolute; inset: 0; background: var(--color-overlay); z-index: 7; }
.sheet--modal { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; padding: var(--space-2) var(--space-4) var(--space-8); box-shadow: none; gap: var(--space-3); }
.sheet--modal .sheet__handle { margin-bottom: var(--space-3); }
/* Under a modal the docked sheet is background: hide its handle so the modal's handle reads alone */
.screen:has(.sheet--modal) .sheet--dock .sheet__handle { visibility: hidden; }
/* Centred dialog (rare). */
.dialog { position: absolute; left: var(--space-6); right: var(--space-6); top: 50%; transform: translateY(-50%); z-index: 8; background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-float); }
.dialog__t { font: var(--text-h3); letter-spacing: var(--track-h3); }
.dialog__p { font: var(--text-body); color: var(--color-text-secondary); }
/* Toast: charcoal info, white + charcoal border for errors. Sits above the nav/foot. */
.toast { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: var(--radius-card); background: var(--color-charcoal); color: var(--color-white); box-shadow: var(--shadow-float); font: var(--text-body-sm); }
.toast p { flex: 1; min-width: 0; }
.toast__act { flex: none; height: 44px; padding: 0 var(--space-3); font: var(--text-label); font-weight: 700; color: inherit; border-radius: var(--radius-control); text-decoration: underline; text-underline-offset: 3px; }
.toast--error { background: var(--color-white); color: var(--color-text-primary); box-shadow: inset 0 0 0 1.5px var(--color-charcoal), var(--shadow-float); }
.toast-dock { position: absolute; left: var(--space-4); right: var(--space-4); bottom: calc(80px + var(--space-3)); z-index: 6; }

/* ---------- 18. System UI (phone OS, not our brand) ---------- */
/* Passkey sheet (create / sign in / confirm) and permission prompt. Neutral greys, no red. */
.os-sheet { position: absolute; left: var(--space-2); right: var(--space-2); bottom: var(--space-2); z-index: 9; background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); box-shadow: var(--shadow-float); }
.os-sheet__app { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-2); }
.os-sheet__icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--color-subtle); display: grid; place-items: center; color: var(--color-text-primary); }
.os-sheet__icon .i { width: 22px; height: 22px; }
.os-sheet__t { font: var(--text-title); }
.os-sheet__p { font: var(--text-body-sm); color: var(--color-text-secondary); }
.os-sheet__acct { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); margin-top: var(--space-2); background: var(--color-subtle); border-radius: var(--radius-control); font: var(--text-body-sm); }
.os-sheet__acct b { display: block; font: var(--text-body); font-weight: 700; }
.os-acts { display: flex; justify-content: flex-end; gap: var(--space-2); padding-top: var(--space-3); }
.os-btn { height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font: var(--text-body-sm); font-weight: 700; color: var(--color-text-primary); }
.os-btn--go { background: var(--color-charcoal); color: var(--color-white); }
.os-tag { align-self: flex-start; font: var(--text-overline); letter-spacing: var(--track-overline); text-transform: uppercase; color: var(--color-text-secondary); }
/* Permission prompt: centred OS dialog. */
.os-dialog { position: absolute; left: var(--space-8); right: var(--space-8); top: 50%; transform: translateY(-50%); z-index: 9; background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-float); text-align: center; align-items: center; }
.os-dialog .os-acts { justify-content: stretch; width: 100%; border-top: var(--border-default); }
.os-dialog .os-btn { flex: 1; }
/* Browser address bar (public report opened by anyone). */
.urlbar { flex: none; display: flex; align-items: center; gap: var(--space-2); height: 44px; margin: 0 var(--space-3) var(--space-2); padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--color-subtle); font: var(--text-body-sm); color: var(--color-text-primary); }
.urlbar .i { width: 16px; height: 16px; color: var(--color-text-secondary); }

/* ---------- 19. State screens (full-screen outcome) ---------- */
/* Icon, title, one paragraph, then facts or steps. Failures say what happened and what to do. */
.state { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); }
.state--center { align-items: center; text-align: center; }
.state__icon { width: 64px; height: 64px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-subtle); color: var(--color-text-primary); margin-bottom: var(--space-2); flex: none; }
.state__icon .i { width: 32px; height: 32px; }
.state__icon--done { background: var(--verified-bg); color: var(--verified-fg); }
.state__icon--alert { background: var(--color-white); box-shadow: inset 0 0 0 2px var(--color-charcoal); }
.state__icon--brand { background: var(--color-pale-pink); color: var(--color-red); }
.state__icon--xl { width: 112px; height: 112px; }
.state__icon--xl .i { width: 56px; height: 56px; }
.state__figure { font: var(--text-display); letter-spacing: var(--track-display); font-variant-numeric: var(--meta-figures); }
.state__figure--red { color: var(--color-red); }
.state__t { font: var(--text-h2); letter-spacing: var(--track-h2); }
.state__p { font: var(--text-body-lg); color: var(--color-text-secondary); }
.state__p b { color: var(--color-text-primary); }
/* Handle display ("You are @tala-482"). */
.handle { font: var(--text-h2); letter-spacing: var(--track-h2); font-variant-numeric: var(--meta-figures); }
/* Empty state with a pattern corner. */
.empty { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-12) var(--space-6) var(--space-8); background: var(--color-subtle); border-radius: var(--radius-card); }
.empty .empty__t { font: var(--text-title); color: var(--color-text-primary); position: relative; z-index: 1; }
.empty p { font: var(--text-body-sm); color: var(--color-text-secondary); max-width: 30ch; position: relative; z-index: 1; }
/* Feature tile: Phosphor fill, red on pale pink. */
.tile { width: 56px; height: 56px; border-radius: var(--radius-control); background: var(--color-pale-pink); color: var(--color-red); display: grid; place-items: center; flex: none; }
.tile .i { width: 30px; height: 30px; }
.tile--sm { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.tile--sm .i { width: 22px; height: 22px; }
.tile--grey { background: var(--color-subtle); color: var(--color-text-primary); }
/* Feature list (why an account, permissions primer, tips): tile + bold line + one line. */
.feats { display: flex; flex-direction: column; gap: var(--space-4); }
.feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.feat__t { font: var(--text-body); font-weight: 700; }
.feat__p { font: var(--text-body-sm); color: var(--color-text-secondary); }
/* Pattern corner cluster (brand pieces at the edge only). */
.cluster { position: absolute; display: grid; grid-template-columns: repeat(2, var(--cs, 48px)); grid-auto-rows: var(--cs, 48px); pointer-events: none; z-index: 0; }
.cluster > i { position: relative; display: block; }
.cluster--tr { right: 0; top: 0; } .cluster--br { right: 0; bottom: 0; } .cluster--bl { left: 0; bottom: 0; }
.sh { position: absolute; inset: 0; }
.sh--red { background: var(--color-red); } .sh--pink { background: var(--color-pale-pink); } .sh--off { background: var(--color-subtle); }
.q-tl { border-top-left-radius: 100%; } .q-tr { border-top-right-radius: 100%; } .q-bl { border-bottom-left-radius: 100%; } .q-br { border-bottom-right-radius: 100%; }
.leaf-a { border-radius: 100% 0 100% 0; } .leaf-b { border-radius: 0 100% 0 100%; } .circ { border-radius: var(--radius-pill); }

/* ---------- 20. Upload / sending ---------- */
.sendhead { display: flex; flex-direction: column; gap: var(--space-3); }
.sendhead__n { font: var(--text-h2); letter-spacing: var(--track-h2); font-variant-numeric: var(--meta-figures); }
/* Per-point rows with a status on the right. */
.up { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); min-height: 64px; }
.up__t { font: var(--text-body); font-weight: 700; }
.up__s { font: var(--text-body-sm); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); }
.st { display: inline-flex; align-items: center; gap: var(--space-1); font: var(--text-label); color: var(--color-text-secondary); white-space: nowrap; font-variant-numeric: var(--meta-figures); }
.st .i { width: 20px; height: 20px; }
.st--done { color: var(--color-text-primary); }
.st--done .i { color: var(--verified-fg); }
.st--sending { color: var(--color-text-primary); }
.st--sending .i { color: var(--color-red); }
.st--failed { color: var(--color-text-primary); font-weight: 700; }
.st--failed .i { color: var(--color-text-primary); }
.spin { animation: bb-spin 1.2s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- 21. Wallet ---------- */
/* Balance: overline, big red amount (the brand moment), one line under it. */
.balance { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-6) var(--space-4) var(--space-4); background: var(--color-white); border: var(--border-default); border-radius: var(--radius-card); position: relative; overflow: hidden; }
.balance__amt { font: var(--text-display); letter-spacing: var(--track-display); color: var(--color-red); font-variant-numeric: var(--meta-figures); padding: var(--space-1) 0; position: relative; z-index: 1; }
.balance__amt small { font: var(--text-h3); letter-spacing: var(--track-h3); }
.balance__p { font: var(--text-body-sm); color: var(--color-text-secondary); position: relative; z-index: 1; }
/* Payout address card with the 48 h countdown. */
.addr { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--color-white); border: var(--border-strong); border-radius: var(--radius-card); }
.addr__v { font: var(--text-title); font-variant-numeric: var(--meta-figures); letter-spacing: 0.01em; }
.countdown { font: var(--text-title); font-variant-numeric: var(--meta-figures); }
/* Address confirm summary (7.5): reuses .facts. QR scanner on the dark camera. */
/* QR-code placeholder (3.4: open on your phone). Drawn, not a real code: three finder squares on a dotted field. */
.qr-code { position: relative; width: 168px; height: 168px; flex: none; align-self: center; padding: var(--space-3); border-radius: var(--radius-card); background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.qr-code::before { content: ""; position: absolute; inset: var(--space-3); background: radial-gradient(var(--color-charcoal) 38%, transparent 42%) 0 0 / 12px 12px; opacity: 0.55; }
.qr-code > i { position: absolute; width: 44px; height: 44px; border: 7px solid var(--color-charcoal); border-radius: 6px; background: var(--color-white); box-shadow: inset 0 0 0 7px var(--color-white), inset 0 0 0 30px var(--color-charcoal); }
.qr-code > i:nth-child(1) { left: var(--space-3); top: var(--space-3); }
.qr-code > i:nth-child(2) { right: var(--space-3); top: var(--space-3); }
.qr-code > i:nth-child(3) { left: var(--space-3); bottom: var(--space-3); }
.qr-code-wrap { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; }
.row__body > .badge { align-self: flex-start; }
.qr-code__l { display: block; text-align: center; font: var(--text-meta); color: var(--color-text-secondary); font-variant-numeric: var(--meta-figures); padding-top: var(--space-2); }
.qr { position: relative; width: 240px; height: 240px; align-self: center; }
.qr::before, .qr::after, .qr > i::before, .qr > i::after { content: ""; position: absolute; width: 40px; height: 40px; border: 4px solid var(--color-white); }
.qr::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius-control); }
.qr::after { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: var(--radius-control); }
.qr > i::before { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: var(--radius-control); }
.qr > i::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius-control); }

/* ---------- 22. Long text (rules, help) ---------- */
.prose { display: flex; flex-direction: column; gap: var(--space-6); }
.prose section { display: flex; flex-direction: column; gap: var(--space-1); }
.prose h3 { font: var(--text-title); letter-spacing: var(--track-title); }
.prose p { font: var(--text-body); color: var(--color-text-secondary); }
.prose p b { color: var(--color-text-primary); }

/* ---------- 23. Camera chrome ---------- */
/* The camera screen: .screen.screen--cam > .sbar.sbar--dark + .cam (viewfinder, flex 1) + .cam-foot. */
.cam { position: relative; flex: 1 1 auto; min-height: 0; background: var(--color-text-secondary); overflow: hidden; display: flex; flex-direction: column; color: var(--color-white); }
/* Honest placeholder for the live picture: two soft diagonals and a caption. */
.cam__view { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--color-overlay) 50%, transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), var(--color-overlay) 50%, transparent calc(50% + 1px)); }
.cam__view .meta { color: var(--color-white); background: var(--color-overlay); padding: 2px var(--space-2); border-radius: var(--radius-sm); }
.cam-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
.cam-top .circ-btn { background: var(--color-overlay); color: var(--color-white); box-shadow: none; }
/* Pill on the camera: step title / timer. Charcoal glass, white text. */
.cam-pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--color-charcoal); color: var(--color-white); font: var(--text-label); font-weight: 700; font-variant-numeric: var(--meta-figures); }
.cam-pill .i { width: 16px; height: 16px; }
/* Recording timer: red dot + elapsed / total. */
.rec-dot { width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--color-red); flex: none; }
/* 9:16 frame guide and signboard target. */
.frame-guide { position: absolute; left: 50%; top: 72px; bottom: 132px; aspect-ratio: 9 / 16; max-width: calc(100% - 48px); transform: translateX(-50%); border: 2px dashed var(--color-white); border-radius: var(--radius-control); z-index: 1; }
.frame-guide__l { position: absolute; right: var(--space-2); bottom: var(--space-2); font: var(--text-meta); color: var(--color-white); background: var(--color-overlay); padding: 0 var(--space-2); border-radius: var(--radius-sm); }
.sign-guide { position: absolute; left: 50%; top: 34%; width: 220px; height: 128px; transform: translate(-50%, -50%); border: 3px solid var(--color-white); border-radius: var(--radius-control); display: grid; place-items: center; z-index: 1; font: var(--text-overline); letter-spacing: var(--track-overline); text-transform: uppercase; color: var(--color-white); }
.sign-guide span { background: var(--color-overlay); padding: 2px var(--space-2); border-radius: var(--radius-sm); }
/* Live cue chip: ok (green check), warn (amber), off (charcoal x). Top of the viewfinder. */
.cue { position: relative; z-index: 3; align-self: center; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-4) 0 var(--space-3); border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-text-primary); font: var(--text-body-sm); font-weight: 700; box-shadow: var(--shadow-float); }
.cue .i { width: 18px; height: 18px; }
.cue--ok .i { color: var(--verified-fg); }
.cue--warn { background: var(--review-bg); }
.cue--warn .i { color: var(--review-icon); }
/* Guidance card at the bottom of the viewfinder: one bold line + one small line. */
.cam-hint { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 3; background: var(--color-charcoal); color: var(--color-white); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); text-align: center; font: var(--text-body); font-weight: 700; }
.cam-hint small { display: block; font: var(--text-body-sm); color: var(--color-white); opacity: 0.86; padding-top: 2px; }
/* Pan guide: big arrow in a ring (keep turning right). */
.pan-arrow { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 112px; height: 112px; border-radius: var(--radius-pill); border: 4px solid var(--color-white); display: grid; place-items: center; z-index: 2; background: var(--color-overlay); }
.pan-arrow .i { width: 56px; height: 56px; color: var(--color-white); }
/* Phone sideways: rotate glyph. */
.rotate { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: var(--space-2); }
.rotate .i { width: 72px; height: 72px; color: var(--color-white); }
.rotate__t { font: var(--text-h3); letter-spacing: var(--track-h3); color: var(--color-white); text-align: center; white-space: nowrap; }
.rotate__p { font: var(--text-body-sm); color: var(--color-white); opacity: 0.8; text-align: center; }
/* Shutter off + its reason, side by side under the viewfinder (5.2d) */
.cam-foot__off { font: var(--text-body-sm); font-weight: 700; color: var(--color-white); text-align: center; }
/* QR scanner screen (7.3): .qr target centred in the viewfinder, title above, help below */
.qr-scan { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); padding: var(--space-6); text-align: center; }
/* Guidance sits on dark cards (like .cam-hint), never on the bare placeholder */
.qr-scan__t { font: var(--text-title); letter-spacing: var(--track-title); color: var(--color-white); background: var(--color-charcoal); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); max-width: 300px; box-shadow: var(--shadow-float); }
.qr-scan__p { font: var(--text-body-sm); color: var(--color-white); background: var(--color-charcoal); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); box-shadow: var(--shadow-float); }
/* Bottom panel under the viewfinder: mode toggle, shutter, counter. */
.cam-foot { flex: none; background: var(--color-charcoal); color: var(--color-white); padding: var(--space-4) var(--space-4) var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.cam-foot__n { font: var(--text-body-sm); color: var(--color-white); font-variant-numeric: var(--meta-figures); }
.cam-foot .progress { width: 100%; background: var(--color-text-secondary); }
.cam-foot .progress > i { background: var(--color-white); }
/* Shutter: 72px red disc with a white ring. Recording = stop square; off = grey. */
.shutter { width: 76px; height: 76px; border-radius: var(--radius-pill); background: var(--color-action); color: var(--color-white); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--color-charcoal), 0 0 0 8px var(--color-white); margin: var(--space-2) 0; flex: none; transition: transform var(--dur-fast) var(--ease); }
.shutter:active { transform: scale(0.96); }
.shutter .i { width: 32px; height: 32px; }
.shutter--rec::before { content: ""; width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--color-white); }
.shutter--rec.is-locked { cursor: default; position: relative; }
.shutter--rec.is-locked:active { transform: none; }
.shutter--rec.is-locked::before { width: 56px; height: 56px; border-radius: var(--radius-pill); background: conic-gradient(var(--color-white) calc(var(--p, 0.35) * 1turn), rgba(255, 255, 255, 0.35) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)); }
.shutter.is-off { background: var(--color-text-secondary); box-shadow: 0 0 0 4px var(--color-charcoal), 0 0 0 8px var(--color-text-secondary); cursor: not-allowed; }
/* Pan meter: degrees reached, 60° minimum tick, labels. */
.pan-meter { width: 100%; display: flex; flex-direction: column; gap: var(--space-2); }
.pan-meter__n { font: var(--text-h2); letter-spacing: var(--track-h2); text-align: center; font-variant-numeric: var(--meta-figures); }
.pan-meter__bar { position: relative; height: 12px; border-radius: var(--radius-pill); background: var(--color-text-secondary); }
.pan-meter__bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0); border-radius: var(--radius-pill); background: var(--color-white); }
.pan-meter__bar > b { position: absolute; left: 66.6%; top: -6px; bottom: -6px; width: 3px; background: var(--color-red); border-radius: 2px; }
.pan-meter__lbl { position: relative; height: 16px; font: var(--text-meta); color: var(--color-white); font-variant-numeric: var(--meta-figures); }
.pan-meter__lbl span { position: absolute; top: 0; }
.pan-meter__lbl span:first-child { left: 0; }
.pan-meter__lbl span:nth-child(2) { left: 66.6%; transform: translateX(-50%); font-weight: 700; }
.pan-meter__lbl span:last-child { right: 0; }
/* Quality check card after a shot (5.3a / 5.3b). */
.qcheck { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-1) var(--space-3); padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-white); border: var(--border-strong); }
.qcheck > .i { width: 28px; height: 28px; }
.qcheck__t { font: var(--text-title); }
.qcheck__p { grid-column: 2; font: var(--text-body-sm); color: var(--color-text-secondary); }
.qcheck--ok > .i { color: var(--verified-fg); }
.qcheck--bad { border: var(--border-error); }

/* Progress bar inside a camera hint card (5.2b): gap above it. Added by orchestrator after critic C. */
.cam-hint .progress { margin-top: var(--space-3); }

/* Stretched row link: the title link itself is a real 44px box without changing the row height. Added by orchestrator. */
.rrow--link .rrow__main { display: block; padding: 11px 0; margin: -11px 0; }
