/* Listncloud: after-hours plum, one pink accent, the waveform is the loud part. */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/SchibstedGrotesk-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/SchibstedGrotesk-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-300-ext.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-400-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-500-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-600-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Black frame (top bar, both side panels, player) around a middle that is a shade lighter. */
  --base: #000000; --side: #000000; --surface: #121212; --raised: #1C1C1C; --sel: #2A2A2A; --line: #0C0C0C; --frame: #0C0C0C; --line-2: #333333;
  --text: #F5F5F5; --text-2: #B5B5B5; --text-3: #8F8F8F;
  --pink: #FF5E9C; --pink-ink: #2A0716; --pink-wash: rgba(255, 94, 156, .13);
  --wave: #4D4D4D; --wave-hi: #6B6B6B;
  --danger: #FF8A7A; --ok: #8BE3B6; --warn: #F5C451;
  --sans: "Poppins", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Poppins", "Schibsted Grotesk", system-ui, sans-serif;
  --r-sm: 4px; --r: 4px; --r-lg: 4px;
  --side-w: 256px; --insp-w: 368px; --top-h: 56px; --player-h: 88px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 14px/1.45 var(--sans); }
/* Figures only: this font's tnum also widens periods and commas, so it never goes on prose. */
.num, .count, .scrub, .c-time, .c-bpm, .time-l, .time-r { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { display: block; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- buttons + fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 4px; background: var(--raised); color: var(--text); font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--sel); }
.btn-primary { background: var(--surface); color: var(--text); }
.btn-primary:hover { background: var(--raised); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, .35); }
.btn-danger:hover { background: rgba(255, 138, 122, .1); }
.btn-block { width: 100%; height: 44px; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn.is-on { color: var(--pink); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > span { color: var(--text-2); font-size: 13px; }
.input, .field input, .field textarea, .field select { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--base); color: var(--text); }
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-wash); }
.field-error, .form-error { color: var(--danger); font-style: normal; font-size: 13px; margin: 0; }
.form-error { margin: -4px 0 14px; }
.field-hint { color: var(--text-3); font-style: normal; font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--pink); }

/* ---------- auth ---------- */
body.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(28px, 5vw, 72px); background: var(--side); border-right: 1px solid var(--line); }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: -.01em; }
.auth-wave { display: flex; align-items: center; gap: clamp(3px, .45vw, 7px); height: min(46vh, 380px); }
.auth-wave span { flex: 1; height: var(--h); min-height: 4px; border-radius: 3px; background: var(--pink); opacity: .9; }
.auth-wave span:nth-child(n+27) { background: var(--line-2); opacity: 1; }
.auth-line { max-width: 22ch; margin: 0; font: 600 clamp(26px, 3.1vw, 44px)/1.12 var(--display); letter-spacing: -.02em; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { margin: 0 0 28px; font: 600 26px/1.2 var(--display); letter-spacing: -.01em; }
.auth-switch { margin: 24px 0 0; color: var(--text-2); }
.fine { margin: 12px 0 0; color: var(--text-3); font-size: 13px; text-align: center; }
@media (max-width: 860px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-brand { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; gap: 24px; }
  .auth-wave { height: 96px; }
  .auth-line { font-size: 24px; }
}

/* ---------- app grid ---------- */
body.app { height: 100dvh; overflow: hidden; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--insp-w); grid-template-rows: var(--top-h) minmax(0, 1fr) var(--player-h); grid-template-areas: "top top top" "side main insp" "player player player"; }
body.app.insp-closed { grid-template-columns: var(--side-w) minmax(0, 1fr) 0; }
body.app.is-loading .main, body.app.is-loading .side, body.app.is-loading .insp { opacity: 0; }
.top { grid-area: top; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 560px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--frame); min-width: 0; }
.top-l, .top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-r { justify-content: flex-end; }
.side { grid-area: side; display: flex; flex-direction: column; min-height: 0; background: var(--side); border-right: 1px solid var(--line); }
.main { grid-area: main; min-width: 0; min-height: 0; overflow: auto; background: var(--surface); outline: none; container: main / inline-size; }
.insp { grid-area: insp; min-width: 0; min-height: 0; overflow: auto; background: var(--side); border-left: 1px solid var(--line); }
body.insp-closed .insp { visibility: hidden; border: 0; }
.player { grid-area: player; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 0 16px; background: var(--frame); border-top: 1px solid var(--line); }

/* top bar */
.top .brand { font: 700 15px/1 var(--display); margin: 0 12px 0 6px; white-space: nowrap; color: var(--text); text-decoration: none; }
.top .nav-hist { display: flex; }
.search { position: relative; width: 100%; margin: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--line-2); background: transparent; }
.top .spacer { flex: 1; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--sel); color: var(--text); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
.only-mobile { display: none !important; }

/* sidebar */
.ws-switch { display: flex; align-items: center; gap: 10px; margin: 12px 10px 6px; padding: 8px; border-radius: 4px; text-align: left; min-width: 0; }
.ws-switch:hover { background: var(--raised); }
.tile { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 4px; background: var(--pink); color: var(--pink-ink); font: 700 14px/1 var(--sans); }
.ws-switch .name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-switch .plan { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 10px; border-radius: 4px; color: var(--text-2); text-decoration: none; text-align: left; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item.is-active { background: var(--sel); color: var(--text); font-weight: 600; }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .count { color: var(--text-3); font-size: 12.5px; }
.nav-item.is-active .count { color: var(--text-2); }
.nav-item.is-drop { background: var(--pink-wash); color: var(--text); box-shadow: inset 0 0 0 1px var(--pink); }
.side-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; padding: 0 2px 0 10px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.pl-thumb { flex: none; width: 26px; height: 26px; border-radius: 4px; background: var(--raised); object-fit: cover; display: grid; place-items: center; color: var(--text-3); }
.pl-thumb svg { width: 14px; height: 14px; }
.side-empty { margin: 6px 10px; color: var(--text-3); font-size: 13px; }
.side-foot { padding: 14px 20px 16px; color: var(--text-3); font-size: 12.5px; }
.meter { height: 4px; margin: 8px 0; border-radius: 4px; background: var(--raised); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--text-2); }
.meter.is-full > i { background: var(--danger); }

