/* Hallmark · shape: app screen · genre: atmospheric · custom (brand: Café Konfus, spec 2026-11-20) · surface: absolute (the brand's own #000 and #fff) · redesign: full
 * nav: a plain bar on phone and iPad, none on the beamer · signature: six lyric lines that slide up one step per sung line, the sung line always at the same spot beside a fixed black bar · states: loading, empty, error, full
 * axes: light/geometric-sans/mono · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 · weakest: E, a white stage is bright in a dim bar; it is the owner's choice and the closest sibling of the website */
/* Hallmark · waive 7b · stamp says surface: absolute, contrast passes on every pair · the Café Konfus website itself is pure black type on pure white and the brand keeps it */
/* Hallmark · waive 22 · the page declares a monochrome posture, so no anchor hue exists to tint toward · the café's greys on its own site are neutral and the karaoke screens match them */
@import url("./tokens.css");
@import url("./base.css");

/* ============ shared ============ */
.muted { color: var(--color-muted); }
.empty { color: var(--color-muted); padding: var(--space-lg) var(--space-sm); }
.center { display: grid; place-items: center; padding: var(--space-lg); }
.count { color: var(--color-muted); font-weight: 400; }
.url { color: var(--color-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eyebrow, .label, .meta, .tag, .pill, .step-note { font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; text-transform: none; }
.eyebrow, .label { color: var(--color-muted); }
.meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-sm); color: var(--color-muted); }
.meta > span + span { padding-left: var(--space-sm); border-left: var(--rule-hair) solid var(--color-paper-3); }

.spinner { width: 2.2rem; height: 2.2rem; border: 4px solid var(--color-paper-3); border-top-color: var(--color-ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ controls ============ */
.btn, .btn-icon, .btn-round, .btn-small, .chip {
  appearance: none; border: 0; border-radius: var(--radius-pill); cursor: pointer; background: transparent; color: var(--color-ink);
  font-weight: 500; box-shadow: inset 0 0 0 2px var(--color-ink);
  transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear;
}
.btn { min-height: 48px; padding: var(--space-sm) var(--space-lg); font-size: var(--text-md); }
.btn-lg { min-height: 56px; font-size: var(--text-lg); padding-inline: var(--space-lg); }
.btn-xl { min-height: 64px; font-size: var(--text-xl); padding-inline: var(--space-lg); flex: 1; }
@media (min-width: 40rem) {
  .btn-lg { min-height: 60px; padding-inline: var(--space-xl); }
  .btn-xl { min-height: 72px; padding-inline: var(--space-xl); }
}
.btn-small { min-height: 44px; padding: var(--space-2xs) var(--space-md); font-size: var(--text-sm); }
.btn-icon { min-width: 44px; min-height: 44px; font-size: var(--text-xl); }
.btn-round { width: 48px; height: 48px; flex: none; font-size: var(--text-2xl); line-height: 1; }
@media (min-width: 40rem) {
  .btn-icon { min-width: 52px; min-height: 52px; }
  .btn-round { width: 52px; height: 52px; }
}
.btn-primary, .btn-round { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--color-ink); }
.btn, .btn-icon, .btn-round, .btn-small, .chip, .switch { touch-action: manipulation; }
/* hover only where a pointer can hover – on iPad/phone it would stick grey after a tap */
@media (hover: hover) {
  .btn:hover, .btn-icon:hover, .btn-small:hover, .chip:hover { background: var(--color-paper-3); }
  .btn-primary:hover, .btn-round:hover { background: var(--color-ink-2); color: var(--color-accent-ink); }
}
.btn:active, .btn-icon:active, .btn-round:active, .btn-small:active { background: var(--color-ink); color: var(--color-paper); }
.btn:disabled, .btn-icon:disabled, .btn-round:disabled { background: var(--color-paper-3); color: var(--color-muted); box-shadow: none; cursor: not-allowed; }
/* two-tap confirm: the armed button turns solid black */
.armed, .btn.armed, .btn-small.armed, .btn-icon.armed { background: var(--color-ink); color: var(--color-paper); }

input.text-input, input.search, input.pin-input {
  width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 0; border-radius: 0;
  background: var(--color-paper); color: var(--color-ink); font-size: 1rem; box-shadow: inset 0 0 0 2px var(--color-ink);
}
input.text-input:focus-visible, input.search:focus-visible, input.pin-input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
input::placeholder { color: var(--color-muted); opacity: 1; }
input.search { font-size: var(--text-lg); }

.chip { min-height: 44px; padding: var(--space-2xs) var(--space-md); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.chip-accent { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }

/* status: the state is spelled out */
.pill { display: inline-flex; gap: var(--space-2xs); padding: var(--space-3xs) var(--space-xs); font-size: var(--text-xs); white-space: nowrap; box-shadow: inset 0 0 0 2px var(--color-ink); }
@media (min-width: 40rem) { .pill { gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); } }
.pill-ok { background: var(--color-ink); color: var(--color-paper); }
.pill-bad { background: var(--color-paper); color: var(--color-ink); font-weight: 600; }
.pill-state { font-weight: 400; }
.status-pills { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.tag { padding: var(--space-3xs) var(--space-xs); background: var(--color-paper-3); color: var(--color-ink-2); white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); max-width: calc(100% - var(--space-xl)); padding: var(--space-sm) var(--space-lg); z-index: var(--z-toast); background: var(--color-ink); color: var(--color-paper); font-weight: 500; transition: transform var(--dur-short) var(--ease-out); }
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--color-paper); color: var(--color-error); box-shadow: inset 0 0 0 2px var(--color-error); }

