:root {
  --ground: #F4EEE2; --surface: #FFFCF5; --sunken: #EDE5D6; --tablehead: #ECE2D1; --rowalt: #F8F3E9;
  --ink: #2B2019; --ink-2: #4E4034; --muted: #7E7161; --faint: #ACA08D;
  --line: #E2D7C5; --line-2: #D0C2AC; --rule: #64351E; --lead: #64351E;
  --espresso: #2B1C12; --espresso-2: #3A281C; --on-espresso: #F3E9DC; --on-espresso-muted: #B5A48F;
  --primary-bg: #2B1C12; --primary-bg-2: #3A281C; --primary-ink: #F3E9DC;
  --A: #CF9943; --B: #B9743D; --C: #985334; --D: #64351E; --E: #496A63; --on-band: #FFFFFF;
  --ph-fill: #EBDABF; --ph-pre: #EBDABF; --ph-psoak: #D6CDE8; --ph-bloom: #CCC1E3;
  --ph-extr: #D6E3D0; --ph-taper: #EED3C8; --ph-flat: #E5E9DF; --ph-grid: rgba(255,255,255,0.9);
  --empty: #E4DACA; --area-alpha: 0.34;
  --good: #4A7050; --warn: #A8822A; --serious: #B0492E; --critical: #7E2A2A;
  --good-bg: #E8F0E6; --warn-bg: #F5ECD8; --serious-bg: #F5E2DA; --critical-bg: #F1DEDC; --info-bg: #EEE5D6;
  --focus: #2F6FB0;
  --cat1: #C08A2E; --cat2: #496A63; --cat3: #B0492E; --cat4: #6E5A9E; --cat5: #3A281C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-app-theme="light"]) {
    --ground: #1B1714; --surface: #24201C; --sunken: #1F1B18; --tablehead: #2C2622; --rowalt: #211D19;
    --ink: #EEE5D8; --ink-2: #D0C3B3; --muted: #A09383; --faint: #6F6457;
    --line: #37302A; --line-2: #4A4038; --rule: #A87A5A; --lead: #D59C74;
    --espresso: #110D0A; --espresso-2: #221B16; --on-espresso: #EEE5D8; --on-espresso-muted: #A09383;
    --primary-bg: #C39A55; --primary-bg-2: #CFA764; --primary-ink: #1B1714;
    --A: #C39A55; --B: #B57F52; --C: #AD7256; --D: #9A7662; --E: #5F8C80; --on-band: #1B1714;
    --ph-fill: #3B3228; --ph-pre: #3B3228; --ph-psoak: #343047; --ph-bloom: #302A43;
    --ph-extr: #2C372F; --ph-taper: #42312B; --ph-flat: #2F332C; --ph-grid: rgba(0,0,0,0.35);
    --empty: #3A322B; --area-alpha: 0.40;
    --good: #7FAA84; --warn: #CFA24E; --serious: #D57E62; --critical: #DB7474;
    --good-bg: #1F2820; --warn-bg: #2D2618; --serious-bg: #31211B; --critical-bg: #311D1D; --info-bg: #2A2420;
    --focus: #7DB3EA;
    --cat1: #C39A55; --cat2: #6E9C8F; --cat3: #D57E62; --cat4: #A393CF; --cat5: #D0C3B3;
  }
}
:root[data-theme="dark"]:not([data-app-theme="light"]) {
  --ground: #1B1714; --surface: #24201C; --sunken: #1F1B18; --tablehead: #2C2622; --rowalt: #211D19;
  --ink: #EEE5D8; --ink-2: #D0C3B3; --muted: #A09383; --faint: #6F6457;
  --line: #37302A; --line-2: #4A4038; --rule: #A87A5A; --lead: #D59C74;
  --espresso: #110D0A; --espresso-2: #221B16; --on-espresso: #EEE5D8; --on-espresso-muted: #A09383;
  --primary-bg: #C39A55; --primary-bg-2: #CFA764; --primary-ink: #1B1714;
  --A: #C39A55; --B: #B57F52; --C: #AD7256; --D: #9A7662; --E: #5F8C80; --on-band: #1B1714;
  --ph-fill: #3B3228; --ph-pre: #3B3228; --ph-psoak: #343047; --ph-bloom: #302A43;
  --ph-extr: #2C372F; --ph-taper: #42312B; --ph-flat: #2F332C; --ph-grid: rgba(0,0,0,0.35);
  --empty: #3A322B; --area-alpha: 0.40;
  --good: #7FAA84; --warn: #CFA24E; --serious: #D57E62; --critical: #DB7474;
  --good-bg: #1F2820; --warn-bg: #2D2618; --serious-bg: #31211B; --critical-bg: #311D1D; --info-bg: #2A2420;
  --focus: #7DB3EA;
  --cat1: #C39A55; --cat2: #6E9C8F; --cat3: #D57E62; --cat4: #A393CF; --cat5: #D0C3B3;
}
:root[data-app-theme="dark"] {
  --ground: #1B1714; --surface: #24201C; --sunken: #1F1B18; --tablehead: #2C2622; --rowalt: #211D19;
  --ink: #EEE5D8; --ink-2: #D0C3B3; --muted: #A09383; --faint: #6F6457;
  --line: #37302A; --line-2: #4A4038; --rule: #A87A5A; --lead: #D59C74;
  --espresso: #110D0A; --espresso-2: #221B16; --on-espresso: #EEE5D8; --on-espresso-muted: #A09383;
  --primary-bg: #C39A55; --primary-bg-2: #CFA764; --primary-ink: #1B1714;
  --A: #C39A55; --B: #B57F52; --C: #AD7256; --D: #9A7662; --E: #5F8C80; --on-band: #1B1714;
  --ph-fill: #3B3228; --ph-pre: #3B3228; --ph-psoak: #343047; --ph-bloom: #302A43;
  --ph-extr: #2C372F; --ph-taper: #42312B; --ph-flat: #2F332C; --ph-grid: rgba(0,0,0,0.35);
  --empty: #3A322B; --area-alpha: 0.40;
  --good: #7FAA84; --warn: #CFA24E; --serious: #D57E62; --critical: #DB7474;
  --good-bg: #1F2820; --warn-bg: #2D2618; --serious-bg: #31211B; --critical-bg: #311D1D; --info-bg: #2A2420;
  --focus: #7DB3EA;
  --cat1: #C39A55; --cat2: #6E9C8F; --cat3: #D57E62; --cat4: #A393CF; --cat5: #D0C3B3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.app-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .app-body { padding-bottom: 48px; } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding-left: 1.15em; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-optical-sizing: auto; letter-spacing: -0.012em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.balance { text-wrap: balance; }
.measure { max-width: 68ch; }

/* masthead + nav */
.masthead { background: var(--espresso); color: var(--on-espresso); }
.masthead .eyebrow { color: var(--on-espresso-muted); }
.band-strip { display: grid; grid-template-columns: repeat(5, 1fr); height: 4px; }
.topnav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--on-espresso-muted); }
.topnav-btn:hover { color: var(--on-espresso); }
.topnav-btn[aria-current="page"] { background: var(--on-espresso); color: var(--espresso); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--espresso); border-top: 1px solid var(--espresso-2); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 10px; font-size: 11px; font-weight: 600; color: var(--on-espresso-muted); letter-spacing: 0.02em; }
.tabbar button[aria-current="page"] { color: var(--on-espresso); }
.tabbar button[aria-current="page"] .tab-ic { background: var(--A); color: #2B1C12; }
.tab-ic { display: grid; place-items: center; width: 44px; height: 26px; border-radius: 999px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* sections */
.section-head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 3px solid var(--rule); margin-bottom: 18px; }
.h-section { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.08; font-weight: 700; color: var(--ink); text-wrap: balance; }
.h-sub { font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--lead); text-wrap: balance; }
.band-head { border-top: 4px solid var(--band); padding-top: 14px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.chip-num { font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--band); color: var(--on-band); border-radius: 2px; }
.chip-band { background: var(--band); color: var(--on-band); border-radius: 2px; }
.chip-outline { border: 1.5px solid var(--c); color: var(--c); border-radius: 999px; background: var(--surface); }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; }
.dots i.off { opacity: 0.28; }

