/* Oscillihue — Lightbrush design system; AVRender remains the internal engine. */

:root {
  --primary: #14d7f2;
  --primary-bright: #06fbfc;
  --secondary: #6366f1;
  --warn: #ff914d;
  --bg-void: #020408;
  --bg-space: #050810;
  --bg-panel: #060d18;
  --bg-elevated: #0c1a2e;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --font-display: 'Rajdhani', 'Space Grotesk', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg-void); }
body {
  margin: 0;
  padding: 16px 20px 60px;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(20, 215, 242, 0.06), transparent 60%),
    var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 100vh;
}
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.dim { color: var(--muted); }
.warn-text { color: var(--warn); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--primary); }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

/* ---------------------------------------------------------- glass panel */
.glass-panel {
  position: relative;
  background: rgba(6, 13, 24, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(20, 215, 242, 0.18);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(2, 4, 8, 0.5),
    0 0 0 1px rgba(20, 215, 242, 0.08);
  overflow: hidden;
}
.glass-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(20,215,242,0) 10%,
    rgba(20,215,242,0.5) 50%, rgba(20,215,242,0) 90%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.glass-panel::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glass-panel--modal {
  background: rgba(2, 4, 8, 0.88);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border-color: rgba(20, 215, 242, 0.24);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-panel { background: rgba(6, 13, 24, 0.95); }
  .glass-panel--modal { background: rgba(2, 4, 8, 0.97); }
}

/* ------------------------------------------------------------ pulse dot */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #14d7f2;
  box-shadow: 0 0 8px #14d7f2, 0 0 16px rgba(20, 215, 242, 0.5);
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}
.pulse-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(20, 215, 242, 0.6);
  animation: pulse-expand 1.8s ease-out infinite;
}
@keyframes pulse-expand {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-dot[data-state="warn"] { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pulse-dot[data-state="warn"]::after { border-color: rgba(255, 145, 77, 0.6); }
.pulse-dot[data-state="idle"] { background: rgba(148, 163, 184, 0.6); box-shadow: none; }
.pulse-dot[data-state="idle"]::after { display: none; }

/* --------------------------------------------------------------- topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(20, 215, 242, 0.45);
}
.wordmark b { color: var(--text); font-weight: 700; }
.wordmark-tm {
  margin-left: 0.12em;
  color: var(--text);
  font: 600 0.42em var(--font-sans);
  letter-spacing: 0;
  vertical-align: super;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.live-badge {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px;
  border: 1px solid rgba(20, 215, 242, 0.15);
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.scan-line {
  flex: 1;
  font-size: 0.74rem;
  color: var(--primary);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scan-line::after { content: '▊'; animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 10px; }
.roadmap-link {
  padding: 6px 10px;
  border: 1px solid rgba(20, 215, 242, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.roadmap-link:hover { color: var(--primary-bright); border-color: rgba(20, 215, 242, 0.46); }
.climate-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(167, 243, 107, 0.24);
  border-radius: 999px;
  color: #b9f886;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}
.climate-chip i { width: 6px; height: 6px; border-radius: 50%; background: #a7f36b; box-shadow: 0 0 10px rgba(167, 243, 107, 0.7); }
.climate-chip:hover { border-color: rgba(167, 243, 107, 0.52); color: #dcffc2; }
.connection-status {
  position: sticky;
  top: 82px;
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 8px auto 0;
  padding: 7px 10px 7px 13px;
  border: 1px solid rgba(240, 173, 78, 0.46);
  border-radius: 999px;
  background: rgba(20, 13, 8, 0.96);
  color: #ffd18c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.66rem;
}
.connection-status.hidden { display: none; }
.connection-status button {
  border: 0;
  border-left: 1px solid rgba(240, 173, 78, 0.3);
  padding: 2px 0 2px 10px;
  background: transparent;
  color: #fff1d8;
  font: inherit;
  cursor: pointer;
}
.credit-badge {
  font-size: 0.78rem;
  color: var(--primary-bright);
  border: 1px solid rgba(6, 251, 252, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  text-shadow: 0 0 10px rgba(6, 251, 252, 0.4);
  white-space: nowrap;
}

.cta {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--bg-void);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 0 16px rgba(20, 215, 242, 0.25);
  transition: box-shadow 200ms, transform 200ms;
  text-decoration: none;
  display: inline-block;
}
.cta:hover { box-shadow: 0 0 28px rgba(20, 215, 242, 0.5); transform: translateY(-1px); }
.cta:disabled { opacity: 0.45; cursor: default; box-shadow: none; transform: none; }
.cta--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(20, 215, 242, 0.35);
  box-shadow: none;
}
.cta--ghost:hover { box-shadow: 0 0 16px rgba(20, 215, 242, 0.25); }

/* -------------------------------------------------------------- stepper */
.stepper {
  display: flex;
  margin: 14px 0 20px;
  padding: 6px;
  gap: 4px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: default;
  transition: color 200ms, background 200ms;
}
.step i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
}
.step.on {
  color: var(--primary);
  background: rgba(20, 215, 242, 0.07);
  text-shadow: 0 0 12px rgba(20, 215, 242, 0.4);
}
.step.on i { border-color: var(--primary); box-shadow: 0 0 10px rgba(20, 215, 242, 0.35); }
.step.done { color: var(--text); }
.step.done i { border-color: rgba(6, 251, 252, 0.5); color: var(--primary-bright); }
.step:disabled:not(.on):not(.done) { opacity: 0.48; }
.project-library-error { color: #f0ad4e; line-height: 1.5; }
.project-library-owner { margin-top: 5px; font-size: 0.63rem; line-height: 1.45; }

/* --------------------------------------------------------------- stages */
.stage { margin-top: 6px; }
.stage-h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 3px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}
.pfunk-kicker {
  color: var(--primary);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------- upload */
.upload-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.15fr);
  gap: 16px;
  align-items: stretch;
}
.source-panel {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.source-mode-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.source-mode-head .dim { font-size: 0.62rem; }
.source-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: rgba(2, 4, 8, 0.56);
}
.source-mode {
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 600 0.62rem var(--font-mono);
  letter-spacing: 0.08em;
  transition: color 160ms, border-color 160ms, background 160ms;
}
.source-mode:hover { color: var(--text); border-color: rgba(20, 215, 242, 0.18); }
.source-mode.on {
  color: var(--primary-bright);
  border-color: rgba(20, 215, 242, 0.4);
  background: rgba(20, 215, 242, 0.09);
  box-shadow: 0 0 18px rgba(20, 215, 242, 0.08) inset;
}
.source-pane {
  min-height: 232px;
  flex: 1;
}
.dropzone {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 232px;
  cursor: pointer;
  border: 1px dashed rgba(20, 215, 242, 0.3);
  border-radius: 9px;
  border-color: rgba(20, 215, 242, 0.3);
  transition: border-color 200ms, box-shadow 200ms;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--primary);
  box-shadow: 0 0 34px rgba(20, 215, 242, 0.18), 0 0 0 1px rgba(20, 215, 242, 0.2);
}
.dropzone.has-file { border-style: solid; border-color: rgba(6, 251, 252, 0.5); }
.dz-inner { text-align: center; padding: 30px; }
.dz-glyph {
  font-size: 2.6rem;
  color: var(--primary);
  text-shadow: 0 0 26px rgba(20, 215, 242, 0.6);
  margin-bottom: 10px;
}
.dz-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
}
.dz-sub { color: var(--muted); font-size: 0.68rem; margin-top: 6px; letter-spacing: 0.06em; }
.dz-file {
  margin-top: 16px;
  color: var(--primary-bright);
  font-size: 0.74rem;
  border: 1px solid rgba(6, 251, 252, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  display: inline-block;
}
.record-copy { text-align: center; }
#micSourcePanel {
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 10px 8px 4px;
}
#micSourcePanel:not(.hidden) { display: grid; }
.record-iris {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--primary-bright);
}
.record-iris::before,
.record-iris i {
  content: '';
  position: absolute;
  border: 1px solid rgba(20, 215, 242, 0.42);
  border-radius: 50%;
}
.record-iris::before { inset: 20px; background: rgba(20, 215, 242, 0.08); }
.record-iris i:first-child { inset: 9px; }
.record-iris i:nth-child(2) { inset: 0; border-color: rgba(20, 215, 242, 0.18); }
.record-iris span { position: relative; font-size: 0.72rem; text-shadow: 0 0 14px currentColor; }
.record-iris.is-live { color: var(--warn); }
.record-iris.is-live::before,
.record-iris.is-live i { border-color: rgba(255, 145, 77, 0.58); }
.record-iris.is-live i:first-child { animation: record-iris-pulse 1.35s ease-out infinite; }
.record-iris.is-live i:nth-child(2) { animation: record-iris-pulse 1.35s 0.28s ease-out infinite; }
@keyframes record-iris-pulse {
  0% { transform: scale(0.72); opacity: 0.95; }
  100% { transform: scale(1.2); opacity: 0.05; }
}
.record-clock {
  color: var(--warn);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.record-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.record-stop { border-color: rgba(255, 145, 77, 0.7); color: #ffd7c2; }
.record-review { width: min(100%, 390px); display: grid; gap: 5px; }
.record-review audio { width: 100%; height: 36px; }
.record-review .dim { font-size: 0.62rem; }
.record-privacy { max-width: 420px; color: var(--muted); font-size: 0.58rem; line-height: 1.45; }
.source-none {
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 12px 18px;
}
.source-none:not(.hidden) { display: grid; }
.source-none p { max-width: 410px; margin: 2px 0 10px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.source-none-glyph { margin: 0; }
.visual-duration { width: min(220px, 100%); text-align: left; }
.visual-duration input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  background: rgba(2, 4, 8, 0.65);
  color: var(--text);
  font: 500 0.82rem var(--font-mono);
}
.source-none .dim { font-size: 0.59rem; line-height: 1.45; }
.source-output-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
}
.source-output-controls legend { padding: 0 5px; }
.source-check {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 7px;
  background: rgba(2, 4, 8, 0.32);
  cursor: pointer;
}
.source-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--primary); }
.source-check b,
.source-check small { display: block; }
.source-check b { color: var(--text); font: 600 0.63rem var(--font-mono); letter-spacing: 0.06em; }
.source-check small { margin-top: 3px; color: var(--muted); font-size: 0.62rem; line-height: 1.35; }
.source-check:has(input:disabled) { cursor: default; opacity: 0.48; }
.source-output-note { grid-column: 1 / -1; font-size: 0.58rem; line-height: 1.4; }
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preset-start-panel { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.preset-start-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.starter-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.starter-controls .ctl { min-width: 0; }
.starter-controls__wide { grid-column: 1 / -1; }
.starter-controls__lane { grid-column: 1 / -1; }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idea-foot .dim { font-size: 0.66rem; }
.form-error { color: var(--warn); font-size: 0.7rem; }
.lane-disabled-note {
  margin-top: 6px;
  font-size: 0.58rem;
  line-height: 1.35;
}
.project-library {
  margin-top: 16px;
  padding: 16px;
}
.project-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.project-library-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 0.96rem;
  letter-spacing: 0;
}
.project-library-list {
  display: grid;
  gap: 8px;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
}
.project-row:hover {
  border-color: rgba(20, 215, 242, 0.34);
  background: rgba(20, 215, 242, 0.07);
}
.project-row b,
.project-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-trigger {
  min-width: 44px; min-height: 36px; padding: 6px 11px;
  border: 1px solid rgba(20, 215, 242, 0.35); border-radius: 999px;
  background: transparent; color: var(--primary); font-family: var(--font-head);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; white-space: nowrap;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: rgba(20, 215, 242, 0.09); }
