/*
 * Talk to Quote, the prototype. The look of Apple's own apps: grouped lists,
 * system type at regular and semibold, hairline separators, glass bars, one
 * tint for actions, and amber only for what is not confirmed yet.
 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }

/* ── tokens live in ../tokens.css (both themes); this file only uses them ── */
.app { color-scheme: light; }
.app[data-theme="dark"] { color-scheme: dark; }

.app { position: relative; overflow: hidden; background: var(--bg); color: var(--label); font: var(--text-body)/1.3 var(--font); letter-spacing: -0.01em; }
.i { width: 22px; height: 22px; flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.fig { font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.sub { font-size: var(--text-sub); line-height: 1.33; color: var(--label-2); letter-spacing: -0.005em; }
.foot { font-size: var(--text-foot); line-height: 1.38; color: var(--label-2); letter-spacing: 0; }

/* The honesty marks. Class names are the C3 lock's hooks. */
.star { color: var(--amber); font-weight: 600; margin-left: 1px; }
.infer-mark { color: var(--label-2); font-weight: 500; margin-left: 2px; }
.assumed { color: var(--amber); }

/* ── screens and motion ─────────────────────────────────────────────────── */
.screen { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; will-change: transform; }
.screen.enter-push { animation: push-in var(--dur) var(--ease) both; }
.screen.leave-push { animation: push-out var(--dur) var(--ease) both; }
.screen.enter-pop { animation: pop-in var(--dur) var(--ease) both; }
.screen.leave-pop { animation: pop-out var(--dur) var(--ease) both; z-index: 2; }
@keyframes push-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes push-out { from { transform: none; } to { transform: translateX(-28%); filter: brightness(0.92); } }
@keyframes pop-in { from { transform: translateX(-28%); filter: brightness(0.92); } to { transform: none; filter: none; } }
@keyframes pop-out { from { transform: none; } to { transform: translateX(100%); } }
.screen.enter-push, .screen.leave-pop { box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); z-index: 2; }
.screen.enter-sheet { animation: sheet-up var(--dur) var(--ease) both; z-index: 3; border-radius: 14px 14px 0 0; }
.screen.leave-sheet { animation: sheet-down 220ms var(--ease) both; z-index: 3; }
.toast { position: absolute; left: 50%; bottom: calc(var(--bottom-gap, 28px) + 84px); transform: translate(-50%, 8px); z-index: 30; max-width: calc(100% - 48px);
  padding: 11px 18px; border-radius: 22px; background: var(--toast); color: var(--on-toast); font-size: var(--text-sub); line-height: 1.3; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 120px; }

/* Sheets */
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 20; animation: fade-in var(--dur) var(--ease) both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--safe-top, 0px) + 10px); z-index: 21; background: var(--bg); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; animation: sheet-up var(--dur) var(--ease) both; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18); }
.sheet.closing { animation: sheet-down 220ms var(--ease) both; }
.scrim.closing { animation: fade-out 220ms var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 6px auto 0; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .screen.enter-push, .screen.leave-push, .screen.enter-pop, .screen.leave-pop, .screen.enter-sheet, .screen.leave-sheet, .sheet, .sheet.closing { animation: fade-in 1ms both; }
  .toast { transition: none; }
  .wave i { animation: none !important; }
}

