/* ============================================================
   86 It — kitchen voice control
   One stylesheet for all four screens + the landing page.
   Sections: tokens · base · chrome · 86 strip · primitives
             KDS · FOH · station · online menu · landing · responsive
   ============================================================ */

:root {
  --bg: #0c0e11;
  --panel: #14171c;
  --panel-2: #1a1e24;
  --panel-3: #222731;
  --line: #262c35;
  --line-2: #333a45;
  --text: #f2f1ec;
  --muted: #99a1ad;
  --dim: #6b7480;
  --accent: #0f7a57;
  --accent-ink: #3fbe90;
  --new: #4d9dff;
  --fired: #ff9f0a;
  --held: #a78bfa;
  --done: #22c55e;
  --danger: #ff4d5e;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -30px #000, 0 1px 0 rgba(255, 255, 255, .035) inset;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(63, 190, 144, .13), transparent 62%),
    radial-gradient(900px 520px at 92% -6%, rgba(255, 159, 10, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(63, 190, 144, .3) }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); background-clip: content-box; }

/* ── chrome (header) ─────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 18px; min-height: 54px;
  background: rgba(16, 19, 23, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(63, 190, 144, .45) 35%, rgba(255, 159, 10, .28) 70%, transparent);
  opacity: .6; pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  font: 700 15px/1 var(--mono); letter-spacing: -.07em; padding: 6px 8px 5px; border-radius: 8px;
  color: #04140f; background: linear-gradient(155deg, #5ce0ab, var(--accent) 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px -10px rgba(63, 190, 144, .9);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-sub {
  color: var(--muted); font-size: 13.5px; font-weight: 500; padding-left: 10px; margin-left: 1px;
  border-left: 1px solid var(--line-2); white-space: nowrap;
}
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  transition: color .2s, background .2s, border-color .2s;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; }
.live.on { color: var(--accent-ink); border-color: rgba(63, 190, 144, .35); background: rgba(15, 122, 87, .16); }
.live.on .dot { background: var(--done); animation: pulse 2.4s ease-out infinite; }
.live.off { color: #ff8a95; border-color: rgba(255, 77, 94, .35); background: rgba(255, 77, 94, .12); }
.live.off .dot { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.nav { display: flex; gap: 3px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none; padding: 7px 13px; border-radius: 999px; color: var(--muted);
  font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current] { background: var(--panel-3); color: var(--text); font-weight: 600; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.clock { font: 600 13px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ── 86 strip ────────────────────────────────────────────── */
.eighty-six {
  position: sticky; top: 54px; z-index: 25;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 8px 18px; min-height: 44px;
  background: linear-gradient(180deg, rgba(255, 77, 94, .11), rgba(255, 77, 94, .035));
  border-bottom: 1px solid var(--line);
}
.eighty-six .label {
  font: 700 12px/1 var(--mono); color: var(--danger); letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 6px; margin-right: 2px;
}
.eighty-six .count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px;
}
.chip {
  padding: 4px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
}
.chip.out {
  background: rgba(255, 77, 94, .14); border-color: rgba(255, 77, 94, .45); color: #ff98a2;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.chip.low { background: rgba(255, 159, 10, .1); border-color: rgba(255, 159, 10, .45); color: var(--fired); }

/* ── primitives ──────────────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 140px), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pad { padding: 16px 18px; }
.eyebrow, .panel h2, .feed h2 {
  margin: 0 0 12px; font: 700 11px/1 var(--mono); text-transform: uppercase;
  letter-spacing: .15em; color: var(--dim);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.btn {
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform .14s ease, border-color .14s, background .14s, box-shadow .14s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, .orb:focus-visible {
  outline: 2px solid var(--accent-ink); outline-offset: 2px;
}
.btn.primary {
  background: linear-gradient(180deg, #17a87f, var(--accent)); border-color: #17a87f; color: #fff;
  box-shadow: 0 10px 22px -14px rgba(23, 168, 127, .95);
}
.btn.primary:hover { border-color: #2ec49a; box-shadow: 0 14px 26px -14px rgba(23, 168, 127, .95); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .04); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { background: rgba(255, 77, 94, .12); border-color: rgba(255, 77, 94, .45); color: #ff98a2; }
.btn.danger:hover { background: rgba(255, 77, 94, .2); border-color: var(--danger); }
.btn.amber { background: rgba(255, 159, 10, .12); border-color: rgba(255, 159, 10, .45); color: var(--fired); }
.btn.amber:hover { background: rgba(255, 159, 10, .2); border-color: var(--fired); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

.toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
input[type='checkbox'], input[type='range'] { accent-color: var(--accent-ink); }
input[type='range'] { width: 110px; }

.field {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); transition: border-color .15s, background .15s;
}
.field:focus-within { border-color: var(--accent); background: var(--panel-3); }
.field input { background: none; border: none; outline: none; width: 100%; font-size: 14px; }
.field input::placeholder { color: var(--dim); }

.tabs { display: flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tabs button {
  border: none; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; transition: .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tabs button b { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 5px; }
.tabs button[aria-selected='true'] b { color: var(--accent-ink); }

.empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 54px 24px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015);
}
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

.flash { animation: flash .9s ease-out; }
@keyframes flash {
  0% { box-shadow: 0 0 0 3px var(--accent-ink), 0 0 34px -8px var(--accent-glow, rgba(63, 190, 144, .8)); transform: translateY(-3px); }
  100% { box-shadow: var(--shadow); transform: none; }
}

/* ── KDS ─────────────────────────────────────────────────── */
.kds { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; padding: 16px 18px 34px; align-items: start; }
.kds-main { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .hint { margin-left: auto; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }

.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(246px, 1fr)); gap: 14px; align-content: start; }

