:root{--bg: #0b0f14;--surface: #161d26;--surface-2: #212b37;--text: #f5f7fa;--muted: #b8c2cf;--border: #3a4756;--amber: #f5b041;--red: #ff6b6b;--green: #4ade80;--focus: #7cc4ff;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:20px;line-height:1.35;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}button{min-width:48px;min-height:48px;touch-action:manipulation}.button{min-width:48px;min-height:48px;padding:0 20px;border:2px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit;font-weight:600;cursor:pointer;touch-action:manipulation}.button:disabled{opacity:.7;cursor:progress}.button.primary{background:var(--amber);border-color:var(--amber);color:#111}.button.danger{background:#3b1414;border-color:var(--red);color:#ffd6d6}.setup{min-height:100vh;display:grid;place-items:center;padding:24px}.setup-card{width:min(560px,100%);display:grid;gap:18px;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.setup-card h1{margin:0;font-size:32px}.setup-intro{margin:0;color:var(--muted)}.field{display:grid;gap:6px;font-weight:600}.field input{min-height:52px;padding:0 14px;border:2px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}.field input::placeholder{color:var(--muted)}.notice{margin:0;padding:12px 14px;border-left:4px solid var(--amber);background:var(--surface-2)}.error{margin:0;padding:12px 14px;border-left:4px solid var(--red);background:#2a1212;color:#ffd6d6}.board{height:100vh;display:flex;flex-direction:column}.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar h1{margin:0;font-size:26px}.clock{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums}.station-picker{display:flex;flex-wrap:wrap;gap:8px;margin-right:auto}.button.station[aria-pressed=true]{background:var(--amber);border-color:var(--amber);color:#111}.topbar-status{display:flex;gap:8px}.pill{display:inline-flex;align-items:center;min-height:48px;padding:0 14px;border-radius:999px;font-weight:800;border:2px solid currentColor}.connection-connected,.printer-ok{color:var(--green)}.connection-reconnecting{color:var(--amber)}.connection-offline{color:var(--red)}.printer-problem{background:var(--amber);border-color:var(--amber);color:#111}.banners:empty{display:none}.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 20px;width:100%;margin:0;padding:14px 20px;border:0;font:inherit;font-size:22px;font-weight:800;text-align:left}.banner-detail{display:block;font-size:20px;font-weight:600}.banner-offline{background:#b3261e;color:#fff}.banner-printer{background:var(--amber);color:#111}.banner-info{background:#1e3a5f;color:#fff}.banner-button{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.banner-button:focus-visible{outline:4px solid #111;outline-offset:-8px}.orders{flex:1;min-height:0;overflow-y:auto;padding:14px}.empty{color:var(--muted);font-size:28px;text-align:center;margin-top:20vh}.cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:14px;align-items:start}.card{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--surface);border:4px solid var(--border);border-radius:12px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-number{margin:0;font-size:40px;line-height:1.1;font-weight:900}.elapsed{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:8px;background:var(--surface-2);font-size:26px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.card.aging-warning{border-color:var(--amber)}.card.aging-warning .elapsed{background:var(--amber);color:#111}.card.aging-late{border-color:var(--red)}.card.aging-late .elapsed{background:var(--red);color:#111}.aging-word{font-size:20px;letter-spacing:.04em}.card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:20px;font-weight:700}.badge{padding:2px 10px;border-radius:6px;background:var(--text);color:var(--bg);font-weight:900}.badge-outline{background:transparent;color:var(--text);border:2px solid var(--text)}.promised{margin-left:auto}.tag-scheduled{margin:0;padding:4px 10px;border:2px solid var(--focus);border-radius:6px;color:var(--focus);font-size:20px;font-weight:900}.card-ticket-error{border-color:var(--red);border-style:dashed}.ticket-error{margin:0;padding:10px 12px;border-radius:6px;background:#b3261e;color:#fff;font-size:24px;font-weight:900;text-align:center}.ticket-lines{list-style:none;margin:0;padding:0;font-size:24px}.ticket-line{display:block;width:100%;padding:8px 6px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}.line-title{display:block;font-weight:900}.detail{display:flex;padding-left:1.2em;font-weight:700}.detail-label{flex:none;width:11ch;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800}.detail-options{flex:1;min-width:0}.emph{display:inline-block;padding:0 .25em;border-radius:4px;background:var(--text);color:var(--bg);font-weight:900}.note{display:block;margin:4px 0 0 1.2em;padding:4px 8px;border-radius:6px;background:#ffe066;color:#111;font-weight:800}.note-label{font-weight:900}.ticket-line.bumped{color:var(--muted);text-decoration:line-through;text-decoration-thickness:3px}.ticket-line.bumped .line-title:before{content:"✓ ";font-weight:900}.ticket-line.bumped .emph,.ticket-line.bumped .note{background:var(--surface-2);color:var(--muted)}.card-actions{display:flex;gap:10px}.button.done{flex:1;min-height:72px;background:var(--green);border-color:var(--green);color:#052e16;font-size:28px;font-weight:900}.button.more{min-width:72px;min-height:72px;font-size:24px}.card-menu{display:flex}.card-menu[hidden]{display:none}.card-menu .button{flex:1;min-height:56px}.ready-strip{display:flex;align-items:center;gap:14px;padding:10px 14px;background:#10151c;border-top:2px solid var(--border)}.ready-strip h2{margin:0;font-size:22px;color:var(--muted)}.ready-strip ul{list-style:none;display:flex;gap:10px;margin:0;padding:0;overflow-x:auto}.ready-card{display:flex;align-items:center;gap:12px;padding:8px 10px;border:2px dashed var(--border);border-radius:10px;background:var(--bg);color:var(--muted);white-space:nowrap}.ready-number{font-size:28px;font-weight:900}.ready-actions{display:flex;gap:8px}.done-tile{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:120px;padding:12px 16px;border:4px dashed var(--green);border-radius:12px;background:#0f2418;color:var(--text);font-size:28px;font-weight:900}.done-tile .button{min-height:72px;min-width:120px;font-size:24px}.reprint-list{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px;max-height:50vh;overflow-y:auto}.reprint-list li{display:flex;align-items:center;justify-content:space-between}.reprint-number{font-size:28px;font-weight:900}.toggle{display:flex;align-items:center;gap:14px;min-height:48px;margin-bottom:16px;font-weight:700;cursor:pointer}.toggle input{width:32px;height:32px;accent-color:var(--amber)}.toast-anchor{position:relative;height:0}.toasts{position:absolute;z-index:5;top:8px;right:16px;bottom:auto;display:grid;gap:10px;max-width:min(560px,calc(100vw - 40px))}.toast{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:10px;background:var(--surface-2);border:2px solid var(--border)}.toast-error{border-color:var(--red)}.toast span{flex:1}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:end center}.sheet{width:min(640px,100%);padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:16px 16px 0 0}.sheet h2{margin-top:0}.sheet-actions{display:flex;gap:12px;justify-content:space-between}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
