:root { --bg:#111; --panel:#1c1c1e; --ink:#f5f5f5; --muted:#b0b0b0; --accent:#ffb000; --ok:#2ecc71; --warn:#ff6b6b; --chip:#2c2c2e; --r:16px; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font: 17px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust:100%; }
button, select, input { font: inherit; }
button { min-height:48px; min-width:48px; border-radius:12px; border:0; padding:0 16px; background:var(--accent); color:#111; font-weight:700; cursor:pointer; touch-action:manipulation; }
button.ghost { background:var(--chip); color:var(--ink); font-weight:600; }
button.secondary { background:#3a3a3c; color:var(--ink); }
button.okb { background:var(--ok); color:#06210f; }
button.nob { background:#4a2a2a; color:#ffd6d6; }
button:disabled { opacity:.35; cursor:not-allowed; }
button:focus-visible, select:focus-visible, input:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:16px; padding:calc(env(safe-area-inset-top) + 10px) 16px 10px; background:#000; border-bottom:1px solid #2a2a2a; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:10px; } .logo { background:var(--accent); color:#111; font-weight:900; padding:4px 8px; border-radius:8px; } .title { font-weight:700; }
.loc { color:var(--muted); font-weight:600; }
.right { margin-left:auto; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.staff select { min-height:44px; border-radius:10px; background:var(--chip); color:var(--ink); border:1px solid #3a3a3c; padding:0 10px; }
.conn { padding:6px 12px; border-radius:999px; background:var(--chip); font-weight:700; font-size:15px; }
.conn.live { background:#0f3d22; color:#8ff0b5; } .conn.down { background:#4a1d1d; color:#ffb3b3; }
.stale { background:#5a1e1e; color:#fff; padding:10px 16px; font-weight:600; }
.hidden { display:none !important; }
main { padding:16px; padding-bottom:calc(env(safe-area-inset-bottom) + 24px); }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; }
.card { background:var(--panel); border-radius:var(--r); padding:16px; display:flex; flex-direction:column; gap:10px; border:2px solid transparent; }
.card.claimed { border-color:#3a6df0; }
.card .head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.card .num { font-size:34px; font-weight:900; letter-spacing:.5px; }
.card .table { font-size:18px; color:var(--accent); font-weight:800; }
.card .chan { color:var(--muted); font-size:15px; }
.card .name { font-size:22px; font-weight:800; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { background:var(--chip); border-radius:999px; padding:4px 10px; font-size:14px; font-weight:700; }
.chip.loyal { background:#4a3a00; color:#ffd56b; } .chip.regular { background:#16324f; color:#9fd0ff; } .chip.new { background:#203a2a; color:#a6f0c0; }
.lastvisit { font-size:16px; color:#e6e6e6; }
.lastvisit b { color:#fff; }
.engage { margin:6px 0 4px; padding-left:18px; font-size:17px; color:#fff; line-height:1.35; }
.engage li::marker { color:#f5b800; }
.say { font-size:21px; font-weight:700; line-height:1.3; background:#26262a; border-left:6px solid var(--accent); padding:10px 12px; border-radius:10px; }
.ctx { color:var(--muted); font-size:15px; margin:0; padding-left:18px; }
.gift { background:#1f2a1f; border:1px solid #2f4a2f; border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:8px; }
.gift .what { font-weight:800; font-size:18px; } .gift .why { color:#b8d8b8; font-size:14px; } .gift .allergen { color:#ffd27a; font-size:14px; }
.row { display:flex; gap:8px; flex-wrap:wrap; }
.status { font-size:14px; color:var(--muted); }
.empty { color:var(--muted); text-align:center; margin-top:15vh; font-size:20px; }
.enroll { max-width:420px; margin:12vh auto; text-align:center; } .enroll input { min-height:56px; font-size:28px; text-align:center; letter-spacing:4px; width:100%; margin:12px 0; border-radius:12px; border:1px solid #444; background:#000; color:#fff; } .msg { color:var(--warn); }
.drawer { position:fixed; right:0; top:0; bottom:0; width:min(420px, 100%); background:#0b0b0b; border-left:1px solid #333; padding:calc(env(safe-area-inset-top) + 16px) 16px 16px; overflow:auto; z-index:10; }
.drawer-head { display:flex; justify-content:space-between; align-items:center; } .hint { color:var(--muted); font-size:14px; }
.drawer ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:10px; } .drawer li { display:flex; justify-content:space-between; align-items:center; background:var(--panel); padding:10px 12px; border-radius:12px; font-size:20px; font-weight:800; }
dialog { background:#1c1c1e; color:var(--ink); border:1px solid #333; border-radius:16px; max-width:520px; width:92vw; }
dialog::backdrop { background:rgba(0,0,0,.6); }
fieldset { border:1px solid #333; border-radius:12px; margin:8px 0; display:flex; flex-wrap:wrap; gap:10px; } fieldset label { min-height:44px; display:flex; align-items:center; gap:6px; }
dialog input[name=note], dialog select, dialog input[type=number] { width:100%; min-height:48px; border-radius:10px; border:1px solid #444; background:#000; color:#fff; padding:0 10px; margin:6px 0; }
menu { display:flex; justify-content:flex-end; gap:8px; padding:0; }
body.embed .top { position:static; padding-top:8px; } body.embed .title { display:none; }
@media (orientation: portrait) and (max-width: 900px) { .cards { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: no-preference) { .card { transition:border-color .2s; } }
