













@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f2efe7;             
  --surface: #ffffff;
  --surface-2: #f8f6f1;
  --tint: #e3eef8;           
  --peri: #e6ebf5;           
  --peri-ink: #2f3f6b;
  --ink: #171b1e;            
  --muted: #4a5258;
  --line: #d9dde0;
  --line-strong: #a3acb2;    
  --brand: #2279c0;          
  --brand-hover: #1d6baa;
  --brand-ink: #ffffff;
  --brand-accent: #247dc6;   
  --brand-strong: #1a64a8;   
  --danger: #b53838;         
  --danger-solid: #b53838;   
  --danger-soft: #fde7e9;
  --danger-ink: #7f1d27;
  --warning: #a96612;        
  --warning-soft: #fff2d9;
  --warning-ink: #7a4b06;
  --success: #1c7650;
  --success-soft: #e3f5ec;
  --success-ink: #1b5e3f;
  --info: #5c6fb5;
  --info-soft: #e6ebf5;
  --info-ink: #2f3f6b;
  --focus: #245d93;
  --radius-sm: 16px;         
  --radius: 28px;            
  --radius-lg: 28px;
  --pill: 999px;
  --btn-radius: 999px;       
  --shadow-1: 0 1px 2px rgba(23, 27, 30, .06), 0 6px 18px rgba(23, 27, 30, .08);
  --shadow-2: 0 12px 32px rgba(23, 27, 30, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --tabs-h: 68px;
  --rail-w: 224px;
  --font: Arial, "Helvetica Neue", Helvetica, "Inter", system-ui, sans-serif;
  --head: "Arial Black", "Archivo", Arial, system-ui, sans-serif;
  --logo-url: url(../brand/pot.svg);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b1e;
    --surface: #1f2428;
    --surface-2: #262c31;
    --tint: #1e2c3a;
    --peri: #232a3d;
    --peri-ink: #d3daf5;
    --ink: #f2efe7;
    --muted: #a8b1b8;
    --line: #2b3339;
    --line-strong: #5a6670;
    --brand: #2279c0;
    --brand-hover: #1d6baa;
    --brand-ink: #ffffff;
    --brand-accent: #247dc6;
    --brand-strong: #7dbcf0;
    --danger: #ff8b93;
    --danger-solid: #b53838;
    --danger-soft: #3a1620;
    --danger-ink: #ffc9cd;
    --warning: #f2b44e;
    --warning-soft: #3a2a10;
    --warning-ink: #ffd99b;
    --success: #5bd39b;
    --success-soft: #11352a;
    --success-ink: #bff0d8;
    --info: #a9b6f0;
    --info-soft: #232a3d;
    --info-ink: #d3daf5;
    --focus: #7dbcf0;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-2: 0 12px 32px rgba(0, 0, 0, .45);
    --logo-url: url(../brand/pot-light.svg);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  font-optical-sizing: auto;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}
.hidden { display: none !important; }


.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 15;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-stretch: 110%; font-size: 18px; letter-spacing: -.02em; }
.brand::before {
  content: ""; width: 30px; height: 28px; flex: none; background: var(--logo-url) center / contain no-repeat;
}
.net { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); }
.net::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 8px; }
.net.offline { color: var(--danger-ink); background: var(--danger-soft); border-color: var(--danger); }
.net.offline::before { content: "\26A0\FE0E"; background: none; width: auto; height: auto; margin-right: 6px; border-radius: 0; }

main { max-width: 520px; margin: 0 auto; padding: var(--gutter); display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px var(--gutter); box-shadow: var(--shadow-1); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; font-family: var(--head); font-stretch: 112%; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; font-family: var(--head); font-stretch: 108%; }
h3 { font-weight: 700; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-strong); margin-bottom: 4px; }
.note { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 15px; min-height: 1.5em; }


label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 15px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; 
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 4px var(--tint); }
select { appearance: auto; }
textarea { min-height: 96px; resize: vertical; }
input[type="search"] { margin-top: 8px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand-strong); }