.ticket {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 120px), var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--new);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.ticket:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ticket.warn { border-top-color: var(--fired); }
.ticket.late { border-top-color: var(--danger); box-shadow: 0 0 0 1px rgba(255, 77, 94, .25), var(--shadow); }
.ticket.held { opacity: .72; }

.allergy {
  background: repeating-linear-gradient(-45deg, var(--danger), var(--danger) 8px, #e0344a 8px, #e0344a 16px);
  color: #fff; font-weight: 700; padding: 6px 14px; text-transform: uppercase;
  font-size: 12px; letter-spacing: .1em; text-align: center;
}
.ticket .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 4px; }
.ticket .table { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; display: flex; align-items: center; gap: 8px; }
.src { font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); background: rgba(15, 122, 87, .22); border: 1px solid rgba(63, 190, 144, .35); padding: 3px 6px; border-radius: 5px; }
.ticket .age { font: 700 16px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.ticket.warn .age { color: var(--fired); }
.ticket.late .age { color: var(--danger); }

.ticket .meta { display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px; }
.status {
  font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 8px; border-radius: 6px; background: rgba(77, 157, 255, .14); color: var(--new); border: 1px solid rgba(77, 157, 255, .3);
}
.status.fired { background: rgba(255, 159, 10, .14); color: var(--fired); border-color: rgba(255, 159, 10, .35); }
.status.held { background: rgba(167, 139, 250, .14); color: var(--held); border-color: rgba(167, 139, 250, .35); }
.ticket ul { list-style: none; margin: 0; padding: 0 14px 12px; flex: 1; }
.ticket li { padding: 6px 0; border-top: 1px dashed var(--line); display: flex; gap: 10px; font-size: 15px; }
.ticket li b { font-family: var(--mono); color: var(--accent-ink); min-width: 20px; font-weight: 700; }
.ticket li.gone { color: var(--danger); text-decoration: line-through; opacity: .75; }

.ticket .actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 10px 12px 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .22);
}
.ticket .actions .btn { padding: 8px 4px; font-size: 13px; border-radius: 9px; }
.ticket .agebar { height: 3px; background: var(--panel-3); }
.ticket .agebar i { display: block; height: 100%; background: var(--new); transition: width 1s linear; }
.ticket.warn .agebar i { background: var(--fired); }
.ticket.late .agebar i { background: var(--danger); }

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 112px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi b { display: block; font: 700 24px/1.1 var(--mono); letter-spacing: -.03em; }
.kpi span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi.hot b { color: var(--danger); }
.kpi.warm b { color: var(--fired); }

