:root {
  --bg: #060608;
  --bg-2: #0b0b0f;
  --surface: #111116;
  --surface-2: #18181f;
  --line: rgba(212, 175, 55, 0.16);
  --line-2: rgba(212, 175, 55, 0.32);
  --gold: #d4af37;
  --gold-hi: #f3dc94;
  --gold-lo: #9a7623;
  --gold-grad: linear-gradient(135deg, #f7e7ad 0%, #d9b44a 42%, #a47c24 100%);
  --text: #f4efe2;
  --muted: #a39d8d;
  --faint: #6f6a5e;
  --rec: #ff4d4f;
  --ok: #5ccf8f;
  --warn: #f0b44c;
  --radius: 18px;
  --display: "Didot", "Bodoni 72", "Bodoni Moda", "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(212, 175, 55, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.app { min-height: 100dvh; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(6, 6, 8, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--gold-grad); color: #1a1406;
  font: 700 20px/1 var(--display);
  box-shadow: 0 0 0 1px rgba(255, 240, 190, 0.35) inset, 0 6px 18px rgba(212, 175, 55, 0.18);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 15px/1.1 var(--display); letter-spacing: 0.16em; color: var(--gold-hi); white-space: nowrap; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modes { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.modes button {
  border: 0; background: transparent; color: var(--muted);
  min-height: 36px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.modes button[aria-checked="true"] { background: var(--gold-grad); color: #1a1406; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(8, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 8, 11, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; min-width: 0;
}
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45)); }

main { padding: 8px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; outline: none; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; }
  .top { grid-column: 1 / -1; padding: 14px 28px; }
  .nav {
    position: sticky; top: 66px; align-self: start; height: calc(100dvh - 66px);
    grid-template-columns: 1fr; grid-auto-rows: 56px; align-content: start; gap: 4px;
    padding: 20px 14px; border-top: 0; border-right: 1px solid var(--line); background: transparent;
  }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 16px; border-radius: 14px; font-size: 15px; }
  .nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
  main { padding: 18px 36px 64px; max-width: 1180px; margin: 0; width: 100%; }
  .brand-name { font-size: 17px; }
}

/* ---------- type ---------- */
.hero { padding: 18px 2px 8px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
h1 { margin: 0; font: 600 38px/1.05 var(--display); letter-spacing: 0.01em; }
h1 .gold, .gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; max-width: 56ch; }
h2 { margin: 0 0 4px; font: 600 21px/1.2 var(--display); letter-spacing: 0.01em; }
h3 { margin: 0; font-size: 15px; font-weight: 650; }
.sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.approx { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(240, 180, 76, 0.4); vertical-align: middle; }

/* ---------- cards ---------- */
.stack { display: grid; gap: 14px; margin-top: 14px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; min-width: 0;
}
.card.feature { border-color: var(--line-2); box-shadow: 0 20px 60px -30px rgba(212, 175, 55, 0.35); }
.card.quiet { background: transparent; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head > .small { text-align: right; }
@media (min-width: 1100px) {
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .cols > .stack { margin-top: 0; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 650; font-size: 15.5px; letter-spacing: 0.01em; text-decoration: none;
}
.btn:active { transform: scale(0.985); }
.btn.gold { background: var(--gold-grad); color: #1a1406; border-color: transparent; box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.7); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.scale { margin-bottom: 14px; }
.scale-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.scale-head .lbl { font-weight: 650; font-size: 15px; }
.scale-head .hint { font-size: 12px; color: var(--faint); }
.pills { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; }
.pill {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font-weight: 700; font-size: 15px;
}
.pill[aria-pressed="true"] { background: var(--gold-grad); color: #1a1406; border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600;
}
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(212, 175, 55, 0.08); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--line-2) inset; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 6px; color: var(--text); }
label.field > span em { font-style: normal; font-weight: 500; color: var(--faint); }
input[type="text"], input[type="number"], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) 0 var(--p, 0%), #2a2a32 var(--p, 0%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--gold-grad); border: 2px solid #1a1406; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #2a2a32; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); border: 2px solid #1a1406; }