/* ── navigation bar ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr); align-items: center; min-height: calc(52px + var(--safe-top, 0px)); padding: var(--safe-top, 0px) 8px 0; transition: background var(--dur-fast), box-shadow var(--dur-fast); }
.nav.scrolled { background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0.5px 0 var(--sep); }
.nav-title { font-size: var(--text-body); font-weight: 600; text-align: center; opacity: 0; transition: opacity var(--dur-fast); white-space: nowrap; }
.nav.scrolled .nav-title, .nav.always .nav-title { opacity: 1; }
.nav-l { justify-self: start; }
.nav-r { justify-self: end; display: flex; gap: 4px; }
.nav-btn { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--tint); font-size: var(--text-body); }
.nav-btn.back { padding-left: 0; gap: 0; }
.nav-btn.back .i { width: 30px; height: 30px; --icon-stroke: 2.2; margin-right: -4px; }
.nav-btn.bold { font-weight: 600; }
.avatar-btn { width: 44px; height: 44px; display: grid; place-items: center; }
.avatar-btn span { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; font-size: var(--text-sub); font-weight: 600; color: #fff; background-color: var(--mono-a); background-image: linear-gradient(180deg, var(--mono-a), var(--mono-b)); letter-spacing: 0.02em; }
.large { font-size: var(--text-large); line-height: 1.2; font-weight: 700; letter-spacing: 0.01em; margin: 0 20px; }
.large-sub { margin: 4px 20px 0; display: flex; align-items: center; gap: 6px; }
.large-sub .i { width: 17px; height: 17px; color: var(--mine); --icon-stroke: 2; }

/* ── lists ──────────────────────────────────────────────────────────────── */
.section { margin: 26px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 20px 8px; }
.section-head h2 { font-size: var(--text-title3); line-height: 1.25; font-weight: 700; margin: 0; letter-spacing: 0.01em; }
.section-head .sub { font-size: var(--text-sub); }
.group { margin: 0 16px; background: var(--cell); border-radius: var(--radius-l); overflow: hidden; }
.section-foot { margin: 8px 20px 0; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 11px 16px; text-align: left; }
.row + .row::before, .row + .rowish::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 16px); height: 1px; transform: scaleY(0.5); transform-origin: top; background: var(--sep); }
button.row:active, .row.tap:active { background: var(--fill); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: var(--text-body); line-height: 1.3; }
.row-title.strong { font-weight: 600; }
.row-val { font-size: var(--text-body); color: var(--label-2); text-align: right; flex: none; max-width: 55%; }
/* A row's value (an amount, a choice, a time) drops under the words at a large text size rather than paint over them
   (lane 9R; seen at 320, 200%: "Subtotal" under "$32,182.04", a job's name under its time). The words keep ten
   characters beside the value; short of that the value takes the next line, right-aligned, its chevron with it. */
.row:has(> .amt), .row:has(> .row-val), .job-top { flex-wrap: wrap; }
.row:has(> .amt) > .row-main, .row:has(> .row-val) > .row-main { flex: 1 1 10em; min-width: min(10em, 100%); }
.row > .amt, .row > .row-val { flex: 0 1 auto; max-width: 100%; margin-left: auto; overflow-wrap: anywhere; }
.job-top .row-title { flex: 1 1 10em; min-width: min(10em, 100%); overflow-wrap: anywhere; }
.chev { width: 16px; height: 16px; color: var(--label-3); --icon-stroke: 2.6; flex: none; }
.lead-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--fill); color: var(--label-2); flex: none; }
.lead-icon .i { width: 18px; height: 18px; --icon-stroke: 2; }
.lead-icon.tint { background: var(--tint-fill); color: var(--tint-ink); }
.row.icon { --inset: 58px; }

