/* 🔭 GlyphSlip lenses (Window GS-1 · feat(H7-lenses) · feat(H8-partners)) — one sheet for the five lenses on /desk and
 * the /lenses sandbox. Colours come from gs.css's tokens only, so a lens follows the page it is on. Every control keeps
 * a 44 px touch target; nothing here is wider than its column (no page overflow at 390 px). */
.lens-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 4px 0 10px; min-width: 0; }
/* GSP-20B (AG-GS2 §3.2): the role strip — ONE segmented row, a column a role, no disc and no emoji */
.lens-switch { flex: 1 1 100%; display: grid; grid-template-columns: repeat(var(--lens-n, 5), minmax(0, 1fr)); gap: 0; min-width: 0; max-width: 560px; border: 1.5px solid var(--gs-edge, #6f89ad); border-radius: 8px; overflow: hidden; background: var(--card); }
.lens-switch[data-n="2"] { --lens-n: 2; } .lens-switch[data-n="3"] { --lens-n: 3; } .lens-switch[data-n="4"] { --lens-n: 4; }
.lens-pick { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 6px 4px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.15; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.lens-pick:first-child { border-left: 0; }
.lens-pick[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.lens-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lens-pick:disabled { cursor: progress; }
.lens-one { margin: 0; font-weight: 700; font-size: 18px; }
.lens-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.lens-lang button { min-height: 44px; min-width: 48px; } /* the /lenses sandbox only (lens-core.js draws it where no ONE menu lives) */
.lens-lock { margin: 0 0 10px; }
.lens-demo { margin: 0 0 10px; }
.lens-body { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.lens-sec { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.lens-h { margin: 0; font-size: 15px; letter-spacing: .01em; color: var(--ink-2); }
.lens-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.lens-tile { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; background: var(--card); }
.lens-tile[data-tone="ok"] { border-left-color: var(--ok); }
.lens-tile[data-tone="warn"] { border-left-color: var(--warn); }
.lens-tile[data-tone="bad"] { border-left-color: var(--bad); }
.lens-tile > p { margin: 0; overflow-wrap: anywhere; }
.lens-k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lens-v { font-size: 24px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.lens-m { white-space: pre-line; }
.lens-bar { width: 100%; height: 10px; accent-color: var(--accent); }
.lens-go { margin-top: 6px; justify-self: start; max-width: 100%; white-space: normal; text-align: left; }
.lens-empty { margin: 8px 0; }
.lens-acts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.lens-acts .btn { min-height: 56px; white-space: normal; }

/* 📘 the Front Desk Reference */
.lens-ask { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lens-ask input { flex: 1 1 12rem; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 12px; font-size: 16px; }
.lens-refs { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.lens-ref { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 12px; min-width: 0; }
.lens-ref summary { display: grid; gap: 2px; cursor: pointer; min-height: 44px; align-content: center; overflow-wrap: anywhere; }
.lens-ref-body { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }

/* 🧹 the room-turn board — high contrast, thumb-sized */
.lens-hk-bar { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.lens-hk-ready { margin: 0; font-size: 22px; font-weight: 700; }
.lens-hk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lens-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; }
.lens-hk-filter { flex-wrap: wrap; }
.lens-hk-filter button { min-height: 44px; flex: 1 1 5rem; }
.lens-hk-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.lens-room { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border-radius: 14px; border: 2px solid var(--line); border-top: 8px solid var(--line); background: var(--card); }
.lens-room[data-state="dirty"] { border-color: var(--bad); }
.lens-room[data-state="in_progress"] { border-color: var(--warn); }
.lens-room[data-state="clean"], .lens-room[data-state="inspected"] { border-color: var(--ok); }
.lens-room[data-state="dnd"] { border-style: dashed; border-color: var(--ink-2); }
.lens-room[data-priority] { box-shadow: 0 0 0 3px var(--gold); }
.lens-room > p { margin: 0; overflow-wrap: anywhere; }
.lens-room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lens-room-no { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.lens-room-who { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; border: 2px solid var(--accent); font-weight: 700; font-size: 13px; }
.lens-room-state { font-size: 17px; font-weight: 700; }
.lens-room-acts { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.lens-room-acts .btn { min-height: 52px; font-size: 17px; white-space: normal; }

/* 🔧 the lists */
.lens-list { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.lens-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.lens-row[data-status="out_of_order"], .lens-row[data-urgency="out_of_order"] { border-left: 4px solid var(--bad); }
.lens-row[data-status="degraded"], .lens-row[data-urgency="urgent"] { border-left: 4px solid var(--warn); }
.lens-row-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.lens-row-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.lens-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: end; }
.lens-form-wide { grid-column: 1 / -1; }
.lens-form textarea { width: 100%; min-width: 0; min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 12px; font: inherit; font-size: 16px; resize: vertical; }
.lens-form .btn { min-height: 48px; }

/* 📌 the pins */
.lens-pins { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); display: grid; gap: 8px; }
.lens-pins summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.lens-pin-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; min-width: 0; margin-top: 8px; }
.lens-pin-row span { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.lens-pin-row select { flex: 0 1 16rem; min-width: 0; max-width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 6px 10px; font-size: 16px; }

/* 🤝 partners — the ledger panel, the referral QR, the guest's card, the print-only reconciliation slip */
.partner-month { display: flex; align-items: center; gap: 10px; }
.partner-month b { flex: 1 1 auto; text-align: center; font-size: 18px; min-width: 0; }
.partner-month .btn { min-width: 48px; }
.partner-money { display: grid; gap: 2px; justify-items: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.partner-ticket { width: 9.5rem; max-width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 10px; font-size: 16px; }
.partner-row[data-status="live"] { border-left: 4px solid var(--ok); }
.partner-row[data-status="draft"] { border-left: 4px dashed var(--warn); }
.partner-qr { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; min-width: 0; }
.partner-qr .qr-box, .offer-qr { width: 168px; max-width: 100%; flex: none; background: #fff; border-radius: 10px; padding: 6px; }
.partner-qr .qr-box svg, .offer-qr svg { display: block; width: 100%; height: auto; }
.partner-qr .stack { flex: 1 1 14rem; min-width: 0; }
.partner-code { margin: 0; font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
.partner-fold .partner-qr { border: 0; padding: 8px 0 0; }
.partner-slip { display: none; }
.partner-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 13px; }
.partner-table th, .partner-table td { border: 1px solid #999; padding: 5px 8px; text-align: left; }
.partner-sign { margin-top: 36px; letter-spacing: .02em; }
html.partner-preview .partner-slip { display: block; background: #fff; color: #111; padding: 24px; margin: 16px auto; max-width: 800px; }
@media print {
  html.partner-printing body > *:not(#partner-print) { display: none !important; }
  /* sg.css hides every child of body.desk but its own label sheet on print — the slip out-ranks that rule by name. */
  html.partner-printing body > #partner-print, html.partner-printing body.desk > #partner-print { display: block !important; color: #000; background: #fff; padding: .5in; font: 12pt/1.4 var(--font); }
  html.partner-printing #partner-print h1 { font-size: 16pt; margin: 0 0 4pt; }
  html.partner-printing #partner-print .fine { color: #222; font-size: 10pt; }
}
.offer { max-width: 440px; margin: 0 auto; padding: 16px; }
.offer-card { text-align: center; justify-items: center; }
.offer-card h1 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.offer-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0; }
.offer-chip { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 700; }
.offer-line { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.offer-code-box { display: grid; gap: 2px; justify-items: center; padding: 12px 16px; border: 2px dashed var(--accent); border-radius: 14px; width: 100%; min-width: 0; }
.offer-code-box p { margin: 0; }
.offer-show { font-weight: 700; }

/* the /lenses sandbox page */
.lens-page { max-width: 1180px; margin: 0 auto; padding: 16px; }
.lens-page-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lens-page-head h1 { margin: 0; font-size: 22px; }
.lens-page-head p { margin: 0; }

/* 🌤 GSP-20B (AG-GS2 §3.2): the Corridor Pulse as cards — the weather and its front-desk action, the event radar */
.corridor-banner.ux-pulse { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; background: none; }
.ux-pulse > h2 { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }
.ux-card { display: grid; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid #38bdf8; border-radius: 10px; background: var(--card); }
.ux-card > * { margin: 0; min-width: 0; }
.ux-wx { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ux-wx-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: #0e283b; }
.ux-wx-svg { width: 30px; height: 30px; fill: none; stroke: #7dd3fc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ux-wx-sky { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.ux-wx-temp { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ux-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ux-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; border: 1px solid var(--gs-edge, #6f89ad); border-radius: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ux-chip[data-tone="warn"] { border-color: #d99316; background: #2b2009; color: #fde68a; }
.ux-act { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid rgb(251 191 36 / .45); border-left: 4px solid #f59e0b; border-radius: 8px; background: rgb(251 191 36 / .09); }
.ux-act > p { margin: 0; overflow-wrap: anywhere; }
.ux-act-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fcd34d; }
.ux-radar { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ux-ev { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.ux-cal { display: grid; place-items: center; gap: 0; min-height: 56px; padding: 4px 2px; border: 1.5px solid var(--gs-edge, #6f89ad); border-radius: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.ux-cal b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7dd3fc; }
.ux-cal span { font-size: 15px; font-weight: 700; }
.ux-ev-main { display: grid; gap: 3px; min-width: 0; }
.ux-ev-main > * { margin: 0; overflow-wrap: anywhere; }
.ux-ev-t { font-weight: 700; }
@media (max-width: 720px) {
  .lens-switch { max-width: none; }
  .lens-pick { font-size: 13px; }
  .lens-v { font-size: 22px; }
}