.account-trigger--signed {
  width: 38px; min-width: 38px; padding: 0; background: rgba(20, 215, 242, 0.12);
  color: var(--primary-bright); font-family: var(--font-mono); font-size: 0.82rem;
}
.account-trigger--signed img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.account-menu {
  position: fixed; top: 76px; right: 20px; z-index: 70;
  width: min(300px, calc(100vw - 24px)); padding: 8px; background: rgba(4, 9, 17, 0.98);
}
.account-menu-profile { padding: 8px 10px 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.account-menu-profile b, .account-menu-profile span { display: block; min-width: 0; overflow-wrap: anywhere; }
.account-menu-profile b { margin-bottom: 3px; font-family: var(--font-head); }
.account-menu-profile span, .account-menu-balance { color: var(--muted); font-size: 0.64rem; }
.account-menu-balance { padding: 9px 10px 6px; color: var(--primary); }
.account-menu button {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text); font-family: var(--font-mono);
  font-size: 0.65rem; text-align: left;
}
.account-menu button:hover, .account-menu button:focus-visible { background: rgba(20, 215, 242, 0.08); color: var(--primary); }
.project-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 0;
  background: transparent;
  text-align: left;
}
.project-rename {
  align-self: center;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(20, 215, 242, 0.24);
  border-radius: 5px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}
.project-row b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--text);
}
.project-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}
.project-row em {
  color: var(--primary);
  font-style: normal;
  font-size: 0.62rem;
  white-space: nowrap;
}

