/* GlyphSlip Desk · Window H4b (feat(H4-envoy-desk)): the Home pill, the duotone icons, the sliding tab pill, the spring
 * sheets, the Bento bind form (its button above the fold at 1366 × 768), the chips, ⚙️ Policies, the diff card and the
 * 📱 handset. Motion is opacity + transform only, and still under prefers-reduced-motion. */
:root { --spring: cubic-bezier(0.22, 1, 0.36, 1); }
.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 26px; height: 26px; }
.btn { transition: transform .12s var(--spring), background-color .2s; }
.btn:active:not(:disabled), .chip-btn:active { transform: scale(.97); }
.btn-quiet { background: transparent; }
.btn-icon { min-width: 44px; padding: 8px; }

/* the header, the tabs and the scan field are gs-kit.css's since GSP-1a (desk-chrome.js); the handset's mark stays here */
.home-mark { width: 30px; height: 30px; border-radius: 9px; display: block; }
/* GSP-4c · a phone's header is TWO rows: the home pill (the mark and the property, never wrapped) and the role; then
 * Map · Guest requests · More and ENVOY's 48 px medallion in the same row — never a row of its own, never More alone */
@media (max-width: 640px) {
  .hud-head.gs-desk__head { display: grid; grid-template-columns: auto minmax(0, 1fr) 48px; grid-template-areas: "home role role" "tools tools envoy"; align-items: center; gap: 6px 4px; }
  .gs-desk__head .gs-home { grid-area: home; min-width: 0; padding-right: 16px; }
  .gs-desk__head .gs-home__name { white-space: nowrap; }
  .gs-desk__head .gs-home__app { display: none; }
  .gs-desk__head .gs-role { grid-area: role; justify-self: end; padding: 4px 12px; white-space: normal; text-wrap: balance; } /* a long role breaks in its own chip */
  .gs-desk__head .hud-tools { grid-area: tools; flex-wrap: nowrap; gap: 4px; min-width: 0; }
  .gs-desk__head .hud-tools .gs-key { flex: 0 1 auto; gap: 5px; padding: 0 8px; line-height: 15px; text-align: left; white-space: normal; }
  .gs-desk__head #more-open { padding: 0 6px; }
  .gs-desk__head #guest-count[data-zero="true"] { display: none; } /* no open request: no count on a phone */
  .gs-desk__head .envoy-slot { grid-area: envoy; }
}
@media (max-width: 380px) { .gs-desk__head .hud-tools .gs-key { font-size: 13px; } }
@media (max-width: 899px) { .wide-only { display: none !important; } }
/* GSP-1a · Slop Ban rows 6 · 16: every target on the desk is 44 × 44 or more (a map pin keeps its drawn size) */
body.desk :is(button, .btn, .chip-btn, summary, select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"])):not(.gmap-pin) { min-height: 44px; }
body.desk :is(button, .btn, .chip-btn):not(.gmap-pin), body.desk label.check { min-width: 44px; }
body.desk label.check { min-height: 44px; }

/* 🫧 spring sheets */
.sheet-scrim { position: fixed; inset: 0; background: rgba(4, 9, 11, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .24s ease; z-index: 30; }
.sheet-scrim[data-open="true"] { opacity: 1; }
.gs-sheet { position: fixed; z-index: 31; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0, 0, 0, .45); overflow: auto; opacity: 0; transition: transform .42s var(--spring), opacity .24s ease; }
.gs-sheet[data-open="true"] { opacity: 1; }
.sheet-bottom { left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); }
.sheet-bottom[data-open="true"] { transform: translateY(0); }
.sheet-right { top: 0; right: 0; bottom: 0; width: min(460px, 94vw); border-radius: 20px 0 0 20px; transform: translateX(100%); }
.sheet-right[data-open="true"] { transform: translateX(0); }
@media (min-width: 900px) {
  .sheet-bottom { left: 50%; right: auto; top: 50%; bottom: auto; width: min(580px, 92vw); max-height: 86vh; border-radius: 20px; transform: translate(-50%, -46%) scale(.97); }
  .sheet-bottom[data-open="true"] { transform: translate(-50%, -50%) scale(1); }
}
.sheet-head { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); z-index: 6; } /* GSP-7 judge r1 row 13: a sheet's head stays above all it scrolls over (the map's fades, chip and open pin) */
.sheet-title { flex: 1; margin: 0; font-size: 18px; }
.sheet-body { padding: 14px 16px 18px; display: grid; gap: 12px; }
.sheet-body > .card { box-shadow: none; }
body.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gs-sheet, .sheet-scrim, .btn { transition: none; } .btn:active:not(:disabled), .chip-btn:active { transform: none; } }

