/* Fresh Squeezed. Flat paper look: solid fills, 1px borders, no gradients or shadows.
   Every color is a token, so dark mode is one block of overrides. */

:root {
  --bg: #f6f1e3;
  --surface: #fffdf6;
  --sub: #f8f3e6;
  --text: #2a211e;
  --muted: #6e655c;
  --line: #2a211e;
  --rule: #e3dac7;
  --lemon: #f6d33c;
  --lemon-hover: #ffe25a;
  --chip: #fbe88a;
  --chip-hover: #fcefb0;
  --on-lemon: #2a211e;
  --good: #2f7f4a;
  --good-bg: #e2f1df;
  --bad: #b8392b;
  --bad-bg: #f8e1dc;
  --link: #2e63c9;
  --track: #efe8d8;
  --bar-traffic: #e7dfcb;
  --bar-good: #7cc36a;
  --bar-bad: #e8806e;
  --worth: #2e63c9;
  --disabled: #ece6d6;
  --disabled-text: #9a9184;
  --scrim: rgba(42, 33, 30, 0.45);
  --hd: 56px;
  --ft: 32px;
  color-scheme: light;
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1815; --surface: #26211d; --sub: #2e2823; --text: #f3ecdf; --muted: #b3a796;
    --line: #6a5f54; --rule: #3d3630; --chip: #4a3f1a; --chip-hover: #5a4c1e;
    --good: #84d48f; --good-bg: #1f3324; --bad: #f2917f; --bad-bg: #3f231e; --link: #9dbcff;
    --track: #3a332d; --bar-traffic: #4d453c; --bar-good: #5fae6a; --bar-bad: #c9604f; --worth: #9dbcff;
    --disabled: #332d28; --disabled-text: #7d7369; --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1815; --surface: #26211d; --sub: #2e2823; --text: #f3ecdf; --muted: #b3a796;
  --line: #6a5f54; --rule: #3d3630; --chip: #4a3f1a; --chip-hover: #5a4c1e;
  --good: #84d48f; --good-bg: #1f3324; --bad: #f2917f; --bad-bg: #3f231e; --link: #9dbcff;
  --track: #3a332d; --bar-traffic: #4d453c; --bar-good: #5fae6a; --bar-bad: #c9604f; --worth: #9dbcff;
  --disabled: #332d28; --disabled-text: #7d7369; --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; padding-bottom: calc(var(--ft) + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: "Baloo 2", "Fredoka", sans-serif; font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
h3 { font-size: 16.5px; }
button, select, input { font: inherit; color: inherit; }
b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--hd); display: flex; align-items: center; gap: 12px;
  padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 19px; display: block; line-height: 1; }
