/*
 * Lights on Falcon — visitor experience stylesheet: THE LIVING SHOWBILL.
 *
 * The viewer is tonight's showbill while the performance is still being
 * written (IMPECCABLE-DIRECTION-DECISION-2026-09-23). One continuous
 * composition runs from what is happening, to what can I do, to what
 * happened because of me. Sections change tempo and scale — full-bleed
 * bands, rules that behave like timing marks, an album-art crop that enters
 * from the edge — instead of becoming identical containers.
 *
 * Colour: ONLY the --lofx-* tokens the viewer receives from the Night
 * Package (LOF_Theme). The neutral values in the first block are a
 * last-resort fallback for the moment before the package arrives; they are
 * the only literal colours in this file, and a static test holds that line.
 *
 * Type: Joe's selected October 10 proof: Anek Latin display with Afacad Flux
 * reading text, self-hosted with their OFL notices. The existing Jakarta
 * files remain for loading fallbacks and legacy shells.
 *
 * Seasons: every season draws the SAME components; its Night Package style
 * (data-lofx-*) chooses the crop, the progress mark, dividers, framing,
 * labels, numerals, corners and the one authored transition.
 *
 * Refused on purpose: drop shadows, glass, decorative gradients, glows,
 * orbs, pill soup, equal-radius tiles and nested panels.
 */

/* The existing site header is absolute for its homepage hero. On this page
 * only, let its actual responsive height reserve space above the viewer. */
body.lof-public-viewer header[data-elementor-type="header"] > .header {
  position: relative !important;
  top: auto !important;
}

/* This exact existing header announcement says the season has ended. It is
 * not the current viewer's season status; keep both navigation siblings. */
body.lof-public-viewer header[data-elementor-type="header"] > .header > .elementor-element-9c6d0de {
  display: none !important;
}

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
/* The showbill's display weights (700–800): the same family, variable, Latin. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Variable-Latin.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

@font-face { font-family: "Anek Latin"; src: url("../fonts/AnekLatin-Variable-latin.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Afacad Flux"; src: url("../fonts/AfacadFlux-Variable-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

/* ---- fallback tokens (before the package arrives) ------------------- */
.lofx {
  --lofx-field: #111111;
  --lofx-field-deep: #070707;
  --lofx-surface: #1a1a1a;
  --lofx-raised: #222222;
  --lofx-band: #181818;
  --lofx-rule: #555555;
  --lofx-ink: #ececec;
  --lofx-ink-muted: #b8b8b8;
  --lofx-heading: #ffffff;
  --lofx-accent: #d9d9d9;
  --lofx-on-accent: #111111;
  --lofx-accent-ink: #ffffff;
  --lofx-atmos: #444444;
  --lofx-atmos-ink: #cccccc;
  --lofx-surprise: #dddddd;
  --lofx-signal: #dddddd;
  --lofx-on-signal: #111111;
  --lofx-status-ok: #cfcfcf;
  --lofx-status-wait: #cfcfcf;
  --lofx-status-stop: #cfcfcf;
  --lofx-status-unknown: #cfcfcf;
  --lofx-focus: #ffffff;
  --lofx-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lofx-font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lofx-font-numeric: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- layout scale ----------------------------------------------------- */
.lofx {
  --gutter: 1.25rem;
  --nav-h: 4.25rem;
  --night-h: 3.5rem;
  --radius: 2px;
  --measure: 34rem;
  --rule-w: 1px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: cubic-bezier(.7, 0, .2, 1);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lofx-field);
  color: var(--lofx-ink);
  font-family: var(--lofx-font-text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 1.5rem);
}
.lofx:has(.lofx-night:not([hidden])) { padding-bottom: calc(var(--nav-h) + var(--night-h) + env(safe-area-inset-bottom, 0px) + 1.5rem); }

/* The layout answers to the width measured in the reader's own text size, not
   to raw pixels. A media query's rem is the browser's INITIAL size, so 200%
   root text would keep the desktop grid; instead the viewer measures the
   window in root-font units and names its layout on .lofx (data-lofx-layout:
   "wide" from 48, "desktop" from 64, "narrow" under 20). No containment is
   used, so every fixed sheet, receipt and burst stays fixed to the viewport.
   The selectors are wrapped in :where() so they weigh exactly what the old
   media-query rules weighed. A probe one rem wide reports text-size changes. */
.lofx-rem { position: absolute; top: 0; left: 0; width: 1rem; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.lofx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Resets carry no specificity (:where), so every component rule wins. */
:where(.lofx) *, :where(.lofx) *::before, :where(.lofx) *::after { box-sizing: border-box; }
:where(.lofx) :where(h1, h2, h3, p, ul, ol, dl, dd, fieldset) { margin: 0; padding: 0; }
:where(.lofx) :where(ul, ol) { list-style: none; }
:where(.lofx) fieldset { border: 0; }
:where(.lofx) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.lofx) img { display: block; max-width: 100%; }
.lofx [hidden] { display: none !important; }

