/* The Room — direction B "Departure board". Tokens from TheRoom/preview/source/B-*.dc.html. */
:root {
  --ground: #F6F6F2; --ink: #111111; --accent: #C2410C; --soft: #E4E4DE; --line: #D0D0C9;
  --muted: #55554F; --muted2: #3F3F3A; --dim: #A3A39D; --dim2: #8A8A84; --edge: #B9B9B2;
  --on-ink: #F6F6F2; --on-ink-muted: #BDBDB6; --ink-edge: #4A4A45; --ink-rule: #3F3F3A; --warn-bg: #FFF4EC;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'PingFang HK', 'Microsoft JhengHei', monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--ink); } a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.acc { color: var(--accent); }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.boot { font: 600 20px var(--mono); padding: 40px 20px; }

/* ---------- shell ---------- */
.screen { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 26px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.screen.has-bar { padding-bottom: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; gap: 8px; }
.logo { font: 600 18px var(--mono); text-decoration: none; letter-spacing: 0; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.btn-line { height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; font: 500 13px var(--mono); text-decoration: none; display: inline-flex; align-items: center; }
.btn-line.small { height: 36px; padding: 0 10px; font-size: 12px; }
.back { font: 500 13px var(--mono); text-decoration: none; align-self: flex-start; padding: 6px 0; }
.title-block { border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.eyebrow { font: 500 12px var(--mono); color: var(--muted); }
.h-big { font-size: 30px; font-weight: 700; line-height: 1.15; }
.label { font: 600 12px var(--mono); }
.note { font: 500 11px var(--mono); color: var(--muted2); line-height: 1.5; }
.flag { font: 500 12px var(--mono); background: var(--soft); padding: 8px 10px; }
.err { background: var(--warn-bg); border: 1.5px solid var(--accent); padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.badge { font: 600 11px var(--mono); padding: 5px 8px; white-space: nowrap; }
.badge.ink { background: var(--ink); color: var(--on-ink); }
.badge.acc-line { border: 1.5px solid var(--accent); color: var(--accent); }
.badge.line { border: 1.5px solid var(--ink); }
.badge.dim { border: 1.5px solid var(--edge); color: var(--muted); }

/* ---------- price table ---------- */
.prices { border: 1.5px solid var(--ink); font-family: var(--mono); }
.prices .row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--line); align-items: center; }
.prices .row:last-of-type { border-bottom: 0; }
.prices .head { background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 500; padding: 6px 10px; border-bottom: 0; }
.prices .when { font-size: 11px; color: var(--muted); }
.prices .foot { padding: 6px 10px; font-size: 11px; color: var(--muted2); border-top: 1px solid var(--line); }
.prices .foot button { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; }
.prices-desk .row { grid-template-columns: 1.2fr 0.8fr 0.8fr 1.7fr; }
.prices-desk .when { font-size: 10px; }

/* ---------- bank strip ---------- */
.bank { display: flex; border: 1.5px solid var(--ink); font-family: var(--mono); }
.bank > div { flex: 1; padding: 8px 10px; border-right: 1.5px solid var(--ink); }
.bank > div:last-child { border-right: 0; }
.bank .k { font-size: 11px; color: var(--muted); }
.bank .v { font-size: 20px; font-weight: 600; }
.bank .v.sm { font-size: 14px; margin-top: 4px; }

/* ---------- calendar ---------- */
.month-head { display: flex; justify-content: space-between; align-items: center; }
.month-name { font-size: 26px; font-weight: 700; }
.nav-sq { width: 44px; height: 44px; border: 1.5px solid var(--ink); background: transparent; }
.nav-sq:disabled { border-color: var(--edge); color: var(--dim2); }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font: 500 11px var(--mono); color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.cell { height: 46px; border: 0; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: left; font: 500 14px var(--mono); background: transparent; color: var(--ink); }
.cell .bar { display: block; height: 4px; background: var(--ink); }
.cell.blank { cursor: default; }
.cell.past { color: var(--dim); cursor: default; }
.cell.today span:first-child { font-weight: 600; text-decoration: underline; }
.cell.full { color: var(--dim2); background: repeating-linear-gradient(135deg, var(--soft) 0 4px, var(--ground) 4px 8px); cursor: default; }
.cell.sel { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.cell.sel .bar { background: var(--accent); }
.cell.hol span:first-child::after { content: '•'; color: var(--accent); margin-left: 2px; }

/* ---------- day picker ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.tabs button { height: 48px; border: 0; border-right: 1.5px solid var(--ink); background: transparent; font: 500 12px var(--mono); padding: 0 2px; }
.tabs button:last-child { border-right: 0; }
.tabs button b { display: block; font-weight: 600; }
.tabs button span { display: block; font-size: 10px; }
.tabs button.on { background: var(--ink); color: var(--on-ink); }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chip { height: 40px; border: 1.5px solid var(--ink); background: transparent; font: 500 13px var(--mono); padding: 0; }
.chip.peak { border-top: 5px solid var(--ink); }
.chip.taken { border-color: var(--line); color: var(--dim); text-decoration: line-through; }
.chip.nofit, .chip.past { border-color: var(--line); color: var(--dim2); }
.chip.in { background: var(--soft); }
.chip.start { border-color: var(--accent); background: var(--accent); color: #FFFFFF; font-weight: 600; }
.stepper { display: flex; border: 1.5px solid var(--ink); align-items: stretch; }
.stepper button { width: 60px; height: 60px; border: 0; background: transparent; font: 500 26px var(--mono); }
.stepper button:first-child { border-right: 1.5px solid var(--ink); }
.stepper button:last-child { border-left: 1.5px solid var(--ink); }
.stepper button:disabled { color: var(--edge); }
.stepper .mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stepper .len { font: 600 24px var(--mono); }
.stepper .sub { font: 500 11px var(--mono); color: var(--muted); }
.dock { margin: auto -20px 0; background: var(--ink); color: var(--on-ink); padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; }
.dock .range { font: 600 20px var(--mono); }
.dock .split { font: 500 12px var(--mono); color: var(--on-ink-muted); }
.btn-acc { height: 48px; padding: 0 20px; border: 0; background: var(--accent); color: #FFFFFF; font: 600 14px var(--mono); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn-acc:hover { color: #FFFFFF; }
.btn-acc.wide { height: 50px; width: 100%; font-size: 15px; }
.btn-acc:disabled { background: var(--edge); color: var(--ground); }

/* ---------- checkout ---------- */
.lines { font: 400 13px var(--mono); display: flex; flex-direction: column; gap: 6px; }
.lines > div { display: flex; justify-content: space-between; gap: 10px; }
.lines .total { font-weight: 600; font-size: 15px; border-top: 1.5px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.55); z-index: 5; }
.sheet { background: var(--ground); border: 2px solid var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet.float { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 28px; z-index: 6; max-height: calc(100dvh - 90px); overflow-y: auto; max-width: 496px; margin: 0 auto; }
.sheet .kicker { font: 600 12px var(--mono); color: var(--accent); }
.sheet .headline { font-size: 20px; font-weight: 700; line-height: 1.2; }
.opt { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--edge); padding: 12px; cursor: pointer; }
.opt.on { border: 2px solid var(--ink); }
.opt input { accent-color: var(--ink); width: 20px; height: 20px; margin: 0; flex: none; }
.opt .t { flex: 1; font-size: 14px; }
.opt .d { font: 400 11px var(--mono); color: var(--muted2); display: block; margin-top: 2px; }
.opt .p { font: 600 16px var(--mono); }
.vip { display: flex; gap: 6px; }
.vip input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--ink); padding: 0 10px; font: 500 12px var(--mono); background: transparent; text-transform: uppercase; }
.vip input::placeholder { text-transform: none; color: var(--muted); }
.vip button { height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; font: 600 12px var(--mono); }
.vip-ok { font: 600 12px var(--mono); display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--ink); padding: 0 0 0 10px; height: 44px; }
.vip-ok button { height: 100%; border: 0; border-left: 1.5px solid var(--ink); background: transparent; padding: 0 12px; font: 600 12px var(--mono); }
.terms { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.4; }
.terms input { accent-color: var(--ink); width: 20px; height: 20px; margin: 0; flex: none; }
.owl { background: var(--warn-bg); border: 1.5px solid var(--accent); padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.owl b { display: block; margin-bottom: 2px; }

/* ---------- pay ---------- */
.amount { font: 700 36px var(--mono); }
.seg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.seg2 button { height: 44px; border: 0; background: transparent; font: 600 13px var(--mono); }
.seg2 button:first-child { border-right: 1.5px solid var(--ink); }
.seg2 button.on { background: var(--ink); color: var(--on-ink); }
.qr-frame { align-self: center; position: relative; overflow: hidden; width: 220px; max-width: 70vw; aspect-ratio: 1; background: #FFFFFF; border: 1.5px solid var(--ink); }
/* Same crop offsets as Pamculator's student pages (server/student-web/styles.css) — the JPGs are copied byte-for-byte. */
.qr-frame img { position: absolute; display: block; max-width: none; height: auto; }
.qr-frame[data-layout=fps] img { width: 178.5024%; left: -38.6473%; top: -85.5072%; }
.qr-frame[data-layout=payme] img { width: 137.6923%; left: -19.2308%; top: -41.6667%; }
.qr-row { display: flex; justify-content: center; gap: 14px; font: 500 13px var(--mono); }
.drop { display: flex; align-items: center; justify-content: center; height: 64px; border: 1.5px dashed var(--ink); background: transparent; font: 500 13px var(--mono); width: 100%; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.has { border-style: solid; background: var(--soft); }
.remind { background: var(--warn-bg); border: 1.5px solid var(--accent); padding: 10px 12px; font-size: 13px; line-height: 1.4; }

/* ---------- my bookings ---------- */
.booking { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.booking:last-child { border-bottom: 0; }
.booking-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.grid2 > div { padding: 12px; }
.grid2 > div:first-child { border-right: 1.5px solid var(--ink); }
.grid2 .k { font: 500 11px var(--mono); color: var(--muted); }
.grid2 .v { font: 600 20px var(--mono); }
.vault { background: var(--ink); color: var(--on-ink); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.vault .k { font: 500 12px var(--mono); color: var(--on-ink-muted); display: flex; justify-content: space-between; gap: 8px; }
.vault .room { font: 600 30px var(--mono); }
.pins { display: flex; gap: 6px; }
.pins div { flex: 1; height: 60px; border: 1.5px solid var(--ink-edge); display: flex; align-items: center; justify-content: center; font: 600 28px var(--mono); color: #6A6A64; min-width: 0; }
.pins.open div { border-color: var(--accent); color: var(--on-ink); font-size: 30px; }
.vault .when { font: 600 18px var(--mono); }
.vault .copy { font-size: 13px; color: var(--on-ink-muted); line-height: 1.45; }
.vault button { height: 40px; border: 1.5px solid var(--ink-edge); background: transparent; color: var(--on-ink); font: 500 12px var(--mono); }
.box { border: 1.5px solid var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.box .body { font-size: 13px; line-height: 1.5; white-space: pre-line; }
.links { display: flex; flex-direction: column; font: 500 13px var(--mono); }
.links a, .links button { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border: 0; border-bottom: 1.5px solid var(--ink); text-decoration: none; background: transparent; text-align: left; font: inherit; width: 100%; }
.links button:disabled { color: var(--dim2); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { font: 500 12px var(--mono); color: var(--muted2); display: flex; flex-direction: column; gap: 4px; }
.form input { height: 48px; border: 1.5px solid var(--ink); background: transparent; padding: 0 12px; font: 500 15px var(--sans); }
.linkish { border: 0; background: none; padding: 6px 0; font: 500 13px var(--mono); text-decoration: underline; align-self: flex-start; }
.pkg-card { border: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px; }
.pkg-card .n { font-weight: 700; font-size: 17px; }
.pkg-card .m { font: 500 11px var(--mono); color: var(--muted2); }
.pkg-card .p { font: 600 20px var(--mono); }
.pkg-card button { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- desktop (≥ 1024 px): calendar | time picker | order summary on one screen ---------- */
.desk { min-height: 100vh; display: flex; flex-direction: column; }
.desk-head { height: 68px; padding: 0 40px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 30px; font: 500 13px var(--mono); flex: none; }
.desk-head .logo { font-size: 20px; }
.desk-head nav { display: flex; gap: 24px; align-items: center; }
.desk-head nav a { text-decoration: none; padding: 6px 10px; }
.desk-head nav a.on { background: var(--ink); color: var(--on-ink); }
.desk-bank { margin-left: auto; display: flex; border: 1.5px solid var(--ink); }
.desk-bank > * { padding: 8px 14px; border-right: 1.5px solid var(--ink); text-decoration: none; white-space: nowrap; }
.desk-bank > *:last-child { border-right: 0; }
.desk-lang { height: 36px; padding: 0 12px; border: 1.5px solid var(--ink); background: transparent; font: 500 12px var(--mono); }
.desk-grid { flex: 1; display: grid; grid-template-columns: 380px minmax(0, 1fr) 360px; min-height: 832px; }
.col-cal { padding: 26px 30px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.col-cal .nav-sq { width: 38px; height: 38px; }
.col-cal .cell { font-size: 13px; }
.col-day { padding: 26px 34px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; gap: 12px; }
.half { display: flex; border: 1.5px solid var(--ink); font: 500 12px var(--mono); }
.half button { height: 34px; padding: 0 12px; border: 0; background: transparent; }
.half button:first-child { border-right: 1.5px solid var(--ink); }
.half button.on { background: var(--ink); color: var(--on-ink); }
.keyrow { display: flex; gap: 18px; font: 500 11px var(--mono); color: var(--muted2); align-items: center; flex-wrap: wrap; }
.keyrow .push { margin-left: auto; }
.sw { display: inline-block; width: 18px; height: 10px; border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: middle; }
.sw.peak { border-top-width: 5px; }
.col-day .chips { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.col-day .chip { height: 36px; }
.lenrow { display: flex; gap: 10px; align-items: stretch; }
.lenrow .stepper { width: 250px; flex: none; }
.lenrow .stepper button { width: 52px; height: 52px; font-size: 22px; }
.lenrow .stepper .len { font-size: 20px; }
.lenrow .quick { width: 64px; border: 1.5px solid var(--edge); background: transparent; font: 500 13px var(--mono); }
.lenrow .quick.on { border-color: var(--ink); }
.lenrow .flag { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 12px; font-size: 11px; line-height: 1.4; }
.col-out { background: var(--ink); color: var(--on-ink); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.col-out .eyebrow { color: var(--on-ink-muted); font-weight: 600; }
.col-out .when { font: 600 24px var(--mono); line-height: 1.2; }
.col-out .lines { font-size: 12px; border-top: 1.5px solid var(--ink-rule); padding-top: 10px; }
.col-out .upsell { background: var(--ground); color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.col-out .upsell .kicker { font: 600 11px var(--mono); color: var(--accent); }
.col-out .opt { padding: 9px; gap: 10px; }
.col-out .opt .t { font-size: 13px; }
.col-out .opt .d { font-size: 10px; color: var(--ink); }
.col-out .opt input { width: 18px; height: 18px; }
.col-out .vip input { height: 38px; border-color: var(--ink-edge); color: var(--on-ink); }
.col-out .vip input::placeholder { color: var(--on-ink-muted); }
.col-out .vip button { height: 38px; padding: 0 12px; border-color: var(--on-ink); color: var(--on-ink); }
.col-out .vip-ok { border-color: var(--on-ink); height: 38px; }
.col-out .vip-ok button { border-color: var(--on-ink); color: var(--on-ink); }
.col-out .terms input { accent-color: var(--on-ink); width: 18px; height: 18px; }
.col-out .terms a { color: var(--on-ink); }
.col-out .note { color: var(--on-ink-muted); }
.col-out .tot { margin-top: auto; display: flex; justify-content: space-between; font: 600 22px var(--mono); }
.col-out .owl { color: var(--ink); }
.col-out .err { color: var(--ink); }
.col-out .empty { font: 500 12px var(--mono); color: var(--on-ink-muted); line-height: 1.6; }
.desk-page { max-width: 560px; width: 100%; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-direction: column; gap: 14px; }
.desk-page.wide { max-width: 980px; }
.desk-page .booking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.desk-page .booking { border: 2px solid var(--ink); padding: 18px; }

/* Round 4: building name (public), full address (booked only), limited-sale package rows */
.vault .address { font: 600 17px var(--mono); line-height: 1.4; }
.prices .row.sale { border-top: 1.5px solid var(--ink); border-bottom: 0; background: var(--warn-bg); }
.prices .row.sale .when { color: var(--accent); font-weight: 600; font-size: 10px; }

/* ---------- Jeff round 5 (19 Oct) ---------- */
/* Start/end picking: tap a start, then an end; CLEAR resets. */
.label-row { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.label-row .hint { font: 500 11px var(--mono); color: var(--accent); }
.label-row .clear { margin-left: auto; height: 28px; padding: 0 10px; border: 1.5px solid var(--ink); background: transparent; font: 600 11px var(--mono); }
.chip.endpt { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.col-day > .flag { align-self: flex-start; }
.lenrow .stepper { width: 300px; }
/* Banked hours: big number, small units; tagged so it reads as hours, not money. */
.bank .v small, .desk-bank small { font-size: 0.55em; font-weight: 500; color: var(--muted); }
.bank .v { font-size: 18px; white-space: nowrap; }
.bank .v.sm { font-size: 13px; }
.desk-bank .tag { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.desk-head { gap: 20px; padding: 0 28px; }
.desk-head nav { gap: 12px; }
/* Checkout column and booking-details panel: light grey instead of black. */
.col-out { background: var(--soft); color: var(--ink); border-left: 2px solid var(--ink); }
.col-out .eyebrow, .col-out .note, .col-out .empty { color: var(--muted2); }
.col-out .lines { border-top-color: var(--ink); }
.col-out .vip input { border-color: var(--ink); color: var(--ink); }
.col-out .vip input::placeholder { color: var(--muted); }
.col-out .vip button, .col-out .vip-ok, .col-out .vip-ok button { border-color: var(--ink); color: var(--ink); }
.col-out .terms input { accent-color: var(--ink); }
.col-out .terms a { color: var(--ink); }
.vault { background: var(--soft); color: var(--ink); border: 1.5px solid var(--ink); }
.vault .k, .vault .copy { color: var(--muted2); }
.pins div { border-color: var(--edge); color: var(--dim2); }
.pins.open div { border-color: var(--accent); color: var(--ink); background: var(--ground); }
.vault button { border-color: var(--ink); color: var(--ink); }
/* My bookings groups */
.group { display: flex; flex-direction: column; gap: 12px; }
.group-title { font: 600 13px var(--mono); border-bottom: 2px solid var(--ink); padding-bottom: 6px; display: flex; gap: 8px; }
.group-title span { color: var(--muted); }
.booking-stack { display: flex; flex-direction: column; gap: 18px; }
.grid2 .v.sm { font-size: 14px; }
.btn-line.payme { align-self: center; height: 44px; }
.grid2 .v { font-size: 17px; }

/* ---------- Round 6 (19 Oct): real logo; banked hours in a sub-row under the desktop header ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { display: block; height: 40px; width: auto; }
.desk-head .logo-img { height: 44px; }
.boot .logo-img { height: 56px; }
.building-line { color: var(--muted2); font-weight: 600; }
.head-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.head-right .btn-line.small { height: 36px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }
.bank-row { height: 40px; flex: none; padding: 0 28px; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 22px; font: 500 12px var(--mono); background: var(--soft); }
.bank-row .tag { background: var(--ink); color: var(--on-ink); padding: 4px 8px; font-weight: 600; }
.bank-row b { font-size: 14px; }
.bank-row small { font-size: 10px; font-weight: 500; color: var(--muted); }
.bank-row .push { margin-left: auto; text-decoration: none; font-weight: 600; }
.desk-grid { min-height: 792px; }
/* 12-hour chip labels need more room on narrower desktops (1024–1360 px). */
@media (max-width: 1360px) { .col-day .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } .col-day .chip { font-size: 12px; } }

/* ---------- Round 7 (19 Oct): My bookings = agenda timeline (direction C) ---------- */
.agenda { display: flex; flex-direction: column; }
.ag-month { font: 600 12px var(--mono); color: var(--muted2); border-bottom: 1.5px solid var(--ink); padding: 10px 0 4px; margin-bottom: 10px; }
.ag-month.hist { margin-top: 18px; }
.ag-day { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; scroll-margin-top: 120px; }
.ag-date { text-align: center; font-family: var(--mono); padding-top: 2px; }
.ag-date b { display: block; font-size: 24px; line-height: 1; }
.ag-date span { font-size: 10px; color: var(--muted); }
.ag-rail { border-left: 2px solid var(--ink); padding: 0 0 16px 14px; position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ag-rail::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.ag-rail.wait::before { background: var(--ground); border: 2px solid var(--accent); box-sizing: border-box; }
.ag-rail.pay::before { background: var(--accent); }
.ag-rail.dim { border-left-color: var(--edge); }
.ag-rail.dim::before { background: var(--edge); }
.ag-now { font: 600 11px var(--mono); color: var(--accent); }
.ag-card { border: 1.5px solid var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--ground); min-width: 0; }
.ag-card.open { background: var(--soft); }
.ag-card.pay { border-color: var(--accent); background: var(--warn-bg); }
.ag-card.dim { border-color: var(--line); color: var(--dim2); }
.ag-t { font: 600 16px var(--mono); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-t > span:first-child { margin-right: auto; }
.ag-card .lbl { font: 600 11px var(--mono); color: var(--muted2); }
.ag-card .address { font: 600 15px var(--mono); line-height: 1.4; }
.ag-card .small { font: 500 11px var(--mono); color: var(--muted2); line-height: 1.5; }
.ag-card .pins div { height: 50px; font-size: 24px; }
.ag-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ag-actions .btn-acc { height: 38px; font-size: 12px; padding: 0 12px; }
.ag-link { border: 0; background: none; padding: 4px 0; font: 600 11px var(--mono); text-decoration: underline; text-align: left; color: var(--ink); }
.ag-terms summary { font: 600 11px var(--mono); cursor: pointer; }
.ag-terms .body { font-size: 13px; line-height: 1.5; white-space: pre-line; padding-top: 6px; }
.badge.pay { background: var(--accent); color: #FFFFFF; }
.desk-page.full { max-width: none; padding: 0; }
.ag-desk { display: grid; grid-template-columns: 260px minmax(0, 1fr) 380px; min-height: calc(100vh - 110px); }
.ag-desk > * { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.ag-index { border-right: 2px solid var(--ink); gap: 2px !important; }
.ag-index .lbl { font: 600 11px var(--mono); color: var(--muted); margin-bottom: 8px; }
.ag-jump { display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 0; font: 500 13px var(--mono); text-align: left; }
.ag-jump.pay span:last-child, .ag-jump.review span:last-child { color: var(--accent); }
.ag-jump.dim { color: var(--dim2); }
.ag-side { border-left: 2px solid var(--ink); background: var(--soft); }
.ag-side .lbl { font: 600 12px var(--mono); }
.ag-main { max-width: 760px; }
/* Accent the bank labels (OFF-PEAK / PEAK / EXPIRES) so the strip reads as a titled panel. */
.bank .k { color: var(--accent); font-weight: 600; }
.bank-row i { font-style: normal; color: var(--accent); font-weight: 600; }

/* ---------- Round 8 (19 Oct): one box per password, two passwords, T&C labels ---------- */
.pw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pw { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pw-box { border: 2px solid var(--accent); background: var(--ground); height: 58px; display: flex; align-items: center; justify-content: center;
  font: 600 26px var(--mono); letter-spacing: 0.18em; padding-left: 0.18em; overflow: hidden; white-space: nowrap; }
.pw-box span { font-size: 11px; letter-spacing: 0; color: var(--muted2); }
.terms-text p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; }
.terms-text p:last-child { margin-bottom: 0; }
.box .body.terms-text { white-space: normal; }
.pw-pair { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .pw-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Round 10: serious rules and penalties in the T&C are red (**text** in the stored terms). */
:root { --danger: #8B1E1E; }
.terms-text strong.hl { color: var(--danger); font-weight: 700; }
/* Round 11: Instagram icon in the top bars */
.ig { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); color: var(--ink); }
.desk-head .ig { width: 36px; height: 36px; }
.ig:hover { color: var(--accent); border-color: var(--accent); }
.top-actions { gap: 6px; }

/* VIP codes only go with packages (Jeff, 19 Oct): reason shown instead of the field when paying hourly. */
.vip-off { font: 500 11px var(--mono); color: var(--muted2); border: 1.5px dashed var(--edge); padding: 10px; line-height: 1.5; }

/* Phone tab row under the top bar (Jeff approved 19 Oct): 預約 · 套票 · 守則, current page filled. */
.nav-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); margin-top: -4px; }
.nav-tabs a { height: 44px; display: flex; align-items: center; justify-content: center; font: 600 13px var(--mono); text-decoration: none; color: var(--ink); border-right: 1.5px solid var(--ink); }
.nav-tabs a:last-child { border-right: 0; }
.nav-tabs a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.nav-tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
