/* ==========================================================================
   GrillTab: design system
   Dark by default (bars are dark); light theme for bright offices.
   Everything is sized for touch first: 44px+ targets, thumb-reach nav on phones.
   ========================================================================== */
:root {
  --bg: #0b0d10; --bg-2: #101318; --panel: #15181e; --panel-2: #1c2028; --panel-3: #242a34;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f5; --muted: #8d97a6; --faint: #5d6675;
  --accent: #ff7f1f; --accent-2: #ffb36b; --accent-ink: #1a0d00; --accent-soft: rgba(255, 127, 31, .14);
  --good: #2fbf71; --good-soft: rgba(47, 191, 113, .14); --bad: #f0524f; --bad-soft: rgba(240, 82, 79, .14);
  --warn: #f5b942; --warn-soft: rgba(245, 185, 66, .14); --blue: #3b9cff; --blue-soft: rgba(59, 156, 255, .15);
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5); --ring: 0 0 0 3px rgba(255, 127, 31, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Inter, Arial, sans-serif;
  --nav-h: 0px; color-scheme: dark; font-size: 16px;
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --bg-2: #eceef2; --panel: #ffffff; --panel-2: #f3f4f7; --panel-3: #e8eaef;
  --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .16);
  --text: #141820; --muted: #5d6675; --faint: #9aa2af;
  --accent: #f06a00; --accent-2: #c45200; --accent-soft: rgba(240, 106, 0, .1);
  --good: #12935a; --bad: #d63a37; --warn: #b77b00; --blue: #1f6fd1;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06); --shadow-lg: 0 24px 64px rgba(15, 23, 42, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
body { overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* touch screens: a long press on a button, tab or check never selects its text or pops the copy menu (typing fields still can) */
button, a, nav, .tab-btn, .kds-item, .ticket header, .keypad, .pin-dots { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a { color: var(--accent-2); }
::selection { background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 750; } h2 { font-size: 1.3rem; font-weight: 700; } h3 { font-size: 1.02rem; font-weight: 650; }
.muted { color: var(--muted); } .good-t { color: var(--good); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.right { text-align: right; } .grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
b, strong { font-weight: 650; }

/* ---------- controls ---------- */
button { cursor: pointer; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: var(--radius-sm);
  padding: 10px 16px; min-height: 44px; font-weight: 550; touch-action: manipulation; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.15; }
button svg { width: 18px; height: 18px; flex: none; }
button:hover { background: var(--panel-3); border-color: var(--line-2); }
button:active { transform: scale(.97); }
button:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }
button.primary { background: linear-gradient(180deg, #ff9440, var(--accent)); border-color: transparent; color: var(--accent-ink); font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 127, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .25); }
:root[data-theme="light"] button.primary { color: #fff; background: linear-gradient(180deg, #ff8426, var(--accent)); }
button.primary:hover { filter: brightness(1.06); }
button.good { background: linear-gradient(180deg, #3bd282, var(--good)); border-color: transparent; color: #03170c; font-weight: 700; }
:root[data-theme="light"] button.good { color: #fff; }
button.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
button.bad:hover { background: rgba(240, 82, 79, .24); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { background: var(--panel-2); color: var(--text); }
button.sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
button:disabled { opacity: .4; cursor: default; transform: none; filter: none; }
input, select, textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%;
  transition: border-color .15s, box-shadow .15s; }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #fff; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type="checkbox"] { accent-color: var(--accent); width: 20px !important; height: 20px; min-height: 0 !important; }
input[type="date"] { min-width: 150px; }
select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d97a6' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
label { display: block; font-size: .82rem; font-weight: 550; color: var(--muted); margin-bottom: 12px; }
label > input, label > select, label > textarea, label > .row { margin-top: 6px; color: var(--text); font-weight: 400; font-size: 1rem; }
label.row { font-size: .95rem; font-weight: 450; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card .card { box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 650; letter-spacing: .01em;
  background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.card .stat { background: var(--panel-2); box-shadow: none; }
.stat > span:first-child { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat b { display: block; font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* section tabs: one underlined row (scrolls sideways when there are many), like a back office */
.subtabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 16px; align-items: stretch; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { border-radius: 8px 8px 0 0; min-height: 42px; padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent; box-shadow: none; color: var(--muted); font-weight: 600; white-space: nowrap; margin-bottom: -1px; }
.subtabs button:hover { color: var(--text); background: var(--panel-2); }
.subtabs button.on { background: none; color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
.subtabs a { text-decoration: none; }

/* ---------- app shell ---------- */
#app { display: flex; flex-direction: column; height: 100%; }
header.top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: color-mix(in srgb, var(--panel) 88%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; white-space: nowrap; margin-right: 8px; letter-spacing: -.01em; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff9a45, #ff5f00); box-shadow: 0 4px 14px rgba(255, 106, 0, .35); }
.brand .logo svg { width: 18px; height: 18px; color: #1a0d00; }
nav.tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none;
  white-space: nowrap; font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
nav.tabs a svg { width: 18px; height: 18px; opacity: .85; }
nav.tabs a:hover { color: var(--text); background: var(--panel-2); }
nav.tabs a.on { background: var(--accent-soft); color: var(--accent-2); }
:root[data-theme="light"] nav.tabs a.on { color: var(--accent); }
.who { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .9rem; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem;
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-2); }
.icon-btn { min-height: 38px; width: 38px; padding: 0; border-radius: 10px; }
.icon-btn svg { width: 18px; height: 18px; }
main { flex: 1; overflow: auto; padding: 18px; padding-bottom: calc(18px + var(--nav-h)); }
main.full { padding: 0; overflow: hidden; padding-bottom: var(--nav-h); }
.page { max-width: 1240px; margin: 0 auto; }
.page > h2:first-child, .page > .row:first-child h2 { font-size: 1.5rem; }

/* Mid-size screens (tablets, small registers): icons only, label on the current screen */
@media (max-width: 1360px) and (min-width: 821px) {
  nav.tabs.crowded a { flex-direction: column; gap: 3px; padding: 6px 10px; min-width: 64px; font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
  nav.tabs.crowded a svg { width: 20px; height: 20px; }
  nav.tabs.crowded .tab-all { font-size: .8rem; }
  .who .name { display: none; }
}

/* Bottom tab bar (phones / handhelds) */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  :root { --nav-h: calc(64px + env(safe-area-inset-bottom)); }
  header.top nav.tabs { display: none; }
  header.top { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .brand { flex: 1; max-width: none; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--panel) 92%, transparent);
    border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .bottom-nav a, .bottom-nav button { all: unset; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: .7rem; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bottom-nav svg { width: 23px; height: 23px; }
  .bottom-nav .on { color: var(--accent-2); }
  :root[data-theme="light"] .bottom-nav .on { color: var(--accent); }
  .bottom-nav .on svg { filter: drop-shadow(0 0 8px rgba(255, 127, 31, .45)); }
}
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius); background: var(--panel-2);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.more-grid a svg { width: 26px; height: 26px; color: var(--accent-2); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card.tbl-wrap { padding: 6px 6px 2px; } .card.tbl-wrap > h3 { padding: 12px 12px 4px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 650; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; transition: background .12s; } tr.click:hover td { background: var(--panel-2); }
tr.total td { font-weight: 700; border-top: 1px solid var(--line-2); background: var(--panel-2); }

/* ---------- login ---------- */
.login { max-width: 380px; margin: 0 auto; padding: max(6vh, 24px) 18px 24px; text-align: center; }
.login .logo-lg { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff9a45, #ff5f00); box-shadow: 0 12px 36px rgba(255, 106, 0, .4); }
.login .logo-lg svg { width: 34px; height: 34px; color: #1a0d00; }
.login h1 { font-size: 1.6rem; }
.login .clock { font-size: 2.6rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.pin-dots { display: flex; justify-content: center; gap: 14px; height: 3.2rem; align-items: center; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .15s, border-color .15s, transform .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 18px; }
.keypad button { font-size: 1.6rem; font-weight: 500; min-height: 72px; border-radius: 18px; background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.keypad button:hover { background: var(--panel-2); }
/* short screens (handhelds, a register on its side): the whole PIN screen fits, Clock in / out included, no scrolling */
@media (max-height: 820px) {
  .login { padding-top: 14px; }
  .login .logo-lg { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; } .login .logo-lg svg { width: 24px; height: 24px; }
  .login h1 { font-size: 1.3rem; margin: 0; }
  .login .clock { font-size: 1.9rem; }
  .pin-dots { height: 2.2rem; }
  .keypad { gap: 9px; margin: 4px 0 12px; } .keypad button { min-height: 58px; font-size: 1.45rem; }
}

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 232px 1fr 392px; height: 100%; }
.pos > section { overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.pos .tabs-col { padding: 12px; gap: 8px; background: var(--bg-2); border-right: 1px solid var(--line); }
.tabs-col .muted { font-size: .72rem !important; font-weight: 700; letter-spacing: .06em; margin-top: 10px !important; }
.tab-btn { text-align: left; width: 100%; padding: 11px 12px; display: block; background: var(--panel); border-color: var(--line); }
.tab-btn.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tab-btn b { display: block; font-size: .95rem; } .tab-btn small { display: block; color: var(--muted); margin-top: 2px; font-size: .8rem; }
.menu-col { padding: 14px; }
.groups { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: -2px -14px 12px; padding: 2px 14px 4px; scrollbar-width: none; flex-shrink: 0; } /* never squashed when the menu column is a flex column (phones, narrow windows) */
.groups::-webkit-scrollbar { display: none; }
.groups button { border-radius: 12px; white-space: nowrap; flex: none; background: var(--panel); border-color: var(--line); min-height: 46px; padding: 0 18px; font-weight: 650; }
.groups .gtools { display: inline-flex; flex: none; gap: 4px; padding: 3px; margin-right: 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.groups .gtools button { min-height: 40px; min-width: 44px; padding: 0 12px; border-radius: 10px; }
.groups button.on { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 700; }
.mods { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; flex-shrink: 0; }
.mods button { border-style: dashed; border-color: var(--line-2); background: transparent; border-radius: 99px; }
.mods button.on { background: var(--blue-soft); border: 1px solid var(--blue); color: var(--blue); font-weight: 700; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.items.btn-big button { min-height: 110px; font-size: 1.15rem; } .items.btn-small button { min-height: 60px; font-size: .9rem; }
.items button { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left;
  padding: 12px; background: var(--panel); border-color: var(--line); border-radius: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.items button::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--tile, var(--accent)); opacity: .9; }
.items button:hover { background: var(--panel-2); }
.items button b { font-size: .96rem; line-height: 1.25; font-weight: 650; }
.items button > span:last-child { color: var(--accent-2); font-weight: 750; font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .items button > span:last-child { color: var(--accent); }
.items button.out { opacity: .5; } .items button.out::before { background: var(--bad); }
.items button .stock { font-size: .7rem; font-weight: 700; color: var(--warn); }
.check-col { background: var(--panel); border-left: 1px solid var(--line); }
.check-head { padding: 14px; border-bottom: 1px solid var(--line); }
.check-head h3 { font-size: 1.1rem; }
.check-lines { flex: 1 1 0; min-height: 60px; overflow: auto; } /* the lines scroll; the totals and Pay always stay on screen */
.check-foot { flex: none; }
.line { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.line:hover { background: var(--panel-2); }
.line .nm { flex: 1; font-weight: 550; } .line small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; font-size: .82rem; }
.line .pr { font-variant-numeric: tabular-nums; font-weight: 600; }
.line.new { box-shadow: inset 3px 0 0 var(--blue); background: linear-gradient(90deg, var(--blue-soft), transparent 40%); }
.line.void .nm, .line.void .pr { text-decoration: line-through; color: var(--faint); }
.check-foot { padding: 14px; border-top: 1px solid var(--line); background: var(--panel); }
.tot { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.tot.big { font-size: 1.45rem; font-weight: 800; color: var(--text); padding-top: 8px; letter-spacing: -.02em; }
/* the check's tools: one row of small buttons; then the two that matter, Send and Pay, big and side by side */
.check-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check-tools button { flex: none; min-height: 40px; padding: 0 12px; font-size: .86rem; font-weight: 600; border-radius: 10px; background: var(--panel-2); }
.check-tools .bad-o { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.check-tools .warn-o { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.check-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 10px; }
.check-actions > button { min-height: 60px; font-size: 1.05rem; font-weight: 700; border-radius: 14px; }
.check-actions .pay-b { font-size: 1.2rem; letter-spacing: -.01em; }
.check-actions > p { grid-column: 2; align-self: center; }
.check-actions .wide { grid-column: span 2; min-height: 52px; font-size: 1.05rem; }
.pos-switch .cnt { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 99px; background: var(--panel-3); font-size: .78rem; font-weight: 700; }
.pos-switch { display: none; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--faint); }

/* ---------- kitchen display ---------- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 14px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--good); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.ticket.late { border-top-color: var(--warn); } .ticket.very-late { border-top-color: var(--bad); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--bad-soft); } }
.ticket header { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 1.05rem; }
.ticket header span { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 650; }
.ticket.late header span { color: var(--warn); } .ticket.very-late header span { color: var(--bad); }
.ticket ul { list-style: none; margin: 0; padding: 10px 14px; flex: 1; }
.ticket li { padding: 7px 0; font-size: 1.12rem; font-weight: 600; border-bottom: 1px dashed var(--line); } .ticket li:last-child { border: 0; }
.ticket li small { display: block; color: var(--accent-2); font-weight: 500; font-size: .92rem; margin-top: 2px; }
.ticket button { margin: 0; min-height: 54px; }

/* Kitchen TV mode: readable from across the kitchen, no touch needed */
body.tv header.top, body.tv .bottom-nav { display: none; }
/* Kitchen screen, readable from across the kitchen: the whole header fills green → yellow → red with age */
.ticket header { cursor: pointer; min-height: 52px; align-items: center; transition: background .3s; }
.ticket.fresh header { background: color-mix(in srgb, var(--good) 22%, var(--panel)); }
.ticket.late { border-top-color: var(--warn); } .ticket.late header { background: var(--warn); color: #111; }
.ticket.very-late header { background: var(--bad); color: #fff; }
.ticket.critical header { background: #7d3c98; color: #fff; } .ticket.critical { border-top-color: #7d3c98; } /* way past late: purple */
.ticket.late header span, .ticket.very-late header span, .ticket.late header .pill, .ticket.very-late header .pill { color: inherit; }
.ticket header .clk { font-size: 1.25em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.ticket .big-no { font-size: 1.5em; font-weight: 900; letter-spacing: .5px; } .ticket .lbl { font-weight: 600; opacity: .85; }
.ticket .tnum { margin-right: 6px; }
.flag { display: inline-block; font-size: .72em; font-weight: 800; padding: 1px 6px; border-radius: 4px; margin-left: 4px; background: var(--panel-2); color: var(--text); vertical-align: middle; }
.flag.new { background: #2a78d6; color: #fff; } .flag.add { background: #7d3c98; color: #fff; } .flag.chg { background: #d35400; color: #fff; } .flag.rec { background: #c0392b; color: #fff; }
.ticket.is-new { animation: kdsNew 1s ease-in-out 5; } @keyframes kdsNew { 50% { box-shadow: 0 0 0 5px #2a78d6; } }
.kds-item { min-height: 44px; padding: 10px 6px; }
.kds.paged { align-items: start; margin-bottom: 64px; }
.cont-next { padding: 6px 10px; text-align: right; font-weight: 700; margin-top: auto; }
.kds-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 6px 12px; min-height: 60px; }
body:not(.kds-only):not(.tv) .kds-foot { bottom: var(--nav-h, 0px); }
.kds-foot .all-day { flex: 1; padding: 0; overflow: hidden; flex-wrap: nowrap; white-space: nowrap; }
.kds-pager { display: flex; gap: 8px; align-items: center; margin-left: auto; white-space: nowrap; } .kds-pager button { min-height: 48px; min-width: 64px; font-size: 1.3rem; }
.kds-off { background: var(--bad); color: #fff; font-weight: 900; font-size: 1.3rem; padding: 14px; text-align: center; position: sticky; top: 0; z-index: 16; border-radius: 8px; margin: 0 12px 8px; }
body.kds-stale .kds { opacity: .35; filter: grayscale(1); }
.runner { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 12px; margin: 0 12px 6px; border: 2px solid var(--good); border-radius: 8px; }
.runner button { min-height: 44px; }
/* Kitchen screen on a cook's tablet / a kitchen device: tickets only, Lock in the corner */
body.kds-only header.top, body.kds-only .bottom-nav, body.kds-only .alc-banner, body.kds-only .smart-banner { display: none !important; }
body.kds-only main { padding: 10px; padding-bottom: 10px; }
body.tv main { padding: 10px; }
body.tv .kds { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
body.tv .ticket header { font-size: 1.5rem; padding: 14px 16px; }
body.tv .ticket li { font-size: 1.7rem; font-weight: 700; padding: 8px 0; }
body.tv .ticket li small { font-size: 1.2rem; font-weight: 600; }
body.tv .ticket .pill { font-size: 1.3rem; padding: 2px 12px; background: var(--accent); color: var(--accent-ink); }
body.tv .ticket { border-top-width: 8px; }
/* Quick edit (registers) */
.qe-list { display: flex; flex-direction: column; gap: 6px; }
.qe-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--tile, var(--line)); border-radius: 12px; padding: 6px 8px 6px 4px; }
.qe-row.off { opacity: .55; }
.qe-main { flex: 1; text-align: left; background: none; border: 0; min-height: 52px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4px 10px; box-shadow: none; }
.qe-main small { color: var(--muted); font-weight: 500; }
.qe-price { min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.qe-move { display: flex; gap: 4px; } .qe-move button { min-width: 44px; min-height: 44px; }
/* kitchen screen text size (Settings, or Aa on each screen) */
.kds.t-small .ticket { zoom: .85; } .kds.t-large .ticket { zoom: 1.2; } .kds.t-xl .ticket { zoom: 1.45; }
.kds.t-large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } .kds.t-xl { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* ---------- counting ---------- */
.scale-bar { position: sticky; top: -18px; z-index: 5; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); }
.scale-bar .reading { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 140px; letter-spacing: -.02em; }
.scale-stable { font-weight: 800; margin-left: 6px; }
.count-row { display: grid; grid-template-columns: 1.5fr 100px 1.6fr 100px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.count-row:last-child { border-bottom: 0; }
.count-row.done { background: linear-gradient(90deg, var(--good-soft), transparent 55%); }
.count-row input { min-height: 42px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.chip { background: var(--panel-3); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--bad-soft); color: var(--bad); }

/* ---------- modal / sheet ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(4, 6, 9, .62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; width: min(580px, 100%); max-height: 92vh; overflow: auto;
  padding: 22px; box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(900px, 100%); }
.modal > h2 { padding-right: 20px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; position: sticky; bottom: -22px;
  background: var(--panel); padding: 12px 0 4px; margin-bottom: -4px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes sheet { from { transform: translateY(100%); } }
@media (max-width: 640px) {
  .backdrop { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheet .22s cubic-bezier(.2, .9, .3, 1); }
  .modal::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 12px; }
  .modal .actions { bottom: calc(-16px - env(safe-area-inset-bottom)); }
  .modal .actions button { flex: 1 1 auto; }
}
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + var(--nav-h)); background: var(--panel-3); color: var(--text);
  border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--shadow-lg); font-weight: 550;
  max-width: min(92vw, 520px); display: flex; gap: 10px; align-items: center; animation: toast .2s ease-out; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.toast.err { border-color: rgba(240, 82, 79, .5); } .toast.err::before { background: var(--bad); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- receipt printing (80mm thermal) ---------- */
#print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block; position: absolute; left: 0; top: 0; width: 72mm; color: #000; font: 12px/1.35 monospace; }
  #print-area .r { display: flex; justify-content: space-between; }
  #print-area hr { border: 0; border-top: 1px dashed #000; }
  @page { margin: 4mm; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .pos { grid-template-columns: 196px 1fr 340px; } }
@media (max-width: 820px) {
  /* handhelds: the POS fills what's left under the Checks / Menu / Check switch (it used to run under the bottom bar) */
  main.full { display: flex; flex-direction: column; }
  main.full > .pos { flex: 1; min-height: 0; height: auto; }
  .check-head { padding: 10px 12px; }
  .check-foot { padding: 10px 12px; }
  .check-foot .tot { padding: 1px 0; font-size: .88rem; }
  .check-foot .tot.big { font-size: 1.3rem; padding-top: 4px; }
  .check-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px -12px 0; padding: 0 12px; }
  .check-tools::-webkit-scrollbar { display: none; }
  .check-actions > button { min-height: 54px; }
  /* header and warning bars: slimmer, so the check gets the room */
  #themeBtn { display: none; }
  #lockBtn span { display: none; }
  body .alc-banner, body .smart-banner { padding: 3px 10px; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .groups .gtools { gap: 2px; padding: 2px; margin-right: 4px; }
  .groups .gtools button { min-width: 38px; padding: 0 8px; min-height: 40px; }
  .groups button { min-height: 44px; padding: 0 14px; }
  .pos { display: flex; flex-direction: column; }
  .pos > section { display: none; border: 0; flex: 1; }
  .pos > section.show { display: flex; }
  .pos-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; margin: 8px 10px 0; background: var(--panel-2); border-radius: 12px; }
  .pos-switch button { border: 0; background: transparent; min-height: 40px; border-radius: 9px; font-size: .9rem; }
  .pos-switch button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); font-weight: 700; }
  .items { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .items button { min-height: 88px; }
  .count-row { grid-template-columns: 1fr 1fr; }
  .count-row > :first-child { grid-column: span 2; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  main { padding: 12px; padding-bottom: calc(14px + var(--nav-h)); }
  .scale-bar { top: -12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat b { font-size: 1.2rem; }
  .card { padding: 14px; }
  .kds { padding: 10px; gap: 10px; }
}
@media (max-width: 480px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .page > .row:first-child { gap: 8px; }
  .page > .row:first-child button { flex: 1 1 auto; }
  .who .name { display: none; }
}

/* Card reader wait screen */
.card-wait { text-align: center; padding: 8px 0 4px; }
.card-wait .amt { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.tap-ring { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); animation: tapPulse 1.4s ease-out infinite; }
.tap-ring svg { width: 40px; height: 40px; }
.tap-ring.fail { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); animation: none; }
@keyframes tapPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 28px transparent; } }
@media (prefers-reduced-motion: reduce) { .tap-ring { animation: none; } }

/* Bottle calibration steps */
.cal-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cal-step { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cal-step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel2); margin-right: 6px; }
.cal-step.on { border-color: var(--accent); background: var(--accent-soft); } .cal-step.on b { background: var(--accent); color: var(--accent-ink); }
.cal-step.ok b { background: var(--good); color: #fff; }
@media (max-width: 560px) { .cal-steps { grid-template-columns: 1fr; } }

/* Phones: the scale bar stays one compact row (reading + connect), the hint goes away */
@media (max-width: 560px) {
  .scale-bar { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .scale-bar .reading { font-size: 1.5rem; min-width: 0; }
  .scale-bar > .muted.grow { display: none; }
  .scale-bar button { min-height: 40px; padding: 6px 12px; white-space: nowrap; }
}

/* Floor plan */
.floor-map { position: relative; width: 100%; aspect-ratio: 1000 / 650; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel) linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 5% 7.69%, var(--panel) linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 5% 7.69%;
  background-blend-mode: normal; margin-bottom: 10px; }
.floor-map.editing { touch-action: none; }
.ftable { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px; min-height: 0; border-radius: 10px;
  background: var(--panel2); color: var(--text); border: 2px solid var(--line); box-shadow: inset 0 -4px 0 var(--sec, transparent); font-size: clamp(.55rem, 1.3vw, .85rem);
  line-height: 1.15; overflow: hidden; text-align: center; cursor: pointer; transition: box-shadow .15s, opacity .15s; }
.ftable b { font-size: 1.15em; } .ftable span, .ftable small { opacity: .85; white-space: nowrap; }
.ftable.shape-round { border-radius: 50%; } .ftable.shape-booth { border-radius: 10px 10px 26px 26px; border-bottom-width: 6px; } .ftable.shape-bar { border-radius: 40px; }
.editing .ftable { cursor: grab; } .editing .ftable.sel { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 2; }
.ftable.st-available { background: var(--panel2); }
.ftable.st-seated, .lg.st-seated { background: color-mix(in srgb, #4f8cff 30%, var(--panel2)); border-color: #4f8cff; }
.ftable.st-ordered, .lg.st-ordered { background: color-mix(in srgb, var(--accent) 32%, var(--panel2)); border-color: var(--accent); }
.ftable.st-served, .lg.st-served { background: color-mix(in srgb, var(--good) 30%, var(--panel2)); border-color: var(--good); }
.ftable.st-check, .ftable.st-paying, .lg.st-check { background: color-mix(in srgb, #8e4ec6 32%, var(--panel2)); border-color: #8e4ec6; }
.ftable.st-dirty, .lg.st-dirty { background: repeating-linear-gradient(135deg, var(--panel2) 0 6px, color-mix(in srgb, var(--muted) 25%, var(--panel2)) 6px 12px); border-style: dashed; }
.ftable.st-reserved, .lg.st-reserved, .ftable.st-blocked { background: color-mix(in srgb, #f5a524 22%, var(--panel2)); border-color: #f5a524; border-style: dashed; }
.ftable.late, .lg.late { box-shadow: 0 0 0 3px var(--bad), inset 0 -4px 0 var(--sec, transparent); }
.ftable.late { animation: lateGlow 2s ease-in-out infinite; }
@keyframes lateGlow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 45%, transparent), inset 0 -4px 0 var(--sec, transparent); } }
@media (prefers-reduced-motion: reduce) { .ftable.late { animation: none; } }
.ftable.dim { opacity: .35; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; margin: 0 2px 12px; }
.floor-legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 2px solid var(--line); background: var(--panel2); }
.floor-legend .lg.st-available { background: var(--panel2); }
.floor-stats .stat b { font-size: 1.3rem; }
.party button { min-width: 44px; }

/* Older screens use --panel2; the theme defines --panel-2 */
:root { --panel2: var(--panel-2); }

/* Floor on phones: keep tables readable (the room scrolls sideways), compact stats */
.floor-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
.floor-wrap .floor-map { margin-bottom: 0; }
@media (max-width: 700px) {
  .floor-wrap .floor-map { min-width: 680px; }
  .floor-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .floor-stats .stat { padding: 8px 10px; } .floor-stats .stat b { font-size: 1.05rem; } .floor-stats .stat .muted { font-size: .7rem; }
}

/* Menu scheduling, happy hour, combos, coursing */
.items button.later { opacity: .45; }
.items .hh { color: var(--good); } .items .hh-tag { font-size: .7rem; color: var(--good); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.check-lines .line.child { padding-left: 22px; opacity: .92; } .check-lines .line.child .nm { font-size: .92em; }
button.warn-b { background: color-mix(in srgb, var(--warn) 22%, var(--panel-2)); border-color: var(--warn); color: var(--text); }
.ticket .course-h { list-style: none; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-top: 6px; border-bottom: 1px dashed var(--line); }
.ticket .held { margin: 0 10px 8px; padding: 8px 10px; border: 1px dashed var(--warn); border-radius: 10px; font-size: .85rem; color: var(--muted); }
.ticket .held b { display: block; color: var(--warn); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.opt-set .row button.primary, .opt-size .row button.primary { box-shadow: 0 0 0 2px var(--accent); }
.opt-set.opt-sub { margin-left: 14px; padding-left: 12px; border-left: 2px solid var(--accent); }
.opt-set[hidden] { display: none; }
.opt-set .row button.pre-on { border-color: var(--warn); }
.pre-bar { gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pre-bar button.primary { background: var(--warn); border-color: var(--warn); color: #111; }
.opt-size { margin-bottom: 8px; }

/* Keep the check readable on short screens (seat + course rows take room) */
.check-lines { min-height: 140px; }

/* Alcohol: last call / closed banner, check badges */
.alc-banner { position: sticky; top: 0; z-index: 30; padding: 5px 14px; text-align: center; font-weight: 750; font-size: .88rem; letter-spacing: .02em; }
.alc-banner.last_call { background: var(--warn); color: #1a1200; animation: lastCall 1.6s ease-in-out infinite; }
.alc-banner.closed { background: var(--bad); color: #fff; }
@keyframes lastCall { 50% { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .alc-banner.last_call { animation: none; } }
.alc-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .alc-badges .pill { font-size: .72rem; }

/* Purchasing lines (orders, prep recipes, transfers) */
.po-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto 100px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
#pl .po-line, #tl .po-line { grid-template-columns: minmax(0, 1fr) 100px auto auto; }
@media (max-width: 560px) { .po-line, #pl .po-line, #tl .po-line { grid-template-columns: 1fr 1fr; } .po-line select { grid-column: 1 / -1; } }

/* Product pictures (photo with transparent background, or the drawn bottle / can) */
img.pic { width: auto; max-width: 64px; object-fit: contain; display: block; flex: none; }
.checker { background: repeating-conic-gradient(var(--panel-3) 0 25%, var(--panel-2) 0 50%) 0 0 / 16px 16px; }
.cat-row { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.cat-row.on { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.inv-line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.inv-line.skip { opacity: .5; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.photo-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; min-height: 0; background: var(--panel-2); border-radius: 10px; }
.photo-opt img { height: 96px; width: 100%; object-fit: contain; }
.photo-opt small { font-size: .7rem; line-height: 1.2; color: var(--muted); text-align: center; max-height: 2.4em; overflow: hidden; }
.btn-file { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 10px 16px; border-radius: 12px; font-weight: 700; background: var(--accent); color: #fff; }
.btn-file input { display: none; }
.items button.has-pic { padding-right: 52px; }
.items button .tile-pic { position: absolute; right: 6px; bottom: 6px; height: 64px; width: 42px; object-fit: contain; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* A row of actions: wraps on wide screens, one swipeable line on phones */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar a { display: contents; }
@media (max-width: 700px) { .toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .toolbar button { flex: none; } }

/* Smart nightly count */
.smart-banner { position: sticky; top: 0; z-index: 29; padding: 5px 14px; text-align: center; font-weight: 650; font-size: .88rem; background: var(--accent); color: #fff; }
.smart-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.smart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }

/* Kitchen screen: choices one per line, the ones that change the plate stand out */
.mod { display: block; font-size: .92em; padding-left: 14px; color: var(--muted); }
.mod.no { color: var(--bad); font-weight: 800; letter-spacing: .02em; }
.mod.add { color: var(--good); font-weight: 650; }
.mod.note { color: var(--warn); font-style: italic; }
.mod.note.no { color: var(--bad); font-style: normal; }

/* upsell prompts: a bar above the bottom nav for a few seconds after an item is rung in */
.upsell-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 60; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 32px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- memberships: club card, plan tiles, member rows ---------- */
.mcard { --mc: #ff7f1f; position: relative; overflow: hidden; border-radius: 18px; padding: 18px 20px; color: #fff; max-width: 420px; aspect-ratio: 1.75 / 1; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--mc) 55%, #fff 0%) 0%, color-mix(in srgb, var(--mc) 80%, #000) 45%, #0b0d10 120%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--mc) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.mcard::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 120%; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 62%); transform: rotate(8deg); pointer-events: none; }
.mcard-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: .02em; }
.mcard-plan { text-transform: uppercase; font-size: .82rem; opacity: .95; } .mcard-no { font-variant-numeric: tabular-nums; opacity: .85; font-size: .9rem; }
.mcard-name { font-size: 1.45rem; font-weight: 750; margin-top: auto; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.mcard-perks { display: flex; flex-wrap: wrap; gap: 6px; } .mcard-perks span { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.mcard-foot { display: flex; justify-content: space-between; font-size: .78rem; opacity: .9; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.plan-tile { --mc: #ff7f1f; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; text-align: left; padding: 16px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--mc); min-height: 150px; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.plan-tile:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--mc) 50%, var(--line)); }
.plan-tile.on { outline: 2px solid var(--mc); outline-offset: 1px; background: color-mix(in srgb, var(--mc) 10%, var(--panel)); }
.plan-tile.off { opacity: .55; }
.plan-name { font-weight: 700; font-size: 1.05rem; } .plan-price { font-size: 1.6rem; font-weight: 800; color: var(--mc); } .plan-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-perks { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; color: var(--text); }
.member-row { --mc: #ff7f1f; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: var(--radius-sm); background: transparent; border: 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.member-row:hover { background: var(--panel-2); } .member-row .avatar { background: color-mix(in srgb, var(--mc) 25%, var(--panel-3)); color: var(--mc); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent); }
.member-btn { --mc: #ff7f1f; background: color-mix(in srgb, var(--mc) 18%, var(--panel-2)) !important; border-color: color-mix(in srgb, var(--mc) 55%, transparent) !important; color: var(--text) !important; }
.tot.member-t { color: color-mix(in srgb, #ff7f1f 70%, var(--text)); }
.swatch { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }
.swatch.on { border-color: var(--text); }
.card.promo { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); }
.stat.warn b { color: var(--warn); }
@media (max-width: 600px) { .mcard { padding: 14px 16px; } .mcard-name { font-size: 1.2rem; } .plan-grid { grid-template-columns: 1fr; } }

/* ---------- events: door scanner, minimum spend, bookings ---------- */
.door .chips { margin-bottom: 12px; }
.door-count { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; } .door-count b { font-size: 2.6rem; font-variant-numeric: tabular-nums; } .door-count span { color: var(--muted); }
.door-scan { display: flex; gap: 8px; } .door-scan input { flex: 1; font-size: 1.25rem; min-height: 60px; letter-spacing: .08em; text-transform: uppercase; } .door-scan button { min-height: 60px; }
.door-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; margin: 14px 0; padding: 26px 16px; min-height: 180px;
  border-radius: 20px; border: 2px solid var(--line-2); background: var(--panel); transition: background .15s, border-color .15s; }
.door-result .big { font-size: 2rem; font-weight: 800; } .door-result.ok { background: var(--good-soft); border-color: var(--good); } .door-result.ok .big { color: var(--good); }
.door-result.bad { background: var(--bad-soft); border-color: var(--bad); } .door-result.bad .big { color: var(--bad); }
.door-result.info { background: var(--blue-soft); border-color: var(--blue); } .door-result.idle .big { color: var(--muted); }
.door-result .id-check { background: var(--warn); color: #1a1200; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.door-cam { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.minspend { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.minspend.met { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.minspend .bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 8px 0; } .minspend .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.minspend.met .bar i { background: var(--good); }
.booking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .booking.checked_in, .booking.completed { opacity: .6; }
.ev-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; } .evday { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); line-height: 1.05; }
.evday b { font-size: 1.5rem; } .evday small { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.grid4.ttype-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr 2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 700px) { .grid4.ttype-row { grid-template-columns: 1fr 1fr; } .door-result .big { font-size: 1.6rem; } }

/* ---------- text marketing: composer + phone preview ---------- */
.sms-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.phone-preview { position: sticky; top: 12px; border-radius: 34px; padding: 14px; min-height: 420px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 8px solid var(--panel-3); box-shadow: var(--shadow-lg); }
.phone-top { text-align: center; font-size: .8rem; color: var(--muted); padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--panel-3); color: var(--text); white-space: pre-wrap; word-break: break-word; line-height: 1.35; font-size: .95rem; }
.meter { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; background: var(--accent); }
.optin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; } .optin-grid p { margin: 4px 0 8px; font-size: .9rem; }
@media (max-width: 800px) { .sms-layout { grid-template-columns: 1fr; } .phone-preview { position: static; min-height: 0; } }

/* ---------- Ask your POS ---------- */
.ask { display: flex; flex-direction: column; min-height: calc(100vh - 140px); max-width: 860px; margin: 0 auto; }
.ask-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ask-spark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b5cf6, var(--accent)); box-shadow: 0 8px 22px rgba(139, 92, 246, .35); }
.ask-spark svg { width: 24px; height: 24px; }
.ask-feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.ask-q { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ask-a { align-self: flex-start; max-width: 92%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 1.45; }
.ask-a p { margin: 0 0 8px; } .ask-a p:last-child { margin-bottom: 0; } .ask-a ul, .ask-a ol { margin: 4px 0 8px; padding-left: 20px; } .ask-a h4 { margin: 10px 0 6px; }
.ask-a table { font-size: .9rem; } .ask-a code { background: var(--panel-3); padding: 1px 5px; border-radius: 5px; }
.ask-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .ask-tools .chip { font-size: .75rem; padding: 3px 10px; min-height: 0; }
.ask-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.ask-idea { text-align: left; padding: 14px; min-height: 64px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 500; line-height: 1.3; }
.ask-idea:hover { border-color: color-mix(in srgb, #8b5cf6 50%, var(--line)); background: color-mix(in srgb, #8b5cf6 8%, var(--panel)); }
.ask-bar { position: sticky; bottom: calc(var(--nav-h, 0px) + 8px); display: flex; gap: 8px; align-items: flex-end; padding: 8px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ask-bar textarea { flex: 1; resize: none; border: 0; background: transparent; min-height: 44px; max-height: 140px; padding: 10px; } .ask-bar textarea:focus { outline: none; box-shadow: none; }
.ask-bar button { min-height: 44px; border-radius: 14px; padding: 0 20px; }
.ask-thinking { display: flex; align-items: center; gap: 4px; color: var(--muted); } .ask-thinking span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: askdot 1.2s infinite ease-in-out; }
.ask-thinking span:nth-child(2) { animation-delay: .15s; } .ask-thinking span:nth-child(3) { animation-delay: .3s; margin-right: 8px; }
@keyframes askdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 600px) { .ask-q, .ask-a { max-width: 100%; } .ask-ideas { grid-template-columns: 1fr; } }

/* kiosk pairing code in Settings */
.pair-code { font-size: 1.3rem; letter-spacing: .25em; color: var(--accent); font-variant-numeric: tabular-nums; }
.door-scan input::placeholder { text-transform: none; letter-spacing: 0; }
.ask-idea { display: flex; align-items: center; justify-content: flex-start; }
.ask-feed { padding-bottom: 24px; } @media (max-width: 600px) { .ask-feed { padding-bottom: 84px; } }

/* ---------- auto schedule ---------- */
.auto-btn { background: linear-gradient(135deg, color-mix(in srgb, #8b5cf6 30%, var(--panel-2)), var(--panel-2)); border-color: color-mix(in srgb, #8b5cf6 50%, transparent); }
.fc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 10px 0 6px; }
.fc-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 12px; background: var(--panel-2); font-size: .85rem; }
.fc-day small { color: var(--muted); font-size: .72rem; text-align: center; }
.fc-bar { width: 22px; height: 70px; border-radius: 8px; background: var(--panel-3); display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 4px; }
.fc-bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 8px; }
.avail-sel { min-width: 92px; min-height: 40px; padding: 4px 8px; } .avail-sel.off { color: var(--bad); } .avail-sel.window { color: var(--warn); }
@media (max-width: 600px) { .fc-week { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sports-bar mode ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.game { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.game.big { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); } .game.live { border-color: var(--bad); background: linear-gradient(135deg, var(--bad-soft), transparent 70%), var(--panel); }
.game-time { font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 6px; } .game.live .game-time { color: var(--bad); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: livepulse 1.2s infinite; } @keyframes livepulse { 50% { opacity: .3; } }
.game-title { font-size: 1.15rem; font-weight: 750; } .game-tvs { display: flex; flex-wrap: wrap; gap: 6px; }
.live-banner { border-color: var(--bad); background: var(--bad-soft); }
/* ---------- taps & pours ---------- */
.tap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 14px 0; }
.tap { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.tap.low { border-color: var(--warn); } .keg { position: relative; width: 46px; height: 92px; border-radius: 10px; background: var(--panel-3); overflow: hidden; flex: none; border: 2px solid var(--line-2); }
.keg i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #f6c453, #d4a017); } .tap.low .keg i { background: linear-gradient(180deg, var(--warn), #b77b00); }
.keg span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tap-nums { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 2px; font-size: .9rem; }
/* ---------- camera review ---------- */
.cam-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); text-decoration: none; font-weight: 600; font-size: .85rem; margin: 2px 0; }
.cam-link svg { width: 16px; height: 16px; }
.tier-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 10px; }
/* Item builder: an item's choices beside the check (register) or full screen (handheld) */
.bld-wrap { position: fixed; z-index: 60; display: flex; background: var(--bg); }
.bld-wrap.full { inset: 0; }
.bld { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--panel); border-left: 1px solid var(--line-2); }
.bld-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.bld-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bld-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.bld-crumb { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.bld-qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.bld-qty button { border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 1.2rem; }
.bld-qty b { min-width: 28px; text-align: center; }
.bld-done { min-height: 48px; padding: 0 20px; font-size: 1.05rem; white-space: nowrap; }
.bld-tabs { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.bld-tabs button { flex: none; min-height: 44px; border-radius: 12px; padding: 0 14px; white-space: nowrap; background: var(--panel-2); }
.bld-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.bld-tabs button.sub { font-style: italic; }
.bld-tabs small { opacity: .7; margin-left: 2px; }
.bld-tabs i.req { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-left: 6px; vertical-align: middle; }
.bld-tabs i.ok { font-style: normal; color: var(--good); margin-left: 4px; }
.bld-tabs button.on i.ok { color: inherit; }
.bld-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 16px 0; color: var(--muted); font-size: .88rem; }
.bld-pre { display: flex; gap: 6px; }
.bld-pre button { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: .85rem; background: transparent; }
.bld-pre button.on { background: var(--warn); border-color: var(--warn); color: #111; }
.bld-body { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-content: start; }
.bld-body.note { display: block; }
.bld-body.note textarea { width: 100%; font-size: 1.05rem; }
.bld-tile { position: relative; min-height: 78px; border-radius: 14px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-2); }
.bld-tile b { font-size: .98rem; line-height: 1.25; }
.bld-tile span { color: var(--muted); font-size: .88rem; }
.bld-tile.on { border: 2px solid var(--accent); background: var(--accent-soft, var(--panel-3)); }
.bld-tile.on::after { content: '✓'; position: absolute; top: 6px; right: 9px; font-weight: 800; color: var(--accent); }
.bld-tile em { font-style: normal; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.bld-sum { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--text); max-height: 22%; overflow-y: auto; }
@media (max-width: 640px) {
  .bld-done { flex: 1; }
  .bld-body { grid-template-columns: repeat(2, 1fr); padding: 10px 12px; }
}
.bld-tile b { padding-right: 18px; }
.bld-next { padding: 8px 16px 0; display: flex; justify-content: flex-end; }
.bld-next button { min-height: 40px; border-radius: 999px; padding: 0 16px; color: var(--accent); border-color: var(--accent); background: transparent; }
@media (max-width: 640px) { .bld-qty button { min-width: 38px; } }
.ln-mods { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.ln-mods div { display: flex; justify-content: space-between; gap: 8px; padding-left: 8px; }
.ln-mods b { font-weight: 600; color: var(--text); }
.ln-mods .hl { color: var(--warn); font-weight: 700; }
/* 86 */
.groups .g86 { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 800; }
.stock-btns { display: flex; flex-wrap: wrap; gap: 8px; } .stock-btns button { min-height: 48px; flex: 1 1 160px; }
.s86-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.s86-row button { min-height: 40px; }
.bld-tile.out { opacity: .45; border-style: dashed; }
.bld-tile em.x86 { color: var(--bad); }
/* Pour mapper */
.pm-meter .bar { height: 10px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin-top: 8px; }
.pm-meter .bar i { display: block; height: 100%; background: var(--good); }
table.pm td { vertical-align: middle; }
table.pm select { max-width: 230px; }
.pm-sug { border-color: var(--warn); }
.pm-pick { display: block; width: 100%; text-align: left; margin: 0 0 6px; min-height: 44px; }
/* count sheet: open bottle by eye, in tenths */
.tenths { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.tenths button { position: relative; overflow: hidden; min-width: 34px; min-height: 40px; padding: 0 4px; font-size: .8rem; font-weight: 700; z-index: 0; }
.tenths button i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent-soft, rgba(240, 160, 60, .28)); z-index: -1; }
/* kitchen: tap an item when it's done; Expo shows which are ready */
.kds-item { cursor: pointer; } .kds-item.done { opacity: .55; text-decoration: line-through; text-decoration-thickness: 2px; }
.ticket.all-ready { border-top-color: var(--good); box-shadow: 0 0 0 2px var(--good) inset; }
.ticket.kds-msg { border-top-color: var(--warn); background: var(--warn-soft, rgba(240, 180, 60, .12)); }
.ch-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
/* item builder: the same choice more than once (2× Ranch) */
.bld-tile { position: relative; } .bld-n { color: var(--accent); font-weight: 800; }
.bld-minus { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.groups .gtool { background: var(--panel-2); color: var(--text); border-color: var(--line); }
/* Orders hub */
.hub { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; }
.hub-col h3 { margin: 0 0 8px; font-size: 1rem; }
.hub-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; }
.hub-card.late { border-left: 4px solid var(--bad); } .hub-card.here { border: 2px solid var(--good); box-shadow: 0 0 0 3px var(--good-soft, rgba(60, 200, 120, .2)); }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; } }
.print-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; z-index: 60; background: var(--bad); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; box-shadow: var(--shadow); }
.all-day { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 14px 0; font-size: 1.05rem; } .all-day .pill { font-size: 1rem; font-weight: 700; }
.close-step.ok { opacity: .6; } .close-step.ok b { color: var(--good); }

/* kitchen screen: order type at a glance (dine in stays plain), and voids the station must stop */
.ticket.din-takeout header { box-shadow: inset 4px 0 0 #3b82f6; }
.ticket.din-delivery header { box-shadow: inset 4px 0 0 #a855f7; }
.ticket.din-bar header { box-shadow: inset 4px 0 0 #f59e0b; }
.ticket.kds-void { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--panel)); }
.ticket.kds-void header { background: var(--bad); color: #fff; }

/* Menu → Bulk edit: a compact grid; a changed row stands out until it's saved */
.bulk-grid td { padding: 4px 6px; }
.bulk-grid input:not([type=checkbox]), .bulk-grid select { min-height: 34px; padding: 4px 8px; font-size: .92rem; }
.bulk-grid tr.edited td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Device status & Integrations ---------- */
.sdot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--muted); vertical-align: middle; }
.sdot.on { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); } .sdot.off { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 6px; }
.dev-tile { display: flex; align-items: flex-start; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.dev-tile .sdot { margin-top: 5px; } .dev-tile b { display: block; } .dev-tile small { display: block; font-size: .8rem; margin-top: 2px; }
.dev-att { display: grid; gap: 6px; margin-bottom: 8px; }
.att-row { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .92rem; }
.att-row.bad { background: var(--bad-soft); } .att-row.warn { background: var(--warn-soft); } .att-row.good { background: var(--good-soft); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.int-card { display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.int-card.on { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.int-card p { margin: 2px 0 8px; font-size: .86rem; } .int-card .int-detail { font-size: .82rem; color: var(--text, inherit); opacity: .85; overflow-wrap: anywhere; }
a.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--panel-3); color: inherit; }
a.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; } a.btn.primary { background: var(--accent); color: #fff; } a.btn.ghost { background: transparent; border: 1px solid var(--line); }

/* ---------- Owner website (back office through HQ): sidebar layout ---------- */
body.bo { background: var(--bg); }
.bo-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.bo-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.bo-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; } .bo-brand b { display: block; font-size: 1rem; letter-spacing: -.01em; } .bo-brand small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bo-loc { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: inherit; font-weight: 650; text-align: left; min-height: 0; }
.bo-nav { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.bo-gh { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 10px 4px; }
.bo-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 550; font-size: .93rem; }
.bo-nav a svg { width: 18px; height: 18px; opacity: .75; flex: none; }
.bo-nav a:hover { background: var(--panel-2); } .bo-nav a.on { background: var(--accent); color: #fff; } .bo-nav a.on svg { opacity: 1; }
.bo-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.bo-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.bo-main { min-width: 0; display: flex; flex-direction: column; }
.bo-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bo-top h1 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.bo-live { display: inline-flex; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.bo-burger { display: none; }
.bo-page { padding: 22px 24px 60px; max-width: 1320px; width: 100%; box-sizing: border-box; }
.bo-locs { display: grid; gap: 6px; } .bo-locs a { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; } .bo-locs a.on { border-color: var(--accent); }
@media (max-width: 900px) {
  .bo-shell { grid-template-columns: 1fr; }
  .bo-side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .bo-side.show { transform: none; }
  .bo-burger { display: inline-flex; } .bo-live { display: none; } .bo-top { padding: 12px 16px; } .bo-page { padding: 16px; }
}
/* Home */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-card { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi-card small { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi-card b { font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpi-card span { font-size: .84rem; }
.kpi-card.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.delta { font-weight: 800; } .delta.up { color: var(--good); } .delta.down { color: var(--bad); }
/* ---------- charts (Home → The business) ----------
   categorical slots in fixed order, validated for color-blind separation on each theme's panel; the heat map is one blue ramp */
:root { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181;
  --h0: #1c2028; --h1: #0d366b; --h2: #104281; --h3: #1c5cab; --h4: #2a78d6; --h5: #5598e7; --h6: #86b6ef; --heat-ink: #eef1f5; --heat-ink-hi: #0b0d10; }
:root[data-theme="light"] { --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4;
  --h0: #f3f4f7; --h1: #cde2fb; --h2: #9ec5f4; --h3: #6da7ec; --h4: #3987e5; --h5: #256abf; --h6: #104281; --heat-ink: #141820; --heat-ink-hi: #ffffff; }
.rep-sec { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rep-sec h3 { margin: 0; font-size: 1.15rem; } .rep-sec span { color: var(--muted); font-size: .88rem; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; max-width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { stroke: var(--line-2); stroke-width: 1; } .chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; } .chart text.v { fill: var(--text); font-weight: 650; }
.chart .hit { fill: transparent; cursor: crosshair; } .chart .hit:hover + .bar, .chart .bar:hover { opacity: .85; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.ln { height: 3px; border-radius: 2px; vertical-align: 2px; width: 14px; }
.viz-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--panel-3); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: .82rem; box-shadow: var(--shadow); max-width: 260px; }
.viz-tip b { display: block; margin-bottom: 2px; } .viz-tip .r { display: flex; justify-content: space-between; gap: 14px; } .viz-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.hrow { display: grid; grid-template-columns: minmax(110px, 42%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.hrow .trk { height: 12px; background: var(--panel-3); border-radius: 4px; overflow: hidden; } .hrow .trk i { display: block; height: 100%; border-radius: 4px; }
.hrow b { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; } .hrow small { color: var(--muted); font-weight: 500; }
.stack { display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: hidden; margin: 10px 0 8px; }
.stack i { display: block; height: 100%; min-width: 2px; }
.heat { display: grid; gap: 2px; font-size: .72rem; overflow-x: auto; }
.heat .c { border-radius: 3px; min-height: 26px; display: grid; place-items: center; font-variant-numeric: tabular-nums; color: transparent; cursor: default; }
.heat .c:hover { outline: 2px solid var(--text); color: var(--heat-ink); } .heat .c.hi:hover { color: var(--heat-ink-hi); } .heat .lb { color: var(--muted); display: grid; place-items: center; }
.rep-table { width: 100%; border-collapse: collapse; font-size: .88rem; } .rep-table th { text-align: left; color: var(--muted); font-weight: 650; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rep-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; } .rep-table td.n, .rep-table th.n { text-align: right; }
.eng { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .eng > div { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; } .eng b { display: block; } .eng small { color: var(--muted); }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 180px; margin-top: 12px; }
.hb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; } .hb small { font-size: .7rem; color: var(--muted); }
.hb-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.hb-bars i { display: block; width: 45%; border-radius: 4px 4px 0 0; min-height: 2px; } .hb-bars i.today { background: var(--accent); } .hb-bars i.lw { background: var(--panel-3); }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-left: 12px; } .legend-dot::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--panel-3); } .legend-dot.today::before { background: var(--accent); }
a.att-row { display: block; color: inherit; text-decoration: none; margin-bottom: 6px; }
.avatar.sm { width: 24px; height: 24px; font-size: .7rem; display: inline-grid; place-items: center; vertical-align: middle; }

/* ==========================================================================
   Premium layer: finer surfaces, motion and data display (POS, back office, owner dashboard)
   ========================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --hair: rgba(255, 255, 255, .05); }
:root[data-theme="light"] { --hair: rgba(15, 23, 42, .04); }
/* surfaces: a hairline highlight on top, so cards read as raised glass on dark */
.card, .stat, .kpi-card, .int-card, .loc-card { background-image: linear-gradient(180deg, var(--hair), transparent 40%); }
a.card, .card.click, .int-card, .kpi-card { transition: transform .16s var(--ease), border-color .16s, box-shadow .16s; }
.int-card:hover, .kpi-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
/* numbers line up everywhere money is shown */
.stat b, .kpi-card b, td, .tot b { font-variant-numeric: tabular-nums; }
/* tables: quiet header, row hover, sticky header inside scroll areas */
.tbl-wrap { overflow: auto; border-radius: var(--radius-sm); }
.tbl-wrap thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
/* page content fades in instead of popping */
main > *, .bo-page > *, #v > * { animation: rise .22s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* dialogs: spring in, softer backdrop */
.backdrop { animation: fadein .16s ease both; }
.backdrop .modal { animation: pop .2s var(--ease) both; box-shadow: var(--shadow-lg); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.toast { animation: toastin .22s var(--ease) both; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* thin scrollbars that match the theme */
* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
/* inputs: a calmer focus, clear invalid state */
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--muted)); }
input:invalid:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--bad) 60%, var(--line-2)); }
/* pills a touch crisper */
.pill { border: 1px solid transparent; } .pill.good { border-color: color-mix(in srgb, var(--good) 25%, transparent); } .pill.bad { border-color: color-mix(in srgb, var(--bad) 25%, transparent); } .pill.warn { border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
/* sales-by-hour: bars keep a sensible width when there are only a few hours */
.hbars { justify-content: center; } .hb { max-width: 46px; }
/* back office: page header stays readable while scrolling long reports */
.bo-nav a { transition: background .12s, color .12s; }
.bo-nav a.on { box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
@media print { .bo-side, .bo-top { display: none !important; } .bo-shell { display: block; } }
.rep-pick { width: auto; min-width: 210px; min-height: 38px; border-radius: 99px; padding: 6px 34px 6px 14px; font-weight: 600; background-color: var(--panel-2); }
.rep-pick:has(option:checked:not([disabled])) { border-color: var(--accent); color: var(--text); }
/* "All screens" launcher (big screens) */
.tabs .tab-all { min-height: 0; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 650; white-space: nowrap; }
.tabs .tab-all.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-2); }
.launch { display: grid; gap: 18px; } .launch h4 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.launch-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: inherit; text-decoration: none; font-weight: 600; transition: border-color .12s, transform .12s var(--ease); }
.launch-grid a svg { width: 20px; height: 20px; color: var(--accent); flex: none; } .launch-grid a:hover { border-color: var(--accent); transform: translateY(-1px); } .launch-grid a.on { border-color: var(--accent); background: var(--accent-soft); }

/* tip choice on the register screen (the M2 has no screen) */
.tip-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.tip-pick button { min-height: 72px; font-size: 1.15rem; font-weight: 700; }

/* pick several check lines at once */
.sel-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; background: var(--panel-2); border-radius: 8px; margin-bottom: 6px; }
.line.picked { outline: 2px solid var(--accent); border-radius: 6px; }
.ftable .res-tag { display: block; font-size: .72em; background: color-mix(in srgb, var(--accent, #ff7f1f) 22%, transparent); border-radius: 6px; padding: 0 4px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* weather on the schedule's day headers */
th .wx { font-weight: 500; font-size: .78rem; margin-top: 2px; white-space: nowrap; } th .wx .wx-rain { color: var(--accent, #2a78d6); font-weight: 600; }
/* chips used as toggles (filters, report columns): a clear on state; hovering a toggle isn't "remove" red */
button.chip { border: 1px solid transparent; min-height: 30px; transition: background .12s, color .12s, border-color .12s; }
button.chip:hover { background: var(--panel-2); color: var(--text); border-color: var(--line, rgba(127,127,127,.25)); }
.chip.on, button.chip.on:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* allowed Wi-Fi: a register on another network */
.wifi-lock{position:fixed;inset:0;z-index:10000;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:16px;text-align:center}
.wifi-lock .card{max-width:440px}

/* permission tables: the action column stays put while the roles / positions scroll */
#perm td:first-child,#jperm td:first-child,#perm th:first-child,#jperm th:first-child{position:sticky;left:0;z-index:1;background:var(--panel);min-width:190px}
#perm th.num,#jperm th.num{white-space:nowrap}
#perm th:first-child,#jperm th:first-child{z-index:2}

/* handhelds: Send / Pay docked under the menu, the total always in sight */
.menu-dock { display: none; }
@media (max-width: 820px) {
  .menu-col { flex-direction: column; }
  .menu-dock { display: flex; gap: 8px; position: sticky; bottom: 0; margin: auto -14px -14px; padding: 10px 12px; background: var(--panel); border-top: 1px solid var(--line); z-index: 5; }
  .menu-dock button { min-height: 54px; }
  .menu-dock .md-check { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; line-height: 1.15; }
  .menu-dock .md-check small { color: var(--muted); font-size: .76rem; font-weight: 500; }
  .menu-dock .send-b, .menu-dock .pay-b { min-width: 92px; font-weight: 700; }
  /* suggestions: one swipeable row above the dock, not a box over the menu */
  .upsell-bar { left: 10px; right: 10px; transform: none; max-width: none; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; bottom: calc(var(--nav-h) + 106px); padding: 8px 10px; scrollbar-width: none; }
  .upsell-bar::-webkit-scrollbar { display: none; }
  .upsell-bar > * { flex: none; }
}

/* pay at the table: the guest's screen on the handheld */
.gp { position: fixed; inset: 0; z-index: 900; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
.gp-top { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.gp-top span { color: var(--muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.gp-top b { font-size: 1.5rem; }
.gp-body { flex: 1; overflow: auto; padding: 16px; max-width: 560px; width: 100%; margin: 0 auto; }
.gp-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.gp-foot button { min-height: 58px; font-size: 1.1rem; font-weight: 700; }
.gp-l { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.gp-l small { display: block; color: var(--muted); font-size: .82rem; }
.gp-tot { margin-top: 12px; } .gp-tot > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.gp-tot .gp-due { color: var(--text); font-size: 1.6rem; font-weight: 800; padding-top: 10px; }
.gp-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-tips button { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 16px; }
.gp-tips button b { font-size: 1.5rem; } .gp-tips button span { color: var(--muted); }
.gp-tips button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.gp-sig { width: 100%; height: 220px; background: #fff; border-radius: 14px; touch-action: none; display: block; }
.gp-big { font-size: 1.6rem; font-weight: 800; text-align: center; margin: 18px 0 6px; }
.gp-rc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; } .gp-rc button { min-height: 64px; font-size: 1.05rem; }

/* Labels screen: one-tap presets and the use-it-or-toss-it list */
.lbl-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lbl-presets button { min-height: 72px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
.lbl-presets small { color: var(--muted); font-weight: 500; }
.lbl-row { gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lbl-row.bad b { color: var(--bad); }

/* Purchasing: the coming week (games, weather, what they do to sales) */
.dem-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.dem-day { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.dem-day small { color: var(--muted); }
.dem-day.busy { border-color: var(--warn); }
.dem-day .pill { align-self: flex-start; }

/* voice ordering */
.vo-mic { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.vo-btn { width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem; flex: none; }
.vo-btn.on { background: var(--accent); color: #111; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); animation: pulse 1.2s ease-in-out infinite; }
.vo-heard { font-size: 1.05rem; }
.vo-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vo-line small { display: block; } .vo-line.unsure { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.vo-qty { display: flex; align-items: center; gap: 6px; } .vo-qty b { min-width: 22px; text-align: center; }
.vo-unknown { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--panel-2); }