/* Jobs */
/* The search box grows with its words (at 200% text a fixed 44 spilled them over the line above). */
.search { display: flex; align-items: center; gap: 6px; margin: 14px 16px 0; min-height: 44px; padding: 8px 12px; border-radius: 22px; background: var(--fill); color: var(--label-2); font-size: var(--text-body); width: calc(100% - 32px); text-align: left; }
.search .i { width: 18px; height: 18px; --icon-stroke: 2.2; }
.mono { width: 44px; height: 44px; border-radius: 22px; flex: none; display: grid; place-items: center; color: var(--on-mono); font-size: var(--text-body); font-weight: 600; background-color: var(--mono-a); background-image: linear-gradient(180deg, var(--mono-a), var(--mono-b)); letter-spacing: 0.02em; }
.mono .i { width: 22px; height: 22px; --icon-stroke: 2; }
.job { --inset: 72px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.job .mono { margin-top: 2px; }
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.job-top .row-title { flex: 1; min-width: 0; font-weight: 600; }
.job-when { font-size: var(--text-sub); color: var(--label-2); flex: none; display: flex; align-items: center; gap: 2px; }
.job-when .chev { width: 13px; height: 13px; }
.job-status { font-size: var(--text-sub); line-height: 1.33; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 5px; background: var(--tint); flex: none; }
.job-money { font-size: var(--text-sub); color: var(--label-2); margin-top: 1px; }
.ring { width: 30px; height: 30px; flex: none; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .track { stroke: var(--fill-2); }
.ring .val { stroke: var(--mine); stroke-linecap: round; }
.ring .est { stroke: var(--amber-bar); }

/* The floating tab bar and Talk */
.tabbar { position: absolute; left: 16px; right: 92px; bottom: var(--bottom-gap, 28px); height: 64px; border-radius: 32px; display: flex; align-items: stretch; padding: 4px; z-index: 10;
  background: var(--bar); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--shadow), inset 0 0 0 0.5px var(--bar-edge); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 28px; font-size: var(--text-cap2); font-weight: 600; color: var(--label); letter-spacing: 0.01em; }
.tab .i { width: 24px; height: 24px; }
.tab[aria-current="page"] { background: var(--fill); color: var(--tint); }
.talk-fab { position: absolute; right: 16px; bottom: var(--bottom-gap, 28px); width: 64px; height: 64px; border-radius: 32px; z-index: 10; display: grid; place-items: center; background: var(--tint-fill); color: var(--tint-ink); box-shadow: var(--shadow); }
.talk-fab .i { width: 28px; height: 28px; --icon-stroke: 2; }

/* A job */
.hero { text-align: center; padding: 4px 20px 0; }
.hero .mono { width: 84px; height: 84px; border-radius: 42px; font-size: var(--fig-2); margin: 0 auto 10px; }
.hero h1 { font-size: var(--text-title1); line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: 0.01em; }
.hero .sub { margin-top: 4px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 16px 0; }
.quick button { background: var(--cell); border-radius: 12px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tint); font-size: var(--text-cap1); font-weight: 500; letter-spacing: 0; }
.quick button span { color: var(--tint); }
.quick .i { width: 24px; height: 24px; }
.est-card { display: block; width: 100%; text-align: left; padding: 16px; }
.est-cap { display: flex; justify-content: space-between; align-items: center; }
.est-fig { font-size: var(--fig-2); line-height: 1.15; font-weight: 600; margin: 6px 0 4px; letter-spacing: -0.01em; }
.est-fig .star { font-size: 0.8em; vertical-align: 0.25em; }
.meta { display: flex; align-items: center; gap: 6px; }
.meta .i { width: 16px; height: 16px; --icon-stroke: 2.2; }
.meta .ok { color: var(--mine); }
.note-text { font-size: var(--text-body); line-height: 1.35; }
.tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--text-foot); color: var(--label-2); }
.tag .i { width: 14px; height: 14px; --icon-stroke: 2.2; }
.hist { --inset: 58px; align-items: flex-start; }
.hist .lead-icon { margin-top: 1px; }
.hist-when { font-size: var(--text-foot); color: var(--label-2); margin-top: 2px; }

/* Talk */
.talk { background: var(--bg); }
/* The title's track is sized so it never runs under Cancel or Done; a long one wraps (lane 9R, 200% text). */
.talk-head { display: grid; grid-template-columns: minmax(44px, 1fr) minmax(0, 2.6fr) minmax(44px, 1fr); align-items: center; padding: var(--safe-top, 0px) 8px 0; min-height: calc(52px + var(--safe-top, 0px)); }
.talk-head .t { font-size: var(--text-body); font-weight: 600; text-align: center; min-width: 0; overflow-wrap: anywhere; padding: 6px 0; }
.talk-body { flex: 1; overflow-y: auto; padding: 18px 24px 24px; }
.talk-words { font-size: var(--fig-3); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.talk-words .said { color: var(--label-2); }
.talk-words .now { color: var(--label); }
.talk-foot { flex: none; padding: 0 20px var(--bottom-gap, 28px); }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; }
.wave i { width: 3px; border-radius: 2px; background: var(--red); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.timer { text-align: center; font-size: var(--fig-hero); font-weight: 300; margin: 6px 0 16px; }
.rec-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.rec-side { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--text-foot); color: var(--label-2); min-width: 64px; }
.rec-side .circ { width: 52px; height: 52px; border-radius: 26px; background: var(--fill); display: grid; place-items: center; color: var(--label); }
.rec-stop { width: 76px; height: 76px; border-radius: 38px; display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--fill-2); }
.rec-stop i { width: 30px; height: 30px; border-radius: 7px; background: var(--red); display: block; }
.takes { margin: 18px 0 0; }