.brand span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hud { display: flex; gap: 18px; margin-left: auto; }
.hud div { display: flex; flex-direction: column; align-items: flex-end; }
.hud span { font-size: 11px; line-height: 1; }
.hud b { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hdbtns { display: flex; gap: 6px; }
.iconbtn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.iconbtn:hover { background: var(--chip); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.off #snd-waves { display: none; }
.ic-sun { display: none; }
.dark .ic-sun { display: block; }
.dark .ic-moon { display: none; }

/* ---- Dock: the scene and the phase bar, pinned under the header ---- */
.dock { position: sticky; top: var(--hd); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.stage { position: relative; height: clamp(210px, 36vh, 360px); background: #cfe7f3; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stagehud { position: absolute; left: 10px; top: 10px; display: flex; gap: 8px; pointer-events: none; }
.stagehud span:empty { display: none; }
.stagehud span { background: #fffdf6; color: #2a211e; border: 1px solid #2a211e; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13.5px; }
.phasebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 14px; background: var(--surface); border-top: 1px solid var(--line); min-height: 54px; }
.phasebar .ph-title { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 17px; line-height: 1.1; }
.phasebar .ph-title span { display: block; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.phasebar .spacer { flex: 1; }
.phasebar .btn { white-space: nowrap; }
.bar-clock { display: flex; flex-direction: column; min-width: 86px; }
.bar-clock b { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bar-clock span { font-size: 12px; }
.progress { flex: 1; min-width: 90px; height: 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--track); }
.progress i { display: block; height: 100%; width: 0; background: var(--lemon); }
.seg.speed { margin: 0; }
.seg.speed button { padding: 6px 12px; }
.jump select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 6px 30px 6px 10px; font-size: 16px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23887d70' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; }

/* ---- Content: sections that scroll under the dock ---- */
.content { max-width: 1140px; margin: 0 auto; padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 12px; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: var(--dock-off, 120px); }
.sec > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: 14px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:hover { background: var(--sub); }
.sec > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.sec-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--lemon); border: 1px solid var(--line); display: grid; place-items: center; color: var(--on-lemon); }
.sec-ic svg { width: 21px; height: 21px; }
.sec-t { min-width: 0; flex: 1; }
.sec-title { display: block; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 19px; line-height: 1.15; }
.sec-sum { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 11px; height: 11px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform 0.18s; }
.sec[open] > summary .chev { transform: rotate(225deg); margin: 4px 6px 0 0; }
.sec[open] > summary { border-bottom: 1px solid var(--rule); border-radius: 14px 14px 0 0; }
.sec-body { padding: 14px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; align-items: start; }
.sec-body > .wide, .sec-body > .tip, .sec-body > .btn.go, .sec-body > .alert { grid-column: 1 / -1; }
.sec-body > p, .sec-body > ul { margin: 0; }

/* ---- Cards and text ---- */
.card { background: var(--sub); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.tip { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--lemon); padding: 2px 0 2px 10px; margin: 0; }
.small { font-size: 13px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.big { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; background: var(--chip); }
.alert { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--chip); }
.alert.bad { background: var(--bad-bg); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
ul.plain { margin: 0; padding-left: 18px; }
a { color: var(--link); }

/* ---- Buttons ---- */
.btn {
  border: 1px solid var(--line); border-radius: 10px; background: var(--lemon); color: var(--on-lemon); cursor: pointer;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 16px; padding: 8px 16px; line-height: 1.2;
}
.btn:hover:not(:disabled) { background: var(--lemon-hover); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, .seg button:focus-visible, .iconbtn:focus-visible, .link:focus-visible, select:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.btn:disabled { background: var(--disabled); color: var(--disabled-text); cursor: not-allowed; border-color: var(--rule); }
.btn.secondary { background: var(--surface); color: var(--text); }
.btn.secondary:hover:not(:disabled) { background: var(--chip); }
.btn.small { font-size: 14px; padding: 5px 11px; }
.btn.go { width: 100%; font-size: 20px; padding: 12px; }
.link { border: 0; background: none; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font-size: inherit; }

.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 8px; background: var(--surface); }
.seg button { flex: 1; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 7px 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--chip); }
.seg button.on { background: var(--text); color: var(--bg); }
.seg.small button { font-size: 12.5px; padding: 6px 4px; }

/* ---- Forms ---- */
.slider { display: block; margin-top: 10px; }
.slider span { display: block; font-size: 14px; }
input[type=range] { width: 100%; accent-color: #c98a06; margin: 6px 0 0; }
.toggle { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; }
.toggle input { width: 18px; height: 18px; accent-color: #c98a06; }
select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 3px 6px; }
input[type=text] { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 10px; width: 100%; font-size: 16px; }

/* ---- KPI tiles ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.kpis.two { grid-template-columns: 1fr 1fr; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 761px) { .sec-body > .span2 { grid-column: span 2; } }
.kpi { background: var(--sub); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 23px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.kpi b.flash { color: var(--good); }

/* ---- Today ---- */
.weather .wx-today { display: flex; align-items: center; gap: 12px; }
.weather .wx-today .sky { width: 56px; height: 56px; }
.forecast { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.forecast li { border: 1px solid var(--rule); border-radius: 10px; padding: 4px 2px; font-size: 12.5px; background: var(--surface); }
.forecast li:first-child { border-color: var(--line); background: var(--chip); }
.forecast .sky { width: 30px; height: 30px; display: block; margin: 2px auto; }
.forecast span { display: block; color: var(--muted); }
svg.sky { color: #2a211e; }
.news { margin: 0; padding-left: 18px; }
.news li + li { margin-top: 6px; }
.steps { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 4px; }
.check, .goallist, .ratings, .meters, .lost, .funnel, .said, .insights { list-style: none; margin: 0; padding: 0; }
.check li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.mark { width: 20px; height: 20px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface); }
.check li.ok .mark, .goallist li.ok .mark { background: var(--good-bg); color: var(--good); }
.check li.warn .mark { background: var(--bad-bg); color: var(--bad); }
.estimate { background: var(--chip); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; font-size: 14px; }
.pricebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.pricebox .big { font-size: 22px; }
.goallist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 20px; }
.goallist li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 14px; }

/* ---- Supplies, equipment, marketing ---- */
.stockline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.stockline em { font-style: normal; font-size: 12px; }
.shop ul, .gear { list-style: none; margin: 0; padding: 0; }
.shop li, .gear li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.shop li:first-child, .gear li:first-child { border-top: 0; padding-top: 2px; }
.shop li .btn, .gear li .btn { flex: none; min-width: 74px; }
.gear.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 28px; }
.gear.cols li:nth-child(2) { border-top: 0; padding-top: 2px; }
@media (max-width: 760px) { .gear.cols li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 8px; } }
.gear li.col { flex-direction: column; align-items: stretch; }
.gear li.owned b { color: var(--good); }

/* ---- Recipe ---- */
.pricer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pricer .big { min-width: 86px; text-align: center; }
.tiers { display: grid; grid-template-columns: 62px 1fr; gap: 6px 8px; align-items: center; margin-top: 12px; }
.tiers .seg { margin: 0; }
.ratings li, .meters li, .lost li, .funnel li { display: grid; grid-template-columns: 1fr 120px 56px; gap: 8px; align-items: center; padding: 3px 0; font-size: 14px; }
.lost li { grid-template-columns: 1fr auto; border-top: 1px solid var(--rule); padding: 5px 0; }
.lost li:first-child { border-top: 0; }
.ratings em { font-style: normal; font-size: 11px; color: #c98a06; }
.ratings b, .meters b, .lost b, .funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { display: block; height: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--lemon); transition: width 0.4s; }
.meter i.good { background: var(--bar-good); }
.meter i.mid { background: var(--lemon); }
.meter i.bad { background: var(--bar-bad); }
.meter.tiny { height: 8px; width: 54px; display: inline-block; vertical-align: middle; }

table.pl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.pl td, table.pl th { padding: 5px 0; border-top: 1px solid var(--rule); }
table.pl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; border-top: 0; }
table.pl td:last-child, table.pl th:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
table.pl tr:first-child td { border-top: 0; }
table.pl tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
table.pl tr.head td { font-weight: 600; color: var(--muted); font-size: 12.5px; padding-top: 10px; }
table.days td:nth-child(3), table.days th:nth-child(3) { text-align: right; }

