/* Snow Tune staff app and customer form. Brand tokens and fonts come from brand.css (unchanged from the live site). */
:root {
  --brand: var(--rust);
  --muted: #5d636a;
  --line: #e6dcd9;
  --card: #ffffff;
  --ok: #17753f;
  --ok-bg: #e3f4ea;
  --info: #1d4f91;
  --info-bg: #e6eef9;
  --warn: #8a5a12;
  --warn-bg: #fbf0dc;
  --bad: #c53030;
  --bad-bg: #fdeaea;
  --radius: 12px;
  --rail: 88px;
  --top: 64px;
  --tap: 44px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--rust); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.muted { color: var(--muted); }
kbd { font: 600 12px/1 var(--font-body); border: 1px solid #b9b3b1; border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; background: #fff; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 8px 16px; border-radius: 10px; border: 2px solid transparent; background: #fff; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn.primary { background: var(--rust); color: #fff; }
.btn.primary:hover { background: #a63f29; }
.btn.secondary { border-color: var(--rust); color: var(--rust); background: #fff; }
.btn.ghost { border-color: #c9c2c0; background: #fff; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink); text-decoration: underline; padding: 8px 10px; }
.btn.danger { border-color: var(--bad); color: var(--bad); background: #fff; }
.btn.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: 15px; }
.btn.big { min-height: 56px; font-size: 18px; padding: 10px 22px; }
.btn.block { width: 100%; }
.icon-btn { min-width: var(--tap); min-height: var(--tap); border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 20px; }

/* Staff shell */
body.staff { background: var(--snow); height: 100dvh; display: grid; grid-template-columns: var(--rail) 1fr; grid-template-rows: var(--top) 1fr; overflow: hidden; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--coral); color: var(--ink); }
.topbar .logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.topbar .brand { font-size: 21px; line-height: 1; white-space: nowrap; }
.topbar .brand span { font-weight: 500; }
.demo-badge { background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.search { flex: 1; position: relative; max-width: 560px; margin-left: 8px; }
.search input { width: 100%; min-height: var(--tap); border-radius: 10px; border: 2px solid transparent; padding: 8px 44px 8px 14px; font-size: 16px; background: #fff; }
.search input:focus { border-color: var(--ink); outline: none; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.top-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.topbar .btn.primary { background: var(--ink); }
.topbar .btn.primary:hover { background: #000; }
.who { border-color: var(--ink); background: transparent; }

.rail { grid-row: 2; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: #fff; border-right: 1px solid var(--line); }
.rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); padding: 6px 2px; }
.rail button .n { font-family: var(--font-head); font-size: 20px; line-height: 1; }
.rail button[aria-current="page"] { background: var(--blush); color: var(--ink); box-shadow: inset 4px 0 0 var(--rust); }
.rail .spacer { flex: 1; }

.main { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; min-height: 0; }
.main.reports-on { grid-template-columns: 1fr; }
.pane { min-height: 0; overflow: auto; }
.list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.detail-pane { background: var(--snow); }

/* List */
.list-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.list-title { display: flex; align-items: center; gap: 10px; }
.list-title h1 { font-size: 22px; margin: 0; flex: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 2px solid #6b7076; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .c { font-weight: 700; margin-left: 4px; }
.chip.bad .c { color: var(--bad); }
.chip.bad[aria-pressed="true"] .c { color: #ffd0d0; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 12px; border-bottom: 1px solid #f1ebe9; min-height: 64px; }
.row.current { background: #fff5f2; box-shadow: inset 4px 0 0 var(--rust); }
.row.kb { outline: 2px dashed var(--rust); outline-offset: -3px; }
.row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; padding: 6px 0; cursor: pointer; min-height: var(--tap); }
.row-main { min-width: 0; flex: 1; }
.row-line1 { display: flex; gap: 8px; align-items: baseline; }
.row-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-claim { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-line2 { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .btn { min-width: 84px; }
.row-check { width: 28px; height: 28px; flex: none; accent-color: var(--rust); }
.row-check-wrap { display: flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); cursor: pointer; }
.day { flex: none; width: 52px; text-align: center; border-radius: 8px; padding: 4px 0; font: 600 15px/1.1 var(--font-head); text-transform: uppercase; background: #f2eeed; color: var(--ink); }
.day small { display: block; font: 500 11px/1.2 var(--font-body); text-transform: none; }
.day.today { background: var(--coral); }
.day.overdue { background: var(--bad); color: #fff; }
.day.rush { background: var(--ink); color: #fff; }
.day.done { background: #f2eeed; color: var(--muted); }
.flag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.flag.quote { background: var(--warn-bg); color: var(--warn); }
.flag.rush { background: var(--ink); color: #fff; }
.flag.qr { background: var(--info-bg); color: var(--info); }
.flag.texted { background: var(--ok-bg); color: var(--ok); }
.flag.optout { background: #eee; color: #444; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.group-h { margin: 0; padding: 10px 14px 6px; font: 600 14px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf7f6; border-bottom: 1px solid var(--line); }
.more-row { padding: 12px; text-align: center; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.badge.neutral { background: #eeeae9; color: #3c4146; }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.done { background: #eeeae9; color: var(--muted); }

/* Detail */
.detail { padding: 16px 20px 120px; max-width: 900px; }
.detail-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 24px; }
.detail-empty h2 { color: var(--ink); }
.back { display: none; }
.d-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.d-head h2 { margin: 0; font-size: 26px; }
.d-claim { font: 600 16px/1.2 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.d-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); margin: 6px 0 0; }
.d-meta a { color: var(--ink); font-weight: 600; }
.d-money { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 12px 0; font-variant-numeric: tabular-nums; }
.d-money b { font-size: 18px; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card h3 { font-size: 15px; margin: 0 0 8px; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1ebe9; }
.item:first-child { border-top: 0; }
.item-what { min-width: 0; }
.item-what b { display: block; }
.item-what span { color: var(--muted); font-size: 15px; }
.item-price { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.item-actions { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }
.consents { display: grid; gap: 6px; }
.consent-line { display: flex; gap: 8px; align-items: center; }
details.more > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; }
.history { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.history li { padding: 6px 0; border-top: 1px solid #f1ebe9; display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.history time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Batch bar and toast */
.batch-bar { position: fixed; left: calc(var(--rail) + 12px); right: 12px; bottom: 12px; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.batch-bar .count { font-weight: 700; margin-right: auto; }
.batch-bar .btn { background: #fff; color: var(--ink); }
.batch-bar .btn.quiet { background: transparent; color: #fff; }
.batch-bar .never { flex-basis: 100%; font-size: 13px; color: #d9d4d2; margin: 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 30; display: flex; gap: 14px; align-items: center; background: #1b1e21; color: #fff; padding: 10px 12px 10px 18px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: calc(100vw - 24px); }
.toast.bad { background: var(--bad); }
.toast .btn { background: #fff; color: var(--ink); }
.batch-bar:not([hidden]) ~ .toast { bottom: 96px; }

/* Dialogs */
dialog.dlg { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); background: #fff; }
dialog.dlg.wide { width: min(980px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(33,37,41,.45); }
.dlg-head { position: sticky; top: 0; background: #fff; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 20px; flex: 1; }
.dlg-body { padding: 16px 20px; }
.dlg-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dlg-foot .grow { flex: 1; }
.field { display: block; font-weight: 600; margin: 10px 0 4px; }
.input { display: block; width: 100%; min-height: 48px; font-size: 16px; padding: 10px 12px; border: 1px solid #a9a3a1; border-radius: 10px; background: #fff; }
.input:focus { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.pill { min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid #6b7076; background: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { background: var(--coral); border-color: var(--ink); }
.pill[aria-pressed="true"]::before, .pill[aria-checked="true"]::before { content: '\2713'; margin-right: 6px; font-weight: 800; }
.check { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 16px; margin: 8px 0; cursor: pointer; }
.check input { width: 28px; height: 28px; flex: none; accent-color: var(--rust); }
.consent-box { border: 1px solid var(--line); border-radius: 10px; padding: 2px 12px; margin: 10px 0; background: #fff; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0; }
.err { color: var(--bad); font-weight: 600; margin: 6px 0; }
.ok-text { color: var(--ok); font-weight: 700; }
.ack { font-size: 14px; color: var(--muted); margin: 0; }

/* Quick drop-off tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0; }
.tile { border: 2px solid #d7d0ce; border-radius: 12px; padding: 10px 12px; background: #fff; display: grid; gap: 4px; }
.tile.on { border-color: var(--ink); background: #fff5f2; }
.tile-eq { font: 600 15px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.tile-svc { font-weight: 600; }
.tile-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: var(--tap); height: var(--tap); border-radius: 10px; border: 2px solid #6b7076; background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-line { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pickup */
.pick-items { list-style: none; margin: 0; padding: 0; }
.pick-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f1ebe9; }
.pick-item .check { margin: 0; min-height: var(--tap); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.methods .pill { border-radius: 12px; min-height: 56px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-variant-numeric: tabular-nums; margin: 10px 0; }
.sum .t { font-weight: 700; font-size: 20px; }

/* Labels */
.label-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.lbl { width: 288px; height: 192px; border: 1px solid #999; border-radius: 6px; background: #fff; padding: 9px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; gap: 2px 6px; color: #000; font-family: Helvetica, Arial, sans-serif; }
.lbl[data-size="2x2"] { width: 192px; }
.lbl[data-size="3x3"] { height: 288px; }
.lbl-claim { font-weight: 700; font-size: 17px; }
.lbl-day { background: #000; color: #fff; font-weight: 700; font-size: 18px; padding: 0 8px; border-radius: 3px; text-align: center; }
.lbl-type { grid-column: 1 / -1; font-weight: 700; font-size: 26px; line-height: 1.05; }
.lbl-svc { font-weight: 700; font-size: 12px; align-self: start; }
.lbl-bottom { font-weight: 700; font-size: 13px; align-self: end; line-height: 1.2; }
.lbl-qr { grid-row: 3 / 5; grid-column: 2; align-self: end; width: 78px; height: 78px; }
.lbl-qr img, .lbl-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.lbl-check { position: relative; }

/* Reports */
.reports { padding: 16px 20px 60px; overflow: auto; }
.reports h1 { margin: 0 0 4px; font-size: 24px; }
.slicers { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin: 10px 0 14px; position: sticky; top: 0; z-index: 3; }
.slicer { display: grid; gap: 4px; }
.slicer > span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.slicer select { min-height: var(--tap); border-radius: 10px; border: 1px solid #a9a3a1; padding: 6px 10px; background: #fff; }
.slicer .chips { margin: 0; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.kpi .k { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .v { font: 600 28px/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 14px; font-weight: 600; }
.kpi .d.up { color: var(--ok); }
.kpi .d.down { color: var(--bad); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 14px; }
.chart-card { background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); min-width: 0; }
.chart-card header { display: flex; align-items: baseline; gap: 8px; }
.chart-card h2 { font-size: 16px; margin: 0; flex: 1; }
.chart-card .note { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.chart-card .note.caveat { color: var(--warn); font-weight: 600; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .mark { cursor: pointer; }
.chart .mark:focus { outline: none; }
.chart .mark:focus-visible { stroke: var(--ink); stroke-width: 3; }
.chart .dim { opacity: .28; }
.chart .axis text { font-size: 11px; fill: #5d636a; font-family: var(--font-body); }
.chart .axis line, .chart .grid line { stroke: #ece6e4; }
.chart .zero { stroke: #a9a3a1; }
.chart .val { font-size: 11px; fill: #3c4146; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend button.chip { min-height: 32px; font-size: 13px; padding: 2px 10px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #1b1e21; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.35; max-width: 260px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tip b { display: block; }
.table-wrap { overflow: auto; max-height: 260px; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #f1ebe9; }
table.data th { position: sticky; top: 0; background: #fff; }
.sw-est { fill: url(#hatch); }

/* Lock screen */
.lock { position: fixed; inset: 0; z-index: 60; background: var(--snow); display: grid; place-items: center; padding: 20px; }
.lock-card { background: #fff; border-radius: 16px; padding: 24px; width: min(420px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.12); text-align: center; }
.lock-card .logo { width: 72px; height: 72px; border-radius: 50%; }
.pin { letter-spacing: .5em; text-align: center; font-size: 24px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.keypad button { min-height: 60px; font-size: 24px; font-weight: 700; border-radius: 12px; border: 2px solid #d7d0ce; background: #fff; cursor: pointer; }

/* Help */
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }

/* iPad portrait and small laptops: the order opens as a sheet over the list */
@media (max-width: 1023px) {
  .main { grid-template-columns: 1fr; }
  .detail-pane { position: fixed; z-index: 15; top: var(--top); right: 0; bottom: 0; width: min(720px, 100%); box-shadow: -10px 0 40px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .18s ease-out; visibility: hidden; }
  .detail-pane.open { transform: none; visibility: visible; }
  .back { display: inline-flex; }
  .charts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .detail-pane { transition: none; } }

/* Phone: tabs at the bottom, compact header */
@media (max-width: 699px) {
  :root { --rail: 0px; --top: 112px; }
  body.staff { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .topbar .brand { display: none; }
  .search { order: 3; flex-basis: 100%; margin: 0; max-width: none; }
  .search kbd { display: none; }
  .demo-badge { font-size: 11px; }
  .top-actions .label-long { display: none; }
  .top-actions .label-short { display: inline; }
  .rail { grid-row: 3; grid-column: 1; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .rail button { flex: 1; min-height: 56px; font-size: 13px; }
  .rail { position: relative; z-index: 16; }
  .detail-pane { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .rail .spacer { display: none; }
  .main { grid-column: 1; }
  .row { min-height: 56px; padding: 4px 8px; gap: 8px; }
  .row .btn { min-width: 72px; padding: 6px 10px; }
  .day { width: 46px; }
  .batch-bar { left: 8px; right: 8px; bottom: 72px; }
  .detail { padding: 12px 14px 120px; }
  .grid2 { grid-template-columns: 1fr; }
  .history li { grid-template-columns: 1fr; gap: 0; }
  .methods { grid-template-columns: 1fr; }
  .reports { padding: 12px 10px 80px; }
  .charts { grid-template-columns: 1fr; }
  .slicers { position: static; }
  dialog.dlg, dialog.dlg.wide { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}

/* Customer form */
body.customer { background: var(--snow); color: var(--ink); }
.c-top { background: var(--coral); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.c-top .logo { width: 44px; height: 44px; border-radius: 50%; }
.c-top .brand { font-size: 22px; line-height: 1; }
.c-top .brand span { font-weight: 500; }
.c-top h1 { font-size: 16px; margin: 0; }
.c-top .staff-link { margin-left: auto; min-height: 48px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; padding: 8px; }
.c-wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 260px; }
.item-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 12px 0; background: #fff; }
.item-card-head { display: flex; justify-content: space-between; align-items: center; }
.item-no { font-weight: 800; color: var(--rust); }
.c-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.c-bar-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 6px; }
.c-done { text-align: center; padding: 30px 10px; }
.c-done .claim { font: 600 40px/1.1 var(--font-head); letter-spacing: .04em; }
.app-shell { display: contents; }
/* Question labels read as plain text, not shouty headings (the live form does the same). */
.field { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 17px; }
h2.item-no { font-size: 18px; margin: 0; }
.dlg-foot .btn { white-space: normal; text-align: center; }
.slicers-wrap > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 700; padding: 0 4px; }
.slicers-wrap:not([open]) { margin: 6px 0 12px; }
@media (min-width: 700px) { .slicers-wrap > summary { display: none; } }
@media (max-width: 699px) {
  .dlg-foot .btn.big { flex: 1 1 100%; }
  .slicers-wrap > summary { background: #fff; border-radius: var(--radius); padding: 8px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
}
details.extras > summary { display: list-item; cursor: pointer; min-height: var(--tap); padding-top: 8px; }
.rows { padding-bottom: 150px; }

/* Order tools and item exceptions (order-level work; per-item controls tucked away) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.pill.small { min-height: 44px; padding: 6px 12px; font-size: 15px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.item-more { position: relative; }
.item-more > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid #c9ccd0; list-style: none; }
.item-more > summary::-webkit-details-marker { display: none; }
.item-more-body { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item-notes { display: block; color: #4a4f55; margin-top: 2px; }
.item.cancelled .item-what, .item.cancelled .item-price { text-decoration: line-through; color: #6b7076; }
.approval.need { border-color: #b3261e; }
.skier { border: 1px solid #c9ccd0; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.tbl { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e1e3e6; vertical-align: middle; }
.tbl tr.t th, .tbl tr.t td { font-weight: 700; }
.input.small { min-height: 40px; padding: 4px 8px; width: auto; max-width: 9em; }
.set-row { display: grid; grid-template-columns: 1fr minmax(8em, 14em) auto; gap: 8px; align-items: end; }
@media (max-width: 600px) { .set-row { grid-template-columns: 1fr; } .tbl { font-size: 14px; } }

/* QA 2026-12-05 */
.label-short { display: none; }
.pick-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted, #5b6168); text-transform: uppercase; letter-spacing: .03em; padding: 0 0 4px; }
.pick-head span:first-child { min-width: 52px; }
.pick-item > .check:first-child { min-width: 52px; }
.dlg-guard { position: sticky; top: 0; z-index: 2; background: #fff7e6; border-bottom: 1px solid #f0c36d; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dlg-guard p { margin: 0; flex: 1 1 14em; font-weight: 600; }
.dev-this { font-weight: 700; }
/* Settings on a phone: the price and hours tables become one card per row, with each field labelled, so nothing is off
   the right edge and the service name stays next to its Save button (QA L-phone-PRICES). */
@media (max-width: 700px) {
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody { display: block; }
  .tbl.stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid #e1e3e6; }
  .tbl.stack td { display: block; border: 0; padding: 0; min-width: 0; }
  .tbl.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted, #5b6168); }
  .tbl.stack td.wide { grid-column: 1 / -1; font-weight: 700; }
  .tbl.stack td .input { width: 100%; box-sizing: border-box; }
}

/* Tonight panel (queue view), label print state, live-update badge (2026-12-05) */
.tonight { margin: 8px 12px 12px; }
.tonight summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tonight .load { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); }
.tonight .load.amber { background: var(--warn-bg); }
.tonight .load.red { background: var(--bad-bg); }
.tonight .load.off { background: #f3f1ef; }
.tonight .load-bar { width: 100%; height: 10px; }
.tonight .hours-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tonight .banner.wip { background: var(--warn-bg); color: var(--warn); padding: 6px 10px; border-radius: 8px; margin: 6px 0; }
.tonight .risk-list { list-style: none; padding: 0; margin: 4px 0 0; }
.tonight .risk-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.tonight h3 { margin: 10px 0 4px; font-size: 1rem; color: var(--bad); }
.label-state { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.label-state.warn { color: var(--warn); font-weight: 600; }
.demo-badge[data-live="live"]::after { content: " · live"; }
.owner-list { list-style: none; padding: 0; margin: 8px 0; }
.owner-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.owner-list li .grow { flex: 1 1 200px; }
.terms-text { white-space: pre-wrap; font-size: .95rem; }
.qr-box { display: inline-block; background: #fff; padding: 8px; border-radius: 8px; }