/* surfaces */
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--band); border-radius: 0 0 6px 6px; text-align: left; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(43,28,18,.45); }
.callout { background: var(--sunken); border-left: 3px solid var(--rule); padding: 12px 14px; border-radius: 0 6px 6px 0; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.tbl { width: 100%; font-size: 13.5px; }
.tbl th { background: var(--tablehead); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; vertical-align: bottom; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:nth-child(even) td { background: var(--rowalt); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.strong, .tbl .strong { font-weight: 700; color: var(--ink); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--sunken); }

/* key/value rows like the card */
.kv { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > span:first-child { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }

/* lead paragraphs */
.lead-p b { color: var(--lead); font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-bg-2); border-color: var(--primary-bg-2); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.pill .sw { width: 10px; height: 10px; border-radius: 2px; background: var(--band); }
.scroll-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroll-row::-webkit-scrollbar { display: none; }

/* form */
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 11.5px; }
.input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); font-size: 16px; }
.input:focus { border-color: var(--ink-2); outline: none; }
textarea.input { min-height: 84px; resize: vertical; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--ground); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-bar { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }

/* findings */
.finding { min-width: 0; overflow-wrap: anywhere; border-left: 4px solid var(--sev); background: var(--sev-bg); border-radius: 0 6px 6px 0; padding: 11px 13px; }
.sev-critical { --sev: var(--critical); --sev-bg: var(--critical-bg); }
.sev-serious { --sev: var(--serious); --sev-bg: var(--serious-bg); }
.sev-warn { --sev: var(--warn); --sev-bg: var(--warn-bg); }
.sev-info { --sev: var(--line-2); --sev-bg: var(--info-bg); }
.sev-good { --sev: var(--good); --sev-bg: var(--good-bg); }
.sev-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sev); }
.sev-info .sev-tag { color: var(--muted); }