/* ---- Staff, money, location ---- */
.person { border-top: 1px solid var(--rule); padding: 10px 0; }
.person:first-of-type { border-top: 0; }
.person .stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; font-size: 12.5px; }
.person .stat { display: inline-flex; gap: 5px; align-items: center; }
.shift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; }
.shift select { font-size: 16px; }
.loan { border-top: 1px solid var(--rule); padding: 10px 0 4px; }
.loan:first-of-type { border-top: 0; padding-top: 0; }
.loc.here { border: 2px solid var(--line); background: var(--chip); }
.loc .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.glossary summary { cursor: pointer; list-style: none; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary h3 { margin: 0; }
.glossary dl { margin: 8px 0 0; font-size: 14px; }
.glossary dt { font-weight: 600; margin-top: 6px; }
.glossary dd { margin: 0; color: var(--muted); }

/* ---- Live day ---- */
.status { font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }
.rush { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 4px; }
.rushlist { list-style: none; margin: 6px 0 0; padding: 0; }
.rushlist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.stepper { display: inline-flex; gap: 8px; align-items: center; }
.stepper b { min-width: 16px; text-align: center; }
.said li { padding: 4px 0; font-size: 14px; border-top: 1px solid var(--rule); }
.said li:first-child { border-top: 0; }
.said li.good { color: var(--good); }
.said li.bad { color: var(--bad); }

/* ---- Report ---- */
.headline { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.headline.up { background: var(--good-bg); }
.headline.down { background: var(--bad-bg); }
.headline .profit { font-family: "Baloo 2", sans-serif; font-size: 22px; font-weight: 700; margin: 2px 0 10px; }
.headline .profit b { font-size: 36px; font-weight: 800; }
.headline .kpi { background: var(--surface); }
.insights li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.insights li:first-child { border-top: 0; padding-top: 0; }
.chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 500 10px "Fredoka", sans-serif; fill: var(--muted); }
.chart .axis-profit { fill: var(--good); }
.chart .bar-traffic { fill: var(--bar-traffic); }
.chart .bar-sales { fill: var(--lemon); stroke: var(--line); stroke-width: 1; }
.chart .bar-good { fill: var(--bar-good); }
.chart .bar-bad { fill: var(--bar-bad); }
.chart .line-worth { fill: none; stroke: var(--worth); stroke-width: 2; }
.chart .line-profit { fill: none; stroke: var(--good); stroke-width: 2; }
.chart .dot-best { fill: var(--good); stroke: var(--line); stroke-width: 1; }
.key { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 3px; vertical-align: -1px; margin: 0 2px 0 6px; }
.key-traffic { background: var(--bar-traffic); }
.key-sales { background: var(--lemon); }
.key-good { background: var(--bar-good); }
.key-worth { background: var(--worth); }
.key-profit { background: var(--good); }

/* ---- Footer, modal, toast ---- */
.credit {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--ft) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); border-top: 1px solid var(--line); font-size: 13px;
  padding-bottom: env(safe-area-inset-bottom);
}
.credit a { color: var(--text); }
.modal { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-card h2 { font-size: 30px; }
.modal-card .lede { font-size: 16px; }
.modal-card .row { margin-top: 14px; }
.kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.kids label { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 6px; text-align: center; cursor: pointer; font-weight: 600; position: relative; }
.kids label:hover { background: var(--chip); }
.kids input { position: absolute; opacity: 0; pointer-events: none; }
.kids label:has(input:checked) { background: var(--lemon); color: var(--on-lemon); outline: 2px solid var(--line); outline-offset: -2px; }
.kids label:has(input:focus-visible) { outline: 2px solid var(--link); }
.kids canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; background: #f6eedb; border-radius: 9px; }
.grade { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 80px; line-height: 1; color: #c98a06; }
.season .kpis { grid-template-columns: repeat(3, 1fr); margin: 10px 0; }
.menu-list { display: grid; gap: 8px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--ft) + 14px); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); border-radius: 10px; padding: 8px 14px; max-width: calc(100% - 32px); font-size: 14px; }
.toast[hidden] { display: none; }