.art-frame { position: relative; flex: none; width: 56px; height: 56px; overflow: hidden; background: var(--color-paper-3); display: grid; place-items: center; }
.art-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-initial { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--color-muted); }
.art-md { width: 48px; height: 48px; } .art-lg { width: 72px; height: 72px; }
.art-md .art-initial { font-size: 1.3rem; } .art-lg .art-initial { font-size: 2rem; }
@media (min-width: 40rem) {
  .art-md { width: 52px; height: 52px; } .art-lg { width: 112px; height: 112px; }
  .art-lg .art-initial { font-size: 3rem; }
}

.qr svg { display: block; width: 100%; height: auto; filter: invert(1); }
.qr-md { width: 112px; flex: none; }
@media (min-width: 40rem) { .qr-md { width: 150px; } }

/* ============ rows ============ */
.row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-paper-3); }
@media (min-width: 40rem) { .row { gap: var(--space-md); padding-inline: var(--space-sm); } }
.row:last-child { border-bottom: 0; }
.row-text { flex: 1; min-width: 0; }
/* long titles get two lines, then "…" – and the buttons beside them never move */
.row-title { font-weight: 500; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.meta { overflow-wrap: anywhere; min-width: 0; }
.row > .btn-round, .row > .tag, .row > .btn-small, .row > .row-actions { flex: none; }
/* single-column grids: without a capped track, a long one-line title widens the whole column off-screen */
.page-guest .content, .banner, .sheet, .col, .card, .gate, .player, .stage-empty { grid-template-columns: minmax(0, 1fr); }
.row-sub { font-size: var(--text-sm); color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-dim { color: var(--color-muted); }
.row-mine { background: var(--color-paper-2); box-shadow: inset 6px 0 0 var(--color-ink); }
.row-next { background: var(--color-paper-2); }
.row-actions { display: flex; flex: none; gap: var(--space-2xs); }
.pos { width: 1.6rem; flex: none; font-weight: 600; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) {
  .row-actions { gap: var(--space-xs); }
  .pos { width: 2.2rem; font-size: var(--text-xl); }
}

.progress { height: 8px; background: var(--color-paper-3); overflow: hidden; }
.progress-fill { height: 100%; width: 100%; background: var(--color-ink); transform-origin: left; transform: scaleX(0); }
.progress-lg { height: 12px; }
.warning { margin: var(--space-md) var(--pad-r) 0 var(--pad-l); padding: var(--space-md) var(--space-lg); box-shadow: inset 0 0 0 2px var(--color-ink), inset 10px 0 0 var(--color-ink); font-weight: 500; }

/* ============ PIN gate ============ */
.gate { max-width: 420px; margin: 10vh auto 0; padding: var(--space-lg) var(--pad-r) var(--space-lg) var(--pad-l); display: grid; gap: var(--space-md); }
.gate h1 { font-size: var(--text-2xl); }
.pin-input { text-align: center; font-size: var(--text-2xl); }
.pin-error { color: var(--color-error); min-height: 1.5em; font-weight: 500; }

/* ============ top bar (phone, iPad) ============ */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-md); min-height: 56px; padding: calc(var(--space-xs) + env(safe-area-inset-top)) var(--pad-r) var(--space-xs) var(--pad-l); position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-ink); }
.topbar h1 { font-size: var(--text-lg); max-width: none; }
.topbar h1 small { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); margin-left: var(--space-xs); }