/* -------------------------------------------------------------- analyze */
.analyze-panel { padding: 18px; }
.analyze-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.analyze-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 3px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.analyze-meta { color: var(--muted); font-size: 0.68rem; text-align: right; }
.beat-canvas {
  width: 100%;
  height: 180px;
  display: block;
  background:
    linear-gradient(180deg, rgba(20, 215, 242, 0.03), transparent 40%),
    var(--bg-space);
  border: 1px solid rgba(20, 215, 242, 0.14);
  border-radius: 8px;
}
.analyze-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.stat {
  border: 1px solid rgba(20, 215, 242, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(20, 215, 242, 0.06), rgba(99, 102, 241, 0.04));
  padding: 9px 10px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat b { display: block; margin-top: 4px; color: var(--primary); font-size: 1rem; }
.psi-warn {
  grid-column: 1 / -1;
  color: var(--warn);
  font-size: 0.68rem;
  border: 1px solid rgba(255, 145, 77, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
}
.analyze-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.analyze-foot .dim { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; }

/* ------------------------------------------------------------- concepts */
.concepts-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.concepts-hint { font-size: 0.68rem; text-align: right; }
.library-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.library-filter button {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.78);
  color: rgba(226, 232, 240, 0.78);
  padding: 6px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.library-filter button:hover,
.library-filter button.on {
  border-color: rgba(20, 215, 242, 0.58);
  color: var(--primary);
  background: rgba(20, 215, 242, 0.08);
}
.library-filter b { color: rgba(226, 232, 240, 0.58); font-weight: 600; }
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.persp-tile { perspective: 1000px; transition: transform 400ms cubic-bezier(0.33, 1, 0.68, 1); }
.persp-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(20, 215, 242, 0.3),
    0 16px 40px rgba(2, 4, 8, 0.55),
    0 0 32px rgba(20, 215, 242, 0.12);
}
.concept-card {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.concept-card.is-selected {
  border-color: rgba(20, 215, 242, 0.55);
  box-shadow:
    0 0 0 1px rgba(20, 215, 242, 0.16),
    0 0 22px rgba(20, 215, 242, 0.12);
}
.concept-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slot-chip {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  border: 1px solid rgba(20, 215, 242, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
}
.preset-chip {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 2px 9px;
  text-transform: uppercase;
}
.concept-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}
.concept-card.is-selected .concept-title { color: var(--primary); }
.concept-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  min-height: 2.1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.concept-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.concept-card:not(.tune-card) .concept-meta span:nth-child(n+4) { display: none; }
.concept-meta span {
  border: 1px solid rgba(20, 215, 242, 0.16);
  border-radius: 999px;
  padding: 3px 7px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.58rem;
}

.swatch-row { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 0.62rem; }
.swatch-label {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatch {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  display: inline-block;
  padding: 0;
  background: none;
}
.swatch--edit { cursor: pointer; -webkit-appearance: none; appearance: none; overflow: hidden; }
.swatch--edit::-webkit-color-swatch-wrapper { padding: 0; }
.swatch--edit::-webkit-color-swatch { border: 0; border-radius: 5px; }
.lock-note { font-size: 0.58rem; letter-spacing: 0.08em; }

/* preview slot inside card */
.preview-slot {
  position: relative;
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 8px;
  background: var(--bg-space);
  overflow: hidden;
}
.library-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #02030a;
  cursor: pointer;
}
.library-thumb .option-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 0;
}
.library-thumb-label {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(4, 8, 18, 0.74);
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}
.preview-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px 16px;
}
.preview-video,
.preview-image { width: 100%; aspect-ratio: 16/9; display: block; background: #000; object-fit: contain; }
.preview-carousel { position: relative; background: #000; }
.preview-zoom {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: #000;
  cursor: zoom-in;
}
.preview-nav {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  width: 30px;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(4, 8, 18, 0.72);
  color: var(--text);
  cursor: pointer;
}
.preview-nav--prev { left: 8px; }
.preview-nav--next { right: 8px; }
.preview-count {
  position: absolute;
  right: 8px;
  bottom: 47px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(4, 8, 18, 0.76);
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.58rem;
}
.preview-audit {
  position: absolute;
  left: 8px;
  bottom: 47px;
  z-index: 2;
  max-width: calc(100% - 82px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(4, 8, 18, 0.78);
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.55rem;
}
.preview-stale {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(242, 166, 35, 0.35);
  border-radius: 4px;
  background: rgba(18, 10, 2, 0.82);
  color: #ffd36b;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-align: center;
}
.preview-progress .preview-audit {
  position: static;
  max-width: 100%;
  margin-top: 8px;
}
.preview-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  background: rgba(4, 8, 18, 0.92);
}
.preview-thumbs button {
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.preview-thumbs button.on { border-color: var(--primary); }
.preview-thumbs img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.88);
}
.preview-lightbox.hidden { display: none; }
.preview-lightbox img {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  border: 1px solid rgba(20, 215, 242, 0.24);
  background: #000;
}
.preview-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: 50%;
  background: rgba(4, 8, 18, 0.9);
  color: var(--text);
  cursor: pointer;
}
.preview-progress { position: relative; padding: 12px 14px; }
.delivery-video { width: 100%; max-height: 62vh; display: block; background: #000; border-radius: 8px; border: 1px solid rgba(20, 215, 242, 0.2); }

.status-ring {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #14d7f2 0%,
    #14d7f2 calc(var(--progress, 0) * 100%),
    rgba(20, 215, 242, 0.12) calc(var(--progress, 0) * 100%));
  -webkit-mask: radial-gradient(circle at center, transparent 45%, #000 48%);
  mask: radial-gradient(circle at center, transparent 45%, #000 48%);
}
.status-ring--big { width: 44px; height: 44px; top: 16px; right: 16px; }
.live-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.live-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(20, 215, 242, 0.12);
  overflow: hidden;
  margin: 8px 0 7px;
}
.live-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  box-shadow: 0 0 10px rgba(20, 215, 242, 0.7);
  transition: width 1.2s ease;
}
.live-nums {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.live-nums .hot { color: var(--primary); }

/* style controls */
.controls-box { border-top: 1px solid rgba(20, 215, 242, 0.1); padding-top: 6px; }
.controls-box summary {
  cursor: pointer;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 5px 0;
  user-select: none;
  list-style-position: inside;
}
.controls-box summary:hover { color: var(--primary); }
.ctl-grid { display: flex; flex-direction: column; gap: 11px; padding: 8px 2px 4px; }
.ctl { display: flex; flex-direction: column; gap: 5px; }
.ctl--row { flex-direction: row; align-items: center; gap: 9px; }
.ctl-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.ctl-label em { font-style: normal; color: var(--primary); }
.ctl-ends { display: flex; justify-content: space-between; font-size: 0.56rem; color: rgba(148, 163, 184, 0.55); }
.ctl-ends i { font-style: normal; }
.ctl input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(20, 215, 242, 0.15);
  outline: none;
}
.ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(20, 215, 242, 0.7);
  cursor: pointer;
}
.ctl input[type="range"]:disabled { opacity: 0.35; }
.ctl input[type="range"]:disabled::-webkit-slider-thumb { background: var(--muted); box-shadow: none; }
.ctl input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; flex: 0 0 auto; }
.select {
  font-size: 0.72rem;
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid rgba(20, 215, 242, 0.18);
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  max-width: 100%;
}
.select:focus { border-color: rgba(20, 215, 242, 0.5); box-shadow: 0 0 12px rgba(20, 215, 242, 0.15); }
.select--state { display: none; }
.option-strip,
.recipe-atlas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 8px;
}
.recipe-atlas {
  max-height: 328px;
  overflow-y: auto;
  padding-right: 2px;
}
.palette-strip {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
}
.material-strip {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.visual-option {
  --a: #050813;
  --b: #14d7f2;
  --c: #b66cff;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(7, 11, 22, 0.72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.visual-option:hover {
  border-color: rgba(20, 215, 242, 0.38);
  background: rgba(10, 18, 34, 0.88);
}
.visual-option.is-selected {
  border-color: rgba(20, 215, 242, 0.85);
  box-shadow: 0 0 0 1px rgba(20, 215, 242, 0.2), 0 0 18px rgba(20, 215, 242, 0.12);
}
.option-thumb {
  position: relative;
  width: 54px;
  height: 38px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.15);
  background: radial-gradient(circle at 30% 35%, var(--b), transparent 32%),
    radial-gradient(circle at 68% 58%, var(--c), transparent 34%),
    linear-gradient(135deg, var(--a), #02030a);
}
.option-thumb::before,
.option-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.8;
}
.option-thumb--look::before {
  background: linear-gradient(90deg, transparent 0 17%, var(--b) 18% 20%, transparent 21% 47%, var(--c) 48% 50%, transparent 51%),
    radial-gradient(circle at 50% 56%, transparent 0 24%, rgba(255,255,255,0.22) 25% 27%, transparent 28%);
}
.option-thumb--glyph::before {
  background: repeating-linear-gradient(60deg, transparent 0 7px, var(--b) 8px 9px, transparent 10px 14px),
    repeating-linear-gradient(120deg, transparent 0 9px, var(--c) 10px 11px, transparent 12px 17px);
}
.option-thumb--aperture::before {
  background: radial-gradient(circle at 50% 50%, #000 0 14%, var(--c) 15% 18%, transparent 19%),
    repeating-conic-gradient(from 8deg, var(--b) 0 7deg, transparent 8deg 18deg);
}
.option-thumb--reliquary::before {
  clip-path: polygon(50% 4%, 82% 24%, 74% 92%, 26% 92%, 18% 24%);
  background: linear-gradient(180deg, var(--c), transparent 26%),
    repeating-linear-gradient(90deg, var(--b) 0 2px, transparent 3px 9px);
}
.option-thumb--organic::before {
  background: radial-gradient(ellipse at 38% 50%, var(--b) 0 20%, transparent 21%),
    radial-gradient(ellipse at 62% 50%, var(--c) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at 48% 50%, transparent 0 5px, rgba(255,255,255,0.22) 6px 7px);
}
.option-thumb--crystal::before {
  background: conic-gradient(from 20deg at 50% 50%, var(--b), #fff, var(--c), var(--b));
  clip-path: polygon(48% 0, 92% 30%, 74% 100%, 22% 88%, 8% 28%);
}
.option-thumb--stage::before {
  background: conic-gradient(from 180deg at 50% 0%, var(--b) 0 10deg, transparent 11deg 28deg, var(--c) 29deg 40deg, transparent 41deg 70deg),
    radial-gradient(ellipse at 50% 92%, var(--b) 0 24%, transparent 25%);
}
.option-thumb--surface::before {
  background: repeating-radial-gradient(circle at 30% 60%, var(--b) 0 2px, transparent 3px 9px),
    repeating-linear-gradient(115deg, transparent 0 8px, var(--c) 9px 10px);
}
.option-thumb--palette {
  background:
    linear-gradient(90deg, var(--a) 0 33%, var(--b) 33% 66%, var(--c) 66% 100%),
    #02030a;
}
.option-thumb--palette::before {
  background:
    radial-gradient(circle at 28% 50%, rgba(255,255,255,0.16) 0 18%, transparent 19%),
    radial-gradient(circle at 72% 50%, rgba(255,255,255,0.18) 0 18%, transparent 19%);
  mix-blend-mode: screen;
}
.option-thumb--material {
  background:
    radial-gradient(circle at 35% 40%, var(--b), transparent 28%),
    linear-gradient(135deg, var(--a), #03040a 48%, var(--c));
}
.option-thumb--material::before {
  background:
    repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,0.24) 8px 9px, transparent 10px 16px),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.22) 0 18%, transparent 19%);
  opacity: 0.55;
}
.option-thumb--image {
  background: #02030a;
}
.option-thumb--image::before,
.option-thumb--image::after {
  display: none;
}
.option-thumb--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.option-thumb--missing {
  background: #050812;
}
.option-thumb--missing::before {
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(226, 232, 240, 0.28) 47% 53%, transparent 54%),
    linear-gradient(45deg, transparent 0 46%, rgba(226, 232, 240, 0.22) 47% 53%, transparent 54%);
  opacity: 0.65;
}
.option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.option-text b {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.option-text small {
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.58rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.option-swatches {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}
.option-swatches i {
  width: 18px;
  height: 4px;
  border-radius: 2px;
}
.option-tags {
  grid-column: 2;
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.52rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sig-row { flex-wrap: wrap; }
.sig-row .dim { font-size: 0.6rem; }
.sig-btn { font-size: 0.66rem; }
.ctl-saved { font-size: 0.62rem; color: var(--primary); opacity: 0; transition: opacity 300ms; min-height: 1em; }
.ctl-saved.show { opacity: 0.9; }

.concept-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.concept-actions .cta { width: 100%; min-width: 0; text-align: center; }
.concept-actions [data-pick] {
  grid-column: 1 / -1;
  min-height: 40px;
  order: 10;
}
.concept-card:not(.tune-card) .concept-actions .cta {
  padding: 8px 7px;
  font-size: 0.66rem;
}
.library-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
}

.superflow-catalog {
  margin: 0 0 24px;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(20, 215, 242, 0.15);
}
.superflow-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.superflow-catalog-head h3 { margin: 2px 0 0; font-family: var(--font-display); letter-spacing: 0.08em; }
.superflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.superflow-card { overflow: hidden; padding: 0; min-width: 0; }
.superflow-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid rgba(20, 215, 242, 0.16);
  padding: 0;
  background: #020408;
  color: var(--muted);
  cursor: zoom-in;
}
.superflow-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.superflow-preview--missing { display: grid; place-items: center; cursor: default; font-size: 0.62rem; }
.superflow-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.superflow-card-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--primary); font-size: 0.56rem; letter-spacing: 0.09em; }
.superflow-card-kicker i { color: var(--muted); font-style: normal; text-align: right; }
.superflow-card h4 { margin: 0; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.superflow-card p { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.superflow-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.superflow-card-variations { display: flex; flex-wrap: wrap; gap: 6px; }
.superflow-variation-chip { background: transparent; border-style: solid; }
.superflow-variation-chip.is-active { color: var(--primary); border-color: rgba(20, 215, 242, 0.55); }
.superflow-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; color: rgba(226, 232, 240, 0.62); font-size: 0.55rem; }
.superflow-card-foot .cta { flex: 0 0 auto; padding: 7px 9px; font-size: 0.58rem; }
.superflow-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 215, 242, 0.1);
}
.media-unavailable {
  display: grid;
  min-height: 100px;
  place-items: center;
  padding: 16px;
  border: 1px dashed rgba(240, 173, 78, 0.44);
  border-radius: 7px;
  background: rgba(18, 10, 7, 0.82);
  color: #ffd18c;
  line-height: 1.5;
  text-align: center;
}
.superflow-actions .cta {
  width: 100%;
  min-width: 0;
  padding: 8px 5px;
  font-size: 0.58rem;
  text-align: center;
}
.credit-action-note {
  grid-column: 1 / -1;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: left;
}