/* main view */
.view-head { display: flex; align-items: flex-end; gap: 22px; padding: 28px 28px 18px; }
.cover { position: relative; flex: none; width: 148px; height: 148px; border-radius: 4px; background: var(--raised); overflow: hidden; display: grid; place-items: center; color: var(--text-3); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover svg { width: 44px; height: 44px; stroke-width: 1.4; }
.cover.is-edit:hover::after { content: "Change artwork"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .72); color: var(--text); font-size: 13px; font-weight: 600; }
.view-title { min-width: 0; }
.view-title .kicker { margin: 0 0 6px; color: var(--text-2); font-size: 13px; }
.view-title h1 { margin: 0; font: 600 clamp(24px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.view-title .stats { margin: 10px 0 0; color: var(--text-2); }
.view-title .desc { margin: 8px 0 0; max-width: 62ch; color: var(--text-2); white-space: pre-line; }
.view-actions { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 10px 28px; background: var(--surface); }
.play-big { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--text); color: #000; transition: transform .12s; }
.play-big:hover { transform: scale(1.04); }
.play-big svg { width: 20px; height: 20px; }
.filter { position: relative; margin-left: auto; width: 220px; }
.filter input { width: 100%; height: 34px; padding: 0 10px 0 32px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; }
.filter input:focus { outline: none; border-color: var(--pink); }
.filter svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.bulkbar { display: flex; align-items: center; gap: 8px; color: var(--text-2); }

/* track list: every row carries its own waveform */
.list { padding: 0 16px 40px; --cols: 40px minmax(230px, 1.4fr) minmax(180px, 1.6fr) 64px 48px 52px 60px 96px 40px; --areas: "idx main wave kind bpm key time added more"; }
.list-head, .row { display: grid; grid-template-columns: var(--cols); grid-template-areas: var(--areas); align-items: center; column-gap: 14px; padding: 0 12px; }
.c-idx { grid-area: idx; } .c-main { grid-area: main; } .c-wave { grid-area: wave; } .c-kind { grid-area: kind; } .c-bpm { grid-area: bpm; }
.c-key { grid-area: key; } .c-time { grid-area: time; } .c-added { grid-area: added; } .c-more { grid-area: more; }
.list-head { position: sticky; top: 68px; z-index: 2; height: 36px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.list-head button { display: inline-flex; align-items: center; gap: 4px; color: inherit; white-space: nowrap; }
.list-head button:hover, .list-head button.is-sorted { color: var(--text); }
.list-head svg { width: 13px; height: 13px; }
.list-head .sorts { display: flex; gap: 14px; }
.num, .r { text-align: right; justify-content: flex-end; }
.row { position: relative; min-height: 68px; border-radius: 4px; color: var(--text-2); cursor: default; user-select: none; }
.row:hover { background: var(--raised); }
.row.is-selected { background: var(--sel); }
.row.is-selected .muted { color: var(--text-2); }
.row .idx { display: grid; place-items: center; color: var(--text-3); }
.row .idx .play-hover { display: none; color: var(--text); }
.row:hover .idx .n, .row.is-selected .idx .n { display: none; }
.row:hover .idx .play-hover, .row.is-selected .idx .play-hover { display: grid; }
.row.is-playing .t-title { color: var(--pink); }
.row.is-playing .idx .n, .row.is-playing .idx .play-hover { display: none; }
.row.is-playing:hover .idx .eq { display: none; }
.row.is-playing:hover .idx .play-hover { display: grid; }
.t-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-art { flex: none; width: 44px; height: 44px; border-radius: 4px; background: var(--raised); object-fit: cover; display: grid; place-items: center; color: var(--text-3); }
.t-art svg { width: 16px; height: 16px; }
.row:hover .t-art:not(img), .row.is-selected .t-art:not(img) { background: var(--line-2); }
.t-text { min-width: 0; }
.t-title { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-3); }
.kind { justify-self: start; padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.kind.is-lossless { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.c-wave { position: relative; height: 38px; min-width: 0; cursor: pointer; }
.rw { display: block; width: 100%; height: 100%; }
.rw path { fill: var(--wave); transition: fill .15s; }
.row:hover .rw path, .row.is-selected .rw path { fill: var(--wave-hi); }
.rw .rw-fg { display: none; fill: var(--pink); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.row.is-playing .rw .rw-fg { display: inline; fill: var(--pink); }
.no-wave { position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: var(--line-2); }
.row .more { opacity: 0; }
.row:hover .more, .row.is-selected .more, .row .more[aria-expanded="true"] { opacity: 1; }
.row.drop-before::before, .row.drop-after::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--pink); }
.row.drop-before::before { top: -1px; }
.row.drop-after::after { bottom: -1px; }
.row.is-dragging { opacity: .4; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: var(--pink); border-radius: 1px; animation: eq 900ms ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -300ms; } .eq i:nth-child(3) { animation-delay: -600ms; }
.eq.is-paused i { animation-play-state: paused; height: 5px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.empty { display: grid; justify-items: center; gap: 12px; margin: 40px 28px; padding: 56px 24px; border-radius: 4px; border: 1.5px dashed var(--line-2); color: var(--text-2); text-align: center; }
.empty h2 { margin: 0; color: var(--text); font: 600 20px/1.25 var(--display); }
.empty p { margin: 0; max-width: 46ch; }
.skeleton { height: 64px; margin: 0 12px; border-radius: 4px; background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface)); background-size: 200% 100%; animation: sk 1.2s linear infinite; opacity: .5; }
@keyframes sk { to { background-position: -200% 0; } }
.mix-note { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }

/* inspector */
.insp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 16px; background: var(--side); }
.insp-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.insp-sec { padding: 18px 20px; }
.insp-sec h3 { margin: 0 0 12px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.art-edit { display: flex; gap: 14px; align-items: center; }
.art-edit .cover { width: 96px; height: 96px; }
.art-edit .cover svg { width: 30px; height: 30px; }
.art-edit .hint { margin: 0 0 8px; color: var(--text-3); font-size: 12.5px; }
.art-edit .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.art-edit .btn { height: 30px; padding: 0 12px; font-size: 13px; }
.meta-grid { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 6px 10px; }
.meta label, .meta .lbl { color: var(--text-2); font-size: 13px; }
.meta .ctl { position: relative; display: flex; gap: 6px; align-items: center; min-width: 0; }
.meta input, .meta select { width: 100%; min-width: 0; height: 32px; padding: 0 9px; border-radius: 4px; border: 1px solid transparent; background: var(--raised); color: var(--text); }
.meta select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; background-size: 4px 4px; background-repeat: no-repeat; padding-right: 24px; }
.meta input::placeholder { color: var(--text-3); }
.meta input:hover, .meta select:hover { border-color: var(--line-2); }
.meta input:focus, .meta select:focus { outline: none; border-color: var(--pink); background: var(--base); }
.meta input[readonly] { background: transparent; border-color: transparent; color: var(--text-2); }
.meta .is-invalid input, .meta .is-invalid select { border-color: var(--danger); }
.meta .err { grid-column: 2; margin: -2px 0 4px; color: var(--danger); font-size: 12.5px; }
.meta .note { grid-column: 2; margin: -2px 0 4px; color: var(--text-3); font-size: 12.5px; }
.meta .of { color: var(--text-3); font-size: 13px; }
.meta .ctl .narrow { width: 64px; flex: none; }
.saved { position: absolute; right: 8px; color: var(--ok); font-size: 12px; pointer-events: none; animation: fade 1.6s forwards; }
@keyframes fade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.star-btn { color: var(--text-3); }
.star-btn.is-on { color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 4px; background: var(--raised); color: var(--text); font-size: 13px; text-decoration: none; }
.chip:hover { background: var(--sel); }
.facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 10px; margin: 0; }
.facts dt { color: var(--text-3); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.big-stat { margin: 0 0 4px; font: 600 28px/1.1 var(--display); }
.insp-empty { padding: 24px 20px; color: var(--text-2); }
.insp-empty .dropzone { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 28px 16px; border-radius: 4px; border: 1.5px dashed var(--line-2); text-align: center; color: var(--text-3); }

/* player */
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-art { flex: none; width: 56px; height: 56px; border-radius: 4px; background: var(--raised); object-fit: cover; display: grid; place-items: center; color: var(--text-3); }
.np-art svg { width: 22px; height: 22px; }
.np-art-btn { flex: none; border-radius: 4px; }
.np-text { min-width: 0; text-align: left; }
.np-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transport { display: grid; gap: 4px; min-width: 0; }
.controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.controls .icon-btn { width: 34px; height: 34px; }
.play-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--text); color: var(--base); }
.play-btn:hover { background: #fff; }
.play-btn svg { width: 17px; height: 17px; }
.repeat-one { position: relative; }
.repeat-one::after { content: "1"; position: absolute; right: 5px; top: 4px; font-size: 9px; font-weight: 800; color: var(--pink); }
.scrub { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.scrub .time-l { text-align: right; }
.wave { position: relative; height: 32px; cursor: pointer; touch-action: none; border-radius: 4px; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave:focus-visible { outline-offset: 4px; }
.wave .hover-time { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: var(--text); color: var(--base); font-size: 11.5px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.side-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.vol { width: 96px; accent-color: var(--text); }

/* popovers, menus, modals */
.menu { position: fixed; z-index: 60; min-width: 200px; max-width: 300px; max-height: min(70vh, 480px); overflow: auto; padding: 6px; border-radius: 4px; background: var(--raised); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 4px; color: var(--text); text-align: left; text-decoration: none; }
.menu button:hover, .menu button:focus-visible, .menu a:hover { background: var(--sel); outline: none; }
.menu .danger { color: var(--danger); }
.menu hr { height: 1px; margin: 6px 4px; border: 0; background: var(--line-2); }
.menu .menu-label { padding: 8px 10px 4px; color: var(--text-3); font-size: 12.5px; }
.menu .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .sub { color: var(--text-3); font-size: 12.5px; }
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); }
.modal { width: 100%; max-width: 420px; padding: 24px; border-radius: 4px; background: var(--raised); box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 8px; font: 600 19px/1.3 var(--display); }
.modal p { margin: 0 0 18px; color: var(--text-2); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.modal .field input { background: var(--base); }
.queue { position: fixed; right: 16px; bottom: calc(var(--player-h) + 12px); z-index: 50; width: 360px; max-width: calc(100vw - 32px); max-height: min(62vh, 560px); display: flex; flex-direction: column; border-radius: 4px; background: var(--raised); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.queue header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; }
.queue header h2 { margin: 0; font-size: 15px; }
.queue .q-body { overflow: auto; padding: 0 8px 10px; }
.queue h3 { margin: 10px 10px 6px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; }
.q-item:hover { background: var(--sel); }
.q-item .t-art { width: 36px; height: 36px; }
.q-item .grow { flex: 1; min-width: 0; text-align: left; }
.q-item .icon-btn { width: 28px; height: 28px; opacity: 0; }
.q-item:hover .icon-btn { opacity: 1; }
.q-item.is-now .t-title { color: var(--pink); }
.uploads { position: fixed; right: 16px; bottom: calc(var(--player-h) + 12px); z-index: 45; width: 340px; max-width: calc(100vw - 32px); border-radius: 4px; background: var(--raised); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); overflow: hidden; }
.uploads header { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 16px; font-weight: 700; }
.uploads header span { flex: 1; }
.uploads ul { list-style: none; margin: 0; padding: 0 8px 8px; max-height: 300px; overflow: auto; }
.uploads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 8px; border-radius: 4px; }
.uploads .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.uploads .u-status { grid-column: 1; color: var(--text-3); font-size: 12px; }
.uploads .u-status.is-error { color: var(--danger); }
.uploads .u-status.is-done { color: var(--ok); }
.uploads .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--base); overflow: hidden; }
.uploads .bar i { display: block; height: 100%; background: var(--pink); transition: width .2s; }
.uploads li .icon-btn { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; }
.uploads.is-collapsed ul { display: none; }
body.queue-open .uploads { bottom: calc(var(--player-h) + 12px + min(62vh, 560px) + 12px); }
.dropveil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .82); pointer-events: none; }
.dropveil div { padding: 36px 44px; border-radius: 4px; border: 2px dashed var(--pink); text-align: center; }
.dropveil strong { display: block; font: 600 22px/1.3 var(--display); }
.dropveil span { color: var(--text-2); }
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 16px); z-index: 95; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 12px 10px 16px; border-radius: 4px; background: var(--text); color: var(--base); font-weight: 600; box-shadow: var(--shadow); pointer-events: auto; }
.toast.is-error { background: var(--danger); color: #2B0A05; }
.toast button { padding: 4px 8px; border-radius: 4px; font-weight: 700; text-decoration: underline; }

/* fullscreen now playing */
.stage { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--base); overflow: hidden; }
.stage .bg { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(70px) saturate(1.2); opacity: .45; }
.stage .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .92)); }
.stage > * { position: relative; }
.stage .stage-top { display: flex; justify-content: flex-end; padding: 16px; }
.stage .stage-art { display: grid; place-items: center; padding: 0 24px; min-height: 0; }
.stage .stage-art > * { width: min(56vh, 520px, 80vw); aspect-ratio: 1; height: auto; border-radius: 4px; object-fit: cover; box-shadow: var(--shadow); background: var(--raised); display: grid; place-items: center; color: var(--text-3); }
.stage .stage-art svg { width: 30%; height: 30%; stroke-width: 1.2; }
.stage .stage-bottom { padding: 20px clamp(20px, 5vw, 64px) 32px; }
.stage h2 { margin: 0; font: 600 clamp(22px, 3vw, 36px)/1.15 var(--display); letter-spacing: -.02em; }
.stage .artist { margin: 6px 0 16px; color: var(--text-2); font-size: 16px; }
.stage .wave { height: 64px; }
.stage .scrub { grid-template-columns: 52px minmax(0, 1fr) 52px; font-size: 13px; }
.stage .controls { margin-top: 14px; gap: 18px; }
.stage .play-btn { width: 56px; height: 56px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  :root { --insp-w: 340px; }
}
@media (max-width: 1080px) {
  .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .vol { width: 72px; }
}
@media (max-width: 900px) {
  :root { --player-h: 72px; --top-h: 56px; }
  body.app, body.app.insp-closed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "player"; }
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  .side { position: fixed; z-index: 75; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
  body.side-open .side { transform: none; box-shadow: var(--shadow); }
  .insp { position: fixed; z-index: 74; inset: var(--top-h) 0 var(--player-h) 0; border: 0; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; visibility: visible !important; }
  body.insp-open-m .insp { transform: none; opacity: 1; pointer-events: auto; }
  .scrim { position: fixed; inset: 0; z-index: 72; background: rgba(0, 0, 0, .6); }
  .top .brand { display: none; }
  .search { margin: 0 4px; }
  .view-head { padding: 20px 16px 12px; gap: 16px; align-items: center; }
  .cover { width: 96px; height: 96px; }
  .view-actions { padding: 8px 16px; }
  .filter { width: 150px; }
  .player { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 8px 0 10px; }
  .transport { position: absolute; left: 0; right: 0; top: -2px; display: block; }
  .player { position: relative; }
  .transport .controls, .transport .time-l, .transport .time-r { display: none; }
  .transport .scrub { display: block; }
  .transport .wave { height: 3px; border-radius: 0; }
  .side-controls .vol, .side-controls .c-queue, .side-controls .c-full, .side-controls .c-vol { display: none; }
  .np-art { width: 48px; height: 48px; }
  .queue, .uploads { right: 8px; left: 8px; width: auto; max-width: none; }
}

/* Track list columns follow the space the list actually has (inspector open or not), not the window. */
@container main (max-width: 1120px) { .list { --cols: 40px minmax(220px, 1.4fr) minmax(160px, 1.4fr) 64px 48px 52px 60px 40px; --areas: "idx main wave kind bpm key time more"; } .list .c-added { display: none; } }
@container main (max-width: 900px) { .list { --cols: 40px minmax(210px, 1.3fr) minmax(130px, 1fr) 48px 52px 60px 40px; --areas: "idx main wave bpm key time more"; } .list .c-kind { display: none; } }
@container main (max-width: 720px) { .list { --cols: 36px minmax(170px, 1.2fr) minmax(110px, 1fr) 56px 40px; --areas: "idx main wave time more"; } .list .c-bpm, .list .c-key { display: none; } }
@container main (max-width: 560px) {
  /* Phones: the waveform moves to the bottom of each row. */
  .list { padding: 0 6px 24px; --cols: minmax(0, 1fr) 52px 36px; --areas: "main time more" "wave wave wave"; }
  .list-head { display: none; }
  .list .c-idx { display: none; }
  .row { column-gap: 10px; row-gap: 2px; padding: 8px 8px 6px; min-height: 0; }
  .c-wave { height: 24px; }
  .t-art { width: 40px; height: 40px; }
  .row .more { opacity: 1; }
  .view-actions { min-height: 60px; }
}

/* ---------------- all titles: thin Poppins ---------------- */
body :is(h1, h2, h3, .wordmark, .top .brand, .auth-line, .view-title h1, .t-title, .np-title, .ws-switch .name, .side-head > span, .big-stat, .dropveil strong, .stage h2, .modal h2, .empty h2, .insp-head h2, .insp-sec h3) {
  font-family: var(--display); font-weight: 300; letter-spacing: 0;
}
.insp-sec h3 { color: var(--text-2); font-size: 14px; }
.view-title h1 { line-height: 1.12; }
@media (max-width: 900px) { .top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; } }

/* ---------------- inspector tabs + documents ---------------- */
.tabs { flex: 1; display: flex; gap: 4px; min-width: 0; }
.tab { height: 32px; padding: 0 12px; border-radius: 4px; color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tab:hover { color: var(--text); background: var(--raised); }
.tab.is-active { background: var(--sel); color: var(--text); }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 4px; background: var(--line-2); font-size: 11px; }
.doc-zone { display: grid; justify-items: center; gap: 10px; padding: 22px 14px; border: 1.5px dashed var(--line-2); border-radius: 4px; text-align: center; color: var(--text-2); }
.doc-zone svg { width: 22px; height: 22px; color: var(--text-3); }
.doc-zone p { margin: 0; }
.doc-zone small { color: var(--text-3); font-size: 12px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.doc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 6px 7px 10px; border-radius: 4px; background: var(--raised); }
.doc-name { min-width: 0; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-name:hover { text-decoration: underline; }
.doc-name small { display: block; color: var(--text-3); font-size: 12px; text-decoration: none; }

/* ---------------- hand-offs ---------------- */
.send-row { display: flex; flex-wrap: wrap; gap: 8px; }
.handoff-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.handoff-items li { display: flex; align-items: center; gap: 4px; padding: 8px 6px 8px 12px; border-radius: 4px; background: var(--raised); }
.handoff-items li > div { flex: 1; min-width: 0; }
.handoff-items small { display: block; color: var(--text-3); font-size: 12px; }
.modal.modal-wide { max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; }
.modal p { color: var(--text-2); }
.checklist { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: var(--surface); }
.checklist li > svg { width: 18px; height: 18px; }
.checklist strong { display: block; font-size: 14px; font-weight: 600; }
.checklist span { display: block; color: var(--text-2); font-size: 13px; }
.checklist .is-pass > svg, .checklist .is-pass .st { color: var(--ok); }
.checklist .is-warn > svg, .checklist .is-warn .st { color: var(--warn); }
.checklist .is-fail > svg, .checklist .is-fail .st { color: var(--danger); }
.checklist .btn { height: 30px; padding: 0 10px; }
.checklist .st { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.copy-row { display: flex; gap: 8px; margin: 14px 0 6px; }
.copy-row .input { flex: 1; background: var(--base); }
.slug-row { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: var(--base); padding-left: 12px; min-width: 0; }
.slug-row .muted { white-space: nowrap; font-size: 13.5px; }
.field .slug-row input { border: 0; background: transparent; box-shadow: none; padding-left: 2px; }
.slug-row:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-wash); }
.field > span em { font-style: normal; color: var(--text-3); }