/* ============ guest ============ */
@media (min-width: 40rem) { .topbar { min-height: 64px; } }

/* ============ guest ============ */
.page-guest .content { max-width: 560px; margin: 0 auto; padding: var(--space-md) var(--pad-r) calc(var(--space-3xl) + env(safe-area-inset-bottom)) var(--pad-l); display: grid; gap: var(--space-md); }
.page-guest body.offline .topbar { border-bottom-style: dashed; }
.banner { display: grid; gap: 0; }
.banner .now { display: flex; gap: var(--space-md); align-items: center; padding: var(--space-md); background: var(--color-paper-2); box-shadow: inset 6px 0 0 var(--color-ink); padding-left: var(--space-lg); }
.banner > .muted { padding: var(--space-md); background: var(--color-paper-2); }
.personal { padding: var(--space-md); background: var(--color-ink); color: var(--color-paper); font-weight: 600; font-size: var(--text-lg); line-height: 1.2; }
.section-title { font-size: var(--text-xl); border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-sm); max-width: none; }
.results, .queue { border-top: var(--rule-hair) solid var(--color-ink); }
.results:empty { display: none; }
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: color-mix(in oklab, var(--color-ink) 60%, transparent); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(100%, 520px); padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom)); display: grid; gap: var(--space-md); background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-ink); }
.sheet h2 { font-size: var(--text-2xl); }
.sheet-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 40rem) { .sheet-actions .btn { flex: none; } }

/* ============ admin (phone first, then iPad portrait, then iPad landscape) ============ */
/* On a phone the status pills drop under the title; the bar only sticks once it is a single slim row. */
.page-admin .topbar { position: static; }
@media (min-width: 40rem) { .page-admin .topbar { position: sticky; } }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-md) var(--pad-r) calc(var(--space-3xl) + env(safe-area-inset-bottom)) var(--pad-l); max-width: var(--container); margin: 0 auto; align-items: start; }
@media (min-width: 48rem) { .admin-grid { --pad-l: max(var(--space-lg), env(safe-area-inset-left)); --pad-r: max(var(--space-lg), env(safe-area-inset-right)); padding-top: var(--space-lg); } }
@media (min-width: 60rem) { .admin-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap-columns); } }
.col { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.card { display: grid; gap: var(--space-md); padding: var(--space-md) 0 0; border-top: var(--rule-bar) solid var(--color-ink); min-width: 0; }
.card h2 { font-size: var(--text-xl); }
.stage-card { padding: 0; border-top: 0; gap: 0; box-shadow: inset 0 0 0 2px var(--color-ink); }
.stage-card .now { display: flex; gap: var(--space-md); align-items: center; padding: var(--space-md); }
.stage-card > .muted { padding: var(--space-xs) var(--space-md); background: var(--color-paper-2); font-variant-numeric: tabular-nums; }
.stage-card .controls { padding: var(--space-sm); border-top: var(--rule-hair) solid var(--color-paper-3); }
.stage-card .controls .btn { flex: 1 1 auto; }
.now-title { font-weight: 600; font-size: var(--text-xl); line-height: 1.1; overflow-wrap: anywhere; letter-spacing: var(--tracking-display); }
@media (min-width: 40rem) {
  .stage-card .now { gap: var(--space-lg); padding: var(--space-lg); }
  .stage-card > .muted { padding-inline: var(--space-lg); }
  .stage-card .controls { padding: var(--space-md); }
  .now-title { font-size: var(--text-2xl); }
}
.singer-chip { display: inline-block; max-width: 100%; margin-top: var(--space-xs); padding: var(--space-2xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); font-weight: 500; overflow-wrap: anywhere; }
.controls { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.stage-empty { padding: var(--space-lg) var(--space-md); display: grid; gap: var(--space-xs); }
@media (min-width: 40rem) { .stage-empty { padding: var(--space-xl) var(--space-lg); } }
.stage-empty p { font-weight: 600; font-size: var(--text-xl); }
.countdown-inline { font-variant-numeric: tabular-nums; }
.field { display: flex; gap: var(--space-md); align-items: center; }
.field span { color: var(--color-muted); }
.queue-card { padding-top: 0; }
/* phone: the queue row keeps position, title and the three buttons; the cover waits for a wider screen */
.queue-card .row .art-frame { display: none; }
@media (min-width: 30rem) { .queue-card .row .art-frame { display: grid; } }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-paper-3); }
.setting > :first-child { flex: 1; min-width: 0; }
.setting .row-sub { white-space: normal; }
.setting-label { font-weight: 500; }
.stepper { display: flex; flex: none; align-items: center; gap: var(--space-2xs); }
.stepper-value { min-width: 3rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .stepper { gap: var(--space-xs); } .stepper-value { min-width: 3.6rem; } }
.switch { position: relative; width: 64px; height: 36px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--color-paper); box-shadow: inset 0 0 0 2px var(--color-ink); }
.switch i::after { content: ''; position: absolute; top: 5px; left: 5px; width: 26px; height: 26px; background: var(--color-ink); transition: transform var(--dur-micro) linear; }
.switch input:checked + i { background: var(--color-ink); }
.switch input:checked + i::after { background: var(--color-paper); transform: translateX(28px); }
.switch input:focus-visible + i { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.join-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-md); }
@media (min-width: 40rem) { .join-card { gap: var(--space-lg); } }