@media (max-width: 640px) {
  .superflow-catalog-head { align-items: flex-start; flex-direction: column; }
  .concept-actions { grid-template-columns: 1fr; }
  .concept-actions [data-pick] { grid-column: 1; }
}

.render-choice {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(88px, 0.7fr);
  gap: 8px;
  align-items: end;
  border-top: 1px solid rgba(20, 215, 242, 0.1);
  padding-top: 9px;
}
.render-choice--final {
  grid-template-columns: minmax(170px, 1.2fr) minmax(110px, 0.6fr) minmax(120px, 0.7fr);
  margin-bottom: 14px;
}
.tier-note {
  grid-column: 1 / -1;
  min-height: 1em;
  font-size: 0.62rem;
  line-height: 1.35;
}

/* ---------------------------------------------------------------- final */
.final-panel { padding: 20px; }
.engine-lanes {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 215, 242, 0.12);
  color: var(--muted);
  font-size: 0.62rem;
}
.engine-lane { display: inline-flex; align-items: center; gap: 7px; }
.engine-lane i { width: 7px; height: 7px; border-radius: 50%; background: #56616a; }
.engine-lane i[data-state="ready"] { background: #e0a33a; box-shadow: 0 0 8px rgba(224, 163, 58, 0.6); }
.engine-lane i[data-state="live"] { background: var(--primary); box-shadow: 0 0 8px rgba(20, 215, 242, 0.7); }
.final-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.final-facts {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 14px;
}
.render-risk-notice {
  border: 1px solid rgba(255, 174, 66, 0.5);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 120, 30, 0.12), rgba(255, 45, 155, 0.06));
  color: rgba(255, 244, 224, 0.92);
}
.render-risk-notice__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.render-risk-badge {
  border: 1px solid rgba(255, 188, 76, 0.75);
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffd48a;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.render-risk-notice p {
  margin: 0 0 7px;
  font-size: 0.72rem;
  line-height: 1.45;
}
.render-risk-reasons,
.render-risk-credits {
  color: rgba(255, 226, 181, 0.78);
  font-size: 0.58rem;
  line-height: 1.45;
}
.render-risk-credits { margin-top: 4px; color: #ffd48a; }
.final-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.final-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
/* Entitlement hard-block upgrade prompt (no auto-downgrade — the user chooses). */
.upgrade-prompt { padding: 14px 16px; margin: 10px 0; border: 1px solid var(--warn, #f0a000); border-radius: 10px; }
.upgrade-prompt__head { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 6px; }
.upgrade-prompt__msg { margin: 0 0 6px; }
.upgrade-prompt__guide { margin: 4px 0 8px; }
.upgrade-prompt__actions { margin-top: 8px; }
.final-live {
  position: relative;
  padding: 16px 18px;
  margin-top: 12px;
  border-color: rgba(20, 215, 242, 0.4);
  animation: card-pulse 2.4s ease-in-out infinite;
}
@keyframes card-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(20, 215, 242, 0); }
  50% { box-shadow: 0 0 22px rgba(20, 215, 242, 0.28); }
}
.final-live-note { margin-top: 10px; font-size: 0.62rem; }
.delivery { margin-top: 14px; }
.delivery-actions { display: flex; gap: 10px; margin: 14px 0 8px; flex-wrap: wrap; }
.delivery-note { font-size: 0.64rem; }
.hot { color: var(--primary); }
.render-library {
  margin-top: 16px;
  border-top: 1px solid rgba(20, 215, 242, 0.14);
  padding-top: 14px;
}
.render-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.render-library-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0;
}
.render-library-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.render-library-tools {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
}
.render-clip-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.render-clip-filters button,
.render-clip-rating {
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 6px;
  background: rgba(2, 4, 8, 0.54);
  color: rgba(226, 232, 240, 0.76);
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.62rem;
  cursor: pointer;
}
.render-clip-filters button:hover,
.render-clip-filters button.on,
.render-clip-favorite.on,
.render-clip-rating.on {
  border-color: rgba(20, 215, 242, 0.56);
  color: var(--primary);
  background: rgba(20, 215, 242, 0.09);
}
.render-clip-filters b {
  color: rgba(226, 232, 240, 0.55);
  font-weight: 600;
}
.render-clip-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.render-clip-rating {
  width: 28px;
  padding: 0;
}
.render-library-empty-filter {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.28);
}
.auto-vj-plan {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(20, 215, 242, 0.16);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.42);
}
.auto-vj-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.auto-vj-warnings {
  margin-bottom: 8px;
  font-size: 0.62rem;
}
.auto-vj-timeline {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}
.auto-vj-segment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.auto-vj-segment b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auto-vj-segment em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.62rem;
}
.timeline-editor {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.34);
}
.timeline-editor-head,
.timeline-editor-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-plan-select {
  width: min(280px, 100%);
}
.timeline-editor-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.timeline-ruler {
  position: relative;
  height: 18px;
  margin: 8px 0 4px 104px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.56rem;
}
.timeline-ruler span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.timeline-lane {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  margin-top: 6px;
}
.timeline-lane-label {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.6rem;
  text-align: right;
}
.timeline-lane-track {
  position: relative;
  height: 34px;
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(20, 215, 242, 0.10) 1px, transparent 1px) 0 0 / 25% 100%,
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
}
.timeline-segment {
  position: absolute;
  top: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 36px;
  padding: 0 7px;
  border: 1px solid rgba(20, 215, 242, 0.36);
  border-radius: 5px;
  background: rgba(20, 215, 242, 0.14);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}
