@font-face {
  font-family: 'Mulish';
  src: url('/static/app/fonts/Mulish-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('/static/app/fonts/Mulish-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Mulish', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-mono: 'Mulish', sans-serif;
  --cream: #f4f0eb;
  --ink: #1a1a1a;
  --muted: rgba(0, 0, 0, 0.42);
  --content-width: 880px;
  --text-width: var(--content-width);
  --advisor-text-width: var(--content-width);
  --section-gap: 48px;
}


* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  background: #f5f6f7;
  color: var(--ink);
  font-family: var(--font-body);
}
button, a { font: inherit; }
.hidden { display: none !important; }
.desktop-only { display: block; }

.cover-app {
  --genre-color: #1f987e;
  --genre-bg: #e6f7f2;
  --genre-shadow: rgba(31,152,126,0.26);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.page-topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.page-topbar-inner {
  width: calc(100% - 64px);
  max-width: 1200px;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
}
.topbar-logo {
  width: 96px;
  height: auto;
  display: block;
}

.shell {
  width: calc(100% - 64px);
  max-width: 1200px;
  width: min(1200px, calc(100% - 64px));
  min-height: calc(100vh - 59px);
  margin-top: 0;
  background: var(--cream);
  padding: 56px 20px 30px;
}
.campaign-header {
  width: 100%;
  max-width: 880px;
  max-width: var(--text-width);
  width: min(var(--text-width), 100%);
  margin: 0 auto 42px;
}
.headline-block {
  width: 100%;
  padding-bottom: 20px;
}
.headline-block h1 {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  font-size: clamp(2.5rem, 1.2vw + 2rem, 3.1rem);
  line-height: 1.02;
  text-align: center;
  overflow-wrap: break-word;
}
.headline-block p {
  margin: 10px 0 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  font-size: clamp(1.55rem, 0.95vw + 1.1rem, 2.15rem);
  line-height: 1.04;
  text-align: center;
  overflow-wrap: break-word;
}

.fit-line-text {
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
  max-width: 100%;
}

.phase-stack {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-width: var(--content-width);
  width: min(var(--content-width), 100%);
  min-height: 360px;
  margin: 0 auto;
}
.phase {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.26s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
}
.phase.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.phase.phase-hidden-instant {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(0) !important;
  transition: none !important;
}
.phase-select { position: relative; padding: 0; }
.phase-select.is-generating .select-row { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
.select-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.result-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  width: 100%;
}
.phase-select.is-visible .brand-panel { animation: slideRight 0.55s ease both; }
.phase-select.is-visible .genre-panel { animation: slideLeft 0.55s ease 0.08s both; }
.phase-result.is-visible .vinyl-column { animation: slideRight 0.46s ease both; }
.phase-result.is-visible .player-column { animation: slideLeft 0.46s ease 0.06s both; }
.brand-panel {
  flex: 0 1 320px;
  max-width: 320px;
  padding-top: 0;
}
.brand-badge { margin-bottom: 16px; }
.brand-badge-image {
  height: auto;
  display: block;
}
.brand-badge-rosette {
  width: 58px;
}
.brand-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}
.brand-panel p {
  margin: 14px 0 0;
  max-width: 318px;
  color: rgba(0,0,0,0.38);
  line-height: 1.56;
  font-size: 13px;
  text-align: left;
  word-spacing: normal;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.genre-panel {
  flex: 0 1 500px;
  max-width: 500px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.genre-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.genre-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 122px;
  aspect-ratio: 0.985 / 1;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 18px 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.genre-card.is-selected { transform: translateY(-3px); }
.genre-selected-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.genre-card.is-selected .genre-selected-dot { opacity: 1; }
.genre-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.genre-icon svg { width: 36px; height: 36px; }
.genre-label {
  width: 100%;
  min-width: 0;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--ink) !important;
}
.genre-card.is-selected .genre-label { color: var(--ink) !important; }
.genre-actions {
  width: 100%;
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
}
.genre-actions .cta-button {
  margin-left: auto;
  transform: translateY(2px);
}

.cta-button,
.share-button,
.ghost-button,
.contact-button {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cta-button,
.share-button {
  background: var(--genre-color);
  color: #fff;
  box-shadow: 0 10px 24px var(--genre-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}
.cta-button:hover:not([disabled]),
.share-button:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--genre-shadow);
  filter: saturate(1.06);
}
.cta-button:active:not([disabled]),
.share-button:active:not([disabled]) {
  transform: translateY(0) scale(0.98);
}
.cta-button {
  min-width: 178px;
  font-size: 18px;
  letter-spacing: 0.03em;
  gap: 8px;
}
.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.button-arrow svg,
.share-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.button-arrow path,
.share-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-button[disabled],
.share-button[disabled] {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.22);
  box-shadow: none;
  cursor: default;
}
.ghost-button {
  background: #fff;
  color: rgba(0,0,0,0.5);
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.72);
}
.ghost-button:active {
  transform: translateY(0) scale(0.98);
}

