/* 🎟️ GlyphSlip — one stylesheet for the door, the guest pass, GlyphSlip Desk and the print foundry (Window H1).
 * No inline styles anywhere (the CSP has no 'unsafe-inline'): every state is a class or a data- attribute. */
:root {
  --paper: #f7f3ec; --card: #fffdf8; --ink: #1d2327; --ink-2: #4c565c; --line: #e3dccf;
  --accent: #0f766e; --accent-ink: #ffffff; --gold: #b7791f; --ok: #15803d; --bad: #b91c1c; --warn: #b45309;
  --radius: 14px; --shadow: 0 1px 2px rgba(29, 35, 39, .06), 0 6px 18px rgba(29, 35, 39, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--font); min-height: 100vh; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.fine { font-size: 12.5px; color: var(--ink-2); }
.mono { font-family: var(--mono); letter-spacing: .02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-big { min-height: 72px; font-size: 22px; border-radius: 16px; width: 100%; }
.btn-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 140px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.card[hidden], .stack[hidden], .btn-row[hidden] { display: none; } /* GSP-4b judge r2 (row 11): a card held back is not drawn — never an empty frame */
.stack > p, .card > p { margin: 0; }
.card > p + p { margin-top: 6px; }
label.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { width: 100%; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 8px 12px; font-size: 16px; color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; min-height: 44px; border: 0; background: var(--card); font-weight: 600; cursor: pointer; padding: 6px 8px; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
/* GSP-12 · Policies: the amenity pills (a pressed pill is on: a tinted fill and a drawn check, never a second solid key), the Owner's "who sees it" switch under a house rule, and the Wi-Fi card's remove key */
.policy-field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.policy-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-tag.gs-key { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gs-ink-2); }
.policy-tag.gs-key[aria-pressed="true"] { background: color-mix(in srgb, var(--gs-hue) 18%, var(--gs-s2)); color: var(--gs-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--gs-hue), 0 1px 2px rgb(0 0 0 / .3); }
.policy-tag.gs-key[aria-pressed="true"]::after { content: ""; width: 6px; height: 11px; margin: -3px 2px 0 0; border: solid var(--gs-hue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.policy-tag.gs-key:disabled { opacity: .6; }
.policy-row { display: grid; gap: 4px; min-width: 0; }
label.check.policy-aud { min-height: 44px; font-size: 14px; color: var(--ink-2); }
#wifi-card > .wifi-clear { justify-self: start; max-width: 100%; white-space: normal; }
#wifi-card > .wifi-clear[hidden] { display: none; }
#wifi-card > .wifi-clear[data-armed] { background: color-mix(in srgb, var(--gs-no) 14%, var(--gs-s2)); color: var(--gs-no); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gs-no) 50%, transparent); } /* armed: the kit's danger look, so the second tap is a seen choice */

/* ── the door ─────────────────────────────────────────────────────────────────────────────────── */
.door { display: flex; flex-direction: column; }
.door-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.brand-mark { color: var(--accent); font-size: 20px; }
.door-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 20px 24px; }
.door-main h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
.door-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; max-width: 640px; }
.door-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.door-chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.door-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.door-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.door-how div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; align-content: start; gap: 4px; }
.door-how span { color: var(--ink-2); font-size: 15px; }
.door-fine { font-size: 13px; color: var(--ink-2); }
.colophon { text-align: center; padding: 18px 16px 28px; font-size: 12px; }
.colophon a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* ── the guest pass ───────────────────────────────────────────────────────────────────────────── */
.pass { max-width: 520px; margin: 0 auto; padding: 0 14px 16px; display: grid; gap: 12px; }
body.has-dock { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.pass-head { padding: 18px 4px 10px; }
.pass-greet { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: var(--ink); } /* H6c · the local-only greeting */
.pass-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pass-room { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; }
.pass-room.is-hidden { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.pass-dates { color: var(--ink-2); font-size: 15px; }
.wallet { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.wallet-num { font-size: 54px; font-weight: 800; line-height: 1; min-width: 64px; text-align: center; }
.wallet-cap { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.badge { margin-top: 12px; border-radius: 12px; padding: 12px 14px; color: #fff; display: grid; gap: 2px; position: relative; overflow: hidden; }
.badge-day { font-weight: 800; font-size: 18px; }
.badge-clock { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .04em; }
.badge-state { font-size: 14px; opacity: .95; }
.badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); animation: sheen 2.4s linear infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .badge::after { animation: none; } }
.price { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.permit { display: grid; gap: 4px; }
.permit-car { font-weight: 700; font-size: 17px; }
.row-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.notice { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.notice-warn { background: #fff4e0; color: #7a3d00; border: 1px solid #f3c98b; }
.notice-bad { background: #fde8e8; color: #7f1d1d; border: 1px solid #f5b5b5; }
.notice-ok { background: #e6f6ec; color: #14532d; border: 1px solid #a7dcb9; }
.notice-offline { background: #e8eef7; color: #1e3a5f; border: 1px solid #b6c8e3; margin: 0; }
.discount { background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border: 0; }
.discount b { font-size: 22px; display: block; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 243, 236, .96); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: center; z-index: 5; }
.dock .btn { flex: 1; max-width: 380px; white-space: nowrap; }
.drawer { position: fixed; inset: auto 0 0 0; background: var(--card); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); z-index: 9; max-width: 560px; margin: 0 auto; text-align: center; }
.drawer h2 { margin: 0 0 4px; font-size: 20px; }
.code { font-family: var(--mono); font-size: 44px; font-weight: 800; letter-spacing: .14em; margin: 8px 0 4px; }
.tick { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 0 auto 12px; max-width: 240px; }
.tick > i { display: block; height: 100%; background: var(--accent); width: 100%; transition: width 1s linear; }
.qr-box { display: inline-block; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 200px; height: 200px; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 8; }
.permit-hero { text-align: center; padding: 28px 16px; }
.permit-hero .state { font-size: 40px; font-weight: 900; letter-spacing: .04em; }
.state-ok { color: var(--ok); } .state-bad { color: var(--bad); }

/* ── GlyphSlip Desk (a dark night-audit HUD) ──────────────────────────────────────────────────── */
body.desk { --paper: #0f1417; --card: #172026; --ink: #eef2f3; --ink-2: #a5b3ba; --line: #2a3740; --accent: #2dd4bf; --accent-ink: #062b27; color-scheme: dark; }
body.desk .field input, body.desk .field select { background: #0c1114; color: var(--ink); }
.hud { max-width: 1100px; margin: 0 auto; padding: 0 12px 40px; }
.hud-head { display: flex; align-items: center; gap: 10px; padding: 12px 2px; flex-wrap: wrap; }
.hud-head h1 { font-size: 17px; margin: 0; flex: 1; letter-spacing: .02em; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink-2); }
.folio-bar { display: flex; align-items: center; gap: 10px; background: #3a2d07; border: 1px solid #a16207; color: #fde68a; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; cursor: pointer; width: 100%; text-align: left; font-weight: 700; min-height: 44px; }
.folio-list { display: grid; gap: 6px; margin-bottom: 10px; }
.folio-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.tabs button { flex: 0 0 auto; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.scanbar { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; margin-bottom: 10px; }
.scanbar input { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #0c1114; padding: 8px 12px; font-size: 18px; color: var(--ink); min-width: 0; }
.scanbar .btn { min-height: 52px; }
.cam { position: relative; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 10px; }
.cam video { width: 100%; max-height: 46vh; display: block; object-fit: cover; }
.cam .reticle { position: absolute; inset: 18% 22%; border: 3px solid var(--accent); border-radius: 16px; pointer-events: none; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 8px; background: rgba(0, 0, 0, .55); }
.cam-hint { flex: 1; font-size: 13px; color: #d5e1e5; }
.pwa-sheet { text-align: left; }
.pwa-icon { display: block; width: 64px; height: 64px; margin: 0 auto 6px; }
.pwa-sheet h2 { text-align: center; }
.pwa-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; counter-reset: step; }
.pwa-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; background: #0c1114; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pwa-steps li::before { content: attr(data-step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.pwa-steps span { font-size: 13px; color: var(--ink-2); }
.pane { display: grid; gap: 10px; }
.stayline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.stayline .room { font-size: 30px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: #0c1114; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.kpi b { display: block; font-size: 26px; }
.kpi span { font-size: 12px; color: var(--ink-2); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: 6px; border: 1px solid rgba(255, 255, 255, .4); }
.verdict { border-radius: 16px; padding: 18px; text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .03em; }
.v-ok { background: #064e3b; color: #a7f3d0; border: 2px solid #10b981; }
.v-bad { background: #4c0519; color: #fecdd3; border: 2px solid #f43f5e; }
.alert { background: #4c0519; border: 2px solid #f43f5e; color: #ffe4e6; border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.minted { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.minted .qr-box svg { width: 150px; height: 150px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.signin { max-width: 420px; margin: 8vh auto 0; }
.pinpad input { width: 100%; min-width: 0; font-family: var(--mono); font-size: 30px; letter-spacing: .4em; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 20; font-weight: 600; max-width: 92vw; }
@media (min-width: 900px) { .desk-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: start; } }

/* ── the print foundry ────────────────────────────────────────────────────────────────────────── */
.foundry { max-width: 1100px; margin: 0 auto; padding: 20px 14px 40px; }
.sheets { display: grid; gap: 18px; justify-items: center; margin-top: 16px; }
.sheet { background: #fff; box-shadow: var(--shadow); width: min(100%, 8.5in); height: auto; aspect-ratio: 8.5 / 11; }
@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; }
  .no-print, .colophon, .toast { display: none !important; }
  .foundry { padding: 0; max-width: none; }
  .sheets { gap: 0; margin: 0; display: block; }
  .sheet { box-shadow: none; width: 8.5in; height: 11in; page-break-after: always; break-after: page; }
}

/* H3 · enrolled devices: the 9-digit code, the owner's device rows */
.code-typed { font-size: 34px; letter-spacing: .08em; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.device-row:first-child { border-top: 0; }
.device-row .btn { flex: none; }
.enroll-card .minted { align-items: center; }
@media (max-width: 420px) { .code-typed { font-size: 28px; } .device-row { flex-wrap: wrap; } }
/* Window H3b: ⚙️ Owner's plan chip and the /welcome steps */
.plan-chip { margin: 0; align-self: flex-start; font-weight: 800; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.welcome-list { list-style: none; padding: 0; margin: 0; }
.welcome-step .btn { align-self: flex-start; }
/* Window H3b · feat(H3-rails): the print foundry's 1.00-inch calibration bar, the advisory banner, the tow checklist and the tax tags */
.cal-bar { display: flex; align-items: center; gap: 10px; }
.cal-inch { display: inline-block; width: 1in; height: 12px; background: var(--ink); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); box-sizing: border-box; }
.advisory { border-left: 4px solid var(--accent); background: var(--card); padding: 10px 12px; border-radius: 10px; }
.tow-list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.tax-tag { display: inline-block; font-size: 12px; font-weight: 800; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.tax-sales { background: #eef6ff; }
.tax-lodging { background: #fff4e5; }
/* 📘 H7a · feat(H7-playbooks) — role playbooks (playbook-ui.js): the desk's editor, the handset's reader, a slip's card. */
.pb-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.pb-card { display: grid; gap: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pb-card.pb-draft { border-style: dashed; }
.pb-row, .pb-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.pb-head { justify-content: space-between; margin: 0; }
.pb-title { overflow-wrap: anywhere; }
.pb-bar { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 11rem); align-items: center; }
.pb-roles { flex-wrap: wrap; }
.pb-roles button { flex: 1 1 7.5rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lang, .pb-in, .pb-text { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--card); color: inherit; }
.pb-text { resize: vertical; }
.pb-ask { display: flex; gap: 8px; min-width: 0; }
.pb-ask-in { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--card); color: inherit; }
.pb-ask .btn { flex: none; }
.pb-sec { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; }
.pb-sec > summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.pb-sec[open] > .pb-body { margin: 4px 0 10px; }
.pb-hit { border-left: 3px solid var(--accent); padding: 4px 0 4px 10px; display: grid; gap: 4px; }
.pb-q { gap: 4px; }
/* 🧭 H7b · the advisor (advisor-ui.js): one card a counted metric, the $0 lines and ENVOY's grounded claims. */
.adv-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }
.adv-card { display: grid; gap: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adv-label, .adv-prevline { margin: 0; overflow-wrap: anywhere; }
.adv-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.adv-num { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.adv-delta { white-space: nowrap; font-variant-numeric: tabular-nums; }
.adv-spark { flex: none; margin-left: auto; }
.adv-spark .adv-prev { fill: var(--line); }
.adv-spark .adv-now { fill: var(--accent); }
.adv-line { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.adv-claim { border-left: 3px solid var(--accent); padding: 4px 0 4px 10px; display: grid; gap: 2px; }
.adv-cites { margin: 0; overflow-wrap: anywhere; }
.adv-fixed { margin: 0; }
.adv-envoy { justify-self: start; }
@media (max-width: 520px) { .pb-bar { grid-template-columns: minmax(0, 1fr); } }

/* 🍳 Window H7c · feat(H7d-breakfast-margin): the morning board, the walk-up row, the checkoff sheet, the advisor's cards */
.adv-cites { margin: 0; overflow-wrap: anywhere; }
.adv-src { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; cursor: pointer; list-style: none; }
.adv-src::-webkit-details-marker { display: none; }
.adv-src-ids { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.adv-math { margin: 0; overflow-wrap: anywhere; }
.adv-bf { border-top: 1px solid var(--line); padding-top: 10px; }
.adv-bf-grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.adv-bf-card .adv-num { font-size: 24px; }
.bf-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-levels button { flex: 1 1 8rem; min-height: 44px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* GSP-2: the closeout's drawn status disc (never a system emoji) */
.bf-disc { width: 14px; height: 14px; flex: none; fill: var(--gs-ink-3, #94a3b8); }
.bf-disc[data-tone="ok"] { fill: var(--gs-ok, #7ee08a); }
.bf-disc[data-tone="look"] { fill: var(--gs-look, #ff9d5c); }
.bf-disc[data-tone="no"] { fill: var(--gs-no, #ff7b7b); }
/* GSP-2 (Slop Ban row 10): the Sidekick card's How it works disclosure */
.sk-how > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 700; }
.sk-how > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sk-how[open] > summary::after { transform: rotate(-135deg); }
.sk-how__list { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; line-height: 20px; }
.sk-how__list li + li { margin-top: 4px; }
.bf-walk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-walk { flex: 1 1 7rem; white-space: nowrap; }
.bf-head, .bf-line { display: grid; grid-template-columns: 4.5rem 6.5rem 1fr; gap: 8px; align-items: center; }
.bf-head { font-weight: 800; font-size: 12px; border-bottom: 2px solid #111; padding-bottom: 4px; }
.bf-line { padding: 4px 0; border-bottom: 1px solid #cbd5e1; break-inside: avoid; }
.bf-room { font-size: 16px; }
.bf-boxes { display: flex; flex-wrap: wrap; gap: 4px; }
.bf-box { width: 18px; height: 18px; border: 1.5px solid #111; border-radius: 3px; display: grid; place-items: center; font-size: 12px; line-height: 1; }

/* 🎨 GS-2 · feat(H8-forge): a property's brand head — its crest, title and tagline (GS.brand · door.ts). The colours
 * are /t/<tenant>/theme.css's custom properties (--accent · --brand-*), each solved to its WCAG floor on these surfaces. */
.brand-head { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 0 8px; }
.brand-crest { width: 56px; height: 56px; flex: none; object-fit: contain; border-radius: 10px; }
.brand-words { min-width: 0; display: grid; gap: 2px; }
.brand-title { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.2; color: var(--brand, var(--accent)); overflow-wrap: anywhere; }
.brand-tag { margin: 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.offer-card .brand-head { justify-content: center; }
:root[data-brand] .discount { background: var(--brand); color: var(--brand-ink); }
.brand-head-print { padding-bottom: 8pt; margin-bottom: 10pt; border-bottom: 2pt solid var(--brand, #000); }
.brand-head-print .brand-title { color: #000; font-size: 15pt; }
.brand-head-print .brand-tag { color: #222; font-size: 10pt; }
/* GSP-10: a check-in with a Room pass AND a Parking permit shows ONE sharp code at a time; the other is blurred under a
 * full-box cover key until it is tapped (desk-bind.js B.minted), so a phone camera never reads the wrong one. */
.minted--dual .qr-box { position: relative; overflow: hidden; }
.minted--dual .qr-box svg { transition: filter .18s ease, opacity .18s ease; }
.minted--dual[data-qr-state="blur"] .qr-box svg { filter: blur(9px); opacity: .45; }
.minted--dual[data-qr-state="active"] .qr-box { outline: 3px solid #2dd4bf; outline-offset: 2px; }
.qr-cover { position: absolute; inset: 0; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: inherit; cursor: pointer; text-align: center; background: rgb(11 19 34 / .80); color: #f8fafc; font: 700 13px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; }
.qr-cover:hover, .qr-cover:focus-visible { background: rgb(11 19 34 / .92); outline: 2px solid #fff; outline-offset: -4px; }
.qr-cover[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .minted--dual .qr-box svg { transition: none; } }

/* GSP-11 · ONE language control on every phone view (EN | Español): two radios, each at least 44 × 44 px, in the
 * page's own ink (a light pass, the dark slip and desk); the chosen one carries a tint and a bar — never a filled key. */
.gs-lang-seg { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 12px; }
.gs-lang-seg__opt { min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.gs-lang-seg__opt[aria-checked="true"] { background: color-mix(in srgb, currentColor 14%, transparent); font-weight: 800; box-shadow: inset 0 -3px 0 currentColor; }
.gs-lang-seg__opt:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* GSP-18A · the compact language menu (gs-lang.js): ONE key — a drawn globe, the short word, a caret — that opens ten
 * radio items in their own script. The list is placed from the key's own box, so no header clips it. */
.gs-lang-menu { position: relative; gap: 0; padding: 0; }
.gs-lang-key { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.gs-lang-key[aria-expanded="true"] { background: color-mix(in srgb, currentColor 14%, transparent); }
.gs-lang-key:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gs-lang-key svg { flex: none; }
.gs-lang-key__caret { width: 14px; height: 14px; opacity: .8; }
.gs-lang-list { position: fixed; z-index: 2147483000; display: grid; gap: 2px; width: 232px; max-width: calc(100vw - 16px); padding: 4px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 12px 32px rgb(0 0 0 / .28); }
.gs-lang-list[hidden] { display: none; }
.gs-lang-list .gs-lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0 12px; text-align: left; font-size: 16px; }
.gs-lang-item__code { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .72; }
#slip-lang .gs-lang-menu { margin-left: auto; } /* the staff slip's language bar: the menu at its right end */
#desk-lang { display: flex; width: max-content; margin: 0 0 10px auto; }
.handset-lang { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.handset-lang:empty { display: none; }
/* The staff slip: the language card as a top bar right under the name (staff-i18n.js moves it there). */
#slip-lang.slip-lang-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; }
#slip-lang.slip-lang-top .row-title { margin: 0; font-size: 14px; }
#slip-lang.slip-lang-top .sg-lang { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
#slip-lang.slip-lang-top .sg-lang button { min-width: 0; padding: 0 4px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .gs-lang-seg__opt { transition: none; } }

/* GSP-11 · /h/<slug>: the head row (name · EN | Español), two drawn steps, stat tiles and topic cards (door-pass.js). */
.door-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.door-head-row h1 { flex: 1 1 12ch; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.door-lang-slot:empty { display: none; }
.door-how-card[hidden] { display: none; }
.door-ic { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.door-ic .door-ic__acc { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.door-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.door-step { display: grid; grid-template-columns: 28px 22px minmax(0, 1fr); align-items: start; gap: 10px; }
.door-step__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.door-step__text { display: grid; gap: 2px; font-size: 15px; line-height: 1.35; }
.door-step__text span { color: var(--ink-2); font-size: 14px; }
.fact-deck { display: grid; gap: 12px; }
.fact-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact-tile { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; }
.fact-tile[data-fact="breakfast"], .fact-tile[data-fact="phone"] { grid-column: 1 / -1; }
.fact-tile__head { display: flex; align-items: center; gap: 8px; }
.fact-tile__label { color: var(--ink-2); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fact-tile__value { font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.fact-tile__sub { color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.fact-tile--tel { min-height: 48px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.fact-tile--tel:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fact-topic { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.fact-topic__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.fact-topic__row { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.fact-topic__title + .fact-topic__row { padding-top: 0; border-top: 0; }
.fact-topic__label { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.fact-topic__value { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.fact-topic__sub { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.fact-chips__chip { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-size: 14px; font-weight: 600; }
.fact-lines[hidden] { display: none; }
/* GSP-13 · Today | Tomorrow (Key Packets) on the Front Desk lens (desk-lens-day.js): two 44 px radios, the count of the arrivals staged for tomorrow on the second. */
.lens-day { flex-wrap: wrap; justify-self: start; max-width: 100%; }
.lens-day__opt { min-height: 44px; padding: 0 12px; }
.lens-day__in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* GSP-14 · the five shift tools wear ONE hue each — Cash drawer emerald, Tax calculator amber, Logbook sky, Channels
 * indigo, Handoff coral: the tool's key in the Shift tools menu (by its id) and in the handset's More (data-ck), its drawn
 * badge (desk-guide.js) and the head of the sheet it opens. The hue names the tool — it is never a state. */
#sg-drawer, .gs-menu__item[data-ck="drawer"], #drawer-sheet, .sg-toolmark[data-tool="drawer"] { --sg-tool: #10b981; --sg-tint: rgb(16 185 129 / .16); }
#sg-tax, #tax-sheet, .sg-toolmark[data-tool="tax"] { --sg-tool: #f59e0b; --sg-tint: rgb(245 158 11 / .16); }
#sg-log, .gs-menu__item[data-ck="vault"], #log-sheet, .sg-toolmark[data-tool="log"] { --sg-tool: #38bdf8; --sg-tint: rgb(56 189 248 / .16); }
#sg-chan, .gs-menu__item[data-ck="chan"], #chan-sheet, .sg-toolmark[data-tool="chan"] { --sg-tool: #818cf8; --sg-tint: rgb(129 140 248 / .16); }
#sg-handoff, #handoff-sheet, .sg-toolmark[data-tool="handoff"] { --sg-tool: #fb7185; --sg-tint: rgb(251 113 133 / .16); }
:is(#sg-drawer, #sg-tax, #sg-log, #sg-chan, #sg-handoff, .gs-menu__item:is([data-ck="drawer"], [data-ck="vault"], [data-ck="chan"])) .gs-menu__well, .sg-toolmark { background: var(--sg-tint); color: var(--sg-tool); box-shadow: inset 0 0 0 1.5px var(--sg-tool); }
:is(#sg-drawer, #sg-tax, #sg-log, #sg-chan, #sg-handoff, .gs-menu__item:is([data-ck="drawer"], [data-ck="vault"], [data-ck="chan"])) .gs-menu__well .ico [stroke="#2dd4bf"] { stroke: var(--sg-tool); }
:is(#sg-drawer, #sg-tax, #sg-log, #sg-chan, #sg-handoff, .gs-menu__item:is([data-ck="drawer"], [data-ck="vault"], [data-ck="chan"])) .gs-menu__well .ico [fill="#2dd4bf"] { fill: var(--sg-tool); }
:is(#sg-drawer, #sg-tax, #sg-log, #sg-chan, #sg-handoff, .gs-menu__item:is([data-ck="drawer"], [data-ck="vault"], [data-ck="chan"])):is(:hover, :focus-visible):not(:disabled) { background: var(--sg-tint); }
:is(#sg-drawer, #sg-tax, #sg-log, #sg-chan, #sg-handoff, .gs-menu__item:is([data-ck="drawer"], [data-ck="vault"], [data-ck="chan"])):disabled .gs-menu__well { opacity: .5; }
.sg-toolmark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.sg-toolmark .ico { width: 20px; height: 20px; }
.sg-tools .sg-new { background: #818cf8; box-shadow: none; color: #0b1020; } /* GSP-14: what is new in Channels, in the channels' own hue (beside the pinned count) */
/* GSP-14: the saved room tax under the Hotel Service Fee (desk-tax-policy.js) — two percents and their total. */
.rr-tax { display: grid; gap: 6px; }
.rr-tax__row > .gs-field { flex: 0 1 200px; }
.rr-tax__sum { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; margin: 0; padding: 0 14px; border-radius: 12px; background: rgb(245 158 11 / .16); box-shadow: inset 0 0 0 1.5px #f59e0b; color: var(--gs-ink, #eef3fb); font-size: 14px; font-weight: 600; line-height: 44px; }
.rr-tax__num { font: 700 18px/44px var(--gs-num, system-ui, sans-serif); font-variant-numeric: tabular-nums; }
:is(#drawer-sheet, #tax-sheet, #log-sheet, #chan-sheet, #handoff-sheet) > .sheet-head { box-shadow: inset 0 3px 0 var(--sg-tool); border-bottom-color: color-mix(in srgb, var(--sg-tool) 45%, var(--line)); }
/* GSP-16 · on a narrow desk (640 px or less) a shift tool's sheet is the whole screen: flush with the top, as tall as the
 * screen, no dimmed gap above it. The sheet's id outranks desk-ux.css's `.sheet-bottom` (loaded after this file), so nothing
 * here is forced. The sheet scrolls inside itself and its head (the title, the close key) stays in sight; under a notch the
 * head starts below it. A wider desk keeps its bottom sheet or its side sheet. */
@media (max-width: 640px) {
  .gs-sheet.sheet-bottom:is(#drawer-sheet, #tax-sheet, #log-sheet, #chan-sheet, #handoff-sheet) { top: 0; height: 100vh; height: 100dvh; max-height: none; border-top: max(0px, env(safe-area-inset-top)) solid var(--card); border-radius: 0; }
}