.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- today ---------- */
.suggest-steps { margin: 10px 0 14px; padding-left: 20px; color: var(--text); }
.suggest-steps li { margin: 4px 0; }
.reason { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.reason::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); }

.notbuilt { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notbuilt li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.notbuilt li b { color: var(--text); font-weight: 650; }
.notbuilt li::before { content: "○"; color: var(--faint); }

/* ---------- rep ---------- */
.bpm { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 10px; margin: 6px 0 4px; }
.bpm .num { text-align: center; font: 600 56px/1 var(--display); }
.bpm .num small { display: block; font: 600 11px/1.6 var(--sans); letter-spacing: 0.2em; color: var(--muted); }
.round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 24px; font-weight: 500; color: var(--gold-hi); }
.start-wrap { display: grid; justify-items: center; gap: 12px; padding: 8px 0 4px; }
.start {
  width: 168px; height: 168px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff1c1 0%, #dcb54c 38%, #8e6a1d 100%);
  color: #1a1406; font: 700 22px/1.1 var(--display); letter-spacing: 0.04em;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.08), 0 0 0 22px rgba(212, 175, 55, 0.04), 0 24px 60px -16px rgba(212, 175, 55, 0.6);
}
.start small { display: block; font: 600 11.5px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

.overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center;
  background: radial-gradient(80% 60% at 50% 40%, #16120a 0%, #050506 70%);
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.ov-inner { display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 420px; }
.ov-label { font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ring { position: relative; width: min(78vw, 320px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .count { position: absolute; inset: 0; display: grid; place-items: center; font: 600 clamp(64px, 22vw, 108px)/1 var(--display); }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px var(--gold); transition: transform 60ms linear; }
.recdot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.recdot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- film ---------- */
.wave { position: relative; width: 100%; height: 132px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; touch-action: manipulation; }
.wave canvas { width: 100%; height: 100%; display: block; }
.transport { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; margin-top: 14px; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--gold-grad); color: #1a1406; display: grid; place-items: center; }
.play svg { width: 26px; height: 26px; fill: currentColor; }
.time { font: 600 24px/1 var(--display); }
.time small { color: var(--muted); font: 500 13px var(--sans); margin-left: 4px; }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mark-btn { min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 14.5px; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; }
.mark-btn i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mark-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mark-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.mark-list li span.t { font-family: var(--mono); color: var(--gold-hi); }
.mark-list li button { margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; color: var(--faint); font-size: 20px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--bg-2); padding: 12px 14px; }
.fact .k { font-size: 12px; color: var(--muted); }
.fact .v { font: 600 22px/1.2 var(--display); margin-top: 2px; }
.fact .v small { font: 500 12px var(--sans); color: var(--muted); margin-left: 3px; }

.assign { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: rgba(212, 175, 55, 0.04); }
.assign + .assign { margin-top: 10px; }
.assign p { margin: 6px 0 0; font-size: 14.5px; }
.assign .why { color: var(--muted); font-size: 13px; }

/* ---------- ladder ---------- */
.ladder { display: grid; gap: 8px; }
.rung { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; min-height: 64px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; color: var(--text); width: 100%; }
.rung .n { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 600 22px var(--display); background: var(--bg); color: var(--muted); }
.rung .nm { font-weight: 700; font-size: 15px; }
.rung .ln { font-size: 13px; color: var(--muted); }
.rung.steady { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.rung.steady .n { background: var(--gold-grad); color: #1a1406; }
.chart { width: 100%; height: auto; display: block; }
details.lib { border-top: 1px solid var(--line); padding: 10px 0; }
details.lib summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 650; list-style: none; }
details.lib summary::-webkit-details-marker { display: none; }
details.lib summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 20px; }
details.lib[open] summary::after { content: "–"; }
.drill { padding: 8px 0 8px 12px; border-left: 2px solid var(--line-2); margin: 6px 0; }
.drill p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- mix ---------- */
.anchors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.anchor { text-align: left; padding: 12px; min-height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.anchor b { display: block; font-size: 13.5px; }
.anchor span { display: block; font-size: 12px; color: var(--muted); }
.anchor .lufs { font-family: var(--mono); color: var(--gold-hi); font-size: 12px; margin-top: 4px; }
.anchor[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(212, 175, 55, 0.07); }
.feel { padding: 12px 0; border-top: 1px solid var(--line); }
.feel:first-of-type { border-top: 0; }
.feel-head { display: flex; justify-content: space-between; align-items: baseline; }
.feel-head b { font: 600 18px var(--display); letter-spacing: 0.01em; }
.feel-head output { font-family: var(--mono); color: var(--gold-hi); font-size: 14px; min-width: 3ch; text-align: right; }
.feel .line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.feel .line:empty { display: none; }
.feel .canon { font-size: 12.5px; color: var(--faint); font-style: italic; margin-top: 2px; }
.ab { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.ab .seg { grid-column: 1 / -1; }
.match { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.match b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.sticky-transport { position: sticky; top: 66px; z-index: 10; }
@media (max-width: 959px) { .sticky-transport { top: 62px; } }
.moves { width: 100%; border-collapse: collapse; font-size: 13px; }
.moves td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.moves td:first-child { color: var(--gold-hi); white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.moves td:last-child { color: var(--muted); }
.knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.knobs label { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.knobs input { min-height: 44px; font-family: var(--mono); font-size: 14px; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.version { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
.version.current { border-color: var(--gold); }
.version .vh { display: flex; align-items: center; gap: 8px; }
.version .vh b { font-size: 14.5px; }
.status { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status.approved { color: var(--ok); border-color: rgba(92, 207, 143, 0.5); }
.status.rejected { color: #ff8a8a; border-color: rgba(255, 120, 120, 0.4); }
.status.original { color: var(--gold-hi); }
.version .vb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; }
.check input { width: 24px; height: 24px; accent-color: var(--gold); margin: 2px 0 0; }
.check .m { font-size: 12.5px; color: var(--muted); }
.check.auto .tick { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; font-weight: 800; border: 1px solid var(--line-2); color: var(--faint); }
.check.auto.pass .tick { background: var(--ok); color: #04170c; border-color: transparent; }
.done { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(92, 207, 143, 0.08); border: 1px solid rgba(92, 207, 143, 0.4); color: var(--text); font-size: 14.5px; }
.warnbox { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(240, 180, 76, 0.4); background: rgba(240, 180, 76, 0.07); font-size: 13.5px; }

/* ---------- receipts ---------- */
.rc { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.rc summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.rc summary::-webkit-details-marker { display: none; }
.kind { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(212, 175, 55, 0.12); color: var(--gold-hi); }
.rc .when { font-size: 12px; color: var(--faint); justify-self: end; }
.rc .sum { grid-column: 1 / -1; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.rc pre { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .glyph { font: 600 44px var(--display); color: var(--gold); opacity: 0.6; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #1d1a12; border: 1px solid var(--line-2); color: var(--text); font-size: 14px; transition: all 200ms ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ================= SESSION (multitrack) ================= */
main.wide { max-width: none; }
@media (min-width: 960px) { main.wide { max-width: none; padding-right: 28px; } }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.between-btn { justify-content: space-between; gap: 12px; }
.grow { flex: 1; }
.phone-only { display: none; }
@media (max-width: 767px) { .wide-only { display: none !important; } .phone-only { display: inline-flex; } }

.slots { display: grid; gap: 8px; }
@media (min-width: 768px) { .slots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; min-height: 64px; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.slot .sn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 22px var(--display); background: var(--bg); color: var(--muted); }
.slot.filled { border-color: var(--line-2); }
.slot.filled .sn { background: var(--gold-grad); color: #1a1406; }
.slot .si { display: grid; min-width: 0; }
.slot .si b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ses { display: grid; gap: 12px; padding-top: 10px; }
.ses-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.ses-name { font: 600 22px/1.2 var(--display) !important; min-height: 46px !important; padding: 8px 12px !important; background: transparent !important; border-color: transparent !important; min-width: 0; }
.ses-name:focus { border-color: var(--gold) !important; }
.ses-meta { display: flex; gap: 8px; }
.ses-intent { grid-column: 1 / -1; margin: 0; }
label.mini { display: grid; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
label.mini input, label.mini select { min-height: 40px; padding: 6px 8px; width: 74px; font-family: var(--mono); font-size: 15px; }
@media (max-width: 767px) {
  .ses-head { grid-template-columns: 1fr auto; }
  .ses-head > .btn { grid-column: 1 / -1; justify-self: start; }
  .ses-name { font-size: 20px !important; padding-left: 4px !important; }
}

/* transport */
.tbar { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(12, 12, 16, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 15; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8); }
.tb { flex: none; min-width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--gold-hi); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; padding: 0 10px; }
.tb svg { width: 22px; height: 22px; fill: currentColor; }
.tb.play { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-grad); color: #1a1406; border: 0; }
.tb.play svg { width: 28px; height: 28px; }
.tb.rec { color: var(--rec); }
.tb.rec[aria-pressed="true"] { background: var(--rec); color: #fff; box-shadow: 0 0 20px rgba(255, 77, 79, 0.6); }
.tb.tog[aria-pressed="true"] { background: rgba(212, 175, 55, 0.14); border-color: var(--gold); color: var(--gold-hi); }
.tb.tog { color: var(--muted); }
.tb[disabled] { opacity: 0.35; }
.tbar.recording { border-color: var(--rec); }
.tclock { display: grid; min-width: 0; flex: 1; text-align: center; }
.tclock b { font: 600 24px/1 var(--mono); color: var(--text); letter-spacing: -0.02em; }
.tclock small { font: 500 12px var(--mono); color: var(--muted); margin-top: 3px; }
@media (min-width: 768px) {
  .tbar { position: sticky; top: 70px; }
  .tclock { flex: 0 0 auto; min-width: 120px; }
}
@media (max-width: 767px) {
  body.in-session main { padding-bottom: calc(var(--nav-h) + 112px + env(safe-area-inset-bottom)); }
  .tbar { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); gap: 6px; padding: 8px; justify-content: space-between; }
  .tb { min-width: 48px; height: 56px; padding: 0 8px; }
  .tb.play { width: 68px; height: 68px; }
  .tclock b { font-size: 19px; }
  .toast { bottom: calc(var(--nav-h) + 104px + env(safe-area-inset-bottom)); }
}

.ses-tabs { position: relative; }
@media (min-width: 768px) { .ses-tabs { display: none; } }
@media (max-width: 767px) { .ses[data-tab="arrange"] .pane:not([data-pane="arrange"]), .ses[data-tab="mix"] .pane:not([data-pane="mix"]), .ses[data-tab="takes"] .pane:not([data-pane="takes"]), .ses[data-tab="bounce"] .pane:not([data-pane="bounce"]) { display: none; } }
.ses-grid { display: grid; gap: 12px; min-width: 0; }
.ses-grid > * { min-width: 0; }
.pane.nb { display: block; }
@media (min-width: 768px) { .ses-grid { grid-template-columns: 1fr 1fr; } .ses-grid .arrange, .ses-grid .mixer { grid-column: 1 / -1; } .ses-grid .nb { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .ses-grid { grid-template-columns: 1.25fr 1fr 1fr; } .ses-grid .inserts { grid-row: span 2; } }
.busy { margin: 0; }

/* arrange */
.arr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.arr-tools select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.arr { display: grid; grid-template-columns: var(--headw) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.arr-heads { border-right: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.ruler-spacer { height: 44px; display: flex; align-items: flex-end; padding: 0 10px 6px; border-bottom: 1px solid var(--line); }
.thead { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.thead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); opacity: 0.85; }
.thead.sel { background: rgba(212, 175, 55, 0.08); }
.thead .tn { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbtns { display: flex; gap: 5px; }
.tbn { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 12.5px; padding: 0; }
.tbn[aria-pressed="true"] { background: var(--gold); color: #1a1406; border-color: transparent; }
.tbn.arm[aria-pressed="true"] { background: var(--rec); color: #fff; }
@media (max-width: 767px) { .tbn { width: 36px; height: 34px; } .thead { padding-left: 11px; } }
.arr-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; min-width: 0; scrollbar-color: var(--gold-lo) transparent; }
.arr-inner { position: relative; min-width: 100%; }
.ruler { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(to right, rgba(212, 175, 55, 0.35) 1px, transparent 1px) 0 0 / var(--bar) 12px repeat-x, var(--bg-2); cursor: pointer; touch-action: pan-x; }
.ruler .bl { position: absolute; top: 2px; padding-left: 4px; font: 600 11px var(--mono); color: var(--muted); }
.secband { position: absolute; bottom: 3px; height: 16px; padding: 0 6px; border-radius: 4px; background: rgba(127, 183, 255, 0.16); border: 1px solid rgba(127, 183, 255, 0.35); color: #cfe2ff; font-size: 10.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.loopband { position: absolute; top: 16px; height: 8px; border-radius: 3px; background: rgba(212, 175, 55, 0.18); border: 1px solid rgba(212, 175, 55, 0.35); }
.loopband.on { background: rgba(212, 175, 55, 0.5); border-color: var(--gold); }
.loopband b { position: absolute; top: -8px; width: 22px; height: 24px; cursor: ew-resize; touch-action: none; }
.loopband b::after { content: ""; position: absolute; top: 4px; left: 8px; width: 6px; height: 16px; border-radius: 3px; background: var(--gold-hi); }
.loopband b[data-h="ls"] { left: -11px; }
.loopband b[data-h="le"] { right: -11px; }
.lane { position: relative; border-bottom: 1px solid var(--line); background:
  linear-gradient(to right, rgba(212, 175, 55, 0.14) 1px, transparent 1px) 0 0 / var(--bar) 100%,
  linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / var(--beat) 100%; }
.lane.sel { background-color: rgba(212, 175, 55, 0.035); }
.clip { position: absolute; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--c) 16%, #0d0d12); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); cursor: grab; touch-action: pan-x pan-y; }
.clip canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.clip .cname { position: absolute; left: 6px; top: 3px; right: 6px; font-size: 10.5px; font-weight: 700; color: var(--text); text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.clip.dim { opacity: 0.38; }
.clip.take .sounding { position: absolute; bottom: 0; height: 3px; background: var(--gold-hi); pointer-events: none; }
.clip.sel { border: 2px solid var(--gold-hi); box-shadow: 0 0 0 1px #000, 0 0 16px rgba(243, 220, 148, 0.35); touch-action: none; z-index: 2; cursor: move; }
.clip .h { position: absolute; top: 0; bottom: 0; width: 16px; cursor: ew-resize; touch-action: none; }
.clip .h::after { content: ""; position: absolute; top: 50%; width: 4px; height: 22px; margin-top: -11px; border-radius: 2px; background: var(--gold-hi); }
.clip .hl { left: 0; } .clip .hl::after { left: 3px; }
.clip .hr { right: 0; } .clip .hr::after { right: 3px; }
.clip .f { position: absolute; top: 0; width: 18px; height: 18px; background: var(--gold-hi); cursor: ew-resize; touch-action: none; }
.clip .fi { left: 14px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.clip .fo { right: 14px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
@media (pointer: coarse) { .clip .h { width: 24px; } .clip .f { width: 24px; height: 24px; } .clip .fi { left: 22px; } .clip .fo { right: 22px; } }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--gold-hi); box-shadow: 0 0 10px rgba(243, 220, 148, 0.7); pointer-events: none; z-index: 5; will-change: transform; }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--gold-hi); border-bottom: 0; }
.hint-line { margin: 10px 0 0; }
.rec-note { border-color: rgba(255, 77, 79, 0.5); background: rgba(255, 77, 79, 0.08); margin: 0 0 10px; }

.clipbar { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(212, 175, 55, 0.04); display: grid; gap: 10px; }
.cb-title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.cb-title b { font-size: 15px; }
.cb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.stepper { display: grid; grid-template-columns: 1fr 40px auto 40px; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.stepper .lbl { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.stepper output { font: 600 13px var(--mono); color: var(--gold-hi); text-align: center; min-width: 64px; }
.stepper .btn.sm { min-height: 40px; padding: 0; width: 40px; font-size: 18px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); padding: 6px 0; }
kbd { font: 600 11.5px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--gold-hi); }

/* mixer */
.mix-row { display: grid; gap: 14px; }
@media (min-width: 1100px) { .mix-row { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.strips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; min-width: 0; overscroll-behavior-x: contain; }
.strip { flex: 0 0 104px; display: grid; gap: 6px; justify-items: center; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); border-top: 3px solid var(--c); }
.strip.sel { border-color: var(--gold); border-top-color: var(--c); box-shadow: 0 0 0 1px var(--gold) inset; }
.sname { width: 100%; min-height: 36px; border: 0; background: transparent; font-size: 12.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.fwrap { display: flex; gap: 8px; align-items: stretch; height: 150px; }
.smeter { width: 8px; border-radius: 4px; background: #1d1d24; position: relative; overflow: hidden; }
.smeter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(to top, var(--ok), var(--gold) 75%, var(--rec)); }
input[type="range"].vfader { writing-mode: vertical-lr; direction: rtl; width: 36px; height: 150px; }
input[type="range"].vfader::-webkit-slider-runnable-track { width: 6px; height: auto; background: linear-gradient(0deg, var(--gold) 0 var(--p, 0%), #2a2a32 var(--p, 0%) 100%); }
input[type="range"].vfader::-webkit-slider-thumb { margin-top: 0; margin-left: -11px; width: 28px; height: 18px; border-radius: 6px; }
.strip output { font: 600 12px var(--mono); color: var(--gold-hi); }
label.pan { display: grid; gap: 2px; width: 100%; font-size: 11.5px; color: var(--muted); font-weight: 650; }
label.pan span { font-family: var(--mono); color: var(--gold-hi); font-weight: 600; }
.ms { display: flex; gap: 4px; }
.master { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); min-width: 0; }
.master .mt { font: 600 18px var(--display); color: var(--gold-hi); }
.meter-row { display: grid; grid-template-columns: 96px 1fr 92px; gap: 8px; align-items: center; }
.meter-row .lbl { font-size: 12px; font-weight: 700; color: var(--text); }
.meter-row .lbl .approx { margin-left: 0; display: block; width: fit-content; margin-top: 2px; }
.meter-row output { font: 600 12.5px var(--mono); color: var(--gold-hi); text-align: right; }
.meter-row output.hot { color: var(--rec); }
.hbar { height: 10px; border-radius: 5px; background: #1d1d24; overflow: hidden; }
.hbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--gold) 80%, var(--rec)); }
.hbar.lufs i { background: linear-gradient(90deg, #7fb7ff, var(--gold)); }
.check.limit { border: 0; padding: 4px 0; }
.buses { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.buses label.mini select { width: 140px; }

/* inserts */
.feelstrip .feel { padding: 8px 0; }
.feelstrip .feel-head b { font-size: 16px; }
.note { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line-2); }
.knobs4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; padding: 4px 0 6px; }
.band { display: grid; gap: 2px; }
.band b { font-size: 13px; color: var(--gold-hi); }
label.knob { display: grid; font-size: 12px; color: var(--muted); font-weight: 650; }
label.knob output { font-family: var(--mono); color: var(--text); font-weight: 600; margin-left: 4px; }
details.lib summary .approx { margin-left: 8px; }
.onstrip { display: grid; gap: 2px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.onstrip .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* takes */
.secs { display: grid; gap: 6px; }
.secrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 0 4px 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.secrow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secrow .btn.sm { width: 40px; padding: 0; }
.comprow { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.comprow .lbl { font-size: 13px; font-weight: 650; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .comprow { grid-template-columns: 92px 1fr; } }

/* fixes after looking at the proof screens */
.arr-tools .tg { display: flex; gap: 8px; align-items: center; }
.arr-tools .tg-r { margin-left: auto; }
.arr-tools .tg-r .btn.sm.ghost { width: 44px; padding: 0; font-size: 18px; }
@media (max-width: 767px) {
  .ses-head { grid-template-columns: 1fr; }
  .ses-meta { justify-content: flex-start; }
  .arr-tools .tg-r { margin-left: 0; width: 100%; justify-content: space-between; }
  .arr-tools .tg-r .btn.sm.ghost { width: 56px; min-height: 44px; }
  .thead { justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
  .thead .tn { font-size: 12.5px; }
  .tbtns { gap: 4px; }
  .tbn { width: 32px; height: 36px; flex: none; }
}
@media (min-width: 1280px) { .ses-grid .nb { grid-column: 2 / -1; } }

/* ---- Spoken Creative Control + DNA (v0.3) ---- */
.spoken textarea { width: 100%; min-height: 64px; resize: vertical; font: inherit; font-size: 16px; color: var(--gold-hi); font-style: italic; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.spoken .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.xlate { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.xg { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xg b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hi); }
.xg span { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.35; }
.spoken .why { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.spoken .why li { margin: 4px 0; }
.ai-label { margin: 12px 0 0; font-size: 12.5px; color: #c9b8ff; border: 1px solid rgba(160, 130, 255, 0.4); border-radius: 10px; padding: 6px 10px; background: rgba(120, 90, 255, 0.08); }
.dnalist { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.dnalist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dnalist li .small { grid-column: 1; overflow-wrap: anywhere; }
.dnalist li .btn { grid-column: 2; grid-row: 1 / span 2; }
.knobs select { width: 100%; }

/* ---------- 2026-11-01: Passport chip, Finish, Lab, sections, presets, coach ---------- */
.top-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.passchip { flex: none; min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--gold-hi); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.passchip[data-tier="founder"], .passchip[data-tier="pass"] { background: var(--gold-grad); color: #1a1406; border-color: transparent; }
@media (max-width: 440px) {
  .top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .brand { gap: 7px; } .mark { width: 32px; height: 32px; font-size: 18px; }
  .brand-sub { display: none; } .brand-name { font-size: 12.5px; letter-spacing: 0.08em; }
  .top-r { gap: 6px; } .modes button { padding: 0 7px; font-size: 12px; min-height: 32px; }
  .passchip { padding: 0 8px; font-size: 11.5px; min-height: 32px; }
}
@media (max-width: 959px) {
  .nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(60px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tiers li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.tiers li.on { color: var(--text); }
.tiers .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12px; }
.tiers li.on .tick { background: var(--ok); color: #04170c; border-color: transparent; }
.tiers em { color: var(--warn); font-style: normal; font-size: 12.5px; }
.labgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.labimg { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); min-width: 0; }
.labimg img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.labimg figcaption { padding: 8px 10px 10px; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.labimg .ai-label { margin: 0; font-size: 11px; padding: 3px 7px; }
.batch { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bsong { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg-2); min-width: 0; }
.bsong.done { border-color: rgba(92, 207, 143, 0.35); }
.bsong.rendering { border-color: var(--gold); }
.bsong.error { border-color: rgba(255, 120, 120, 0.5); }
.qc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.qc li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.qc li span { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: var(--ok); color: #04170c; }
.qc li.fail span { background: var(--warn); }
.qc em { color: var(--muted); font-style: normal; font-size: 12px; flex-basis: 100%; padding-left: 26px; }
.seclist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.seclist li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.seclist li.editing { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.seclist li.playing b { color: var(--gold-hi); }
.seclist .small { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; }
.secbar { position: relative; height: 18px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.secbar i { position: absolute; top: 0; bottom: 0; background: rgba(212, 175, 55, 0.35); border-left: 1px solid var(--gold); }
.secbar i.own { background: rgba(212, 175, 55, 0.6); }
.secbar b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.editing-banner { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.presets { display: grid; gap: 8px; }
.preset { text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.preset[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.preset span { color: var(--muted); font-size: 12.5px; }
.chainline { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.chainline span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.voicebtn[aria-pressed="true"] { background: var(--rec); color: #fff; border-color: transparent; }
.bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.bands div { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; min-width: 0; }
.bands b { display: block; font-size: 15px; }
.words { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; max-height: 220px; overflow: auto; overflow-wrap: anywhere; }
.words .fill { color: var(--warn); text-decoration: underline dotted; }
.lab-play{position:fixed;inset:0;z-index:999;background:#000;display:grid;place-items:center;gap:10px;padding:20px}
.lab-play img{max-width:min(96vw,1200px);max-height:72vh;border-radius:12px;background:#fff}
.lab-play .lab-cap{color:#fff;font-size:20px;text-align:center;max-width:900px;margin:0}
.lab-play [data-stop]{position:absolute;top:16px;right:16px}