/* wizard */
.step-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.step-rail button { text-align: left; padding: 8px 0 0; border-top: 3px solid var(--line-2); font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.step-rail button.done { border-color: var(--ink-2); color: var(--ink-2); }
.step-rail button.on { border-color: var(--A); color: var(--ink); }
.flow-box { border: 1.5px solid var(--line-2); border-radius: 6px; padding: 12px; background: var(--surface); text-align: left; }
.flow-box[aria-pressed="true"] { border-color: var(--c, var(--ink)); box-shadow: inset 0 0 0 1px var(--c, var(--ink)); }

.recharts-text { fill: var(--muted); font-size: 11px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.recharts-cartesian-grid line { stroke: var(--line); }
.recharts-cartesian-axis-line, .recharts-cartesian-axis-tick-line { stroke: var(--line-2); }
.chart-tip { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.4); color: var(--ink); }
.fade-in { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* theme toggle + scale chip in the masthead */
.mast-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(243,233,220,.22); color: var(--on-espresso); font-size: 13px; font-weight: 600; }
.mast-btn:hover { border-color: rgba(243,233,220,.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.ok { background: #7FC08A; box-shadow: 0 0 0 3px rgba(127,192,138,.22); }
.dot.warn { background: #D9AE52; } .dot.bad { background: #E07A6A; }

/* coffees */
.bean-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--band); border-radius: 0 8px 8px 0; text-align: left; display: grid; gap: 8px; padding: 14px 16px; transition: box-shadow .15s ease, transform .15s ease; }
.bean-card:hover { box-shadow: 0 10px 24px -16px rgba(43,28,18,.5); transform: translateY(-1px); }
.seg { display: inline-flex; align-items: stretch; width: max-content; max-width: 100%; justify-self: start; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.seg button[disabled] { opacity: .45; cursor: not-allowed; }
/* a seg that sits beside inputs: same 44px height, fills its cell */
.seg-fill { width: 100%; justify-self: stretch; min-height: 44px; border-radius: 6px; }
.seg-fill button { flex: 1 1 0; border-radius: 4px; min-width: 0; padding: 0 8px; }
.setup-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 560px) { .setup-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shot-main .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .shot-main .setup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field > span { min-height: 16px; }
.drink-types { display: grid; gap: 8px; }
.drink-type { display: grid; gap: 2px; align-content: center; justify-items: start; text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; min-width: 0; }
.drink-types.lg .drink-type { min-height: 62px; padding: 10px 14px; font-size: 15px; }
.drink-type small { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.25; }
.drink-type[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.drink-type[aria-checked="true"] small { color: color-mix(in srgb, var(--ground) 72%, transparent); }
@media (max-width: 480px) { .drink-types.lg .drink-type small { display: none; } .drink-types.lg .drink-type { min-height: 48px; padding: 8px 10px; } .drink-type svg { display: none; } .drink-type { justify-items: center; text-align: center; } }
.grind-warn { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--warn); background: var(--warn-bg); color: var(--ink); font-size: 13px; }
.entry-seg button { min-height: 30px; padding: 0 10px; }
.manual-nums .input { min-height: 46px; font-size: 22px; padding: 6px 10px; font-weight: 600; }
.manual-nums .readout { gap: 3px; }
.age-ok { color: var(--good); } .age-warn { color: var(--warn); }

/* live shot */
.live { position: fixed; inset: 0; z-index: 70; background: var(--ground); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.live-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.live-strip { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.live-strip::-webkit-scrollbar { display: none; }
.live-body { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(150px, 1fr) auto; }
.live-charts { min-height: 0; min-width: 0; overflow: hidden; padding: 6px 8px 0 4px; }
.live-lower { min-width: 0; border-top: 1px solid var(--line); background: var(--surface); max-height: 46vh; overflow-y: auto; overflow-x: hidden; }
.readouts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 8px 12px 4px; }
.readout { min-width: 0; }
.readout { display: grid; gap: 0; }
.readout > span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.readout b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: clamp(26px, 7.5vw, 40px); line-height: 1.05; font-weight: 600; color: var(--ink); }
.readout small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.cue { padding: 6px 12px 10px; }
.cue-now { font-weight: 700; font-size: 16px; line-height: 1.3; }
.cue-alert { margin: 0 12px 8px; padding: 10px 12px; border-radius: 8px; font-weight: 800; font-size: 18px; text-align: center; letter-spacing: .02em; }
.cue-alert.soon { background: var(--warn-bg); color: var(--warn); border: 1.5px solid var(--warn); }
.cue-alert.now { background: var(--critical); color: #fff; animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .78; } }
.live-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.ctrl { min-width: 0; min-height: 58px; border-radius: 12px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); line-height: 1.1; }
.ctrl small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ctrl[disabled] { opacity: .4; cursor: not-allowed; }
.ctrl-go { background: var(--good); border-color: var(--good); color: #fff; font-size: 17px; }
.ctrl-go small { color: rgba(255,255,255,.8); }
.ctrl-stop { background: var(--critical); border-color: var(--critical); color: #fff; font-size: 17px; }
.live-side { display: none; }
@media (min-width: 900px) {
  .live-body { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr) auto; }
  .live-charts { grid-column: 1; grid-row: 1; }
  .live-lower { grid-column: 1; grid-row: 2; max-height: 40vh; }
  .live-side { display: block; grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 14px 16px 20px; }
  .live-side-hide { display: none; }
}
.ai-box { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 12px; background: var(--sunken); }
.ai-num { overflow-wrap: anywhere; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); }

/* shot page: form + card side by side on wide screens */
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "card"; gap: 24px; }
.shot-head { gap: 12px !important; }
.shot-head { grid-area: head; min-width: 0; display: grid; gap: 22px; }
.shot-card { grid-area: card; min-width: 0; }
.shot-main { grid-area: main; min-width: 0; display: grid; gap: 30px; }
@media (min-width: 1000px) {
  .shot-layout { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "head card" "main card"; align-items: start; }
  .shot-card { position: sticky; top: 62px; max-height: calc(100vh - 76px); overflow-y: auto; }
}
.check-row { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; width: 100%; }
.check-box { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; background: var(--surface); }
.check-row[aria-pressed="true"] .check-box { background: var(--good); border-color: var(--good); color: #fff; }
.check-row[aria-pressed="true"] .check-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* Generated once from the app's class names with Tailwind CSS (MIT) — tools/tailwind-harness.html */
*, ::before, ::after {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x:  ;--tw-pan-y:  ;--tw-pinch-zoom:  ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position:  ;--tw-gradient-via-position:  ;--tw-gradient-to-position:  ;--tw-ordinal:  ;--tw-slashed-zero:  ;--tw-numeric-figure:  ;--tw-numeric-spacing:  ;--tw-numeric-fraction:  ;--tw-ring-inset:  ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur:  ;--tw-brightness:  ;--tw-contrast:  ;--tw-grayscale:  ;--tw-hue-rotate:  ;--tw-invert:  ;--tw-saturate:  ;--tw-sepia:  ;--tw-drop-shadow:  ;--tw-backdrop-blur:  ;--tw-backdrop-brightness:  ;--tw-backdrop-contrast:  ;--tw-backdrop-grayscale:  ;--tw-backdrop-hue-rotate:  ;--tw-backdrop-invert:  ;--tw-backdrop-opacity:  ;--tw-backdrop-saturate:  ;--tw-backdrop-sepia:  ;--tw-contain-size:  ;--tw-contain-layout:  ;--tw-contain-paint:  ;--tw-contain-style:  
}::backdrop {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x:  ;--tw-pan-y:  ;--tw-pinch-zoom:  ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position:  ;--tw-gradient-via-position:  ;--tw-gradient-to-position:  ;--tw-ordinal:  ;--tw-slashed-zero:  ;--tw-numeric-figure:  ;--tw-numeric-spacing:  ;--tw-numeric-fraction:  ;--tw-ring-inset:  ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur:  ;--tw-brightness:  ;--tw-contrast:  ;--tw-grayscale:  ;--tw-hue-rotate:  ;--tw-invert:  ;--tw-saturate:  ;--tw-sepia:  ;--tw-drop-shadow:  ;--tw-backdrop-blur:  ;--tw-backdrop-brightness:  ;--tw-backdrop-contrast:  ;--tw-backdrop-grayscale:  ;--tw-backdrop-hue-rotate:  ;--tw-backdrop-invert:  ;--tw-backdrop-opacity:  ;--tw-backdrop-saturate:  ;--tw-backdrop-sepia:  ;--tw-contain-size:  ;--tw-contain-layout:  ;--tw-contain-paint:  ;--tw-contain-style:  
}.fixed {position: fixed
}.mx-auto {margin-left: auto;margin-right: auto
}.block {display: block
}.inline {display: inline
}.flex {display: flex
}.inline-flex {display: inline-flex
}.grid {display: grid
}.hidden {display: none
}.w-full {width: 100%
}.flex-1 {flex: 1 1 0%
}.grid-cols-2 {grid-template-columns: repeat(2, minmax(0, 1fr))
}.flex-wrap {flex-wrap: wrap
}.items-start {align-items: flex-start
}.items-end {align-items: flex-end
}.items-center {align-items: center
}.items-baseline {align-items: baseline
}.justify-between {justify-content: space-between
}.gap-1 {gap: 0.25rem
}.gap-2 {gap: 0.5rem
}.gap-3 {gap: 0.75rem
}.gap-4 {gap: 1rem
}.gap-5 {gap: 1.25rem
}.gap-6 {gap: 1.5rem
}.truncate {overflow: hidden;text-overflow: ellipsis;white-space: nowrap
}.px-3 {padding-left: 0.75rem;padding-right: 0.75rem
}.px-4 {padding-left: 1rem;padding-right: 1rem
}.py-2 {padding-top: 0.5rem;padding-bottom: 0.5rem
}.py-5 {padding-top: 1.25rem;padding-bottom: 1.25rem
}.pb-8 {padding-bottom: 2rem
}.pt-4 {padding-top: 1rem
}.text-left {text-align: left
}.text-center {text-align: center
}.underline {-webkit-text-decoration-line: underline;text-decoration-line: underline
}.filter {filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}@media (min-width: 640px) {.sm\:block {display: block
    }.sm\:inline {display: inline
    }.sm\:grid-cols-2 {grid-template-columns: repeat(2, minmax(0, 1fr))
    }.sm\:grid-cols-3 {grid-template-columns: repeat(3, minmax(0, 1fr))
    }.sm\:px-6 {padding-left: 1.5rem;padding-right: 1.5rem
    }
}@media (min-width: 900px) {.min-\[900px\]\:flex {display: flex
    }
}

/* ───────── standalone app additions (not in the claude.ai version) ───────── */
/* iPhone / iPad home-screen app: content clears the notch and home bar; bars paint behind them */
.masthead { padding-top: env(safe-area-inset-top, 0px); }
.sheet-bar { padding-top: env(safe-area-inset-top, 0px); }
.live-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.masthead > div, .sheet-bar > div, .live-head { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
html { background: var(--ground); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 95; color: #F3E9DC; padding: 10px 12px 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; max-width: min(92vw, 560px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.toast-btn { flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; background: #F3E9DC; color: #2B1C12; font-weight: 700; font-size: 13.5px; }
.toast-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: rgba(243,233,220,.8); }
.toast-x:hover { color: #F3E9DC; }

/* Settings model list reuses the drink-type buttons */
.drink-type[role="radio"] b { font-weight: 700; }

/* masthead buttons: icon-only on phones, short labels from tablet width up, never wrapping */
.mast-btn { white-space: nowrap; }
.mast-label { display: none; }
@media (min-width: 640px) { .mast-label { display: inline; } }
.drink-type.model-opt { justify-items: stretch; text-align: left; }

