:root { color-scheme: dark; --bg:#171511; --card:#24211c; --line:#454036; --ink:#fff8e8; --muted:#b9b09f; --butter:#f4cf62; --green:#66d28a; --orange:#f29b52; --red:#ef6a61; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; background:var(--bg); color:var(--ink); font-family:Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; touch-action:pan-x pan-y; }
button, input { font:inherit; }
button { border:0; cursor:pointer; }
.topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 24px; border-bottom:1px solid var(--line); background:rgba(23,21,17,.96); }
.eyebrow { margin:0 0 3px; color:var(--butter); font-size:11px; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
h1 { margin:0; font-size:34px; line-height:1; }
.header-metrics { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; font-weight:800; }
.mode-button, .switch-link { display:inline-flex; align-items:center; gap:8px; padding:10px 13px; border-radius:999px; background:#2c2822; color:var(--ink); text-decoration:none; font-weight:850; }
.mode-button span { width:9px; height:9px; border-radius:50%; background:var(--red); }
.mode-button.on span { background:var(--green); box-shadow:0 0 0 4px rgba(102,210,138,.14); }
main { width:min(1500px, 100%); margin:auto; padding:18px; }
.advance-strip { display:flex; align-items:center; gap:10px; margin-bottom:14px; padding:12px 16px; border:1px solid #765124; border-radius:12px; background:#332415; color:#ffe0aa; }
.advance-strip strong { display:grid; place-items:center; min-width:30px; height:30px; border-radius:50%; background:var(--orange); color:#1e160e; }
.orders { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:14px; }
.order-card { position:relative; display:grid; gap:13px; padding:17px; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:0 10px 30px rgba(0,0,0,.16); overflow:hidden; }
.order-card.driver-here { border-color:var(--orange); box-shadow:0 0 0 2px rgba(242,155,82,.16); }
.order-card.order-ready { border-color:var(--green); }
.order-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.provider { margin:0; color:var(--butter); font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.order-name { margin:3px 0 0; font-size:27px; line-height:1.05; }
.order-number { color:var(--muted); font-size:12px; font-weight:800; }
.front-only { padding:7px 10px; border-radius:8px; background:var(--butter); color:#211b0d; font-size:13px; font-weight:950; letter-spacing:.05em; }
.timing { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:10px 12px; border-radius:10px; background:#191713; }
.timing strong { font-size:18px; }
.timing span { color:var(--muted); font-size:12px; text-align:right; }
.wait { color:#1e160e; background:var(--orange); }
.wait span { color:#4a2c10; }
.departments { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.department { padding:11px; border:1px solid var(--line); border-radius:11px; background:#1d1a16; }
.department.ready { border-color:#356b46; background:#193021; }
.department h3 { display:flex; justify-content:space-between; margin:0 0 8px; font-size:14px; }
.department h3 span { color:var(--muted); font-size:10px; text-transform:uppercase; }
.department.ready h3 span { color:var(--green); }
.item-list { margin:0; padding:0; list-style:none; color:#e9dfcc; font-size:13px; line-height:1.45; }
.item-list .unknown { color:#ffd38d; }
.actions { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; }
.actions button, .empty-state button, dialog button { min-height:45px; padding:10px 12px; border-radius:10px; background:var(--butter); color:#211b0d; font-weight:900; }
.actions .secondary, dialog .secondary { border:1px solid var(--line); background:transparent; color:var(--ink); }
.actions .pickup { grid-column:1 / -1; background:#365e43; color:white; }
.actions button:disabled { opacity:.42; cursor:default; }
.toast-state { color:var(--muted); font-size:11px; }
.empty-state { max-width:640px; margin:14vh auto; padding:30px; text-align:center; border:1px dashed var(--line); border-radius:18px; }
.empty-state h2 { margin:5px 0; font-size:30px; }
.empty-state p:not(.eyebrow) { color:var(--muted); line-height:1.5; }
.pickup-test { margin-top:22px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; color:var(--muted); font-size:12px; }
.pickup-test summary { color:var(--ink); font-weight:850; cursor:pointer; }
.recent-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); }
dialog { width:min(430px, calc(100% - 28px)); padding:0; border:1px solid var(--line); border-radius:16px; background:#24211c; color:var(--ink); }
dialog::backdrop { background:rgba(0,0,0,.72); }
dialog form { display:grid; gap:14px; padding:22px; }
dialog h2, dialog p { margin:0; }
dialog label { display:grid; gap:7px; color:var(--muted); font-size:12px; font-weight:800; }
dialog input { min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#171511; color:white; font-size:22px; letter-spacing:.12em; }
.dialog-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.error { min-height:18px; color:#ff9d96; font-size:12px; }
.toast { position:fixed; left:50%; bottom:22px; z-index:10; transform:translate(-50%, 20px); padding:11px 16px; border-radius:999px; background:var(--ink); color:#171511; font-weight:850; opacity:0; transition:.2s; pointer-events:none; }
.toast.show { transform:translate(-50%, 0); opacity:1; }
@media (max-width:720px) { .topbar { padding:12px; } .header-metrics > span, .switch-link { display:none; } main { padding:10px; } .orders { grid-template-columns:1fr; } .departments { grid-template-columns:1fr; } }