button { font: inherit; cursor: pointer; }
button.primary, button.secondary, button.danger, button.danger-quiet {
  width: 100%; min-height: 48px; border-radius: var(--btn-radius); font-weight: 700; margin-top: 8px; padding: 0 20px;
}
button.primary { background: var(--brand); color: var(--brand-ink); border: 0; box-shadow: 0 2px 0 rgba(23, 27, 30, .18); }
button.primary:hover { background: var(--brand-hover); }
button.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
button.secondary.small { border-color: var(--line-strong); }
button.secondary:hover { background: var(--tint); }
button.link { background: none; border: 0; color: var(--brand-strong); font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 4px; }
button:disabled { opacity: .6; cursor: progress; }
button.danger { background: var(--danger-solid); color: #fff; border: 0; }
button.danger-quiet { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
button.small, button.danger.small, button.danger-quiet.small { width: auto; min-height: 44px; padding: 0 18px; margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }


a { color: var(--brand-strong); }
.back { text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.button { display: block; text-align: center; text-decoration: none; padding: 12px 20px; min-height: 48px; border-radius: var(--btn-radius); font-weight: 700; margin-top: 8px; }
.button.primary, a.button:not(.secondary) { background: var(--brand); color: var(--brand-ink); border: 0; box-shadow: 0 2px 0 rgba(23, 27, 30, .18); }
.button.secondary { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: none; }
.small-link { display: inline-block; width: auto; margin: 0; padding: 0 18px; min-height: 44px; line-height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: 18px; color: var(--muted);
}
.tool h3 { font-size: 16px; margin: 0 0 2px; color: var(--ink); }
.tool p { margin: 0; font-size: 14px; }
.tool.live { border-style: solid; border-color: var(--line); background: var(--surface-2); padding: 0; color: var(--ink); }
.tool.live:hover { background: var(--tint); }
.tool-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; text-decoration: none; color: var(--ink); min-height: 60px; }
.chevron { font-size: 28px; line-height: 1; color: var(--brand-strong); }
.badge {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); white-space: nowrap;
}


.toast { position: sticky; top: 72px; z-index: 5; margin: 0; padding: 12px 18px; border-radius: var(--btn-radius); background: var(--brand); color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow-2); }
.toast.error-toast { background: var(--danger-solid); color: #fff; }
.qr { display: flex; justify-content: center; margin-top: 12px; }
.qr img { background: #fff; padding: 10px; border-radius: 16px; max-width: 100%; height: auto; border: 1px solid var(--line); }
.tagged { margin-top: 12px; }
.tagged-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.tagged-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.tagged-link code { grid-column: 1; font-size: 12px; overflow-wrap: anywhere; color: var(--muted, #555); }
.tagged-link button { grid-row: 1 / span 2; grid-column: 2; }
.status { display: inline-block; font-weight: 700; padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); margin: 0; }
.status.open { color: var(--success-ink); background: var(--success-soft); border-color: var(--success); }
.status.closed { color: var(--muted); }


.items { list-style: none; margin: 0 0 12px; padding: 0; }
.items .item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.items .item:first-child { border-top: 0; }
.item-text h3 { font-size: 16px; margin: 0 0 2px; }
.item-text p { margin: 0 0 2px; }
.item-price { display: grid; justify-items: end; gap: 4px; font-weight: 700; white-space: nowrap; }
.item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.item.soldout .item-text, .item.soldout .item-price > span:first-child { opacity: .55; }
.item.hidden-item { opacity: .6; }
.item-wrap { list-style: none; border-top: 1px solid var(--line); padding: 4px 0 12px; }
.item-wrap:first-child { border-top: 0; }
.item-wrap .inner { margin: 0; }
.item-wrap .inner .item { border-top: 0; padding-bottom: 4px; }
.row-actions { display: flex; gap: 8px; margin-top: 4px; }
.row-actions.wrap { flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 700; font-size: 14px; white-space: nowrap; }
.switch input { width: 22px; height: 22px; min-height: 0; padding: 0; }
.editor { margin-top: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.hours { display: grid; gap: 4px; }
.hours-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hours-row:first-child { border-top: 0; }
.hours-day { font-weight: 700; grid-column: span 2; }
.hours-row .check { margin: 0; font-weight: 400; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; }
.hours-row input[type="time"] { width: 100%; min-width: 0; }
.hours-row input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; }
.hours-row > span[aria-hidden] { color: var(--muted); text-align: center; }
.card > .items:last-child { margin-bottom: 0; }


.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .qty { min-width: 1.5em; text-align: center; font-weight: 800; }
.stepper button { min-width: 44px; padding: 0 12px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px var(--gutter); padding-bottom: max(10px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.cartbar button { max-width: 520px; margin: 0 auto; display: block; }
main { padding-bottom: 96px; }
.total-line { display: flex; justify-content: space-between; font-size: 18px; margin: 8px 0 0; }
fieldset.pay { border: 1.5px solid var(--line); border-radius: 18px; margin: 16px 0 12px; padding: 8px 12px 12px; }
fieldset.pay legend { font-weight: 700; padding: 0 6px; }
.radio, .check-row { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; font-weight: 400; }
.radio input, .check-row input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
.eft { margin-top: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.eft p { margin: 4px 0; word-break: break-word; }
.summary { font-weight: 700; margin: 0 0 8px; }


.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order { border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; background: var(--surface-2); }
.order.new { border-color: var(--warning); border-width: 2px; background: var(--surface); }
.order.ready { border-left: 6px solid var(--success); }
.order.declined, .order.cancelled { opacity: .65; }
.order-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-ref { font-size: 20px; font-weight: 800; }
.order-who { margin: 6px 0; }
.order-items { margin: 0 0 6px; padding-left: 20px; }
.order-note { font-style: italic; margin: 0 0 6px; }
.order-pay { margin: 0 0 8px; }


.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.daynav-mid { display: grid; justify-items: center; gap: 4px; text-align: center; }
.daynav button { min-width: 48px; font-size: 24px; line-height: 1; }
.money-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; align-items: baseline; }
.money-row > span:first-child { color: var(--muted); }
.big-number { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
ul.plain { list-style: none; margin: 0 0 8px; padding: 0; }
.expense { border-top: 1px solid var(--line); padding: 10px 0; }
.expense:first-child { border-top: 0; }
.expense .note { margin: 0 0 6px; }


.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-item {
  position: relative; display: grid; gap: 4px; align-content: center; text-align: left; min-height: 84px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--ink);
}
.pos-item:hover { background: var(--tint); border-color: var(--brand); }
.pos-item:active { transform: scale(.97); background: var(--tint); }
.pos-item.soldout { opacity: .5; cursor: not-allowed; }
.pos-name { font-weight: 700; }
.pos-price { color: var(--ink); font-size: 15px; font-weight: 600; }
.pos-count { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.method-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.method-toggle button { margin-top: 0; padding: 0 4px; }
.change { font-size: 22px; font-weight: 800; margin: 8px 0; color: var(--success-ink); }
details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--brand-strong); }


.neg { color: var(--danger); }
.recipe-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin: 8px 0; }
.recipe-row select, .recipe-row input { min-width: 0; }
.recipe-row button { margin-top: 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }


.badge.warn, .badge.danger { color: var(--danger-ink); background: var(--danger-soft); border-color: var(--danger); }
.badge.warning { color: var(--warning-ink); background: var(--warning-soft); border-color: var(--warning); }
.badge.info { color: var(--info-ink); background: var(--info-soft); border-color: var(--info); }
.badge.success { color: var(--success-ink); background: var(--success-soft); border-color: var(--success); }
.badge[class*="st-"]::before { margin-right: 6px; font-weight: 800; }
.badge.st-new { color: var(--warning-ink); background: var(--warning-soft); border-color: var(--warning); }
.badge.st-new::before { content: "\25CF"; }
.badge.st-accepted, .badge.st-preparing { color: var(--info-ink); background: var(--info-soft); border-color: var(--info); }
.badge.st-accepted::before, .badge.st-preparing::before { content: "\25D4"; }
.badge.st-ready { color: var(--success-ink); background: var(--success-soft); border-color: var(--success); }
.badge.st-ready::before { content: "\2713"; }
.badge.st-voided, .badge.st-declined, .badge.st-cancelled { color: var(--danger-ink); background: var(--danger-soft); border-color: var(--danger); }
.badge.st-voided::before, .badge.st-declined::before, .badge.st-cancelled::before { content: "\2715"; }
.age { font-size: 14px; color: var(--muted); }
.age.late { color: var(--danger-ink); background: var(--danger-soft); border: 1px solid var(--danger); border-radius: var(--pill); padding: 2px 10px; font-weight: 700; }


.confirm { border: 2px solid var(--warning); background: var(--warning-soft); color: var(--warning-ink); border-radius: 18px; padding: 14px; margin-top: 8px; }
.confirm-text { font-weight: 700; margin: 0 0 8px; }
.confirm .money-row > span:first-child { color: inherit; }
.confirm button.secondary { color: inherit; border-color: currentColor; background: transparent; }
.confirm .result.ok strong { color: var(--success-ink); }
.confirm .result.off strong { color: var(--danger-ink); background: var(--danger-soft); padding: 0 8px; border-radius: 8px; }


.banner { padding: 12px 16px; border-radius: 16px; border: 2px solid var(--warning); background: var(--warning-soft); color: var(--warning-ink); }
.banner a { color: inherit; font-weight: 700; }
.plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.state-line { font-size: 18px; font-weight: 800; margin: 0 0 12px; color: var(--success-ink); }
.state-line.paused { color: var(--danger); }


.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }
.attention { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 10px 16px; border-radius: 16px; border: 1.5px solid var(--line); border-left-width: 6px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; }
a.attn:active { transform: scale(.985); }
.attn.urgent { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-ink); }
.note.warning { color: var(--warning-ink); }
.attn.warning { border-color: var(--warning); background: var(--warning-soft); color: var(--warning-ink); }
.attn.info { border-color: var(--info); background: var(--info-soft); color: var(--info-ink); }
.attn.note { border-left-width: 1.5px; font-weight: 400; color: var(--muted); }
.attn .chevron { color: inherit; }
.quick { display: grid; gap: 8px; }
.quick .button { margin-top: 0; }
.card.quiet { background: transparent; border-style: dashed; box-shadow: none; }
.card.quiet .tool { border: 0; padding: 8px 0; }


.cartbar.chargebar { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; }
.cartbar .charge { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; margin-top: 0; font-size: 18px; padding: 0 22px; }
.charge-count { font-weight: 600; font-size: 15px; }
.charge .money { font-size: 21px; font-weight: 800; }
.quick-cash { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.quick-cash button { margin-top: 0; padding: 0 4px; }
.money-row > strong, .total-line strong, .big-number { font-variant-numeric: tabular-nums; }


body.has-shell { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
.shell-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 4px; padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(37, 54, 74, .06); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 0 4px; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: 18px; cursor: pointer; }
.tab:hover { background: var(--surface-2); }
.tab[aria-current="page"] { color: var(--brand-strong); background: var(--tint); }
.more { display: none; position: absolute; right: 8px; bottom: 100%; flex-direction: column; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; margin-bottom: 8px; padding: 6px; }
.more.open { display: flex; }
.more .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 0 16px; font-size: 15px; border-radius: 14px; }

@media (min-width: 768px) {
  body.has-shell { padding-bottom: 0; padding-left: var(--rail-w); }
  .shell-nav { top: 0; right: auto; width: var(--rail-w); flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 16px 12px; box-shadow: none; gap: 4px; overflow-y: auto; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 15px; border-radius: 16px; }
  .more-btn { display: none; }
  .more { display: flex; position: static; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: none; margin: 0; padding: 0; gap: 4px; overflow: visible; }
  .more .tab { padding: 0 16px; font-size: 15px; min-height: 48px; }
  body.has-shell main { max-width: 960px; padding-bottom: 96px; }
  .cartbar, .cartbar.chargebar { left: var(--rail-w); bottom: 0; }
  #board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}


.stat { padding: 8px 0; border-top: 1px solid var(--line); }
.stat:first-of-type { border-top: 0; }
.stat p { margin: 0; }
.bar-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; min-height: 32px; font-size: 14px; }
.bar-track { background: var(--tint); border-radius: var(--pill); height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand); border-radius: var(--pill); }
.bar-value { white-space: nowrap; font-weight: 700; }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 6px 0; }



