@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/static/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/static/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/static/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("/static/outfit-800.woff2") format("woff2"); }

/* Sayra brand: Deep Teal #004D5B, Sun Gold #F4B400, Deep Ink #002434 */
:root {
  --teal: #004D5B; --teal-dark: #003a45; --gold: #F4B400; --brand-ink: #002434;
  --bg: #f4f6f6; --panel: #ffffff; --ink: #14202a; --muted: #5b6770; --line: #dfe5e6;
  --accent: #004D5B; --accent-ink: #ffffff; --good: #1a7f37; --warn: #8a5d00; --bad: #c62828;
  --good-bg: #e2f5e7; --warn-bg: #fff4d1; --bad-bg: #fdecea; --info-bg: #e3f1f3; --new: #b07d00; --new-bg: #fff4d1;
  --shadow: 0 1px 2px rgba(0,36,52,.06), 0 4px 12px rgba(0,36,52,.06);
  --ring: 0 0 0 3px rgba(0,77,91,.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1418; --panel: #111e23; --ink: #e6eef0; --muted: #94a3a8; --line: #24343a;
    --accent: #4fb3c2; --accent-ink: #062027; --good: #3fb950; --warn: #e3b341; --bad: #f47067;
    --good-bg: #12261e; --warn-bg: #2a2410; --bad-bg: #2d1517; --info-bg: #0f2a30; --new: #F4B400; --new-bg: #2a2410;
    --shadow: none; --ring: 0 0 0 3px rgba(79,179,194,.3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 12px; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .55; cursor: default; }
input, select { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, button:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
button.primary:hover:not(:disabled) { filter: brightness(.9); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.banner { background: var(--warn-bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px; font-size: 13px; text-align: center; }

/* login + pay */
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; width: 100%; max-width: 400px; }
.card h1 { font-size: 20px; margin: 0 0 4px; }
.card label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.card .primary { width: 100%; margin-top: 20px; padding: 11px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 12px; }
.brand { font-weight: 700; letter-spacing: .2px; }
.brand small { font-weight: 500; color: var(--muted); }

/* portal */
.portal { background: var(--bg); }
header.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-logo { height: 30px; width: auto; }
@media (prefers-color-scheme: dark) { .top-logo { content: url("/static/logo-reversed.svg"); height: 38px; } }
.client { font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
header.top .grow, .demobar .grow { flex: 1; }
header.top select { width: auto; padding: 7px 10px; }
.daypick { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.who { color: var(--muted); font-size: 13px; }
button.chip { border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.demobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 20px 0; padding: 10px 14px;
  background: var(--teal); color: #fff; border-radius: 12px; font-size: 14px; }
.demobar button { border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.demobar button.gold { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.demobar button.ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 0; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.stat b { font-size: 22px; display: block; font-weight: 800; color: var(--brand-ink); letter-spacing: -.3px; }
@media (prefers-color-scheme: dark) { .stat b { color: var(--ink); } }
.small { font-size: 12px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; padding: 14px 20px 28px; align-items: start; }
@media (max-width: 1150px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; padding: 12px 12px 24px; } .stats, .demobar { margin-left: 12px; margin-right: 12px; padding-left: 0; padding-right: 0; } .demobar { padding: 10px 14px; } header.top { padding: 10px 12px; } .client { display: none; } }
.col { background: rgba(0,77,91,.04); border-radius: 14px; padding: 10px; }
@media (prefers-color-scheme: dark) { .col { background: rgba(255,255,255,.03); } }
.col h2 { display: flex; align-items: center; justify-content: space-between; font-size: 13px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted); margin: 2px 4px 10px; }
.count { min-width: 24px; text-align: center; font-size: 12px; border-radius: 999px; padding: 2px 8px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink); letter-spacing: 0; }
.col-new .count { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.order { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 12px 12px 14px; margin-bottom: 10px; }
.order.st-new { border-left-color: var(--gold); }
.order.st-accepted { border-left-color: var(--accent); }
.order.st-ready, .order.st-out_for_delivery { border-left-color: var(--good); }
.order.st-completed { border-left-color: var(--line); opacity: .85; }
.order.st-cancelled { border-left-color: var(--bad); opacity: .7; }
.order.fresh { box-shadow: 0 0 0 3px rgba(244,180,0,.45), var(--shadow); }
.order .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.order .row + .row { margin-top: 6px; }
.num-wrap { display: flex; align-items: center; gap: 8px; }
.order .num { font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.chip-sm { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; background: var(--info-bg); color: var(--accent); }
.chip-sm.pick { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.store { font-size: 14px; font-weight: 500; }
.cancelled { color: var(--bad); font-weight: 600; font-size: 13px; margin-top: 6px; }
.order ul { margin: 10px 0 8px; padding-left: 18px; font-size: 14px; }
.order li + li { margin-top: 2px; }
.total-row { border-top: 1px dashed var(--line); padding-top: 8px; }
.total-row b { font-size: 16px; }
.order .who { font-size: 14px; margin-top: 8px; }
.order .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.order .actions button { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.order .actions select { width: auto; font-size: 13px; padding: 6px 8px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill.paid { background: var(--good-bg); color: var(--good); }
.pill.due { background: var(--info-bg); color: var(--accent); }
.pill.link { background: var(--warn-bg); color: var(--warn); }
.pill.method { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
details.texts { margin-top: 10px; font-size: 13px; }
details.texts summary { cursor: pointer; color: var(--muted); }
details.texts p { margin: 6px 0; padding: 8px 10px; background: var(--bg); border-radius: 10px 10px 10px 2px; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 4px; text-align: center; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--brand-ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; display: none; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* pay */
.pay-items { margin: 12px 0; padding-left: 18px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.testnote { background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.done { color: var(--good); font-weight: 700; font-size: 18px; text-align: center; margin-top: 16px; }

/* ---------- sign-in page */
.login-page { min-height: 100vh; }
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.brand-panel { background: var(--teal); color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; }
.brand-panel::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.05); }
.brand-panel::before { content: ""; position: absolute; right: 60px; top: -120px; width: 240px; height: 240px;
  border-radius: 50%; border: 2px solid rgba(244,180,0,.35); }
.brand-logo { width: 300px; max-width: 100%; height: auto; position: relative; z-index: 1; }
.brand-copy { margin: auto 0; position: relative; z-index: 1; max-width: 460px; }
.brand-copy h2 { font-size: 34px; line-height: 1.15; font-weight: 800; margin: 0 0 24px; letter-spacing: -.3px; }
.brand-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 16px; color: rgba(255,255,255,.9); }
.brand-points li { display: flex; gap: 12px; align-items: baseline; }
.brand-points li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  transform: translateY(-1px); }
.brand-foot { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.form-panel { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 30px; font-weight: 800; margin: 0 0 4px; color: var(--brand-ink); letter-spacing: -.3px; }
.login-card > .muted { margin: 0 0 22px; }
.login-card label { display: block; font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw .ghost { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  color: var(--accent); font-weight: 600; font-size: 13px; padding: 6px 8px; }
button.big { width: 100%; margin-top: 24px; padding: 13px; font-size: 16px; border-radius: 10px; }
.help { font-size: 13px; margin-top: 20px; text-align: center; }
.mobile-logo { display: none; }
@media (prefers-color-scheme: dark) { .login-card h1 { color: var(--ink); } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .mobile-logo { display: block; width: 150px; height: auto; margin: 0 0 28px; }
  .form-panel { place-items: start center; padding-top: 12vh; }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) { .mobile-logo { content: url("/static/logo-reversed.svg"); width: 220px; } }

/* new-order alert: takes over the screen until someone clicks */
.gate, .alert { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(0,36,52,.72); }
.gate[hidden], .alert[hidden] { display: none; }
.gate-card, .alert-card { background: var(--panel); color: var(--ink); border-radius: 18px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.gate-card { padding: 32px; text-align: center; }
.gate-card h2 { font-size: 26px; font-weight: 800; margin: 14px 0 8px; }
.gate-card p { color: var(--muted); margin: 0 0 8px; }
.alert { background: rgba(244,180,0,.35); animation: flash 1.2s ease-in-out infinite; }
@keyframes flash { 50% { background: rgba(0,36,52,.8); } }
@media (prefers-reduced-motion: reduce) { .alert { animation: none; background: rgba(0,36,52,.8); } }
.alert-card { overflow: hidden; border: 4px solid var(--gold); }
.alert-head { display: flex; align-items: center; gap: 10px; background: var(--gold); color: #1b1300; padding: 14px 20px; }
.alert-head h2 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.alert-wait { font-weight: 600; font-size: 14px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: #1b1300; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.alert-num { font-size: 44px; font-weight: 800; letter-spacing: -1px; padding: 18px 22px 0; color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .alert-num { color: var(--ink); } }
.alert-where { padding: 2px 22px 0; font-size: 17px; font-weight: 600; color: var(--muted); }
.alert-items { margin: 14px 22px; padding-left: 20px; font-size: 16px; max-height: 30vh; overflow: auto; }
.alert-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 22px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 16px; }
.alert-total b { font-size: 22px; }
.alert-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; padding: 20px 22px 8px; }
.alert-actions button.big { margin: 0; padding: 18px; font-size: 19px; border-radius: 12px; }
.alert-more { margin: 0; padding: 4px 22px 18px; color: var(--warn); font-weight: 700; text-align: center; }
.alert-more[hidden] { display: none; }
.late { color: var(--bad); font-weight: 700; }
button.chip.off { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

.gate { z-index: 60; }
.alert.calm { animation: none; background: rgba(0,36,52,.6); }
.alert.calm .alert-head { background: var(--teal); color: #fff; }
.alert.calm .pulse { display: none; }
.alert-pos { display: block; margin: 14px 22px 0; font-size: 14px; font-weight: 600; }
.alert-pos input { margin-top: 6px; font-size: 18px; padding: 12px 14px; }
.processed { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--good); }
.unprocessed { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--warn); }

/* (first-stat highlight removed: the "Not in POS" stat turns red when needed) */

/* ---------------------------------------------------------------- board v3: numbered steps, frozen headers */
.board { grid-template-columns: repeat(3, minmax(250px, 1fr)) minmax(230px, .85fr); }
@media (max-width: 1150px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.col { padding: 0 8px 8px; border: 1px solid transparent; }
.col h2 { position: sticky; top: var(--hdr, 56px); z-index: 3; margin: 0 -8px 10px; padding: 10px 12px; border-radius: 14px 14px 0 0;
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 800; justify-content: flex-start; gap: 10px;
  box-shadow: 0 6px 10px -8px rgba(0,36,52,.35); }
.col h2 .ttl { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.col h2 small { font-size: 12px; font-weight: 500; opacity: .85; }
.col h2 .step { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px;
  background: rgba(255,255,255,.25); }
.col h2 .count { background: rgba(255,255,255,.92); border: 0; color: #14202a; font-weight: 800; font-size: 13px; }
.col-new { background: #fff8e1; border-color: #f4d77a; }
.col-new h2 { background: var(--gold); color: #1b1300; }
.col-new h2 .step { background: rgba(27,19,0,.12); }
.col-accepted { background: #e6f2f4; border-color: #b5d6dc; }
.col-accepted h2 { background: var(--teal); color: #fff; }
.col-moving { background: #e7f5ea; border-color: #b7dfc1; }
.col-moving h2 { background: #1a7f37; color: #fff; }
.col-done { background: transparent; border: 1px dashed var(--line); }
.col-done h2 { background: #e9eded; color: #4a565e; box-shadow: none; }
.col-done h2 .step { background: #fff; color: #1a7f37; }
@media (prefers-color-scheme: dark) {
  .col-new { background: #211c0c; border-color: #4a3d12; }
  .col-accepted { background: #0e2328; border-color: #1f4650; }
  .col-accepted h2 { background: #0f6170; }
  .col-moving { background: #0f2217; border-color: #1e4a2c; }
  .col-moving h2 { background: #1f7a3a; }
  .col-done h2 { background: #1b2a30; color: var(--muted); }
}
.order.st-accepted { border-left-color: var(--teal); }
.order.st-ready, .order.st-out_for_delivery { border-left-color: #1a7f37; }
.col .empty { padding: 18px 4px; }

/* completed orders: one line each, open for detail */
.done-row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.done-row > summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center;
  padding: 8px 10px; cursor: pointer; font-size: 14px; }
.done-row > summary::-webkit-details-marker { display: none; }
.done-row .dnum { font-weight: 800; }
.done-row .dname { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.done-row .dstate { font-size: 12px; color: #1a7f37; font-weight: 600; grid-column: 2 / 4; }
.done-row .dstate.cx { color: var(--bad); }
.done-row[open] > summary { border-bottom: 1px solid var(--line); }
.done-row .order { margin: 8px; box-shadow: none; }

/* demo day picker */
.daypick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.daypick select { width: auto; padding: 6px 10px; font-size: 13px; }
.dayhelp { flex-basis: 100%; font-size: 12px; opacity: .8; text-align: right; }
header.top a.chip { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* call recording and transcript */
.callbox { position: fixed; inset: 0; z-index: 40; background: rgba(0,20,28,.45); display: flex; justify-content: flex-end; }
.callbox[hidden] { display: none; }
.callbox-panel { background: var(--panel); width: min(480px, 100%); height: 100%; overflow-y: auto; padding: 18px 18px 30px;
  box-shadow: -10px 0 30px rgba(0,0,0,.2); }
.callbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.callbox-head h2 { margin: 0; font-size: 19px; }
.callbox audio { width: 100%; margin: 10px 0; }
.call-note { background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.call-summary { background: var(--info-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.call-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cl { max-width: 88%; padding: 7px 11px; border-radius: 14px; font-size: 14px; line-height: 1.4; cursor: default; }
.cl b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1px; }
.cl .ts { float: right; margin-left: 8px; font-size: 11px; opacity: .6; }
.cl.sayra { background: var(--bg); border-bottom-left-radius: 4px; }
.cl.sayra b { color: var(--teal); }
.cl.caller { background: var(--teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cl.seek { cursor: pointer; }
.cl.seek:hover { outline: 2px solid var(--gold); }
.cl.now { outline: 2px solid var(--gold); }
.order .actions button.call { border-color: var(--teal); color: var(--teal); font-weight: 600; }
@media (prefers-color-scheme: dark) { .cl.sayra b { color: var(--accent); } .order .actions button.call { color: var(--accent); border-color: var(--accent); } }

/* ---------------------------------------------------------------- menu & prices editor */
.menu-wrap { max-width: 1040px; margin: 0 auto; padding: 18px 20px 120px; }
.menu-intro h1 { margin: 6px 0 6px; font-size: 26px; }
.menu-intro p { max-width: 720px; margin: 0 0 12px; }
.menu-intro input[type=search] { max-width: 420px; }
.menu-nav { position: sticky; top: var(--hdr, 56px); z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; margin-top: 8px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-nav a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink); }
.msec { scroll-margin-top: 130px; margin-top: 26px; }
.msec h2 { font-size: 19px; margin: 0 0 4px; }
.mrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.mrow[hidden] { display: none; }
.mrow.is-off { opacity: .6; }
.mlabel { flex: 1; min-width: 200px; font-weight: 500; }
.gtitle { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 0; }
.gtitle[hidden] { display: none; }
.pbox { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pbox .cur { color: var(--muted); font-weight: 600; }
.pbox input { width: 96px; padding: 7px 9px; font-variant-numeric: tabular-nums; font-weight: 600; }
.pbox.changed input { background: #fff4d1; border-color: var(--gold); }
.pbox.dirty input, input.dname.dirty { background: #e3f1f3; border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,77,91,.15); }
.pbox input.bad { border-color: var(--bad); }
.pbox .std { color: var(--muted); font-size: 11px; margin-left: 2px; }
.linkish { background: none; border: 0; padding: 0 2px; color: var(--accent); text-decoration: underline; font-size: 12px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 38px; height: 22px; border-radius: 999px; background: #c9d2d4; position: relative; transition: background .2s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .knob { background: #1a7f37; }
.switch input:checked + .knob::after { transform: translateX(16px); }
.switch input:focus-visible + .knob { box-shadow: var(--ring); }
.switch.dirty .sw-text { color: var(--teal); font-weight: 700; }
.mrow.deal { align-items: flex-start; }
.dleft { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
input.dname { padding: 7px 10px; font-weight: 600; }
.days { display: flex; gap: 4px; flex-wrap: wrap; border-radius: 8px; }
.days.dirty { box-shadow: 0 0 0 2px rgba(0,77,91,.2); }
.day { font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.day.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.pizza { display: block; }
.pz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pz-head h3 { margin: 2px 0 8px; font-size: 16px; }
.tscroll { overflow-x: auto; }
.ptable { border-collapse: collapse; }
.ptable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 10px 4px 0; white-space: nowrap; }
.ptable td { padding: 4px 12px 4px 0; vertical-align: top; }
.history { list-style: none; padding: 0; margin: 8px 0 0; }
.history li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--brand-ink); color: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.2); font-weight: 600; }
.savebar[hidden] { display: none; }
.savebar .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.savebar .primary { background: var(--gold); border-color: var(--gold); color: #1b1300; padding: 9px 18px; }
@media (prefers-color-scheme: dark) { .pbox.changed input { background: #2a2410; } .pbox.dirty input, input.dname.dirty { background: #0f2a30; } }
.daypick select { color: var(--ink); background: var(--panel); }

/* order sent to the POS by Sayra: make it the headline of the card */
.order.has-pos { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.pos-sent { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--good-bg); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.pos-sent .pos-tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good); color: #fff; font-weight: 800; font-size: 15px; }
.pos-sent b { display: block; color: var(--good); font-size: 14.5px; line-height: 1.25; }
.pos-sent span:not(.pos-tick) { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.order.fresh .pos-sent { animation: posIn 1.2s ease 2; }
@keyframes posIn { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 35%, transparent); } }

/* single list: did each phone order reach the POS? */
.feed { padding: 14px 20px 28px; }
.feed-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.feed-head h2 { margin: 0; font-size: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-radius: 0; padding: 7px 14px; font-size: 13px; font-weight: 600; background: transparent; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); font-size: 12px; margin-left: 4px; }
.seg .count.hot { background: var(--bad); color: #fff; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 640px) { .feed { padding: 12px; } .feed-grid { grid-template-columns: 1fr; } }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat.warn { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.stat.warn b { color: var(--bad); }
.order .store { font-weight: 600; margin-top: 2px; }
.order.no-pos { border-color: var(--bad); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 25%, transparent), var(--shadow); }
.order.is-cx { opacity: .6; }
.pos-missing { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bad-bg); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.pos-missing .pos-tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bad); color: #fff; font-weight: 800; }
.pos-missing b { display: block; color: var(--bad); font-size: 14.5px; }
.pos-missing span:not(.pos-tick) { display: block; color: var(--muted); font-size: 12.5px; }
.feed .empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

/* two lanes: orders still to key in (full cards) | orders already in the POS (compact lines) */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.split[data-f="attn"], .split[data-f="pos"] { grid-template-columns: 1fr; }
.split[data-f="attn"] .lane-pos, .split[data-f="pos"] .lane-attn { display: none; }
.split[data-f="pos"] #feed-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 12px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.lane { border-radius: 14px; padding: 0 10px 10px; border: 1px solid var(--line); }
.lane-attn { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.lane-pos { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 30%, var(--line)); }
.lane-h { position: sticky; top: var(--hdr, 56px); z-index: 3; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 -10px 10px; padding: 10px 14px; border-radius: 14px 14px 0 0; font-size: 15px; color: #fff; }
.lane-h small { font-size: 12px; font-weight: 500; opacity: .9; }
.lane-h .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; align-self: center; }
.lane-attn .lane-h { background: var(--bad); }
.lane-pos .lane-h { background: var(--good); }
.lane-attn .feed-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lane .empty { background: var(--panel); }
.done-row.fresh { box-shadow: 0 0 0 3px rgba(244,180,0,.45); }
.done-row .dstate { color: var(--good); }

/* stats: count and dollar value; click one to filter */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
button.stat { text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.stat.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stat-val { font-size: 18px; font-weight: 700; color: var(--muted); }
.stat.warn .stat-val { color: var(--bad); }
.lane-sum { margin-left: auto; font-size: 14px; font-weight: 800; }

/* POS hand-off states */
.pos-sending { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.pos-sending .pos-tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1b1300; font-weight: 800; animation: posPulse 1.2s ease-in-out infinite; }
@keyframes posPulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pos-sending .pos-tick { animation: none; } }
.pos-sending b { display: block; color: var(--warn); font-size: 14.5px; }
.pos-sending span:not(.pos-tick) { display: block; color: var(--muted); font-size: 12.5px; }
.pos-missing .pos-why { color: var(--ink) !important; font-weight: 600; }
.cx-link { margin-left: auto; color: var(--muted); }
.pos-banner { margin: 14px 20px 0; padding: 12px 16px; border-radius: 12px; background: var(--bad); color: #fff; font-weight: 600; }
@media (max-width: 640px) { .pos-banner { margin: 12px 12px 0; } }

/* the bill on each order: qty, item, price; bold total */
.bill { margin: 10px 0 8px; font-size: 14px; }
.bill-line { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 3px 0; align-items: baseline; }
.bill-line .bq { color: var(--muted); font-variant-numeric: tabular-nums; }
.bill-line .bd small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.bill-line .ba { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bill-line.fee .bd, .bill-line.fee .ba { color: var(--muted); }
.bill-total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 16px; }
.bill-total b { font-weight: 800; }