.allday { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.allday li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.allday li:last-child { border-bottom: none; }
.allday b { font-family: var(--mono); min-width: 26px; text-align: right; color: var(--fired); font-size: 15px; }
.allday li.gone b { color: var(--danger); }
.allday .name { flex: 1; }
.allday .name.gone { text-decoration: line-through; color: var(--muted); }

/* ── FOH ─────────────────────────────────────────────────── */
.foh { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; padding: 18px; align-items: start; }
.foh-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.foh-bar .field { min-width: 210px; flex: 1; max-width: 320px; }
.foh-bar .avail { margin-left: auto; font: 600 12.5px/1 var(--mono); color: var(--dim); letter-spacing: .06em; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chips button {
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: .15s;
}
.cat-chips button:hover { color: var(--text); border-color: var(--muted); }
.cat-chips button[aria-pressed='true'] { background: rgba(15, 122, 87, .2); border-color: rgba(63, 190, 144, .5); color: var(--accent-ink); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.item {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 15px 0; box-shadow: var(--shadow); transition: transform .18s, border-color .18s;
}
.item:hover { transform: translateY(-2px); border-color: var(--line-2); }
.item .name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.item .meta { color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.item .meta .count { font-family: var(--mono); }
.item .stock { margin: 12px -15px 0; height: 4px; background: var(--panel-3); }
.item .stock i { display: block; height: 100%; background: var(--accent-ink); transition: width .4s ease; }
.item.low .stock i { background: var(--fired); }
.item.low .meta .count { color: var(--fired); }
.item.out { border-color: rgba(255, 77, 94, .5); background: repeating-linear-gradient(-45deg, var(--panel), var(--panel) 10px, #1a1215 10px, #1a1215 20px); }
.item.out .name { text-decoration: line-through; color: var(--muted); }
.item .badge { display: none; color: var(--danger); font-weight: 700; font-size: 12.5px; font-family: var(--mono); }
.item.out .badge { display: block; }
.item.out .stock i { background: var(--danger); }

.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: sticky; top: 74px; }
.feed .feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.feed .feed-head span { font: 600 12px/1 var(--mono); color: var(--accent-ink); }
.feed ol { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.feed li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; font-size: 14px; }
.feed li time { font-family: var(--mono); color: var(--dim); font-size: 12.5px; flex-shrink: 0; padding-top: 1px; }
.feed li i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); margin-top: 7px; flex-shrink: 0; }
.feed li.k-86 i { background: var(--danger); box-shadow: 0 0 8px rgba(255, 77, 94, .8); }
.feed li.k-back i { background: var(--done); box-shadow: 0 0 8px rgba(34, 197, 94, .7); }
.feed li.k-ticket i { background: var(--new); }
.feed li.k-allergy i { background: var(--held); box-shadow: 0 0 8px rgba(167, 139, 250, .8); }

/* ── station ─────────────────────────────────────────────── */
.station { display: grid; grid-template-columns: minmax(330px, .92fr) minmax(360px, 1.08fr); gap: 16px; padding: 16px 18px 30px; align-items: start; }
.mic { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 20px 20px; }

.orb-wrap { position: relative; display: grid; place-items: center; padding: 6px; }
.orb-wrap::before, .orb-wrap::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(63, 190, 144, .2);
  inset: calc(6px - var(--lvl, 0) * 22px);
  transition: inset .1s ease, opacity .3s; pointer-events: none;
}
.orb-wrap::after { inset: calc(6px - var(--lvl, 0) * 38px); border-color: rgba(63, 190, 144, .1); }
.orb {
  width: 172px; height: 172px; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 34% 28%, var(--panel-3), var(--panel) 72%);
  display: grid; place-items: center; font-size: 17px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); position: relative; z-index: 1;
  box-shadow: 0 0 0 calc(var(--lvl, 0) * 46px) rgba(63, 190, 144, calc(.10 + var(--lvl, 0) * .22)),
              0 24px 60px -34px #000, 0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: box-shadow .08s linear, background .25s, color .25s, transform .2s;
}
.orb:hover { transform: scale(1.02); }
.orb.live { background: radial-gradient(circle at 34% 28%, #1cc493, var(--accent) 70%); color: #04140f; border-color: #2ec49a; }
.orb.speaking { background: radial-gradient(circle at 34% 28%, #fff, #d8d6cd 70%); color: var(--bg); border-color: #fff; }
.ptt-on .orb.live:not(.keyed) { background: radial-gradient(circle at 34% 28%, var(--panel-3), var(--panel)); color: var(--muted); border-color: var(--line-2); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -34px #000; }

.phase { font: 700 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .2em; }
.phase::before { content: '●'; color: var(--dim); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

.said { min-height: 96px; width: 100%; padding: 12px 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; }
.said .said-empty { margin: 4px 0; font-size: 14.5px; color: var(--dim); font-style: italic; line-height: 1.45; }
.said p { margin: 7px 0; font-size: 17px; line-height: 1.35; }
.said p::before { font: 700 10px/1 var(--mono); letter-spacing: .12em; display: block; margin-bottom: 3px; color: var(--dim); }
.said .user { color: var(--text); }
.said .user::before { content: 'COOK'; }
.said .agent { color: var(--accent-ink); font-weight: 600; }
.said .agent::before { content: '86 IT'; }
.said .partial { color: var(--muted); font-style: italic; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font: 700 22px/1.15 var(--mono); letter-spacing: -.03em; }
.stat span { font-size: 11px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; width: 100%; padding: 0 2px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--accent-ink), rgba(63, 190, 144, .3)); border-radius: 3px 3px 0 0; min-height: 2px; }
.spark i.hot { background: linear-gradient(180deg, var(--danger), rgba(255, 77, 94, .3)); }
.spark-legend { width: 100%; display: flex; justify-content: space-between; font: 600 10.5px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.ptt-hint { font-size: 13px; color: var(--dim); margin: 0; text-align: center; }
.ptt-hint a { color: var(--accent-ink); border-bottom: 1px solid rgba(63, 190, 144, .4); text-decoration: none; }
.ptt-hint a:hover { border-bottom-color: var(--accent-ink); }

.cmdline { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cmdline .row { display: flex; gap: 8px; }
.cmdline .field { flex: 1; font-family: var(--mono); }
.cmdline .field input { font-family: var(--mono); font-size: 13.5px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-row button {
  border: 1px dashed var(--line-2); background: transparent; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: .15s;
}
.chips-row button:hover { color: var(--accent-ink); border-color: var(--accent); border-style: solid; background: rgba(15, 122, 87, .12); }

.log-panel { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.log-empty { position: absolute; top: 76px; left: 18px; right: 18px; margin: 0; text-align: center; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.log-empty[hidden] { display: none; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.log-head h2 { margin: 0; }
.log {
  font-family: var(--mono); font-size: 12.5px; height: 66vh; overflow: auto; margin: 0;
  padding: 0 18px 18px; list-style: none;
}
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 66px 74px 1fr; gap: 10px; align-items: start; }
.log li:first-child { background: linear-gradient(90deg, rgba(63, 190, 144, .08), transparent); border-radius: 6px; }
.log time { color: var(--dim); }
.log .k { text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .06em; padding-top: 1px; }
.k-tool { color: var(--fired); }
.k-ack { color: var(--done); }
.k-user { color: var(--new); }
.k-agent { color: var(--accent-ink); }
.k-error, .k-warn { color: var(--danger); }
.k-info, .k-alert { color: var(--held); }
.mini { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ── online menu (light) ─────────────────────────────────── */
body.light { background: #f4f4f5; color: #17181c; color-scheme: light; }
body.light .top { background: rgba(255, 255, 255, .88); border-color: #e6e6e8; }
body.light .top::after { opacity: .35; }
body.light .brand-sub, body.light .clock { color: #6b7280; }
body.light .nav a { color: #6b7280; }
body.light .nav a:hover { color: #17181c; background: #f0f0f1; }
body.light .nav a[aria-current] { background: #17181c; color: #fff; box-shadow: none; }
body.light .live { background: #f4f4f5; border-color: #e6e6e8; color: #6b7280; }
body.light .live.on { background: #ecfdf5; border-color: #bbe9d4; color: #047857; }

.phone { max-width: 460px; margin: 0 auto; min-height: calc(100vh - 54px); background: #fff; color: #17181c; box-shadow: 0 0 60px -30px rgba(0, 0, 0, .4); }
.phone header { padding: 22px 18px 14px; border-bottom: 1px solid #eee; }
.phone header h1 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.phone header .sub { color: #6b7280; font-size: 14px; margin-top: 4px; display: flex; align-items: center; gap: 7px; }
.sold-banner {
  margin: 12px 18px 0; padding: 10px 14px; border-radius: 12px; background: #fef2f3; border: 1px solid #fecdd3;
  color: #b91c1c; font-size: 13.5px; font-weight: 600;
}
.sold-banner b { font-family: var(--mono); }
.phone .cat {
  padding: 18px 18px 6px; font-weight: 700; color: #6b7280; text-transform: uppercase;
  font-size: 11px; letter-spacing: .14em; font-family: var(--mono);
}
.dish {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid #f1f1f2; transition: background .2s;
}
.dish:hover { background: #fafafa; }
.dish .n { font-weight: 600; font-size: 16px; }
.dish .p { color: #6b7280; font-size: 13.5px; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.dish .left { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: #f3f4f6; color: #6b7280; }
.dish .left.low { background: #fff7ed; color: #c2410c; }
.qty { display: flex; align-items: center; gap: 2px; background: #17181c; color: #fff; border-radius: 999px; padding: 3px; }
.qty button { border: none; background: transparent; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.qty button:hover { background: rgba(255, 255, 255, .16); }
.qty b { min-width: 20px; text-align: center; font-family: var(--mono); font-size: 14px; }
.dish .add {
  border: none; background: #17181c; color: #fff; border-radius: 999px; padding: 9px 18px;
  font-weight: 700; font-size: 14px; min-width: 88px; transition: .15s;
}
.dish .add:hover { background: #0f7a57; }
.dish.out { opacity: .55; background: #fafafa; }
.dish.out .n { text-decoration: line-through; }
.dish .soldout { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #b91c1c; background: #fef2f3; border: 1px solid #fecdd3; padding: 7px 11px; border-radius: 999px; }

.cart {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-top: 1px solid #e6e6e8; padding: 12px 16px; z-index: 20;
}
.cart .lines { list-style: none; margin: 0 0 10px; padding: 0; max-height: 34vh; overflow: auto; }
.cart .lines li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14.5px; border-bottom: 1px solid #f1f1f2; }
.cart .lines .n { flex: 1; }
.cart .lines .c { font-family: var(--mono); color: #6b7280; }
.cart .lines .rm { border: none; background: none; color: #b91c1c; font-size: 16px; padding: 0 4px; }
.cart .totals { display: flex; justify-content: space-between; font-size: 14px; color: #6b7280; margin-bottom: 10px; }
.cart .totals b { color: #17181c; font-family: var(--mono); }
.cart button.place {
  width: 100%; border: none; background: #0f7a57; color: #fff; border-radius: 13px;
  padding: 15px; font-weight: 700; font-size: 16px; transition: .15s;
}
.cart button.place:hover { background: #0c6a4b; }
.cart button.place:disabled { background: #d4d4d8; color: #71717a; cursor: not-allowed; }
.cart .clear { display: block; margin: 8px auto 0; border: none; background: none; color: #6b7280; font-size: 12.5px; text-decoration: underline; }
.cart .clear[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 8px);
  background: #17181c; color: #fff; padding: 11px 17px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--line-2); box-shadow: 0 24px 48px -24px #000;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button {
  border: none; background: none; color: var(--accent-ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; padding: 0; cursor: pointer;
}

/* ── landing ─────────────────────────────────────────────── */
.landing { max-width: 1220px; margin: 0 auto; padding: 40px 24px 60px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: .18em; color: var(--accent-ink);
  background: rgba(15, 122, 87, .16); border: 1px solid rgba(63, 190, 144, .32);
  padding: 7px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34ch; margin: 18px 0 0; line-height: 1.5; }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .cta .btn { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; text-decoration: none; }
.hero .facts { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero .facts div b { display: block; font: 700 26px/1.1 var(--mono); letter-spacing: -.03em; color: var(--text); }
.hero .facts div span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.preview { padding: 18px; }
.preview .preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.preview .preview-head h2 { margin: 0; }
.preview .preview-head .live { font-size: 10px; }
.preview .rows { display: flex; flex-direction: column; gap: 10px; }
.preview .row { display: flex; align-items: flex-start; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.preview .row .lbl { font: 700 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--dim); width: 78px; flex-shrink: 0; padding-top: 3px; }
.preview .row .val { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 14.5px; padding-top: 1px; }
.preview .row .val .mono { font-weight: 700; }
.preview .feed-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.preview .feed-mini li { display: flex; gap: 9px; font-size: 13.5px; color: var(--muted); }
.preview .feed-mini time { font-family: var(--mono); font-size: 12px; color: var(--dim); }

.screens { margin-top: 56px; }
.screens h2 { font-size: 13px; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.screen-card {
  position: relative; display: block; text-decoration: none; padding: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 160px), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.screen-card:hover { transform: translateY(-4px); border-color: rgba(63, 190, 144, .5); }
.screen-card .ico { font-size: 26px; }
.screen-card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.screen-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.screen-card .go {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-3); color: var(--muted);
  transition: .2s; font-size: 15px;
}
.screen-card:hover .go { background: var(--accent); color: #fff; transform: translateX(3px); }
.screen-card .kbd { margin-top: 14px; font: 600 11px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.landing-foot {
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--dim);
}
.landing-foot a { color: var(--muted); text-decoration: none; }
.landing-foot a:hover { color: var(--accent-ink); }
.landing-foot .sep { flex: 1; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .kds { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side > * { flex: 1 1 260px; }
  .foh { grid-template-columns: 1fr; }
  .feed { position: static; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .station { grid-template-columns: 1fr; padding: 14px; }
  .kds, .foh { padding: 14px; }
  .log { height: 44vh; }
  .top { flex-wrap: wrap; padding: 9px 14px; gap: 10px; }
  .clock { display: none; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav a { padding: 6px 11px; font-size: 13.5px; }
  .eighty-six { top: auto; position: static; padding: 8px 14px; }
  .side { flex-direction: column; }
  .landing { padding: 26px 16px 44px; }
  .ticket .actions { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 480px) {
  .tickets { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item { padding: 12px 13px 0; }
  .item .stock { margin: 10px -13px 0; }
  .hero .facts { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