.timeline-segment--peak,
.timeline-segment--high {
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(245, 158, 11, 0.14);
}
.timeline-segment--quiet,
.timeline-segment--low {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
}
.timeline-segment b,
.timeline-segment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-segment b { font-size: 0.62rem; }
.timeline-segment span { color: rgba(226, 232, 240, 0.72); font-size: 0.52rem; }
.timeline-empty {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 10px;
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.6rem;
}
.timeline-note {
  margin: 8px 0 0 104px;
  font-size: 0.58rem;
}
.render-list {
  display: grid;
  gap: 10px;
}
.render-library-item {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.36);
}
.render-library-media video,
.render-library-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px solid rgba(20, 215, 242, 0.18);
  background: #000;
}
.render-library-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}
.render-library-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.render-library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.render-library-title b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.render-library-title span,
.render-library-meta {
  font-size: 0.62rem;
}
.render-library-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- overlays */
.overlay {
  position: fixed; inset: 0;
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* --------------------------------------------------------------- account */
.auth-panel {
  position: relative; z-index: 101; width: min(460px, 95vw);
  max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 24px 24px;
}
.auth-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.auth-head .detail-close { min-width: 44px; min-height: 44px; }
.auth-copy h2 {
  margin: 5px 0 8px; font-family: var(--font-display); font-size: 1.7rem;
  letter-spacing: 0.04em; line-height: 1.05;
}
.auth-copy p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.auth-copy p b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.auth-copy--center { padding: 22px 0 12px; text-align: center; }
.auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 10px 16px;
  border: 1px solid #c8cdd4; border-radius: 8px; background: #fff; color: #1f1f1f;
  font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 600;
}
.auth-provider:hover { background: #f7f8f9; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28); }
.auth-provider:disabled { opacity: 0.62; cursor: wait; }
.auth-google-mark { width: 20px; height: 20px; flex: 0 0 auto; }
.auth-divider { position: relative; margin: 18px 0; color: var(--muted); font-size: 0.62rem; text-align: center; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(148, 163, 184, 0.18); }
.auth-divider span { position: relative; padding: 0 10px; background: var(--bg-space); }
.auth-email-form { display: grid; gap: 9px; }
.auth-email-form label { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; }
.auth-email-form input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 7px;
  background: rgba(2, 4, 8, 0.72); color: var(--text); font: 0.82rem var(--font-mono);
}
.auth-email-form input[aria-invalid="true"] { border-color: var(--warn); }
.auth-email-form .cta { width: 100%; min-height: 46px; margin-top: 5px; }
.auth-legal { margin: 16px 0 0; color: var(--muted); font-size: 0.57rem; line-height: 1.5; text-align: center; }
.auth-error {
  margin: -5px 0 14px; padding: 10px 12px;
  border: 1px solid rgba(255, 145, 77, 0.36); border-radius: 7px;
  background: rgba(255, 145, 77, 0.08); color: #ffc09b; font-size: 0.68rem; line-height: 1.5;
}
.auth-sent {
  padding: 13px; border: 1px solid rgba(20, 215, 242, 0.18); border-radius: 7px;
  background: rgba(20, 215, 242, 0.05); color: var(--muted); font-size: 0.66rem; line-height: 1.6;
}
.auth-secondary-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.auth-text-button { min-height: 40px; border: 0; background: transparent; color: var(--primary); font-size: 0.7rem; }
.auth-status { min-height: 1em; margin-top: 8px; color: var(--muted); font-size: 0.6rem; text-align: center; }
.auth-spinner {
  width: 38px; height: 38px; margin: 0 auto 18px;
  border: 2px solid rgba(20, 215, 242, 0.18); border-top-color: var(--primary);
  border-radius: 50%; animation: auth-spin 800ms linear infinite;
}
.auth-success-mark {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 18px;
  border: 1px solid rgba(20, 215, 242, 0.5); border-radius: 50%; color: var(--primary-bright);
  font-size: 1.3rem; box-shadow: 0 0 20px rgba(20, 215, 242, 0.2);
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.tune-overlay {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background: rgba(2, 4, 8, 0.72);
}
.tune-panel {
  position: relative;
  z-index: 101;
  margin-left: auto;
  width: min(1040px, 96vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(6, 13, 24, 0.98);
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow:
    -24px 0 70px rgba(2, 4, 8, 0.72),
    0 0 0 1px rgba(20, 215, 242, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tune-panel::after {
  z-index: 0;
}
.tune-head,
.tune-body {
  position: relative;
  z-index: 1;
}
.tune-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(20, 215, 242, 0.14);
}
.tune-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0;
}
.tune-body {
  overflow-y: auto;
  padding: 14px 18px 18px;
}
.tune-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
}
.tune-card .preview-slot { width: 100%; }
.tune-card .concept-title {
  font-size: 1.15rem;
}
.tune-card .concept-desc {
  display: block;
  min-height: 0;
  overflow: visible;
}
.tune-card .controls-box {
  border: 1px solid rgba(20, 215, 242, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(4, 8, 18, 0.34);
}
.tune-card .ctl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tune-card .ctl:has(.option-strip),
.tune-card .ctl:has(.recipe-atlas),
.tune-card .sig-row,
.tune-card .ctl-saved {
  grid-column: 1 / -1;
}
.tune-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 10px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(6, 13, 24, 0.96) 32%);
}
.detail-close {
  background: none; border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px; color: var(--muted); padding: 6px 11px;
}
.detail-close:hover { color: var(--text); border-color: rgba(20, 215, 242, 0.4); }
.wordmark-sm {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.18em; color: var(--primary);
  text-shadow: 0 0 14px rgba(20, 215, 242, 0.4);
}