/* ---------------- inbox ---------------- */
.subs { display: grid; gap: 14px; padding: 4px 28px 40px; }
.sub-card { padding: 18px 20px; border-radius: 4px; background: var(--raised); }
.sub-card.is-declined { opacity: .7; }
.sub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sub-who { min-width: 0; }
.sub-who h2 { margin: 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.sub-who p { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.sub-who a { color: inherit; }
.status-pill { flex: none; padding: 4px 10px; border-radius: 4px; background: var(--sel); color: var(--text-2); font-size: 12px; font-weight: 600; }
.sub-card.is-new .status-pill { background: var(--pink); color: var(--pink-ink); }
.sub-note { margin: 12px 0 0; max-width: 70ch; white-space: pre-line; color: var(--text); }
.sub-card .chips { margin-top: 12px; }
.sub-card .chip { background: var(--surface); }
.sub-tracks { display: grid; gap: 4px; margin-top: 14px; }
.sub-track { display: grid; grid-template-columns: 36px minmax(140px, 1fr) minmax(120px, 1.6fr); align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 4px; background: var(--surface); }
.sub-track.is-playing .t-title { color: var(--pink); }
.sub-track .c-wave { height: 34px; }
.sub-track.is-playing .rw .rw-fg { display: inline; }
.play-mini { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--text); color: #000; }
.play-mini svg { width: 14px; height: 14px; }
.sub-card .doc-list { margin-top: 12px; }
.sub-card .doc-list li { background: var(--surface); }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.drop-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); font-size: 13.5px; }
.drop-link svg { flex: none; width: 16px; height: 16px; }
.drop-link a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container main (max-width: 560px) {
  .subs { padding: 4px 10px 24px; }
  .sub-card { padding: 14px; }
  .sub-track { grid-template-columns: 36px minmax(0, 1fr); row-gap: 4px; }
  .sub-track .c-wave { grid-column: 1 / -1; height: 24px; }
  .drop-link { max-width: 100%; }
}

/* ---------------- public pages: demo drop + hand-off ---------------- */
body.public { min-height: 100vh; background: var(--base); color: var(--text); }
.pub { width: min(640px, 100% - 32px); margin: 0 auto; padding: 48px 0 40px; }
.pub.pub-wide { width: min(820px, 100% - 32px); }
.pub-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; min-width: 0; }
.pub-head > div { min-width: 0; }
.pub-head .tile { width: 52px; height: 52px; border-radius: 4px; font-size: 22px; }
.pub-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; overflow-wrap: anywhere; }
.pub-head .kicker { margin: 0 0 6px; color: var(--text-2); font-size: 13px; }
.pub-art { flex: none; width: 112px; height: 112px; border-radius: 4px; object-fit: cover; }
.pub-sub { margin: 6px 0 0; color: var(--text-2); }
.pub-intro { margin: 0 0 22px; max-width: 60ch; color: var(--text-2); }
.pub-note { margin: 0 0 16px; padding: 14px 16px; border-radius: 4px; background: var(--surface); color: var(--text); }
.pub-card { margin-bottom: 16px; padding: 24px; border-radius: 4px; background: var(--surface); }
.pub-card h2 { margin: 0 0 14px; font-size: 21px; }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pub .field input, .pub .field textarea { background: var(--base); }
.pub-zone { display: grid; justify-items: center; gap: 10px; margin: 4px 0 12px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 4px; text-align: center; }
.pub-zone.is-over { border-color: var(--pink); background: var(--pink-wash); }
.pub-zone p { margin: 0; }
.pub-zone small { max-width: 44ch; color: var(--text-3); }
.pub-files { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pub-files li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.pub-files li.is-error small { color: var(--danger); }
.pub-files li.is-done small { color: var(--ok); }
.pf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-name small { display: block; color: var(--text-3); font-size: 12px; }
.pub-files .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); }
.pub-files .bar i { display: block; height: 100%; background: var(--pink); }
.pub .check { align-items: flex-start; }
.pub .check input { margin-top: 3px; flex: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pub-done { padding: 40px 24px; text-align: center; }
.pub-done p { margin: 0 auto; max-width: 46ch; color: var(--text-2); }
.pub-foot { margin: 28px 0 0; text-align: center; color: var(--text-3); font-size: 12.5px; }
.pub audio { display: block; width: 100%; margin-bottom: 14px; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pub-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pub-docs a { color: var(--text); overflow-wrap: anywhere; }
.pub-docs span { color: var(--text-3); font-size: 13px; }
.pub .checklist li { grid-template-columns: 72px minmax(0, 1fr); }
@media (max-width: 560px) {
  .pub { padding-top: 28px; }
  .pub-card { padding: 18px; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-art { width: 76px; height: 76px; }
  .pub .facts { grid-template-columns: 1fr; gap: 2px; }
  .pub .facts dd { margin-bottom: 8px; }
}

/* fixes from screenshot review */
a.btn { text-decoration: none; }
.sub-track .c-wave { grid-area: auto; }

/* ---------------- loudness ---------------- */
.lufs-row { display: flex; gap: 28px; margin-bottom: 12px; }
.lufs-row strong { display: block; font: 600 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }
.lufs-row span { color: var(--text-3); font-size: 12.5px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--text-2); font-size: 13.5px; }
.notes svg { width: 16px; height: 16px; margin-top: 2px; }
.notes .is-pass svg { color: var(--ok); }
.notes .is-warn svg { color: var(--warn); }
.notes .is-info svg { color: var(--text-3); }

/* ---------------- A/B compare ---------------- */
.ab-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.ab-side { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 4px; background: var(--surface); color: var(--text); text-align: left; }
.ab-side:hover { background: var(--sel); }
.ab-side .ab-letter { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--sel); font: 300 20px/1 var(--display); }
.ab-side .t-title, .ab-side .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-side .muted { font-size: 12.5px; }
.ab-side.is-on { background: var(--sel); }
.ab-side.is-on .t-title { color: var(--text); }
.ab-side.is-on .muted { color: var(--text-2); }
.ab-side.is-on .ab-letter { background: var(--text); color: #000; }
.ab-wave { height: 56px; margin: 4px 0 10px; cursor: pointer; }
.ab-wave .rw .rw-fg { display: inline; }
.ab-transport { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ab .play-big { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--text); color: #000; }
.ab-time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ab .check { align-items: flex-start; margin: 0 0 12px; }
.ab .check input { margin-top: 3px; flex: none; }
.ab .check small { display: block; color: var(--text-3); font-size: 12.5px; }
.ab-keys { margin: 2px 0 0; color: var(--text-3); font-size: 12.5px; }
.pick-list { list-style: none; margin: 0 0 8px; padding: 0; max-height: 50vh; overflow: auto; display: grid; gap: 4px; }
.pick-list button { display: grid; width: 100%; padding: 9px 12px; border-radius: 4px; text-align: left; }
.pick-list button:hover { background: var(--sel); }
.pick-list .muted { font-size: 12.5px; }
@media (max-width: 560px) { .ab-sides { grid-template-columns: 1fr; } .lufs-row { gap: 20px; } }

/* ---------------- scrollbars that match the platform ---------------- */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #2A2A2A transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-thumb { background-color: #2A2A2A; border: 2px solid transparent; border-radius: 4px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #3A3A3A; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

/* ---------------- inspector tabs: four of them ---------------- */
.tabs { gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 0 10px; font-size: 13px; }

/* ---------------- notes ---------------- */
.notes-area { display: block; width: 100%; min-height: 220px; padding: 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); line-height: 1.55; resize: none; }
.notes-area:focus { outline: none; border-color: var(--text-3); }
.notes-read { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.notes-meta { margin: 10px 0 0; font-size: 12.5px; }

/* ---------------- comments ---------------- */
.comments { display: flex; flex-direction: column; min-height: calc(100% - 56px); }
.c-list { flex: 1; padding: 8px 12px 12px; }
.c-empty { margin: 14px 8px; }
.c-toggle { margin: 6px 4px 0; }
.thread { padding: 4px 0; }
.thread + .thread { margin-top: 4px; }
.cm { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 8px; border-radius: 4px; transition: background .6s; }
.cm.is-flash { background: var(--sel); transition: none; }
.cm.is-resolved { opacity: .6; }
.cm-av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--sel); color: var(--text); font-size: 11px; font-weight: 700; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.cm-head strong { font-weight: 600; }
.cm-head .muted { font-size: 12px; }
.cm-at { padding: 1px 7px; border-radius: 4px; background: var(--raised); color: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-at:hover { background: var(--sel); }
.cm-body { margin: 3px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.mention { color: var(--pink); font-weight: 600; }
.cm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--raised); font-size: 13px; line-height: 1; }
.react span { color: var(--text-2); font-size: 12px; }
.react.is-mine { background: var(--sel); }
.react.add { color: var(--text-3); padding: 0 6px; }
.react.add svg { width: 15px; height: 15px; }
.react-wrap { display: inline-flex; align-items: center; gap: 4px; }
.react-pick { display: inline-flex; gap: 2px; }
.react-pick .react { background: transparent; padding: 0 4px; font-size: 16px; }
.react-pick .react:hover { background: var(--raised); }
.link-btn { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.link-btn:hover { color: var(--text); }
.replies { margin-left: 40px; }
.replies .cm { grid-template-columns: 24px minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; }
.replies .cm-av { width: 24px; height: 24px; font-size: 10px; }
.cm-edit { width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); resize: vertical; }
.composer { position: relative; padding: 12px; background: var(--side); }
.comments > .composer { position: sticky; bottom: 0; }
.composer.is-reply { margin: 4px 0 6px 40px; padding: 0; background: transparent; }
.composer textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); line-height: 1.45; resize: none; }
.composer.is-reply textarea { min-height: 38px; }
.composer textarea:focus { outline: none; border-color: var(--text-3); }
.composer-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.composer-row .btn { height: 32px; }
.at-row { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--text-2); font-size: 13px; cursor: pointer; }
.at-row input { accent-color: var(--pink); }
.at-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.at-hint { margin-right: auto; font-size: 12px; }
.mention-pop { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 6px); z-index: 5; display: grid; padding: 4px; border-radius: 4px; background: var(--raised); box-shadow: var(--shadow); }
.composer.is-reply .mention-pop { left: 0; right: 0; }
.mention-pop button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; text-align: left; }
.mention-pop button.is-active, .mention-pop button:hover { background: var(--sel); }
.mention-pop .cm-av { width: 24px; height: 24px; font-size: 10px; }

/* ---------------- comment markers on the web player ---------------- */
#player .wave { position: relative; }
.wave-marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; top: -3px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 999px; background: var(--text); box-shadow: 0 0 0 2px var(--frame); pointer-events: auto; cursor: pointer; }
.mark:hover { transform: scale(1.35); }

/* ---------------- notifications ---------------- */
.bell { position: relative; }
.bell-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--pink); color: var(--pink-ink); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.notif-pop { position: fixed; z-index: 60; width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow: auto; border-radius: 4px; background: var(--raised); box-shadow: var(--shadow); }
.notif-pop header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; background: var(--raised); }
.notif-pop h2 { margin: 0; font-size: 17px; }
.notif-pop ul { list-style: none; margin: 0; padding: 0 6px 8px; display: grid; gap: 2px; }
.notif { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; width: 100%; padding: 10px; border-radius: 4px; text-align: left; color: var(--text-2); }
.notif:hover { background: var(--sel); }
.notif.is-unread { background: var(--surface); color: var(--text); }
.notif-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--sel); }
.notif-icon svg { width: 15px; height: 15px; }
.notif-text strong { display: block; font-weight: 600; font-size: 13.5px; }
.notif-text span { display: block; margin-top: 2px; font-size: 13px; overflow-wrap: anywhere; }
.notif-text small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }
.notif-empty { margin: 4px 16px 18px; }
/* four tabs plus star and menu fit a 368px panel and a phone sheet */
.insp-head { gap: 4px; padding: 0 8px 0 12px; }
.insp-head .icon-btn { width: 30px; height: 30px; }
.insp-head .tab { padding: 0 8px; font-size: 12.5px; }
.insp-head .tab-count { margin-left: 3px; min-width: 16px; height: 16px; font-size: 10.5px; }