.vinyl-column { flex: 0 0 340px; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 1px; }
.vinyl {
  --accent: var(--genre-color);
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background-color: #242424;
  background-image:
    radial-gradient(circle at center, transparent 0 42px, rgba(255,255,255,0.11) 42px 43px, transparent 43px 62px, rgba(255,255,255,0.09) 62px 63px, transparent 63px 84px, rgba(255,255,255,0.08) 84px 85px, transparent 85px 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 0 40px rgba(0,0,0,0.3);
}
.vinyl::before,
.vinyl::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.vinyl::before { top: 20px; right: 20px; bottom: 20px; left: 20px; inset: 20px; border: 1px solid rgba(255,255,255,0.04); }
.vinyl::after { top: 0; right: 0; bottom: 0; left: 0; inset: 0; box-shadow: inset 0 0 22px rgba(255,255,255,0.02), inset 0 -16px 28px rgba(0,0,0,0.22); }
.vinyl.is-playing { animation: vinylSpin 2.5s linear infinite; }
.vinyl-core {
  width: 67px;
  height: 67px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border: 3px solid rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.vinyl-icon { width: 30px; height: 30px; display: inline-flex; color: var(--accent); }
.vinyl-icon svg { width: 30px; height: 30px; }
.vinyl-column h3 { margin: 0; text-align: center; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.12; letter-spacing: 0; }

@supports (background: conic-gradient(from 30deg, #222, #333)) {
  .vinyl {
    background-image:
      radial-gradient(circle at center, transparent 0 42px, rgba(255,255,255,0.11) 42px 43px, transparent 43px 62px, rgba(255,255,255,0.09) 62px 63px, transparent 63px 84px, rgba(255,255,255,0.08) 84px 85px, transparent 85px 100%),
      conic-gradient(from 30deg, #2a2a2a, #3a3a3a, #222, #333, #2a2a2a);
  }
}

.player-column { flex: 0 1 460px; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.track-card,
.player-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.track-main { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.genre-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--genre-color);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.track-main h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.bpm-box { min-width: 78px; padding: 10px 14px; border-radius: 14px; background: var(--genre-bg); text-align: center; }
.bpm-box strong { display: block; font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--genre-color); }
.bpm-box span { font-size: 9px; font-weight: 600; color: rgba(0,0,0,0.3); letter-spacing: 0.16em; text-transform: uppercase; }
.waveform-canvas { width: 100%; height: 50px; border-radius: 8px; display: block; }
.player-controls { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.play-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--genre-color);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 0 6px 24px var(--genre-shadow);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.play-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 28px var(--genre-shadow);
  filter: saturate(1.06);
}
.play-toggle:active {
  transform: translateY(0) scale(0.97);
}
#play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}
#play-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.progress-wrap { flex: 1; }
.progress-track { height: 5px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.progress-track:hover { background: rgba(0,0,0,0.1); box-shadow: 0 0 0 4px rgba(0,0,0,0.03); transform: scaleY(1.08); }
.progress-fill { height: 100%; width: 0; border-radius: 3px; background: var(--genre-color); }
.progress-times { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.28); }
.native-audio { display: none; }
.result-actions { display: flex; gap: 10px; margin-top: 14px; }
.result-actions > *:first-child { flex: 1; }
.share-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  transform: translateY(-1px);
}

.content-rail {
  width: 100%;
  max-width: 880px;
  max-width: var(--content-width);
  width: min(var(--content-width), 100%);
  max-width: min(var(--content-width), 100%);
  margin: var(--section-gap) auto 0;
}
.advisor-panel {
  width: 100%;
  max-width: 880px;
  max-width: var(--advisor-text-width);
  width: min(var(--advisor-text-width), 100%);
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  gap: clamp(30px, 3vw, 40px);
}
.advisor-panel h2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12em;
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-size: clamp(1.75rem, 0.75vw + 1.35rem, 31px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}
.advisor-line {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: break-word;
  line-height: 1.04;
}
.contact-button {
  min-height: 54px;
  min-height: clamp(48px, 5vw, 60px);
  margin: 0 auto;
  padding: 0 34px;
  padding: 0 clamp(24px, 3.2vw, 40px);
  background: linear-gradient(90deg, #ff4f8a 0%, #ff8f3a 100%);
  color: #fff;
  font-size: 16px;
  font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1.15rem);
  font-weight: 700;
  align-self: center;
  width: auto;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(255, 111, 101, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.contact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 111, 101, 0.28);
  filter: saturate(1.05);
}
.contact-button:active {
  transform: translateY(0) scale(0.985);
}

.video-panel {
  max-width: 620px;
  margin-top: var(--section-gap);
  padding-bottom: 24px;
}
.legal-footer {
  width: 100%;
  max-width: 880px;
  max-width: var(--content-width);
  width: min(var(--content-width), 100%);
  max-width: min(var(--content-width), 100%);
  margin: 28px auto 0;
  padding-top: 0;
  overflow: hidden;
}
.legal-footer p {
  display: block;
  width: 100%;
  max-width: 880px;
  max-width: 100%;
  margin: 0;
  color: rgba(0,0,0,0.68);
  font-size: 12px;
  line-height: 1.5;
  text-align: justify;
  text-align-last: left;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.legal-footer p + p {
  margin-top: 14px;
}

.generation-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(244,240,235,0.96);
  background: rgba(244,240,235,0.88);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.generation-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.generation-card {
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease 0.06s;
}
.generation-overlay.is-visible .generation-card {
  opacity: 1;
}
.spinner-stack { position: relative; width: 140px; height: 140px; margin: 0 auto 36px; }
.spinner-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(0,0,0,0.06); }
.ring-1 { inset: 0; border-top-color: var(--genre-color); border-color: var(--genre-color) rgba(0,0,0,0.06) rgba(0,0,0,0.06) rgba(0,0,0,0.06); animation: spin 1.8s linear infinite; }
.ring-2 { inset: 12px; border-top-color: rgba(0,0,0,0.15); animation: spinReverse 2.4s linear infinite; }
.ring-3 { inset: 24px; border-top-color: rgba(0,0,0,0.15); animation: spin 3s linear infinite; }
.spinner-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--genre-color); }
.spinner-icon svg { width: 42px; height: 42px; }
.generation-track { width: 260px; height: 5px; margin: 0 auto; border-radius: 10px; background: rgba(0,0,0,0.06); overflow: hidden; }
.generation-fill { width: 0; height: 100%; border-radius: 10px; background: var(--genre-color); transition: width 0.3s ease; }
.generation-step { margin: 22px 0 0; font-size: 17px; font-weight: 600; color: rgba(0,0,0,0.45); }
.generation-value { margin: 8px 0 0; font-family: var(--font-body); font-size: 32px; color: var(--genre-color); font-weight: 700; }
.generation-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.generation-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(0,0,0,0.08); transition: all 0.4s ease; }

