/* Hallmark · shape: Narrative Workflow · genre: atmospheric · theme: Lumen (deal 3/3, seed music-catalog-mcp-server-cdcd·05e9fcb4·2026-11-25·r0) · redesign: full · draw: bff2fc · lumen: night · job: sign up
 * nav: floating pill · footer: letter close · imagery: the product · signature: a real track's cue map, playable, with its hits and cuts ruled in brass
 * axes: dark/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the page argued "metadata" in the abstract; it now walks one real brief through three tool calls with the catalog's own numbers */
/* Hallmark · waive 38iii · the rose verb "lands" appears once, in the hero head · Lumen names one rose verb in the hero as its signature */
/* Hallmark · waive 78 · h2 is --text-2xl, 31px at 1440, a full step above the item titles · the owner read 52px slogan heads as noise, so each h2 names what its section holds and the content carries the weight */
/* Hallmark · waive 47c · the blueprint grid sits only inside the cue map well, under the waveform, never under running text · Lumen's texture is that grid */
/* Hallmark · dropped /browse/?q=confident, /browse/?q=focused, /browse/?q=nostalgic, /browse/?q=reflective, /browse/?q=tense, the "Why Clipiz" table, the "Nine kinds of cues" grid, the demo strip under the nav · the steps section shows the cues on a real track, the demo note moved to the hero caption and footer, the hero keeps headline, sentence and actions only */
/* Hallmark · reworded ids "q" to "qh", "qb", "qc" and "fit-target" to a wrapping label · several search forms now share a page, each needs its own id */
/* Hallmark · answered F7 · pills sit only on controls and tags here: the skip link, play buttons, the search field, nav links and tier tags, as Lumen asks */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --wave-rest: color-mix(in oklab, var(--color-ink-2) 30%, transparent);
  --wave-played: var(--color-ink);
  --energy-line: color-mix(in oklab, var(--color-ink-2) 70%, transparent);
  --hatch: color-mix(in oklab, var(--color-ink-2) 14%, transparent);
  --nav-glass: color-mix(in oklab, var(--color-paper-2) 78%, transparent);
  --container: 1360px;
  --nav-h: 56px;
}

body { font-variant-numeric: tabular-nums; }
h1 { font-size: var(--text-display); line-height: 1; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(3rem, 6.2vw + 1rem, 6.75rem); }
h2 { font-size: var(--text-2xl); line-height: 1.1; }
section > h2, .split h2 { margin-bottom: var(--space-xl); }
h3 { font-size: var(--text-title); }
a:hover { text-decoration-color: var(--color-accent); }
code, pre, .readout { font-family: var(--font-outlier); }
code { font-size: 0.875em; color: var(--color-ink-2); }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.label { font-size: var(--text-sm); color: var(--color-muted); }
.readout { font-size: var(--text-xs); color: var(--color-ink-2); }
.lead { color: var(--color-ink-2); }
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-xs) var(--space-sm); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 46px; padding: var(--space-sm) var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 500 var(--text-md) / 1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--secondary { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); color: var(--color-ink); background: transparent; }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }

.play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); cursor: pointer; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.play:hover { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.play:active { transform: scale(0.96); }
.play:disabled { opacity: 0.55; cursor: not-allowed; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause, .is-playing .play .i-play, .player.is-playing .i-play { display: none; }
.is-playing .play .i-pause, .player.is-playing .i-pause { display: block; }
.is-playing > .play, .is-playing .track-play .play { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }

.field { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs); background: var(--color-paper); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); max-width: 640px; }
.field:focus-within { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
.field input { flex: 1; min-width: 0; min-height: 46px; padding: 0 var(--space-md); background: transparent; border: 0; color: var(--color-ink); font-size: var(--text-md); outline: none; }
.field input::placeholder { color: var(--color-muted); }
.field input:focus-visible { outline: none; }
.field:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
input[type="number"], .input { min-height: 46px; padding: 0 var(--space-md); background: var(--color-paper); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); color: var(--color-ink); font-size: var(--text-md); }
input[type="number"] { width: 128px; font-family: var(--font-outlier); }
.input { flex: 1; min-width: 220px; }
input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------ chrome */
.nav { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-md); margin-top: var(--space-sm); }
.nav-pill { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-h); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-lg); background: var(--nav-glass); backdrop-filter: blur(14px); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); max-width: 100%; }
.wordmark { font: 400 var(--text-xl) / 1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; color: var(--color-ink); }
.nav ul { display: flex; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.nav ul a { display: block; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out); }
.nav ul a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.nav ul a[aria-current="page"] { color: var(--color-ink); background: var(--color-paper-3); }
.nav .btn { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .nav-pill { flex-wrap: wrap; justify-content: space-between; border-radius: var(--radius-card); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); gap: var(--space-xs); width: 100%; }
  .nav-pill nav { order: 3; width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav ul { width: max-content; }
}