/* ---------------- volume: thin track, white fill, round knob ---------------- */
input.vol { -webkit-appearance: none; appearance: none; width: 100px; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; --v: 100%; }
input.vol:focus { outline: none; }
input.vol::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: 4px; background: linear-gradient(to right, var(--text) 0 var(--v), #3A3A3A var(--v) 100%); }
input.vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); transform: scale(.75); transition: transform .12s; }
input.vol:hover::-webkit-slider-thumb, input.vol:focus-visible::-webkit-slider-thumb, input.vol:active::-webkit-slider-thumb { transform: scale(1); }
input.vol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
input.vol::-moz-range-track { height: 4px; border: 0; border-radius: 4px; background: #3A3A3A; }
input.vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* ---------------- settings ---------------- */
.set-tabs { display: flex; gap: 6px; padding: 0 28px 14px; }
.set-tab { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 4px; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.set-tab:hover { color: var(--text); background: var(--raised); }
.set-tab.is-active { background: var(--sel); color: var(--text); }
.settings { display: grid; gap: 14px; max-width: 780px; padding: 2px 28px 48px; }
.set-card { padding: 20px 22px; border-radius: 4px; background: var(--raised); }
.set-card h2 { margin: 0 0 14px; font-size: 20px; }
.set-card h3 { margin: 20px 0 10px; font-size: 16px; }
.set-card .field input, .set-card .field select, .set-card .copy-row .input { background: var(--surface); }
.set-card .facts { grid-template-columns: 150px minmax(0, 1fr); gap: 10px 14px; }
.set-card a:not(.btn) { color: var(--text); }
.set-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.set-head h2 { margin: 0; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.set-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.set-danger h2 { margin-bottom: 4px; }
.members, .invites { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.members li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 30px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; background: var(--surface); }
.invites li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 10px 8px 10px 12px; border-radius: 4px; background: var(--surface); }
.m-who, .invites li > div { min-width: 0; }
.m-who strong, .invites strong { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.m-who span, .invites li span { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.members select { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); color: var(--text); }
.members .icon-btn { width: 30px; height: 30px; }
.role-pill { padding: 3px 10px; border-radius: 4px; background: var(--sel); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.invite-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: end; gap: 0 10px; }
.invite-row .field { margin-bottom: 0; }
.invite-row .btn { height: 40px; }
.invite-made { margin-top: 14px; padding: 14px; border-radius: 4px; background: var(--surface); }
.invite-made p { margin: 0 0 4px; }
.invite-made .copy-row .input { background: var(--raised); }
.set-card .form-error { margin: 10px 0 0; }
@container main (max-width: 640px) {
  .settings { padding: 2px 10px 32px; }
  .set-tabs { padding: 0 10px 12px; overflow-x: auto; }
  .set-card { padding: 16px; }
  .set-grid, .invite-row { grid-template-columns: 1fr; }
  .invite-row .field { margin-bottom: 12px; }
  .members li { grid-template-columns: auto minmax(0, 1fr) 30px; }
  .members li select, .members li .role-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .members li .icon-btn, .members li > span:last-child { grid-column: 3; grid-row: 1; }
  .set-card .facts { grid-template-columns: 1fr; gap: 2px; }
  .set-card .facts dd { margin-bottom: 8px; }
  .copy-row { flex-wrap: wrap; }
}

/* ---------------- admin back end ---------------- */
body.admin { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--surface); color: var(--text); }
.adm-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; height: 100vh; padding: 18px 12px; background: var(--side); }
.adm-side .brand { display: block; padding: 6px 10px 18px; color: var(--text); font-size: 18px; text-decoration: none; }
.adm-side .brand span { margin-left: 6px; color: var(--text-3); font-size: 13px; }
.adm-side nav { display: grid; gap: 2px; }
.adm-side .nav-item { text-decoration: none; }
.adm-back { margin-top: auto; }
.adm-main { min-width: 0; padding: 28px 32px 48px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.adm-head h1 { margin: 0; font-size: 34px; }
.adm-flash { margin: 0 0 16px; padding: 10px 14px; border-radius: 4px; background: var(--raised); color: var(--text); }
.adm-flash.is-error { color: var(--danger); }
.adm-flash.is-warn { color: var(--warn); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.adm-stat { padding: 16px; border-radius: 4px; background: var(--raised); }
.adm-stat span { display: block; color: var(--text-3); font-size: 13px; }
.adm-stat strong { display: block; margin-top: 6px; font: 600 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.adm-card { margin-bottom: 14px; padding: 18px 20px; overflow-x: auto; border-radius: 4px; background: var(--raised); }
.adm-card h2 { margin: 0 0 12px; font-size: 20px; }
.adm-card > p.muted { margin: -4px 0 14px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { padding: 8px 10px; color: var(--text-3); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; }
.adm-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.adm-actions form { margin: 0; }
.adm-pill { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 4px; background: var(--sel); font-size: 12px; font-weight: 600; }
.adm-pill.is-bad { color: var(--danger); }
.adm-search { display: flex; gap: 8px; }
.adm-search .input { width: 260px; background: var(--raised); }
.adm-plan { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-plan .input { width: auto; height: 34px; background: var(--surface); }
.adm-plan .btn { height: 34px; }
.adm-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.adm-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.adm-swatch { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 4px; background: var(--surface); cursor: pointer; }
.adm-swatch input[type="color"] { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.adm-swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.adm-swatch input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.adm-swatch input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }
.adm-swatch strong { display: block; font-size: 14px; font-weight: 600; }
.adm-swatch code { display: block; color: var(--text-3); font-size: 12px; }
.adm-swatch small { display: block; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.adm-code { display: block; width: 100%; min-height: 260px; padding: 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); color: var(--text); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.adm-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0; background: var(--surface); }
@media (max-width: 800px) {
  body.admin { grid-template-columns: minmax(0, 1fr); }
  .adm-head { align-items: stretch; }
  .adm-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; height: auto; }
  .adm-side nav { display: flex; flex-wrap: wrap; }
  .adm-back { margin: 0; }
  .adm-main { padding: 20px 12px; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-search { width: 100%; }
  .adm-search .input { flex: 1; width: auto; min-width: 0; }
}

/* admin tables become stacked rows on phones, so pages never scroll sideways */
@media (max-width: 800px) {
  .adm-card { overflow-x: visible; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .adm-table tr:first-child { border-top: 0; }
  .adm-table td { padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  .adm-table td.num { text-align: left; }
  .adm-table td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); }
  .adm-actions { flex-wrap: wrap; justify-content: flex-start; padding-top: 8px; }
  .adm-plan { padding-top: 6px; }
}

/* ---------------- forms sit in the middle, never pushed to the left ---------------- */
.view-head.is-centered, .set-tabs, .settings { box-sizing: border-box; width: 100%; max-width: 836px; margin-left: auto; margin-right: auto; }
.settings { max-width: 836px; }
.adm-main { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; }

/* ---------------- share link: locked + presentation pages ---------------- */
.share-lock { max-width: 440px; margin: 40px auto; text-align: center; }
.share-lock h1 { margin: 0 0 6px; }
.share-lock form { margin-top: 18px; text-align: left; }
.auth-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 4px; background: var(--raised); color: var(--text); font-size: 14px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* share dialog */
.share-dlg h3 { margin: 18px 0 10px; font-size: 16px; }
.share-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.share-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 10px 8px 10px 12px; border-radius: 4px; background: var(--surface); }
.share-list li.share-none { display: block; }
.share-list strong { display: block; font-weight: 600; }
.share-list li span { display: block; font-size: 13px; }
.share-made { margin-top: 12px; padding: 12px; border-radius: 4px; background: var(--surface); }
.share-made p { margin: 0 0 4px; }
.share-made .copy-row .input { background: var(--raised); }
.share-dlg .field input, .share-dlg .field select, .share-dlg .field textarea { background: var(--surface); }
.share-dlg .check small { display: block; color: var(--text-3); font-size: 12.5px; }
.share-dlg .check { align-items: flex-start; }
.share-dlg .check input { margin-top: 3px; flex: none; }

/* presentation page: the app's own layout, read-only, in the workspace's brand */
.presentation .pr-logo { display: block; max-width: 180px; max-height: 30px; margin: 0 10px 0 4px; object-fit: contain; }
.presentation .pr-brand { cursor: default; }
.presentation .pr-brand:hover { background: transparent; }
.presentation .pr-brand img.tile { padding: 0; background: var(--raised); object-fit: contain; }
.presentation .pr-about { margin: 0 10px 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; white-space: pre-line; }
.presentation .pr-message { max-width: 70ch; margin: -8px 28px 16px; color: var(--text-2); white-space: pre-line; }
.presentation .pr-status { margin-left: 8px; color: var(--text-2); font-size: 13px; }
.presentation .list-head span { white-space: nowrap; }
.presentation .row { cursor: pointer; }
.presentation .pr-wave svg { display: block; width: 100%; height: 100%; }
.presentation .pr-wave .rw path { fill: var(--wave); }
.presentation .pr-wave .rw .rw-fg { display: inline; fill: var(--pink); }
.presentation .pr-art img, .presentation .pr-art-empty { display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; }
.presentation .pr-art-empty { display: grid; place-items: center; background: var(--raised); color: var(--text-3); }
.presentation .pr-art-empty svg { width: 48px; height: 48px; }
.presentation .insp-sec h3.pr-title { margin: 0 0 4px; color: var(--text); font-size: 22px; }
.presentation .pr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.presentation .pr-contact { display: grid; gap: 2px; }
@media (max-width: 900px) { .presentation .pr-message { margin: -4px 16px 12px; } }

/* brand card */
.brand-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.brand-logo img { max-width: 220px; max-height: 48px; padding: 6px 10px; border-radius: 4px; background: var(--surface); object-fit: contain; }
.brand-none { padding: 8px 12px; border-radius: 4px; background: var(--surface); font-size: 13px; }
.color-row { display: flex; align-items: center; gap: 10px; height: 40px; }
.color-row input[type="color"] { width: 46px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-row input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }
.color-row code { color: var(--text-2); font-size: 13px; }
.share-list li span + span { margin-top: 2px; }

/* ---------------- transparent top bar ---------------- */
/* The bar floats over the panels, and each panel reaches up behind it in its own colour,
   so whatever colour a panel is given (theme or custom CSS), the strip above it matches. */
body.app { grid-template-rows: minmax(0, 1fr) var(--player-h); grid-template-areas: "side main insp" "player player player"; background: var(--base); }
body.app .top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top-h); background: transparent; border-bottom: 0; }
body.app .side, body.app .main, body.app .insp { border-top: var(--top-h) solid transparent; }
@media (max-width: 900px) {
  body.app, body.app.insp-closed { grid-template-rows: minmax(0, 1fr) var(--player-h); grid-template-areas: "main" "player"; }
  body.app .side, body.app .insp { border-top-width: 0; }
}
.top .brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { display: block; max-width: 170px; max-height: 28px; object-fit: contain; }
.wordmark-logo { display: block; max-width: 220px; max-height: 40px; object-fit: contain; }
.adm-side .brand .brand-logo { display: inline-block; max-height: 26px; vertical-align: middle; }
.adm-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.adm-logo-preview { display: inline-flex; align-items: center; min-height: 52px; padding: 8px 14px; border-radius: 4px; background: var(--surface); }
.adm-logo-preview img { max-width: 220px; max-height: 36px; object-fit: contain; }
.adm-logo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-logo-form input[type="file"] { max-width: 240px; color: var(--text-2); font-size: 13px; }
/* drop page: heading centred */
.pub-head.is-centered { flex-direction: column; justify-content: center; text-align: center; }
.pub-head.is-centered + .pub-intro { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- folders + projects ---------------- */
.side-head-btns { display: inline-flex; gap: 2px; }
.folder-row { gap: 0; padding-left: 2px; }
.folder-caret { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: var(--text-3); transition: transform .15s; transform: rotate(90deg); }
.folder-caret svg { width: 14px; height: 14px; }
.folder.is-closed .folder-caret { transform: none; }
.folder.is-closed .folder-body { display: none; }
.folder-link { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.folder-link .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.pl-item.is-nested { padding-left: 32px; }
.proj-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--sel); color: var(--text); font-size: 12px; font-weight: 600; }
.proj-due { margin-left: 6px; color: var(--text-2); font-size: 12.5px; }
.proj-due.is-late { color: var(--danger); }
.proj-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.proj-desc { max-width: 70ch; margin: -6px 28px 14px; color: var(--text-2); white-space: pre-line; }
.proj-playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 28px 18px; }
.proj-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: 4px; background: var(--raised); color: var(--text); text-decoration: none; }
.proj-card:hover { background: var(--sel); }
.proj-card img, .proj-card .proj-art { flex: none; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.proj-card .proj-art { display: grid; place-items: center; background: var(--sel); color: var(--text-3); }
.proj-card > span:last-child { min-width: 0; }
.proj-card strong { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.proj-card small { color: var(--text-3); font-size: 12.5px; }
.proj-dlg .field input, .proj-dlg .field select, .proj-dlg .field textarea { background: var(--surface); }
@container main (max-width: 640px) {
  .proj-desc { margin: -4px 16px 12px; }
  .proj-playlists { margin: 0 12px 14px; grid-template-columns: 1fr 1fr; }
  .proj-actions .btn { padding: 0 10px; }
}

/* ---------------- version history ---------------- */
.v-items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.v-items li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 4px; background: var(--raised); }
.v-items li.is-current { background: var(--sel); }
.v-items strong { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v-items small { display: block; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v-badge { margin-left: 4px; padding: 1px 7px; border-radius: 4px; background: var(--text); color: #000; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.v-compare { margin: 0 0 10px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- plans + billing ---------------- */
.seg { display: inline-flex; padding: 3px; border-radius: 4px; background: var(--surface); }
.seg-btn { height: 30px; padding: 0 14px; border-radius: 4px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.seg-btn.is-on { background: var(--sel); color: var(--text); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-opt { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 4px; background: var(--surface); }
.plan-opt.is-current { background: var(--sel); }
.plan-opt > strong { font: 300 20px/1.2 var(--display); }
.plan-price { margin: 0; color: var(--text-2); font-size: 13.5px; }
.plan-price span { color: var(--text); font: 600 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.plan-opt ul { flex: 1; margin: 4px 0 10px; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.plan-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; color: var(--warn); }
.plan-warn svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 14px; }
.adm-fields .field em { font-style: normal; color: var(--ok); }
.adm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-checks li { padding: 8px 12px; border-radius: 4px; background: var(--surface); }
.adm-checks li.is-ok strong { color: var(--ok); }
.adm-checks li.is-bad strong { color: var(--danger); }
.adm-table .input { width: 100%; min-width: 160px; height: 34px; background: var(--surface); }

/* ---------------- mastering console ---------------- */
/* One compact unit in the middle of the page, laid out like a hardware mastering processor. */
.mm-root { display: flex; justify-content: center; padding: 20px 20px 32px; }
.mm-shell { width: 100%; max-width: 980px; padding: 10px; border-radius: 4px; background: var(--base); }
.mm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 4px 4px 10px; }
.mm-id { display: grid; flex: 1; min-width: 0; }
.mm-kicker { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mm-title { overflow: hidden; font: 300 22px/1.25 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.mm-status { color: var(--text-2); font-size: 12.5px; }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-actions .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.mm-actions .btn-primary { background: var(--text); color: #000; }
.mm-actions .btn-primary:hover { background: #fff; }
.mm-actions .btn-primary:disabled { background: var(--sel); color: var(--text-3); }
.mm-transport { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: var(--raised); }
.mm-transport .play-big { width: 36px; height: 36px; }
.mm-transport .play-big svg { width: 16px; height: 16px; }
.mm-transport .play-big:disabled, .mm-transport .icon-btn:disabled { opacity: .35; }
.mm-scrub { position: relative; flex: 1; min-width: 60px; height: 4px; border-radius: 2px; background: #3A3A3A; cursor: pointer; }
.mm-scrub::before { content: ""; position: absolute; inset: -10px 0; }
.mm-scrub i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--text); }
.mm-clock { font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.mm-device { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.mm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0; padding: 6px 10px; border-radius: 4px; background: var(--raised); }
.mm-links { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.mm-links .link-btn { color: var(--text-2); font-size: 12.5px; }
.mm-links .link-btn:hover { color: var(--text); }
.mm-links .link-btn:disabled { opacity: .4; }
.mm-bar .mm-slots { margin: 0 auto; }
.mm-shell .seg { padding: 2px; }
.mm-shell .seg-btn { height: 24px; padding: 0 9px; font-size: 12px; }
.mm-toggle { height: 26px; padding: 0 10px; border-radius: 4px; background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.mm-toggle.is-on { background: var(--text); color: #000; }
.mm-body { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.mm-main { display: grid; gap: 8px; min-width: 0; }
.mm-panel { min-width: 0; padding: 10px 12px; border-radius: 4px; background: var(--raised); }
.mm-name { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12.5px; text-align: center; }
.mm-eq { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px 18px; }
.mm-group { display: grid; justify-items: center; }
.mm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.mp { min-width: 58px; height: 26px; padding: 0 8px; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: ns-resize; touch-action: none; }
.mp:hover, .mp:focus-visible { background: var(--sel); outline: none; }
.mm-center { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.mm-dyn, .mm-lim { display: grid; justify-items: center; gap: 4px; }
.mm-seg { flex-wrap: wrap; justify-content: center; }
.mm-sub { margin-top: 4px; color: var(--text-3); font-size: 11.5px; }
.mm-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 8px; }
.mm-subbass, .mm-width { display: grid; place-items: center; }
.mm-knobs { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 6px; }
.mk { display: grid; justify-items: center; gap: 2px; min-width: 64px; }
.mk-label { color: var(--text-2); font-size: 12px; text-align: center; }
.mk-dial { width: 54px; height: 54px; border-radius: 50%; cursor: ns-resize; touch-action: none; }
.mk.is-big .mk-dial { width: 96px; height: 96px; }
.mk.is-big .mk-label { font-size: 13px; }
.mk-dial svg { display: block; width: 100%; height: 100%; }
.mk-track { fill: none; stroke: #2E2E2E; stroke-width: 5; stroke-linecap: butt; }
.mk-fill { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: butt; }
.mk-cap { fill: var(--sel); }
.mk-tick { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.mk-dial:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; }
.mk-value { font-size: 12px; font-variant-numeric: tabular-nums; }
.mk-hint { color: var(--text-3); font-size: 11px; }
.mm-meter { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; justify-items: center; gap: 2px; }
.mm-hold { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.mm-now { font: 300 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.mm-bars { display: flex; gap: 6px; height: 100%; min-height: 160px; padding-top: 6px; }
.mm-bars span { position: relative; width: 14px; overflow: hidden; border-radius: 2px; background: var(--surface); }
.mm-bars i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(to top, var(--text-3) 0%, var(--text) 85%, var(--pink) 100%); }
.mm-meter.is-clip .mm-hold { color: var(--danger); }
.mm-scale { color: var(--text-3); font-size: 11px; }
.mm-note { display: block; margin-top: 2px; color: var(--warn); font-size: 11px; }
.mm-foot { margin: 8px 4px 0; color: var(--text-3); font-size: 12px; text-align: center; }
@container main (max-width: 860px) {
  .mm-center { grid-template-columns: 1fr 1fr; }
  .mm-vol { grid-column: 1 / -1; grid-row: 1; }
  .mm-row3 { grid-template-columns: 1fr 1fr; }
  .mm-tone { grid-column: 1 / -1; order: -1; }
}
@container main (max-width: 600px) {
  .mm-root { padding: 10px 8px 24px; }
  .mm-shell { padding: 6px; }
  .mm-body { grid-template-columns: 1fr; }
  .mm-meter { grid-row: 1; grid-template-rows: auto; grid-template-columns: auto auto auto; justify-content: center; align-items: center; column-gap: 16px; }
  .mm-bars { height: 80px; min-height: 80px; padding-top: 0; }
  .mm-center, .mm-row3 { grid-template-columns: 1fr; }
  .mm-device { display: none; }
  .mm-bar .mm-slots { margin: 0; }
}

/* ---------------- admin: narrow cards ---------------- */
.adm-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.adm-state { margin: 14px 0; padding: 10px 14px; border-radius: 4px; background: var(--surface); color: var(--text-2); }
.adm-state strong { margin-right: 6px; color: var(--text); }
.adm-state.is-on strong { color: var(--ok); }
.adm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------------- marketing page ---------------- */
body.mkt { min-height: 100vh; margin: 0; background: var(--base); color: var(--text); }
.mkt a { color: inherit; }
.mkt-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mkt-center { text-align: center; }
.mkt-narrow { max-width: 780px; }
.mkt-preview { padding: 8px 16px; background: var(--warn); color: #000; font-size: 13.5px; font-weight: 600; text-align: center; }
.mkt-preview a { margin-left: 8px; text-decoration: underline; }
.mkt-nav { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); }
.mkt-nav .mkt-wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.mkt-brand { font: 300 20px/1 var(--display); text-decoration: none; }
.mkt-brand img { display: block; max-width: 180px; max-height: 30px; }
.mkt-links { display: flex; gap: 22px; margin: 0 auto; }
.mkt-links a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.mkt-links a:hover { color: var(--text); }
.mkt-auth { display: flex; gap: 8px; }
.mkt .btn { text-decoration: none; }
.mkt-light { background: var(--text); color: #000 !important; }
.mkt-light:hover { background: #fff; }
.mkt-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.mkt-block { width: 100%; justify-content: center; }
.mkt-hero { padding: 88px 0 40px; }
.mkt-kicker { margin: 0 0 12px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mkt h1 { max-width: 880px; margin: 0 auto; font: 300 clamp(38px, 6vw, 68px)/1.06 var(--display); letter-spacing: -.01em; }
.mkt h2 { margin: 0; font: 300 clamp(28px, 3.6vw, 42px)/1.15 var(--display); }
.mkt h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.mkt-lede { max-width: 680px; margin: 20px auto 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.mkt-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.mkt-fine { margin: 14px 0 0; color: var(--text-3); font-size: 13.5px; }
.mkt-shot { margin: 56px 0 0; overflow: hidden; border-radius: 4px; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.mkt-shot img { display: block; width: 100%; height: auto; }
.mkt-section { padding: 96px 0; }
.mkt-alt { background: var(--surface); }
.mkt-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.mkt-sub { margin: 14px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.mkt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mkt-card { padding: 22px; border-radius: 4px; background: var(--raised); }
.mkt-card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.mkt-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 4px; background: var(--sel); }
.mkt-icon svg { width: 18px; height: 18px; }
.mkt-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; }
.mkt-split .mkt-shot { margin: 0; }
.mkt-copy p { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.mkt-ticks { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.mkt-ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.mkt-ticks svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--text); }
.mkt-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.mkt-plan { display: flex; flex-direction: column; padding: 26px; border-radius: 4px; background: var(--raised); }
.mkt-plan.is-featured { background: var(--sel); }
.mkt-blurb { margin: 0; color: var(--text-3); font-size: 14px; }
.mkt-price { margin: 18px 0 4px; color: var(--text-2); font-size: 14px; }
.mkt-price strong { margin-right: 4px; color: var(--text); font: 300 40px/1 var(--display); }
.mkt-plan .mkt-ticks { flex: 1; margin: 16px 0 24px; }
.mkt-faq { border-bottom: 1px solid var(--sel); }
.mkt-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16.5px; font-weight: 600; list-style: none; cursor: pointer; }
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary svg { flex: none; width: 18px; height: 18px; color: var(--text-3); transition: transform .15s; }
.mkt-faq[open] summary svg { transform: rotate(90deg); }
.mkt-faq p { margin: -6px 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.mkt-final { padding: 110px 0; }
.mkt-foot { padding: 28px 0; background: var(--base); color: var(--text-3); font-size: 13.5px; }
.mkt-foot .mkt-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mkt-foot nav { display: flex; gap: 18px; }
.mkt-foot a { text-decoration: none; }
.mkt-foot a:hover { color: var(--text); }
@media (max-width: 960px) {
  .mkt-grid, .mkt-plans { grid-template-columns: 1fr 1fr; }
  .mkt-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .mkt-wrap { padding: 0 16px; }
  .mkt-links { display: none; }
  .mkt-nav .mkt-wrap { justify-content: space-between; }
  .mkt-auth .btn-ghost { display: none; }
  .mkt-hero { padding: 56px 0 24px; }
  .mkt-lede { font-size: 16px; }
  .mkt-section { padding: 64px 0; }
  .mkt-grid, .mkt-plans { grid-template-columns: 1fr; }
  .mkt-shot { margin-top: 36px; }
}

/* ---------------- track sheet (right panel) ---------------- */
/* A rail of sections down the outer edge, an identity header with vitals, and collapsible cards. */
#insp:has(> .tsheet) { overflow: hidden; padding: 0; }
.tsheet { display: flex; height: 100%; min-height: 0; }
.tsheet-body { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 10px 28px 14px; }
.insp-rail { order: 2; display: flex; flex: none; flex-direction: column; gap: 4px; width: 64px; padding: 12px 6px; overflow: hidden; border-left: 1px solid var(--line); background: var(--side); }
.insp-rail .tab.rail-btn { position: relative; display: grid; justify-items: center; gap: 4px; height: auto; min-height: 54px; padding: 9px 2px 7px; border-radius: 4px; background: transparent; color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.insp-rail .rail-btn svg { width: 19px; height: 19px; }
.insp-rail .rail-btn:hover { background: var(--raised); color: var(--text-2); }
.insp-rail .rail-btn.is-active { background: var(--sel); color: var(--text); }
.insp-rail .rail-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-rail .tab-count { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; margin: 0; padding: 0 4px; border-radius: 4px; background: var(--text); color: #000; font-size: 10px; line-height: 16px; text-align: center; }
.rail-close { margin: 0 auto 6px; }
.th { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: end; gap: 14px; }
.th.is-compact { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.th-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--raised); color: var(--text-3); }
.th-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.th-art > svg { width: 40%; height: 40%; }
.th-art-edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .15s; }
.th-art:hover .th-art-edit, .th-art-edit:focus-visible { opacity: 1; }
.th-id { min-width: 0; }
.th-kind { display: inline-block; max-width: 100%; margin-bottom: 7px; padding: 2px 6px; overflow: hidden; border-radius: 4px; background: var(--sel); color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.th-title { margin: 0; font: 300 21px/1.2 var(--display); overflow-wrap: anywhere; }
.th.is-compact .th-title { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.th-artist { margin: 3px 0 0; overflow: hidden; color: var(--text-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.th-mini { display: flex; gap: 2px; }
.th-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 16px 0 10px; }
.th-vitals > div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 8px 8px 7px; border-radius: 4px; background: var(--raised); }
.th-vitals span { color: var(--text-3); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.th-vitals strong { overflow: hidden; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.th-vitals em { overflow: hidden; color: var(--text-3); font-size: 10.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.th-actions { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.th-actions .btn { height: 34px; padding: 0 12px; }
.th-grow { flex: 1; }
.th-play { display: grid; flex: none; place-items: center; width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; background: var(--text); color: #000; }
.th-play svg { width: 15px; height: 15px; margin-left: 2px; }
.tsheet.is-info .tsheet-body > .insp-sec, .tg { margin: 0 0 8px; border-radius: 4px; background: var(--raised); }
.tsheet.is-info .tsheet-body > .insp-sec { padding: 12px; border: 0; }
.tsheet.is-info .tsheet-body > .insp-sec h3 { margin-top: 0; }
.tsheet .meta { display: block; margin: 0; }
.tg-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; color: var(--text); text-align: left; }
.tg-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tg-sum { flex: 1; min-width: 0; overflow: hidden; color: var(--text-3); font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tg-head svg { flex: none; width: 14px; height: 14px; color: var(--text-3); transition: transform .15s; }
.tg.is-open .tg-head svg { transform: rotate(90deg); }
.tg-body { display: none; padding: 0 12px 12px; }
.tg.is-open .tg-body { display: block; }
.tg.is-open .tg-body.meta-grid { display: grid; }
.tg-meter { grid-column: 1 / -1; height: 3px; margin: 0 0 6px; overflow: hidden; border-radius: 2px; background: var(--surface); }
.tg-meter i { display: block; height: 100%; background: var(--text); }
.tsheet .tg .meta input, .tsheet .tg .meta select, .tsheet .meta input, .tsheet .meta select { background-color: var(--surface); }
.tsheet.is-info .v-items li { background: var(--surface); }
.tsheet.is-info .v-items li.is-current { background: var(--sel); }
.tsheet .facts { margin: 0; }

/* ---------------- mastering pop-up ---------------- */
.mm-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: start center; overflow-y: auto; padding: 36px 16px; background: rgba(0, 0, 0, .76); }
.mm-pop-inner { width: 100%; max-width: 980px; margin: auto 0; container: main / inline-size; }
.mm-pop .mm-root { padding: 0; }
.mm-pop .mm-shell { box-shadow: 0 30px 90px rgba(0, 0, 0, .75); }
.mm-close { margin-left: 4px; }
body.has-mm-pop .uploads { z-index: 76; }
.mm-analysis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 8px 0 0; padding: 8px 12px; border-radius: 4px; background: var(--raised); font-size: 12.5px; }
.mm-analysis dl { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.mm-analysis dt { color: var(--text-3); }
.mm-analysis dd { margin: 0 12px 0 0; font-variant-numeric: tabular-nums; }
.mm-notes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; color: var(--text-2); list-style: none; }
.mm-notes .is-warn { color: var(--warn); }
.mm-notes .is-fail { color: var(--danger); }
@media (max-width: 600px) {
  .mm-pop { padding: 0; }
  .mm-pop .mm-shell { min-height: 100dvh; border-radius: 0; }
}
.insp-rail { width: 76px; }
.insp-rail .tab.rail-btn { font-size: 10.5px; }
.tsheet .meta-grid { grid-template-columns: 84px minmax(0, 1fr); }
.tsheet .meta input.narrow { flex: none; width: 54px; }
.tsheet .meta .ctl select { min-width: 0; }

/* ---------------- round 2 of the track sheet ---------------- */
/* Rail: words only, running vertically. */
.insp-rail { align-items: center; width: 46px; padding: 12px 5px; }
.insp-rail .tab.rail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 36px; min-height: 0; padding: 14px 0; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; writing-mode: vertical-rl; }
.insp-rail .rail-label { max-width: none; overflow: visible; }
.insp-rail .tab-count { position: static; writing-mode: horizontal-tb; }
.rail-close { writing-mode: horizontal-tb; }
/* Versions card: smaller wording so both buttons fit, and never a sideways scrollbar. */
.tsheet-body { overflow-x: hidden; }
.tsheet .v-compare, .tsheet .v-actions .btn { height: auto; min-height: 30px; max-width: 100%; padding: 6px 10px; font-size: 12px; line-height: 1.3; text-align: left; white-space: normal; }
.tsheet .v-compare svg, .tsheet .v-actions .btn svg { flex: none; width: 15px; height: 15px; }
/* Mastering pop-up: a darker frame. */
/* the pop-up's panel finish is set with the rest of the console below */

/* ---------------- top bar: Upload flush left over the details panel ---------------- */
@media (min-width: 901px) {
  body.app:not(.presentation) .top { grid-template-columns: calc(var(--side-w) - 24px) minmax(0, 1fr) calc(var(--insp-w) - 24px); gap: 24px; }
  body.app:not(.presentation) .top .search { max-width: 560px; margin: 0 auto; }
  body.app .top-r > .top-upload { margin-right: auto; }
}

/* ---------------- motion ---------------- */
/* One speed for everything that slides or opens. Change it in Admin → Appearance → Custom CSS, e.g. :root { --slide-speed: .5s; } */
:root { --slide-speed: .3s; --ease-out: cubic-bezier(.22, .8, .24, 1); }
@media (min-width: 901px) {
  body.app.anim-ready { transition: grid-template-columns var(--slide-speed) var(--ease-out); }
  body.app .insp { overflow-x: hidden; }
  body.app .insp > * { min-width: calc(var(--insp-w) - 1px); }
}
@media (max-width: 900px) {
  .side { transition: transform var(--slide-speed) var(--ease-out); }
  .insp { transition: opacity var(--slide-speed) var(--ease-out), transform var(--slide-speed) var(--ease-out); }
}
@keyframes lc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lc-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-wrap, .mm-pop { animation: lc-fade var(--slide-speed) var(--ease-out); }
.modal-wrap > .modal, .mm-pop .mm-shell { animation: lc-rise var(--slide-speed) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  body.app.anim-ready, .side, .insp, .modal-wrap, .modal-wrap > .modal, .mm-pop, .mm-pop .mm-shell { transition: none !important; animation: none !important; }
}

/* ---------------- marketing, second layout ---------------- */
.mkt-links a[aria-current="page"] { color: var(--text); }
.mkt-hero-split { padding: 72px 0; }
.mkt-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; }
.mkt-hero-copy h1 { max-width: none; margin: 0; font-size: clamp(36px, 4.3vw, 58px); }
.mkt-hero-copy .mkt-lede { margin-left: 0; }
.mkt-hero-copy .mkt-cta { justify-content: flex-start; }
.mkt-collage { position: relative; padding: 0 0 76px 48px; }
.mkt-collage .mkt-shot { margin: 0; }
.mkt-collage-front { position: absolute; bottom: 0; left: 0; width: 60%; outline: 1px solid #000; box-shadow: 0 26px 70px rgba(0, 0, 0, .85); }
.mkt-collage-chip { position: absolute; top: -16px; right: 20px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; background: var(--text); color: #000; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.mkt-collage-chip b { padding: 1px 6px; border-radius: 4px; background: #000; color: #fff; font-size: 11.5px; }
.mkt-split.is-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mkt-shot-card { margin: 0; background: transparent; }
.mkt-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text); font-weight: 600; text-decoration: none; }
.mkt-link svg { width: 16px; height: 16px; }
.mkt-link:hover { text-decoration: underline; }
.mkt-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border-radius: 4px; background: var(--raised); }
.mkt-band > div { display: grid; align-content: start; gap: 6px; padding: 28px; }
.mkt-band > div + div { box-shadow: inset 1px 0 0 var(--surface); }
.mkt-band-name { color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mkt-band strong { font: 300 38px/1.05 var(--display); }
.mkt-band-per { color: var(--text-2); font-size: 14px; }
.mkt-band-spec { margin-top: 10px; color: var(--text-3); font-size: 13.5px; }
.mkt-more { margin-top: 26px; }
.mkt-page-hero { padding: 84px 0 40px; }
.mkt-page-hero h1 { max-width: 860px; }
.mkt-hero-shot { margin-top: 52px; }
.mkt-tight { padding: 40px 0; }
.mkt-calc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px; }
.mkt-calc-in { display: grid; align-content: center; gap: 14px; padding: 28px; border-radius: 4px; background: var(--raised); }
.mkt-calc-in label { font-size: 15px; font-weight: 600; }
.mkt-calc-in output { font: 300 42px/1 var(--display); }
.mkt-calc-in input[type="range"] { width: 100%; accent-color: var(--text); }
.mkt-calc-in .mkt-fine { margin: 0; }
.mkt-calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mkt-calc-plan { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 4px; background: var(--raised); transition: background var(--slide-speed), opacity var(--slide-speed); }
.mkt-calc-plan.is-out { opacity: .4; }
.mkt-calc-plan.is-best { background: var(--sel); }
.mkt-calc-plan strong { font: 300 40px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.mkt-calc-plan [data-note] { min-height: 38px; color: var(--text-2); font-size: 13.5px; }
.mkt-fit { justify-self: start; padding: 2px 7px; border-radius: 4px; background: var(--text); color: #000; font-size: 11px; font-weight: 700; visibility: hidden; }
.mkt-calc-plan.is-best .mkt-fit { visibility: visible; }
.mkt-table-wrap { overflow-x: auto; border-radius: 4px; background: var(--raised); }
.mkt-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.mkt-table th, .mkt-table td { padding: 13px 20px; text-align: left; }
.mkt-table thead th { color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mkt-table tbody th { color: var(--text-2); font-weight: 500; }
.mkt-table tbody tr { box-shadow: inset 0 1px 0 var(--surface); }
.mkt-table .mkt-group th { padding-top: 24px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.mkt-table td svg { width: 18px; height: 18px; }
.mkt-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mkt-step { padding: 24px; border-radius: 4px; background: var(--raised); }
.mkt-step::before { display: block; margin-bottom: 16px; color: var(--text-3); font: 300 30px/1 var(--display); content: counter(step, decimal-leading-zero); counter-increment: step; }
.mkt-step p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.mkt-chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mkt-module { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 24px; border-radius: 4px; background: var(--raised); }
.mkt-module-n { color: var(--text-3); font: 300 26px/1 var(--display); }
.mkt-module p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.mkt-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mkt-specs li { padding: 3px 8px; border-radius: 4px; background: var(--surface); color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.mkt-out { padding: 28px; border-radius: 4px; background: var(--raised); }
.mkt-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 16px; margin: 16px 0 0; font-size: 14.5px; }
.mkt-dl dt { color: var(--text-3); }
.mkt-dl dd { margin: 0; }
@media (max-width: 960px) {
  .mkt-hero-grid, .mkt-split.is-rev, .mkt-calc { grid-template-columns: 1fr; }
  .mkt-collage { padding: 0 0 56px; }
  .mkt-collage-front { width: 66%; }
  .mkt-steps { grid-template-columns: 1fr 1fr; }
  .mkt-chain { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mkt-hero-split { padding: 48px 0; }
  .mkt-band, .mkt-calc-out, .mkt-steps { grid-template-columns: 1fr; }
  .mkt-band > div + div { box-shadow: inset 0 1px 0 var(--surface); }
  .mkt-collage-chip { right: 8px; font-size: 12px; }
  .mkt-page-hero { padding: 52px 0 24px; }
  .mkt-dl { grid-template-columns: 1fr; gap: 2px; }
  .mkt-dl dd { margin-bottom: 10px; }
}
.mkt-table-wrap { position: relative; } /* keeps screen-reader labels inside the scrolling table */
.insp-rail .tab.rail-btn { width: 34px; } /* 34 + 2×5 padding fits inside the 46px rail and its 1px edge */
.insp-rail .rail-close { width: 34px; height: 34px; }
/* Search stays centred in the window; Upload keeps its place over the details panel. */
@media (min-width: 901px) {
  body.app:not(.presentation) .top .search { position: absolute; top: 50%; left: 50%; width: min(560px, calc(100vw - 2 * (var(--insp-w) + 12px))); max-width: none; margin: 0; transform: translate(-50%, -50%); }
  body.app:not(.presentation) .top .top-r { grid-column: 3; }
}

/* ---------------- round 3: smaller, quieter type; fewer lines; smoother motion ---------------- */
body { font-size: 12px; letter-spacing: .002em; }
.meta label, .meta .lbl { color: var(--text-2); font-size: 12px; }
.insp-rail { border-left: 0; }
.insp-rail .tab.rail-btn { font-size: 11px; }
.filter input { border: 0; background: var(--raised); }
.filter input:focus { border: 0; background: var(--sel); }
.tsheet { font-size: 12px; }
.th-title { font-size: 18px; }
.th.is-compact .th-title { font-size: 14px; }
.th-artist { font-size: 12px; }
.th-kind { font-size: 9.5px; }
.th-vitals strong { font-size: 13.5px; }
.th-vitals em { font-size: 10px; }
.th-actions .btn { height: 32px; font-size: 12px; }
.tg-head { padding: 10px 12px; }
.tg-title { color: var(--text-2); font-size: 12px; }
.tg-sum { font-size: 11px; }
.tsheet .insp-sec h3 { color: var(--text-2); font-size: 12px; font-weight: 600; }
.tsheet .meta input, .tsheet .meta select { height: 30px; font-size: 12px; }
.tsheet .facts { grid-template-columns: 96px minmax(0, 1fr); }
.tsheet .facts dt, .tsheet .facts dd { font-size: 12px; }
.tsheet .v-items strong { font-size: 12px; }
.tsheet .v-items small { font-size: 11px; }
.tsheet .notes li, .tsheet .chip, .tsheet .muted, .tsheet .hint { font-size: 12px; }
/* Motion: the details panel eases out slower; the mastering pop-up rises in gently. */
:root { --panel-speed: .6s; --pop-speed: .55s; --ease-smooth: cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 901px) { body.app.anim-ready { transition: grid-template-columns var(--panel-speed) var(--ease-smooth); } }
@media (max-width: 900px) {
  .side { transition: transform var(--panel-speed) var(--ease-smooth); }
  .insp { transition: opacity var(--panel-speed) var(--ease-smooth), transform var(--panel-speed) var(--ease-smooth); }
}
@keyframes lc-pop { from { opacity: 0; transform: translateY(28px) scale(.965); } to { opacity: 1; transform: none; } }
.mm-pop.is-entering { animation: lc-fade var(--pop-speed) ease-out; }
.mm-pop .mm-shell { border: 1px solid #2a2a2a; }
.mm-pop.is-entering .mm-shell { animation: lc-pop var(--pop-speed) var(--ease-smooth); }
@media (prefers-reduced-motion: reduce) { .mm-pop, .mm-pop .mm-shell { animation: none !important; } }

/* ---------------- marketing: full-platform picture, legal pages ---------------- */
.mkt-hero-full { width: 100%; max-width: 1325px; margin: 56px auto 0; padding: 0 24px; }
.mkt-hero-full .mkt-shot { margin: 0; }
.mkt-hero-full img { display: block; width: 100%; height: auto; }
.mkt-no { color: var(--text-3); }
.mkt-legal-hero { padding-bottom: 8px; }
.mkt-legal-hero .mkt-wrap { text-align: left; }
.mkt-legal-hero h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.mkt-legal { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.mkt-legal h2 { margin: 40px 0 10px; color: var(--text); font: 600 19px/1.3 var(--sans); }
.mkt-legal h3 { margin: 24px 0 8px; color: var(--text); font-size: 16px; }
.mkt-legal p { margin: 0 0 14px; }
.mkt-legal ul { margin: 0 0 14px; padding-left: 20px; }
.mkt-legal li { margin: 0 0 8px; }
.mkt-legal strong { color: var(--text); }
.mkt-legal a { text-decoration: underline; }
.auth-legal { margin: 16px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.auth-legal a { color: var(--text-2); text-decoration: underline; }
.adm-legal { width: 100%; min-height: 360px; font-size: 13px; line-height: 1.55; }
@media (max-width: 680px) { .mkt-hero-full { margin-top: 36px; padding: 0 12px; } }

.adm-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.adm-radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; background: var(--surface); font-size: 13px; cursor: pointer; }
.adm-code { white-space: pre-wrap; word-break: break-all; }
.mkt-hero-full { box-sizing: border-box; }
.mkt-foot nav { flex-wrap: wrap; gap: 8px 18px; }

/* ---------------- split sheet page (signing and printing) ---------------- */
body.split-page { min-height: 100vh; font-size: 13px; }
.split-wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 48px 20px 60px; box-sizing: border-box; }
.split-head h1 { margin: 4px 0 2px; font: 300 34px/1.15 var(--display); }
.split-artist { margin: 0; color: var(--text-2); font-size: 15px; }
.split-state { display: inline-block; margin: 16px 0 0; padding: 6px 10px; border-radius: 4px; background: var(--raised); color: var(--text-2); }
.split-state.is-signed { color: var(--ok); }
.split-state.is-void { color: var(--danger); }
.split-card { margin-top: 16px; padding: 18px; border-radius: 4px; background: var(--raised); }
.split-card h2 { margin: 0 0 12px; font-size: 16px; }
.split-table-wrap { position: relative; overflow-x: auto; }
.split-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.split-table th, .split-table td { padding: 10px 12px; text-align: left; vertical-align: top; }
.split-table thead th { color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.split-table tbody tr, .split-table tfoot tr { box-shadow: inset 0 1px 0 var(--surface); }
.split-table tbody th { font-weight: 600; }
.split-table small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; font-weight: 400; }
.split-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.split-table tr.is-you { background: var(--sel); }
.split-you { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--text); color: #000; font-size: 10.5px; font-weight: 700; }
.split-signed { font-style: italic; }
.split-explain, .split-note { margin: 14px 0 0; color: var(--text-2); line-height: 1.55; }
.split-note { white-space: pre-line; }
.split-sign form { display: grid; gap: 12px; max-width: 460px; }
.split-ok { margin: 0 0 10px; color: var(--ok); font-weight: 600; }
.split-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--text-3); font-size: 12px; }
@media print {
  body.split-page { background: #fff; color: #000; }
  .split-card, .split-state { background: #fff; color: #000; box-shadow: none; }
  .split-table tbody tr, .split-table tfoot tr { box-shadow: inset 0 1px 0 #ccc; }
  .split-sign, .split-foot .btn { display: none; }
  .split-you { background: #000; color: #fff; }
  .muted, .split-table small, .split-table thead th, .split-explain, .split-foot { color: #444; }
}

/* ---------------- detect, splits card and dialog, people on links ---------------- */
.detect-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.detect-row .btn { height: 30px; font-size: 12px; }
.detect-note { grid-column: 1 / -1; margin: 0 0 6px; font-size: 11.5px; }
.sp-meter { height: 3px; margin: 0 0 8px; overflow: hidden; border-radius: 2px; background: var(--surface); }
.sp-meter i { display: block; height: 100%; background: var(--text); }
.sp-names { margin: 0 0 10px; font-size: 12px; line-height: 1.5; }
.modal.sp-dlg { max-width: 960px; }
.sp-grid-wrap { position: relative; overflow-x: auto; margin: 0 0 10px; }
.sp-grid { width: 100%; min-width: 820px; border-collapse: collapse; }
.sp-grid th { padding: 0 4px 6px; color: var(--text-3); font-size: 11px; font-weight: 600; text-align: left; }
.sp-grid th em { font-style: normal; font-weight: 400; }
.sp-grid td { padding: 3px 4px; }
.sp-grid .input { width: 100%; height: 32px; padding: 0 8px; background: var(--surface); font-size: 12.5px; box-sizing: border-box; }
.sp-grid td:nth-child(3), .sp-grid td:nth-child(4) { width: 76px; }
.sp-grid td:nth-child(6) { width: 110px; }
.sp-grid .num { text-align: right; }
.sp-grid tfoot th, .sp-grid tfoot td { padding-top: 8px; font-size: 12.5px; font-weight: 600; }
.sp-grid tfoot .is-bad { color: var(--danger); }
.sp-add { margin: 0 0 12px; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-people { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.sp-people li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; background: var(--surface); }
.sp-people strong { display: block; }
.sp-people .muted { font-size: 12px; }
.sp-ok { color: var(--ok); font-size: 12.5px; }
.sp-links { display: flex; gap: 2px; }
.share-list li { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.share-people { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--raised); }
.people-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px; }
.people-add .input { height: 34px; background: var(--raised); }
.people-hint { margin: 6px 0 10px; font-size: 12px; }
.people { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.people .person { display: block; padding: 8px 10px; border-radius: 4px; background: var(--raised); }
.person-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.share-list .person-head span.muted, .share-list .person-head span { margin: 0; }
.person-act { display: flex; gap: 2px; }
.person-tracks { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.person-tracks li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 8px; padding: 0; background: none; }
.pt-title { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pt-bar { position: relative; height: 4px; overflow: hidden; border-radius: 2px; background: var(--surface); }
.pt-bar i { display: block; height: 100%; background: var(--text); }
.pt-meta { font-size: 11.5px; white-space: nowrap; }
.people-others { margin: 10px 0 0; font-size: 12px; }
.pr-privacy { margin-top: 4px; color: var(--text-3); font-size: 11px; }
@media (max-width: 640px) { .people-add { grid-template-columns: 1fr; } .person-tracks li { grid-template-columns: minmax(0, 1fr) 60px; } .pt-meta { grid-column: 1 / -1; } }

/* ---------------- client sign-off ---------------- */
.so-chip { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--sel); color: var(--text-2); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.so-chip.is-approved { background: #10351f; color: #6ee7a0; }
.so-chip.is-changes { background: #3a2a0c; color: #f5c86a; }
.so-list { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.so-list li { padding: 8px 10px; border-radius: 4px; background: var(--surface); }
.so-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.so-top .muted { margin-left: auto; font-size: 11px; }
.so-meta { margin: 4px 0 0; font-size: 11.5px; }
.so-note { margin: 6px 0 0; white-space: pre-line; }
.person-signoffs { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.person-signoffs li { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.share-list .person-signoffs li span { display: inline; font-size: 12px; }
.so-box .so-status { margin: 0 0 10px; line-height: 1.5; }
.so-box .so-status.is-approved strong { color: #6ee7a0; }
.so-box .so-status.is-changes strong { color: #f5c86a; }
.so-quote { display: block; margin-top: 6px; padding-left: 8px; color: var(--text-2); white-space: pre-line; box-shadow: inset 2px 0 0 var(--sel); }
.so-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.so-form { display: grid; gap: 10px; }
.so-form .input { width: 100%; box-sizing: border-box; background: var(--raised); }
.so-form textarea.input { min-height: 72px; padding: 8px 10px; }
.so-chip[data-so-row] { border: 0; cursor: pointer; font-family: inherit; }
.so-chip.is-open { background: var(--sel); color: var(--text); }
.presentation .t-sub .so-chip { margin-right: 4px; }

/* ---------------- offline and install ---------------- */
.offline-bar { position: fixed; bottom: calc(var(--player-h) + 8px); left: 50%; z-index: 60; padding: 8px 14px; border-radius: 4px; background: var(--warn); color: #000; font-size: 12.5px; font-weight: 600; transform: translateX(-50%); }
.off-cards { display: grid; gap: 8px; margin: 0 28px 18px; }
.off-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 4px; background: var(--raised); }
.off-card strong { display: block; }
.off-card .muted { font-size: 12px; }
.off-acts { display: flex; gap: 6px; }
.off-empty { max-width: 60ch; margin: 0 28px; color: var(--text-2); }
.set-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.is-offline .top .btn-primary, body.is-offline [data-act="upload"] { opacity: .5; }
@container main (max-width: 640px) { .off-cards, .off-empty { margin: 0 12px 14px; } }

.th-art[data-daw-drag] { cursor: grab; }
.th-art[data-daw-drag]:active { cursor: grabbing; }
.daw-sec em { font-style: normal; color: var(--text); }

/* ---------------- comparison page ---------------- */
.cmp-table th[scope="row"] small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.cmp-table thead a { color: inherit; text-decoration: none; }
.cmp-table thead a:hover { text-decoration: underline; }
.cmp-table td.cmp { text-align: center; font-variant-numeric: tabular-nums; }
.cmp-table td.cmp.is-no, .cmp-table td.cmp.is-maybe { color: var(--text-3); }
.cmp-table .cmp-us { background: var(--sel); }
.cmp-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 6px; color: var(--text-2); font-size: 13px; }
.cmp-key .cmp { display: inline-flex; width: 20px; justify-content: center; vertical-align: -3px; }
.cmp-key svg { width: 16px; height: 16px; }
.cmp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-grid h3 a { text-decoration: none; }
.cmp-grid h3 a:hover { text-decoration: underline; }
@media (max-width: 960px) { .cmp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cmp-grid { grid-template-columns: 1fr; } }

/* ---------------- mastering console: hardware finish ---------------- */
/* A brushed metal front panel with screws, machined dials and recessed sections, in the app's own colours. */
.mm-shell, .mm-pop .mm-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 120px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, rgba(0, 0, 0, .03) 1px 3px),
    linear-gradient(180deg, #191919, #0a0a0a 60%, #101010);
  border: 1px solid #313131;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(0, 0, 0, .8), 0 30px 90px rgba(0, 0, 0, .75);
}
.mm-defs { position: absolute; width: 0; height: 0; }
.mm-screw { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #8e8e8e, #4a4a4a 46%, #232323 78%, #171717); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 -1px 2px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .7); }
.mm-screw::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.6px; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .55)); border-radius: 1px; box-shadow: 0 1px 0 rgba(255, 255, 255, .18); transform: translate(-50%, -50%) rotate(28deg); }
.mm-screw.is-tl { top: 8px; left: 8px; }
.mm-screw.is-tr { top: 8px; right: 8px; }
.mm-screw.is-bl { bottom: 8px; left: 8px; }
.mm-screw.is-br { bottom: 8px; right: 8px; transform: rotate(-40deg); }
.mm-panel, .mm-transport, .mm-bar, .mm-analysis {
  background: linear-gradient(180deg, #1d1d1d, #131313);
  border: 1px solid #2b2b2b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(0, 0, 0, .6);
}
.mm-name, .mm-kicker, .mm-sub, .mm-scale { text-shadow: 0 1px 0 rgba(0, 0, 0, .9); }
.mm-name { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.mm-sub { letter-spacing: .06em; text-transform: uppercase; }
/* dials */
.mk-mark { stroke: #6f6f6f; stroke-width: 1.2; }
.mk-mark.is-major { stroke: #b6b6b6; stroke-width: 1.8; }
.mk-track { stroke: #101010; stroke-width: 3.5; }
.mk-fill { stroke: var(--pink); stroke-width: 3.5; filter: drop-shadow(0 0 3px rgba(255, 94, 156, .45)); }
.mk-shadow { fill: rgba(0, 0, 0, .75); }
.mk-cap { stroke: #0c0c0c; stroke-width: .8; }
.mk-knurl { stroke: rgba(0, 0, 0, .5); stroke-width: 1.2; }
.mk-knurls { opacity: .8; }
.mk-gloss { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2.4; stroke-linecap: round; }
.mk-face { stroke: rgba(255, 255, 255, .10); stroke-width: .8; }
.mk-tick { stroke: #f2f2f2; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .35)); }
.mk-screw { fill: rgba(255, 255, 255, .10); }
.mk-value { color: var(--text); text-shadow: 0 1px 0 rgba(0, 0, 0, .9); }
/* pills, toggles and segments: machined buttons */
.mp, .mm-toggle, .mm-shell .seg-btn, .mm-actions .btn, .mm-transport .icon-btn {
  background: linear-gradient(180deg, #3a3a3a, #202020);
  border: 1px solid #101010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 1px 2px rgba(0, 0, 0, .6);
}
.mp:hover, .mm-shell .seg-btn:hover { background: linear-gradient(180deg, #464646, #262626); }
.mm-shell .seg { background: linear-gradient(180deg, #0c0c0c, #151515); border: 1px solid #262626; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .8); }
.mm-shell .seg-btn.is-on, .mm-toggle.is-on { background: linear-gradient(180deg, #f4f4f4, #cfcfcf); color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 10px rgba(255, 255, 255, .18); }
.mm-actions .btn-primary { background: linear-gradient(180deg, #fff, #d2d2d2); }
/* the bypass lamp */
.mm-bypass { display: inline-flex; align-items: center; gap: 8px; }
.mm-led { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6a2030, #2a0a12 70%); box-shadow: inset 0 0 2px rgba(0, 0, 0, .9); }
.mm-led.is-on { background: radial-gradient(circle at 35% 30%, #ffd0dd, var(--pink) 45%, #7d1338 80%); box-shadow: 0 0 8px 1px rgba(255, 94, 156, .8), inset 0 0 2px rgba(255, 255, 255, .7); }
/* meters and the scrub bar sit in recesses */
.mm-bars span, .mm-scrub { background: linear-gradient(180deg, #060606, #131313); border: 1px solid #262626; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .9); }
.mm-now { text-shadow: 0 0 12px rgba(255, 255, 255, .25); }
.mm-transport .play-big { background: linear-gradient(180deg, #fafafa, #cccccc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(0, 0, 0, .7); }
@media (prefers-reduced-motion: no-preference) { .mm-shell { will-change: auto; } }

.mm-shell .mk-dial:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.mm-panel { padding: 12px 14px; }
.mm-eq .mm-group + .mm-group { position: relative; }
.mm-eq .mm-group + .mm-group::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: -9px; width: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .09), rgba(255, 255, 255, .01)); }

/* ---------------- two-step sign-in and activity ---------------- */
.ts-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.ts-steps li { margin-bottom: 8px; }
.ts-key { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--surface); color: var(--text); font: 600 13.5px/1.4 ui-monospace, monospace; letter-spacing: .06em; }
.rec-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; padding: 12px; border-radius: 4px; background: var(--surface); list-style: none; }
.rec-codes li { font: 600 14px/1.6 ui-monospace, monospace; letter-spacing: .04em; }
.act-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.act-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: var(--surface); }
.act-list svg { width: 15px; height: 15px; color: var(--text-3); }
.act-list .muted { font-size: 11.5px; white-space: nowrap; }
@media (max-width: 520px) { .rec-codes { grid-template-columns: 1fr; } }

/* ---------------- Poppins across the platform ---------------- */
/* Everything uses Poppins now. The mastering console keeps the tighter face it was built around. */
body, input, select, textarea, button { font-family: var(--sans); }
/* The mastering console and the marketing pages keep Schibsted Grotesk. */
.mm-shell, .mm-shell input, .mm-shell select, .mm-shell button,
body.mkt, body.mkt input, body.mkt select, body.mkt textarea, body.mkt button { font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Marketing headings stay on Schibsted Grotesk, which is how these pages have looked all along.
   To put the headlines in Poppins instead, change this one line to: font-family: var(--display); */
body.mkt :is(h1, h2, h3, .mkt-brand, .mkt-calc-in output, .mkt-price strong) { font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
.mm-title { font-family: var(--display); }
h1, h2, h3, .view-title h1, .th-title, .big-stat { letter-spacing: -.012em; }
.t-title, .nav-item .label, .btn, .seg-btn, .tab { letter-spacing: 0; }
.upsell { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.upsell svg { width: 16px; height: 16px; }

/* ---------------- brand banner on share links ---------------- */
.brand-banner { display: grid; place-items: center; aspect-ratio: 16 / 5; overflow: hidden; border-radius: 4px; background: var(--surface); }
.brand-banner img { width: 100%; height: 100%; object-fit: cover; }
.brand-none { padding: 0 16px; text-align: center; }
.pr-banner { position: relative; margin: 0 0 8px; padding: 0; background-position: center; background-size: cover; }
.pr-banner::before { content: ""; display: block; padding-top: 26%; }
.pr-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .55) 62%, var(--surface) 100%); }
.pr-banner-in { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: flex-end; gap: 16px; padding: 0 28px 16px; }
.pr-banner-logo { display: grid; flex: none; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 4px; background: rgba(0, 0, 0, .55); box-shadow: 0 8px 30px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.pr-banner-logo img { max-width: 74px; max-height: 74px; object-fit: contain; }
.pr-banner-text { min-width: 0; padding-bottom: 4px; }
.pr-banner-text h2 { margin: 0; font: 300 30px/1.15 var(--display); text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.pr-banner-text p { margin: 4px 0 0; max-width: 70ch; overflow: hidden; color: var(--text-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .pr-banner::before { padding-top: 42%; }
  .pr-banner-in { padding: 0 14px 12px; gap: 12px; }
  .pr-banner-logo { width: 56px; height: 56px; }
  .pr-banner-logo img { max-width: 48px; max-height: 48px; }
  .pr-banner-text h2 { font-size: 22px; }
}

/* ---------------- full-screen player: the details around the artwork ---------------- */
.stage .stage-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 56px); min-height: 0; padding: 0 clamp(16px, 5vw, 72px); }
.stage-facts { display: grid; align-content: center; gap: 18px; margin: 0; opacity: 0; animation: stage-in .9s var(--ease-smooth) .12s forwards; }
.stage-facts.stage-left { justify-items: end; text-align: right; }
.stage-facts dt { color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.stage-facts dd { margin: 3px 0 0; font: 300 clamp(17px, 2vw, 26px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.stage-facts .stage-right dd { overflow: hidden; text-overflow: ellipsis; }
.stage .stage-art { padding: 0; }
.stage-line { margin: 6px 0 0; color: var(--text-3); font-size: 12px; letter-spacing: .04em; }
@keyframes stage-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage .stage-bottom h2, .stage .stage-bottom .artist { animation: stage-in .9s var(--ease-smooth) both; }
@media (max-width: 1000px) {
  .stage .stage-mid { grid-template-columns: 1fr; gap: 14px; }
  .stage-facts { grid-auto-flow: column; grid-template-columns: none; justify-content: center; gap: 22px; }
  .stage-facts.stage-left { justify-items: center; text-align: center; }
  .stage-facts dd { font-size: 15px; }
  .stage .stage-right { display: none; }
}

/* ---------------- motion: everything settles, nothing snaps ---------------- */
:root { --slide-speed: .62s; --pop-speed: .6s; --ease-smooth: cubic-bezier(.16, 1, .3, 1); }
@keyframes lc-menu { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lc-toast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lc-stage { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes lc-view { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.menu { animation: lc-menu .34s var(--ease-smooth); transform-origin: top center; }
.toast { animation: lc-toast .42s var(--ease-smooth); }
.stage { animation: lc-stage .55s var(--ease-smooth); }
.stage .stage-art > * { animation: lc-stage .8s var(--ease-smooth); }
#main > .view-head, #main > .list, #main .empty, .settings { animation: lc-view .5s var(--ease-smooth); }
.uploads { animation: lc-toast .45s var(--ease-smooth); }
.btn, .icon-btn, .nav-item, .row, .seg-btn, .tab, .mp, .mm-toggle, .tg-head, .so-chip { transition: background-color .28s ease, color .28s ease, opacity .28s ease, box-shadow .28s ease, transform .28s var(--ease-smooth); }
.btn:active, .icon-btn:active, .play-big:active, .mp:active { transform: scale(.97); }
.insp-rail .rail-btn, .set-tab, .mkt-links a { transition: background-color .3s ease, color .3s ease; }
.wave, .rw, .meter i, .pt-bar i, .tg-meter i, .sp-meter i { transition: width .35s var(--ease-smooth); }
.mm-bars i { transition: height .08s linear; } /* meters stay honest: no smoothing on the level */
@media (prefers-reduced-motion: reduce) { .menu, .toast, .stage, .stage .stage-art > *, #main > .view-head, #main > .list, .settings, .uploads, .stage-facts { animation: none !important; } }

.adm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-plan { padding: 16px; border-radius: 4px; background: var(--surface); }
.adm-plan h3 { margin: 0 0 10px; font-size: 16px; }
.adm-plan .field { margin-bottom: 8px; }
.adm-plan .field em { font-style: normal; color: var(--text-3); }
.adm-plan-head { margin: 14px 0 6px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.adm-plan .check { margin-bottom: 4px; font-size: 12.5px; }

/* the console's position bar, drawn as the track's waveform */
.mm-scrub { height: 28px; overflow: hidden; border-radius: 3px; background: linear-gradient(180deg, #090909, #131313); }
.mm-scrub .mm-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-wave-bg { stroke: #4a4a4a; stroke-width: .38; }
.mm-wave-on { stroke: var(--pink); stroke-width: .38; clip-path: inset(0 100% 0 0); }
.mm-scrub i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; height: 100%; background: rgba(255, 255, 255, .06); border-right: 1px solid rgba(255, 255, 255, .55); }
