@font-face { font-family: 'Bebas Neue'; src: url(fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); font-weight: 400; }
@font-face { font-family: 'DM Sans'; src: url(fonts/dm-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; }
@font-face { font-family: 'DM Sans'; src: url(fonts/dm-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; }
:root {
  --ink: #0f1115; --ink2: #171a21; --ink3: #222632; --line: #2d3240;
  --text: #ece8de; --muted: #9a9789; --gold: #c9a24a; --gold2: #e3c47a;
  --green: #4fb47a; --amber: #d9a03c; --red: #d65a4f;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-size: 14px; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.brand { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 24px; letter-spacing: 1.5px; color: var(--gold); white-space: nowrap; }
.brand span { color: var(--text); }
.brand.big { font-size: 40px; margin-bottom: 6px; }
h1 { font-size: 26px; margin: 12px 0 4px; }
.screen { height: 100vh; }
.center { display: grid; place-items: center; padding: 16px; overflow: auto; }
.card { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.narrow { width: 100%; max-width: 380px; text-align: center; }
.mid { width: 100%; max-width: 520px; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; }
input, select { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; margin-bottom: 10px; }
input:focus, select:focus { outline: none; border-color: var(--gold); }
label { display: block; color: var(--muted); font-size: 13px; margin-top: 14px; }
label select { margin-top: 6px; }
.btn { background: var(--ink3); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.gold { background: var(--gold); color: #1a1406; border-color: var(--gold); font-weight: 700; }
.btn.gold:hover { background: var(--gold2); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.big { padding: 14px 22px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn.danger { border-color: var(--red); color: #f3b7b1; }
.btn.danger:hover { background: var(--red); color: #fff; }
.link { background: none; border: none; color: var(--muted); cursor: pointer; margin-top: 14px; text-decoration: underline; }
.ok { color: var(--green); } .wait { color: var(--amber); }
.err { color: var(--red); min-height: 20px; margin-top: 8px; font-size: 13px; }
.cam { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; max-height: 240px; margin: 14px auto 12px; border: 1px solid var(--line); }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camMsg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.topbar { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--ink2); border-bottom: 1px solid var(--line); }
.topbar select { width: auto; margin: 0; padding: 8px; }
.topbar .who { display: flex; flex-direction: column; line-height: 1.2; }
.topbar .who span { font-size: 12px; }
.status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--green); color: #082012; letter-spacing: .4px; }
.status.brk { background: var(--amber); color: #2a1a00; }
.timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; }
.timer.big { font-size: 56px; margin: 8px 0; }
.spacer { flex: 1; }
.banner { padding: 10px 16px; background: #2a2010; border-bottom: 1px solid var(--amber); color: #f3d79b; }
.banner.bad { background: #2a1513; border-color: var(--red); color: #f3b7b1; }
.dialpadWrap { position: relative; height: calc(100vh - 56px); }
.banner:not(.hidden) + .dialpadWrap { height: calc(100vh - 56px - 41px); }
webview { position: absolute; inset: 0; width: 100%; height: 100%; }
.breakCover { position: absolute; inset: 0; z-index: 5; background: rgba(15,17,21,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.summary { text-align: left; margin: 16px 0 20px; }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary b { color: var(--gold2); }

.webPanel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.webPanel .seatName { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 72px; letter-spacing: 2px; color: var(--text); line-height: 1; margin: 8px 0; }
.webPanel p { max-width: 460px; }
@media (max-width: 760px) {
  html, body { overflow: auto; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .topbar .spacer { display: none; }
  .dialpadWrap { height: calc(100vh - 150px); }
  .card { padding: 20px; }
}

.statusBox, .timeBox { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; gap: 2px; }
.status.off { background: var(--amber); color: #2a1a00; }
.status.offduty { background: #4a4f5c; color: #e8e8e8; }
.status.training { background: #3b6fd8; color: #fff; }
.statusBtns { display: flex; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.statusBtns button { background: none; border: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; font: inherit; cursor: pointer; }
.statusBtns button.active { background: var(--gold); color: #1a1406; font-weight: 700; }

.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.seat-btn { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.seat-btn b { display: block; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; letter-spacing: 1px; font-weight: 400; }
.seat-btn span { font-size: 11px; color: var(--green); }
.seat-btn:hover:not(:disabled) { border-color: var(--gold); }
.seat-btn.picked { border-color: var(--gold); background: #2a2310; box-shadow: 0 0 0 1px var(--gold) inset; }
.seat-btn:disabled { opacity: .45; cursor: not-allowed; }
.seat-btn:disabled span { color: var(--muted); }

.hoursOverlay { position: fixed; inset: 0; z-index: 50; background: rgba(10,11,14,.85); display: grid; place-items: center; padding: 16px; overflow: auto; }
.hoursCard { width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; }
.hoursTop { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.hoursTop > div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.hoursTop b { font-size: 30px; font-variant-numeric: tabular-nums; color: var(--gold2); }
.wk { border-top: 1px solid var(--line); padding: 12px 0; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wk-head b { font-variant-numeric: tabular-nums; font-size: 18px; }
.wk-head b.zero { color: var(--muted); font-weight: 400; }
.wk-bar { height: 6px; background: var(--ink3); border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.wk-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.wk-detail { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.shifts { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.shifts th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 4px 6px; }
.shifts td { padding: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.shifts td.num, .shifts th.num { text-align: right; }

.seatCreds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #1d1a10; border: 1px solid var(--gold); border-radius: 8px; padding: 9px 12px; margin: 8px 0 2px; font-size: 13px; }
.seatCreds .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.seatCreds code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; user-select: all; }
.seatCreds button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; padding: 2px 7px; font: inherit; font-size: 11px; cursor: pointer; }
.seatCreds button:hover { border-color: var(--gold); color: var(--text); }
.seatCreds .seatTitle { font-weight: 700; color: var(--gold2); }
.webPanel .seatCreds { max-width: 520px; justify-content: center; margin: 6px 0 16px; }

.getApp { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.getApp a.btn { text-decoration: none; }