/* CHECK */
.provbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 12px 20px 8px; }
.provbar i { display: block; height: 100%; }
.check { --inset: 58px; align-items: flex-start; }
.circle { width: 44px; height: 44px; margin: -8px -9px -8px -11px; display: grid; place-items: center; flex: none; }
.circle span { width: 24px; height: 24px; border-radius: 12px; box-shadow: inset 0 0 0 1.75px var(--label-3); display: grid; place-items: center; color: var(--tint-ink); }
.circle.on span { background: var(--tint-fill); box-shadow: none; }
.circle .i { width: 15px; height: 15px; --icon-stroke: 3; }
.check-label { font-size: var(--text-sub); color: var(--label-2); line-height: 1.33; }
.check-val { font-size: var(--text-body); line-height: 1.3; margin-top: 1px; }
.check-why { font-size: var(--text-sub); line-height: 1.33; margin-top: 2px; color: var(--label-2); }
.check-why.assumed { color: var(--amber); }
.check .chev { margin-top: 16px; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px var(--bottom-gap, 28px); z-index: 10;
  background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.pill { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 26px; font-size: var(--text-body); font-weight: 600; }
.pill .i { width: 20px; height: 20px; --icon-stroke: 2.2; }
.pill.primary { background: var(--tint-fill); color: var(--tint-ink); }
.pill.secondary { background: var(--cell); color: var(--tint); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 0 0 0.5px var(--bar-edge); }
.pill-row { display: flex; gap: 10px; }
.pill-row .secondary { flex: 1 1 0; }
.pill-row .primary { flex: 1.6 1 0; }

/* Estimate */
.figure-card { padding: 18px 16px 14px; }
.figure-card .fig-big { font-size: var(--fig-1); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 4px; }
.fig-big .star { font-size: 0.75em; vertical-align: 0.35em; }
.fig-big .nw { white-space: nowrap; }
/* A small phone: the figure and its card give a little, so the range never runs off even at large text. */
@media (max-width: 360px) { .figure-card { padding: 16px 12px 12px; } .figure-card .fig-big { font-size: var(--fig-3); } }
.yours { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
.yours::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; transform: scaleY(0.5); transform-origin: top; background: var(--sep); }
.link { color: var(--tint); font-size: var(--text-body); min-height: 44px; display: inline-flex; align-items: center; }
.kv { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: baseline; }
.kv .k { flex: 0 0 auto; min-width: 96px; font-size: var(--text-sub); color: var(--label-2); padding-top: 1px; }
.kv .v { flex: 1 1 12em; min-width: min(12em, 100%); font-size: var(--text-body); line-height: 1.3; }
.kv .v .assumed { font-size: var(--text-sub); display: block; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--fill); font-size: var(--text-sub); font-weight: 600; display: grid; place-items: center; color: var(--label); }
.amt { font-size: var(--text-body); flex: none; }
.total .row-title, .total .amt { font-weight: 600; }
.priv-head { display: flex; align-items: center; gap: 6px; }
.priv-head .i { width: 17px; height: 17px; --icon-stroke: 2.2; color: var(--label-2); }

