@charset "UTF-8";

@font-face {
  font-family: "Queue Roboto";
  src: url("fonts/Roboto-Regular.f36638c2135b.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Queue Roboto";
  src: url("fonts/Roboto-Medium.b2d307df606f.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Queue Roboto";
  src: url("fonts/Roboto-Bold.9ece5b48963b.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Queue Roboto";
  src: url("fonts/Roboto-Black.301fe70f8f0f.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4efe3;
  --paper-dark: #e9e0cf;
  --surface: #fffdf8;
  --ink: #202c25;
  --ink-soft: #46564a;
  --muted: #5a675d;
  --line: #d8d1c3;
  --green: #28583e;
  --green-strong: #244b36;
  --green-pale: #e4ece2;
  --red: #a83d2b;
  --red-pale: #f7e7e0;
  --gold: #8a6315;
  --gold-pale: #f4edcf;
  --blue: #315d70;
  --blue-pale: #e4eff1;
  --shadow-sheet: 0 16px 38px rgb(32 44 37 / 8%);
  --radius-sm: 5px;
  --radius-md: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --focus: 0 0 0 3px rgb(168 61 43 / 32%);
  font-family: "Queue Roboto", Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
::selection { color: var(--surface); background: var(--green-strong); }
*:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

.public-page { min-height: 100vh; }
.public-shell { width: min(100% - 48px, 1160px); margin: 0 auto; }
.public-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgb(32 44 37 / 13%); }
.wordmark, .staff-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.wordmark-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; background: var(--green-strong); color: var(--paper); font-size: 17px; font-weight: 800; line-height: 1; }
.venue-name { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.live-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #52784e; box-shadow: 0 0 0 3px rgb(82 120 78 / 14%); }
.guest-main { width: min(100%, 620px); margin: 0 auto; padding: clamp(36px, 6vw, 72px) 0 52px; }
.join-sheet, .ticket-panel { position: relative; min-width: 0; padding: clamp(25px, 4vw, 40px); background: var(--surface); box-shadow: var(--shadow-sheet); }
.join-sheet { border-radius: 2px; }
.sheet-heading, .ticket-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sheet-heading h1, .sheet-heading h2 { margin: 0; font-size: clamp(22px, 2.5vw, 28px); font-weight: 740; letter-spacing: -.035em; line-height: 1.16; }
.ticket-stamp { display: grid; min-width: 62px; min-height: 62px; place-content: center; border: 1px solid var(--line); color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.25; text-align: center; }
.ticket-stamp b { font-size: 19px; letter-spacing: -.04em; }
.form-intro { margin: 19px 0 23px; color: var(--muted); font-size: 14px; }
.join-form { display: grid; gap: 19px; }
.field-group { min-width: 0; }
.field-group label, .call-form label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 720; }
.text-input, .number-input { width: 100%; min-height: 50px; border: 1px solid #aaa998; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 11px 13px; font-size: 16px; transition: border-color 140ms ease, background-color 140ms ease; }
.text-input::placeholder { color: #647168; opacity: 1; }
.text-input:hover, .number-input:hover { border-color: var(--green); }
.text-input:focus-visible, .number-input:focus-visible { border-color: var(--green); box-shadow: var(--focus); }
.number-input-wrap { position: relative; }
.number-input { padding-right: 66px; }
.input-suffix { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field-error, .form-alert { margin-top: 7px; color: #852e20; font-size: 13px; font-weight: 650; }
.errorlist { margin: 0; padding-left: 18px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 17px; font-size: 15px; font-weight: 760; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button-primary { background: var(--green-strong); color: #fffdf8; }
.button-primary:hover { background: #193b29; }
.button-primary:active { transform: translateY(1px); }
.button:disabled { background: #a4aea2; color: #f8f6ef; cursor: wait; }
.button-wide { width: 100%; }
.button-arrow { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note { max-width: 44ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.public-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgb(32 44 37 / 13%); color: var(--muted); font-size: 12px; }

.ticket-main { width: min(100%, 650px); margin: clamp(45px, 8vw, 94px) auto 88px; }
.ticket-panel { padding: clamp(26px, 5.2vw, 52px); }
.ticket-number { margin: 0; color: var(--green-strong); font-size: clamp(64px, 11vw, 108px); font-variant-numeric: tabular-nums; font-weight: 820; letter-spacing: -.075em; line-height: .94; }
.status-tag { display: inline-flex; min-height: 29px; align-items: center; gap: 7px; border-radius: 3px; padding: 5px 10px; font-size: 12px; font-weight: 760; line-height: 1.25; white-space: nowrap; }
.status-waiting { background: var(--green-pale); color: #284d31; }
.status-called { background: var(--red-pale); color: #872e20; }
.status-accepted { background: var(--blue-pale); color: #274e60; }
.status-completed { background: #e9eee4; color: #405c37; }
.status-cancelled { background: #eae7e0; color: #4f504c; }
.status-expired { background: var(--gold-pale); color: #6e5014; }
.fit-tag { display: inline-block; max-width: 100%; border: 1px solid transparent; padding: 4px 6px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.fit-ok { border-color: #a6b79b; background: var(--green-pale); color: #284d31; }
.fit-no { border-color: #d4c49a; background: var(--gold-pale); color: #674d16; }
.fit-done { border-color: #c8c3b6; background: #f0ece3; color: #525950; }
.ticket-rule { display: flex; align-items: center; gap: 7px; margin: 31px 0 23px; }
.ticket-rule::before, .ticket-rule::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.ticket-rule span { width: 5px; height: 5px; border-radius: 50%; background: var(--paper-dark); }
.ticket-greeting { margin: 0 0 5px; font-size: clamp(23px, 4vw, 30px); font-weight: 720; letter-spacing: -.03em; }
.ticket-detail { margin: 0; color: var(--muted); font-size: 15px; }
.ticket-detail strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.position-line { min-height: 54px; display: flex; align-items: center; margin: 25px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--ink-soft); font-size: 15px; font-weight: 620; }
.call-notice { margin-top: 18px; border: 1px solid #d89d8b; background: var(--red-pale); padding: 15px 17px; color: #702c20; animation: notice-arrive 360ms cubic-bezier(.16, 1, .3, 1) both; }
.call-notice strong { display: block; font-size: 15px; }
.call-notice p { margin: 4px 0 0; font-size: 13px; }
.ticket-actions { display: grid; gap: 17px; margin-top: 22px; }
.ticket-actions form { margin: 0; }
.text-link { color: var(--green-strong); font-size: 14px; font-weight: 740; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ticket-main > .text-link { display: inline-block; margin: 19px 0 0 2px; }
.status-page .public-footer { margin-top: 0; }

.staff-page { min-height: 100vh; }
.staff-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.staff-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--green-strong); color: #f4efe3; padding: 29px 20px 22px; }
.staff-brand { gap: 10px; color: #fffdf8; font-size: 16px; }
.staff-brand .wordmark-mark { background: #f4efe3; color: var(--green-strong); }
.rail-venue { display: flex; align-items: center; gap: 9px; margin: 25px 0 34px; color: #d3ddcf; font-size: 13px; }
.venue-marker { width: 7px; height: 7px; border: 1px solid #d6c984; background: #d6c984; }
.rail-nav { display: grid; gap: 5px; }
.rail-link { display: flex; min-height: 45px; align-items: center; gap: 11px; border-radius: var(--radius-sm); padding: 9px 11px; color: #e1e8dd; font-size: 14px; font-weight: 620; text-decoration: none; }
.rail-link svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-link:hover, .rail-link.is-current { background: #35664c; color: #fffdf8; }
.rail-bottom { margin-top: auto; border-top: 1px solid rgb(244 239 227 / 24%); padding-top: 18px; }
.rail-demo { display: inline-block; border: 1px solid rgb(244 239 227 / 45%); padding: 4px 7px; color: #e7dfc6; font-size: 10px; font-weight: 760; letter-spacing: .1em; }
.rail-bottom p { max-width: 19ch; margin: 12px 0 0; color: #d3ddcf; font-size: 12px; }
.staff-main { min-width: 0; width: min(100%, 1590px); margin: 0 auto; padding: 35px clamp(25px, 4vw, 58px) 24px; }
.staff-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); padding: 5px 0 25px; }
.staff-header h1 { margin: 0; font-size: clamp(30px, 3vw, 39px); font-weight: 760; letter-spacing: -.045em; line-height: 1.05; }
.header-status { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 2px 8px; color: var(--green); font-size: 13px; font-weight: 750; }
.header-status .live-dot { grid-row: span 2; }
.header-status time { color: var(--muted); font-size: 11px; font-weight: 500; }
.queue-summary { display: grid; grid-template-columns: max-content max-content max-content minmax(180px, 1fr); align-items: center; gap: clamp(24px, 4.4vw, 64px); border-bottom: 1px solid var(--line); padding: 20px 0 21px; }
.summary-item { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 7px; }
.summary-value { font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 790; letter-spacing: -.04em; line-height: 1; }
.summary-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.summary-caption { justify-self: end; max-width: 34ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: right; }
.operations-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(285px, .78fr); align-items: start; gap: clamp(24px, 3.5vw, 48px); padding-top: 28px; }
.queue-section { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2, .call-panel h2, .qr-panel h2 { margin: 0; font-size: 23px; font-weight: 730; letter-spacing: -.035em; line-height: 1.2; }
.queue-total { color: var(--muted); font-size: 13px; white-space: nowrap; }
.queue-filters { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 5px; overflow-x: auto; scrollbar-width: thin; }
.filter-button { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 9px 7px; color: var(--muted); font-size: 12px; font-weight: 660; cursor: pointer; }
.filter-button span { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 3px; background: #e7e2d7; color: var(--ink-soft); font-size: 10px; font-variant-numeric: tabular-nums; }
.filter-button:hover { color: var(--ink); }
.filter-button.is-selected { border-bottom-color: var(--green); color: var(--green-strong); }
.filter-button.is-selected span { background: var(--green-pale); color: var(--green-strong); }
.queue-table-scroll { min-width: 0; }
.queue-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.queue-table thead th { border-bottom: 1px solid #b9b5a9; padding: 12px 8px 11px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .075em; text-align: left; text-transform: uppercase; }
.queue-table thead th:nth-child(1) { width: 22%; }
.queue-table thead th:nth-child(2) { width: 14%; }
.queue-table thead th:nth-child(3) { width: 12%; }
.queue-table thead th:nth-child(4) { width: 14%; }
.queue-table thead th:nth-child(5) { width: 17%; }
.queue-table thead th:nth-child(6) { width: 21%; }
.queue-table tbody tr { border-bottom: 1px solid var(--line); }
.queue-table tbody tr:hover { background: rgb(255 253 248 / 58%); }
.queue-table td, .queue-table tbody th { padding: 13px 8px; vertical-align: middle; }
.queue-ticket { color: var(--green-strong); font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.035em; text-align: left; }
.queue-ticket span { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; font-variant-numeric: normal; font-weight: 620; letter-spacing: 0; overflow-wrap: anywhere; }
.queue-table td { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.cell-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-variant-numeric: normal; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.row-action { min-height: 36px; border: 1px solid #b8c3b4; border-radius: 3px; background: transparent; padding: 7px 8px; color: var(--green-strong); font-size: 11px; font-weight: 700; cursor: pointer; }
.row-action:hover { border-color: var(--green); background: var(--green-pale); }
.row-action.is-destructive { border-color: #d6b4a8; color: #8a3525; }
.row-action.is-destructive:hover { border-color: var(--red); background: var(--red-pale); }
.row-action:disabled { opacity: .6; cursor: wait; }
.initial-empty td { padding: 25px 9px; color: var(--muted); font-size: 13px; }
.empty-state { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 28px 8px; color: var(--muted); font-size: 13px; }
.empty-state p { margin: 0; }
.empty-state strong { color: var(--ink); font-size: 14px; }
.empty-ticket { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--line); color: var(--green); font-size: 18px; font-weight: 800; }
.empty-ticket svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.filter-empty { margin: 0; border-bottom: 1px solid var(--line); padding: 22px 8px; color: var(--muted); font-size: 13px; }
.staff-tools { display: grid; gap: 19px; }
.call-panel { border: 1px solid #c7c1b2; background: #ece5d5; padding: 21px; }
.call-panel h2 { font-size: 20px; }
.call-description { margin: 8px 0 17px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.call-form { display: grid; gap: 10px; }
.call-form label { margin: 0; font-size: 12px; }
.call-form .number-input { min-height: 47px; border-color: #aaa28e; background: var(--surface); }
.call-form .button { margin-top: 3px; }
.call-feedback { margin: 13px 0 0; border: 1px solid #9eb398; background: #edf3e9; padding: 10px 11px; color: #294a30; font-size: 12px; font-weight: 650; }
.call-feedback.is-error { border-color: #d4a59b; background: #fbefeb; color: #782d22; }
.capacity-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.qr-panel { border-top: 1px solid var(--line); padding-top: 19px; }
.qr-panel h2 { font-size: 19px; }
.qr-copy > p:last-child { margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.qr-image-link { display: grid; width: 100%; min-height: 198px; place-items: center; border: 1px solid var(--line); background: var(--surface); padding: 10px; }
.qr-image-link img { display: block; width: min(100%, 176px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding-top: 12px; }
.qr-actions .text-link { font-size: 12px; }
.copy-link { min-height: 44px; border: 1px solid #b8c3b4; border-radius: 3px; background: transparent; padding: 9px 10px; color: var(--green-strong); font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-link:hover { background: var(--green-pale); }
.copy-feedback { margin: 9px 0 0; color: var(--green); font-size: 12px; }
.staff-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 32px; padding: 14px 0 3px; color: var(--muted); font-size: 11px; }
.flash-stack { margin: 14px 0 0; }
.flash-message { border: 1px solid var(--line); margin: 0 0 7px; background: var(--surface); padding: 10px 13px; color: var(--ink-soft); font-size: 13px; }
.toast-region { position: fixed; right: 24px; bottom: 22px; z-index: 20; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { border: 1px solid #7b9673; background: var(--green-strong); box-shadow: 0 12px 28px rgb(15 36 23 / 19%); padding: 13px 16px; color: #fffdf8; font-size: 13px; font-weight: 650; animation: toast-arrive 260ms cubic-bezier(.16, 1, .3, 1) both; }

@keyframes notice-arrive { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-arrive { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1200px) {
  .staff-shell { grid-template-columns: 204px minmax(0, 1fr); }
  .staff-rail { padding-right: 16px; padding-left: 16px; }
  .staff-main { padding-right: 25px; padding-left: 25px; }
  .operations-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 24px; }
  .queue-summary { grid-template-columns: max-content max-content max-content 1fr; gap: 22px; }
  .summary-caption { max-width: 26ch; }
  .queue-table thead th:nth-child(1) { width: 21%; }
  .queue-table thead th:nth-child(2) { width: 13%; }
  .queue-table thead th:nth-child(3) { width: 12%; }
  .queue-table thead th:nth-child(4) { width: 15%; }
  .queue-table thead th:nth-child(5) { width: 17%; }
  .queue-table thead th:nth-child(6) { width: 22%; }
}

@media (max-width: 900px) {
  .staff-shell { display: block; }
  .staff-rail { position: static; width: 100%; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; padding: 14px 22px 12px; }
  .staff-brand { grid-column: 1; }
  .rail-venue { grid-column: 1; grid-row: 2; margin: 0; font-size: 12px; }
  .rail-nav { grid-column: 2; grid-row: 1 / span 2; display: flex; justify-content: flex-end; gap: 4px; }
  .rail-link { min-height: 42px; padding: 8px 9px; font-size: 12px; }
  .rail-bottom { display: none; }
  .staff-main { width: 100%; padding: 27px 24px 22px; }
  .operations-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .staff-tools { grid-row: 1; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: start; gap: 20px; }
  .qr-panel { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 20px; }
  .qr-image-link { min-height: 180px; }
  .qr-image-link img { width: min(100%, 158px); }
  .queue-summary { grid-template-columns: max-content max-content max-content 1fr; }
  .summary-caption { max-width: 31ch; }
  .queue-table thead th:nth-child(1) { width: 21%; }
  .queue-table thead th:nth-child(2) { width: 13%; }
  .queue-table thead th:nth-child(3) { width: 12%; }
  .queue-table thead th:nth-child(4) { width: 15%; }
  .queue-table thead th:nth-child(5) { width: 17%; }
  .queue-table thead th:nth-child(6) { width: 22%; }
}

@media (max-width: 680px) {
  html, body { min-width: 320px; }
  .public-shell { width: min(100% - 36px, 520px); }
  .public-header { min-height: 70px; gap: 12px; }
  .wordmark { gap: 8px; font-size: 15px; }
  .wordmark-mark { width: 30px; height: 30px; font-size: 15px; }
  .venue-name { gap: 7px; font-size: 12px; }
  .guest-main { padding: 24px 0 40px; }
  .join-sheet { padding: 24px 21px; }
  .sheet-heading h1, .sheet-heading h2 { font-size: 23px; }
  .ticket-stamp { min-width: 52px; min-height: 52px; }
  .form-intro { margin: 16px 0 20px; }
  .join-form { gap: 17px; }
  .public-footer { min-height: 58px; font-size: 11px; }
  .ticket-main { width: min(100%, 520px); margin: 38px auto 52px; }
  .ticket-panel { padding: 27px 22px; }
  .ticket-number { font-size: clamp(70px, 20vw, 92px); }
  .status-tag { font-size: 11px; }
  .ticket-rule { margin: 25px 0 20px; }
  .ticket-greeting { font-size: 25px; }
  .position-line { margin-top: 21px; }
  .staff-rail { grid-template-columns: 1fr; gap: 8px; padding: 12px 18px 10px; }
  .staff-brand, .rail-venue, .rail-nav { grid-column: 1; grid-row: auto; }
  .staff-brand { font-size: 15px; }
  .staff-brand .wordmark-mark { width: 29px; height: 29px; font-size: 15px; }
  .rail-venue { font-size: 11px; }
  .rail-nav { justify-content: flex-start; margin-top: 2px; }
  .rail-link { min-height: 39px; padding: 7px 9px; }
  .staff-main { padding: 24px 18px 17px; }
  .staff-header { align-items: flex-start; gap: 12px; padding-bottom: 19px; }
  .staff-header h1 { font-size: 30px; }
  .header-status { grid-template-columns: 9px auto; gap: 2px 6px; margin-top: 5px; font-size: 11px; }
  .header-status time { grid-column: 1 / -1; font-size: 10px; white-space: nowrap; }
  .queue-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 17px 0; }
  .summary-item { grid-template-columns: auto; gap: 3px; }
  .summary-value { font-size: 24px; }
  .summary-label { font-size: 11px; }
  .summary-caption { grid-column: 1 / -1; justify-self: start; max-width: 52ch; margin-top: 5px; font-size: 11px; text-align: left; }
  .operations-layout { gap: 25px; padding-top: 21px; }
  .staff-tools { grid-template-columns: 1fr; gap: 20px; }
  .call-panel { padding: 18px; }
  .call-panel h2 { font-size: 20px; }
  .qr-panel { border-left: 0; border-top: 1px solid var(--line); padding: 17px 0 0; }
  .qr-image-link { width: min(100%, 230px); min-height: 0; margin: 0 auto; }
  .qr-image-link img { width: 100%; }
  .qr-actions { align-items: flex-start; }
  .section-heading { align-items: end; gap: 9px; margin-bottom: 12px; }
  .section-heading h2 { font-size: 21px; }
  .queue-total { font-size: 11px; }
  .queue-filters { gap: 0; margin-right: -2px; margin-left: -3px; }
  .filter-button { min-height: 44px; gap: 5px; padding-right: 7px; padding-left: 7px; font-size: 11px; }
  .queue-table { table-layout: auto; }
  .queue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  .queue-table tbody { display: grid; }
  .queue-table tbody tr:not(.initial-empty) { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; border-bottom: 1px solid #cfc7b7; padding: 13px 2px 14px; }
  .queue-table tbody th.queue-ticket { grid-column: 1 / -1; padding: 0 0 5px; font-size: 20px; }
  .queue-table tbody th.queue-ticket span { display: inline; margin-left: 8px; font-size: 14px; }
  .queue-table tbody tr > td { display: grid; min-width: 0; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 5px; padding: 3px 0; font-size: 12px; }
  .queue-table tbody tr > td::before { color: var(--muted); content: attr(data-label); font-size: 10px; font-variant-numeric: normal; font-weight: 650; }
  .queue-table tbody tr > td:last-child { grid-column: 1 / -1; display: block; padding-top: 5px; }
  .queue-table tbody tr > td:last-child::before { display: block; margin-bottom: 7px; }
  .queue-table tbody tr > td:nth-child(2) { grid-column: 1; }
  .queue-table tbody tr > td:nth-child(3) { grid-column: 2; }
  .queue-table tbody tr > td:nth-child(4) { grid-column: 1; }
  .queue-table tbody tr > td:nth-child(5) { grid-column: 2; }
  .row-actions { gap: 6px; }
  .row-action { min-height: 44px; padding: 9px 10px; font-size: 11px; }
  .status-tag { justify-self: start; max-width: 100%; white-space: normal; }
  .initial-empty { display: block; }
  .initial-empty td { display: block; padding: 18px 3px; }
  .empty-state { padding: 22px 3px; }
  .staff-footer { flex-direction: column; gap: 5px; margin-top: 23px; }
  .toast-region { right: 16px; bottom: 15px; width: calc(100vw - 32px); }
}

@media (max-width: 390px) {
  .public-shell { width: calc(100% - 30px); }
  .venue-name { font-size: 11px; }
  .staff-main { padding-right: 15px; padding-left: 15px; }
  .staff-rail { padding-right: 15px; padding-left: 15px; }
  .staff-header h1 { font-size: 27px; }
  .header-status time { font-size: 9px; }
  .queue-table tbody tr:not(.initial-empty) { column-gap: 8px; }
  .queue-table tbody tr > td { grid-template-columns: 60px minmax(0, 1fr); }
  .row-action { padding-right: 8px; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .staff-rail, .staff-header, .queue-summary, .operations-layout > .queue-section, .staff-footer { display: none !important; }
  .staff-shell, .staff-main, .operations-layout { display: block; width: auto; margin: 0; padding: 0; }
  .qr-panel { display: block; width: 420px; border: 0; padding: 0; }
  .qr-image-link { min-height: 0; border: 0; }
  .qr-image-link img { width: 260px; }
}