.lofx-sr, .lofx-announce {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.lofx :focus-visible {
  outline: 3px solid var(--lofx-focus);
  outline-offset: 3px;
}

.lofx-skip {
  position: absolute; left: var(--gutter); top: .75rem; z-index: 50;
  padding: .75rem 1rem; background: var(--lofx-heading); color: var(--lofx-field);
  font-weight: 700; text-decoration: none;
}
/* Hidden until keyboard focus by clipping it where it stands. Parking it above
   the viewer only hid it above the component: on a host page that space is the
   site's own header, where it showed. Focus restores its full box. */
.lofx-skip:not(:focus) {
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Signed in, WordPress fixes its toolbar over the top of the page (32px, 46px
   on small screens; under 600px it scrolls away with the page). Sticky and
   fixed viewer layers start below it instead of under it. */
body.admin-bar .lofx { --lofx-top-offset: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .lofx { --lofx-top-offset: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .lofx { --lofx-top-offset: 0px; } }
/* The page-scoped canvas template has no theme frame around the viewer. */
body.lof-viewer-canvas { margin: 0; }

/* The icon family: one stroke, one terminal, one gesture per glyph. */
.lofx-glyph { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.lofx-mark { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* Labels: small, but never the whole message. Used sparingly. */
.lofx-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  color: var(--lofx-ink-muted);
}
.lofx-label .lofx-glyph { width: 1.1rem; height: 1.1rem; }

/* ---- masthead ------------------------------------------------------------ */
/* The phone player stays with every place without competing for the bottom
   nav / My Night stack. In-flow sticky geometry needs no guessed spacer. */
.lofx-phone-player {
  position: sticky; top: var(--lofx-top-offset, 0px); z-index: 18;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: calc(.65rem + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) .65rem max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--lofx-field-deep); color: var(--lofx-ink); border-bottom: 1px solid var(--lofx-rule);
}
.lofx-phone-player[hidden] { display: none; }
.lofx-phone-copy { flex: 1 1 15rem; min-width: 0; }
.lofx-phone-title { font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.lofx-phone-detail { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: .875rem; color: var(--lofx-ink-muted); overflow-wrap: anywhere; }
.lofx-phone-detail [data-lof-phone-time] { font-variant-numeric: tabular-nums; }
.lofx-phone-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.lofx-phone-actions > button { min-height: 44px; max-width: 100%; white-space: normal; }
.lofx.has-sheet > .lofx-phone-player { visibility: hidden; }
@media print { .lofx-phone-player { display: none; } }
.lofx-top { padding: calc(env(safe-area-inset-top, 0px) + .85rem) var(--gutter) .35rem; }
.lofx-top-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.lofx-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--lofx-font-display); font-weight: 800; font-size: 1rem; line-height: 1.1;
  letter-spacing: .06em; text-transform: uppercase; color: var(--lofx-heading);
}
.lofx-brand-mark { color: var(--lofx-accent-ink); width: 1.35rem; height: 1.35rem; }
.lofx-pulse { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 600; color: var(--lofx-ink); font-variant-numeric: tabular-nums; }
.lofx-pulse[data-tone="ok"] .lofx-glyph { color: var(--lofx-status-ok); fill: var(--lofx-status-ok); }
.lofx-pulse[data-tone="wait"] .lofx-glyph { color: var(--lofx-status-wait); }
.lofx-pulse[data-tone="stop"] .lofx-glyph { color: var(--lofx-status-stop); }
.lofx-pulse[data-tone="unknown"] .lofx-glyph { color: var(--lofx-status-unknown); }

/* ---- places ------------------------------------------------------------- */
.lofx-main { outline: none; }
.lofx-place { padding: 0 var(--gutter); }
.lofx-head { padding: 1.1rem 0 1.4rem; max-width: var(--measure); }

.lofx-headline {
  font-family: var(--lofx-font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 6.2vw + .9rem, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--lofx-heading);
  outline: none;
  text-wrap: balance;
}
/* A heading receives focus when a place opens (so screen readers land on
   it); it is not a control, so it draws no ring. */
.lofx-headline:focus, .lofx-sheet-title:focus { outline: none; }
.lofx-line { margin-top: .5rem; max-width: var(--measure); color: var(--lofx-ink); }
.lofx-line--small { font-size: .9375rem; color: var(--lofx-ink-muted); }
.lofx-age { display: flex; gap: .45rem; align-items: center; margin-top: .6rem; font-size: .9375rem; font-weight: 600; color: var(--lofx-heading); font-variant-numeric: tabular-nums; }
.lofx-age .lofx-glyph { color: var(--lofx-status-wait); }
.lofx-credit { margin-top: .5rem; font-size: .75rem; color: var(--lofx-ink-muted); }

/* ======================================================================
   TONIGHT — the stage, the handoff, the listening band, the action.
   ====================================================================== */

/* The stage: live truth and the song share one composition. */
.lofx-stage { position: relative; padding: .25rem 0 1rem; }
.lofx-scene { position: relative; z-index: 1; display: flex; flex-direction: column; }
.lofx-eyebrow { order: 0; margin-bottom: .55rem; }
.lofx-state {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  color: var(--lofx-heading); font-variant-numeric: tabular-nums;
}
.lofx-state .lofx-glyph { width: 1.05rem; height: 1.05rem; }
.lofx-state[data-tone="ok"] { color: var(--lofx-accent-ink); }
.lofx-state[data-tone="ok"] .lofx-glyph { color: var(--lofx-accent-ink); fill: var(--lofx-accent-ink); }
.lofx-state[data-tone="wait"] .lofx-glyph { color: var(--lofx-status-wait); }
.lofx-state[data-tone="stop"] .lofx-glyph { color: var(--lofx-status-stop); }
.lofx-state[data-tone="unknown"] .lofx-glyph { color: var(--lofx-status-unknown); }
.lofx-scene .lofx-headline { max-width: 13ch; font-size: clamp(2rem, 5.6vw + .75rem, 3.75rem); }
/* The punchline under the headline: the season's second voice, smaller. */
.lofx-scene .lofx-line { margin-top: .35rem; max-width: 28ch; font-family: var(--lofx-font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--lofx-atmos-ink); }

/* A scene with no song: the season's mark, cropped off the edge — the
   showbill's energy without inventing a picture. */
.lofx-stage-mark { position: absolute; top: -1.75rem; right: calc(-1 * var(--gutter)); width: 34%; max-width: 13rem; aspect-ratio: 1; overflow: hidden; color: var(--lofx-atmos); pointer-events: none; }
.lofx-stage-mark .lofx-mark { width: 100%; height: 100%; transform: translateX(22%); }
.lofx-stage.no-now .lofx-scene { padding-right: 26%; }
.lofx-stage.no-now .lofx-scene .lofx-headline { max-width: 11ch; }

/* Now playing. The art enters from the right edge in the season's crop;
   the words hold the left column and never sit on the picture. */
.lofx-now {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 42%); gap: 0 .9rem;
  margin: .85rem calc(-1 * var(--gutter)) 0 0; padding-top: .75rem;
  border-top: var(--rule-w) solid var(--lofx-rule);
}
.lofx-now-body { grid-column: 1; grid-row: 1; min-width: 0; align-self: start; }
.lofx-art { grid-column: 2; grid-row: 1; position: relative; align-self: stretch; min-height: 8.5rem; overflow: hidden; background: var(--lofx-band); }
.lofx-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lofx-art--mark { display: grid; place-items: center; color: var(--lofx-atmos-ink); }
/* No cleared art: the season's mark, small, beside the title on no ground.
   The title is the statement; nothing is drawn to look like a cover. */
.lofx .lofx-now.is-season-mark { grid-template-columns: minmax(0, 1fr) 3.5rem; gap: 0 .75rem; margin-right: 0; }
.lofx .lofx-now.is-season-mark .lofx-art { align-self: start; width: 3.5rem; height: 3.5rem; min-height: 0; margin-top: .25rem; background: transparent; }
.lofx-art--mark .lofx-mark { width: 100%; height: 100%; }
.lofx-now-label { color: var(--lofx-accent-ink); }
.lofx-now-title { margin-top: .3rem; font-family: var(--lofx-font-display); font-weight: 800; font-size: clamp(1.75rem, 5vw + .8rem, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--lofx-heading); text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; }
.lofx-now.is-empty .lofx-now-title { font-size: clamp(1.375rem, 3vw + .8rem, 1.875rem); line-height: 1.12; }
.lofx-now-artist { margin-top: .2rem; font-size: 1.125rem; font-weight: 400; line-height: 1.25; color: var(--lofx-ink); }
.lofx-yours-line { grid-column: 1 / -1; grid-row: 2; display: flex; gap: .45rem; align-items: center; margin-top: .6rem; padding: .35rem .6rem; width: fit-content; max-width: 100%; font-weight: 700; background: var(--lofx-signal); color: var(--lofx-on-signal); }
.lofx-yours-line .lofx-inline-mark { color: var(--lofx-on-signal); }

/* The one timing grammar: elapsed — the season's mark — what is left. */
.lofx-clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .375rem .75rem; margin-top: .8rem; font-variant-numeric: tabular-nums; }
.lofx-clock-n, .lofx-clock-left { font-family: var(--lofx-font-numeric); font-weight: 700; font-size: 1rem; color: var(--lofx-heading); white-space: nowrap; }
.lofx-clock-n { grid-column: 1; grid-row: 1; }
.lofx-clock-left { grid-column: 2; grid-row: 1; justify-self: end; font-weight: 500; color: var(--lofx-ink); }
/* Reserved width: 0:59 → 1:00 and 9:59 → 10:00 never move a neighbour. */
.lofx-clock-num { display: inline-block; min-width: 4ch; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.lofx-clock-left .lofx-clock-num { text-align: right; }
.lofx-clock-note { grid-column: 1 / -1; font-size: .875rem; color: var(--lofx-ink); }
.lofx-clock-note:empty { display: none; }
.lofx-progress { position: relative; grid-column: 1 / -1; grid-row: 2; min-width: 0; height: 6px; background: var(--lofx-rule); }
.lofx-progress span { display: block; position: relative; width: 0; height: 100%; background: var(--lofx-accent-ink); }
/* The bar is repainted in place a few times a second (once with reduced
   motion); at a song's pace each step is under a pixel, so it needs no
   animation. When the page has stopped counting (an old answer, no
   connection), the bar quietens. */
[data-lof-clock="held"] .lofx-progress span { opacity: .55; }
.lofx-timing { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: .9375rem; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
.lofx-timing--unknown { justify-content: flex-start; font-weight: 600; color: var(--lofx-ink); }

/* The art's credit sits on the foot of the crop, on its own ground, never on the picture. */
.lofx-now.has-art .lofx-credit { position: absolute; right: 0; bottom: 0; z-index: 1; max-width: 42%; margin: 0; padding: .25rem .6rem; background: var(--lofx-field-deep); color: var(--lofx-ink); font-size: .6875rem; line-height: 1.3; }

/* Notices: stop-press lines under the stage, one rule each. */
.lofx-arrival, .lofx-remote, .lofx-notice, .lofx-trouble {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .75rem;
  padding: .85rem 0; border-top: var(--rule-w) solid var(--lofx-rule);
}
.lofx-arrival p, .lofx-notice span { flex: 1 1 14rem; }
.lofx-inline-mark { width: 1.15rem; height: 1.15rem; color: var(--lofx-accent-ink); align-self: center; }
.lofx-notice { color: var(--lofx-heading); font-weight: 600; }
.lofx-notice .lofx-glyph { color: var(--lofx-status-wait); align-self: center; }
.lofx-remote, .lofx-trouble { display: block; }
.lofx-remote h2, .lofx-trouble h2 { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--lofx-heading); }
.lofx-remote p, .lofx-trouble p { margin-top: .35rem; }
.lofx-trouble { margin: 0 calc(-1 * var(--gutter)); padding: 1rem var(--gutter) 1.1rem; border-top: 4px solid var(--lofx-status-wait); background: var(--lofx-band); }
.lofx-trouble .lofx-button { margin-top: .9rem; }

.lofx-tonight > * + * { margin-top: 0; }

/* The handoff: a full-bleed band, compact, never a second feature. */
.lofx-next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .15rem 1rem;
  margin: 0 calc(-1 * var(--gutter)); padding: .7rem var(--gutter) .75rem;
  background: var(--lofx-band); border-top: var(--rule-w) solid var(--lofx-rule);
}
.lofx-next > .lofx-label { grid-column: 1 / -1; }
.lofx-next-body { min-width: 0; }
.lofx-next-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; font-size: 1.3125rem; line-height: 1.2; color: var(--lofx-heading); }
.lofx-next-title { font-family: var(--lofx-font-display); font-weight: 800; letter-spacing: -0.015em; }
.lofx-kind { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lofx-atmos-ink); white-space: nowrap; }
.lofx-next-when { margin-top: .1rem; font-weight: 500; color: var(--lofx-ink); font-variant-numeric: tabular-nums; }
.lofx-next-queue { align-self: end; justify-self: end; }
/* A 320–360 px phone: the handoff stacks, so the wait never wraps against the link. */
@media (max-width: 22.5rem) {
  .lofx-next { grid-template-columns: minmax(0, 1fr); }
  .lofx-next-queue { justify-self: start; }
}

/* The listening band: the station, large, and one control for every other way. */
.lofx-hear {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem 1rem;
  padding: .75rem 0 .85rem; border-top: var(--rule-w) solid var(--lofx-rule);
}
.lofx-hear > .lofx-label { grid-column: 1 / -1; }
.lofx-hear > .lofx-label .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-fm { display: flex; align-items: flex-start; gap: .3rem; color: var(--lofx-heading); }
.lofx-fm-number { font-family: var(--lofx-font-numeric); font-weight: 800; font-size: clamp(2.5rem, 10vw, 4rem); line-height: .95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.lofx-fm-band { margin-top: .2rem; font-weight: 800; font-size: .9375rem; letter-spacing: .12em; color: var(--lofx-accent-ink); }
.lofx-hear-line { grid-column: 1 / -1; margin-top: .3rem; font-size: .9375rem; line-height: 1.4; color: var(--lofx-ink-muted); }
.lofx-hear-open { grid-column: 2; grid-row: 2; justify-self: end; padding-left: .85rem; padding-right: .85rem; }
.lofx-hear.no-fm .lofx-hear-open { grid-column: 1 / -1; justify-self: stretch; margin-top: .5rem; }
.lofx-hear-now { grid-column: 1 / -1; }

/* Coded review 2026-10-06 · Listen: ONE compact row on Tonight — the current
   state (sound on this phone, the speaker time, or the station as a tuning
   fact, at body size) and Listening options. The three ways live in the sheet. */
.lofx-hear { display: block; }
.lofx-hear-state { display: flex; align-items: center; gap: .55rem; margin-top: .3rem; font-weight: 700; color: var(--lofx-heading); overflow-wrap: anywhere; }
.lofx-hear-state .lofx-glyph { flex: 0 0 auto; color: var(--lofx-accent-ink); }
.lofx-hear-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .45rem; }
.lofx .lofx-hear .lofx-hear-actions .lofx-hear-open { grid-column: auto; grid-row: auto; justify-self: auto; align-self: auto; margin-top: 0; padding-left: 0; padding-right: 0; }
.lofx .lofx-hear .lofx-hear-actions .lofx-hear-open.lofx-button--primary { flex: 1 1 100%; padding-left: .95rem; padding-right: .95rem; }
.lofx .lofx-hear .lofx-hear-actions .lofx-hear-open > .lofx-glyph:first-child { display: inline-block; }
/* The sheet's one shared location prerequisite (audit A6). */
.lofx-listen-lock { display: grid; justify-items: start; gap: .5rem; margin: .75rem 0 .25rem; }
/* Songs and Queue: one compact line of listening state; Stop stays reachable. */
.lofx-listen-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .9rem; margin-top: .6rem; padding: .2rem 0; border-top: var(--rule-w) solid var(--lofx-rule); border-bottom: var(--rule-w) solid var(--lofx-rule); font-size: .9375rem; }
.lofx-listen-strip > .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-listen-strip-text { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--lofx-heading); }
.lofx-listen-strip:empty { display: none; }

/* The preview (on-site access amendment): an authored invitation, not a
   dead dashboard. One clear fact, the way in, then everything the live show
   holds — named, locked with words, never a disabled control. */
