/* Effortless Flow V1 styles. Base carried over from the prototype lab, rebranded. */

/* Layout: lab = index of four prototypes; flows = phone on a stage with a side panel (full screen on phones);
   console = app shell with tabs. Business brand colours arrive inline as --b / --b-ink / --b2. */
:root {
  --bg: #EEF0F5; --surface: #FFFFFF; --surface-2: #E6E9F1; --ink: #12151E; --muted: #586073; --line: #D5D9E3;
  --accent: #B9532F; --accent-ink: #FFFFFF; --accent-soft: #FBE9E2;
  --star: #F2A900; --star-off: #D3D7E0;
  --alert: #D42F3B; --alert-soft: #FCE6E8; --ok: #0F8A58; --ok-soft: #DCF3E8; --warn: #A86200; --warn-soft: #FFF0D3;
  --bezel: #0B0D12; --g-blue: #1A73E8; --paper: #FBFBF8; --paper-ink: #1E1E1E;
  --b: #2747F5; --b-ink: #FFFFFF; --b2: #E9A23B;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 21, 30, .06), 0 10px 30px rgba(18, 21, 30, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0F15; --surface: #151922; --surface-2: #1D2230; --ink: #ECEEF5; --muted: #9AA2B5; --line: #2A3043;
    --accent: #E8896A; --accent-ink: #160D09; --accent-soft: #3A2219;
    --star: #F7B928; --star-off: #394055;
    --alert: #FF6470; --alert-soft: #3A1A21; --ok: #3DCB8C; --ok-soft: #13301F; --warn: #F1AA3A; --warn-soft: #3A2A10;
    --bezel: #000000; --g-blue: #8AB4F8; --paper: #1A1D24; --paper-ink: #E8E8E2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0F15; --surface: #151922; --surface-2: #1D2230; --ink: #ECEEF5; --muted: #9AA2B5; --line: #2A3043;
  --accent: #E8896A; --accent-ink: #160D09; --accent-soft: #3A2219;
  --star: #F7B928; --star-off: #394055;
  --alert: #FF6470; --alert-soft: #3A1A21; --ok: #3DCB8C; --ok-soft: #13301F; --warn: #F1AA3A; --warn-soft: #3A2A10;
  --bezel: #000000; --g-blue: #8AB4F8; --paper: #1A1D24; --paper-ink: #E8E8E2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
#app { min-height: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.big { padding: 15px 22px; font-size: 16.5px; width: 100%; }
.btn.grow { flex: 1; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left; }
.linkbtn:disabled { opacity: .45; cursor: default; }
input[type=text], select, textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 9px 11px; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: auto; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.toggle input { margin-top: 3px; accent-color: var(--accent); }
.toggle em { color: var(--muted); font-style: normal; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.new { background: var(--alert-soft); color: var(--alert); }
.pill.contacted { background: var(--warn-soft); color: var(--warn); }
.pill.resolved, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.ex { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.pill.live { background: var(--accent-soft); color: var(--accent); }
.syncpill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.syncpill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.syncpill.live::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.syncpill.readonly::before, .syncpill.local::before { background: var(--warn); }

/* stars */
.stars { display: inline-flex; gap: 6px; }
.star { border: 0; background: none; padding: 2px; cursor: pointer; line-height: 0; transition: transform .15s ease; }
.star svg { width: 30px; height: 30px; fill: var(--star-off); transition: fill .12s ease; }
.star.on svg { fill: var(--star); }
.star:hover { transform: scale(1.08); }
.star.picked { animation: pop .35s ease; }
.stars.xl .star svg { width: 52px; height: 52px; }
.stars.lg .star svg { width: 40px; height: 40px; }
.stars.g .star svg { width: 36px; height: 36px; }
.stars.sm .star svg { width: 20px; height: 20px; }
.stars.sm { gap: 1px; }
.starrow { color: var(--star); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.starrow i { color: var(--star-off); font-style: normal; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--b); border-color: var(--b); color: var(--b-ink); animation: pop .25s ease; }
.chips.static .chip { cursor: default; padding: 5px 11px; font-size: 13px; animation: none; }
.chips.static.neg .chip.on { background: var(--alert-soft); border-color: transparent; color: var(--alert); }
.chips.static.pos .chip.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chiplabel { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-block: 6px 2px; }
.chiplabel em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.chipsets { display: flex; flex-direction: column; gap: 14px; }

/* ---------- lab ---------- */
.lab { max-width: 1080px; margin: 0 auto; padding: 40px 20px 56px; display: flex; flex-direction: column; gap: 40px; }
.eyebrow { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lab-hero { display: flex; flex-direction: column; gap: 14px; }
.lab-hero h1 { font-size: clamp(52px, 11vw, 112px); font-weight: 800; letter-spacing: -0.045em; line-height: .9; }
.wordmark { background: linear-gradient(transparent 68%, var(--accent-soft) 68%); padding-right: .08em; }
.lede { font-size: clamp(17px, 2.2vw, 21px); max-width: 60ch; line-height: 1.45; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.howto > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-top: 2px solid var(--ink); }
.howto b { font: 700 13px/1 var(--font-mono); background: var(--ink); color: var(--bg); border-radius: 50%; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.proto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proto-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.proto-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.proto-code { font: 800 44px/1 var(--font-display); color: var(--accent); letter-spacing: -0.04em; }
.proto-title { font: 700 22px/1.1 var(--font-display); }
.proto-tests { color: var(--ink); }
.proto-best { color: var(--muted); font-size: 13.5px; }
.proto-best em { font-style: normal; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .07em; margin-right: 4px; }
.proto-open { margin-top: 6px; font-weight: 700; color: var(--accent); }
.proto-card.console { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.proto-card.console .proto-tests { color: var(--bg); }
.proto-card.console .proto-best { color: var(--surface-2); opacity: .8; }
.proto-card.console .proto-code, .proto-card.console .proto-open { color: var(--b2); }
.lab-settings h2, .rules h2 { font-size: 24px; margin-bottom: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 14px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin-top: 14px; }
.rules-grid h3 { font-size: 16px; margin-bottom: 4px; }
.rules-grid p { color: var(--muted); font-size: 14px; }
.rules-grid > div { border-left: 3px solid var(--ok); padding-left: 12px; }
.lab-foot { border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- flow page ---------- */
.flowpage { min-height: 100%; }
.flownav { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.flownav .back, .console-head .back { font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.flowtitle { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowtitle b { font-family: var(--font-display); color: var(--accent); margin-right: 4px; }
.flowgrid { display: grid; grid-template-columns: 404px minmax(280px, 360px); gap: 36px; justify-content: center; align-items: start; padding: 28px 20px; }
.phone { width: 404px; height: min(840px, calc(100dvh - 120px)); min-height: 640px; padding: 9px; border-radius: 52px; background: var(--bezel); box-shadow: var(--shadow); position: sticky; top: 76px; }
.screen { height: 100%; border-radius: 44px; overflow: hidden auto; background: var(--surface); position: relative; display: flex; flex-direction: column; }
.paneltoggle, .sheet-close { display: none; }
.demopanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.demopanel-inner { display: flex; flex-direction: column; gap: 22px; }
.demopanel section { display: flex; flex-direction: column; gap: 12px; }
.demopanel h3 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.seg.wrap button { flex: 1 1 auto; }
.evlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.evlog li { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; font-size: 13.5px; align-items: baseline; animation: slidein .3s ease; }
.evlog time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.evlog b { font-family: var(--font-mono); font-size: 12.5px; color: var(--ok); white-space: nowrap; }
@keyframes slidein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.sync { border-top: 1px dashed var(--line); padding-top: 12px; }

/* customer screen */
.brandbar { display: flex; align-items: center; gap: 10px; padding: 46px 18px 12px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--b); color: var(--b-ink); font: 800 14px/1 var(--font-display); display: inline-flex; align-items: center; justify-content: center; letter-spacing: -0.02em; flex: none; }
.bizname { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bizname strong { font-family: var(--font-display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bizname span { font-size: 12px; color: var(--muted); }
.brandbar-end { display: flex; gap: 6px; align-items: center; }
.locchip { font: 600 11.5px/1 var(--font-mono); padding: 6px 8px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; }
.langbtn { border: 1.5px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 8px; font: 700 12px/1.2 var(--font-mono); cursor: pointer; }
.runbar { display: flex; align-items: center; gap: 12px; padding: 0 18px 4px; }
.progress { display: flex; gap: 5px; flex: 1; }
.progress i { height: 5px; flex: 1; border-radius: 3px; background: var(--surface-2); transition: background .25s ease; }
.progress i.on { background: var(--b); }
.stopwatch { font: 600 14px/1 var(--font-mono); padding: 5px 9px; border-radius: 8px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.stopwatch.over { color: var(--warn); }
.screen-body { flex: 1; padding: 14px 20px 18px; display: flex; flex-direction: column; }
.step { display: flex; flex-direction: column; gap: 14px; animation: slidein .25s ease; }
.step h2 { font-size: 26px; font-weight: 700; }
.step.center { align-items: center; text-align: center; padding-top: 30px; gap: 18px; }
.step.center h2 { font-size: 30px; }
.stepnav { display: flex; gap: 10px; margin-top: 8px; }
.screen .btn.solid { background: var(--b); border-color: var(--b); color: var(--b-ink); }
.fineprint { font-size: 12px; color: var(--muted); text-align: center; }
.powered { text-align: center; font-size: 11.5px; color: var(--muted); padding: 10px 0 18px; letter-spacing: .02em; }
.powered b { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* tap card */
.tapscreen { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 18px; }
.tapscreen h2 { font-size: 22px; }
.nfccard { position: relative; width: 250px; aspect-ratio: 1.586; max-width: 100%; border-radius: 18px; border: 0; cursor: pointer; padding: 18px; text-align: left; color: var(--b-ink); background: var(--b); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transition: transform .2s ease; overflow: hidden; }
.nfccard:hover { transform: translateY(-3px) rotate(-1deg); }
.nfccard:active { transform: scale(.97); }
.nfccard-logo { font: 800 26px/1 var(--font-display); }
.nfccard-name { font: 700 15px/1.2 var(--font-display); }
.nfccard-cta { font-size: 12.5px; opacity: .85; }
.nfccard-loc { position: absolute; right: 14px; bottom: 14px; font: 600 11px/1 var(--font-mono); background: rgba(0, 0, 0, .2); color: inherit; padding: 5px 7px; border-radius: 6px; }
.nfc-waves { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; }
.nfc-waves i { position: absolute; inset: 0; border: 2px solid currentColor; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg) scale(.4); opacity: 0; animation: wave 2s ease-out infinite; }
.nfc-waves i:nth-child(2) { animation-delay: .4s; }
.nfc-waves i:nth-child(3) { animation-delay: .8s; }
@keyframes wave { 0% { transform: rotate(45deg) scale(.3); opacity: .9; } 100% { transform: rotate(45deg) scale(1.1); opacity: 0; } }

/* help + follow-up */
.help { border: 1.5px solid var(--alert); background: var(--alert-soft); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.help p { font-weight: 600; }
.help-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.help.answered { border-color: transparent; background: var(--surface-2); font-size: 14px; }
.help.answered.yes { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.followbtn { font-size: 13.5px; }
.follow { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }

/* voice */
.voicebox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.micbtn { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--b); color: var(--b-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.micbtn svg { width: 28px; height: 28px; fill: currentColor; }
.micbtn:active { transform: scale(.94); }
.voicebox.big .micbtn { width: 96px; height: 96px; }
.voicebox.big .micbtn svg { width: 40px; height: 40px; }
.pulse { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--b); animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.voice-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kbhint { font-size: 13px; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; text-align: center; }
.kbmic { margin-right: 2px; }
.voicebox textarea { min-height: 64px; }
.linkbtn.sample { font-size: 12.5px; color: var(--muted); border-bottom: 1px dashed var(--line); }

/* draft */
.draft, .livedraft { display: flex; flex-direction: column; gap: 6px; }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.draft-src { font: 600 11.5px/1.3 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.draft-src.ai { color: var(--ok); }
.draft textarea, .livedraft textarea { font-size: 16px; background: var(--paper); color: var(--paper-ink); border-color: var(--line); min-height: 120px; }
.livedraft.busy textarea { border-style: dashed; }
.shimmer, .shimmer-line { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%) !important; background-size: 200% 100% !important; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gbtn { margin-top: 4px; }
.g-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--g-blue); font: 800 13px/22px var(--font-body); }
.toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 40; white-space: nowrap; animation: slidein .2s ease; }

/* simulated google sheet */
.gsheet-wrap { position: absolute; inset: 0; background: rgba(8, 10, 14, .55); display: flex; align-items: flex-end; z-index: 30; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.gsheet { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px; animation: rise .28s cubic-bezier(.2, .8, .2, 1); max-height: 92%; overflow: auto; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.gsheet-top { display: flex; justify-content: space-between; align-items: center; }
.g-word { font: 700 17px/1 var(--font-body); color: var(--muted); letter-spacing: -0.01em; }
.g-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.g-biz { font-weight: 700; font-size: 17px; }
.g-title { font-size: 13px; color: var(--muted); margin-top: -6px; }
.g-user { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.g-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.g-stars-hint { font-size: 12.5px; color: var(--muted); }
.g-field { position: relative; }
.g-field textarea { border-radius: 6px; min-height: 110px; }
.g-paste { position: absolute; left: 12px; top: 10px; border: 0; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; animation: pop .4s ease; }
.g-post { align-self: flex-end; border: 0; background: var(--g-blue); color: var(--surface); padding: 10px 24px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.g-post:disabled { opacity: .4; cursor: not-allowed; }
.g-note { font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

/* done */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 24px; animation: slidein .3s ease; }
.done h2 { font-size: 26px; }
.stamp { width: 84px; height: 84px; border-radius: 50%; background: var(--b); color: var(--b-ink); font-size: 42px; display: inline-flex; align-items: center; justify-content: center; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.timer-big { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 22px; border-radius: var(--r-md); background: var(--surface-2); }
.timer-big span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.timer-big b { font: 700 46px/1.05 var(--font-mono); font-variant-numeric: tabular-nums; }
.timer-big em { font-style: normal; font-size: 12px; color: var(--muted); }
.timer-big.good b { color: var(--ok); }
.timer-big.slow b { color: var(--warn); }

/* voice-first */
.voicefirst h2 { font-size: 24px; }
.vf-head { display: flex; justify-content: space-between; align-items: center; }
.tapfallback summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

/* chat */
.screen-body.chat { padding: 0; overflow: auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.chat-head div { flex: 1; display: flex; flex-direction: column; }
.chat-head div span { font-size: 12px; color: var(--muted); }
.bot-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--b); color: var(--b-ink); font: 800 11px/32px var(--font-display); text-align: center; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 8px; flex: 1; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; animation: slidein .2s ease; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--b); color: var(--b-ink); border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.draftmsg { max-width: 92%; background: var(--paper) !important; color: var(--paper-ink); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.draftmsg p { font-size: 15.5px; }
.shimmer-line { color: transparent; border-radius: 6px; min-height: 3em; }
.draftmsg-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.composer { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px; }
.composer:empty { display: none; }
.qr { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.qr > .stars { align-self: center; }
.qr-row { flex-direction: row; justify-content: center; }
.qr-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- console ---------- */
.console { min-height: 100%; display: flex; flex-direction: column; }
.console-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ch-title { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.ch-title b { font-family: var(--font-display); font-size: 17px; }
.ch-title span { font-size: 12.5px; color: var(--muted); }
.ch-title span b { font-size: 12.5px; color: var(--accent); }
.ch-end { display: flex; gap: 10px; align-items: center; }
.ch-end select { width: auto; }
.tabs { display: flex; gap: 2px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; border: 0; background: none; padding: 12px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.badge { position: absolute; top: 9px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }
.tabbody { flex: 1; }
.tabpad { max-width: 1180px; margin: 0 auto; padding: 22px 20px 32px; display: flex; flex-direction: column; gap: 22px; }
.tabpad h3 { font-size: 18px; }
.console-foot { padding: 14px 20px 22px; text-align: center; border-top: 1px solid var(--line); }

.live-grid { display: grid; grid-template-columns: 300px 320px minmax(0, 1fr); gap: 18px; padding: 20px; max-width: 1400px; margin: 0 auto; align-items: start; }
.ownerphone { background: var(--bezel); border-radius: 34px; padding: 8px; position: sticky; top: 12px; }
.op-head { background: var(--surface); border-radius: 27px 27px 0 0; padding: 18px 16px 10px; display: flex; flex-direction: column; text-align: center; border-bottom: 1px solid var(--line); }
.op-head span { font-size: 11.5px; color: var(--muted); }
.op-body { background: var(--surface); height: 430px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sms { text-align: left; border: 0; background: var(--surface-2); padding: 10px 12px; border-radius: 16px 16px 16px 5px; font-size: 13.5px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; max-width: 94%; color: var(--ink); }
.sms time { font-size: 11px; color: var(--muted); }
.sms.tone-go { box-shadow: inset 3px 0 0 var(--ok); }
.sms.tone-stop { box-shadow: inset 3px 0 0 var(--warn); }
.sms.fresh { animation: smsin .5s cubic-bezier(.2, 1.4, .4, 1); }
.sms.ex { opacity: .78; }
@keyframes smsin { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.op-foot { background: var(--surface); border-radius: 0 0 27px 27px; padding: 10px 14px 16px; font-size: 11.5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.caselist { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.caselist h3 { font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.count { font-size: 11px; background: var(--surface-2); color: var(--ink); padding: 2px 7px; border-radius: 999px; letter-spacing: 0; }
.writing, .cases { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.writing li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; flex: none; }
.dot.red { background: var(--alert); }
.case { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.case.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case-mid { font-size: 14px; }
.casedetail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.casedetail.empty { min-height: 200px; justify-content: center; text-align: center; }
.cd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.cd-head > div { flex: 1; }
.livebar { display: flex; gap: 8px; align-items: center; background: var(--ok-soft); color: var(--ok); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 13.5px; }
.cd-block { display: flex; flex-direction: column; gap: 8px; }
.cd-block h4, .steps h4 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cd-block.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cd-block.two > div { display: flex; flex-direction: column; gap: 4px; }
.go { color: var(--ok); }
.stop { color: var(--warn); }
blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--line); font-style: italic; color: var(--muted); }
.posted { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.posted.pending { border-style: dashed; }
.guardrail { background: var(--warn-soft); color: var(--ink); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px; }
.guardrail b { color: var(--warn); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li.done { border-color: var(--ok); background: linear-gradient(var(--ok-soft), transparent 60%); }
.steps li.done h4 { color: var(--ok); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font: 700 28px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.benchbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 10px; }
.bb-track { position: relative; height: 34px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.bb-zone { position: absolute; top: 0; bottom: 0; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 700; padding: 0 8px; display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; overflow: hidden; }
.bb-you { position: absolute; left: 0; top: 9px; height: 16px; background: var(--b); border-radius: 0 6px 6px 0; transition: width .4s ease; }
.bb-avg { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--ink); font-size: 10.5px; font-weight: 700; z-index: 2; }
.bb-avg i { display: none; }
.bb-scale { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--muted); padding-top: 4px; }
.reviewlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reviewlist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rv-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rv-foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.verified { color: var(--ok); font-weight: 600; }
.replied { color: var(--accent); font-weight: 600; }

.insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.insights section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.insights .wide { grid-column: 1 / -1; }
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 140px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; transition: width .4s ease; }
.bars.neg .bar-fill { background: var(--alert); }
.bar-val { font: 600 12.5px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.placemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.placemap.desk { grid-template-columns: minmax(0, 220px); }
.place { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; aspect-ratio: 1.2; justify-content: center; text-align: center; }
.placemap.desk .place, .placemap.tech .place { aspect-ratio: auto; }
.place b { font-family: var(--font-display); font-size: 14px; }
.place.hot { border-color: var(--alert); background: var(--alert-soft); }
.place.hot em { color: var(--alert); font-style: normal; font-weight: 700; }
.place.cur { box-shadow: 0 0 0 3px var(--accent-soft); }

.billing { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.billing section { display: flex; flex-direction: column; gap: 14px; }
.planpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.plan b { font-family: var(--font-display); font-size: 15.5px; }
.plan span { font-size: 13px; color: var(--muted); }
.plan.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sliders { display: flex; flex-direction: column; gap: 14px; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13.5px; }
.slider b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.receipt { background: var(--paper); color: var(--paper-ink); font-family: var(--font-mono); font-size: 12.5px; padding: 22px 20px 26px; border-radius: 4px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 8px repeat-x; }
.rc-head { display: flex; flex-direction: column; align-items: center; gap: 2px; border-bottom: 1px dashed currentColor; padding-bottom: 12px; text-align: center; }
.rc-head b { font-size: 16px; letter-spacing: .2em; }
.rc-lines { display: flex; flex-direction: column; gap: 8px; }
.rc-line { display: flex; justify-content: space-between; gap: 12px; }
.rc-line.muted { opacity: .65; }
.rc-line b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-total { display: flex; justify-content: space-between; border-top: 1px dashed currentColor; padding-top: 10px; font-size: 16px; font-weight: 700; }
.rc-foot { font-size: 11.5px; opacity: .75; text-align: center; line-height: 1.6; }

.setup p.muted { max-width: 70ch; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.setup-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; counter-increment: s; min-width: 0; }
.setup-steps h4 { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.setup-steps h4::before { content: counter(s); font: 700 12px/1 var(--font-mono); background: var(--ink); color: var(--bg); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.claim { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cardids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; font-size: 13px; max-height: 180px; overflow: auto; }
.cardids li { display: flex; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.pitch .namegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.namecard { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; }
.namecard b { font: 800 28px/1 var(--font-display); letter-spacing: -0.03em; }
.namecard span { font-size: 13px; color: var(--muted); }
.namecard em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); margin-top: auto; }
.namecard.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 12px; align-items: start; }
.calc-out { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ramp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; padding: 12px 12px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); position: relative; }
.ramp-col { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; gap: 4px; }
.ramp-bar { display: flex; flex-direction: column-reverse; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; overflow: hidden; transition: height .3s ease; }
.ramp-bar .ag { display: block; background: var(--b2); width: 100%; }
.ramp-m { font: 10.5px var(--font-mono); color: var(--muted); text-align: center; padding-bottom: 6px; }
.ramp-legend { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; padding: 8px 0 10px; border-top: 1px solid var(--line); }
.ramp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ramp-legend i.d { background: var(--accent); }
.ramp-legend i.a { background: var(--b2); }
.ramp { grid-template-rows: 1fr auto; }


/* ---------- final review ---------- */
.review-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--ink); text-decoration: none; }
.review-cta b { font-family: var(--font-display); font-size: 19px; display: block; margin-bottom: 2px; }
.review-cta:hover { transform: translateY(-1px); }
.back-link { font-weight: 600; text-decoration: none; color: var(--muted); }
.review-title { font-size: clamp(36px, 7vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.review section { display: flex; flex-direction: column; gap: 14px; }
.review h2 { font-size: 22px; }
.review h3 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rate-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rate-top b { font-family: var(--font-display); font-size: 16px; }
.rate-top a { font-weight: 600; font-size: 13.5px; text-decoration: none; }
.rate-card .stars.sm .star svg { width: 28px; height: 28px; }
.feat-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feat-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.feat-list li:first-child { border-top: 0; }
.feat-list li > span { min-width: 0; flex: 1 1 220px; }
.seg.verdict button.on.keep { background: var(--ok-soft); color: var(--ok); }
.seg.verdict button.on.maybe { background: var(--warn-soft); color: var(--warn); }
.seg.verdict button.on.drop { background: var(--alert-soft); color: var(--alert); }
.pick-list { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.pick-list .seg { display: flex; }
.draft-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.draft-src.self { color: var(--accent); }
@media (max-width: 640px) {
  .rate-grid { grid-template-columns: minmax(0, 1fr); }
  .review-cta { flex-direction: column; align-items: flex-start; }
}


/* ---------- v0.3: drill-down bubbles ---------- */
.drill { display: flex; flex-direction: column; gap: 10px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.pickchip { display: inline-flex; align-items: stretch; border-radius: 999px; background: var(--surface-2); overflow: hidden; max-width: 100%; animation: pop .25s ease; }
.pickchip.focus { box-shadow: 0 0 0 2px var(--b); }
.pc-main { border: 0; background: transparent; padding: 6px 4px 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; min-width: 0; }
.pc-main em { font-style: normal; font-weight: 500; color: var(--muted); }
.pc-x { border: 0; background: transparent; padding: 0 11px 0 6px; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }
.pickchip.neg .pc-main { color: var(--alert); }
.pickchip.pos .pc-main { color: var(--ok); }
.drillgrid { min-height: 96px; }
.chip.kid { border-style: dashed; border-color: var(--b); background: transparent; animation: kidin .28s cubic-bezier(.2, .9, .3, 1.2); }
.chip.kid.on { border-style: solid; background: var(--b); color: var(--b-ink); }
.kid-mark { margin-right: 5px; opacity: .6; font-weight: 700; }
@keyframes kidin { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
.drill.mid .chip.tpos::before, .drill.mid .chip.tneg::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.drill.mid .chip.tpos::before { background: var(--ok); }
.drill.mid .chip.tneg::before { background: var(--alert); }

/* ---------- v0.3: voice-first live card + review in focus ---------- */
.livecard { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--paper); color: var(--paper-ink); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s ease; }
.livecard.has { border-style: solid; border-color: var(--b); }
.livecard p { font-size: 16px; line-height: 1.45; min-height: 2.9em; }
.livecard:not(.has) p { color: var(--muted); font-size: 14px; }
.livecard.busy .draft-src::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--b); animation: blink 1s infinite; vertical-align: 1px; }
.review-focus .vf-head h2 { font-size: 24px; }
.reviewcard { border: 2px solid var(--b); border-radius: var(--r-lg); background: var(--paper); color: var(--paper-ink); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: focusin .38s cubic-bezier(.2, .9, .3, 1.15); box-shadow: var(--shadow); }
.reviewcard textarea { border: 0; background: transparent; color: inherit; font-size: 17px; line-height: 1.5; padding: 2px 0; min-height: 132px; resize: none; }
.reviewcard textarea:focus-visible { outline: none; }
.rcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reviewcard .draft-actions { border-top: 1px solid var(--line); padding-top: 10px; }
@keyframes focusin { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- v0.3: console live focus ---------- */
.livewrap { display: flex; flex-direction: column; }
.livefocus { margin: 20px 20px 0; max-width: 1360px; align-self: center; width: calc(100% - 40px); border: 2px solid var(--alert); background: var(--alert-soft); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; animation: focusin .35s ease, redpulse 1.4s ease-in-out .35s infinite; }
@keyframes redpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alert) 45%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--alert) 0%, transparent); } }
.lf-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lf-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--alert); color: var(--surface); font: 700 12px/1 var(--font-mono); letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; }
.lf-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); animation: blink 1s infinite; }
.lf-where { font: 800 clamp(24px, 3.4vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.lf-time { font: 600 14px var(--font-mono); color: var(--alert); font-variant-numeric: tabular-nums; }
.lf-more { font-size: 13px; color: var(--muted); }
.lf-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.lf-said, .lf-visit { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lf-body h4 { font: 600 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lf-visit p { font: 700 19px/1.3 var(--font-display); }
.lf-visit.go p { color: var(--ok); }
.lf-visit.stop p { color: var(--warn); }
.lf-visit.wait p { color: var(--muted); font-weight: 600; font-size: 16px; }
.lf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.caselist.hot { border-radius: var(--r-md); outline: 2px solid var(--alert); outline-offset: 6px; animation: redoutline 1.4s ease-in-out infinite; }
@keyframes redoutline { 0%, 100% { outline-color: var(--alert); } 50% { outline-color: transparent; } }

/* ---------- v0.3: lab tags ---------- */
.proto-code { display: flex; align-items: center; gap: 10px; }
.proto-tag { font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.proto-tag.pick { background: var(--ok-soft); color: var(--ok); }
.proto-tag.dropped { background: var(--surface-2); color: var(--muted); }
.proto-card.is-dropped { opacity: .55; }
@media (max-width: 899px) {
  .livefocus { margin: 14px 16px 0; width: calc(100% - 32px); }
  .lf-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .live-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .live-grid .casedetail { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .flowgrid { display: block; padding: 0; }
  .phone { width: 100%; height: auto; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; position: static; }
  .screen { border-radius: 0; overflow: visible; min-height: calc(100dvh - 54px); }
  .brandbar { padding-top: 14px; }
  .paneltoggle { display: inline-flex; }
  .demopanel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82dvh; overflow-y: auto; border-radius: 22px 22px 0 0; z-index: 50; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .demopanel.open { transform: none; }
  .sheet-close { display: block; margin-left: auto; margin-bottom: 8px; border: 0; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
  .gsheet-wrap, .toast { position: fixed; }
  .screen-body.chat { overflow: visible; }
  .chat-head { top: 54px; }
  .live-grid { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .ownerphone { position: static; }
  .op-body { height: 300px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights, .billing, .calc-grid, .setup-steps { grid-template-columns: minmax(0, 1fr) !important; }
  .pitch .namegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto, .rules-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lab { padding-top: 24px; gap: 30px; }
  .proto-grid, .settings-grid, .planpick, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .ch-end { width: 100%; justify-content: space-between; }
  .step.center h2 { font-size: 26px; }
  .stars.xl .star svg { width: 46px; height: 46px; }
  .bar-row { grid-template-columns: 96px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================================================================ Effortless Flow V1 */
/* Display face is Instrument Serif (one weight): keep headings at 400; small UI headings use Inter. */
h1, h2, .step h2, .step.center h2, .done h2, .review-focus .vf-head h2 { font-weight: 400; letter-spacing: -0.01em; }
h3, h4, .tabpad h3, .caselist h3, .cd-block h4, .steps h4, .lf-body h4 { font-family: var(--font-ui); }
.bizname strong, .lf-where, .kpi b, .proto-title, .logo, .namecard b { font-family: var(--font-ui); font-weight: 700; letter-spacing: -0.01em; }
.lf-where { font-weight: 800; }
.wordmark-ef { font-family: var(--font-display); font-size: 1.05em; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.wordmark-ef em { font-style: italic; }
.wordmark-ef.sm { font-size: 15px; }

/* customer page: one calm column, full height on phones */
.page-card { background: var(--surface); }
.cust { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.cust .brandbar { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.cust .screen-body { flex: 1; }
.cust .powered { display: flex; justify-content: center; align-items: baseline; gap: 6px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
.cust .btn.solid { background: var(--b); border-color: var(--b); color: var(--b-ink); }
.sent .sent-text { background: var(--paper); color: var(--paper-ink); font-size: 15px; }
a.btn { text-decoration: none; }
.center-msg { justify-content: center; align-items: center; text-align: center; padding: 24px; gap: 10px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 560px) { .page-card { background: var(--bg); } .cust { margin-block: 24px; min-height: calc(100dvh - 48px); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; } }

/* owner console */
.page-owner { background: var(--bg); }
.owner-msg { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.live-grid.two { grid-template-columns: 340px minmax(0, 1fr); }
.setup { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.setup-card.wide { grid-column: 1 / -1; }
.row.between { justify-content: space-between; align-items: center; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.qrcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; background: var(--surface); }
.qrcard .qr { width: 132px; height: 132px; background: #fff; border-radius: 8px; padding: 4px; }
.qrcard .qr svg { width: 100%; height: 100%; display: block; }
.qrcard .mono { word-break: break-all; color: var(--muted); }
.print-sheet { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .print-sheet, .print-sheet * { visibility: visible !important; }
  .print-sheet { display: grid !important; position: absolute; inset: 0; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; background: #fff; color: #111; }
  .print-card { border: 1px dashed #999; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; break-inside: avoid; font-family: Inter, sans-serif; }
  .print-card .qr { width: 170px; height: 170px; }
  .print-card .qr svg { width: 100%; height: 100%; }
  .print-card b { font-size: 16px; } .print-card span { font-size: 13px; } .print-card em { font-style: normal; font-size: 12px; color: #555; }
}
@media (max-width: 899px) {
  .live-grid.two { grid-template-columns: minmax(0, 1fr); }
  .setup { grid-template-columns: minmax(0, 1fr) !important; }
}

/* home */
.page-home { background: var(--bg); }
.home { max-width: 720px; margin: 0 auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 22px; }
.home-mark .wordmark-ef { font-size: 28px; }
.home h1 { font-size: clamp(40px, 8vw, 68px); line-height: 1.02; }
.home-lede { font-size: 19px; max-width: 58ch; }
.home-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.home-points li { padding-left: 16px; border-left: 3px solid var(--accent); }
.home-cta .btn { width: auto; display: inline-flex; }
.home-foot { color: var(--muted); font-size: 14px; }