/* Send */
.seg { display: flex; margin: 16px 16px 0; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg button { flex: 1; min-height: 44px; border-radius: 8px; font-size: var(--text-sub); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--raised); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.doc-prev { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.paper-mini { width: 58px; height: 76px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.1); padding: 7px 6px; flex: none; }
.paper-mini b { display: block; width: 16px; height: 16px; border-radius: 3px; background: #1c1c1e; margin-bottom: 5px; }
.paper-mini i { display: block; height: 3px; border-radius: 2px; background: #d1d1d6; margin-bottom: 4px; }
.paper-mini i.s { width: 60%; }
.paper-mini i.a { background: #e8b56b; width: 40%; margin-left: auto; }

/* Onboarding */
.scroll.bare { padding-top: calc(var(--safe-top, 0px) + 24px); padding-bottom: 170px; }
.welcome { text-align: center; padding: 28px 28px 0; }
.welcome h1 { font-size: var(--text-large); line-height: 1.2; font-weight: 700; margin: 18px 0 6px; letter-spacing: 0.01em; }
/* The app's mark (DEC-084): the Biolume icon on light screens, the Sand icon on dark ones. */
.app-mark { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; overflow: hidden;
  background: #012520; box-shadow: 0 8px 20px rgba(1, 37, 32, 0.3); }
.app-mark .i { width: 46px; height: 46px; --icon-stroke: 2; }
.app-mark .m-light, .app-mark .m-dark { display: block; width: 100%; height: 100%; }
.app-mark svg { display: block; width: 100%; height: 100%; }
.app-mark .m-dark { display: none; }
[data-theme="dark"] .app-mark { background: #e6dac4; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .app-mark .m-light { display: none; }
[data-theme="dark"] .app-mark .m-dark { display: block; }
.feats { text-align: left; margin: 34px 0 0; display: grid; gap: 22px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon { width: 40px; flex: none; color: var(--tint); display: grid; place-items: center; }
.feat-icon .i { width: 32px; height: 32px; --icon-stroke: 1.6; }
.feat-t { display: block; font-size: var(--text-body); font-weight: 600; margin-bottom: 2px; }
.pill.plain { background: none; color: var(--tint); font-weight: 500; margin-top: 6px; }
.steps { display: flex; gap: 6px; margin: 4px 20px 0; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); }
.steps i.on { background: var(--tint); }
.step-head { text-align: center; padding: 26px 28px 4px; }
.step-icon { display: inline-grid; place-items: center; color: var(--tint); }
.step-icon .i { width: 44px; height: 44px; --icon-stroke: 1.6; }
.step-head h1 { font-size: var(--text-title1); line-height: 1.2; font-weight: 700; margin: 12px 0 6px; letter-spacing: 0.01em; }
.step-head .sub { font-size: var(--text-body); }
/* A form row with room (lane 9R): the label keeps its own width, the field has at least twelve characters beside it
   or drops under the label with the whole row to itself. A field grows to its words (field-sizing where the browser
   has it, app.js's fitFields everywhere else), so a long value takes the line rather than clipping. */
.field { cursor: text; }
.row.field { flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; row-gap: 0; }
.field-k { flex: 0 0 auto; width: auto; min-width: 7em; max-width: 100%; font-size: var(--text-body); padding: 11px 0; }
.field-v { flex: 1 1 auto; min-width: min(12em, 100%); height: var(--target); border: 0; outline: 0; background: none; font: inherit; font-size: var(--text-body); color: var(--label); text-align: left; padding: 0; margin: 0; field-sizing: content; }
.field-v::placeholder { color: var(--label-2); }
.field:focus-within { box-shadow: inset 3px 0 0 var(--tint); }
.ok-mark { color: var(--tint); flex: none; display: grid; place-items: center; }
.ok-mark .i { width: 22px; height: 22px; --icon-stroke: 2.4; }
.ok-mark.tint { color: var(--tint); }
.ready { padding-top: 12px; }
.big-ring { width: 120px; height: 120px; display: block; margin: 0 auto; }
.big-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.big-ring .track { stroke: var(--fill-2); }
.big-ring .est { stroke: var(--amber-bar); }
.big-ring .mine { stroke: var(--mine); }
.ready-stat { font-size: var(--text-title2); font-weight: 600; margin: 4px 0 0; }
.ready-note { font-size: var(--text-body); line-height: 1.4; color: var(--label); margin: 18px 0 0; }

/* The guided first estimate */
.tip { display: flex; gap: 12px; align-items: flex-start; margin: 14px 16px 0; padding: 14px 16px; border-radius: var(--radius-l); background: var(--cell); text-align: left; }
.talk-body .tip { margin: 0; background: var(--cell); }
.tip-icon { color: var(--tint); flex: none; padding-top: 1px; }
.tip-icon .i { width: 26px; height: 26px; --icon-stroke: 1.8; }
.tip-t { display: block; font-size: var(--text-body); font-weight: 600; margin-bottom: 2px; }
.sample-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--fill); color: var(--label-2); font-size: var(--text-foot); font-weight: 600; letter-spacing: 0.01em; }
.wave.idle i { animation-play-state: paused; opacity: 0.35; }
.rec-go { width: 76px; height: 76px; border-radius: 38px; display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--fill-2); }
.rec-go i { width: 60px; height: 60px; border-radius: 30px; background: var(--red); display: block; transition: all var(--dur-fast) var(--ease); }
.rec-go.on i { width: 30px; height: 30px; border-radius: 7px; }
.nav-btn[aria-disabled="true"] { color: var(--label-2); }
/* As specific as the dark tile rule above and after it, so You're Set keeps its green in dark. */
.app-mark.done-mark { background: linear-gradient(160deg, #34c759, #1b7f3b); box-shadow: 0 8px 20px rgba(27, 127, 59, 0.3); }

/* The ballpark: one number, big enough to read out in a back yard */
.bp { text-align: center; padding: 18px 20px 4px; }
.bp-fig { font-size: var(--fig-hero); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 8px; }
.bp-fig .nw { white-space: nowrap; }
.bp-fig .star { font-size: 0.7em; vertical-align: 0.4em; }
.bp-tag { display: inline-block; font-size: var(--text-sub); font-weight: 600; color: var(--label-2); padding: 6px 12px; border-radius: 16px; background: var(--fill); }
@media (max-width: 360px) { .bp-fig { font-size: var(--text-large); } }

/* ── the presentation around the phone (desktop only) ───────────────────── */
.stage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px 16px 40px;
  background: radial-gradient(1200px 700px at 50% 20%, #fbfbfd, #e4e4ea); font: 15px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #1d1d1f; }
.stage.dark-stage { background: radial-gradient(1200px 700px at 50% 20%, #2a2a2e, #0c0c0e); color: #f5f5f7; }
.controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.controls .seg { margin: 0; width: auto; }
.controls .seg button { min-height: 32px; padding: 0 14px; font-size: 13px; color: inherit; }
.controls .seg button[aria-pressed="true"] { color: #1d1d1f; background: #fff; }
.controls a, .controls button.plain { color: inherit; opacity: 0.8; font-size: 13px; }
.device { position: relative; width: 393px; height: 852px; border-radius: 58px; padding: 11px; background: #0b0b0c; box-shadow: 0 0 0 1.5px #3a3a3e, 0 40px 80px rgba(0, 0, 0, 0.28), 0 12px 24px rgba(0, 0, 0, 0.16); flex: none; }
.device .app { width: 100%; height: 100%; border-radius: 47px; --bottom-gap: 30px; --safe-top: 54px; }
.device .statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; font: 600 17px/1 -apple-system, system-ui, sans-serif; pointer-events: none; color: #000; }
.device .island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; z-index: 41; }
.device .sb-r { display: flex; gap: 6px; align-items: center; }
.device .sb-r i { display: block; background: currentColor; }
.device .sb-sig { width: 18px; height: 11px; clip-path: polygon(0 100%, 22% 100%, 22% 70%, 0 70%, 0 100%, 26% 100%, 26% 45%, 48% 45%, 48% 100%, 52% 100%, 52% 22%, 74% 22%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.device .sb-bat { width: 26px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.2px currentColor; background: none !important; position: relative; }
.device .sb-bat::after { content: ""; position: absolute; inset: 2.2px 5px 2.2px 2.2px; border-radius: 2px; background: currentColor; }
.device .home-bar { position: absolute; bottom: 8px; left: 50%; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: #000; z-index: 41; pointer-events: none; }
.dark-stage .device .statusbar { color: #fff; }
.dark-stage .device .home-bar { background: #fff; }
.hint { max-width: 520px; text-align: center; opacity: 0.75; font-size: 13px; }

/* On a real phone: no frame, the whole screen is the app. */
@media (max-width: 500px) {
  .stage { padding: 0; gap: 0; background: none; display: block; min-height: 0; }
  .controls, .hint { display: none; }
  .device { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .device .app { border-radius: 0; --bottom-gap: max(16px, env(safe-area-inset-bottom)); --safe-top: env(safe-area-inset-top); }
  .device .statusbar, .device .island, .device .home-bar { display: none; }
}