/* pay modal */
.pay-panel { width: min(720px, 95vw); max-height: calc(100dvh - 20px); overflow-y: auto; padding: 20px 24px 24px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pay-balance { color: var(--muted); font-size: 0.72rem; margin-bottom: 16px; }
.render-calculator { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.render-calculator h3 { margin: 0 0 12px; }
.render-calculator__inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.render-calculator__inputs label { display: grid; gap: 6px; font-size: .65rem; color: var(--muted); }
.render-calculator__result { margin-top: 12px; color: var(--cyan); line-height: 1.5; }
.render-calculator p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
@media (max-width: 600px) { .render-calculator__inputs { grid-template-columns: 1fr; } }
.pay-grid {
  margin-bottom: 16px;
}
.pay-grid h3 { margin: 14px 0 9px; font-size: .82rem; }
.pay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.pay-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  background: linear-gradient(150deg, var(--bg-panel) 0%, var(--bg-space) 100%);
  border: 1px solid rgba(20, 215, 242, 0.16);
  border-radius: 10px;
  padding: 16px 12px;
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}
.pay-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(20, 215, 242, 0.2);
}
.pay-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.pay-credits {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 16px rgba(20, 215, 242, 0.4);
}
.pay-credits i {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 5px;
  text-shadow: none;
}
.pay-price { color: var(--text); font-size: 0.82rem; }
.pay-features {
  display: grid;
  gap: 5px;
  width: 100%;
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.35;
  text-align: left;
}
.pay-features i { display: block; font-style: normal; }
.pay-features i::before { content: "✓ "; color: var(--primary); }
.pay-cta {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--bg-void);
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  border-radius: 6px;
  padding: 5px 14px;
}
.pay-note { color: var(--muted); font-size: 0.64rem; line-height: 1.6; }
.pay-climate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid rgba(167, 243, 107, 0.22);
  color: #a9bbb1;
  font-size: 0.6rem;
  line-height: 1.5;
}
.pay-climate i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #a7f36b; box-shadow: 0 0 10px rgba(167, 243, 107, 0.6); }
.pay-climate strong { color: #b9f886; white-space: nowrap; }

/* ---------------------------------------------------- product / roadmap */
.site-support {
  max-width: 1440px;
  margin: 110px auto 0;
  border-top: 1px solid rgba(20, 215, 242, 0.18);
}
#aboutOscillihue,
#publicRoadmap,
#climateCommitment { scroll-margin-top: 96px; }
.product-manifest,
.public-roadmap { padding: 78px clamp(24px, 5vw, 76px); }
.support-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.75fr);
  gap: 8vw;
  align-items: end;
  margin-bottom: 48px;
}
.support-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 6.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.support-head h2 em { color: transparent; -webkit-text-stroke: 1px var(--primary); font-style: normal; }
.support-head > p { margin: 0; color: #b8c7cc; font: 400 1rem/1.7 var(--font-head); }
.product-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(148, 163, 184, 0.2); }
.product-proof-grid article { min-height: 176px; padding: 25px 24px 22px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.product-proof-grid article:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid rgba(148, 163, 184, 0.2); }
.product-proof-grid span { color: var(--primary); font-size: 0.58rem; }
.product-proof-grid h3 { margin: 28px 0 10px; font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.02em; }
.product-proof-grid p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.public-roadmap { position: relative; border-top: 1px solid rgba(20, 215, 242, 0.16); background: rgba(3, 8, 15, 0.72); overflow: hidden; }
.public-roadmap::before { content: 'V1 / V2 / V3'; position: absolute; right: -0.04em; top: 8px; color: rgba(226, 232, 240, 0.025); font: 700 12vw/1 var(--font-display); letter-spacing: -0.06em; pointer-events: none; }
.support-head--roadmap { position: relative; z-index: 1; align-items: center; }
.support-head--roadmap > .cta { justify-self: end; text-decoration: none; }
.roadmap-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roadmap-rail::before { content: ''; position: absolute; top: 11px; left: 6px; right: 6px; height: 1px; background: linear-gradient(90deg, var(--primary), #806dff 52%, #ffa24a); }
.roadmap-stop { position: relative; padding: 44px 32px 20px 0; }
.roadmap-stop + .roadmap-stop { padding-left: 32px; border-left: 1px solid rgba(148, 163, 184, 0.18); }
.roadmap-stop::before { content: ''; position: absolute; top: 6px; left: 0; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; background: var(--bg-void); box-shadow: 0 0 12px currentColor; }
.roadmap-stop + .roadmap-stop::before { left: 32px; }
.roadmap-stop--v1 { color: var(--primary); }
.roadmap-stop--v2 { color: #9a89ff; }
.roadmap-stop--v3 { color: #ffa24a; }
.roadmap-stop header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.roadmap-stop header span { font-size: 0.54rem; letter-spacing: 0.12em; }
.roadmap-stop header b { font: 700 2.8rem/0.8 var(--font-display); }
.roadmap-stop h3 { margin: 34px 0 12px; color: var(--text); font: 650 1.1rem var(--font-head); }
.roadmap-stop p { min-height: 76px; margin: 0 0 22px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.roadmap-stop small { color: currentColor; font-size: 0.52rem; letter-spacing: 0.11em; }
.site-climate {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 58px clamp(24px, 5vw, 76px);
  border-top: 1px solid rgba(167, 243, 107, 0.26);
  border-bottom: 1px solid rgba(167, 243, 107, 0.2);
  background: radial-gradient(circle at 18% 50%, rgba(167, 243, 107, 0.09), transparent 24%), #030806;
}
.climate-mark { position: relative; display: grid; place-items: center; width: 138px; height: 138px; border: 1px solid rgba(167, 243, 107, 0.5); border-radius: 50%; color: #b9f886; }
.climate-mark::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(167, 243, 107, 0.16); border-radius: inherit; }
.climate-mark span { font: 700 3rem var(--font-display); letter-spacing: -0.05em; }
.climate-mark i { position: absolute; right: 4px; top: 36px; width: 8px; height: 8px; border-radius: 50%; background: #a7f36b; box-shadow: 0 0 12px #a7f36b; }
.climate-message h2 { margin: 8px 0 13px; color: var(--text); font: 700 clamp(2rem, 3.6vw, 4.2rem)/0.88 var(--font-display); letter-spacing: -0.04em; }
.climate-message p { max-width: 780px; margin: 0 0 10px; color: #bdccc3; font-size: 0.82rem; line-height: 1.6; }
.climate-message small { color: #7f9587; font-size: 0.52rem; line-height: 1.5; letter-spacing: 0.08em; }
.climate-learn { color: #b9f886; font-size: 0.6rem; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px solid rgba(167, 243, 107, 0.4); padding-bottom: 5px; white-space: nowrap; }

/* --------------------------------------------------------------- footer */
.site-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  text-align: center;
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.site-foot a { color: rgba(185, 248, 134, 0.72); text-decoration: none; }

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; display: none; }
  .record-iris.is-live i { animation: none; }
  .scan-line::after { animation: none; }
  .final-live { animation: none; }
  .auth-spinner { animation: none; border-color: var(--primary); }
  .persp-tile, .persp-tile:hover { transform: none; transition: none; }
  .live-bar > i { transition: none; }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .scan-line { order: 5; flex-basis: 100%; }
  .stepper { flex-wrap: wrap; }
  .step { flex-basis: 32%; }
  .upload-layout { grid-template-columns: 1fr; }
  .starter-controls { grid-template-columns: 1fr; }
  .starter-controls__wide { grid-column: auto; }
  .starter-controls__lane { grid-column: auto; }
  .project-row { grid-template-columns: 1fr; }
  .analyze-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .render-choice, .render-choice--final { grid-template-columns: 1fr; }
  .tune-panel { width: 100vw; height: 100dvh; }
  .tune-card .ctl-grid { grid-template-columns: 1fr; }
  .final-pricing { grid-template-columns: 1fr; }
  .render-library-item { grid-template-columns: 1fr; }
  .render-library-head,
  .auto-vj-plan-head { align-items: flex-start; flex-direction: column; }
  .render-library-head-actions { justify-content: flex-start; }
  .auto-vj-segment { grid-template-columns: 28px minmax(0, 1fr); }
  .auto-vj-segment em { grid-column: 2; }
  .timeline-ruler { margin-left: 0; }
  .timeline-lane { grid-template-columns: 1fr; gap: 4px; }
  .timeline-lane-label { text-align: left; }
  .timeline-note { margin-left: 0; }
  .concepts-head, .analyze-head, .final-head { flex-direction: column; align-items: start; }
  .concepts-hint, .analyze-meta { text-align: left; }
  .glass-panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 13, 24, 0.92); }
  .support-head { grid-template-columns: 1fr; gap: 24px; }
  .support-head--roadmap > .cta { justify-self: start; }
  .product-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-proof-grid article:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .product-proof-grid article:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(148, 163, 184, 0.2); }
  .roadmap-rail { grid-template-columns: 1fr; }
  .roadmap-rail::before { top: 4px; bottom: 4px; left: 5px; right: auto; width: 1px; height: auto; }
  .roadmap-stop, .roadmap-stop + .roadmap-stop { padding: 25px 0 28px 30px; border-left: 0; }
  .roadmap-stop::before, .roadmap-stop + .roadmap-stop::before { top: 0; left: 0; }
  .roadmap-stop p { min-height: 0; }
  .site-climate { grid-template-columns: auto 1fr; }
  .climate-learn { grid-column: 2; justify-self: start; }
}

@media (max-width: 430px) {
  body { padding: 10px 10px 40px; overflow-x: hidden; }
  .topbar { top: 6px; padding: 10px; gap: 8px; }
  .brand, .scan-line, .topbar-actions, .upload-layout > *, .starter-controls > *,
  .project-row, .project-open, .engine-lane { min-width: 0; max-width: 100%; }
  .brand-sub, .scan-line { display: none; }
  .wordmark { font-size: 1.25rem; }
  .live-badge { margin-left: auto; }
  .climate-chip { order: 4; width: 100%; justify-content: center; min-height: 34px; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 6px; }
  .account-trigger { min-height: 44px; }
  .account-menu { right: 10px; left: 10px; width: auto; }
  .account-menu button { min-height: 44px; }
  .overlay { padding: 10px; }
  .auth-panel { width: 100%; max-height: calc(100dvh - 20px); padding: 18px 16px 20px; }
  .auth-copy h2 { font-size: 1.45rem; }
  .auth-secondary-actions { align-items: stretch; flex-direction: column; }
  .auth-secondary-actions .cta, .auth-text-button { width: 100%; min-height: 44px; }
  .credit-badge { padding-inline: 8px; }
  .topbar-actions > .cta { padding-inline: 10px; }
  .stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .step { min-width: 0; min-height: 44px; letter-spacing: 0.04em; }
  .step i { display: none; }
  .source-panel { padding: 10px; }
  .source-mode-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .source-mode-switch { grid-template-columns: 1fr; }
  .source-mode { min-height: 44px; }
  .source-pane, .dropzone { min-height: 210px; }
  .dropzone { padding: 18px 12px; }
  .source-output-controls { grid-template-columns: 1fr; }
  .source-output-note { grid-column: auto; }
  .record-actions, .record-actions .cta { width: 100%; }
  .dz-sub, .idea-foot, .engine-lane { white-space: normal; overflow-wrap: anywhere; }
  .idea-foot { align-items: stretch; flex-direction: column; }
  .idea-foot .cta { width: 100%; min-height: 44px; }
  .select, select { width: 100%; max-width: 100%; min-height: 44px; }
  .project-library { padding: 12px; }
  .project-library-head { align-items: flex-start; }
  .project-open { grid-template-columns: 1fr; }
  .project-row b, .project-row span { white-space: normal; overflow-wrap: anywhere; }
  .project-rename { min-height: 44px; }
  .engine-lanes { display: grid; font-size: 0.71rem; line-height: 1.4; }
  .cta { min-height: 44px; }
  .site-support { margin-top: 70px; }
  #aboutOscillihue,
  #publicRoadmap,
  #climateCommitment { scroll-margin-top: 170px; }
  .product-manifest, .public-roadmap { padding: 58px 18px; }
  .support-head h2 { font-size: 3rem; }
  .product-proof-grid { grid-template-columns: 1fr; }
  .product-proof-grid article,
  .product-proof-grid article:nth-child(even),
  .product-proof-grid article:not(:nth-child(3n + 1)) { min-height: 0; padding: 22px 0; border-left: 0; }
  .product-proof-grid h3 { margin-top: 16px; }
  .site-climate { grid-template-columns: 1fr; padding: 48px 18px; }
  .climate-mark { width: 108px; height: 108px; }
  .climate-mark span { font-size: 2.4rem; }
  .climate-message h2 { font-size: 2.65rem; }
  .climate-learn { grid-column: auto; }
  .pay-climate { align-items: flex-start; flex-wrap: wrap; }
  .pay-climate strong { white-space: normal; }
  .project-row span { font-size: 0.7rem; line-height: 1.4; }
}
