/* JusQup — staff queue screen. Same palette and type as the sign-in gate. */
:root{
  --bg:#f4f2ee; --card:#fbfaf7; --ink:#1f1e1b; --muted:#6e6a62;
  --line:#dedad2; --line-strong:#cfcac0;
  --brand:#5fae86; --brand-ink:#0e2419;
  --ok-bg:#e6f2ea; --ok-ink:#2f6f4f; --bad-bg:#fbe9e7; --bad-ink:#a3302c;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#1a1917; --card:#22211f; --ink:#ece9e3; --muted:#a8a399;
    --line:#3a3834; --line-strong:#45423d;
    --brand:#7fc4a0; --brand-ink:#0e2419;
    --ok-bg:#1f2d26; --ok-ink:#9fd6b8; --bad-bg:#2e1b1a; --bad-ink:#f0a8a4;
  }
}
*{box-sizing:border-box}
html,body{margin:0; background:var(--bg); color:var(--ink);
  font:16px "IBM Plex Sans",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased}
body{max-width:560px; margin:0 auto; min-height:100dvh; padding-bottom:96px}

.bar{position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px;
  padding:14px 16px; background:var(--bg); border-bottom:1px solid var(--line)}
.logo{width:36px; height:36px; flex:none; border-radius:9px; display:grid; place-items:center;
  background:var(--brand); color:var(--brand-ink); font:500 22px Newsreader,Georgia,serif}
.bar-text{flex:1; min-width:0}
h1{margin:0; font:500 20px/1.2 Newsreader,Georgia,serif; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis}
.bar-text p{margin:0; font-size:13px; color:var(--muted)}
.icon-btn{width:40px; height:40px; flex:none; border-radius:8px; border:1px solid var(--line-strong);
  background:var(--card); color:var(--ink); font-size:20px; cursor:pointer}
.menu{position:absolute; right:16px; top:60px; display:flex; flex-direction:column; min-width:200px;
  background:var(--card); border:1px solid var(--line-strong); border-radius:10px; overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12)}
.menu button,.menu a{padding:13px 16px; border:0; background:none; color:var(--ink);
  font:500 15px "IBM Plex Sans",sans-serif; text-align:left; text-decoration:none; cursor:pointer}
.menu button:hover,.menu a:hover{background:color-mix(in srgb, var(--ink) 5%, var(--card))}
.menu[hidden]{display:none}

main{padding:16px}
h2{margin:18px 0 8px; font:600 12px/1 "IBM Plex Sans",sans-serif; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted)}

.card{display:flex; align-items:center; gap:12px; background:var(--card);
  border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:8px}
.card.serving{border-color:var(--brand)}
.num{flex:none; min-width:52px; text-align:center; font:600 26px Newsreader,Georgia,serif}
.card .who{flex:1; min-width:0}
.card .who .svc{font-weight:500}
.card .who .sub{font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.card .btns{display:flex; gap:8px}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 16px; border-radius:8px; border:1px solid var(--line-strong);
  background:var(--card); color:var(--ink); font:500 15px "IBM Plex Sans",sans-serif;
  text-decoration:none; cursor:pointer}
.btn:hover{border-color:var(--muted)}
.btn:focus-visible{outline:2px solid var(--brand); outline-offset:2px}
.btn.primary{background:var(--brand); border-color:var(--brand); color:var(--brand-ink); font-weight:600}
.btn.small{height:38px; padding:0 12px; font-size:14px}
.btn.danger{color:var(--bad-ink)}
.btn:disabled{opacity:.5; cursor:default}

.waiting{list-style:none; margin:0; padding:0}
.waiting li{display:flex; align-items:center; gap:12px; padding:11px 4px;
  border-bottom:1px solid var(--line)}
.waiting .num{font-size:20px; min-width:44px}
.waiting .eta{margin-left:auto; font-size:13px; color:var(--muted); flex:none}
.empty{color:var(--muted); padding:8px 4px}

.actions{position:fixed; bottom:0; left:0; right:0; display:flex; gap:10px;
  max-width:560px; margin:0 auto; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:var(--bg); border-top:1px solid var(--line)}
.actions .primary{flex:2; height:52px; font-size:16px}
.actions .secondary{flex:1; height:52px}

dialog{border:1px solid var(--line-strong); border-radius:14px; background:var(--card);
  color:var(--ink); width:min(420px, calc(100vw - 32px)); padding:22px}
dialog::backdrop{background:rgba(0,0,0,.35)}
dialog h2{margin:0 0 14px; font:500 22px Newsreader,Georgia,serif; text-transform:none;
  letter-spacing:0; color:var(--ink)}
dialog label{display:block; margin:12px 0 6px; font-size:14px; font-weight:500}
dialog .opt{color:var(--muted); font-weight:400}
dialog select,dialog input{width:100%; height:44px; padding:0 10px; border-radius:8px;
  border:1px solid var(--line-strong); background:var(--bg); color:var(--ink); font:inherit}
.sheet-btns{display:flex; gap:10px; margin-top:18px}
.sheet-btns .btn{flex:1}

.toast{position:fixed; left:50%; bottom:88px; transform:translateX(-50%); z-index:10;
  display:flex; align-items:center; gap:14px; max-width:calc(100vw - 32px);
  background:var(--ink); color:var(--bg); border-radius:10px; padding:12px 16px; font-size:14px}
.toast button{border:0; background:none; color:var(--brand); font:600 14px "IBM Plex Sans",sans-serif;
  cursor:pointer; padding:0}
.toast[hidden]{display:none}

.gate-msg{display:flex; flex-direction:column; align-items:center; gap:16px;
  padding:80px 24px; text-align:center; color:var(--muted)}
.gate-msg[hidden]{display:none}
[hidden]{display:none}

/* Multi: station picker, per-ticket station tag, wrapped row buttons */
.station-bar{display:flex; align-items:center; gap:10px; padding:10px 16px;
  border-bottom:1px solid var(--line); background:var(--bg)}
.station-bar label{font-size:13px; color:var(--muted); font-weight:500}
.station-bar select{flex:1; height:40px; padding:0 10px; border-radius:8px;
  border:1px solid var(--line-strong); background:var(--card); color:var(--ink); font:inherit}
.tag{display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; font-size:12px;
  background:var(--ok-bg); color:var(--ok-ink); font-weight:500; vertical-align:middle}
.tag.other{background:color-mix(in srgb, var(--ink) 8%, var(--card)); color:var(--muted)}
.waiting li{flex-wrap:wrap}
.waiting .row-btns{display:flex; gap:6px; width:100%; padding-left:56px; padding-bottom:4px}
.card .btns{flex-wrap:wrap; justify-content:flex-end}