/* ============ player (laptop, but usable on anything) ============ */
.player { max-width: 720px; margin: 0 auto; padding: var(--space-lg) var(--pad-r) var(--space-xl) var(--pad-l); display: grid; gap: var(--space-lg); }
.player h1 { font-size: var(--text-2xl); max-width: none; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }
/* phone: the step's button drops under its label */
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-md); box-shadow: inset 0 0 0 2px var(--color-paper-3); }
.step > .btn { grid-column: 2; justify-self: start; }
@media (min-width: 40rem) {
  .player { --pad-l: max(var(--space-lg), env(safe-area-inset-left)); --pad-r: max(var(--space-lg), env(safe-area-inset-right)); padding-top: var(--space-xl); }
  .player h1 { font-size: var(--text-3xl); }
  .step { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-lg); padding: var(--space-md) var(--space-lg); }
  .step > .btn { grid-column: auto; }
}
.step.done { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.step-n { font-weight: 600; font-size: var(--text-3xl); line-height: 1; min-width: 2rem; }
.step-body { font-weight: 500; }
.step-note { color: var(--color-error); margin-top: var(--space-3xs); }

/* ============ display: beamer + TV ============ */
html.page-display { font-size: min(2vh, 1.1vw); }
.page-display body { overflow: clip; height: 100vh; }
.page-display body.hide-cursor { cursor: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: clip; background: var(--color-paper); }

/* playing: head, six lyric lines, footer */
.playing { align-items: center; padding: var(--space-xl) var(--space-2xl) var(--space-lg); }
.stage-head { text-align: center; }
.stage-head .brand { font-size: 1.8rem; font-weight: 600; color: var(--color-ink-2); margin-bottom: 0.4rem; }
.stage-head h2 { max-width: 60ch; font-size: 2.6rem; }
.stage-head p { font-size: 1.6rem; color: var(--color-muted); }

.lyrics-host { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lyrics { --row: calc(100cqh / 6); --anchor: 1; position: relative; flex: 1; min-height: 0; width: 100%; max-width: 104rem; container-type: size; overflow: clip; margin: 0.8rem 0; }
.lyrics-track { position: absolute; left: 0; right: 0; top: 0; transform: translateY(calc((var(--anchor) - var(--cur, 0)) * var(--row))); transition: transform var(--dur-slide) var(--ease-out); will-change: transform; }
.lyrics-marker { position: absolute; left: 0; top: calc(var(--anchor) * var(--row) + var(--row) * 0.14); height: calc(var(--row) * 0.72); width: 0.9rem; background: var(--color-ink); }
.lyrics-marker[hidden] { display: none; }
.line { height: var(--row); line-height: var(--row); padding-left: 3rem; font-weight: 500; font-size: calc(min(3.7rem, var(--row) * 0.6) * var(--fit, 1)); letter-spacing: -0.02em; white-space: nowrap; color: var(--color-todo); }
.line.done { color: var(--color-done); }
.line.on { color: var(--color-ink); font-weight: 600; }

.lyrics-plain-wrap { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 104rem; overflow: clip; margin: 0.8rem 0; }
.lyrics-plain { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: var(--space-lg) 0 var(--space-2xl) var(--space-xl); font-family: var(--font-body); font-weight: 500; font-size: 2.8rem; line-height: 1.45; white-space: pre-wrap; transition: transform var(--dur-slide) linear; }
.lyrics-note { flex: 1; display: grid; align-content: center; justify-items: start; gap: var(--space-md); width: 100%; max-width: 104rem; padding-left: 3rem; }
.lyrics-note p { font-weight: 600; font-size: 4.4rem; line-height: 1.1; }
.lyrics-note span { font-size: 2.2rem; color: var(--color-muted); }
.lyrics-note .spinner { width: 4rem; height: 4rem; }
.art-stage { flex: 1; display: grid; place-items: center; }
.art-stage .art-frame { width: 30rem; height: 30rem; }
.art-stage .art-initial { font-size: 14rem; }

.stage-foot { width: 100%; max-width: 104rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2.4rem; }
.who { font-weight: 600; font-size: 2.4rem; letter-spacing: var(--tracking-display); }
.who .label { display: block; font-weight: 400; font-size: 1.4rem; }
.stage-foot .progress { height: 0.5rem; }
.time { text-align: right; font-size: 1.5rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.next-up { font-size: 1.5rem; color: var(--color-muted); }
.qr-corner { position: absolute; right: 4rem; top: 3.4rem; width: 7rem; font-size: 1.2rem; color: var(--color-muted); text-align: center; }
.qr-corner .qr { width: 100%; }
.paused-badge { position: absolute; top: 3.4rem; left: 4rem; display: none; padding: var(--space-xs) var(--space-lg); font-weight: 600; font-size: 2.2rem; box-shadow: inset 0 0 0 0.3rem var(--color-ink); }
.paused-badge.show { display: block; }

/* intermission */
.intermission { align-items: center; justify-content: center; text-align: center; gap: 2rem; }
.intermission .label { font-size: 2rem; }
.singer-name { max-width: 18ch; font-size: 14rem; line-height: 1; letter-spacing: -0.04em; }
.singer-name::after { content: ""; display: block; width: 14rem; height: 1rem; background: var(--color-ink); margin: 2.4rem auto 0; }
.song-line { font-size: 2.6rem; color: var(--color-ink-2); }
.countdown { font-weight: 600; font-size: 5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown.waiting { font-size: 2.6rem; font-weight: 400; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.intermission .next-up { position: absolute; left: 6rem; bottom: 3rem; }
.intermission .qr-corner { top: auto; bottom: 3rem; }

/* idle */
.idle { align-items: center; justify-content: center; text-align: center; gap: 3rem; }
.idle .brand { font-size: 2rem; font-weight: 600; color: var(--color-ink-2); }
.idle h1 { max-width: 14ch; font-size: 9rem; line-height: 1.05; letter-spacing: -0.04em; }
.idle .qr { width: 18rem; }
.idle .tagline { font-size: 2rem; color: var(--color-ink-2); }
.idle .url { font-size: 1.5rem; }

/* scoped to the beamer: the guest page puts .offline on <body>, and an unscoped rule hid the whole page */
.page-display .offline { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); display: none; z-index: var(--z-toast); padding: 0.4rem 1.6rem; background: var(--color-ink); color: var(--color-paper); font-weight: 500; font-size: 1.4rem; }
.page-display .offline.show { display: block; }
.offset-panel { position: fixed; left: 50%; bottom: 3rem; transform: translateX(-50%); z-index: var(--z-toast); padding: 0.8rem 2rem; background: var(--color-ink); color: var(--color-paper); font-size: 1.6rem; opacity: 0; transition: opacity var(--dur-short) linear; }
.offset-panel.show { opacity: 1; }