.lofx-preview { padding: 1rem 0 1.1rem; border-top: 5px solid var(--lofx-accent-ink); }
.lofx-preview-label { color: var(--lofx-accent-ink); }
.lofx-preview-label .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-preview-line { margin: .45rem 0 .9rem; max-width: 30ch; font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.18; letter-spacing: -0.015em; color: var(--lofx-heading); }
.lofx-preview .lofx-move { padding-bottom: 1rem; }
.lofx-now-locked { margin-top: .75rem; padding-top: .6rem; border-top: var(--rule-w) solid var(--lofx-rule); }
.lofx-feature-list { display: grid; gap: .3rem; margin: .45rem 0 .8rem; }
.lofx-feature-list li { position: relative; padding-left: 1rem; font-weight: 600; line-height: 1.3; color: var(--lofx-heading); }
.lofx-feature-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .4rem; height: .4rem; background: var(--lofx-atmos-ink); }
.lofx-queue-scout { padding: .5rem 0 1rem; }
.lofx-locked-list { margin: .35rem 0 .6rem; }
.lofx-locked-list li { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); color: var(--lofx-ink); }
.lofx-locked-list .lofx-glyph { flex: none; color: var(--lofx-atmos-ink); align-self: center; }
.lofx-locked-note { display: grid; gap: .75rem; justify-items: start; padding: .9rem 0; }
.lofx-locked-note .lofx-status { margin-top: 0; }
.lofx-locked-note .lofx-button--primary { justify-self: stretch; }
.lofx-listen .lofx-button--line { margin-top: .8rem; }
.lofx[data-lofx-rules="stitched"] .lofx-locked-list li { border-bottom-style: dashed; }
.lofx[data-lofx-rules="garland"] .lofx-locked-list li { border-bottom-style: dotted; border-bottom-width: 2px; }
.lofx[data-lofx-rules="double"] .lofx-locked-list li { border-bottom-style: double; border-bottom-width: 3px; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-preview > :is(.lofx-preview-label, .lofx-preview-line, .lofx-move) { grid-column: 1; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-preview > :is(h3, .lofx-locked-list, .lofx-feature-list, .lofx-line) { grid-column: 2; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-preview > h3 { grid-row: 1; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-preview > :is(.lofx-locked-list, .lofx-feature-list) { grid-row: 2 / span 3; }

/* The one dramatic action. */
.lofx-move { padding: .25rem 0 .9rem; }
/* The scene's second voice, when a live song has taken the lead. */
.lofx-aside { margin: 0 0 1rem; max-width: 30ch; font-family: var(--lofx-font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--lofx-atmos-ink); }

/* A phone, live (convergence P0): status, Now, the station, Next and the
   move are all reachable above My Night and the navigation at 320 × 700.
   Room comes from composition — one-line handoff, the station beside its
   control, the guidance in the listening sheet — never from a smaller
   target: every control keeps 44 px. */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now { padding-bottom: .5rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-eyebrow { margin-bottom: .3rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-headline { max-width: none; font-size: clamp(1.5rem, 3.4vw + 1rem, 2.25rem); line-height: 1.05; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-now { margin-top: .55rem; padding-top: .55rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-now.has-art .lofx-art { min-height: 6.5rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-now.has-art { grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 30%); }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-now-title { font-size: clamp(1.375rem, 3.2vw + .8rem, 2.25rem); }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-now-artist { font-size: 1rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now .lofx-clock { margin-top: .45rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: .45rem; padding-bottom: .3rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-line { font-size: 1.125rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-when { font-size: .9375rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-body { display: contents; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-line { grid-column: 1 / -1; }
/* The wait may wrap: a long one ("time not known yet", "roughly 4 min, may shift") never runs under the queue link. */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-when { grid-column: 1; margin-top: 0; min-width: 0; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-next-queue { grid-column: 2; justify-self: end; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-hear { grid-template-columns: auto minmax(0, 1fr); padding-top: .45rem; padding-bottom: .55rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-hear-line { display: none; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-hear .lofx-fm-number { font-size: 2.5rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-hear > .lofx-label { grid-column: 1; grid-row: 1; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-hear .lofx-fm { grid-column: 1; grid-row: 2; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-hear-open { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; padding-left: .75rem; padding-right: .6rem; line-height: 1.2; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-hear-open > .lofx-glyph:first-child { display: none; }
/* Your song is on: the fixed My Night strip already says so on a phone, so
   Now does not say it twice (wide layouts, with room, keep both). */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]):has(.lofx-night:not([hidden])) .lofx-yours-line { display: none; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-move { padding-bottom: .75rem; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-stage.has-now ~ .lofx-tonight .lofx-button--primary { font-size: 1.25rem; }

/* Secondary participation: outlined, quieter, one row. */
.lofx-extras { display: grid; gap: .75rem; padding-bottom: 1rem; }
.lofx-glow-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.lofx-glow-entry .lofx-label { display: none; }
.lofx-glow-entry .lofx-line { order: 2; margin-top: .35rem; font-size: .9375rem; color: var(--lofx-ink-muted); }
.lofx-glow-entry .lofx-button { order: 1; }

.lofx-schedule { padding: 1rem 0; border-top: var(--rule-w) solid var(--lofx-rule); }
.lofx-schedule dl { display: grid; margin-top: .45rem; }
.lofx-schedule dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: .55rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-schedule dt { color: var(--lofx-ink); }
.lofx-schedule dd { font-family: var(--lofx-font-numeric); font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--lofx-heading); font-variant-numeric: tabular-nums; }

.lofx-meanwhile, .lofx-effects, .lofx-living, .lofx-recap { padding: 1rem 0; border-top: var(--rule-w) solid var(--lofx-rule); }
.lofx-meanwhile ul, .lofx-tool-list { margin-top: .35rem; }
.lofx-meanwhile li, .lofx-tool-list li { border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-meanwhile .lofx-text-button, .lofx-tool-list .lofx-text-button { width: 100%; padding: .85rem 0; text-decoration: none; }

/* Commissioned effects: availability, limits and counterconditions visible. */
.lofx-effects ul { margin-top: .35rem; }
.lofx-effect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .95rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-effect > div { flex: 1 1 14rem; min-width: 0; }
.lofx-effect-name { display: flex; gap: .5rem; align-items: center; font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: var(--lofx-heading); }
.lofx-effect-name .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-effect .lofx-line { margin-top: .2rem; font-size: .9375rem; color: var(--lofx-ink-muted); }

/* One count row, on Tonight and in the stats sheet alike: the number, then
   its words beside it; with little room or large text the words wrap below. */
.lofx-living-list { display: grid; gap: .6rem; margin-top: .6rem; }
.lofx-living-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .8rem; }
.lofx-living-n { flex: none; min-width: 3ch; font-family: var(--lofx-font-numeric); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--lofx-heading); font-variant-numeric: tabular-nums; }
.lofx-living-text { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }

/* The recap: what happened because of you, in the signal colour. */
.lofx-recap { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 1rem var(--gutter) 1.1rem; background: var(--lofx-signal); color: var(--lofx-on-signal); border-top: 0; }
.lofx-recap .lofx-label, .lofx-recap .lofx-line { color: var(--lofx-on-signal); }
.lofx-recap .lofx-line { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.3125rem; line-height: 1.3; }
.lofx-recap .lofx-inline-mark { float: right; width: 1.75rem; height: 1.75rem; color: var(--lofx-on-signal); }

/* ======================================================================
   SEASONAL AUTHORSHIP — same components, the season's costume.
   Values come only from LOF_Theme::STYLE; colours only from tokens.
   ====================================================================== */
.lofx[data-lofx-corners="square"] { --radius: 0; }
.lofx[data-lofx-corners="soft"] { --radius: .5rem; }

/* Dividers: stitched seams, a string of garland lights, marquee doubles. */
.lofx[data-lofx-rules="stitched"] :is(.lofx-next, .lofx-hear, .lofx-effects, .lofx-living, .lofx-arrival, .lofx-remote, .lofx-notice, .lofx-schedule, .lofx-meanwhile) { border-top-style: dashed; border-top-width: 2px; }
.lofx[data-lofx-rules="stitched"] :is(.lofx-schedule dl > div, .lofx-meanwhile li, .lofx-tool-list li, .lofx-effect) { border-bottom-style: dashed; }
.lofx[data-lofx-rules="garland"] :is(.lofx-next, .lofx-hear, .lofx-effects, .lofx-living, .lofx-arrival, .lofx-remote, .lofx-notice, .lofx-schedule, .lofx-meanwhile) { border-top-style: dotted; border-top-width: 4px; }
.lofx[data-lofx-rules="garland"] :is(.lofx-schedule dl > div, .lofx-meanwhile li, .lofx-tool-list li, .lofx-effect) { border-bottom-style: dotted; border-bottom-width: 2px; }
.lofx[data-lofx-rules="double"] :is(.lofx-next, .lofx-hear, .lofx-effects, .lofx-living, .lofx-arrival, .lofx-remote, .lofx-notice, .lofx-schedule, .lofx-meanwhile) { border-top-style: double; border-top-width: 4px; }
.lofx[data-lofx-rules="double"] :is(.lofx-schedule dl > div, .lofx-meanwhile li, .lofx-tool-list li, .lofx-effect) { border-bottom-style: double; border-bottom-width: 3px; }

.lofx[data-lofx-eyebrow="caps_wide"] :is(.lofx-label, .lofx-state, .lofx-kind, .lofx-tag) { letter-spacing: .24em; }
.lofx[data-lofx-eyebrow="title"] :is(.lofx-label, .lofx-state, .lofx-kind, .lofx-tag) { text-transform: none; letter-spacing: .005em; font-size: .9375rem; }

.lofx[data-lofx-headline="stacked"] .lofx-headline { line-height: .96; letter-spacing: -0.04em; }
.lofx[data-lofx-headline="airy"] .lofx-headline { line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; }

/* The Now frame: a lintel (a heavy bar over it), a ticket stub (a
   perforation), or a marquee (double rules above and below). */
.lofx[data-lofx-frame="lintel"] .lofx-now { border-top: 5px solid var(--lofx-accent-ink); }
.lofx[data-lofx-frame="ticket"] .lofx-now { border-top: 2px dashed var(--lofx-atmos-ink); }
.lofx[data-lofx-frame="marquee"] .lofx-now { border-top: 4px double var(--lofx-atmos-ink); }
.lofx[data-lofx-frame="marquee"] .lofx-stage { border-bottom: 4px double var(--lofx-atmos-ink); }

/* The album-art crop, in the season's silhouette (clip paths are defined
   once in the viewer's own <svg> defs, in the box's own units). */
.lofx[data-lofx-crop="wing"] .lofx-now.has-art .lofx-art { clip-path: url(#lofx-crop-wing); }
.lofx[data-lofx-crop="ornament"] .lofx-now.has-art .lofx-art { clip-path: url(#lofx-crop-ornament); }
.lofx[data-lofx-crop="ticket"] .lofx-now.has-art .lofx-art { clip-path: url(#lofx-crop-ticket); }

/* Progress marks: candle-flame ticks, a ribbon with a swallowtail, countdown cells. */
.lofx[data-lofx-progress="candle"] .lofx-progress { height: 10px; background: transparent; border-bottom: 2px solid var(--lofx-rule); }
.lofx[data-lofx-progress="candle"] .lofx-progress span { height: 8px; background: var(--lofx-accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='8'%3E%3Crect width='3' height='8' fill='black'/%3E%3C/svg%3E") repeat-x left bottom; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='8'%3E%3Crect width='3' height='8' fill='black'/%3E%3C/svg%3E") repeat-x left bottom; }
.lofx[data-lofx-progress="candle"] .lofx-progress::after {
  content: ""; position: absolute; bottom: 2px; width: 8px; height: 14px; margin-left: -4px;
  left: var(--lofx-at, 0%); background: var(--lofx-signal); border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
}
.lofx[data-lofx-progress="ribbon"] .lofx-progress { height: 4px; background: var(--lofx-rule); }
.lofx[data-lofx-progress="ribbon"] .lofx-progress span { height: 12px; margin-top: -4px; background: var(--lofx-accent-ink); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%); }
.lofx[data-lofx-progress="countdown"] .lofx-progress { height: 10px; background: var(--lofx-rule); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Crect width='6' height='10' fill='black'/%3E%3C/svg%3E") repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='10'%3E%3Crect width='6' height='10' fill='black'/%3E%3C/svg%3E") repeat-x; }
.lofx[data-lofx-progress="countdown"] .lofx-progress span { background: var(--lofx-accent-ink); }

.lofx[data-lofx-numerals="display"] :is(.lofx-clock-n, .lofx-clock-left, .lofx-next-when) { font-family: var(--lofx-font-numeric); font-size: 1.125rem; font-weight: 800; letter-spacing: .01em; color: var(--lofx-heading); }
.lofx[data-lofx-numerals="display"] .lofx-schedule dd { font-size: 1.875rem; letter-spacing: -0.01em; }
.lofx[data-lofx-numerals="display"] .lofx-qi-n { font-weight: 800; letter-spacing: -0.02em; }

/* One authored transition per major state change: the showbill re-cuts. */
.lofx-stage.is-recut .lofx-scene, .lofx-stage.is-recut .lofx-now { animation: lofx-recut-cut .55s var(--cut) both; }
.lofx[data-lofx-motion="unfurl"] .lofx-stage.is-recut :is(.lofx-scene, .lofx-now) { animation-name: lofx-recut-unfurl; animation-duration: .7s; }
.lofx[data-lofx-motion="snap"] .lofx-stage.is-recut :is(.lofx-scene, .lofx-now) { animation-name: lofx-recut-snap; animation-duration: .5s; animation-timing-function: steps(1, end); }
@keyframes lofx-recut-cut { from { clip-path: inset(0 0 100% 0); transform: translateY(-.4rem); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes lofx-recut-unfurl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lofx-recut-snap { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: .15; } 60% { opacity: 1; } 100% { opacity: 1; } }

/* ======================================================================
   CONTROLS
   ====================================================================== */
.lofx-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .7rem 1.15rem;
  border: 0; border-radius: var(--radius);
  background: var(--lofx-raised); color: var(--lofx-heading);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: transform .12s var(--ease), background-color .12s var(--ease);
}
.lofx-button:active:not(:disabled) { transform: translateY(1px); }
/* The primary slab: full width, the season's action colour, the one loud thing. */
.lofx-button--primary {
  width: 100%; min-height: 4rem; padding: .8rem 1.1rem; justify-content: flex-start; gap: .85rem;
  font-family: var(--lofx-font-display); font-size: 1.4375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-align: left;
  background: var(--lofx-accent); color: var(--lofx-on-accent);
}
.lofx-move-icon { display: inline-grid; place-items: center; flex: none; }
.lofx-move-icon .lofx-glyph { width: 1.75rem; height: 1.75rem; stroke-width: 2.2; }
.lofx-move-label { flex: 1 1 auto; min-width: 0; }
.lofx-move-arrow { width: 1.6rem; height: 1.6rem; stroke-width: 2.4; }
/* Secondary: drawn with a line, never a filled slab. */
.lofx-button--line { background: transparent; color: var(--lofx-heading); box-shadow: inset 0 0 0 2px var(--lofx-rule); justify-content: flex-start; gap: .65rem; }
.lofx-button--line .lofx-glyph:first-child { color: var(--lofx-accent-ink); }
.lofx-button--line .lofx-chev { width: 1rem; height: 1rem; margin-left: auto; }
.lofx-button--surprise { background: transparent; color: var(--lofx-heading); padding-left: 0; padding-right: 0; }
.lofx-button--surprise .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-button:disabled, .lofx-song-action:disabled { cursor: not-allowed; opacity: 1; background: transparent; color: var(--lofx-ink-muted); box-shadow: inset 0 0 0 1px var(--lofx-rule); }
.lofx-text-button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  padding: .25rem 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--lofx-heading); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--lofx-accent-ink); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.lofx-text-button .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-icon-button {
  display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; color: var(--lofx-ink);
}
.lofx-icon-button[aria-pressed="true"] { color: var(--lofx-accent-ink); background: var(--lofx-raised); }
.lofx-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.lofx-row .lofx-button { flex: 1 1 10rem; }

/* Status: a seal glyph and words. Never a box, never colour alone. */
.lofx-status { display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; font-weight: 600; color: var(--lofx-heading); }
.lofx-status .lofx-glyph { margin-top: .12em; }
.lofx-status[data-tone="ok"] .lofx-glyph { color: var(--lofx-status-ok); }
.lofx-status[data-tone="wait"] .lofx-glyph { color: var(--lofx-status-wait); }
.lofx-status[data-tone="stop"] .lofx-glyph { color: var(--lofx-status-stop); }
.lofx-status[data-tone="unknown"] .lofx-glyph { color: var(--lofx-status-unknown); }

/* ======================================================================
   SONGS
   ====================================================================== */
.lofx-search label { display: block; margin-bottom: .4rem; font-weight: 700; color: var(--lofx-heading); }
.lofx-search-row { display: flex; align-items: center; gap: .5rem; padding: 0 .35rem 0 .9rem; background: var(--lofx-surface); border-radius: var(--radius); box-shadow: inset 0 -2px 0 var(--lofx-rule); }
.lofx-search-row:focus-within { box-shadow: inset 0 -3px 0 var(--lofx-accent-ink); }
.lofx-search-row .lofx-glyph { color: var(--lofx-ink-muted); }
.lofx-search input { flex: 1; min-width: 0; min-height: 3.25rem; border: 0; background: transparent; font-size: 1.0625rem; outline: none; }
.lofx-search input::placeholder { color: var(--lofx-ink-muted); opacity: 1; }
.lofx-search input::-webkit-search-cancel-button { display: none; }

.lofx-song-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .5rem; }
.lofx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-width: 0; max-width: 100%; }
.lofx-filter span { font-size: .875rem; color: var(--lofx-ink-muted); }
.lofx-filter select { min-height: 2.75rem; padding: 0 .75rem; border: 0; border-radius: var(--radius); background: var(--lofx-surface); color: var(--lofx-heading); font-weight: 700; max-width: 100%; min-width: 0; }
.lofx-count { margin-top: 1.25rem; font-size: .875rem; color: var(--lofx-ink-muted); }

.lofx-shelf { margin-top: .75rem; }
.lofx-shelf + .lofx-shelf { margin-top: 2rem; }
.lofx-shelf-title { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--lofx-heading); padding-bottom: .5rem; border-bottom: 3px solid var(--lofx-heading); }
.lofx-shelf .lofx-text-button { margin-top: .4rem; }

/* Songs on a phone: a shorter preamble so the first song shows sooner.
   Every control stays (search, both views, Surprise, the allowance, the
   listening strip with Stop); only spacing, the headline size and the
   season's flavour line give way. Controls keep their 44px. */
.lofx:not([data-lofx-layout~="wide"]) .lofx-head--songs { padding: .4rem 0 .5rem; }
.lofx:not([data-lofx-layout~="wide"]) .lofx-head--songs .lofx-headline { font-size: clamp(1.75rem, 3vw + 1.1rem, 2.25rem); }
.lofx:not([data-lofx-layout~="wide"]) .lofx-head--songs [data-songs-intro="flavour"] { display: none; }
.lofx:not([data-lofx-layout~="wide"]) .lofx-head--songs [data-songs-intro="rule"] { margin-top: .3rem; font-size: .9375rem; line-height: 1.4; }
.lofx:not([data-lofx-layout~="wide"]) [data-place="songs"] .lofx-listen-strip { margin-top: 0; }
.lofx:not([data-lofx-layout~="wide"]) [data-place="songs"] .lofx-search { margin-top: .6rem; }
.lofx:not([data-lofx-layout~="wide"]) [data-place="songs"] .lofx-search label { margin-bottom: .25rem; }
.lofx:not([data-lofx-layout~="wide"]) [data-place="songs"] .lofx-search input { min-height: 2.75rem; }
/* Fit readable native option names, not merely the select's outer box.
   Narrow phones and enlarged text use one column; wider phones can share
   the row. Keep the actual category/view values and native controls. */
.lofx:not([data-lofx-layout~="wide"]) .lofx-song-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); align-items: end; gap: .5rem .75rem; margin-top: .6rem; }
.lofx:not([data-lofx-layout~="wide"]) .lofx-song-tools .lofx-filter { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .15rem; }
.lofx:not([data-lofx-layout~="wide"]) .lofx-song-tools .lofx-filter select { width: 100%; }
.lofx:not([data-lofx-layout~="wide"]) .lofx-song-tools .lofx-button--surprise { justify-self: start; }
.lofx:not([data-lofx-layout~="wide"]) [data-lof-song-allowance] > .lofx-status { margin-top: .5rem; font-size: .9375rem; line-height: 1.4; }
.lofx:not([data-lofx-layout~="wide"]) [data-lof-song-results] .lofx-shelf { margin-top: .9rem; }
.lofx:not([data-lofx-layout~="wide"]) [data-lof-song-results] .lofx-shelf-title { font-size: 1.25rem; padding-bottom: .35rem; }

/* Flex, not a fixed grid: with large text the action wraps under the title
   instead of pushing the row off the screen. */
.lofx-song { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .875rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-song-art { flex: none; }
.lofx-song-text { flex: 1 1 9rem; }
.lofx-song-action { flex: none; margin-left: auto; max-width: 100%; }
.lofx-song-art { width: 3.5rem; height: 3.5rem; overflow: hidden; display: grid; place-items: center; color: var(--lofx-ink-muted); background: var(--lofx-surface); }
.lofx-song-art img { width: 100%; height: 100%; object-fit: cover; }
/* No art (or art that failed): the season's own mark, small and on no
   ground, in the art's column — titles stay aligned, nothing poses as a cover. */
.lofx-song-art--mark { width: 2rem; height: 2rem; margin-inline: .75rem; background: transparent; color: var(--lofx-atmos-ink); }
.lofx-song-mark { width: 1.5rem; height: 1.5rem; }
.lofx-song-text { min-width: 0; display: grid; gap: .1rem; }
.lofx-song-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--lofx-heading); }
.lofx-song-meta { font-size: 1rem; line-height: 1.35; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
/* Coded review 2026-10-06 (audit A4) · the ONE operational status (playing,
   yours, already in queue, not tonight) reads as a state with its glyph; the
   discovery labels below it are readable words with a rule mark — never a
   box or a tick, and never the same treatment as the status. */
.lofx-song-status { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--lofx-heading); }
.lofx-song-status .lofx-glyph { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; color: var(--lofx-accent-ink); }
.lofx-song-status[data-badge="unavailable"], .lofx-song-status[data-badge="unavailable"] .lofx-glyph { color: var(--lofx-status-stop); }
.lofx-badges { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .2rem; }
.lofx-badge { font-size: .875rem; font-weight: 700; letter-spacing: .01em; color: var(--lofx-accent-ink); }
/* An explainable stamp is a button: it keeps the stamp's own surface, never the browser's button face. */
.lofx button.lofx-badge { background: transparent; border: 0; padding: 0; }
.lofx-badge::before { content: ""; display: inline-block; width: .7rem; height: 2px; margin-right: .35rem; background: currentColor; vertical-align: .22em; }
.lofx-song-action {
  min-height: 2.75rem; min-width: 5.75rem; padding: .5rem .75rem;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--lofx-raised); color: var(--lofx-heading); font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
}
.lofx-song[data-kind="ask"] .lofx-song-action { background: var(--lofx-accent); color: var(--lofx-on-accent); }
.lofx-song[data-kind="yours"] { box-shadow: inset 4px 0 0 var(--lofx-accent-ink); padding-left: .85rem; }
.lofx-song[data-kind="yours"] .lofx-song-action { background: transparent; color: var(--lofx-accent-ink); box-shadow: inset 0 0 0 2px var(--lofx-accent-ink); }
.lofx-song[data-kind="off"] .lofx-song-title { color: var(--lofx-ink-muted); }

/* Ranked roster: tonight's rank, large, where art would sit. */
.lofx-song-rank { flex: none; width: 2.75rem; font-family: var(--lofx-font-numeric); font-weight: 800; font-size: 2.25rem; line-height: 1; letter-spacing: -0.05em; color: var(--lofx-accent-ink); font-variant-numeric: tabular-nums; }
.lofx-shelf[data-present="ranked"] .lofx-song:first-child .lofx-song-rank { font-size: 3rem; }
/* The feature: cleared art leads as an editorial crop, the words beside it. */
.lofx-song--feature { align-items: stretch; padding: 1rem 0; }
.lofx-song--feature .lofx-song-art--feature { width: 38%; max-width: 11rem; height: auto; min-height: 8rem; }
.lofx-song--feature .lofx-song-title { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.015em; }
.lofx-song--feature .lofx-song-action { align-self: end; }
.lofx[data-lofx-crop="wing"] .lofx-song-art--feature { clip-path: url(#lofx-crop-wing); }
.lofx[data-lofx-crop="ornament"] .lofx-song-art--feature { clip-path: url(#lofx-crop-ornament); }
.lofx[data-lofx-crop="ticket"] .lofx-song-art--feature { clip-path: url(#lofx-crop-ticket); }
/* The complete list: words only, tight rhythm. */
.lofx-songs[data-present="type"] .lofx-song { padding: .65rem 0; }

.lofx-empty { padding: 2rem 0; }
.lofx-empty .lofx-mark { width: 3rem; height: 3rem; color: var(--lofx-atmos-ink); margin-bottom: .75rem; }
.lofx-empty h2 { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--lofx-heading); }
.lofx-empty p { margin-top: .4rem; max-width: var(--measure); }
.lofx-near { margin-top: .4rem; }

/* ======================================================================
   QUEUE
   ====================================================================== */
/* The queue opens on what is playing: a full-bleed band, the song large. */
.lofx-queue-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; min-width: 0; margin: 0 calc(-1 * var(--gutter)); padding: .9rem var(--gutter); background: var(--lofx-band); border-top: 5px solid var(--lofx-accent-ink); }
.lofx-queue-now .lofx-label { color: var(--lofx-accent-ink); flex: 1 1 auto; }
.lofx-queue-now .lofx-queue-now-left { order: 2; }
.lofx-queue-now .lofx-queue-now-title { order: 3; flex: 1 1 100%; font-family: var(--lofx-font-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-queue-now { margin: 0; padding-left: 1.25rem; padding-right: 1.25rem; }
.lofx-queue-now .lofx-glyph { color: var(--lofx-accent-ink); fill: var(--lofx-accent-ink); align-self: center; }
.lofx-queue-now-title { font-weight: 800; color: var(--lofx-heading); min-width: 0; }
.lofx-queue-now-left { margin-left: auto; font-size: .875rem; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
.lofx-source { display: flex; gap: .45rem; align-items: center; margin: .6rem 0 .2rem; font-size: .875rem; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
.lofx-source[data-stale="true"] { color: var(--lofx-heading); }
.lofx-source[data-stale="true"] .lofx-glyph { color: var(--lofx-status-wait); }

.lofx-pin { position: sticky; top: var(--lofx-top-offset, 0px); z-index: 5; margin: .5rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); background: var(--lofx-field); }
.lofx-pin-button {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .6rem .75rem;
  border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--lofx-signal); color: var(--lofx-on-signal);
}
.lofx-pin-button .lofx-label { color: var(--lofx-on-signal); }
.lofx-pin-button .lofx-inline-mark { color: var(--lofx-on-signal); }
.lofx-pin-text { flex: 1; min-width: 0; display: grid; }
.lofx-pin-title { font-weight: 800; }
.lofx-pin-line { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.lofx-queue { margin-top: .75rem; counter-reset: none; }
.lofx-qi { display: grid; grid-template-columns: minmax(2.25rem, auto) minmax(0, 1fr) auto; align-items: start; gap: .75rem; padding: .95rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .6s var(--ease); }
.lofx-qi-n { font-family: var(--lofx-font-numeric); font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
.lofx-qi-n--moment { display: grid; place-items: start; color: var(--lofx-atmos-ink); font-size: 1.4rem; }
.lofx-qi-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--lofx-heading); }
.lofx-qi-meta { margin-top: .15rem; font-size: .9375rem; color: var(--lofx-ink-muted); font-variant-numeric: tabular-nums; }
.lofx-tags { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .35rem; }
.lofx-tag { display: inline-flex; gap: .3rem; align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lofx-ink); }
.lofx-tag--yours { color: var(--lofx-accent-ink); }
.lofx-tag--soft { color: var(--lofx-ink-muted); }
.lofx-qi.is-yours { margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); background: var(--lofx-surface); box-shadow: inset 5px 0 0 var(--lofx-signal); }
.lofx-qi.is-yours .lofx-qi-n { color: var(--lofx-heading); }
.lofx-qi--scheduled_moment, .lofx-qi--announcement, .lofx-qi--hold, .lofx-qi--insertion {
  margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  background: var(--lofx-band);
}
.lofx-qi--scheduled_moment .lofx-kind, .lofx-qi--announcement .lofx-kind, .lofx-qi--hold .lofx-kind, .lofx-qi--insertion .lofx-kind { color: var(--lofx-atmos-ink); }
.lofx-qi.is-new { animation: lofx-arrive .5s var(--ease) both; }
.lofx-qi.is-new-static { box-shadow: inset 5px 0 0 var(--lofx-atmos-ink); }
.lofx-qi.is-leaving { opacity: 0; transform: translateX(-.75rem); }
@keyframes lofx-arrive { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }

/* ======================================================================
   MORE
   ====================================================================== */
.lofx-more > * + * { margin-top: 2rem; }
.lofx-more-title { font-family: var(--lofx-font-display); font-size: clamp(1.375rem, 2vw + 1rem, 1.75rem); font-weight: 800; line-height: 1.15; color: var(--lofx-heading); text-wrap: balance; }
.lofx-more .lofx-more-sec { padding-top: 1rem; border-top: var(--rule-w) solid var(--lofx-rule); }
.lofx-more > .lofx-more-sec:first-child { border-top: 0; padding-top: .75rem; }
.lofx-more .lofx-more-sec + .lofx-more-sec { margin-top: 1.25rem; }
.lofx-more-invitation .lofx-line, .lofx-more [data-anchor="more-night"] .lofx-line { max-width: 42ch; margin-top: .4rem; text-wrap: pretty; }
.lofx-more-gate, .lofx-more-radio { display: flex; gap: .5rem; align-items: flex-start; margin-top: .8rem; font-size: .9375rem; line-height: 1.5; }
.lofx-more-gate .lofx-glyph, .lofx-more-radio .lofx-glyph { flex: none; margin-top: .2rem; color: var(--lofx-accent-ink); }
.lofx-more-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: .4rem; }
.lofx-more-facts li { display: flex; align-items: baseline; gap: .5rem; }
.lofx-more-facts strong { font-family: var(--lofx-font-numeric); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lofx-more-visit .lofx-schedule { margin-top: .6rem; border-top: 0; padding-top: 0; }
.lofx-more-preferences .lofx-button { font-size: .9375rem; min-height: 44px; }
.lofx-stats-picker { display: grid; gap: .3rem; margin-bottom: 1rem; }
.lofx-stats-picker select { width: 100%; font-size: 1rem; }
.lofx-stats-definition { margin-top: 1rem; }
.lofx-stats-definition summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.lofx-song-owner { display: inline-flex; gap: .25rem; align-items: center; margin-top: .2rem; font-size: .875rem; line-height: 1.3; }
.lofx-song-status + .lofx-song-owner { margin-left: .55rem; }
.lofx-song-owner .lofx-glyph { width: 1rem; height: 1rem; }
.lofx-more-sec .lofx-button { margin-top: .9rem; }
/* Coded review 2026-10-06 · Support the show, Visit, How we power the show:
   modest More sections (off by default), and the stats definitions. */
.lofx-support-list, .lofx-visit-list, .lofx-energy-credits { display: grid; gap: 1rem; margin-top: .5rem; }
.lofx-support-list .lofx-button { margin-top: .5rem; }
.lofx-visit-list .lofx-label { margin-bottom: .2rem; }
.lofx-energy .lofx-line + .lofx-line { margin-top: .6rem; }
.lofx-support-pointer { margin-top: .9rem; }
.lofx-stats-scope { margin-top: .9rem; }
.lofx-stats-defs { display: grid; gap: .35rem; margin-top: .9rem; font-size: .875rem; line-height: 1.4; color: var(--lofx-ink-muted); }
/* Trust-and-hierarchy 2026-10-06 · the counts lead; their definitions, and
   desktop My Night's history, sit one native disclosure away (44px summary). */
.lofx-stats-about, .lofx-night-details { margin-top: .9rem; }
.lofx-stats-about > summary, .lofx-night-details > summary { display: flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-weight: 800; color: var(--lofx-heading); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.lofx-stats-about .lofx-stats-defs { margin-top: .35rem; }
.lofx-night-summary { font-weight: 700; color: var(--lofx-heading); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lofx-night-details { margin-top: .5rem; }
.lofx-more-sub { margin-top: 1.25rem; }
.lofx-night-list { display: grid; gap: 1rem; margin-top: .5rem; }
.lofx-night-list li { padding-bottom: .9rem; border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-night-list .lofx-text-button { margin-right: 1.25rem; }
.lofx-night-item { margin-top: .2rem; font-weight: 600; color: var(--lofx-heading); font-variant-numeric: tabular-nums; }
.lofx-quote { margin-top: .35rem; padding-left: .8rem; box-shadow: inset 3px 0 0 var(--lofx-signal); color: var(--lofx-ink); }

/* ======================================================================
   NAVIGATION — Tonight / Songs / Queue / More, stable in every season.
   ====================================================================== */
.lofx-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--lofx-field-deep); border-top: 2px solid var(--lofx-rule);
}
.lofx-nav ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.lofx-nav li + li { border-left: 1px solid var(--lofx-rule); }
.lofx-nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  width: 100%; min-height: var(--nav-h); padding: .4rem .25rem .5rem;
  --lofx-nav-pad: .4rem .25rem .5rem; --lofx-nav-size: .875rem; --lofx-nav-weight: 700;
  border: 0; background: transparent; cursor: pointer; color: var(--lofx-ink);
  font-size: .875rem; font-weight: 700;
}
.lofx-nav-item .lofx-glyph { width: 1.5rem; height: 1.5rem; }
.lofx-nav-item.is-active { color: var(--lofx-accent-ink); --lofx-nav-ink: var(--lofx-accent-ink); }
.lofx-nav-item.is-active::after { content: ""; position: absolute; bottom: .3rem; left: 26%; right: 26%; height: 3px; background: var(--lofx-accent-ink); }
/* HOST-THEME SHIELD. Through the canvas template's wp_head a host theme styles
   bare buttons: Hello Elementor's `[type=button], button` and `button:hover`, an
   Elementor kit's `.elementor-kit-N button` (white text, pill radius, 15px 30px
   padding, gradient, nowrap). On staging that turned My Night's words white on
   the lime signal and widened the nav past the screen. These rules outrank any
   such selector and re-assert only theme-contested properties, every value
   coming from the authored rules above and below (custom properties), so the
   designed geometry per layout is unchanged. The nav is flex in every layout;
   the bar is flex except on desktop, which hides it (--lofx-night-display).
   Neither animates (reduced motion holds). lof-viewer-isolation.css now keeps
   the whole viewer clear of a host theme; this shield is what still holds the
   strip and the nav in a browser without cascade layers, which ignores it. */
.lofx .lofx-nav .lofx-nav-item, .lofx .lofx-nav .lofx-nav-item:is(:hover, :focus, :active) {
  width: 100%; min-width: 0; border: var(--lofx-shield-border, 0); border-radius: 0; background-color: var(--lofx-nav-bg, transparent); background-image: none; box-shadow: none;
  padding: var(--lofx-nav-pad); color: var(--lofx-nav-ink, var(--lofx-ink)); font-family: var(--lofx-nav-font, inherit); font-size: var(--lofx-nav-size);
  font-weight: var(--lofx-nav-weight); line-height: inherit; letter-spacing: var(--lofx-nav-track, normal); text-transform: none; white-space: normal;
  display: flex; text-align: center; transition: none;
}
.lofx .lofx-night .lofx-night-bar, .lofx .lofx-night .lofx-night-bar:is(:hover, :focus, :active) {
  width: 100%; min-width: 0; border: var(--lofx-shield-border, 0); border-radius: 0; background-color: transparent; background-image: none; box-shadow: none;
  padding: var(--lofx-night-pad); color: var(--lofx-on-signal); font: inherit; letter-spacing: normal; text-align: left; text-transform: none; white-space: normal;
  display: var(--lofx-night-display, flex); transition: none;
}

/* ======================================================================
   MY NIGHT — the persistent authored annotation of personal consequence.
   ====================================================================== */
.lofx-night { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 2px); z-index: 19; background: var(--lofx-surface); color: var(--lofx-ink); border-top: 2px solid var(--lofx-band); --lofx-on-signal: var(--lofx-ink); }
.lofx-night-bar {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: var(--night-h);
  padding: .45rem var(--gutter); border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--lofx-on-signal);
  --lofx-night-pad: .45rem var(--gutter);
}
.lofx-night-bar .lofx-inline-mark { width: 1.4rem; height: 1.4rem; color: var(--lofx-on-signal); }
.lofx-night-bar .lofx-label { color: var(--lofx-on-signal); font-size: .6875rem; }
.lofx-night-text { flex: 1; min-width: 0; display: grid; }
/* B4 (item 33) · The strip keeps its useful meaning: the title may shorten,
   the place and wait never do. */
.lofx-night-line { min-width: 0; font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lofx-night-line:has(.lofx-night-title-part) { display: flex; gap: .45rem; overflow: visible; }
/* A strip with no place-and-wait says its one line whole, wrapping, never cut. */
.lofx-night-line:not(:has(.lofx-night-title-part)) { white-space: normal; overflow: visible; text-overflow: clip; }
.lofx-night-title-part { flex: 0 1 auto; min-width: 3ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Coded review 2026-10-06 (audit A5) · the place and wait are never cut, so at
   320 px or with larger text they WRAP inside the strip's text column rather
   than run under Open; Open keeps its own width beside them. */
.lofx-night-detail { flex: 0 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-weight: 700; }
.lofx-night-open { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .2rem; font-size: .875rem; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.lofx-night-panel { display: none; background: var(--lofx-surface); color: var(--lofx-ink); }
/* A phone: the song gets the whole first row; "My Night" and the place and
   wait share the second — the title is not cut to three letters to make room. */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-night-text:has(.lofx-night-title-part) { grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: baseline; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-night-text:has(.lofx-night-title-part) .lofx-night-line { display: contents; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-night-text:has(.lofx-night-title-part) .lofx-night-title-part { grid-column: 1 / -1; grid-row: 1; }
/* The strip's colour, mark and screen-reader heading say whose it is; on a phone its row goes to the place and wait. */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-night-text:has(.lofx-night-title-part) > .lofx-label { display: none; }
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) .lofx-night-text:has(.lofx-night-title-part) .lofx-night-detail { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; }
/* On Queue, the fixed strip already pins your song on a phone: no second, larger pin. */
.lofx:not([data-lofx-layout~="wide"]):has(.lofx-night:not([hidden])) .lofx-pin { display: none; }
.lofx-night-title { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.3125rem; color: var(--lofx-heading); }

/* ======================================================================
   RECEIPTS, ANNOUNCEMENTS, DELIGHT
   ====================================================================== */
.lofx-receipt {
  position: fixed; left: var(--gutter); right: var(--gutter); z-index: 30;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + .75rem);
  padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--lofx-heading); color: var(--lofx-field); font-weight: 700;
  border-left: 6px solid var(--lofx-signal);
  animation: lofx-rise .2s var(--ease) both;
}
.lofx:has(.lofx-night:not([hidden])) .lofx-receipt { bottom: calc(var(--nav-h) + var(--night-h) + env(safe-area-inset-bottom, 0px) + .75rem); }
/* B4 · With a sheet open, the receipt floats ABOVE it (never hidden behind the
   sheet or inside the inert page), at the top where it covers no control. */
.lofx.has-sheet > .lofx-receipt, .lofx.has-sheet:has(.lofx-night:not([hidden])) > .lofx-receipt { z-index: 1070; top: calc(env(safe-area-inset-top, 0px) + .75rem); bottom: auto; }
/* A phone: transient feedback rides at the top, over the brand line — never on
   the primary action, the station or My Night, which now share the bottom. */
.lofx:not([data-lofx-layout~="wide"]):not([data-lofx-layout~="narrow"]) > .lofx-receipt { top: calc(env(safe-area-inset-top, 0px) + .5rem); bottom: auto; }
@keyframes lofx-rise { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

.lofx-delight {
  position: fixed; inset: auto 0 45% 0; z-index: 40; display: grid; justify-items: center; gap: .5rem; pointer-events: none;
  color: var(--lofx-signal); font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.375rem; text-align: center;
  animation: lofx-delight 2.2s var(--ease) both;
}
.lofx-delight .lofx-mark { width: 4rem; height: 4rem; }
.lofx-delight span { max-width: 18rem; padding: 0 var(--gutter); color: var(--lofx-heading); }
@keyframes lofx-delight { 0% { opacity: 0; transform: scale(.7) rotate(-6deg); } 18% { opacity: 1; transform: scale(1.06) rotate(2deg); } 30% { transform: scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ======================================================================
   SHEETS — contextual tools over the live place; closing returns there.
   ====================================================================== */
.lofx-sheet-host { position: fixed; inset: var(--lofx-top-offset, 0px) 0 0 0; z-index: 1060; display: flex; align-items: flex-end; justify-content: center; }
.lofx-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--lofx-field-deep) 80%, transparent); }
.lofx-sheet {
  position: relative; width: 100%; max-height: min(88vh, 88dvh); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--lofx-field); border-top: 5px solid var(--lofx-accent-ink);
  animation: lofx-sheet .22s var(--ease) both;
}
@keyframes lofx-sheet { from { transform: translateY(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
.lofx-sheet-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 .6rem; background: var(--lofx-field); border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-sheet-title { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.625rem; line-height: 1.12; letter-spacing: -0.02em; color: var(--lofx-heading); outline: none; }
.lofx-sheet-body { padding-top: .75rem; }
/* A short viewport (200% zoom, a phone on its side): a pinned title would cover
   the action it introduces, so the bar scrolls with the sheet. Escape, the scrim
   and the close button one scroll up still close it; the dialog is unchanged. */
@media (max-height: 30rem) { .lofx-sheet-bar { position: static; } }
.lofx-sheet-body > * + * { margin-top: 1rem; }
.lofx-listen { padding-top: 1rem; border-top: var(--rule-w) solid var(--lofx-rule); }
.lofx-listen h3 { display: flex; gap: .55rem; align-items: center; font-family: var(--lofx-font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--lofx-heading); }
.lofx-listen h3 .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-listen .lofx-button { margin-top: .9rem; }
/* The sheet's station: a compact 18px fact under Car radio, at the same rank
   as Phone and Outdoor speakers (only .lofx-hear rules size it larger). */
.lofx-listen-station { display: flex; align-items: baseline; gap: .3rem; margin-top: .35rem; color: var(--lofx-heading); }
.lofx-listen .lofx-listen-station .lofx-fm-number { font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; }
.lofx-listen .lofx-listen-station .lofx-fm-band { margin-top: 0; font-size: .9375rem; }

.lofx-glow-form { display: grid; gap: 1rem; }
/* The words wait for a destination (CD06): a plain group, no frame of its own. */
.lofx-glow-compose { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.lofx-glow-why { margin-bottom: .5rem; color: var(--lofx-ink-muted); }
.lofx-prompts legend { margin-bottom: .5rem; font-weight: 700; color: var(--lofx-heading); }
.lofx-prompt { display: flex; gap: .7rem; align-items: center; min-height: 2.75rem; padding: .3rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); cursor: pointer; }
.lofx-prompt input { width: 1.25rem; height: 1.25rem; accent-color: var(--lofx-accent); }
/* Send a Glow · two destinations: pressed is filled and carries a check (never colour alone). */
.lofx-dest { margin-bottom: .9rem; }
.lofx-dest-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .45rem; }
.lofx-dest-button { flex: 1 1 9rem; background: transparent; box-shadow: inset 0 0 0 2px var(--lofx-rule); }
.lofx-dest-button .lofx-glyph { color: var(--lofx-accent-ink); }
.lofx-dest-button[aria-pressed="true"] { background: var(--lofx-accent); color: var(--lofx-on-accent); box-shadow: none; }
.lofx-dest-button[aria-pressed="true"] .lofx-glyph { color: var(--lofx-on-accent); }
.lofx-dest-help { margin-top: .5rem; font-size: .9375rem; color: var(--lofx-ink-muted); }
.lofx-dest-consequence { margin-top: .35rem; color: var(--lofx-heading); }
.lofx-glows .lofx-label { margin-top: .6rem; }
.lofx-stats .lofx-text-button { margin-top: .4rem; }
.lofx-field { display: grid; gap: .4rem; }
.lofx-field > span:first-child { font-weight: 700; color: var(--lofx-heading); }
.lofx-field textarea, .lofx-field input, .lofx-field select {
  width: 100%; min-height: 3rem; padding: .75rem .9rem; border: 0; border-radius: var(--radius);
  background: var(--lofx-surface); box-shadow: inset 0 -2px 0 var(--lofx-rule); font-size: 1.0625rem;
}
.lofx-field textarea { resize: vertical; min-height: 6rem; }
.lofx-field textarea:focus, .lofx-field input:focus { box-shadow: inset 0 -3px 0 var(--lofx-accent-ink); outline: none; }
.lofx-glows { display: grid; gap: .9rem; margin-top: .5rem; }
.lofx-surprise-title { margin-top: .35rem; font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.02em; color: var(--lofx-heading); text-decoration: underline; text-decoration-color: var(--lofx-surprise); text-decoration-thickness: 4px; text-underline-offset: .2em; }
.lofx-receipt-subject { font-family: var(--lofx-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.3; color: var(--lofx-heading); }
.lofx-receipt-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; border-bottom: var(--rule-w) solid var(--lofx-rule); }
.lofx-receipt-facts dt { color: var(--lofx-ink-muted); }
.lofx-receipt-facts dd { text-align: right; color: var(--lofx-heading); font-weight: 600; }
.lofx-correct { padding: 1rem 0; border-top: var(--rule-w) solid var(--lofx-rule); }

/* ---- lighting: daylight is the same world, inverted, never cream ----------- */
.lofx[data-light="day"] .lofx-nav { background: var(--lofx-surface); }
.lofx[data-light="day"] .lofx-night { border-top: 2px solid var(--lofx-heading); }
.lofx[data-light="day"] .lofx-art--mark { color: var(--lofx-atmos); }

/* ---- more contrast: the visitor's choice or the system's ------------------- */
.lofx[data-contrast="more"] { --lofx-ink: var(--lofx-heading); --lofx-ink-muted: var(--lofx-heading); --lofx-rule: var(--lofx-ink-muted); }
@media (prefers-contrast: more) {
  .lofx { --lofx-ink: var(--lofx-heading); --lofx-ink-muted: var(--lofx-heading); --lofx-rule: var(--lofx-ink-muted); }
}
@media (forced-colors: active) {
  .lofx-button, .lofx-song-action, .lofx-pin-button, .lofx-night-bar, .lofx-nav-item.is-active { border: 2px solid ButtonText; --lofx-shield-border: 2px solid ButtonText; }
  .lofx-progress span { background: Highlight; -webkit-mask: none; mask: none; }
  /* B4 · shapes drawn only by a fill or an inset shadow vanish here: give them an edge. */
  .lofx-icon-button, .lofx-search-row, .lofx-field textarea, .lofx-field input, .lofx-field select, .lofx-filter select { border: 1px solid ButtonText; }
  /* …and focus drawn as a shadow vanishes too: every focused control draws an outline. */
  .lofx :focus-visible, .lofx-field textarea:focus, .lofx-field input:focus, .lofx-search input:focus { outline: 3px solid Highlight; outline-offset: 2px; }
  /* B4 (item 26) · every sheet, choice row and receipt has a visible edge too. */
  .lofx-sheet { border: 2px solid CanvasText; }
  .lofx-receipt { border: 2px solid CanvasText; }
  .lofx-prompt { border: 1px solid ButtonText; padding-left: .6rem; padding-right: .6rem; }
  .lofx-prompt:has(input:checked) { outline: 3px solid Highlight; outline-offset: -3px; }
  .lofx-dest-button { border: 1px solid ButtonText; }
  .lofx-dest-button[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .lofx-text-button { text-decoration: underline; }
  .lofx-correct { border-top: 2px solid CanvasText; }
  .lofx-song-art:not(.lofx-song-art--mark) { border: 1px solid CanvasText; }
  .lofx-night, .lofx-recap, .lofx-next, .lofx-trouble, .lofx-yours-line { border: 2px solid CanvasText; }
}

/* ---- motion: meaning survives without movement ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lofx *, .lofx *::before, .lofx *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lofx-delight { animation: none !important; }
}
.lofx[data-motion="reduced"] *, .lofx[data-motion="reduced"] *::before, .lofx[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }

/* ---- short or zoomed viewports: nothing fixed may swallow the page --------- */
@media (max-height: 30rem) {
  .lofx { padding-bottom: 1.5rem; }
  .lofx:has(.lofx-night:not([hidden])) { padding-bottom: 1.5rem; }
  .lofx-nav, .lofx-night { position: static; }
  .lofx-receipt, .lofx:has(.lofx-night:not([hidden])) .lofx-receipt { position: sticky; bottom: .5rem; }
  .lofx-pin { position: static; }
}

/* ======================================================================
   WIDE AND DESKTOP — separately composed, not a stretched phone.
   The composition follows the width available in the reader's text size
   (a 1280 px window at 200% text is 40rem: the single column).
   ====================================================================== */
/* layout: wide */
.lofx:where([data-lofx-layout~="wide"]) { --gutter: 2rem; }
:where(.lofx[data-lofx-layout~="wide"]) .lofx-scene .lofx-headline { max-width: 15ch; }
:where(.lofx[data-lofx-layout~="wide"]) .lofx-now { grid-template-columns: minmax(0, 1fr) minmax(12rem, 40%); }
:where(.lofx[data-lofx-layout~="wide"]) .lofx-art { min-height: 15rem; }
/* Room for one line: elapsed — the bar — what is left, in reserved columns. */
.lofx[data-lofx-layout~="wide"] .lofx-clock { grid-template-columns: auto minmax(3rem, 1fr) auto; }
.lofx[data-lofx-layout~="wide"] .lofx-progress { grid-column: 2; grid-row: 1; }
.lofx[data-lofx-layout~="wide"] .lofx-clock-left { grid-column: 3; }

/* layout: desktop */
.lofx:where([data-lofx-layout~="desktop"]) { --gutter: 2.5rem; padding-bottom: 3rem; }
.lofx:where([data-lofx-layout~="desktop"]):has(.lofx-night:not([hidden])) { padding-bottom: 3rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-top { padding: 1.25rem var(--gutter) 1rem; border-bottom: 2px solid var(--lofx-rule); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-brand { font-size: 1.1875rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-frame { display: grid; grid-template-columns: 12rem minmax(0, 50rem) minmax(16rem, 20rem); gap: 0 2.5rem; align-items: start; max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); }
/* No personal state yet (My Night hidden): no empty rail. The content column
   takes that room; its text keeps its own measure, so lines stay readable. */
.lofx:where([data-lofx-layout~="desktop"]):not(:has(.lofx-night:not([hidden]))) .lofx-frame { grid-template-columns: 11rem minmax(0, 62rem); gap: 0 2.25rem; max-width: 82rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-nav { position: sticky; top: var(--lofx-top-offset, 0px); left: auto; right: auto; bottom: auto; padding: 1.5rem 0 0; background: transparent; border: 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-nav ul { display: grid; grid-template-columns: 1fr; gap: 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-nav li + li { border-left: 0; border-top: 1px solid var(--lofx-rule); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-nav-item { flex-direction: row; justify-content: flex-start; gap: .75rem; min-height: 3.25rem; padding: .5rem 0; font-family: var(--lofx-font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
  --lofx-nav-pad: .5rem 0; --lofx-nav-font: var(--lofx-font-display); --lofx-nav-size: 1.25rem; --lofx-nav-weight: 800; --lofx-nav-track: -0.01em; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-nav-item.is-active::after { top: .75rem; bottom: .75rem; left: auto; right: 0; width: 4px; height: auto; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-place { padding: 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-stage { padding-top: 2rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-scene .lofx-headline { font-size: clamp(3rem, 3.6vw, 4.25rem); max-width: 16ch; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-scene .lofx-line { font-size: 1.375rem; max-width: 34ch; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-now { margin-right: 0; grid-template-columns: minmax(0, 1fr) minmax(16rem, 44%); gap: 0 2rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-art { min-height: 15rem; }
.lofx[data-lofx-layout~="desktop"] .lofx-now.is-season-mark { grid-template-columns: minmax(0, 1fr) 6rem; }
.lofx[data-lofx-layout~="desktop"] .lofx-now.is-season-mark .lofx-art { width: 6rem; height: 6rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-now-body { align-self: center; padding: 1rem 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-now-title { font-size: clamp(3rem, 3.6vw, 4rem); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-stage-mark { right: 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-night { position: sticky; top: calc(var(--lofx-top-offset, 0px) + 1.5rem); bottom: auto; margin-top: 2rem; background: transparent; color: var(--lofx-ink); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-night-bar { display: none; --lofx-night-display: none; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-night-panel { display: block; padding: 1.25rem 1.25rem 1.5rem; background: var(--lofx-surface); border-top: 2px solid var(--lofx-band); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-receipt { left: auto; right: var(--gutter); bottom: 1.5rem; max-width: 26rem; }
.lofx:where([data-lofx-layout~="desktop"]):has(.lofx-night:not([hidden])) .lofx-receipt { bottom: 1.5rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-sheet-host { align-items: stretch; justify-content: flex-end; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-sheet { max-width: 34rem; max-height: none; height: 100%; border-top: 0; border-left: 5px solid var(--lofx-accent-ink); animation-name: lofx-sheet-side; }
@keyframes lofx-sheet-side { from { transform: translateX(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-pin { margin: .5rem 0 0; padding: 0; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-qi.is-yours, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-qi--scheduled_moment, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-qi--announcement, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-qi--hold, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-qi--insertion { margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; align-items: stretch; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > * { grid-column: 1 / -1; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-next { grid-column: 1; margin: 0; padding-left: 1.25rem; padding-right: 1.25rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-hear { grid-column: 2; padding-top: .85rem; grid-template-columns: minmax(0, 1fr); align-content: start; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-hear .lofx-hear-open { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .6rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-next { grid-template-columns: minmax(0, 1fr); align-content: start; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-next .lofx-next-queue { justify-self: start; margin-top: .35rem; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-move { padding-top: 1.25rem; }
/* When listening is the scene's move, it spans the row, and Next follows in full. */
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-hear.is-move, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-tonight > .lofx-hear.is-move + .lofx-next { grid-column: 1 / -1; }
/* Preview only: no Now/Next column to pair with, so Listen and the reduced
   preview block each read as one full-width column. Live keeps the pair. */
:where(.lofx[data-lofx-layout~="desktop"])[data-access="preview"] .lofx-tonight > .lofx-hear { grid-column: 1 / -1; }
:where(.lofx[data-lofx-layout~="desktop"])[data-access="preview"] .lofx-tonight > .lofx-preview { display: block; max-width: 40rem; }
:where(.lofx[data-lofx-layout~="desktop"])[data-access="preview"] .lofx-tonight > .lofx-preview > * { grid-column: auto; grid-row: auto; }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-extras { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
:where(.lofx[data-lofx-layout~="desktop"]) .lofx-trouble, :where(.lofx[data-lofx-layout~="desktop"]) .lofx-recap { margin: 0; padding-left: 1.25rem; padding-right: 1.25rem; }

/* ======================================================================
   NARROW FOR ITS TEXT — under 20rem across (a phone at 200% text).
   Four destinations cannot share one row at this size without clipping.
   The navigation becomes a two-by-two block at the top of the page, in
   flow; My Night stays in reach at the bottom and wraps instead of
   truncating; a receipt sits in flow below the destinations (sticky once
   they have scrolled away), so it never covers one (the viewer moves it
   into main in this layout only). No text is made smaller and no label is
   hidden: the room comes from spacing and a single column.
   ====================================================================== */
/* layout: narrow */
.lofx:where([data-lofx-layout~="narrow"]) { --gutter: 16px; padding-bottom: 1.5rem; }
.lofx:where([data-lofx-layout~="narrow"]):has(.lofx-night:not([hidden])) { padding-bottom: 1.5rem; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav { position: static; margin-bottom: 1.25rem; padding-bottom: 0; border-top: 0; border-bottom: 2px solid var(--lofx-rule); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav li + li { border-left: 0; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav-item { flex-direction: row; flex-wrap: wrap; gap: 0 6px; min-height: 2.75rem; padding: 6px 4px; overflow-wrap: anywhere; --lofx-nav-pad: 6px 4px; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav-item .lofx-glyph { width: 22px; height: 22px; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav-item.is-active { background: var(--lofx-surface); --lofx-nav-bg: var(--lofx-surface); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-nav-item.is-active::after { bottom: 0; left: 0; right: 0; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night { position: sticky; bottom: 0; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night-bar { min-height: 44px; flex-wrap: wrap; gap: 0 .75rem; padding-top: .35rem; padding-bottom: .35rem; --lofx-night-pad: .35rem var(--gutter); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night-bar > .lofx-inline-mark { width: 22px; height: 22px; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night-text { display: contents; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night-bar .lofx-label { flex: 1 1 auto; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-night-open { order: 1; }
.lofx[data-lofx-layout~="narrow"] .lofx-night-line { display: none; }
/* Compact opener at narrow/enlarged text; full outcome in its accessible
   name and dialog, rather than a second tall persistent receipt. */
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-main > .lofx-receipt, .lofx:where([data-lofx-layout~="narrow"]):has(.lofx-night:not([hidden])) .lofx-main > .lofx-receipt { position: sticky; top: calc(var(--lofx-top-offset, 0px) + 8px); left: auto; right: auto; bottom: auto; margin: 0 var(--gutter) 1.25rem; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-sheet-bar { gap: .5rem; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-sheet-title { min-width: 0; hyphens: auto; -webkit-hyphens: auto; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-icon-button { width: 44px; height: 44px; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-headline, :where(.lofx[data-lofx-layout~="narrow"]) .lofx-now-title, :where(.lofx[data-lofx-layout~="narrow"]) .lofx-next-line, :where(.lofx[data-lofx-layout~="narrow"]) .lofx-empty h2, :where(.lofx[data-lofx-layout~="narrow"]) .lofx-shelf-title, :where(.lofx[data-lofx-layout~="narrow"]) .lofx-move-label { hyphens: auto; -webkit-hyphens: auto; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-fm { flex-wrap: wrap; }
/* The art becomes a short band across the top of Now; the words take the width. */
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-now { grid-template-columns: minmax(0, 1fr); margin-right: 0; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-art { grid-column: 1; grid-row: 1; min-height: 0; height: 5.5rem; margin-bottom: .75rem; clip-path: none !important; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-now-body { grid-row: 2; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-yours-line { grid-row: 3; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-now.has-art .lofx-credit { position: static; max-width: none; padding: 0; margin-top: .5rem; background: none; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-stage-mark { display: none; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-stage.no-now .lofx-scene { padding-right: 0; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-hear { grid-template-columns: minmax(0, 1fr); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-hear-open { grid-column: 1; grid-row: auto; justify-self: stretch; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-next { grid-template-columns: minmax(0, 1fr); }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-next-queue { justify-self: start; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-qi { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-button--primary { font-size: 1.25rem; }
/* Very narrow (200% zoom on a small phone): the icon and arrow share the top
   row and the words take the full width below, at the same size. */
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-button--primary:has(> .lofx-move-label) { flex-wrap: wrap; row-gap: .4rem; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-button--primary > .lofx-move-label { order: 1; flex: 1 1 100%; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-button--primary > .lofx-move-arrow { margin-left: auto; }

/* ---- legacy shell (before script runs) ------------------------------------ */
.lof-viewer__shell { padding: 1.25rem; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.lof-viewer__nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.lof-viewer__noscript { padding: 1.25rem; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

/* Viewer reconciliation · the queue's Follow control carries its word; every request in My Night is its own row. */
.lofx-follow-button { width: auto; min-width: 2.75rem; grid-auto-flow: column; gap: .35rem; padding: 0 .65rem; font: inherit; font-size: .875rem; font-weight: 700; white-space: nowrap; }
:where(.lofx[data-lofx-layout~="narrow"]) .lofx-follow-button { width: auto; min-height: 44px; justify-self: start; }
.lofx-night-songs { display: grid; gap: .6rem; margin-top: .35rem; }
.lofx-night-songs li:last-child { padding-bottom: 0; border-bottom: 0; }
.lofx-rank-note { margin: -.25rem 0 .5rem; }

/* October 10: selected house-party treatment, applied to existing components.
   The configured lintel world owns the authored host and stamp family;
   other seasons keep their own framing. No simulated status or queue data. */
.lofx .lofx-headline, .lofx .lofx-sheet-title { font-stretch: 78%; }
.lofx .lofx-song-title { font-family: var(--lofx-font-display); font-size: 1.25rem; font-weight: 650; font-stretch: 88%; line-height: 1.12; }
.lofx .lofx-song-action { min-height: 44px; font-family: var(--lofx-font-display); font-weight: 750; font-stretch: 85%; }
.lofx .lofx-song-now { display: flex; align-items: center; min-height: 44px; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.lofx .lofx-discovery-context { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .75rem; }
.lofx .lofx-discovery-context .lofx-song-now { flex: 1 1 12rem; border-bottom: 0; }
.lofx .lofx-discovery-context .lofx-listen-strip { flex: 0 1 auto; margin: 0; border-top: 0; border-bottom: 0; }
.lofx .lofx-discovery-context > [data-lof-listen-strip] { display: contents; }
.lofx .lofx-head--songs { padding: 1.25rem 0 .5rem; margin-bottom: 0; }
.lofx [data-place="songs"] .lofx-search { margin-top: .5rem; }
.lofx .lofx-song-tools { margin-bottom: .5rem; }
.lofx .lofx-night-practical, .lofx .lofx-location-details { margin-top: 1rem; }
.lofx .lofx-dest-availability { display: block; margin-top: .3rem; font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.lofx .lofx-night-practical summary, .lofx .lofx-location-details summary { min-height: 44px; cursor: pointer; font-weight: 650; }
.lofx[data-lofx-frame="lintel"] .lofx-scene { padding: .75rem 1rem; background: var(--lofx-accent); color: var(--lofx-on-accent); border-bottom: .4rem solid var(--lofx-band); }
.lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-headline, .lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-eyebrow, .lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-line { color: inherit; }
/* On the lintel band the state speaks in the band's guaranteed ink; its glyph shape still tells the tone apart. */
.lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-state, .lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-state .lofx-glyph { color: inherit; }
.lofx[data-lofx-frame="lintel"] .lofx-scene .lofx-state[data-tone="ok"] .lofx-glyph { fill: currentColor; }
.lofx[data-lofx-frame="lintel"] .lofx-stage-mark { display: none; }
.lofx[data-lofx-frame="lintel"] .lofx-head { position: relative; max-width: none; background: var(--lofx-accent); color: var(--lofx-on-accent); padding: .75rem 1rem 1rem; border-bottom: .4rem solid var(--lofx-band); }
.lofx[data-lofx-frame="lintel"] .lofx-head .lofx-headline { color: inherit; font-size: clamp(2.5rem, 12vw, 4.25rem); line-height: .95; font-weight: 800; max-width: 8ch; }
.lofx[data-lofx-frame="lintel"] .lofx-head .lofx-line { color: inherit; max-width: calc(100% - 5.5rem); font-weight: 600; line-height: 1.25; }
.lofx[data-lofx-frame="lintel"] .lofx-head::after { content: ""; position: absolute; right: .4rem; bottom: -.8rem; width: 6rem; height: 4.7rem; background: url("../fonts/house-party-art.svg#host") center / contain no-repeat; pointer-events: none; }
.lofx[data-lofx-frame="lintel"] .lofx-head--songs [data-songs-intro="flavour"] { display: block; }
.lofx[data-lofx-frame="lintel"] .lofx-badges { gap: 0 .625rem; }
.lofx[data-lofx-frame="lintel"] .lofx-badge { display: inline-flex; align-items: center; position: relative; min-height: 2.25rem; padding: .2rem .65rem; background: var(--lofx-accent); color: var(--lofx-on-accent); border: 0; font-family: var(--lofx-font-display); font-size: 1rem; font-weight: 750; font-stretch: 75%; letter-spacing: .07em; text-transform: uppercase; }
/* An explainable stamp is a transparent 44 px button: the drawing and the
   focus ring are never clipped; only the word carries the stamp's paint. */
.lofx[data-lofx-frame="lintel"] button.lofx-badge { min-height: 2.75rem; padding: 0; background: transparent; color: inherit; }
.lofx[data-lofx-frame="lintel"] .lofx-badge::before { content: ""; position: relative; flex: none; z-index: 1; width: 1.875rem; height: 1.875rem; margin: 0 -.5625rem 0 0; background: center / contain no-repeat; }
.lofx[data-lofx-frame="lintel"] .lofx-badge-word { padding: .1875rem .75rem .1875rem .875rem; line-height: 1.15; background: var(--lofx-accent); color: var(--lofx-on-accent); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="new_tonight"]::before { background-image: url("../fonts/house-party-art.svg#new"); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="kid_favorite"]::before { background-image: url("../fonts/house-party-art.svg#kids"); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="popular"]::before { background-image: url("../fonts/house-party-art.svg#popular"); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="last_chance"]::before { background-image: url("../fonts/house-party-art.svg#final"); }
.lofx[data-lofx-frame="lintel"] span.lofx-badge[data-badge="popular"], .lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="popular"] .lofx-badge-word { background: var(--lofx-heading); color: var(--lofx-field); }
.lofx[data-lofx-frame="lintel"] span.lofx-badge[data-badge="last_chance"], .lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="last_chance"] .lofx-badge-word { padding-right: 1.25rem; background: var(--lofx-band); color: var(--lofx-ink); clip-path: polygon(0 0, 100% 0, calc(100% - .625rem) 50%, 100% 100%, 0 100%); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="new_tonight"] .lofx-badge-word { padding-right: 1rem; clip-path: polygon(0 0, 100% 0, 91% 24%, 100% 42%, 89% 63%, 98% 82%, 90% 100%, 0 100%); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="kid_favorite"] .lofx-badge-word { border-bottom: .2rem dashed var(--lofx-field); }
.lofx .lofx-badge[data-lof-action] { min-height: 44px; cursor: pointer; text-align: left; }
/* No listening method is selected simply because a station is configured.
   Keep all tuning/availability facts inside the existing options sheet.
   Active phone playback (including Stop) and speaker grants stay visible. */
.lofx .lofx-hear[data-listen="fm"] .lofx-hear-state,
.lofx .lofx-listen-strip[data-listen="fm"] > .lofx-listen-strip-text,
.lofx .lofx-listen-strip[data-listen="fm"] > .lofx-glyph { display: none; }
.lofx .lofx-listen-strip[data-listen="fm"] { justify-content: flex-end; padding: .15rem 0; }
.lofx[data-lofx-frame="lintel"] .lofx-song-status[data-badge="your_pick"] { padding: .2rem 1rem .2rem .4rem; background: var(--lofx-heading); color: var(--lofx-field); clip-path: polygon(0 0, 100% 0, calc(100% - .5rem) 50%, 100% 100%, 0 100%); justify-self: start; }
/* Enlarged text owns the space: artwork never overlaps instructions. */
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--more { padding: .6rem .85rem .7rem; border-bottom-width: .2rem; }
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--more .lofx-headline { font-size: clamp(1.75rem, 4vw, 2.25rem); max-width: none; line-height: 1.1; }
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--more .lofx-line { max-width: 48ch; margin-top: .2rem; font-size: 1rem; line-height: 1.4; }
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--more::after { display: none; }
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--songs .lofx-headline { font-size: clamp(1.875rem, 5vw, 2.75rem); max-width: none; line-height: 1.1; }
.lofx[data-lofx-frame="lintel"] .lofx-head.lofx-head--songs::after { width: 3.5rem; height: 3rem; bottom: -.4rem; }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="hot_tonight"]::before,
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="popular"]::before,
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="season_favorite"]::before,
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="hidden_gem"]::before { display: none; }
.lofx[data-lofx-frame="lintel"] .lofx-badge > .lofx-glyph { width: 1.5rem; height: 1.5rem; flex: none; margin-right: -.15rem; color: var(--lofx-accent-ink); }
.lofx[data-lofx-frame="lintel"] .lofx-badge[data-badge="season_favorite"] .lofx-badge-word { background: var(--lofx-heading); color: var(--lofx-field); }
.lofx .lofx-badge-word { overflow-wrap: anywhere; }
.lofx[data-lofx-layout~="narrow"][data-lofx-frame="lintel"] .lofx-head::after { display: none; }
.lofx[data-lofx-layout~="narrow"][data-lofx-frame="lintel"] .lofx-head .lofx-line { max-width: none; }
@media (forced-colors: active) {
  .lofx[data-lofx-frame="lintel"] .lofx-badge-word, .lofx[data-lofx-frame="lintel"] span.lofx-badge, .lofx[data-lofx-frame="lintel"] .lofx-song-status[data-badge="your_pick"] { border: 1px solid CanvasText; clip-path: none; }
  .lofx[data-lofx-frame="lintel"] .lofx-badge::before, .lofx[data-lofx-frame="lintel"] .lofx-head::after { display: none; }
}