.share-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.share-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.32); background: rgba(0,0,0,0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.share-dialog { position: relative; z-index: 1; background: #f4f0eb; border-radius: 28px; padding: 40px 36px; max-width: 380px; width: 92%; box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04); }
.share-dialog h3 { margin: 0 0 6px; text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.share-dialog p { margin: 0 0 28px; text-align: center; color: rgba(0,0,0,0.4); font-size: 13px; font-weight: 600; }
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-item { display: flex; align-items: center; gap: 14px; min-height: 70px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 14px 18px; transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.share-item:active { transform: scale(0.985); }
.share-item:disabled { cursor: progress; }
.share-item-icon { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.share-item-label { flex: 1; min-width: 0; text-align: left; }
.share-item.is-loading { border-color: rgba(0,0,0,0.18); background: #fbfaf8; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.share-item.is-loading .share-item-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.share-item.is-success { border-color: rgba(25,140,116,0.32); background: #f2fbf8; box-shadow: 0 10px 30px rgba(25,140,116,0.12); }
.full-width { width: 100%; margin-top: 18px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes vinylSpin { to { transform: rotate(360deg); } }

@media (max-width: 1208px) and (min-width: 981px) {
  :root {
    --text-width: 820px;
    --advisor-text-width: 820px;
    --section-gap: 46px;
  }
  .shell { padding: 48px 22px 28px; }
  .headline-block h1 { font-size: 37px; }
  .headline-block h1 { font-size: clamp(2.35rem, 0.95vw + 1.9rem, 2.72rem); }
  .headline-block p { font-size: 25px; }
  .headline-block p { font-size: clamp(1.5rem, 0.65vw + 1.2rem, 1.86rem); }
  .campaign-header,
  .phase-stack,
  .legal-footer { max-width: 820px; width: min(820px, 100%); max-width: min(820px, 100%); }
  .legal-footer p { max-width: 820px; }
  .content-rail { max-width: 820px; width: min(820px, 100%); max-width: min(820px, 100%); }
  .advisor-panel { width: min(var(--advisor-text-width), 100%); }
  .phase-stack { min-height: 360px; }
  .select-row { gap: 32px; }
  .brand-panel { flex: 0 1 296px; max-width: 296px; }
  .brand-panel h2 { font-size: 38px; }
  .brand-panel p { max-width: 286px; font-size: 14px; }
  .genre-panel { flex: 0 1 492px; max-width: 492px; }
}

@media (max-width: 980px) {
  :root {
    --text-width: 820px;
    --advisor-text-width: 820px;
    --section-gap: 36px;
  }
  .headline-block h1 { font-size: 34px; }
  .headline-block h1 { font-size: clamp(2.1rem, 1.1vw + 1.65rem, 2.7rem); }
  .headline-block p { font-size: 23px; }
  .headline-block p { font-size: clamp(1.45rem, 0.85vw + 1.1rem, 1.9rem); }
  .page-topbar-inner,
  .shell { width: calc(100% - 36px); }
  .shell { padding: 42px 24px 28px; }
  .campaign-header,
  .phase-stack,
  .content-rail,
  .legal-footer {
    max-width: 820px;
    width: min(820px, 100%);
    max-width: min(820px, 100%);
  }
  .legal-footer p { max-width: 820px; }
  .phase-stack {
    min-height: 0;
    margin: 0 auto;
  }
  .phase {
    position: relative;
    inset: auto;
    transform: none;
    transition: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .phase.is-visible { display: block; }
  .content-rail { margin-top: var(--section-gap); }
  .advisor-panel,
  .content-rail.advisor-panel { margin-top: var(--section-gap); }
  .select-row { gap: 34px; align-items: flex-start; }
  .result-row { gap: 22px; }
  .brand-panel { flex-basis: 288px; max-width: 320px; }
  .brand-panel h2 { font-size: 38px; }
  .brand-panel p { max-width: 286px; }
  .genre-panel { flex: 1 1 500px; max-width: 500px; }
  .player-column { flex: 1 1 430px; max-width: 430px; }
}

@media (max-width: 832px) and (min-width: 701px) {
  .brand-panel.desktop-only { display: none !important; }
  .campaign-header,
  .phase-stack,
  .content-rail,
  .legal-footer { max-width: 720px; width: min(720px, 100%); max-width: min(720px, 100%); }
  .legal-footer p { max-width: 720px; }
  .select-row { justify-content: center; }
  .genre-panel { flex: 0 1 100%; max-width: 100%; margin: 0 auto; align-items: stretch; }
  .content-rail.advisor-panel { margin-top: var(--section-gap); }
}

@media (max-width: 700px) {
  :root {
    --section-gap: 28px;
  }
  .desktop-only { display: none !important; }
  .legal-footer { display: none; }
  .page-topbar-inner { width: calc(100% - 28px); min-height: 54px; }
  .topbar-logo { width: 84px; }
  .shell { width: 100%; min-height: calc(100vh - 49px); padding: 28px 18px 24px; }
  .campaign-header,
  .phase-stack,
  .content-rail,
  .video-panel,
  .legal-footer { width: 100%; max-width: none; }
  .campaign-header { margin-bottom: 28px; }
  .headline-block { padding: 0 0 16px; }
  .headline-block .fit-line-text,
  .advisor-panel .fit-line-text {
    display: inline-block;
    white-space: nowrap !important;
  }
  .headline-block h1 { font-size: 18px !important; }
  .headline-block h1 { font-size: clamp(18px, 4.35vw, 40px) !important; }
  .headline-block h1 .fit-line-text { font-size: 18px; }
  .headline-block h1 .fit-line-text { font-size: clamp(18px, 4.35vw, 40px); }
  .headline-block p { font-size: 14px !important; }
  .headline-block p { font-size: clamp(14px, 3.35vw, 30px) !important; }
  .headline-block p .fit-line-text { font-size: 14px; }
  .headline-block p .fit-line-text { font-size: clamp(14px, 3.35vw, 30px); }
  .advisor-line-1 { font-size: 10px !important; }
  .advisor-line-1 { font-size: clamp(10px, 2.15vw, 19px) !important; }
  .advisor-line-1 .fit-line-text { font-size: 10px; }
  .advisor-line-1 .fit-line-text { font-size: clamp(10px, 2.15vw, 19px); }
  .advisor-line-2 { font-size: 9px !important; }
  .advisor-line-2 { font-size: clamp(9px, 1.95vw, 17px) !important; }
  .advisor-line-2 .fit-line-text { font-size: 9px; }
  .advisor-line-2 .fit-line-text { font-size: clamp(9px, 1.95vw, 17px); }
  .headline-block h1 { font-weight: 700; text-align: center; white-space: nowrap !important; line-height: 1.1; }
  .headline-block p { font-weight: 700; text-align: center; white-space: nowrap !important; line-height: 1.15; }
  .phase-stack { min-height: 0; margin-bottom: 0; }
  .phase { position: relative; inset: auto; transform: none; transition: none; display: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .phase.is-visible { display: block; }
  .genre-panel { margin-top: 0; width: 100%; max-width: none; }
  .player-column { width: 100%; max-width: none; }
  .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .genre-card { min-height: 88px; aspect-ratio: 0.985 / 1; padding: 12px 5px 10px; }
  .genre-icon { width: 38%; height: 38%; min-width: 22px; min-height: 22px; max-width: 34px; max-height: 34px; }
  .genre-icon svg { width: 100%; height: 100%; }
  .genre-label { font-size: 10px; color: var(--ink) !important; }
  .genre-card.is-selected .genre-label { color: var(--ink) !important; }
  .genre-actions { width: 100%; margin-top: 18px; display: flex; justify-content: flex-end; }
  .cta-button { min-height: 44px; min-width: 138px; font-size: 13px; gap: 6px; }
  .button-arrow { width: 12px; height: 12px; }
  .track-card,
  .player-card {
    border-radius: 20px;
    padding: 16px;
  }
  .track-main { flex-direction: row; gap: 12px; }
  .track-main h2 { font-size: 18px; line-height: 1.22; }
  .genre-pill { font-size: 9px; margin-bottom: 8px; }
  .bpm-box { min-width: 68px; padding: 8px 10px; }
  .bpm-box strong { font-size: 18px; }
  .bpm-box span { font-size: 8px; }
  .waveform-canvas { height: 42px; }
  .player-controls { gap: 12px; margin-top: 10px; }
  .play-toggle { width: 44px; height: 44px; }
  #play-icon { width: 15px; height: 15px; }
  #play-icon svg { width: 15px; height: 15px; }
  .progress-times { font-size: 10px; }
  .result-actions { flex-direction: column; gap: 8px; }
  .result-actions > * { width: 100%; }
  .result-actions .share-button,
  .result-actions .ghost-button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 12px;
  }
  .share-arrow { width: 13px; height: 13px; }
  .generation-overlay {
    position: fixed;
    inset: 54px 0 0;
    z-index: 240;
    padding: 18px 16px;
  }
  .generation-card {
    width: min(320px, 100%);
    margin: 0 auto;
  }
  .spinner-stack { width: 108px; height: 108px; margin: 0 auto 22px; }
  .ring-2 { inset: 10px; }
  .ring-3 { inset: 20px; }
  .spinner-icon svg { width: 32px; height: 32px; }
  .generation-track { width: min(220px, 100%); }
  .generation-step { margin-top: 16px; font-size: 14px; }
  .generation-value { font-size: 26px; }
  .generation-dots { margin-top: 20px; }
  .content-rail { margin-top: var(--section-gap); }
  .advisor-panel,
  .content-rail.advisor-panel { margin-top: var(--section-gap); }
  .advisor-panel h2 { font-size: 18px; font-size: clamp(1.05rem, 2vw + 0.72rem, 1.32rem); margin-top: 22px; line-height: 1.12; text-align: center; }
  .advisor-panel { gap: 24px; }
  .advisor-line { white-space: nowrap !important; }
  .contact-button {
    min-height: 44px;
    width: min(100%, 320px);
    font-size: 15px;
    font-size: clamp(0.9rem, 0.8vw + 0.72rem, 1rem);
    padding: 0 20px;
  }
  .video-panel { margin-top: var(--section-gap); padding-bottom: 16px; }
  .legal-footer { margin-top: 18px; }
  .legal-footer p { font-size: 11px; line-height: 1.45; }
}


.video-preview-card {
  padding: 0;
  border: 0;
  cursor: pointer;
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}
.video-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 48px));
}
.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}
.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  right: 0;
  top: -44px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.operator-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.operator-shell-login {
  min-height: 100vh;
  justify-content: center;
  margin: 0 auto;
}
.operator-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}
.operator-toolbar,
.operator-list-item,
.operator-actions-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.operator-actions-inline {
  flex-wrap: wrap;
}
.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.operator-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.operator-list-item {
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.operator-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.operator-list-item p,
.operator-card p {
  margin: 4px 0 0;
  color: rgba(0,0,0,0.52);
}
.operator-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.operator-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.operator-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.operator-field input,
.operator-field select,
.operator-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font: inherit;
}
.operator-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.operator-field-checkbox input {
  width: auto;
}
.operator-form-actions,
.operator-meta-box {
  grid-column: 1 / -1;
}
.operator-meta-box {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 14px;
}
.operator-message {
  margin: 0;
}
.operator-login-card {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
}
.operator-logo {
  width: 92px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .video-dialog {
    width: calc(100% - 20px);
  }
  .video-close {
    top: -40px;
  }
  .operator-grid,
  .operator-form-grid {
    grid-template-columns: 1fr;
  }
  .operator-toolbar,
  .operator-list-item,
  .operator-actions-inline {
    align-items: flex-start;
    flex-direction: column;
  }
}
.operator-toolbar-main {
  align-items: center;
}
.operator-toolbar-main h1,
.operator-section-head h2,
.operator-modal-header h2 {
  margin: 0;
}
.operator-toolbar-main p,
.operator-section-head p,
.operator-modal-header p {
  margin: 6px 0 0;
}
.operator-filters-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.operator-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.operator-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.operator-variants-table-wrap {
  overflow-x: auto;
}
.operator-variants-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.operator-variants-table th,
.operator-variants-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  text-align: left;
}
.operator-variants-table thead th {
  border-top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.44);
}
.operator-variants-table tbody td span {
  display: block;
  margin-top: 4px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}
.operator-audio {
  width: 220px;
  height: 36px;
}
.operator-status-chip,
.operator-genre-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.operator-status-chip.is-active {
  background: #e8f6ef;
  color: #157347;
}
.operator-status-chip.is-inactive {
  background: #f5f5f5;
  color: #666;
}
.operator-genre-chip {
  background: color-mix(in srgb, var(--chip-color) 14%, white);
  color: var(--chip-color);
}
.operator-cell-actions {
  white-space: nowrap;
}
.operator-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.operator-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.operator-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.operator-modal-header,
.operator-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.operator-modal-actions {
  margin: 20px 0 10px;
}
.operator-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 980px) {
  .operator-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operator-filter-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .operator-filters {
    grid-template-columns: 1fr;
  }
  .operator-filter-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .operator-audio {
    width: 180px;
  }
  .operator-modal {
    padding: 12px;
  }
  .operator-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
  .operator-modal-header,
  .operator-modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.operator-field-hidden { display: none; }
.operator-form-grid small {
  color: rgba(0,0,0,0.52);
  line-height: 1.4;
}
.operator-toolbar-main {
  align-items: center;
}
.operator-toolbar-main h1,
.operator-section-head h2,
.operator-modal-header h2 {
  margin: 0;
}
.operator-toolbar-main p,
.operator-section-head p,
.operator-modal-header p {
  margin: 6px 0 0;
}
.operator-filters-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.operator-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}
.operator-field-search input {
  max-width: 360px;
}
.operator-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
}
.operator-variants-table-wrap {
  overflow-x: auto;
}
.operator-variants-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}
.operator-variants-table th,
.operator-variants-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  text-align: left;
}
.operator-variants-table thead th {
  border-top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.44);
}
.operator-variants-table tbody td span {
  display: block;
  margin-top: 4px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}