/* ---- Phone ---- */
@media (max-width: 760px) {
  :root { --hd: 52px; }
  .stage { height: clamp(170px, 28vh, 240px); }
  .phasebar { padding: 7px 10px; gap: 6px 8px; min-height: 0; }
  .phasebar .ph-title { font-size: 15px; }
  .phasebar .btn { font-size: 14.5px; padding: 6px 12px; }
  .phasebar .jump select { padding: 5px 26px 5px 8px; }
  .seg.speed button { padding: 5px 9px; font-size: 13px; }
  .bar-clock { min-width: 70px; }
  .bar-clock b { font-size: 17px; }
  .progress { order: 9; flex-basis: 100%; height: 7px; }
  .content { padding: 10px 10px 24px; gap: 10px; }
  .sec > summary { padding: 10px 12px; gap: 10px; }
  .sec-ic { width: 32px; height: 32px; }
  .sec-ic svg { width: 18px; height: 18px; }
  .sec-title { font-size: 17px; }
  .sec-sum { font-size: 12.5px; }
  .sec-body { padding: 12px; gap: 10px; }
  .brand span { display: none; }
  .hud { gap: 12px; }
  .hud b { font-size: 17px; }
  .ratings li, .meters li, .funnel li { grid-template-columns: 1fr 90px 48px; }
  .kpis, .kpis.four { grid-template-columns: repeat(2, 1fr); }
  .kpi b { font-size: 20px; }
  select, input { font-size: 16px; }
}
@media (max-width: 480px) {
  .brand div { display: none; }
}
@media (max-width: 420px) {
  .brand b { font-size: 16px; }
  .brand svg { width: 26px; height: 26px; }
  .hud span { font-size: 10px; }
  .top { gap: 8px; padding: 0 10px; }
  .iconbtn { width: 32px; height: 32px; }
  .hdbtns { gap: 4px; }
  .pricebox .big { font-size: 19px; }
  .phasebar .ph-title span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