.mascot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; transform-origin: 50% 100%; user-select: none; -webkit-user-drag: none; }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: mascot-bob 3.6s ease-in-out infinite; }
  .mascot.swap { animation: mascot-in .32s var(--ease) 1, mascot-bob 3.6s ease-in-out .32s infinite; }
  .mascot[data-pose="wave"] { animation: mascot-wave 1.3s ease-in-out 3; }
  .mascot[data-pose="wave"][data-loop] { animation-iteration-count: infinite; animation-delay: 1s; }
  .mascot[data-pose="cheer"] { animation: mascot-hop .55s var(--ease) 2, mascot-bob 3.6s ease-in-out 1.1s infinite; }
  .mascot[data-pose="point"] { animation: mascot-nudge 1.4s ease-in-out 3, mascot-bob 3.6s ease-in-out 4.2s infinite; }
  .mascot[data-pose="worried"] { animation: mascot-tilt 3s ease-in-out infinite; }
  .mascot[data-pose="relaxed"] { animation: mascot-breathe 4.2s ease-in-out infinite; }
  .mascot[data-pose="thinking"] { animation: mascot-bob 2.4s ease-in-out infinite; }
}
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mascot-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mascot-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.2deg); } }
@keyframes mascot-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes mascot-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes mascot-tilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.8deg); } }
@keyframes mascot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }


.greeting { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.greeting .mascot-wrap { width: 84px; }
.speech { position: relative; background: var(--tint); color: var(--ink); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-weight: 600; }
.speech p { margin: 0; }
.speech .note { font-weight: 400; }



.card.mascot-top { margin-top: 52px; }            
.greeting.helper { padding-bottom: 0; grid-template-columns: 104px 1fr; gap: 0; align-items: start; overflow: visible; }
.greeting.helper > .mascot-wrap { width: 156px; align-self: start; margin-top: -64px; margin-bottom: -6px; margin-left: -10px; margin-right: -52px; position: relative; z-index: 2; pointer-events: none; }
.greeting.helper > .mascot-wrap .mascot-wrap { width: 100%; margin: 0; }

.greeting.helper > .mascot-wrap .mascot { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.greeting.helper .speech { padding-left: 62px; align-self: center; margin-bottom: 14px; }
.greeting.helper .speech::before { content: ""; position: absolute; left: -5px; bottom: 20px; width: 14px; height: 14px; background: var(--tint); border-radius: 3px; transform: rotate(45deg); }

.greeting.helper.inline { margin: 0 -16px -20px; padding: 0 16px; }
.greeting.helper.inline > .mascot-wrap { margin-top: 0; margin-bottom: 0; width: 140px; margin-right: -46px; }
.greeting.helper.inline .speech { padding-left: 56px; margin-bottom: 18px; }
.greeting.helper .speech h1 { margin: 0; font-size: 22px; }
.greeting.helper .speech p + p { margin-top: 6px; }
.helper-link { display: inline-block; margin-top: 6px; font-weight: 700; min-height: 32px; line-height: 32px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 8px 0 4px; }
.empty .mascot-wrap { width: 120px; }
.empty p { margin: 0; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 17px; }


@media (prefers-reduced-motion: no-preference) {
  button, .tab, .attn, .tool-link, .tool.live, .pos-item { transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), opacity .15s; }
  button.primary:active, button.secondary:active, button.danger:active, .button:active { transform: translateY(1px) scale(.985); }
  .toast { animation: toast-in .25s var(--ease); }
  .order.just-changed, .card.just-saved { animation: soft-flash 1.4s ease-out 1; }
  .more.open { animation: pop-in .18s var(--ease); }
  .bubbles span { animation: float 9s ease-in-out infinite; }
  .bubbles span:nth-child(2) { animation-duration: 12s; animation-delay: -3s; }
  .bubbles span:nth-child(3) { animation-duration: 10s; animation-delay: -6s; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes soft-flash { 0% { box-shadow: 0 0 0 0 var(--brand); background-color: var(--tint); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


.bubbles { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.bubbles span { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--brand-accent) 16%, transparent); }
.bubbles span:nth-child(1) { width: 70px; height: 70px; right: -14px; top: -18px; }
.bubbles span:nth-child(2) { width: 36px; height: 36px; right: 64px; bottom: 10px; opacity: .8; }
.bubbles span:nth-child(3) { width: 20px; height: 20px; left: 40%; top: 14px; opacity: .7; }
.card.has-bubbles { position: relative; }
.card.has-bubbles > *:not(.bubbles) { position: relative; z-index: 1; }


.done-head { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.done-head .mascot-wrap { width: 76px; }
.done-head h1 { margin: 0; }
.greeting + h2 { margin-top: 12px; }
.card > .greeting { margin-bottom: 4px; }


.dish-pic { position: relative; flex: none; display: grid; place-items: center; border: 1px solid; border-radius: 14px; overflow: hidden; line-height: 1; }
.dish-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.items .item > .item-text { flex: 1; min-width: 0; }


.net.quiet:not(.offline) { display: none; }
.how-to { margin: 12px 0 0; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.how-to strong { color: var(--ink); }


.dish-row { border: 2px solid var(--line-strong); border-radius: var(--radius-sm); margin: 12px 0 0; padding: 0 14px 12px; }
.dish-row legend { font-weight: 700; padding: 0 6px; }


dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 20px var(--gutter, 16px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 60px rgba(0, 0, 0, .35); }
dialog.modal::backdrop { background: rgba(16, 19, 22, .6); }
dialog.modal h2 { margin-top: 0; }
dialog.modal h3 { margin: 16px 0 6px; font-size: 16px; }
.impact-list li { padding: 8px 0; border-top: 1px solid var(--line); list-style: none; }
.impact-list { padding: 0; margin: 0; }
.impact-list p { margin: 2px 0; }
.warn-text { color: var(--warning-ink); background: var(--warning-soft); border: 1px solid var(--warning); border-radius: 12px; padding: 8px 12px; font-weight: 600; }




.cat-nav {
  position: sticky; top: var(--bar-h, 56px); z-index: 14; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.cat-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cat-chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cat-chip-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.cat-chip[aria-current="true"] .cat-chip-count { color: var(--brand-ink); }

.cat { margin-top: 18px; scroll-margin-top: calc(var(--bar-h, 56px) + 72px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 26px; padding-left: 14px; border-left: 6px solid var(--brand); }
.cat-head h2 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.cat-count { color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }


.menu-cards { display: grid; gap: 34px; margin: 0; }
.menu-cards .item, .menu-cards .item:first-child {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pic text" "pic price"; column-gap: 14px; row-gap: 6px; align-items: start;
  padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); position: relative;
}
.menu-cards .item > .item-text { grid-area: text; }
.menu-cards .item > .dish-pic { grid-area: pic; }
.menu-cards .item > .item-price { grid-area: price; display: flex; justify-content: space-between; align-items: center; gap: 10px; justify-items: initial; }
.menu-cards .item-text h3 { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.menu-cards .item-price > span:first-child { font-size: 19px; font-weight: 800; color: var(--brand-strong); }
.dish-pic.pop {
  margin: -30px 0 -12px -10px; border: 4px solid var(--surface) !important; border-radius: 20px; transform: rotate(-3deg); z-index: 1;
  box-shadow: 0 10px 22px rgba(23, 27, 30, .28), 0 2px 5px rgba(23, 27, 30, .18);
}
.dish-pic.pop span { font-size: 54px; }
.menu-cards .item.soldout .dish-pic { filter: grayscale(1); opacity: .6; }
.menu-cards .special-card { grid-template-columns: 1fr; grid-template-areas: "text"; border-left: 6px solid var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .dish-pic.pop { transition: transform .2s var(--ease); }
  .menu-cards .item:hover .dish-pic.pop { transform: rotate(-1deg) scale(1.03); }
}

#sections > .cat:last-child { min-height: calc(100vh - var(--bar-h, 56px) - 130px); min-height: calc(100svh - var(--bar-h, 56px) - 130px); }

main { grid-template-columns: minmax(0, 1fr); }



.menu-hero {
  position: relative; color: #fff; border-radius: var(--radius-lg); padding: 26px 20px 0; margin-bottom: 76px; box-shadow: var(--shadow-1);
  background:
    radial-gradient(circle at 88% 4%, rgba(36, 125, 198, .5), transparent 42%),
    radial-gradient(circle at 4% 96%, rgba(34, 121, 192, .35), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 22px, transparent 22px 44px),
    linear-gradient(165deg, #262c31, #171b1e 70%);
}
.menu-hero.no-stage { padding-bottom: 24px; margin-bottom: 0; }
main { overflow-x: clip; }   
.mh-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7dbcf0; }
.menu-hero h1 { margin: 0; font-size: clamp(38px, 12vw, 54px); line-height: .98; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.mh-tagline { margin: 12px 0 0; font-size: 17px; color: #dfe6ec; }
.menu-hero .status { margin-top: 16px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.menu-hero .status.open { background: #d6f5e6; border-color: #8fd8b6; color: #0f5a3b; }
.menu-hero .status.closed { color: #fff; }
.mh-cta { margin-top: 18px; width: auto; min-width: 190px; }
.mh-stage { position: relative; height: 214px; margin: 4px -20px 0; }
.mh-pic { position: absolute; width: 142px; height: 142px; border: 4px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 18px 34px rgba(0, 0, 0, .5); }
.mh-pic .dish-pic { width: 100% !important; height: 100% !important; border: 0 !important; border-radius: 18px; }
.mh-pic .dish-pic span { font-size: 58px; }
.mh-pic.p1 { width: 192px; height: 192px; left: 50%; margin-left: -96px; bottom: -66px; z-index: 3; transform: rotate(-2deg); }
.mh-pic.p1 .dish-pic span { font-size: 92px; }
.mh-pic.p2 { left: -1.5%; bottom: -14px; z-index: 2; transform: rotate(-9deg); }
.mh-pic.p3 { right: -1.5%; bottom: -6px; z-index: 2; transform: rotate(8deg); }
.mh-pic.p2 .mh-price { right: auto; left: -8px; transform: rotate(-6deg); }
.mh-stage[data-count="2"] .mh-pic.p1 { left: 60%; }
.mh-stage[data-count="1"] .mh-pic.p1 { bottom: -60px; }
.mh-price {
  position: absolute; top: -12px; right: -10px; z-index: 4; padding: 4px 11px; border: 3px solid #fff; border-radius: var(--pill);
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 900; transform: rotate(6deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
@keyframes mh-rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .mh-pic { animation: mh-rise .6s var(--ease) both; }
  .mh-pic.p2 { animation-delay: .08s; }
  .mh-pic.p3 { animation-delay: .16s; }
}


.label-like { font-weight: 700; margin: 16px 0 8px; font-size: 15px; }
.pick-list { display: grid; gap: 8px; margin: 0 0 12px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; text-align: left; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.pick.on { border-color: var(--brand-strong); background: var(--tint); }
.pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick-pic { flex: none; font-size: 28px; width: 40px; text-align: center; }
.pick-text { display: grid; min-width: 0; }
.pick-text .note { margin: 0; overflow-wrap: anywhere; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line-strong); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 4px var(--brand-strong); }
.swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.poster-frame { display: grid; place-items: center; padding: 12px; margin: 0 0 12px; border-radius: var(--radius-sm); background: var(--tint); }
.poster-frame canvas { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 14px; box-shadow: var(--shadow-1); }
#previewCard.dim .poster-frame { opacity: .5; }
progress { width: 100%; height: 12px; margin: 8px 0 12px; accent-color: var(--brand-strong, var(--brand)); }


.dish-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.dish-tag { display: inline-block; padding: 2px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.dish-tag.new { background: var(--brand); color: var(--brand-ink); }
.dish-tag.special { background: #1b67ae; color: #ffffff; }


.items .item.followup { flex-direction: column; align-items: stretch; gap: 8px; }

.admin-link { text-align: center; margin-top: 8px; }
.admin-link a { display: inline-block; padding: 12px 8px; }

.report-text { white-space: pre-wrap; overflow-wrap: anywhere; }




:root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; }
@media (prefers-color-scheme: dark) { :root { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; } }

body.admin-page main { max-width: 1280px; padding: 20px var(--gutter) 48px; }
body.admin-page #app { display: grid; gap: 16px; }
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.adm-toolbar h1 { margin: 0; }
.adm-filter { display: flex; align-items: center; gap: 10px; }
.adm-filter label { margin: 0; }
.adm-filter select { width: auto; min-width: 170px; }
.adm-scope, .adm-toolbar .error { flex: 1 1 100%; margin: 0; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.kpi-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.kpi-value { font-family: var(--head); font-stretch: 108%; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.kpi-note { color: var(--muted); font-size: 13px; }
.adm-grid, .adm-cols, .adm-kitchens { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.adm-stack { display: grid; gap: 16px; align-content: start; }
.adm-heading { margin: 8px 0 0; }
.adm-foot { display: flex; flex-wrap: wrap; gap: 12px; }
.adm-grid .card h2, .adm-cols .card h2 { margin-bottom: 6px; }
@media (min-width: 1024px) {
  .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-wide { grid-column: 1 / -1; }
  .adm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .adm-kitchens { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1360px) { .adm-kitchens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


.viz { min-width: 0; margin-top: 8px; }
.viz-empty { margin: 16px 0; }
.viz-svg { display: block; max-width: 100%; overflow: visible; }
.viz-grid { stroke: var(--line); stroke-width: 1; }
.viz-axis { stroke: var(--line-strong); stroke-width: 1; }
.viz-tick { fill: var(--muted); font-size: 12px; font-family: inherit; }
.viz-hover { fill: transparent; }
.viz-hover.on { fill: var(--surface-2); }
.viz-hit { fill: transparent; cursor: default; }
.viz-hit:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: -2px; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 8px; padding: 0; }
.viz-legend li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.viz-key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.viz-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.viz-bars li { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) 52px; align-items: center; gap: 12px; padding: 2px 0; border-radius: 8px; }
.viz-bars li:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.viz-bar-label { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.viz-bar-track { display: block; height: 20px; background: var(--surface-2); border-radius: 4px; }
.viz-bar-fill { display: block; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.viz-bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.viz-table { margin-top: 8px; }
.viz-table summary { display: flex; align-items: center; min-height: 44px; color: var(--brand-strong); font-weight: 700; cursor: pointer; }
.viz-table-scroll { overflow-x: auto; }
.viz-data { width: 100%; border-collapse: collapse; font-size: 14px; }
.viz-data caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.viz-data th, .viz-data td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.viz-data thead th:first-child, .viz-data tbody th { text-align: left; font-weight: 600; }
.viz-tip { position: fixed; z-index: 60; display: grid; gap: 4px; min-width: 140px; padding: 10px 12px; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-2); font-size: 13px; }
.viz-tip[hidden] { display: none; }
.viz-tip-head { color: var(--muted); font-weight: 700; }
.viz-tip-row { display: flex; align-items: center; gap: 8px; }
.viz-tip-row strong { font-size: 15px; }
.viz-tip .viz-key { width: 14px; height: 3px; border-radius: 2px; }
.viz-tip-total { padding-top: 4px; border-top: 1px solid var(--line); }
@media (forced-colors: active) { .viz-bar-fill, .viz-key { forced-color-adjust: none; } }
@media (min-width: 1024px) {
  .adm-kitchens .facts { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 6px 14px; }
}



.viz-tex { display: none; pointer-events: none; }
.viz-tex-line { stroke: var(--surface); stroke-width: 1.6; opacity: .75; }
@media print, (forced-colors: active), (prefers-contrast: more) {
  .viz-tex { display: inline; }
  .viz-svg, .viz-key, .viz-bar-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .viz-legend li:nth-child(1) .viz-key { background-image: repeating-linear-gradient(45deg, transparent 0 3px, var(--surface) 3px 4px); }
  .viz-legend li:nth-child(2) .viz-key { background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--surface) 3px 4px); }
  .viz-legend li:nth-child(3) .viz-key { background-image: repeating-linear-gradient(45deg, transparent 0 6px, var(--surface) 6px 7px); }
}

.adm-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.adm-headrow .adm-heading { margin: 0; }
.adm-headrow button { width: auto; }

.banner.danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-ink); }


.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.adm-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); width: max-content; max-width: 100%; }
.adm-tabs a { padding: 10px 20px; border-radius: var(--pill); font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.adm-tabs a:hover { background: var(--tint); }
.adm-tabs a[aria-current] { background: var(--ink); color: var(--surface); }
.adm-tab { display: grid; gap: 16px; }
.toast-action { margin-left: 14px; background: none; border: 0; color: inherit; font-weight: 800; text-decoration: underline; min-height: 32px; }

.bl-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.bl-row { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 4px; border-radius: var(--radius-sm); }
.bl-row:hover { background: var(--surface-2); }
.bl-open { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 12px; color: var(--ink); border-radius: 12px; }
.bl-row-title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.bl-row-meta { color: var(--muted); font-size: 14px; }
.badge.bl-live { background: var(--success-soft); color: var(--success-ink); }
.badge.bl-draft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.bl-top { position: sticky; top: 62px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-radius: var(--radius-sm); }
.bl-state { flex: 1; margin: 0; min-width: 120px; }
.bl-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); }
.bl-seg button { border: 0; background: none; padding: 8px 16px; border-radius: var(--pill); font-weight: 700; color: var(--ink); min-height: 38px; }
.bl-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.bl-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; background: var(--warning-soft); color: var(--warning-ink); border-radius: var(--radius-sm); }
#blError:empty { display: none; }
#blError ul { margin: 6px 0 0; padding-left: 20px; }

.bl-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) {
  .bl-grid { grid-template-columns: 190px minmax(0, 1fr) 320px; }
  .bl-palette, .bl-side { position: sticky; top: 136px; max-height: calc(100vh - 150px); overflow: auto; }
  .bl-grid.previewing .bl-palette { visibility: hidden; }
}
.bl-palette { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--line); }
.bl-palette h2 { margin: 0 0 4px; font-size: 18px; }
.bl-palette .note { margin: 0 0 12px; font-size: 13px; }
.bl-tiles { display: grid; gap: 6px; }
@media (max-width: 1099px) { .bl-tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.bl-tile { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 650; text-align: left; cursor: grab; user-select: none; -webkit-user-select: none; }
.bl-tile:hover { border-color: var(--brand); background: var(--tint); }
.bl-tile:active { transform: scale(.97); cursor: grabbing; }
@media (pointer: fine) { .bl-tile { touch-action: none; } }
.bl-ico { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--tint); position: relative; }
.bl-ico::after { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px/1 var(--head); color: var(--brand-strong); }
.bl-ico-heading::after { content: "H"; }
.bl-ico-paragraph::after { content: "\00B6"; }
.bl-ico-image::after { content: "\25A3"; }
.bl-ico-list::after { content: "\2261"; }
.bl-ico-quote::after { content: "\201C"; font-size: 18px; }
.bl-ico-callout::after { content: "!"; }
.bl-ico-button::after { content: "\2192"; }
.bl-ico-divider::after { content: "\2014"; }

.bl-canvas { background: var(--surface); border-radius: var(--radius); padding: clamp(16px, 3vw, 36px); border: 1px solid var(--line); min-height: 60vh; }
.bl-title { width: 100%; border: 0; resize: none; overflow: hidden; background: none; padding: 4px 0; margin: 0 0 12px; font: 800 clamp(28px, 4vw, 42px)/1.1 var(--head); letter-spacing: -.02em; color: var(--ink); }
.bl-title:focus { outline: none; box-shadow: inset 0 -2px 0 var(--brand); }
.bl-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); }
.bl-block { border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 6px 10px 12px; background: var(--surface); }
.bl-block:hover { border-color: var(--line); }
.bl-block.selected { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.bl-block.bl-lifted { opacity: .35; }
.bl-bar { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.bl-handle { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 18px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.bl-handle:hover { background: var(--surface-2); color: var(--ink); }
.bl-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bl-tools { margin-left: auto; display: flex; gap: 2px; opacity: .55; }
.bl-block:hover .bl-tools, .bl-block.selected .bl-tools, .bl-tools:focus-within { opacity: 1; }
@media (hover: none) { .bl-tools { opacity: 1; } }
.bl-tool { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 15px; }
.bl-tool:hover:not(:disabled) { background: var(--surface-2); }
.bl-tool:disabled { opacity: .3; cursor: default; }
.bl-body { display: grid; gap: 8px; padding-left: 42px; }
@media (max-width: 560px) { .bl-body { padding-left: 0; } }
.bl-body textarea, .bl-body input[type="text"], .bl-body select { margin: 0; }
.bl-body textarea { resize: vertical; min-height: 64px; overflow: hidden; line-height: 1.6; }
.bl-body select { width: auto; justify-self: start; }
.bl-h-input { font: 800 24px/1.2 var(--head) !important; }
.bl-h-input.lv3 { font-size: 19px !important; }
.bl-quote textarea { font: 600 19px/1.45 var(--head); }
.bl-callout .bl-body textarea { background: var(--tint); }
.bl-field { display: grid; gap: 4px; }
.bl-field label { margin: 0; font-size: 14px; }
.bl-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bl-fmt button { min-width: 36px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 700; }
.bl-fmt button:hover { background: var(--tint); }
.bl-fmt .bl-fmt-i { font-style: italic; font-family: Georgia, serif; }
.bl-fmt .note { margin: 0 0 0 6px; font-size: 12px; }
.bl-img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; background: var(--tint); }
.bl-img-empty { display: grid; place-items: center; height: 140px; border: 2px dashed var(--line-strong); border-radius: 12px; color: var(--muted); }
.bl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-pick .note { margin: 0; }
.bl-divider .bl-body hr { border: 0; height: 2px; background: var(--line); margin: 14px 0 6px; }
.bl-preview { padding: 8px 0; }

.bl-side { display: grid; gap: 12px; }
.bl-panel { padding: 18px; }
.bl-panel h2 { margin: 0 0 10px; font-size: 17px; }
.bl-panel label { font-size: 14px; }
.bl-panel .note { margin: 4px 0 12px; font-size: 13px; }
.bl-panel > button, .bl-panel > .button { width: 100%; margin-top: 8px; }
.bl-slug { display: flex; align-items: center; gap: 4px; }
.bl-slug .note { margin: 0; }
.bl-slug input { margin: 0; }
.bl-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 4px 0 8px; }
.bl-cover-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bl-serp { display: grid; gap: 3px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-family: Arial, sans-serif; }
.bl-serp-url { font-size: 12px; color: #4d5156; overflow-wrap: anywhere; }
.bl-serp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; }
.bl-serp-desc { font-size: 13px; line-height: 1.55; color: #4d5156; }
.bl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.bl-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.bl-checks li.ok { color: var(--success-ink); }
.bl-checks li.todo { color: var(--muted); }
.bl-check-mark { font-weight: 800; text-align: center; }

.bl-ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: var(--surface); font-weight: 700; box-shadow: var(--shadow-2); }
.bl-drop-line { position: fixed; left: 0; top: 0; z-index: 49; height: 4px; border-radius: 4px; background: var(--brand); pointer-events: none; opacity: 0; }
.bl-drop-line.on { opacity: 1; }
body.bl-dragging, body.bl-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .bl-tile { transition: border-color .15s ease, background-color .15s ease, transform .15s var(--ease); }
  .bl-block { transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
  .bl-tools { transition: opacity .15s ease; }
  .bl-drop-line { transition: opacity .1s ease; }
}
.bl-top button, .adm-tab .adm-toolbar button, .bl-cover-tools button, .bl-pick button, .bl-backup button { width: auto; margin-top: 0; }
.bl-top button.small, .bl-pick button.small, .bl-cover-tools button.small, .bl-backup button.small { min-height: 40px; }












body.has-shell { --stack: 14px; --bar-h: 61px; }
body.has-shell main > section:not(.card),
body.has-shell #sellView, body.has-shell #menuGrid, body.has-shell #board, body.has-shell #payView {
  display: grid; gap: var(--stack); grid-template-columns: minmax(0, 1fr); align-content: start;
}
body.has-shell main > section > button.secondary:last-child { justify-self: center; width: auto; min-width: 200px; margin-top: 4px; }
body.has-shell .card > h2:first-child { margin-bottom: 12px; }
body.has-shell .card > :last-child { margin-bottom: 0; }


body.has-shell .bar { min-height: var(--bar-h); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
body.has-shell .bar .brand { font-size: 20px; }


.nav-label { margin: 0; padding: 14px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.rail-only, .rail-head { display: none; }
.more { max-height: calc(100vh - var(--tabs-h) - 40px); max-height: calc(100svh - var(--tabs-h) - 40px); overflow-y: auto; }
.more .nav-label { padding: 10px 16px 4px; }
.tab svg { flex: none; }
.tab span { overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 768px) {
  :root { --rail-w: 264px; }
  .shell-nav { padding: 0 12px 20px; gap: 2px; background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .rail-only { display: block; }
  .rail-head {
    display: flex; align-items: center; gap: 12px; min-height: var(--bar-h); margin: 0 -12px 4px; padding: 10px 16px;
    border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: sticky; top: 0; background: var(--surface); z-index: 1;
  }
  .rail-head:hover .rail-name { color: var(--brand-strong); }
  .rail-logo { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--tint) var(--logo-url) center / 22px no-repeat; }
  .rail-id { display: grid; min-width: 0; line-height: 1.25; }
  .rail-name { font-family: var(--head); font-stretch: 108%; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-role { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab, .more .tab { min-height: 40px; padding: 0 12px; gap: 12px; font-size: 14px; font-weight: 600; border-radius: 12px; white-space: nowrap; }
  .tab svg { width: 20px; height: 20px; }
  .tab[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
  .more .nav-label, .nav-label { padding: 14px 12px 4px; }
  .nav-group + .nav-group { border-top: 0; margin-top: 0; padding-top: 0; }
  
  body.has-shell .bar { padding-left: 24px; padding-right: 24px; }
  body.has-shell .bar .brand::before { display: none; }
  body.has-shell main { padding: 24px 24px 96px; }
}


@media (min-width: 1024px) {
  body.has-shell #home { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  body.has-shell #home > * { grid-column: 1 / -1; }
  body.has-shell #home > .card[aria-labelledby="dayTitle"] { grid-column: 1; }
  body.has-shell #home > .card.quick { grid-column: 2; align-content: center; gap: 12px; }
  body.has-shell #home .quick .button { min-height: 56px; display: grid; place-items: center; font-size: 17px; }
  body.has-shell #home .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.has-shell #home .tool.live { height: 100%; }
}


body.has-shell .pos-item { min-height: 92px; padding: 14px 16px; border-color: var(--line); background: var(--surface-2); box-shadow: 0 1px 0 rgba(23, 27, 30, .04); }
body.has-shell .pos-item:hover { border-color: var(--brand); background: var(--tint); }
body.has-shell .pos-item:focus-visible { outline-offset: 3px; }
body.has-shell .pos-name { font-size: 16px; line-height: 1.25; padding-right: 30px; overflow-wrap: anywhere; }
body.has-shell .pos-price { color: var(--brand-strong); font-weight: 800; font-size: 16px; }
body.has-shell .pos-item.soldout .pos-price { color: var(--muted); }
body.has-shell #cartCard .items .item { padding: 10px 0; align-items: center; }
body.has-shell #cartCard .item-text h3 { margin: 0; }
body.has-shell #cartCard .total-line { padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line-strong); font-size: 20px; }
body.has-shell #cartCard .total-line strong { font-size: 24px; font-weight: 800; }
body.has-shell .cart-empty { margin: 0; }
.charge-inline { display: none; }
@media (min-width: 1024px) {
  body.has-shell[data-screen="till"] main { max-width: 1240px; }
  body.has-shell #sellView { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-areas: "menu cart" "recent cart"; align-items: start; }
  body.has-shell #menuGrid { grid-area: menu; }
  body.has-shell #recentCard { grid-area: recent; }
  body.has-shell #cartCard {
    grid-area: cart; position: sticky; top: calc(var(--bar-h) + 20px); max-height: calc(100vh - var(--bar-h) - 44px); overflow-y: auto;
    border-color: var(--line-strong); box-shadow: var(--shadow-2);
  }
  body.has-shell #cartCard .charge-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; margin-top: 14px; padding: 0 22px; font-size: 18px; }
  body.has-shell #cartCard .cart-empty { padding: 28px 8px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 18px; }
  body.has-shell #chargeBar { display: none !important; }
  body.has-shell .pos-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
  body.has-shell #payView, body.has-shell #doneView { max-width: 600px; margin-left: auto; margin-right: auto; width: 100%; }
}


.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count-pill { min-width: 30px; height: 30px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--brand); color: var(--brand-ink); font-family: var(--font); font-size: 14px; font-weight: 800; }
.board-col.is-empty > p.note { margin: 0; padding: 18px 12px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; }
@media (min-width: 768px) {
  body.has-shell[data-screen="orders"] main { max-width: 1320px; }
  body.has-shell[data-screen="orders"] #app > .card:not(.board-col) { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  body.has-shell[data-screen="orders"] #app > .card:not(.board-col) .summary { margin: 0; font-size: 17px; }
  body.has-shell[data-screen="orders"] #soundBtn { width: auto; margin: 0; }
  body.has-shell #board { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  
  body.has-shell #board .greeting.helper.inline { margin: 0; padding: 0; display: block; }
  body.has-shell #board .greeting.helper.inline > .mascot-wrap { display: none; }
  body.has-shell #board .greeting.helper.inline .speech { padding: 18px 12px; margin: 0; text-align: center; background: transparent; border: 1.5px dashed var(--line); border-radius: 16px; }
  body.has-shell #board .greeting.helper.inline .speech::before { display: none; }
}
@media (min-width: 1024px) {
  body.has-shell #board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.has-shell #board > [data-col="done"] { grid-column: 1 / -1; }
  body.has-shell #board > [data-col="done"] .orders { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}


@media (min-width: 1024px) {
  body.has-shell[data-screen="money"] main, body.has-shell[data-screen="settings"] main, body.has-shell[data-screen="account"] main,
  body.has-shell[data-screen="report"] main, body.has-shell[data-screen="setup"] main, body.has-shell[data-screen="stock"] main { max-width: 760px; }
}






body.admin-page main { max-width: 1400px; }
body.admin-page .adm-gate { width: 100%; max-width: 480px; justify-self: center; margin-top: 24px; }
body.admin-page #app.adm-shell { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.adm-shell > .toast { grid-column: 1 / -1; }
.adm-main { display: grid; gap: 16px; min-width: 0; }
.adm-tab-body { display: grid; gap: 16px; min-width: 0; }
.adm-toolbar h1 { font-size: 30px; }


.adm-nav {
  position: sticky; top: var(--bar-h, 61px); z-index: 12; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
}
.adm-nav::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .adm-shell > .adm-nav { margin-top: calc(var(--gutter) * -1); } }
.adm-toolbar .error:empty { display: none; }
.adm-nav-head, .adm-nav-foot { display: none; }
.adm-link {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.adm-link svg { flex: none; }
.adm-link:hover { background: var(--surface-2); color: var(--ink); }
.adm-link[aria-current="page"] { background: var(--tint); color: var(--brand-strong); font-weight: 700; }
.nav-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 800; }
.nav-count:empty { display: none; }
.nav-count.quiet { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }   
@media (min-width: 1024px) {
  body.admin-page main { padding: 24px 24px 64px; }
  body.admin-page #app.adm-shell { grid-template-columns: 236px minmax(0, 1fr); gap: 28px; }
  .adm-nav {
    flex-direction: column; overflow: visible; margin: 0; padding: 12px; top: calc(var(--bar-h, 61px) + 20px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1);
  }
  .adm-nav-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .adm-nav-head .rail-name { font-size: 15px; }
  .adm-nav-foot { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .adm-link { width: 100%; padding: 0 12px; min-height: 42px; }
  .adm-link.quiet { color: var(--muted); font-weight: 600; justify-content: flex-start; }
  .adm-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
}


@media (min-width: 1100px) {
  .adm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm-kpis > :first-child:nth-last-child(7) { grid-column: span 2; }
}

.kpi-link { color: var(--ink); text-decoration: none; position: relative; }
.kpi-link::after { content: "\203A"; position: absolute; top: 12px; right: 16px; font-size: 22px; line-height: 1; color: var(--brand-strong); }
.kpi-link:hover { border-color: var(--brand); background: var(--tint); }


.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 420px; justify-content: flex-end; }
.adm-tools input[type="search"] { margin: 0; flex: 1 1 240px; min-width: 0; max-width: 360px; }
.adm-tools select { width: auto; min-width: 170px; }
.adm-tools button { width: auto; margin: 0; }
#listCount { margin: -4px 0 0; }


.adm-table-wrap { min-width: 0; }
.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.adm-table th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { position: relative; }
.adm-table tbody tr:hover { background: var(--tint); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-cell-main { display: grid; gap: 2px; min-width: 200px; }
.adm-row-link { font-weight: 800; color: var(--ink); text-decoration: none; }
.adm-row-link::after { content: ""; position: absolute; inset: 0; }   
.adm-row-link:hover { color: var(--brand-strong); text-decoration: underline; }
.adm-row-link:focus-visible { outline: none; }
.adm-row-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 4px; }
.adm-row-sub { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; }
  .adm-table { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .adm-table thead { display: none; }
  .adm-table tbody { display: grid; gap: 10px; }
  .adm-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); }
  .adm-table td { padding: 0; border: 0; font-size: 14px; }
  .adm-table td.adm-cell-main { grid-column: 1 / -1; display: grid; }
  .adm-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .adm-table .num { text-align: left; }
}


.adm-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.adm-row { border-top: 1px solid var(--line); }
.adm-row:first-child { border-top: 0; }
.adm-row > a, .adm-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 4px; min-height: 52px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.adm-row > a:hover { background: var(--tint); }
.adm-row .adm-row-main { font-weight: 700; overflow-wrap: anywhere; }
.adm-row .adm-row-sub { grid-column: 1; }
.adm-row .chevron { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; }
.adm-row.warn .adm-row-main { color: var(--warning-ink); }
.adm-row.warn > a, .adm-row.warn > div { padding-left: 12px; box-shadow: inset 4px 0 0 var(--warning); }
.adm-empty { margin: 8px 0 0; padding: 18px 12px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; }
.adm-empty-card { padding: 8px var(--gutter); }
.adm-empty-card .adm-empty { border: 0; margin: 0; }


.adm-reports { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }


.adm-detail-head { display: grid; gap: 4px; }
.adm-detail-head .back { justify-self: start; }
.adm-detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.adm-detail-title h1 { margin: 0; font-size: 30px; }
.adm-detail-head .note { margin: 0; }
.adm-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.adm-stat { display: grid; gap: 4px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.adm-stat strong { font-family: var(--head); font-stretch: 106%; font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.adm-detail-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .adm-detail-cols { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); } }
.adm-detail-cols .card h2 { margin-bottom: 10px; }
.adm-detail-cols .row-actions button { margin-top: 0; }


.launch-list { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.launch-list legend { font-weight: 700; padding: 0 6px; }
.launch-monday { margin-top: 12px; }
.launch-summary { white-space: pre-wrap; font-size: 14px; margin: 8px 0 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
