:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #292522;
  background: #fbf9f6;
  line-height: 1.55;
  --accent: #86321f;
  --surface: #fff;
  --border: #ded7d0;
}

* { box-sizing: border-box; }
body { margin: 0; }
.staff { --accent: #234b43; background: #f6f8f7; }
.frame { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar-content { padding-block: 1rem; }
.topbar a { color: var(--accent); font-weight: 700; text-decoration: none; }
main { padding-block: 2.75rem 4rem; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 7vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.heading p { margin-top: .65rem; color: #5f5752; }
h2 { margin-bottom: .75rem; font-size: 1.4rem; }
h3 { font-size: 1.05rem; line-height: 1.3; }
.availability { font-size: .875rem; margin-left: .5rem; color: var(--accent); }
.empty { padding: 1.25rem; border: 1px solid var(--border); background: var(--surface); border-radius: .75rem; }
.branch-picker > div { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; }
label { display: block; margin-bottom: .25rem; font-weight: 600; }
button, input, select, textarea { padding: .65rem .8rem; border: 1px solid var(--border); border-radius: .45rem; font: inherit; }
button { cursor: pointer; color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 650; }
.secondary { color: var(--accent); background: var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sign-in { max-width: 25rem; margin: 1rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: clamp(1.25rem, 5vw, 2rem); }
.sign-in h1 { font-size: 2rem; margin-bottom: 1.25rem; }
.sign-in input { width: 100%; margin-bottom: 1rem; }
.sign-in button { width: 100%; }
.form-error { color: #84321f; margin-bottom: 1rem; }
.order-table { overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem 1rem; white-space: nowrap; }
thead, tbody tr + tr { border-bottom: 1px solid var(--border); }
.status { text-transform: capitalize; }

[hidden] { display: none !important; }
a { color: var(--accent); }
button:disabled { opacity: .6; cursor: wait; }
.panel { margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.panel > p + p { margin-top: .5rem; }
.panel > form, .add-product, [data-quote] { margin-top: 1rem; }
fieldset { border: 0; margin: 0 0 .75rem; padding: 0; min-width: 0; }
legend { font-weight: 650; }
legend small, .cart-lines p, .staff-products p { color: #5f5752; font-size: .875rem; }
.check { display: flex; align-items: baseline; gap: .5rem; font-weight: 400; }
.check input { accent-color: var(--accent); flex: 0 0 auto; }
.cart-lines input { width: 4.5rem; padding-inline: .45rem; }
.cart-lines, .staff-products { padding: 0; list-style: none; }
.cart-lines li, .staff-products li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .65rem; border-bottom: 1px solid var(--border); }
.cart-lines .addon-line { padding-left: 1rem; }
.cart-status:empty { display: none; }
.cart-status { color: var(--accent); margin-bottom: .75rem; overflow-wrap: anywhere; }
.item-actions, .branch-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.branch-controls, .saved { margin-bottom: 1rem; }
.branch-controls { gap: .75rem 1.25rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; max-width: 24rem; }
.totals dd { margin: 0; text-align: right; }
.totals :nth-last-child(-n + 2) { border-top: 1px solid var(--border); padding-top: .4rem; font-weight: 700; }
.hours-row { display: grid; grid-template-columns: 6rem repeat(2, minmax(0, 8rem)); align-items: end; gap: .5rem; padding-block: .3rem; }
.hours-row strong { align-self: center; }
.hours-row input { display: block; width: 100%; padding-inline: .35rem; }
.staff-products { margin-bottom: 0; }
.staff-products li:last-child { border: 0; }
@media (max-width: 30rem) {
  .hours-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
  .hours-row strong { grid-column: 1 / -1; }
}

.order-number { overflow-wrap: anywhere; }
.order-panel { max-width: 40rem; overflow-wrap: anywhere; }
.order-history { margin-top: 1.75rem; }
.order-alert { padding: .8rem 1rem; margin-bottom: 1rem; border-left: .25rem solid var(--accent); background: #e5f0eb; }
.order-alert[role="alert"] { border-color: #86321f; background: #f7e9df; }
.order-alert ul { margin-bottom: 0; }
.pay-button, [data-pay-status]:not(:empty) { margin-top: .75rem; }
.refund-form label, .refund-form button { display: block; margin-top: .75rem; }
.refund-form input { max-width: 100%; }

.queue-items { white-space: normal; min-width: 11rem; }
.queue-items .cart-lines { margin: 0; }
.queue-items li { padding-block: .35rem; }
.queue-items li:first-child { padding-top: 0; }
.queue-items li:last-child { padding-bottom: 0; border-bottom: 0; }

[data-method-fields], .delivery-fields, .delivery-form > * + *, .delivery-panel > * + * { margin-block: .75rem; }
.delivery-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; max-width: 40rem; }
.delivery-fields input { display: block; width: 100%; min-width: 0; }
.delivery-fields .wide { grid-column: 1 / -1; }
.delivery-form { border-top: 1px solid var(--border); padding-top: .75rem; }
.delivery-form input, .delivery-form select { max-width: 100%; }
.delivery-panel summary { cursor: pointer; font-weight: 650; }
.stock-disposition { display: grid; gap: .5rem; }
[data-dropoff] .item-actions { align-items: center; margin-top: .65rem; }

textarea { display: block; width: min(100%, 40rem); }
.order-note { font-weight: 650; }
.sound-bar, .stale-banner { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; padding: .8rem 1rem; color: #fff; background: #a3170b; border-radius: .45rem; }
.sound-bar button { color: #a3170b; background: #fff; border-color: #fff; }
.stale-banner { position: sticky; top: .5rem; z-index: 2; }
.stale-banner a { color: #fff; }
.pin-map { z-index: 0; height: 18rem; max-width: 40rem; margin-block: .5rem; border: 1px solid var(--border); border-radius: .45rem; }
.delivery-pin { display: block; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 0 0 1px #292522; rotate: -45deg; }

html { scroll-padding-top: 4.5rem; }
.product-preorder { flex-basis: 100%; }
.enquiry-message { white-space: pre-line; overflow-wrap: anywhere; }

/* Staff: kitchen-display style (Staff Redesign 1a–1k). Everything below is scoped to body.staff. */
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin.woff2) format('woff2'); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
body.staff {
  --ink: #141414; --paper: #efeee9; --rule: #e2e0d8; --line: #c9c7bf; --muted: #4a4842; --faint: #6b6963;
  --red: oklch(0.55 0.21 27); --red-text: oklch(0.48 0.2 27); --red-soft: oklch(0.93 0.05 27); --red-deep: oklch(0.42 0.17 27);
  --amber: oklch(0.83 0.15 80); --note: oklch(0.93 0.07 90); --green: oklch(0.83 0.13 150); --blue: oklch(0.83 0.09 245);
  --accent: var(--ink); --border: var(--line); --surface: #fff;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  font-family: Archivo, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.4;
}
.staff a { color: var(--ink); }
.staff a:hover { color: var(--muted); }
.staff .mono, .staff .code { font-family: var(--mono); }
.staff .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.staff .hint, .staff .page-sub { color: var(--muted); font-size: .9rem; }
.staff :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Controls */
.staff button { min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 800 .95rem Archivo, sans-serif; }
.staff button.secondary, .staff .outline-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; }
.staff button.small { min-height: 2.25rem; padding: 0 .7rem; font-size: .85rem; }
.staff button.danger-outline { border: 2px solid var(--red); background: #fff; color: var(--red-text); }
.staff button.urgent { background: var(--red); }
.staff button.link-button { min-height: 0; padding: 0; background: none; color: #cfcdc6; font-weight: 600; font-size: .9rem; }
.staff button.link-button:hover { color: #fff; }
.staff input, .staff select, .staff textarea { min-height: 2.75rem; padding: .45rem .7rem; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font: 500 1rem Archivo, sans-serif; }
.staff input[type="time"], .staff input[type="date"], .staff input[type="number"], .staff input.mono { font-family: var(--mono); font-weight: 600; }
.staff label { font-size: .9rem; font-weight: 750; }
.staff .delivery-fields { max-width: none; gap: .75rem 1rem; }
.staff .delivery-fields label, .staff .field-pair label { display: flex; flex-direction: column; gap: .3rem; }
.staff .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.staff legend { font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.staff fieldset:disabled { opacity: .75; }
.staff textarea { width: 100%; }

/* Switch look for checkboxes */
.staff .switch { display: inline-flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 750; cursor: pointer; }
.staff .switch input, .staff .switch-state { appearance: none; flex: none; position: relative; width: 2.75rem; height: 1.6rem; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 1rem; background: var(--line); cursor: pointer; }
.staff .switch input::after, .staff .switch-state::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: translate .15s; }
.staff .switch input:checked, .staff .switch-state.on { background: var(--ink); }
.staff .switch input:checked::after, .staff .switch-state.on::after { translate: 1.15rem 0; }
.staff .switch-state { display: inline-block; cursor: default; vertical-align: middle; }
.staff .switch.big input { width: 3.75rem; height: 2.1rem; }
.staff .switch.big input::after { width: 1.7rem; height: 1.7rem; }
.staff .switch.big input:checked::after { translate: 1.65rem 0; }
.staff .switch.big strong { display: block; font-size: 1.4rem; font-weight: 850; }
.staff .switch.big small { display: block; color: var(--muted); font-weight: 500; font-size: .95rem; }

/* Top bar */
.staff-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; padding: 0 1.25rem; background: var(--ink); color: #efeee9; }
.staff-top .wordmark { color: #efeee9; font-weight: 850; font-size: 1.2rem; font-stretch: 85%; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; }
.staff-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.branch-label, .branch-switch summary { padding: .3rem .6rem; border: 1px solid #3a3a38; border-radius: 6px; color: #cfcdc6; font-size: .9rem; font-weight: 600; }
.branch-switch { position: relative; }
.branch-switch summary { cursor: pointer; list-style: none; }
.branch-switch summary::after { content: ' ▾'; }
.branch-switch ul { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 12rem; margin: 0; padding: .3rem; list-style: none; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px #0004; }
.branch-switch li a { display: block; padding: .55rem .7rem; border-radius: 6px; font-weight: 650; text-decoration: none; }
.branch-switch li a[aria-current] { background: var(--rule); }
.staff-tabs { display: flex; align-self: stretch; gap: 2px; overflow-x: auto; }
.staff .staff-tabs a { display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border-bottom: 3px solid transparent; color: #a9a7a0; font-weight: 550; text-decoration: none; white-space: nowrap; }
.staff .staff-tabs a:hover { color: #fff; }
.staff .staff-tabs a[aria-current] { color: #fff; font-weight: 750; border-color: var(--amber); }
.tab-badge { min-width: 1.4rem; padding: .05rem .45rem; border-radius: 1rem; background: var(--amber); color: var(--ink); font-size: .8rem; font-weight: 800; text-align: center; }
.staff-meta { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-shrink: 0; font-size: .9rem; font-weight: 600; }
.staff-meta .live { display: flex; align-items: center; gap: .45rem; color: #cfcdc6; }
.staff-meta .live::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: oklch(0.72 0.15 150); }
.staff-meta .clock { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: #fff; }

/* Page shell */
.staff main.staff-page { padding: 1.4rem 1.6rem 2.5rem; }
.staff h1 { font-size: 2.1rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.staff h2 { font-size: 1.35rem; font-weight: 850; margin-bottom: .5rem; }
.staff .page-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.staff .page-head p { color: var(--muted); font-size: .95rem; }
.staff .page-head > button { margin-left: auto; min-height: 3rem; font-size: 1rem; }
.staff .page-head + .page-sub { margin: -.75rem 0 1rem; }
.staff .panel { margin: 0 0 1rem; padding: 1.25rem 1.4rem; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.staff .panel > * + * { margin-top: .75rem; }
.staff .panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.staff .panel-head h2 { margin: 0; }
.staff .panel-head p { color: var(--muted); font-size: .95rem; }
.staff .panel-head form { margin: 0 0 0 auto; }
.staff .detail-side .panel-head h2, .staff .tile h2, .staff .three-cards .panel-head h2, .staff .rider-head h2, .staff .delivery-panel h3, .staff .note-card h2 {
  font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.staff .panel-head > span { margin-left: auto; font-weight: 700; font-size: .9rem; }
.staff .saved { padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 6px; background: var(--green); font-weight: 700; }
.staff .empty { padding: 2rem 1rem; border: 2px dashed var(--line); border-radius: 8px; background: none; color: var(--faint); text-align: center; }
.staff .section-label { margin: 1rem 0 .5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.staff .note, .staff .issue { padding: .35rem .55rem; border-radius: 4px; font-size: .9rem; font-weight: 650; line-height: 1.35; }
.staff .note { background: var(--note); }
.staff .issue { background: var(--red-soft); color: var(--red-deep); font-weight: 700; }
.staff .tag { padding: .1rem .45rem; border-radius: 4px; background: var(--rule); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.staff .tag.on, .staff .tag.live { background: var(--green); }
.staff .tag.warn, .staff .tag.suggested { background: var(--amber); }
.staff .method-tag { display: inline-block; padding: .05rem .4rem; border: 1.5px solid var(--ink); border-radius: 4px; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

/* Segmented control and chips */
.staff .segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--rule); }
.staff .segmented a { padding: .45rem .9rem; border-radius: 6px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.staff .segmented a[aria-current] { background: #fff; color: var(--ink); font-weight: 800; }
.staff .chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.staff .chips a { padding: .45rem .85rem; border-radius: 1.2rem; background: var(--rule); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.staff .chips a[aria-current] { background: var(--ink); color: #fff; font-weight: 750; }

/* Alert bars */
.staff .alert-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .75rem; padding: .65rem 1.25rem; border-radius: 6px; background: var(--red); color: #fff; font-weight: 650; }
.staff .alert-bar a { color: inherit; font-weight: 800; }
.staff .alert-bar > a, .staff .alert-bar > button { margin-left: auto; }
.staff .alert-bar ul { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; padding: 0; list-style: none; }
.staff .alert-bar ul a { font-family: var(--mono); }
.staff .alert-bar.warn { background: var(--amber); color: var(--ink); }
.staff .sound-bar { margin: 0; border-radius: 0; }
.staff .sound-bar button { min-height: 2.1rem; background: #fff; color: var(--ink); border: 0; }
.staff .stale-banner { margin: 0; border-radius: 0; width: auto; }

/* Queue (1a) */
.staff .queue-page { display: flex; flex-direction: column; min-height: calc(100dvh - 4rem); padding-bottom: 1.25rem; }
.staff .queue-head { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.75rem; margin-bottom: .9rem; }
.staff .segmented a span { font-family: var(--mono); }
.staff .queue-counts { display: flex; gap: 1.5rem; margin-left: auto; color: var(--muted); font-weight: 650; }
.staff .queue-counts b { color: var(--ink); font-size: 1.4rem; margin-right: .25rem; }
.staff .queue-board { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(15rem, 1fr)); gap: .9rem; min-height: 0; overflow-x: auto; }
.staff .queue-col { display: flex; flex-direction: column; gap: .6rem; min-height: 0; max-height: calc(100dvh - 12rem); overflow-y: auto; padding: .6rem; border-radius: 10px; background: var(--rule); }
.staff .queue-col h2 { display: flex; justify-content: space-between; margin: 0; padding: .1rem .25rem; font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.staff .queue-col .count { font-family: var(--mono); }
.staff .col-empty { padding: 1.5rem .6rem; border: 2px dashed var(--line); border-radius: 8px; color: var(--faint); text-align: center; font-size: .95rem; }
.staff .phone-only { display: none; }
.staff .ticket { flex: none; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.staff .ticket-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; background: var(--ink); color: #fff; text-decoration: none; }
.staff .ticket-head:hover { color: inherit; filter: brightness(1.08); }
.staff .ticket-head .code { font-weight: 700; font-size: 1.6rem; }
.staff .timer { text-align: right; line-height: 1.05; }
.staff .timer b { display: block; font-weight: 850; font-size: 1.5rem; }
.staff .timer small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.staff .tone-new .ticket-head { background: var(--amber); color: var(--ink); }
.staff .tone-late .ticket-head { background: var(--red); color: #fff; }
.staff .tone-ready .ticket-head { background: var(--green); color: var(--ink); }
.staff .ticket-body { display: flex; flex-direction: column; gap: .5rem; padding: .6rem .75rem; }
.staff .ticket-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.staff .ticket-due { font-size: .85rem; color: var(--muted); }
.staff .ticket-lines, .staff .detail-lines { margin: 0; padding: 0; list-style: none; }
.staff .ticket-lines li { display: flex; gap: .35rem; font-size: 1.05rem; line-height: 1.25; padding-block: .1rem; }
.staff .ticket-lines strong { font-weight: 750; }
.staff .ticket-lines small, .staff .detail-lines small { display: block; color: var(--muted); font-size: .88rem; }
.staff .ticket-lines .qty { flex: none; font-weight: 750; }
.staff .ticket-lines .addon-line { padding-left: 1.1rem; }
.staff .ticket-foot { margin-top: auto; padding: 0 .75rem .75rem; }
.staff .ticket-foot button { width: 100%; min-height: 3rem; font-size: 1.05rem; }
.staff .passive { display: flex; align-items: center; justify-content: center; min-height: 3rem; border: 2px dashed var(--line); border-radius: 6px; color: var(--muted); font-weight: 700; }

/* Tables (Upcoming, Done) */
.staff .order-table { border: 0; border-radius: 8px; box-shadow: 0 1px 0 var(--line); }
.staff .order-table thead { background: var(--ink); color: #cfcdc6; }
.staff .order-table th[scope="col"] { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.staff .order-table tbody tr { border-top: 1px solid var(--rule); }
.staff .order-table .code { font-weight: 700; font-size: 1.05rem; }
.staff .order-table td.wrap { white-space: normal; min-width: 10rem; }
.staff .order-table small { display: block; color: var(--muted); }

/* Order detail (1e, 1f) */
.staff main.detail-page { padding: 0 0 2.5rem; }
.staff .detail-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.25rem 1.75rem 1.4rem; background: #fff; border-bottom: 1px solid #d6d4cc; }
.staff .detail-head .back { font-weight: 700; text-decoration: none; }
.staff .detail-head h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin: .35rem 0; }
.staff .detail-head h1 .code { font-size: clamp(2.75rem, 7vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.staff .pill { padding: .25rem .6rem; border-radius: 4px; background: var(--rule); font-family: Archivo, sans-serif; font-size: .85rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.staff .pill.tone-new { background: var(--amber); }
.staff .pill.tone-late { background: var(--red); color: #fff; }
.staff .pill.tone-ready { background: var(--green); }
.staff .pill.tone-kitchen { background: var(--blue); }
.staff .detail-meta { color: var(--muted); font-size: .95rem; }
.staff .detail-meta .order-number { font-size: .8rem; overflow-wrap: anywhere; }
.staff .detail-head form { margin-left: auto; }
.staff .primary-action { min-height: 4.5rem; min-width: 17.5rem; padding: 0 1.75rem; border-radius: 8px; font-size: 1.35rem; font-weight: 850; }
.staff .progress { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; margin: 0; padding: 1rem 1.75rem 0; list-style: none; }
.staff .progress li { display: flex; flex-direction: column; gap: .35rem; color: var(--faint); font-size: .9rem; font-weight: 600; }
.staff .progress li::before { content: ''; height: .5rem; border-radius: 4px; background: #d6d4cc; }
.staff .progress li.done { color: var(--muted); }
.staff .progress li.done::before { background: var(--ink); }
.staff .progress li.current { color: var(--ink); font-weight: 850; }
.staff .progress li.current::before { background: var(--blue); }
.staff .progress li.current.at-queued::before { background: var(--red); }
.staff .progress li.current.at-ready::before { background: var(--green); }
.staff .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem); gap: 1.25rem; align-items: start; padding: 1.25rem 1.75rem 0; }
.staff .note-card { margin-bottom: 1rem; padding: 1.1rem 1.4rem; border-radius: 8px; background: var(--note); }
.staff .note-card h2 { color: var(--ink); margin: 0; }
.staff .note-card p { font-size: 1.35rem; font-weight: 750; margin-top: .25rem; }
.staff .detail-lines li { display: flex; gap: 1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.staff .detail-lines li:last-child { border: 0; }
.staff .detail-lines .qty { min-width: 3rem; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; }
.staff .detail-lines strong { font-size: 1.5rem; font-weight: 800; }
.staff .detail-lines small { font-size: 1.05rem; }
.staff .detail-lines .addon-line { padding-left: 2rem; }
.staff .detail-lines .addon-line .qty { font-size: 1.25rem; color: var(--muted); }
.staff .detail-lines .addon-line strong { font-size: 1.2rem; font-weight: 700; }
.staff .totals { max-width: none; font-size: 1.05rem; }
.staff .totals dt { color: var(--muted); }
.staff .totals dd { font-family: var(--mono); }
.staff .totals :nth-last-child(-n + 2) { color: var(--ink); font-size: 1.2rem; font-weight: 850; border-color: var(--rule); }
.staff .big-time { font-size: 2.1rem; font-weight: 850; line-height: 1.05; }
.staff .contact-row { display: flex; align-items: center; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.staff .contact-row strong { display: block; font-size: 1.2rem; font-weight: 800; }
.staff .contact-row .mono { color: var(--muted); }
.staff .contact-row .outline-button { margin-left: auto; }
.staff .manager-card { border-top: 4px solid var(--ink); }
.staff .refund-lines { margin: 0; padding: 0; list-style: none; }
.staff .refund-lines li { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.staff .refund-lines small { display: block; color: var(--muted); }
.staff .action-details > summary { display: flex; align-items: center; justify-content: center; min-height: 3rem; border: 2px solid var(--ink); border-radius: 6px; font-weight: 800; cursor: pointer; list-style: none; }
.staff .action-details.danger > summary { border-color: var(--red); color: var(--red-text); }
.staff .action-details[open] > summary { margin-bottom: .75rem; }
.staff .action-details + .action-details, .staff .delivery-form + .action-details { margin-top: .6rem; }
.staff .refund-form label { margin-top: .6rem; }
.staff .refund-form input { width: 100%; }
.staff .refund-form button, .staff .delivery-form button { width: 100%; margin-top: .75rem; min-height: 3rem; }
.staff .delivery-panel { overflow: hidden; }
.staff .delivery-panel summary { font-weight: 800; }
.staff .rider-head { margin: -1.25rem -1.4rem 0; padding: .9rem 1.4rem; background: var(--rule); }
.staff .rider-status { font-size: 1.4rem; font-weight: 850; }
.staff .has-issue .rider-head { background: var(--red); color: #fff; }
.staff .has-issue .rider-head h2 { color: #fff; }
.staff .delivery-form { border: 0; padding: 0; }
.staff .delivery-form label { display: flex; flex-direction: column; gap: .3rem; }
.staff .delivery-form input { width: 100%; }

/* Availability (1g) */
.staff .tiles { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.staff .tile { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; border-radius: 8px; background: #fff; }
.staff .tile h2 { margin: 0; }
.staff .tile-value { font-size: 1.75rem; font-weight: 850; line-height: 1; }
.staff .tile p:not(.tile-value):not(.tile-switch) { font-size: .95rem; font-weight: 600; }
.staff .tile-switch { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 800; }
.staff .tile-warn { background: var(--amber); }
.staff .tile-warn h2 { color: var(--ink); }
.staff .tile-alert { background: var(--red-soft); }
.staff .tile button { width: 100%; }
.staff .side-layout { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.staff .side-nav { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 2px; }
.staff .side-nav a { padding: .6rem .75rem; border-radius: 6px; font-weight: 650; text-decoration: none; }
.staff .side-nav a:hover { background: var(--rule); }
.staff .side-content > .panel { scroll-margin-top: 5rem; }
.staff .grid-table > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 8.75rem; border-bottom: 1px solid var(--rule); }
.staff .grid-table > div > span { padding: .6rem 0; }
.staff .grid-head { border-bottom: 2px solid var(--ink) !important; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.staff .num { text-align: right; }
.staff .method-switches { display: flex; gap: 2rem; margin-bottom: .75rem; }
.staff .hours-row { grid-template-columns: 8.75rem 5rem minmax(0, 10rem) minmax(0, 10rem); align-items: center; gap: .75rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.staff .hours-row strong { font-size: 1.05rem; font-weight: 800; }
.staff .hours-row label { display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); }
.staff .day-state { font-size: .85rem; font-weight: 750; }
.staff .day-state.closed { color: var(--faint); }
.staff #ordering-hours form > button, .staff .side-content form > button { margin-top: .9rem; }
.staff .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .4rem 1rem; }
.staff .check { font-weight: 600; }
.staff .product-table { margin: 0; padding: 0; list-style: none; }
.staff .product-table > li { display: grid; grid-template-columns: minmax(0, 1.4fr) 8rem minmax(0, 1.5fr) 5.5rem 5.5rem 7rem 4.5rem; gap: .5rem .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.staff .product-table > li.grid-head { padding: .5rem 0; }
.staff .product-name strong { font-size: 1rem; font-weight: 800; }
.staff .sold-out { display: block; color: var(--red-text); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.staff .product-online, .staff .product-stock { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .9rem; font-weight: 650; }
.staff .stock-tag { padding: .1rem .5rem; border-radius: 4px; background: var(--rule); font-size: .8rem; font-weight: 800; }
.staff .stock-tag.warn { background: var(--amber); }
.staff .product-preorder { display: contents; }
.staff .product-preorder > summary { justify-self: end; font-weight: 750; text-decoration: underline; cursor: pointer; list-style: none; }
.staff .product-preorder > form { grid-column: 1 / -1; padding: .9rem; border-radius: 8px; background: var(--paper); }
.staff .product-preorder > form > * + * { margin-top: .6rem; }

/* Sign in (1h) */
html:has(> body.staff) { background: #efeee9; }
html:has(.sign-in-page), .staff:has(.sign-in-page) { background: #141414; }
.staff .sign-in-page { display: grid; place-items: center; min-height: calc(100dvh - 4rem); padding: 1.5rem; }
.staff .sign-in { width: min(100%, 27.5rem); margin: 0; padding: 2.25rem; border: 0; border-radius: 12px; background: var(--paper); }
.staff .sign-in h1 { font-size: 2.1rem; margin-bottom: 1.1rem; }
.staff .sign-in label { font-size: .95rem; }
.staff .sign-in input { height: 3.5rem; margin: .35rem 0 1rem; border: 2px solid var(--ink); border-radius: 8px; font-size: 1.1rem; }
.staff .sign-in button { height: 3.75rem; border-radius: 8px; font-size: 1.2rem; font-weight: 850; }
.staff .sign-in .hint { margin-top: 1rem; }
.staff .form-error { padding: .6rem .8rem; border-radius: 6px; background: var(--red-soft); color: var(--red-deep); font-weight: 700; }

/* Finance, storefront, club (1i–1k) */
.staff .two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.staff .two-cards .panel { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.4rem; }
.staff .two-cards .panel > * + * { margin-top: 0; }
.staff .two-cards p { color: var(--muted); margin-top: -.75rem !important; }
.staff .two-cards label { display: flex; flex-direction: column; gap: .35rem; }
.staff .two-cards button { margin-top: auto; min-height: 3.25rem; font-size: 1.05rem; }
.staff .three-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.staff .three-cards label { display: flex; flex-direction: column; gap: .35rem; }
.staff .big-input { width: 100%; height: 3.25rem; font-size: 1.35rem !important; font-weight: 700 !important; }
.staff .club-switch { padding: 1.1rem 1.4rem; }
.staff .content-layout { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.staff .content-index { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; }
.staff .content-index a { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); font-weight: 750; text-decoration: none; }
.staff .content-index a span:first-child { flex: 1; }
.staff .content-index a[aria-current] { background: var(--ink); color: #fff; }
.staff .content-index .tag { color: var(--ink); }
.staff .content-section p { color: var(--muted); }
.staff .content-section .note { color: var(--ink); }
.staff .content-section label input, .staff .content-section label textarea { width: 100%; }
.staff .row-details > summary { padding: .4rem 0; font-weight: 800; cursor: pointer; }
.staff .enquiry-list { margin: 0; padding: 0; list-style: none; }
.staff .enquiry-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.staff .enquiry-list > li > div > * + * { margin-top: .3rem; }
.staff .enquiry-list .tag { margin-left: .5rem; }

/* Narrow screens: phone queue (1d) and stacked pages */
@media (max-width: 62rem) {
  .staff .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .side-layout, .staff .content-layout, .staff .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .staff .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .staff .product-table > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .staff .product-table > li.grid-head { display: none; }
  .staff .product-name { grid-column: 1 / -1; }
  .staff .product-table .sr-only { position: static; width: auto; height: auto; clip-path: none; color: var(--muted); font-size: .8rem; }
  .staff .three-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  .staff-top { flex-wrap: wrap; gap: .4rem .75rem; padding: .5rem .9rem 0; }
  .staff-tabs { order: 3; flex-basis: 100%; min-height: 2.75rem; }
  .staff-meta { gap: .75rem; }
  .staff main.staff-page { padding: 1rem .75rem 2rem; }
  .staff .queue-page { min-height: 0; }
  .staff .queue-counts { display: none; }
  .staff .phone-only { display: flex; margin-bottom: .6rem; }
  .staff .chips a { min-height: 2.5rem; display: inline-flex; align-items: center; }
  .staff .queue-board { display: flex; flex-direction: column; overflow: visible; }
  .staff .queue-col { max-height: none; overflow: visible; padding: 0; background: none; }
  .staff .queue-col:not(:has(.ticket)) { display: none; }
  .staff .queue-board[data-filter="new"] .queue-col:not([data-stage="queued"]),
  .staff .queue-board[data-filter="kitchen"] .queue-col:not([data-kitchen]),
  .staff .queue-board[data-filter="ready"] .queue-col:not([data-stage="ready"]) { display: none; }
  .staff .ticket-head .code { font-size: 1.4rem; }
  .staff .ticket-foot button { min-height: 3.25rem; }
  .staff .detail-head, .staff .progress, .staff .detail-grid { padding-inline: .9rem; }
  .staff .detail-head form, .staff .primary-action { width: 100%; min-width: 0; margin: 0; }
  .staff .progress { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: .75rem; }
  .staff .tiles, .staff .two-cards { grid-template-columns: minmax(0, 1fr); }
  .staff .hours-row { grid-template-columns: 1fr 1fr; }
  .staff .field-pair { grid-template-columns: minmax(0, 1fr); }
  .staff .delivery-fields { grid-template-columns: minmax(0, 1fr); }
  .staff .page-head > button { margin-left: 0; width: 100%; }
}