.page { padding-top: var(--space-2xl); }
.section { padding-block: var(--section-gap-s); }
.section--wide { padding-block: var(--section-gap); }
:is(.section, .section--wide, .track-hero):not(.band) + :is(.section, .section--wide):not(.band) { padding-top: 0; }
.band { color: var(--color-ink); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.head p { color: var(--color-ink-2); max-width: 46ch; }
@media (max-width: 60rem) { .head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } }

/* ------------------------------------------------ hero (Stage) */
.hero { min-height: calc(100svh - var(--nav-h) - var(--space-lg)); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: var(--space-xl); max-width: 34ch; }
.hero .field { margin-top: var(--space-2xl); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }
.verb { display: inline-block; color: var(--color-accent-2); }
.verb::after { content: ""; display: block; height: var(--rule-hair); background: currentColor; transform-origin: left; animation: draw var(--dur-long) var(--ease-out) both; }
@keyframes draw { from { transform: scaleX(0); } }
@media (max-width: 60rem) { .hero { min-height: 0; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

.banner { padding-block: var(--space-2xl); background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.banner + .section { padding-top: var(--space-2xl); }
.banner h1 { font-size: var(--text-display-s); max-width: 18ch; }
.banner .lead { margin-top: var(--space-md); }
.banner .field { margin-top: var(--space-lg); }
.crumbs { margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { color: var(--color-ink-2); }

/* ------------------------------------------------ the cue map well (signature) */
.well { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.blueprint { background-image: linear-gradient(var(--rule-blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px); background-size: 48px 48px; }
.cue-demo { margin: 0; padding: var(--space-lg); }
.cue-demo-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.cue-title { font: 400 var(--text-xl) / 1 var(--font-display); }
.cue-now { margin-left: auto; min-height: 1.5em; text-align: right; color: var(--color-accent); }
.facts-inline { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin: var(--space-2xs) 0 0; }
.facts-inline div { display: flex; gap: var(--space-xs); }
.facts-inline dt { color: var(--color-muted); font-size: var(--text-xs); }
.facts-inline dd { margin: 0; font: 400 var(--text-xs) / 1.5 var(--font-outlier); color: var(--color-ink-2); }
.cue { width: 100%; height: auto; overflow: visible; cursor: pointer; }
.cue .sec rect { fill: var(--color-paper-3); }
.cue .sec text { font: 400 12px var(--font-outlier); fill: var(--color-muted); }
.cue .sec.active rect { fill: var(--color-rule); }
.cue .sec.active text { fill: var(--color-ink); }
.cue-wave rect { fill: var(--wave-rest); }
.cue-wave-fg rect { fill: var(--wave-played); }
.cue-wave-fg { clip-path: inset(0 100% 0 0); }
.cue .energy { fill: none; stroke: var(--energy-line); stroke-width: 1.25; stroke-dasharray: 4 3; }
.cue .hatch { stroke: var(--hatch); stroke-width: 3; }
.cue .cut { stroke: var(--color-rule-2); stroke-width: 1.5; }
.cue .cut-section, .cue .cut-ending { stroke: var(--color-ink-2); stroke-width: 2; }
.cue .hit line { stroke: var(--color-accent); stroke-width: 1; stroke-dasharray: 2 3; }
.cue .hit path { fill: var(--color-accent); }
.cue .playhead { stroke: var(--color-accent); stroke-width: 2; opacity: 0; }
.cue-demo.is-playing .playhead { opacity: 1; }
.cue .axis, .vamap .axis { font: 400 11px var(--font-outlier); fill: var(--color-muted); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-md) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.legend li { display: flex; align-items: center; gap: var(--space-xs); }
.legend i { display: inline-block; width: 14px; height: 2px; background: var(--energy-line); }
.legend .lg-cut { width: 2px; height: 12px; background: var(--color-ink-2); }
.legend .lg-hit { width: 8px; height: 8px; background: var(--color-accent); transform: rotate(45deg); }
.legend .lg-safe { height: 12px; background: repeating-linear-gradient(45deg, var(--hatch) 0 2px, transparent 2px 5px); }
.cue-demo figcaption { margin-top: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 45rem) { .cue-scroll { overflow-x: auto; } .cue-scroll .cue { min-width: 720px; } }

/* ------------------------------------------------ narrative workflow */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.step:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.step-text::before { content: "0" counter(step); display: block; margin-bottom: var(--space-sm); font: 400 var(--text-sm) / 1 var(--font-outlier); color: var(--color-accent); }
.step-text p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 45ch; }
.exchange { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; overflow: hidden; }
.exchange pre { margin: 0; padding: var(--space-lg); font-size: var(--text-xs); line-height: 1.7; color: var(--color-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.exchange pre + pre { border-left: var(--rule-hair) solid var(--color-rule); }
.exchange .k { color: var(--color-muted); }
.exchange .v { color: var(--color-ink); }
.exchange .b { color: var(--color-accent); }
.exchange figcaption { grid-column: 1 / -1; padding: var(--space-sm) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .step { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }
@media (max-width: 45rem) { .exchange { grid-template-columns: minmax(0, 1fr); } .exchange pre + pre { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); } }

/* ------------------------------------------------ track rows */
.tracks { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.track { display: grid; grid-template-columns: 44px minmax(0, 3fr) minmax(0, 4fr) 72px 104px 56px 52px; gap: var(--space-lg); align-items: center; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.track h3 { font-size: var(--text-xl); line-height: 1.1; }
.track h3 a { text-decoration: none; }
.track h3 a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.track-moods { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.track-moods a { color: var(--color-ink-2); text-decoration: none; }
.track-moods a:hover { text-decoration: underline; }
.track .wave { width: 100%; height: 40px; cursor: pointer; }
.track-fact { font: 400 var(--text-xs) / 1.4 var(--font-outlier); color: var(--color-ink-2); }
.track-fact span { display: block; font: 400 var(--text-xs) / 1.4 var(--font-body); color: var(--color-muted); }
.wave-bg { fill: var(--wave-rest); }
.wave-fg { fill: var(--wave-played); clip-path: inset(0 100% 0 0); }
.tier { justify-self: end; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); font-size: var(--text-xs); color: var(--color-ink-2); }
.tier-pro { color: var(--color-muted); }
.track.is-playing h3 a { color: var(--color-accent); }
@media (max-width: 60rem) {
  .track { grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); }
  .track .wave { grid-column: 2 / -1; grid-row: 2; }
  .track-fact { grid-row: 3; }
  .track-fact:nth-of-type(1) { grid-column: 2; }
  .track-fact:nth-of-type(2), .track-fact:nth-of-type(3) { display: none; }
  .tier { grid-column: 3; grid-row: 1; }
}
.more { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* ------------------------------------------------ integration */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.tools { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.tools li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.tools code { color: var(--color-ink); }
.tools span { color: var(--color-ink-2); font-size: var(--text-sm); }
.code { margin: 0; overflow: hidden; }
.code pre { margin: 0; padding: var(--space-lg); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-xs); line-height: 1.75; color: var(--color-ink-2); }
.code .c { color: var(--color-muted); }
.code figcaption { padding: var(--space-sm) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.code + .code { margin-top: var(--space-md); }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ------------------------------------------------ pricing (rate card) */
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.rates thead th { padding-bottom: var(--space-lg); font-weight: 400; color: var(--color-ink); }
.rates thead th:first-child { width: 40%; }
.plan-name { display: block; font: 400 var(--text-xl) / 1 var(--font-display); }
.plan-price { display: block; margin-top: var(--space-xs); font: 400 var(--text-display-s) / 1 var(--font-display); letter-spacing: var(--tracking-display); }
.plan-price small { font: 400 var(--text-xs) / 1 var(--font-outlier); color: var(--color-muted); }
.rates tbody th { font-weight: 400; color: var(--color-ink-2); text-transform: none; }
.rates td { color: var(--color-ink); }
.rates td.no { color: var(--color-muted); }
.rates tfoot td { border-bottom: 0; padding-top: var(--space-lg); }
.rates-wrap { overflow-x: auto; }
@media (max-width: 40rem) { .rates th, .rates td { padding: var(--space-sm) var(--space-xs); font-size: var(--text-sm); } .rates thead th:first-child { width: 30%; } .rates .btn { padding-inline: var(--space-md); } .plan-price { font-size: var(--text-2xl); } }
.checkout-msg { margin-top: var(--space-sm); min-height: 1.5em; font-size: var(--text-sm); color: var(--color-ink-2); }

/* ------------------------------------------------ questions */
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq details:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); cursor: pointer; list-style: none; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-outlier); color: var(--color-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }
@media (max-width: 60rem) { .qa { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* ------------------------------------------------ close + footer (letter close) */
.close { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-lg); padding-block: var(--space-3xl); }
.close .field { width: 100%; }
.close .lead { max-width: 52ch; margin-top: calc(var(--space-md) * -1); }
.letter { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--section-gap-s); }
.letter-body { max-width: 62ch; font: 400 var(--text-lead) / 1.5 var(--font-body); color: var(--color-ink-2); }
.letter-sign { margin-top: var(--space-lg); font: 400 var(--text-xl) / 1.2 var(--font-display); }
.letter-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.letter-links a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.letter-links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* ------------------------------------------------ track page */
.track-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
.sheet { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sheet th, .sheet td { padding: var(--space-sm) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.sheet thead th { color: var(--color-muted); font-weight: 400; }
.sheet tbody th { color: var(--color-muted); font-weight: 400; width: 34%; }
.sheet td.mono { font-family: var(--font-outlier); font-size: var(--text-xs); }
.sheet a { white-space: nowrap; }
.panel { padding: var(--space-lg); }
.panel h2 { margin-bottom: var(--space-lg); }
.panel h2 + .sheet, .sheet + h2 { margin-top: var(--space-md); }
.meter { display: inline-block; width: 72px; height: 4px; border-radius: var(--radius-pill); background: var(--color-paper-3); overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.fit-form, .signin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-sm); margin-top: var(--space-md); }
.fit-form label, .signin-form label { display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.signin-form label { flex: 1; }
.fit-out { margin: var(--space-md) 0 0; padding: var(--space-md); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); font-size: var(--text-xs); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-ink-2); }
@media (max-width: 60rem) { .track-page-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ browse filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.toggle { min-height: 44px; padding: var(--space-xs) var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.toggle:hover { background: var(--color-paper-2); color: var(--color-ink); }
.toggle:active { transform: translateY(1px); }
.toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.toggle[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
.result-note { min-height: 1.5em; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.result-note code { color: var(--color-ink); }

/* ------------------------------------------------ moods */
.mood-map { padding: var(--space-lg); }
.vamap { width: 100%; height: auto; }
.vamap .axisl { stroke: var(--color-rule-2); stroke-dasharray: 3 4; }
.va-dot { fill: var(--color-ink-2); }
.va-free { fill: var(--color-accent); }
.va-label { font: 400 13px var(--font-body); fill: var(--color-ink-2); }
.vamap a:hover .va-label, .vamap a:focus-visible .va-label { fill: var(--color-ink); text-decoration: underline; }
.mood-list { margin: var(--space-xl) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.mood-list li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.mood-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); text-decoration: none; }
.mood-list strong { font: 400 var(--text-2xl) / 1 var(--font-display); }
.mood-list a:hover strong { color: var(--color-accent); }

/* ------------------------------------------------ docs prose */
.prose p, .prose li, .prose dd { max-width: 60ch; }
.doc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.doc-row h2 { margin: 0; }
.doc-row:first-child { padding-top: 0; border-top: 0; }
.doc-row > div > * + * { margin-top: var(--space-md); }
@media (max-width: 60rem) { .doc-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } }
.prose h3 { margin: var(--space-xl) 0 var(--space-sm); }
.prose p, .prose li { color: var(--color-ink-2); }
.prose p + p, .prose p + .code, .prose .code + p { margin-top: var(--space-md); }
.prose ol { padding-left: var(--space-lg); }
.prose li { margin-block: var(--space-xs); }
.defs { margin: 0; }
.defs dt { margin-top: var(--space-lg); }
.defs dt code { color: var(--color-ink); }
.defs dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); }

/* ------------------------------------------------ account */
.account > * + * { margin-top: var(--space-md); }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md); border: var(--rule-hair) dashed var(--color-accent); border-radius: var(--radius-card); }
.keybox code { flex: 1; color: var(--color-accent); overflow-wrap: anywhere; }
.acct-msg { min-height: 1.5em; color: var(--color-ink-2); }

/* ------------------------------------------------ sticky player */
.player { position: fixed; left: 50%; bottom: var(--space-md); z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-md); width: min(560px, calc(100% - var(--space-xl))); padding: var(--space-2xs) var(--space-lg) var(--space-2xs) var(--space-2xs); background: var(--nav-glass); backdrop-filter: blur(14px); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2), var(--shadow-card); transform: translateX(-50%); }
.player-title { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.player-bar { flex: 1; height: 4px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); overflow: hidden; cursor: pointer; }
.player-bar span { display: block; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }

.track-hero { padding-block: var(--space-lg) var(--section-gap-s); }
.track-hero h1 { font-size: var(--text-display-s); }
.track-hero .cue-demo { margin-top: var(--space-lg); }
.stems-line { align-self: center; margin: 0 0 0 var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.code-stack pre + pre { border-top: var(--rule-hair) solid var(--color-rule); }