/* ⚡ the Bento bind form */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* GSP-7 §3.4 (A1): one column that never grows to a card's min-content (16 px past 320) */
.bento .card.stack { gap: 8px; padding: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } /* GSP-1a: every chip row wraps — none scrolls sideways or hides a chip */
.chip-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #0c1114; color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; transition: transform .12s var(--spring), border-color .2s; }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); background: rgba(45, 212, 191, .16); }
.swatches .chip-btn { width: 44px; padding: 0; justify-content: center; }
.dot { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.readout { margin: 0; color: var(--accent); font-weight: 600; }
@media (min-width: 900px) {
  .bento:not(.bento-one) { grid-template-columns: 1fr 1fr; align-items: start; }
  .bento:not(.bento-one) .btn-big { min-height: 56px; font-size: 20px; }
  .bento:not(.bento-one) #bind-vehicle .seg button { min-height: 44px; }
}
.btn-big .ico { width: 24px; height: 24px; }
.btn-moon { width: 100%; justify-content: flex-start; text-align: left; border-color: #3b4a8a; background: #141a33; }

/* ⚙️ Policies and the Before → After card */
.say-bar { grid-template-columns: 1fr auto; }
.policy-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .policy-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } } /* GSP-4c r2 #9 (b/r3r): an odd last card (ENVOY) takes the full row, never a half card beside a hole */
@media (min-width: 1081px) { .vg-setup__grid:has(> #charter-host) > #wifi-card { grid-row: span 2; } .vg-setup__grid:has(> #charter-host) > #wifi-card + .card { align-self: stretch; align-content: start; } .vg-setup__grid > #charter-host { display: grid; align-self: stretch; } } /* GSP-4c r2 #9 (b/r3w): Wi-Fi beside Plan over the Charter — the two short cards fill one column, no dead half */
.avatar-seg { flex-wrap: wrap; }
.avatar-seg button { display: inline-flex; align-items: center; gap: 6px; min-width: 50%; flex: 1 1 50%; }
.avatar-seg .envoy-face { position: static; width: 26px; height: 26px; } /* H4c blind pass: the face is absolute inside the medallion only */
.diff-card { border-color: var(--accent); }
.diff-rows { display: grid; gap: 6px; }
.diff-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; background: #0c1114; font-size: 14px; }
.diff-before { color: var(--ink-2); text-decoration: line-through; }
.diff-after { color: var(--accent); font-weight: 800; }
.diff-arrow { color: var(--ink-2); }
.diff-aud { background: #3a2d07; color: #fde68a; }

/* 📱 the handset (Document PiP · the pop-up) */
body.handset { min-width: 0; }
.handset-hud { padding: 0 10px 20px; }
.handset-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; padding: 10px 0 8px; background: var(--paper); }
.handset-head b { font-size: 14px; }
.handset-seg { grid-column: 1 / -1; }
.handset-body { display: grid; gap: 10px; }
.handset .scanbar { grid-template-columns: auto 1fr auto; }
.handset .minted .qr-box svg { width: 120px; height: 120px; }
.handset .colophon { display: none; }

/* ── Window H4c · 📡 the Lobby Window beacon · 🎁 the referral card ── */
#beacon-btn[data-armed="true"] { border-color: #2dd4bf; box-shadow: inset 0 0 0 2px rgba(45, 212, 191, .45); }
.beacon-arm { display: flex; flex-wrap: wrap; gap: 8px; }
.beacon-live { margin: 0; font-weight: 700; }
.beacon-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 8px 0; padding: 12px 14px; border-radius: 14px; background: #fff7e6; border: 2px solid var(--gold); }
.beacon-banner p { margin: 0; }
.beacon-poster { position: fixed; inset: 0; z-index: 60; background: #fff; color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vh; padding: 3vh 4vw; text-align: center; }
.beacon-poster .poster-name { margin: 0; font-size: clamp(16px, 2.6vh, 28px); font-weight: 700; }
.beacon-poster .poster-title { margin: 0; font-size: clamp(30px, 7.5vh, 84px); line-height: 1.02; font-weight: 900; letter-spacing: -.01em; }
.beacon-poster .poster-sub { margin: 0; font-size: clamp(18px, 3.4vh, 38px); font-weight: 700; }
.beacon-poster .poster-qr { width: min(54vh, 78vw); aspect-ratio: 1 / 1; }
.beacon-poster .poster-qr svg { width: 100%; height: 100%; display: block; }
.beacon-poster .poster-url { margin: 0; font: 600 clamp(13px, 2vh, 20px) var(--mono); }
.beacon-poster .poster-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); background: #fff; color: #000; border: 2px solid #000; }
.refer-code { margin: 0; font: 800 32px/1.1 var(--mono); letter-spacing: .12em; text-align: center; padding: 12px; border: 2px dashed var(--accent); border-radius: 14px; }

/* H4c blind pass: the ping banner's words on its cream ground (≥ 4.5:1), the armed state in green. */
.beacon-banner, .beacon-banner b, .beacon-banner span { color: #3a2a00; }
.beacon-live[data-armed="true"] { color: #fff; background: #15803d; border-radius: 10px; padding: 8px 12px; }
.beacon-poster .poster-back { margin: 0; font-size: clamp(16px, 2.8vh, 30px); font-weight: 800; }

/* ── ⚡ H6c · feat(H6-cockpit-pms-ux) — the zero-scroll 320 × 560 Sidekick cockpit (desk-cockpit.js · desk-bind.js) ── */
body[data-density="compact"] .handset-hud { padding: 0 6px 4px; }
.ck-body { gap: 6px; }
.ck-body .handset-scan { gap: 4px; }
.ck-form { display: grid; gap: 6px; }
.ck-row { display: flex; gap: 5px; align-items: end; min-width: 0; }
.ck-acts { align-items: center; }
.ck-acts .btn { min-height: 44px; height: 44px; padding: 0 10px; font-size: 14px; border-radius: 10px; }
.ck-pull { flex: 1 1 auto; }
.ck-gear { position: relative; flex: none; }
.ck-gear-btn { min-width: 44px; width: 44px; padding: 0; }
.ck-pop { position: absolute; z-index: 5; top: 48px; left: 0; width: min(300px, calc(100vw - 16px)); display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #0c1418; color: #eef2f3; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-size: 12.5px; }
.ck-pop[hidden] { display: none; }
.ck-pop-title { margin: 0 0 2px; font-weight: 800; }
.ck-check { display: flex; gap: 6px; align-items: flex-start; line-height: 1.25; }
.ck-mode { display: flex; gap: 4px; }
.ck-mode button { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: inherit; padding: 0 8px; }
.ck-mode button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ck-hint { margin: 0; padding: 4px 8px; border-radius: 8px; background: #3a2d07; color: #fde68a; font-size: 12px; font-weight: 700; }
.ck-summary { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.ck-summary[hidden] { display: none; }
.ck-pill { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--ink); font: 700 12px/1.2 var(--mono); }
.ck-ada { border-color: #3b82f6; color: #bfdbfe; background: #0f1f3d; }
.ck-greet { border-color: #f5b942; color: #fde68a; font-family: var(--font); }
body[data-density="compact"] .colophon { display: none; }
.ck-acts .btn { white-space: nowrap; }
.ck-body .minted .qr-box svg { width: 150px; height: 150px; }
.ck-body #bind-new { min-height: 42px; font-size: 16px; }

/* 🛡 Window H7c · feat(H7-dnr): the Do-Not-Rent guard on the check-in form and its ⚙️ Policies card */
.dnr-slot[hidden] { display: none; }
.dnr-head { display: flex; gap: 6px; align-items: center; }
.dnr-gear .ck-pop { left: auto; right: 0; }
.dnr-chip { font-size: 13px; white-space: nowrap; }
.dnr-chip[data-dnr="match"] { min-width: 44px; width: 44px; border-color: #f59e0b; background: #7c2d12; color: #fff7ed; font-weight: 900; }
.dnr-chip[data-dnr="clear"] { min-width: 44px; width: 44px; border-color: #34d399; }
.dnr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dnr-fields input, .dnr-fields select { min-height: 44px; height: 44px; min-width: 0; width: 100%; padding: 0 6px; font-size: 13px; border-radius: 8px; }
.dnr-fields input:first-child { grid-column: 1 / -1; }
.dnr-state { margin: 0; font-weight: 700; }
.dnr-banner { display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px 8px; border-radius: 10px; border: 2px solid #f59e0b; background: #7c2d12; color: #fff7ed; }
.dnr-banner[hidden] { display: none; }
.dnr-banner-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.dnr-banner-title { font-size: 12.5px; line-height: 1.2; }
.dnr-banner-detail { font-size: 12px; line-height: 1.2; color: #fed7aa; }
.dnr-ack { flex: none; min-height: 44px; padding: 0 8px; font-size: 12px; border-radius: 8px; border: 1px solid #fed7aa; background: transparent; color: #fff7ed; white-space: nowrap; }
.dnr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dnr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dnr-keyform { display: flex; flex-wrap: wrap; gap: 8px; }
.dnr-keyform input { flex: 1 1 220px; min-width: 0; }
.dnr-entry { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.dnr-entry-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dnr-who { overflow-wrap: anywhere; }
.dnr-note { margin: 0; overflow-wrap: anywhere; }
.dnr-note:empty { display: none; }
.dnr-dates { margin: 0; }
.dnr-keytext { font-size: 13px; overflow-wrap: anywhere; letter-spacing: 0; }
.gs-paper { background: #fff; color: #111; border: 1px solid #cbd5e1; border-radius: 10px; padding: 16px; display: grid; gap: 8px; }
.gs-paper h2 { margin: 0; font-size: 18px; }
.gs-paper p { margin: 0; }
.gs-paper .fine { color: #334155; }
@media print {
  body.gs-print * { visibility: hidden !important; }
  body.gs-print .gs-printing, body.gs-print .gs-printing * { visibility: visible !important; }
  body.gs-print .gs-printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}

/* 🛎 H6e (feat(H6-guest-desk)): the Guest Desk — the queue's rows, the SLA chips (the header's count is gs-kit.css's .gs-badge). Wraps, never scrolls sideways. */
.gd { display: grid; gap: 10px; min-width: 0; }
.gd-head, .gd-meta, .gd-top, .gd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.gd-feed { display: grid; gap: 8px; }
.gd-row { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line, rgba(127, 127, 127, .35)); border-radius: 12px; min-width: 0; }
.gd-row[data-sla="late"] { border-color: #be123c; box-shadow: inset 4px 0 0 #be123c; }
.gd-row[data-sla="due"] { border-color: #b45309; box-shadow: inset 4px 0 0 #b45309; }
.gd-row[data-sla="done"] { opacity: .72; }
.gd-room { font-size: 1rem; }
.gd-kind { font-weight: 700; overflow-wrap: anywhere; }
.gd-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line, rgba(127, 127, 127, .35)); font-size: .78rem; font-weight: 650; white-space: nowrap; max-width: 100%; }
.gd-sla[data-sla="late"] { border-color: #be123c; color: #be123c; }
.gd-sla[data-sla="due"] { border-color: #b45309; color: #b45309; }
.gd-sla[data-sla="ok"] { border-color: #0f766e; color: #0f766e; }
.gd-chip[data-seen="false"] { border-color: #b45309; }
.gd-acts .btn { min-height: 44px; padding: 4px 10px; font-size: .86rem; }
.gd-acts .btn[data-armed="true"] { border-color: #be123c; color: #be123c; }
body.desk :is(p, h1, h2, h3, label, li) { text-wrap: pretty; } /* GSP-4b judge r1 #12: a last word never sits alone on its line */
body.desk :is(input, select, textarea):focus-visible { outline: 3px solid var(--gs-ring-c, #2dd4bf); outline-offset: 1px; } /* GSP-4b judge r2 #12: the kit's own focus ring, never the browser's white one */
body.desk .seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 20%, var(--card)); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; } /* GSP-4b judge r1 #2: a chosen segment is a tinted fill, never a second solid key */
#wifi-card > .wifi-save { justify-self: start; } /* GSP-4c r1 Joy: Save Wi-Fi is a kit key at its own width */
/* GSP-4c r2 #8 · a phone: the Setup bar is its own band above the shift strip, as at 1366 — Setup N of 6 and its Open on the
 * first row (the chevron kept at 360), then Next: and the meter; the list unfolds under them (a zero-height break holds the rows) */
@media (max-width: 640px) {
  .ready-bar { gap: 6px 10px; padding: 6px 10px 10px; } .ready-bar > .ready-toggle { order: 1; } .ready-bar > .ready-go { order: 2; } .ready-bar::after { content: ""; order: 3; flex: 1 1 100%; height: 0; margin-top: -6px; }
  .ready-bar > .ready-next { order: 4; flex: 0 1 auto; } .ready-bar > .gs-meter { order: 5; flex: 1 1 64px; max-width: none; } .ready-bar > .ready-list { order: 6; }
}
/* GSP-4c r2 #9 (b/b1-800): from 641 to 900 px the clock steps out, so the header's second row starts on the left edge — More still at the right */
@media (min-width: 641px) and (max-width: 900px) { .gs-desk__head .hud-tools { flex: 1 1 100%; margin-left: 0; } .gs-desk__head #more-open { margin-left: auto; } }
/* GSP-4c r2 #8 · narrow phones: a cluster's caption keeps its whole name — "Security & Night" wraps to two lines, never cut — and a tab's word is never broken inside itself */
@media (max-width: 430px) { .gs-desk__tabs { gap: 2px; padding: 2px; } .gs-desk__tabs > .gs-cluster { padding: 6px 0 2px; } .gs-desk__tabs .gs-cluster__cap { padding: 0 4px; } .gs-desk__tabs .gs-tab { gap: 5px; padding: 4px 2px 4px 4px; } .gs-desk__tabs .gs-tab__word { white-space: nowrap; } }
@media (max-width: 359px) { .gs-desk__tabs .gs-cluster__cap { padding: 0 2px; letter-spacing: 0; } .gs-desk__tabs .gs-tab { gap: 4px; padding: 4px 1px 4px 3px; } .gs-desk__tabs .gs-tab__well { width: 24px; height: 24px; } .gs-desk__tabs .gs-tab__well :is(.gs-ico, .ico) { width: 16px; height: 16px; } } /* GSP-7 §3.4 (A2) · d0-320: Management keeps its whole word in its 88 px column; Front Desk · Night Audit keep theirs in their tabs */