.operator-audio {
  width: 200px;
  height: 36px;
}
.operator-duration {
  font-size: 14px;
  font-weight: 700;
}
.operator-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.operator-status-dot.is-active {
  background: #1f9d5b;
}
.operator-status-dot.is-inactive {
  background: #9c9c9c;
}
.operator-genre-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--chip-color) 14%, white);
  color: var(--chip-color);
}
.ghost-button-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
.operator-cell-actions {
  white-space: nowrap;
}
.operator-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.operator-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.operator-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.operator-modal-header,
.operator-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.operator-modal-actions {
  margin: 20px 0 10px;
}
.operator-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.operator-field-hidden { display: none; }
.advisor-placeholder-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, #f7f7f8 0%, #efefef 100%);
}
.advisor-placeholder-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.advisor-placeholder-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}
.advisor-placeholder-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
.advisor-placeholder-card h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.04;
}
.advisor-placeholder-lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,0.68);
}
.advisor-placeholder-box {
  margin-top: 24px;
  padding: 22px 24px;
  background: #f6f1eb;
  border-radius: 20px;
}
.advisor-placeholder-box ul {
  margin: 12px 0 0 20px;
  padding: 0;
}
.advisor-placeholder-actions {
  margin-top: 28px;
}
@media (max-width: 980px) {
  .operator-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operator-field-search input {
    max-width: none;
  }
  .operator-filter-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .operator-filters {
    grid-template-columns: 1fr;
  }
  .operator-filter-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .operator-audio {
    width: 180px;
  }
  .operator-modal {
    padding: 12px;
  }
  .operator-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
  .operator-modal-header,
  .operator-modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .advisor-placeholder-card {
    padding: 28px 22px;
  }
  .advisor-placeholder-card h1 {
    font-size: 30px;
  }
}
.operator-form-actions-sticky {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), #fff 28%);
  padding-top: 14px;
  margin-top: 10px;
}
.video-embed-shell {
  width: 100%;
}
.video-frame-wrap-inline {
  border-radius: 0;
  overflow: hidden;
  background: #000;
}
.video-fallback-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}
.video-fallback-note a {
  color: inherit;
  font-weight: 600;
}
:root {
  --font-display: 'Mulish', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-mono: 'Mulish', sans-serif;
  --cream: #f4f0eb;
  --ink: #1a1a1a;
  --muted: rgba(0, 0, 0, 0.42);
  --genre-color: #e8456b;
  --genre-bg: #fff0f3;
  --genre-shadow: rgba(232,69,107,0.26);
}
.operator-shell {
  width: min(1400px, calc(100% - 28px));
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.operator-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}
.operator-toolbar-main {
  background: linear-gradient(135deg, #fff8fb 0%, #fff 42%, #fff6ee 100%);
}
.operator-actions-inline {
  flex-wrap: wrap;
}
.cta-button-compact,
.ghost-button-compact {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
.ghost-icon-button {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 16px;
}
.operator-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}
.operator-field span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.62);
}
.operator-field input,
.operator-field select,
.operator-field textarea {
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.operator-field-search input {
  max-width: 300px;
}
.operator-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
}
.operator-variants-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
}
.operator-variants-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
}
.operator-variants-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.024);
}
.operator-variants-table tbody tr:hover {
  background: rgba(232,69,107,0.05);
}
.operator-variants-table td,
.operator-variants-table th {
  padding: 14px 12px;
}
.operator-audio-cell {
  min-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.operator-audio {
  width: 300px;
  height: 40px;
}
.operator-audio-duration {
  min-width: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,0,0,0.58);
}
.operator-genre-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 104px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.operator-cell-actions {
  white-space: nowrap;
}
.operator-modal-actions .cta-button {
  display: inline-flex;
}
.operator-form-actions-sticky {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), #fff 28%);
  padding-top: 14px;
  margin-top: 10px;
}
@media (max-width: 980px) {
  .operator-shell {
    width: calc(100% - 20px);
  }
  .operator-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operator-field-search input {
    max-width: none;
  }
  .operator-filter-actions {
    grid-column: 1 / -1;
  }
  .operator-audio-cell {
    min-width: 300px;
  }
  .operator-audio {
    width: 250px;
  }
}
@media (max-width: 700px) {
  .operator-filters {
    grid-template-columns: 1fr;
  }
  .operator-filter-actions {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
  }
  .operator-audio-cell {
    min-width: 240px;
  }
  .operator-audio {
    width: 210px;
  }
}
.operator-filters {
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(150px, 0.8fr) minmax(180px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}
.operator-field span {
  margin-bottom: 2px;
}
.operator-field input,
.operator-field select {
  min-height: 40px;
}
.operator-filter-actions {
  align-self: end;
  padding-bottom: 1px;
}
.ghost-icon-button {
  font-size: 18px;
  font-weight: 700;
}
.operator-variants-table {
  min-width: 1320px;
}
.operator-audio-cell {
  min-width: 480px;
}
.operator-audio {
  width: 430px;
  height: 44px;
}
.operator-genre-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle;
  line-height: 1;
  margin-top: 0 !important;
}
.operator-variants-table tbody td > .operator-genre-chip,
.operator-variants-table tbody td > .operator-status-dot {
  margin-top: 0;
}
.operator-status-dot {
  vertical-align: middle;
}
.operator-modal-actions .cta-button {
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
}
.operator-list-item strong,
.operator-variants-table strong {
  color: #1d1d1f;
}
.operator-variants-table tbody td code {
  color: #5a2c39;
  background: rgba(232,69,107,0.06);
  padding: 4px 8px;
  border-radius: 8px;
}
@media (max-width: 980px) {
  .operator-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operator-audio-cell {
    min-width: 360px;
  }
  .operator-audio {
    width: 320px;
  }
}
@media (max-width: 700px) {
  .operator-filters {
    grid-template-columns: 1fr;
  }
  .operator-audio-cell {
    min-width: 280px;
  }
  .operator-audio {
    width: 240px;
  }
}
.operator-forbidden-card {
  max-width: 560px;
  text-align: center;
}
.operator-forbidden-card p {
  color: rgba(0,0,0,0.66);
  line-height: 1.6;
}
.operator-forbidden-actions {
  justify-content: center;
  margin-top: 20px;
}
.operator-totp-card {
  max-width: 540px;
}
.operator-totp-lead {
  color: rgba(0,0,0,0.68);
  line-height: 1.6;
  margin: 0 0 18px;
}
.operator-inline-message {
  background: #fff4df;
  color: #8a5a00;
  border: 1px solid #f2d39a;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
}
.operator-totp-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  margin: 12px 0 18px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
}
.operator-totp-qr svg {
  width: 220px;
  height: 220px;
}
.operator-totp-secret-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f5f6f8;
  border-radius: 14px;
}
.operator-totp-secret-box code {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  word-break: break-all;
}



@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .generation-overlay {
    background: rgba(244,240,235,0.98);
  }

  .share-backdrop {
    background: rgba(0,0,0,0.46);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.error-shell {
  min-height: 100vh;
}
.error-card {
  text-align: left;
}
.error-code {
  margin: 0 0 8px;
}
.error-card h1 {
  margin: 0;
}
.error-lead {
  max-width: 36rem;
}

