/* Split from Web Studio static styles. */

:root {
  color-scheme: dark;
  --bg: #101113;
  --bg-deep: #0b0c0f;
  --ink: #121316;
  --surface-low: #17181b;
  --surface: #1d1e22;
  --surface-high: #27292f;
  --surface-glass: rgba(255, 255, 255, 0.045);
  --outline: #3a3e47;
  --outline-soft: rgba(90, 96, 110, 0.42);
  --text: #f0eff2;
  --muted: #b8bdc8;
  --dim: #7f8694;
  --primary: #b9ceff;
  --primary-strong: #4c8dff;
  --cyan: #73e7c5;
  --warning: #f0c15c;
  --danger: #ff8a8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --tight-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-width: 1180px;
  overflow-x: auto;
  overflow-y: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 260px),
    linear-gradient(180deg, #111216, var(--bg-deep));
  background-size: 80px 100%, auto, auto;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
  white-space: nowrap;
}

button:disabled,
textarea:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.brand span,
.project-row h3,
.panel-title h2,
.work-context h2,
.editor-status-strip strong,
.shot-title-row h3,
.shot-tab strong,
.export-checklist span,
.export-checklist strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 820;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 780;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 14px;
  overflow: hidden;
}

.topbar,
.library-section,
.editor-shell {
  border-radius: 8px;
}

.topbar {
  z-index: 20;
  width: 100%;
  margin: 0 auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(90, 96, 110, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(13, 15, 19, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.3);
}

.top-context {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.top-context span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-glyph {
  width: 32px;
  height: 32px;
}

.brand-wordmark {
  width: 96px;
  height: auto;
}

.brand span,
.eyebrow,
.lyrics-box > span,
.song-controls span,
.import-state span,
.upload-file-action,
.upload-file-delete,
.choice,
.project-card p,
.panel-title p,
.selected-context span,
.subtitle-row span,
.subtitle-status-bar span,
.edit-grid span,
.shot-editor-grid span,
.setup-block span,
.precheck-card span,
.operation-state span,
.meter-card span,
.script-card span,
.coverage-strip span,
.shot-tab small,
.shot-flow-step small,
.storyboard-overlay span,
.storyboard-state-pill,
.shot-flow-step > span,
.playback-head span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 760;
  text-transform: uppercase;
}

.top-actions,
.entry-actions,
.filter-row,
.editor-actions,
.editor-nav-actions,
.inline-actions,
.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-actions,
.editor-actions {
  justify-content: flex-end;
}

.topbar .editor-nav-actions {
  display: none;
  margin-left: 4px;
}

.language-toggle {
  color: var(--primary);
  border-color: rgba(173, 198, 255, 0.24);
  background: rgba(173, 198, 255, 0.055);
}

.top-logout-icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 206, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(185, 196, 220, 0.68);
  padding: 0;
  line-height: 0;
}

.top-logout-icon-button[hidden] {
  display: none;
}

.top-logout-icon-button:hover {
  border-color: rgba(185, 206, 255, 0.3);
  background: rgba(185, 206, 255, 0.06);
  color: rgba(225, 232, 248, 0.92);
}

.top-logout-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab,
.chip,
.choice,
.panel-tab,
.icon-button,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(90, 96, 110, 0.36);
  background: rgba(255, 255, 255, 0.035);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.tab:hover,
.chip:hover,
.choice:hover,
.panel-tab:hover,
.icon-button:hover,
.secondary-button:hover,
.primary-button:hover,
.import-row:hover,
.shot-card:hover,
.shot-tab:hover,
.video-row:hover,
.queue-row:hover,
.export-checklist button:hover {
  transform: translateY(-1px);
}

.tab,
.chip,
.panel-tab {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.tab.active,
.chip.active,
.choice.active,
.panel-tab.active {
  border-color: rgba(185, 206, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.16), rgba(185, 206, 255, 0.06));
  color: var(--text);
}

.icon-button {
  min-width: 38px;
  padding: 0 8px;
}

.player-aspect-menu {
  position: relative;
  display: grid;
}

.player-aspect-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 8;
  width: 190px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(185, 206, 255, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(31, 34, 42, 0.96), rgba(10, 11, 14, 0.96)),
    rgba(15, 16, 20, 0.96);
  padding: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.player-aspect-popover[hidden] {
  display: none;
}

.player-aspect-popover button {
  min-width: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid rgba(65, 71, 85, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 4px;
}

.player-aspect-popover button strong,
.player-aspect-popover button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-aspect-popover button strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.player-aspect-popover button span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 760;
}

.player-aspect-popover button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #d6e2ff, #7facff);
}

.player-aspect-popover button.active strong,
.player-aspect-popover button.active span {
  color: #08101f;
}

.primary-button {
  color: #08101f;
  border-color: transparent;
  background: linear-gradient(135deg, #d6e2ff, var(--primary-strong));
  font-weight: 820;
  box-shadow:
    0 14px 30px rgba(75, 142, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.primary-button:disabled {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(65, 71, 85, 0.55);
  box-shadow: none;
}

.primary-button.disabled,
.primary-button[aria-disabled="true"] {
  pointer-events: none;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(65, 71, 85, 0.55);
  box-shadow: none;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.035);
}

.primary-button.full,
.secondary-button.full {
  width: 100%;
}

.compact {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 740;
}

.generation-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(8, 16, 31, 0.13);
  background: rgba(255, 255, 255, 0.42);
  color: #08101f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.secondary-button .generation-price-badge {
  border-color: rgba(115, 231, 197, 0.24);
  background: rgba(115, 231, 197, 0.1);
  color: var(--text);
}

.primary-button:disabled .generation-price-badge,
.secondary-button:disabled .generation-price-badge {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim);
}

.view {
  min-height: 0;
  display: none;
}

.view.active {
  display: grid;
}

body.view-editor-active .top-context {
  display: none;
}

body.view-billing-active .topbar .editor-nav-actions {
  display: flex;
}

body.view-billing-active [data-locale-key="saveDraft"] {
  display: none;
}

body.auth-pending .topbar .editor-nav-actions,
body.auth-pending [data-action="request-logout"] {
  display: none;
}

body.view-editor-active .topbar .editor-nav-actions {
  display: flex;
}

@media (min-width: 768px) and (max-width: 1179px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 8px 10px;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    width: 82px;
  }
}

@media (max-width: 767px) {
  .topbar {
    z-index: 50;
    min-height: 54px;
    gap: 10px;
    padding: 8px 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(9, 10, 13, 0.94);
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    width: 86px;
  }
}

/* Split from Web Studio static styles. */

.home-view {
  height: 100%;
  min-height: 0;
  grid-template-columns: 428px minmax(420px, 0.9fr) minmax(220px, 0.38fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding-top: 2px;
}

.home-view.active {
  display: grid;
}

.library-section,
.editor-shell {
  padding: 18px;
}

.editor-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.editor-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1.42fr);
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
}

.stage-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(230px, 1fr) 306px;
  gap: 12px;
  overflow: hidden;
  transition: grid-template-rows 260ms ease;
}

.stage-area.timeline-collapsed {
  grid-template-rows: minmax(230px, 1fr) 52px;
}

.home-main-column {
  position: relative;
  isolation: isolate;
  min-width: 0;
  max-height: 100%;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.home-main-column::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-main-column::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(180px 140px at 22% 78%, rgba(116, 228, 202, 0.18), transparent 72%),
    radial-gradient(220px 160px at 74% 92%, rgba(143, 182, 255, 0.16), transparent 74%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.018) 100%);
  pointer-events: none;
}

.home-main-column::after {
  content: "";
  min-height: 8px;
}

/* Split from Web Studio static styles. */

.section-head,
.panel-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
}

.home-compose-grid {
  grid-template-columns: minmax(0, 1fr) 284px;
  align-items: start;
}

.entry-card,
.compact-import,
.project-card,
.user-card,
.player-card,
.shot-timeline,
.work-panel {
  border-radius: 8px;
}

.entry-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.primary-entry {
  border: 1px solid rgba(185, 206, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(29, 31, 36, 0.86);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.primary-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
}

.primary-entry::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.56), transparent 70%);
}

.entry-head,
.compact-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-head > div,
.compact-head > div,
.section-head > div,
.project-row > div,
.selected-context,
.precheck-card,
.gate-card,
.cover-head > div {
  min-width: 0;
}

.entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #08101f;
  background: linear-gradient(135deg, #dbe6ff, #79a8ff);
  box-shadow: 0 12px 28px rgba(76, 141, 255, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.entry-head h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 820;
}

.compact-import {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px 6px;
  border: 1px solid rgba(90, 96, 110, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 22, 0.6);
}

.compact-import::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(115, 231, 197, 0.44), transparent 72%);
}

.import-strip {
  min-width: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: start;
}

.import-strip .compact-head,
.import-strip .upload-file-control,
.import-strip .upload-file-tools {
  grid-column: 1 / -1;
}

.import-strip .reference-lyrics {
  grid-column: 1 / -1;
}

.import-strip .import-state {
  grid-column: 1;
}

.home-status-slot {
  grid-column: 1 / -1;
  min-height: 0;
}

.import-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-self: end;
  margin-top: -4px;
}

.import-actions .primary-button {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.compact-head {
  gap: 9px;
}

.compact-head h2 {
  font-size: 16px;
}

.compact-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(173, 198, 255, 0.1);
  font-size: 16px;
  font-weight: 820;
}

.lyrics-box {
  position: relative;
  display: grid;
  gap: 8px;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-head > span {
  min-width: 0;
}

.lyrics-generate-button {
  flex: 0 0 auto;
}

.lyrics-box textarea,
.style-input textarea,
.reference-lyrics textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(93, 100, 116, 0.56);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent),
    rgba(11, 12, 15, 0.34);
  padding: 12px 34px 28px 12px;
  outline: none;
  line-height: 1.5;
}

.lyrics-box textarea,
.style-input textarea {
  padding: 12px 34px 28px 12px;
  font-size: 14px;
}

.lyrics-box textarea {
  min-height: 126px;
}

.lyrics-box textarea::-webkit-scrollbar,
.style-input textarea::-webkit-scrollbar {
  width: 8px;
}

.lyrics-box textarea::-webkit-scrollbar-track,
.style-input textarea::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lyrics-box textarea::-webkit-scrollbar-thumb,
.style-input textarea::-webkit-scrollbar-thumb {
  border: 2px solid rgba(11, 12, 15, 0.34);
  border-radius: 999px;
  background: rgba(148, 157, 178, 0.42);
}

.lyrics-box textarea::-webkit-scrollbar-thumb:hover,
.style-input textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(185, 206, 255, 0.62);
}

.field-counter {
  justify-self: end;
  margin-top: -30px;
  padding: 0 10px 7px 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 760;
  pointer-events: none;
  z-index: 1;
}

.lyrics-box .field-counter,
.style-input .field-counter {
  position: absolute;
  right: 24px;
  bottom: 7px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.field-counter.over-limit {
  color: #ff8c8c;
}

.song-controls {
  display: grid;
  gap: 10px;
}

.aspect-ratio-control {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.aspect-ratio-control button {
  min-width: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid rgba(65, 71, 85, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  padding: 5px 4px;
}

.aspect-ratio-control button strong,
.aspect-ratio-control button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aspect-ratio-control button strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.aspect-ratio-control button span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 760;
}

.aspect-ratio-control button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #d6e2ff, #7facff);
}

.aspect-ratio-control button.active strong,
.aspect-ratio-control button.active span {
  color: #08101f;
}

.song-controls > div {
  display: grid;
  gap: 8px;
}

.voice-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 14px;
}

.primary-entry .voice-row {
  padding-top: 2px;
}

.voice-row > div {
  display: grid;
  gap: 9px;
}

.voice-row .settings-row {
  gap: 8px;
}

.style-input {
  position: relative;
  display: grid;
  gap: 7px;
}

.style-input textarea {
  min-height: 66px;
}

.reference-lyrics textarea {
  min-height: 72px;
  padding: 10px;
  font-size: 13px;
}

.lyrics-box textarea:focus,
.style-input textarea:focus,
.reference-lyrics textarea:focus {
  border-color: rgba(185, 206, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(185, 206, 255, 0.08);
}

.style-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.style-presets .choice {
  min-width: 0;
  padding-inline: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.style-presets .choice.active {
  color: #f4f7ff;
}

.song-submit-button {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.import-state,
.selected-context,
.precheck-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(65, 71, 85, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
  padding: 10px;
}

.import-state strong,
.selected-context strong,
.precheck-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.import-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.upload-file-control,
.reference-card,
.reference-preview,
.uploaded-file {
  min-height: 54px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(65, 71, 85, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  padding: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 760;
}

.upload-file-control {
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  border-style: dashed;
  border-color: rgba(76, 82, 96, 0.58);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.upload-file-control:hover {
  border-color: rgba(128, 139, 159, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.upload-file-control:focus-visible {
  outline: 2px solid rgba(185, 206, 255, 0.6);
  outline-offset: 2px;
}

.upload-file-control.uploaded {
  border-style: solid;
  border-color: rgba(93, 102, 120, 0.62);
  background: rgba(255, 255, 255, 0.028);
}

.upload-file-control.uploading {
  border-style: solid;
  border-color: rgba(185, 206, 255, 0.56);
  background: rgba(185, 206, 255, 0.08);
}

.upload-file-control.imported {
  border-style: solid;
  border-color: rgba(115, 231, 197, 0.5);
  background: rgba(115, 231, 197, 0.075);
}

.upload-file-control.failed {
  border-style: solid;
  border-color: rgba(255, 111, 111, 0.42);
  background: rgba(255, 111, 111, 0.06);
}

.upload-file-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 157, 178, 0.22);
  border-radius: 7px;
  color: rgba(214, 222, 240, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
}

.upload-file-control.upload-complete .upload-file-icon,
.upload-file-control.imported .upload-file-icon {
  background: linear-gradient(135deg, #c8fff0, var(--cyan));
}

.upload-file-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.upload-file-copy strong,
.upload-file-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.2;
}

.upload-file-delete {
  border: 0;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  padding: 0 9px;
}

.upload-file-delete {
  display: none;
  color: var(--danger);
}

.upload-file-control.uploaded .upload-file-delete,
.upload-file-control.upload-complete .upload-file-delete,
.upload-file-control.imported .upload-file-delete,
.upload-file-control.failed .upload-file-delete {
  display: grid;
}

.upload-file-control.uploading .upload-file-delete {
  display: none;
}

.upload-progress {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
}

.upload-progress i {
  display: block;
  width: var(--upload-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--cyan));
  transition: width 180ms ease;
}

.upload-file-control.uploading .upload-progress {
  opacity: 1;
}

.upload-file-control.imported .upload-progress {
  opacity: 1;
}

.upload-file-control.imported .upload-progress i {
  width: 100%;
}

.audio-upload {
  border-color: rgba(173, 198, 255, 0.38);
  background: rgba(185, 206, 255, 0.065);
}

.uploaded-file {
  border-color: rgba(115, 231, 197, 0.28);
  background: rgba(115, 231, 197, 0.045);
}

.reference-upload {
  display: block;
}

.reference-state-card {
  width: 100%;
  min-height: 64px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.image-setup-card .reference-state-card {
  min-height: 64px;
}

.reference-state-card.uploaded {
  border-color: rgba(115, 231, 197, 0.28);
  background: rgba(115, 231, 197, 0.045);
}

.reference-thumb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #071512;
  background: linear-gradient(135deg, #c8fff0, var(--cyan));
  background-size: cover;
  background-position: center;
  font-size: 12px;
  font-weight: 900;
}

.reference-thumb.has-image {
  color: transparent;
}

.reference-state-card > span:not(.reference-thumb) {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reference-state-card strong,
.reference-state-card em,
.reference-state-card i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-state-card em,
.reference-state-card i {
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.reference-state-card i {
  justify-self: end;
  color: var(--primary);
}

.compact-import .import-row,
.compact-import .upload-file-control {
  min-height: 44px;
  padding: 8px 10px;
}

.compact-import .import-state {
  padding: 9px;
}

.import-row span,
.upload-file-control em,
.reference-card span,
.uploaded-file span,
.mini-player span,
.video-row p,
.script-card p,
.import-state p,
.precheck-card p,
.operation-state p,
.meter-card p,
.queue-row p,
.coverage-strip p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.reference-lyrics {
  display: grid;
  gap: 6px;
}

.reference-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reference-lyrics span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-lyrics-head span {
  min-width: 0;
}

.subtitle-file-button {
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 11px;
}

.reference-lyrics.has-subtitle-file .subtitle-file-button,
.reference-lyrics.has-subtitle-file textarea {
  display: none;
}

.subtitle-file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgba(65, 71, 85, 0.72);
  border-radius: 8px;
  color: var(--text);
  background: rgba(11, 12, 15, 0.34);
  padding: 12px;
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
}

.subtitle-file-status[hidden] {
  display: none;
}

.subtitle-file-status span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  text-transform: none;
}

.subtitle-file-status em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.subtitle-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.subtitle-file-status button {
  border: 1px solid rgba(65, 71, 85, 0.72);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.library-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.home-library {
  align-self: stretch;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(90, 96, 110, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 22, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.user-panel {
  min-width: 0;
  min-height: 0;
}

.user-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(90, 96, 110, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01)),
    linear-gradient(90deg, rgba(185, 206, 255, 0.04), transparent 70%),
    rgba(24, 25, 29, 0.68);
  box-shadow: none;
}

.user-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #08101f;
  background: linear-gradient(135deg, #d6e2ff, var(--primary-strong));
  font-size: 18px;
  font-weight: 900;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.user-head h2,
.user-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-head span[hidden] {
  display: none;
}

.user-head span,
.credit-meter span,
.usage-grid span {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.credit-meter,
.usage-grid div {
  border: 1px solid rgba(65, 71, 85, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  padding: 10px;
}

.credit-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credit-meter strong {
  display: block;
  margin-top: 2px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.usage-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.account-sync-guide {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid rgba(65, 71, 85, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 10px;
}

.account-sync-guide[hidden] {
  display: none;
}

.account-sync-head {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0 10px 0 0;
  text-align: left;
  color: inherit;
  white-space: normal;
}

.account-sync-head > div {
  min-width: 0;
}

.account-sync-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.account-sync-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-sync-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.account-sync-head p {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.account-sync-head .timeline-chevron {
  justify-self: end;
}

.account-sync-head[aria-expanded="true"] .timeline-chevron {
  transform: translateY(2px) rotate(225deg);
}

.account-bind-expanded {
  display: grid;
  gap: 7px;
}

.account-bind-expanded[hidden] {
  display: none;
}

.account-bind-form {
  display: grid;
  gap: 7px;
}

.account-bind-form[hidden] {
  display: none;
}

.account-bind-form label {
  display: grid;
  gap: 4px;
}

.account-bind-form label span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
}

.account-bind-form input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(65, 71, 85, 0.5);
  border-radius: 6px;
  color: var(--text);
  background: rgba(5, 6, 8, 0.26);
  padding: 0 8px;
  font-size: 12px;
  outline: none;
}

.account-bind-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 7px;
  align-items: end;
}

.account-bind-code-row .compact,
.account-bind-form > .compact {
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  font-size: 11px;
}

.account-bind-status {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.35;
}

.account-bind-status.is-error {
  color: #ffb0b0;
}

.account-bind-method {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(65, 71, 85, 0.38);
  padding-top: 9px;
}

.account-bind-method h4 {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.account-sync-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.35;
}

.section-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(65, 71, 85, 0.34);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 130, 156, 0.58) transparent;
}

.project-list::-webkit-scrollbar {
  width: 8px;
}

.project-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(116, 130, 156, 0.46);
  background-clip: padding-box;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(65, 71, 85, 0.34);
  border-radius: 0;
  background: transparent;
  padding: 12px 12px 12px 18px;
  min-height: 84px;
  cursor: default;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.project-row.previewable {
  cursor: pointer;
}

.project-row.new-song {
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.08), transparent 72%);
}

.project-row.importing {
  background: linear-gradient(90deg, rgba(115, 231, 197, 0.055), transparent 70%);
}

.project-row.playable {
  background: linear-gradient(90deg, rgba(173, 198, 255, 0.075), transparent 70%);
}

.project-row.empty {
  min-height: 110px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 72%),
    rgba(255, 255, 255, 0.01);
}

.project-row.loading {
  cursor: default;
}

.project-loading-avatar span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(224, 229, 238, 0.28);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: project-loading-spin 0.85s linear infinite;
}

@keyframes project-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.project-row.generating {
  background: linear-gradient(90deg, rgba(240, 193, 92, 0.07), transparent 74%);
}

.project-row:hover {
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.07), transparent 74%),
    rgba(255, 255, 255, 0.012);
}

.project-row.selected {
  background:
    linear-gradient(90deg, rgba(151, 185, 255, 0.12), transparent 75%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 0 1px rgba(151, 185, 255, 0.18);
}

.project-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: rgba(90, 96, 110, 0.45);
  opacity: 0;
}

.project-row.new-song::before {
  background: var(--primary);
  opacity: 1;
}

.project-row.generating::before {
  background: var(--warning);
  opacity: 1;
}

.project-row.importing::before {
  background: var(--cyan);
  opacity: 1;
}

.project-row.playable::before {
  background: var(--primary);
  opacity: 1;
}

.project-badge {
  width: 62px;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 206, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(198, 207, 226, 0.8);
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.project-badge-label {
  max-width: 54px;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 840;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row.generating .project-badge {
  border-color: rgba(240, 193, 92, 0.24);
  background: rgba(240, 193, 92, 0.075);
  color: var(--warning);
}

.project-row.importing .project-badge {
  border-color: rgba(115, 231, 197, 0.24);
  background: rgba(115, 231, 197, 0.065);
  color: var(--cyan);
}

.project-row.playable .project-badge {
  border-color: rgba(173, 198, 255, 0.22);
  background: rgba(173, 198, 255, 0.065);
  color: #d5e2ff;
}

.project-row:hover .project-badge,
.project-row.selected .project-badge {
  border-color: rgba(185, 206, 255, 0.28);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(232, 238, 255, 0.96);
  transform: translateY(-1px);
}

.project-row.generating .secondary-button {
  color: var(--warning);
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 126px;
}

.project-actions-with-delete {
  min-width: 154px;
  gap: 22px;
}

.project-edit-button {
  min-height: 28px;
  border: 1px solid rgba(185, 206, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.project-edit-button:hover {
  border-color: rgba(185, 206, 255, 0.34);
  background: rgba(185, 206, 255, 0.07);
  color: var(--text);
}

.project-delete-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 206, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(185, 196, 220, 0.64);
  padding: 0;
  line-height: 0;
}

.project-delete-placeholder {
  width: 28px;
  min-width: 28px;
  height: 28px;
  pointer-events: none;
}

.project-delete-button:hover {
  border-color: rgba(185, 206, 255, 0.28);
  background: rgba(185, 206, 255, 0.055);
  color: rgba(225, 232, 248, 0.9);
}

.project-delete-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.18;
  stroke-linecap: round;
}

.project-delete-confirm[hidden] {
  display: none;
}

.project-delete-confirm {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 18px;
}

.project-delete-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 5, 7, 0.62);
  backdrop-filter: blur(14px);
}

.project-delete-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(185, 206, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(18, 19, 22, 0.97);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.5);
  padding: 18px;
}

.project-delete-card h2 {
  font-size: 20px;
}

.project-delete-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.project-delete-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 14px;
}

.project-delete-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.project-delete-confirm-button {
  min-height: 32px;
  border: 1px solid rgba(185, 206, 255, 0.28);
  border-radius: 8px;
  background: rgba(185, 206, 255, 0.08);
  color: var(--text);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 780;
}

.project-delete-confirm-button:hover {
  border-color: rgba(185, 206, 255, 0.42);
  background: rgba(185, 206, 255, 0.13);
}

.editor-unsaved-confirm .project-delete-scrim {
  background:
    radial-gradient(circle at 50% 43%, rgba(185, 206, 255, 0.12), transparent 300px),
    rgba(4, 5, 7, 0.66);
  backdrop-filter: blur(18px);
}

.editor-unsaved-card {
  width: min(100%, 488px);
  gap: 20px;
  border-color: rgba(185, 206, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
    rgba(18, 19, 22, 0.98);
  box-shadow:
    0 28px 84px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.editor-unsaved-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.editor-unsaved-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 206, 255, 0.24);
  border-radius: 10px;
  background: rgba(185, 206, 255, 0.08);
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(76, 141, 255, 0.14);
}

.editor-unsaved-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.editor-unsaved-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.editor-unsaved-copy h2 {
  color: var(--text);
  font-size: 23px;
  line-height: 1.18;
  font-weight: 820;
}

.editor-unsaved-copy p {
  font-size: 14px;
  line-height: 1.55;
}

.editor-unsaved-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 206, 255, 0.18), transparent);
}

.editor-unsaved-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 0;
}

.storyboard-brief-modal .project-delete-scrim {
  background:
    radial-gradient(circle at 48% 44%, rgba(115, 231, 197, 0.1), transparent 320px),
    rgba(4, 5, 7, 0.68);
  backdrop-filter: blur(18px);
}

.storyboard-brief-card {
  width: min(100%, 720px);
  gap: 18px;
  border-color: rgba(115, 231, 197, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
    rgba(18, 19, 22, 0.98);
  box-shadow:
    0 30px 92px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.storyboard-brief-head {
  display: grid;
  gap: 8px;
}

.storyboard-brief-head span,
.storyboard-brief-grid span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.1;
  text-transform: uppercase;
}

.storyboard-brief-head h2 {
  color: var(--text);
  font-size: 25px;
  line-height: 1.18;
  font-weight: 840;
}

.storyboard-brief-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border: 1px solid rgba(115, 231, 197, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(115, 231, 197, 0.13), rgba(185, 206, 255, 0.065)),
    rgba(115, 231, 197, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 38px rgba(115, 231, 197, 0.08);
  color: var(--text);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 820;
}

.storyboard-brief-loading[hidden] {
  display: none;
}

.storyboard-brief-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(115, 231, 197, 0.24);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: storyboard-brief-spin 0.8s linear infinite;
}

@keyframes storyboard-brief-spin {
  to {
    transform: rotate(360deg);
  }
}

.storyboard-brief-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.storyboard-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.storyboard-brief-grid label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.storyboard-brief-grid textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(90, 96, 110, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}

.storyboard-brief-grid textarea:focus {
  border-color: rgba(115, 231, 197, 0.55);
  box-shadow: 0 0 0 3px rgba(115, 231, 197, 0.1);
}

.storyboard-brief-grid textarea:disabled {
  color: rgba(241, 246, 244, 0.62);
  border-color: rgba(90, 96, 110, 0.25);
  background: rgba(255, 255, 255, 0.03);
  cursor: wait;
}

.storyboard-brief-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}

.storyboard-brief-auto {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-self: start;
}

.storyboard-brief-auto[hidden] {
  display: none;
}

.storyboard-brief-auto p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.storyboard-brief-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.storyboard-brief-countdown {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  align-self: end;
  justify-self: start;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, rgba(18, 19, 22, 0.98) 73%, transparent 74%),
    conic-gradient(var(--cyan) var(--brief-progress), rgba(115, 231, 197, 0.14) 0);
  color: var(--text);
}

.storyboard-brief-countdown-copy {
  display: grid;
  place-items: center;
  gap: 2px;
  line-height: 1;
  transform: translateY(1px);
}

.storyboard-brief-countdown strong {
  display: block;
  line-height: 1;
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
  text-align: center;
}

.storyboard-brief-countdown-unit {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 760;
  text-align: center;
}

@media (max-width: 760px) {
  .storyboard-brief-card {
    padding: 18px;
  }

  .storyboard-brief-grid,
  .storyboard-brief-foot,
  .storyboard-brief-auto {
    grid-template-columns: 1fr;
  }

  .storyboard-brief-actions {
    justify-content: stretch;
  }

  .storyboard-brief-actions button {
    flex: 1;
  }
}

.editor-unsaved-button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
}

.editor-unsaved-button.discard {
  justify-self: start;
  border: 1px solid rgba(255, 138, 138, 0.16);
  background: rgba(255, 138, 138, 0.035);
  color: #ffc3c3;
}

.editor-unsaved-button.keep {
  border: 1px solid rgba(185, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.editor-unsaved-button.save {
  min-width: 126px;
  border: 1px solid rgba(185, 206, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.98), rgba(76, 141, 255, 0.96));
  box-shadow:
    0 12px 30px rgba(76, 141, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #071225;
}

.editor-unsaved-button:hover {
  transform: translateY(-1px);
}

.editor-unsaved-button.discard:hover {
  border-color: rgba(255, 138, 138, 0.28);
  background: rgba(255, 138, 138, 0.06);
}

.editor-unsaved-button.keep:hover {
  border-color: rgba(185, 206, 255, 0.32);
  background: rgba(255, 255, 255, 0.055);
}

.editor-unsaved-button.save:hover {
  background:
    linear-gradient(180deg, rgba(205, 219, 255, 1), rgba(86, 150, 255, 1));
}

.project-title-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) 24px 24px;
  justify-content: start;
  align-items: center;
  gap: 6px;
}

.project-title-line.locked {
  grid-template-columns: minmax(0, auto);
}

.project-title-line h3 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-title-input {
  width: min(240px, 100%);
  height: 30px;
  border: 1px solid rgba(185, 206, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 8px;
  font-size: 14px;
  font-weight: 780;
}

.project-icon-button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(202, 211, 232, 0.72);
  padding: 0;
  line-height: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.project-icon-button:hover {
  border-color: rgba(185, 206, 255, 0.18);
  background: rgba(185, 206, 255, 0.075);
  color: rgba(238, 243, 255, 0.96);
  transform: translateY(-1px);
}

.project-icon-button svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
  overflow: hidden;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateZ(0);
}

.project-title-edit.confirm {
  color: rgba(132, 226, 198, 0.9);
}

.project-favorite {
  opacity: 0.9;
}

.project-favorite.active {
  color: #d2ddff;
  opacity: 1;
}

.project-favorite.active svg {
  fill: currentColor;
  stroke-width: 1.35;
}

.project-progress {
  width: min(260px, 100%);
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-progress i {
  display: block;
  width: var(--project-progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warning), #ffe5a3);
}

.project-row h3 {
  font-size: 15px;
}

.project-row p,
.project-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(184, 189, 200, 0.82);
  font-size: 12px;
  line-height: 1.35;
  margin: 4px 0 0;
}

.project-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: var(--tight-shadow);
}

.project-thumb {
  min-height: 138px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)),
    linear-gradient(135deg, rgba(173, 198, 255, 0.25), rgba(75, 142, 255, 0.05)),
    var(--surface-high);
}

.project-thumb i {
  position: absolute;
  inset: 16px 18px 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2)),
    rgba(0, 0, 0, 0.12);
}

.project-thumb.summer {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)),
    linear-gradient(135deg, rgba(120, 243, 207, 0.2), rgba(75, 142, 255, 0.07)),
    var(--surface-high);
}

.project-thumb.road {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)),
    linear-gradient(135deg, rgba(246, 199, 104, 0.18), rgba(75, 142, 255, 0.07)),
    var(--surface-high);
}

.project-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

/* Split from Web Studio static styles. */

.shot-timeline {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  block-size: 306px;
  border: 1px solid rgba(90, 96, 110, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 18%, transparent 46%),
    radial-gradient(circle at 18% 0%, rgba(185, 206, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(24, 26, 31, 0.96), rgba(11, 12, 15, 0.98));
  overflow: hidden;
  padding: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 -10px 28px rgba(0, 0, 0, 0.22);
  transition: block-size 240ms ease, min-height 240ms ease;
}

.shot-timeline::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.42), rgba(115, 231, 197, 0.16), transparent 72%);
  pointer-events: none;
}

.timeline-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgba(92, 101, 118, 0.36);
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.018);
  padding: 8px 10px 7px;
}

.timeline-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.timeline-head p {
  display: none;
}

.timeline-actions {
  display: flex;
  min-width: 30px;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.timeline-actions .compact {
  min-width: 72px;
}

.timeline-toggle {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(112, 121, 139, 0.38);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    rgba(5, 6, 8, 0.34);
  color: var(--muted);
  padding: 0;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.timeline-toggle:hover {
  color: var(--text);
  border-color: rgba(185, 206, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.11), rgba(185, 206, 255, 0.035)),
    rgba(5, 6, 8, 0.36);
  transform: translateY(-1px);
}

.timeline-collapse-icon,
.timeline-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.shot-timeline.collapsed {
  block-size: 52px;
}

.shot-timeline.collapsed .timeline-collapse-icon,
.shot-timeline.collapsed .timeline-chevron {
  transform: translateY(2px) rotate(225deg);
}

.shot-timeline.collapsed .shot-editor {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.shots {
  display: flex;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0;
  padding: 0 0 2px;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot-empty {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed rgba(90, 96, 110, 0.55);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  white-space: nowrap;
}

.shot-empty strong {
  color: var(--text);
  font-size: 12px;
}

.shot-empty span {
  font-size: 12px;
}

.shot-tab {
  flex: 0 0 156px;
  width: 156px;
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 2px;
  gap: 2px 7px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.026);
  padding: 5px 9px;
  text-align: left;
  color: var(--muted);
}

.shot-tab.active {
  background: rgba(185, 206, 255, 0.075);
}

.shot-tab.selected {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.13), rgba(185, 206, 255, 0.04));
}

.shot-tab i {
  grid-column: 1 / -1;
  width: 100%;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.shot-tab.selected i {
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(185, 206, 255, 0.1);
}

.shot-tab > span {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.052);
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
}

.shot-tab strong,
.shot-tab small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-editor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 34%),
    rgba(5, 6, 8, 0.22);
  overflow: hidden;
  padding: 8px 10px 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 240ms ease;
}

.shot-editor-empty {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(90, 96, 110, 0.48);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.shot-editor-empty h3 {
  color: var(--text);
  font-size: 15px;
}

.shot-editor-empty p {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.shot-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
}

.shot-title-row {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.shot-title-row h3 {
  flex: 1 1 220px;
  margin-right: 4px;
}

.shot-title-row label {
  min-height: 26px;
  display: grid;
  grid-template-columns: auto 78px;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(65, 71, 85, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 3px 6px 3px 8px;
}

.shot-title-row span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.shot-title-row input {
  width: 100%;
  min-height: 24px;
  border: 1px solid rgba(65, 71, 85, 0.56);
  border-radius: 6px;
  background: rgba(11, 12, 15, 0.32);
  color: var(--text);
  padding: 0 7px;
  outline: none;
  font-size: 12px;
  font-weight: 820;
}

.new-shot-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(115, 231, 197, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(115, 231, 197, 0.075), rgba(185, 206, 255, 0.035)),
    rgba(8, 10, 12, 0.4);
  padding: 10px;
}

.new-shot-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.new-shot-card label span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
}

.new-shot-card input {
  min-height: 34px;
  border: 1px solid rgba(90, 96, 110, 0.54);
  border-radius: 7px;
  background: rgba(11, 12, 15, 0.34);
  padding: 0 10px;
  outline: none;
}

.new-shot-time-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.new-shot-card > div:not(.new-shot-time-grid) {
  display: flex;
  gap: 8px;
  align-items: center;
}

.storyboard-state-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(185, 206, 255, 0.3);
  border-radius: 999px;
  background: rgba(185, 206, 255, 0.08);
  padding: 0 9px;
}

.shot-editor-grid {
  display: grid;
  grid-template-columns: 96px 96px minmax(130px, 0.6fr) minmax(220px, 1fr);
  gap: 8px;
}

.shot-flow,
.shot-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.shot-flow-step {
  display: grid;
  grid-template-rows: auto minmax(140px, 1fr);
  gap: 7px;
  border: 1px solid rgba(65, 71, 85, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 11, 14, 0.28);
  min-height: 0;
  padding: 7px;
}

.shot-flow-step > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(185, 206, 255, 0.1);
}

.shot-flow-step.done > span {
  color: #071512;
  background: var(--cyan);
}

.shot-flow-step.active {
  border-color: rgba(185, 206, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(185, 206, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(10, 11, 14, 0.32);
}

.shot-flow-step.locked {
  border-color: rgba(65, 71, 85, 0.28);
  background: rgba(10, 11, 14, 0.22);
}

.shot-flow-step.waiting {
  opacity: 0.78;
}

.shot-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 30px;
}

.shot-step-head strong,
.shot-step-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-flow-step p {
  font-size: 12px;
  line-height: 1.35;
}

.shot-flow-step textarea {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  border: 1px solid rgba(65, 71, 85, 0.56);
  border-radius: 7px;
  background: rgba(11, 12, 15, 0.32);
  color: var(--text);
  padding: 7px 8px;
  outline: none;
  resize: none;
  line-height: 1.4;
  font-size: 13px;
}

.shot-sequence {
  min-height: 0;
}

.shot-flow-step textarea:disabled {
  border-color: rgba(65, 71, 85, 0.34);
  background: rgba(255, 255, 255, 0.024);
  color: rgba(240, 239, 242, 0.58);
  -webkit-text-fill-color: rgba(240, 239, 242, 0.58);
}

.shot-flow-step.active textarea {
  min-height: 0;
}

.shot-flow-step button {
  justify-self: end;
}

.shot-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.asset-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.asset-preview i {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 206, 255, 0.2), rgba(75, 142, 255, 0.06)),
    var(--surface-high);
  border: 1px solid rgba(185, 206, 255, 0.12);
}

.shot-editor-grid label {
  display: grid;
  gap: 6px;
}

.shot-editor-grid .wide {
  grid-column: span 2;
}

.shot-editor-grid input,
.shot-editor-grid textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(65, 71, 85, 0.65);
  border-radius: 8px;
  background: rgba(11, 12, 15, 0.34);
  padding: 0 10px;
  outline: none;
}

.shot-editor-grid textarea {
  min-height: 64px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

.work-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  border: 1px solid rgba(90, 96, 110, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    rgba(16, 17, 20, 0.62);
  overflow: hidden;
  box-shadow: none;
}

.work-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent 38%, var(--cyan));
  opacity: 0.65;
  pointer-events: none;
}

.work-context {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(65, 71, 85, 0.26);
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.045), transparent 70%);
  padding: 11px 14px 10px;
}

.work-context span {
  color: var(--dim);
  font-size: 10px;
  line-height: 1;
  font-weight: 720;
  text-transform: uppercase;
}

.editor-status-strip {
  display: none;
}

.editor-status-strip strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 720;
}

.work-context h2 {
  font-size: 16px;
  font-weight: 780;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(65, 71, 85, 0.24);
  background: rgba(0, 0, 0, 0.04);
}

.panel-tabs .panel-tab {
  min-width: 0;
  width: 100%;
  padding-inline: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
  font-size: 13px;
  font-weight: 760;
  border-radius: 7px;
}

.panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.panel-content .inline-actions {
  position: sticky;
  bottom: -12px;
  z-index: 3;
  justify-content: center;
  margin: auto -14px -12px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(65, 71, 85, 0.32);
  background:
    linear-gradient(180deg, rgba(24, 25, 29, 0.84), rgba(9, 10, 13, 0.98)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 -16px 28px rgba(0, 0, 0, 0.2);
}

.panel-content .inline-actions .primary-button,
.panel-content .inline-actions .secondary-button {
  min-width: 152px;
  min-height: 36px;
  font-size: 13px;
}

/* Split from Web Studio static styles. */

@font-face {
  font-family: "Source Han Sans SC";
  src: url("/app/v1/generated-images/lickmv/prod/theme-runtime/vnext-ops-20260429/fonts/NotoSansSC-LyricCore-v1.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "LXGW WenKai";
  src: url("/app/v1/generated-images/lickmv/prod/theme-runtime/vnext-ops-20260429/fonts/LXGWWenKai-LyricCore-v1.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Smiley Sans Oblique";
  src: url("/studio/assets/fonts/SmileySans-Oblique.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Ma Shan Zheng";
  src: url("/studio/assets/fonts/MaShanZheng-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Source Han Serif SC";
  src: url("/app/v1/generated-images/lickmv/prod/theme-runtime/vnext-ops-20260429/fonts/NotoSerifSC-LyricCore-v1.ttf") format("truetype");
  font-display: swap;
}

.player-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border: 1px solid rgba(90, 96, 110, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)),
    rgba(16, 17, 20, 0.58);
  overflow: hidden;
  box-shadow: none;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.42), transparent 68%);
  pointer-events: none;
  z-index: 2;
}

.canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 18%, rgba(185, 206, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(115, 231, 197, 0.07), transparent 24%),
    linear-gradient(145deg, rgba(185, 206, 255, 0.11), rgba(0, 0, 0, 0.18)),
    var(--surface-high);
  overflow: hidden;
}

.canvas-frame {
  position: relative;
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1px solid rgba(240, 239, 242, 0.11);
  background-image:
    var(--canvas-image-url, none),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.52)),
    linear-gradient(135deg, rgba(240, 239, 242, 0.08), rgba(185, 206, 255, 0.13));
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  z-index: 1;
}

.canvas[data-aspect-ratio="16:9"] .canvas-frame,
.canvas[data-aspect-ratio="4:3"] .canvas-frame {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.canvas[data-aspect-ratio="1:1"] .canvas-frame {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.canvas[data-panel="video"],
.canvas[data-panel="export"] {
  background:
    radial-gradient(circle at 52% 22%, rgba(240, 193, 92, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(185, 206, 255, 0.12), rgba(0, 0, 0, 0.22)),
    var(--surface-high);
}

.canvas-art {
  position: absolute;
  inset: 0;
}

.canvas-video {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  display: none;
  object-fit: cover;
  background: #000;
  clip-path: inset(0 round 10px);
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1;
}

.canvas-frame.has-canvas-video {
  background: #000;
}

.canvas-frame.has-canvas-video .canvas-video {
  display: block;
}

.canvas-frame.loading-canvas-video .canvas-video {
  display: none;
}

.canvas-frame.has-canvas-image .canvas-art {
  display: none;
}

.canvas-frame.has-canvas-video .canvas-art {
  display: none;
}

.canvas-art::before {
  content: "";
  position: absolute;
  inset: 16% 18% auto;
  height: 34%;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(240, 239, 242, 0.18), rgba(185, 206, 255, 0.04));
}

.canvas-art::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 18%;
  height: 28%;
  border-radius: 10px 10px 999px 999px;
  background: linear-gradient(180deg, rgba(185, 206, 255, 0.1), rgba(0, 0, 0, 0.08));
}

.canvas-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.55;
}

.canvas-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--primary);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.storyboard-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(430px, calc(100% - 32px));
  display: grid;
  gap: 8px;
  border: 1px solid rgba(185, 206, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 21, 28, 0.84), rgba(7, 8, 12, 0.58)),
    rgba(10, 12, 16, 0.68);
  padding: 11px 12px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  z-index: 4;
}

.storyboard-overlay {
  display: none;
}

.canvas[data-panel="export"][data-compose-subtitles="false"] .subtitle-line {
  display: none;
}

.storyboard-overlay::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.storyboard-overlay div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.storyboard-overlay em {
  min-width: 0;
  justify-self: start;
  color: var(--primary);
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}

.storyboard-overlay strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.storyboard-toggle {
  justify-self: end;
  width: auto;
  min-width: 46px;
  min-height: 24px;
  border: 1px solid rgba(185, 206, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.storyboard-overlay.collapsed {
  width: auto;
  min-width: 0;
  gap: 0;
  padding-bottom: 11px;
}

.storyboard-overlay.collapsed strong {
  display: none;
}

.subtitle-line {
  position: absolute;
  left: 50%;
  bottom: max(var(--subtitle-safe-area, 6%), var(--subtitle-bottom, 9%));
  transform: translateX(-50%);
  width: min(var(--subtitle-max-width, 86%), 660px);
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  padding: 8px 14px;
  text-align: center;
  font-size: var(--subtitle-font-size, 19px);
  font-weight: 760;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  z-index: 5;
}

.subtitle-line.subtitle-font-system,
.subtitle-preview-strip .subtitle-font-system {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.subtitle-line.subtitle-font-source,
.subtitle-preview-strip .subtitle-font-source {
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  font-weight: 820;
}

.subtitle-line.subtitle-font-kai,
.subtitle-preview-strip .subtitle-font-kai {
  font-family: "LXGW WenKai", "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-weight: 760;
}

.subtitle-line.subtitle-font-rounded,
.subtitle-preview-strip .subtitle-font-rounded {
  font-family: "Smiley Sans Oblique", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-weight: 760;
}

.subtitle-line.subtitle-font-hand,
.subtitle-preview-strip .subtitle-font-hand {
  font-family: "Ma Shan Zheng", "LXGW WenKai", "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-weight: 400;
}

.subtitle-line.subtitle-font-song,
.subtitle-preview-strip .subtitle-font-song {
  font-family: "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 760;
}

.subtitle-preview-strip .subtitle-size-small {
  font-size: 12px;
}

.subtitle-preview-strip .subtitle-size-medium {
  font-size: 14px;
}

.subtitle-preview-strip .subtitle-size-large {
  font-size: 16px;
}

.subtitle-preview-strip .subtitle-size-xlarge {
  font-size: 18px;
}

.subtitle-line.subtitle-style-outline,
.subtitle-preview-strip .subtitle-style-outline {
  background: transparent;
  text-shadow:
    0 2px 0 #000,
    0 -1px 0 #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 0 8px rgba(0, 0, 0, 0.85);
  box-shadow: none;
}

.subtitle-line.subtitle-style-boxed,
.subtitle-preview-strip .subtitle-style-boxed {
  background: rgba(0, 0, 0, 0.66);
  text-shadow: none;
}

.subtitle-line.subtitle-style-yellow,
.subtitle-preview-strip .subtitle-style-yellow {
  color: #ffe36b;
  background: transparent;
  text-shadow:
    0 2px 0 #000,
    0 -1px 0 #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 0 10px rgba(0, 0, 0, 0.82);
  box-shadow: none;
}

.subtitle-line.subtitle-style-neon,
.subtitle-preview-strip .subtitle-style-neon {
  color: #bde8ff;
  background: transparent;
  text-shadow:
    0 0 4px rgba(70, 181, 255, 0.95),
    0 0 13px rgba(70, 181, 255, 0.72),
    0 1px 0 #001018;
  box-shadow: none;
}

.subtitle-line.subtitle-style-band,
.subtitle-preview-strip .subtitle-style-band {
  width: min(92%, 720px);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.14));
  text-shadow: none;
  box-shadow: none;
}

.subtitle-line.subtitle-style-bilingual,
.subtitle-preview-strip .subtitle-style-bilingual {
  min-height: 54px;
  align-content: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.58);
  text-shadow: none;
}

.subtitle-line.subtitle-style-bilingual::after,
.subtitle-preview-strip .subtitle-style-bilingual::after {
  content: "Still waiting for a light through the crowd";
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-line.subtitle-anim-none,
.subtitle-preview-strip .subtitle-anim-none {
  animation: none;
}

.subtitle-line.subtitle-anim-fade,
.subtitle-preview-strip .subtitle-anim-fade {
  animation: subtitle-fade-demo 1.5s ease-in-out infinite alternate;
}

.subtitle-line.subtitle-anim-rise,
.subtitle-preview-strip .subtitle-anim-rise {
  animation: subtitle-rise-demo 1.7s ease-in-out infinite alternate;
}

.subtitle-line.subtitle-anim-pop,
.subtitle-preview-strip .subtitle-anim-pop {
  animation: subtitle-pop-demo 1.4s ease-in-out infinite alternate;
}

.subtitle-line.subtitle-anim-type,
.subtitle-preview-strip .subtitle-anim-type {
  position: relative;
}

.subtitle-line.subtitle-anim-type::before,
.subtitle-preview-strip .subtitle-anim-type::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.62));
  animation: subtitle-type-demo 1.8s steps(4) infinite alternate;
  pointer-events: none;
}

@keyframes subtitle-fade-demo {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 1;
  }
}

@keyframes subtitle-rise-demo {
  from {
    opacity: 0.72;
    translate: 0 5px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes subtitle-pop-demo {
  from {
    scale: 0.98;
  }

  to {
    scale: 1.02;
  }
}

@keyframes subtitle-type-demo {
  from {
    width: 52%;
  }

  to {
    width: 0;
  }
}

.player-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border-top: 1px solid rgba(65, 71, 85, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(0, 0, 0, 0.1)),
    rgba(0, 0, 0, 0.1);
}

.play-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #08101f;
  background: linear-gradient(135deg, #dce7ff, #77a7ff);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(76, 141, 255, 0.22);
}

.play-button:disabled {
  color: rgba(230, 234, 241, 0.38);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  cursor: not-allowed;
}

.play-button.ready {
  background: linear-gradient(135deg, #f4f8ff, #86d9a8);
  box-shadow: 0 10px 22px rgba(80, 190, 124, 0.22);
}

.play-button.small {
  width: 36px;
  height: 36px;
}

.playback-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.playback-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.playback-summary strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1.05;
  font-weight: 860;
}

.playback-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(65, 71, 85, 0.56);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
}

.playback-progress i {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(185, 206, 255, 0.92), rgba(76, 141, 255, 0.92));
}

.playback-progress b {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 206, 255, 0.14);
}

/* Split from Web Studio static styles. */

.billing-view {
  min-height: 0;
  place-items: start center;
}

.billing-shell {
  width: min(100%, 940px);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(90, 96, 110, 0.22);
  background:
    linear-gradient(105deg, rgba(185, 206, 255, 0.06), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(13, 14, 17, 0.76);
  padding: 18px;
  overflow: hidden;
}

.billing-head {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.billing-head span,
.billing-summary-card span,
.billing-product-card span,
.billing-footer {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
}

.billing-head h1 {
  margin-top: 2px;
  font-size: 28px;
}

.billing-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.billing-summary-card,
.billing-product-card {
  border: 1px solid rgba(90, 96, 110, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(24, 25, 29, 0.68);
  padding: 16px;
}

.billing-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.08), transparent 46%),
    rgba(24, 25, 29, 0.58);
}

.billing-summary-card strong {
  display: block;
  margin-top: 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
}

.billing-balance {
  display: grid;
  gap: 5px;
  min-width: 180px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 18px;
  text-align: right;
}

.billing-balance b {
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.billing-products {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.billing-product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-height: 148px;
  overflow: hidden;
}

.billing-empty-card {
  grid-column: 1 / -1;
  min-height: 110px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed rgba(90, 96, 110, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.billing-empty-card span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 760;
}

.billing-product-card h2 {
  margin-top: 8px;
  font-size: 26px;
}

.billing-product-card p {
  margin-top: 6px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 820;
}

.billing-product-card .primary-button {
  width: 100%;
  min-height: 42px;
}

.billing-ledger-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

.billing-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.billing-ledger-head h2 {
  font-size: 16px;
}

.billing-ledger-head span,
.billing-ledger-empty,
.billing-ledger-row span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 760;
}

.billing-ledger {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.billing-ledger-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(90, 96, 110, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.016);
}

.billing-ledger-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(90, 96, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 9px 12px;
}

.billing-ledger-row strong,
.billing-ledger-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-ledger-row strong {
  font-size: 13px;
}

.billing-ledger-row b {
  color: var(--cyan);
  font-size: 15px;
}

.billing-ledger-row.out b {
  color: var(--warning);
}

.billing-footer {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.billing-payment-modal[hidden] {
  display: none;
}

.billing-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.billing-payment-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(90, 96, 110, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(185, 206, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(18, 20, 26, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  padding: 18px;
}

.billing-payment-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.billing-payment-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 850;
}

.billing-provider-state,
.billing-qr-state,
.billing-confirming-state,
.billing-success-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.billing-provider-state strong,
.billing-qr-state strong,
.billing-confirming-state strong,
.billing-success-state strong {
  font-size: 15px;
}

.billing-provider-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.billing-provider-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(90, 96, 110, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 14px;
  text-align: left;
}

.billing-provider-button i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-style: normal;
  font-weight: 900;
}

.billing-provider-button.wechat i {
  background: #19bf5d;
}

.billing-provider-button.alipay_qr i,
.billing-provider-button.alipay i {
  background: #1677ff;
}

.billing-provider-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 820;
}

.billing-provider-button b {
  color: var(--muted);
  font-size: 20px;
}

.billing-payment-price {
  display: grid;
  gap: 4px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 780;
}

.billing-payment-price b,
.billing-qr-state b,
.billing-confirming-state b,
.billing-success-state b {
  color: var(--primary);
  font-size: 20px;
}

.billing-qr-state span,
.billing-qr-state em,
.billing-confirming-state span,
.billing-success-state span {
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.billing-qr-state .billing-qr-countdown {
  min-width: 138px;
  border: 1px solid rgba(185, 206, 255, 0.22);
  border-radius: 999px;
  background: rgba(185, 206, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
  padding: 6px 10px;
}

.billing-qr-image {
  width: 180px;
  height: 180px;
  border: 8px solid rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.billing-qr-expired-box {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
}

.billing-payment-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-payment-actions .primary-button,
.billing-payment-actions .secondary-button {
  width: 100%;
  min-height: 42px;
}

.billing-qr-state:not(.expired) .billing-payment-actions {
  grid-template-columns: minmax(0, 1fr);
}

.billing-confirming-state i {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(185, 206, 255, 0.24);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: billing-spin 900ms linear infinite;
}

.billing-success-state i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #35d477;
  color: white;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
}

.billing-success-state.failed i {
  background: var(--danger);
}

.billing-success-state .primary-button {
  width: 100%;
  min-height: 42px;
}

@keyframes billing-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Split from Web Studio static styles. */

.user-links {
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 0;
}

.user-links button {
  min-height: 34px;
  border: 0;
  border-top: 1px solid rgba(65, 71, 85, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 10px;
  font-weight: 780;
}

.panel-content .inline-actions [data-action="download-video"] {
  text-decoration: none;
}

.panel-content .inline-actions [data-action="compose-video"].compact {
  min-width: 118px;
  padding-inline: 12px;
}

.api-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(115, 231, 197, 0.26);
  border-radius: 8px;
  background: rgba(115, 231, 197, 0.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.api-notice span {
  min-width: 0;
  flex: 1;
}

.api-notice i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(115, 231, 197, 0.1);
}

.api-notice.loading i {
  animation: apiPulse 1s ease-in-out infinite;
}

.api-notice.error {
  border-color: rgba(255, 138, 138, 0.3);
  background: rgba(255, 138, 138, 0.08);
}

.api-notice.error i {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 138, 138, 0.1);
}

.api-notice.hint {
  border-color: rgba(240, 193, 92, 0.22);
  background: rgba(240, 193, 92, 0.06);
  color: rgba(237, 242, 255, 0.86);
}

.api-notice.hint i {
  background: rgba(240, 193, 92, 0.9);
  box-shadow: 0 0 0 5px rgba(240, 193, 92, 0.08);
}

.api-notice-close {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(237, 242, 255, 0.58);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.api-notice-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.credit-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(240, 193, 92, 0.34);
  border-radius: 8px;
  background: rgba(240, 193, 92, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.credit-alert span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insufficient-credits-modal[hidden] {
  display: none;
}

.insufficient-credits-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 5, 7, 0.62);
  backdrop-filter: blur(14px);
}

.insufficient-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(240, 193, 92, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(240, 193, 92, 0.1), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(18, 19, 22, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  padding: 18px;
}

.insufficient-head,
.insufficient-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insufficient-head span,
.insufficient-meter span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.insufficient-head .icon-button {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.insufficient-card h2 {
  font-size: 24px;
}

.insufficient-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.insufficient-meter div {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(90, 96, 110, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 12px;
}

.insufficient-meter strong {
  font-size: 22px;
  line-height: 1;
}

.insufficient-meter b {
  color: var(--warning);
}

.insufficient-actions {
  justify-content: flex-end;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 6, 0.68);
  backdrop-filter: blur(16px);
}

.auth-overlay.is-open {
  display: grid;
}

.auth-dialog {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(247, 239, 226, 0.18);
  border-radius: 12px;
  background: radial-gradient(circle at 88% 0%, rgba(76, 141, 255, 0.13), transparent 18rem), rgba(14, 18, 18, 0.96);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.5);
}

.auth-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.auth-dialog h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--outline-soft);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font: inherit;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-method,
.auth-submit,
.auth-email-back,
.auth-send-code {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.auth-method {
  width: 100%;
  border: 1px solid transparent;
  padding: 0 22px;
  text-decoration: none;
}

.auth-button-content {
  width: min(244px, 100%);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.auth-brand-icon,
.auth-email-icon {
  justify-self: center;
}

.auth-brand-icon {
  width: 31px;
  height: 31px;
}

.auth-wechat {
  color: #03140a;
  background: linear-gradient(135deg, #07c160, #41e389);
  box-shadow: 0 16px 36px rgba(7, 193, 96, 0.18);
}

.auth-google {
  color: #191b1f;
  background: #fff;
}

.auth-email-choice {
  color: var(--text);
  border-color: rgba(88, 242, 207, 0.28);
  background: rgba(88, 242, 207, 0.08);
}

.auth-email-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 242, 207, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(88, 242, 207, 0.13);
}

.auth-email-icon svg {
  width: 21px;
  height: 21px;
}

.auth-wechat.is-disabled,
.auth-google.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.auth-email-fields[hidden] {
  display: none;
}

.auth-email-fields {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--outline-soft);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
}

.auth-field input:focus {
  outline: 2px solid rgba(88, 242, 207, 0.34);
  border-color: rgba(88, 242, 207, 0.42);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
  align-items: end;
}

.auth-send-code {
  min-width: 118px;
  border: 1px solid rgba(88, 242, 207, 0.26);
  color: var(--text);
  background: rgba(88, 242, 207, 0.08);
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-send-code:disabled {
  cursor: default;
  opacity: 0.58;
}

.auth-submit {
  border: 0;
  color: #0b0d0c;
  background: linear-gradient(135deg, var(--cyan), #59c8ff, var(--primary-strong));
}

.auth-email-actions {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.auth-email-back {
  min-height: 50px;
  border: 1px solid var(--outline-soft);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.auth-submit {
  min-height: 50px;
}

.auth-note {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.auth-note[hidden] {
  display: none;
}

.auth-note.is-error {
  color: #ffb7ac;
}

.home-api-notice {
  margin-top: 2px;
}

.mini-player,
.script-card,
.setup-block,
.operation-state,
.meter-card,
.coverage-strip,
.export-grid div,
.panel-summary div {
  border: 1px solid rgba(65, 71, 85, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  padding: 12px;
}

.panel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.image-panel-section {
  width: 100%;
}

.image-setup-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-color: rgba(65, 71, 85, 0.24);
  background: rgba(255, 255, 255, 0.018);
}

.image-setup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.image-setup-head > div {
  min-width: 0;
}

.image-setup-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.image-setup-actions .primary-button,
.image-setup-actions .secondary-button {
  min-height: 30px;
  padding: 0 10px;
}

.image-confirm-button {
  border-color: rgba(185, 206, 255, 0.24);
  background: rgba(185, 206, 255, 0.07);
  color: var(--muted);
  box-shadow: none;
}

.image-confirm-button:not(:disabled):hover {
  border-color: rgba(185, 206, 255, 0.38);
  background: rgba(185, 206, 255, 0.11);
  color: var(--text);
}

.panel-summary.compact div {
  min-height: 58px;
  padding: 9px 10px;
}

.panel-summary span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.subtitle-list,
.subtitle-table,
.storyboard-list,
.video-list,
.image-queue,
.image-gallery,
.export-checklist {
  display: grid;
  gap: 8px;
}

.generation-record-list {
  flex: 1 1 160px;
  align-content: start;
  grid-auto-rows: minmax(124px, auto);
  min-height: 0;
  overflow-y: auto;
  padding-top: 6px;
  padding-right: 4px;
  padding-bottom: 2px;
  padding-left: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 130, 156, 0.58) transparent;
}

.image-gallery.generation-record-list {
  padding-right: 0;
}

.generation-record-list::-webkit-scrollbar {
  width: 8px;
}

.generation-record-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(116, 130, 156, 0.46);
  background-clip: padding-box;
}

.compose-timeline::-webkit-scrollbar {
  width: 8px;
}

.compose-timeline::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.compose-timeline::-webkit-scrollbar-thumb {
  border: 2px solid rgba(11, 12, 15, 0.34);
  border-radius: 999px;
  background: rgba(148, 157, 178, 0.42);
  background-clip: padding-box;
}

.compose-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(185, 206, 255, 0.62);
}

.subtitle-row,
.subtitle-edit-row,
.storyboard-list label,
.video-row,
.queue-row,
.export-checklist button,
.subtitle-style-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(65, 71, 85, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 10px;
  text-align: left;
}

.image-gallery.generation-record-list .image-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 124px;
  border: 1px solid rgba(65, 71, 85, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 14px 16px;
  padding-right: 92px;
}

.video-list.generation-record-list .video-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 132px;
  border: 1px solid rgba(65, 71, 85, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 12px 16px;
  padding-right: 92px;
}

.image-status-badge,
.video-status-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  max-width: min(46%, 142px);
  overflow: hidden;
  border: 1px solid rgba(65, 71, 85, 0.42);
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.72);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 840;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-item.done .image-status-badge {
  border-color: rgba(115, 231, 197, 0.32);
  background: rgba(115, 231, 197, 0.1);
  color: var(--cyan);
}

.image-item.ready .image-status-badge {
  border-color: rgba(185, 206, 255, 0.34);
  background: rgba(185, 206, 255, 0.09);
  color: var(--primary);
}

.image-item.waiting .image-status-badge {
  border-color: rgba(90, 96, 110, 0.36);
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim);
}

.video-row.done .video-status-badge {
  border-color: rgba(115, 231, 197, 0.32);
  background: rgba(115, 231, 197, 0.1);
  color: var(--cyan);
}

.video-row.generating .video-status-badge {
  border-color: rgba(240, 193, 92, 0.26);
  background: rgba(240, 193, 92, 0.08);
  color: var(--warning);
}

.compose-material-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  max-width: min(46%, 142px);
  overflow: hidden;
  border: 1px solid rgba(65, 71, 85, 0.42);
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.72);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 840;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-item > div,
.video-row > div,
.queue-row > div {
  min-width: 0;
}

.image-item strong,
.video-row strong,
.queue-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-item.active {
  border-color: rgba(173, 198, 255, 0.45);
  background: rgba(185, 206, 255, 0.08);
}

.image-item.generating {
  border-color: rgba(185, 206, 255, 0.42);
  background: rgba(185, 206, 255, 0.06);
}

.image-gallery.generation-record-list .image-item.selected,
.video-list.generation-record-list .video-row.selected,
.compose-material-row.selected {
  border-color: rgba(185, 206, 255, 0.66);
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.12), rgba(185, 206, 255, 0.025)),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 3px 0 0 rgba(185, 206, 255, 0.86),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.image-item.done p {
  color: var(--cyan);
}

.image-item.waiting p {
  color: var(--warning);
}

.image-gallery.generation-record-list .image-thumb,
.video-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 206, 255, 0.2), rgba(75, 142, 255, 0.06)),
    var(--surface-high);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(185, 206, 255, 0.12);
}

.image-gallery.generation-record-list .image-thumb,
.video-list.generation-record-list .video-thumb {
  width: 92px;
  height: 92px;
}

.video-thumb.done {
  border-color: rgba(68, 214, 160, 0.34);
}

.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #000;
}

.video-thumb.has-video::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.42));
  z-index: 1;
  pointer-events: none;
}

.video-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(8, 16, 31, 0.72);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.video-thumb-play i {
  display: block;
  margin-left: 2px;
  font-size: 17px;
  font-style: normal;
  line-height: 1;
}

.video-thumb-play:hover {
  border-color: rgba(115, 231, 197, 0.92);
  background: rgba(8, 22, 33, 0.86);
}

.image-thumb.empty {
  background:
    linear-gradient(135deg, rgba(185, 206, 255, 0.14), rgba(115, 231, 197, 0.045)),
    rgba(255, 255, 255, 0.025);
}

.image-thumb.generating::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(185, 206, 255, 0.18);
  border-top-color: rgba(115, 231, 197, 0.92);
  border-radius: 999px;
  animation: studio-spin 0.9s linear infinite;
}

.video-thumb.generating::after {
  content: "";
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(185, 206, 255, 0.18);
  border-top-color: rgba(115, 231, 197, 0.92);
  border-radius: 999px;
  animation: studio-spin 0.9s linear infinite;
}

@keyframes studio-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-thumb span,
.video-thumb span,
.compose-material-preview span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  min-width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  z-index: 2;
}

.image-item .row-actions,
.video-row .row-actions {
  grid-column: auto;
  margin-top: 0;
}

.record-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 12px;
  line-height: 1.35;
}

.record-copy {
  display: grid;
  gap: 2px;
}

.image-gallery.generation-record-list .record-copy,
.video-list.generation-record-list .record-copy {
  width: 100%;
  max-width: none;
}

.record-copy em {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  max-height: 2.7em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clip-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.clip-status-row span {
  width: auto;
  min-width: 0;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(185, 206, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.row-actions button {
  min-height: 28px;
  border: 1px solid rgba(65, 71, 85, 0.46);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 760;
}

.row-actions button:not(:disabled) {
  color: var(--text);
}

.row-actions button:disabled {
  opacity: 0.42;
}

.gate-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.gate-card strong,
.gate-card p,
.selected-context strong,
.precheck-card strong,
.precheck-card p {
  min-width: 0;
}

.gate-card.ready {
  border-color: rgba(115, 231, 197, 0.36);
  background: rgba(115, 231, 197, 0.06);
}

.gate-card.locked {
  border-color: rgba(240, 193, 92, 0.28);
  background: rgba(240, 193, 92, 0.05);
}

.gate-card.ready strong {
  color: var(--cyan);
}

.gate-card.locked strong {
  color: var(--warning);
}

.progress-line {
  position: relative;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.progress-line i {
  position: absolute;
  inset: 0 76% 0 0;
  background: rgba(185, 206, 255, 0.45);
}

.progress-line.done i {
  right: 0;
  background: var(--cyan);
}

.progress-line.loading i {
  right: 32%;
  background: var(--warning);
}

.progress-line.failed i {
  right: 18%;
  background: var(--danger);
}

.subtitle-row.active,
.subtitle-edit-row.active,
.video-row.active,
.queue-row.active {
  border-color: rgba(173, 198, 255, 0.45);
  background: rgba(185, 206, 255, 0.09);
}

.subtitle-status-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(65, 71, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.055), transparent 74%);
  padding: 0 10px;
}

.subtitle-status-bar span,
.subtitle-status-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-status-bar strong {
  color: var(--primary);
  font-size: 12px;
  font-weight: 760;
}

.subtitle-style-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.subtitle-recognition-state {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(185, 206, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 206, 255, 0.085), rgba(255, 255, 255, 0.018)),
    rgba(11, 12, 15, 0.28);
  padding: 16px;
}

.subtitle-recognition-state strong {
  font-size: 14px;
}

.subtitle-recognition-state span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.subtitle-style-card.open,
.subtitle-style-collapsed {
  border-color: rgba(185, 206, 255, 0.34);
  background:
    linear-gradient(90deg, rgba(185, 206, 255, 0.05), transparent 72%),
    rgba(255, 255, 255, 0.018);
}

.subtitle-style-card.open,
.subtitle-style-card.expanded {
  max-height: none;
  overflow: visible;
}

.subtitle-style-collapsed {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
}

.subtitle-style-collapsed div,
.subtitle-style-collapsed strong {
  min-width: 0;
}

.subtitle-style-collapsed span,
.subtitle-style-collapsed strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-style-collapsed span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 850;
}

.subtitle-style-collapsed strong {
  margin-top: 3px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 780;
}

.subtitle-style-head {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 10px;
}

.subtitle-style-head > div,
.subtitle-style-grid > div {
  min-width: 0;
}

.subtitle-style-head span,
.subtitle-style-grid span,
.subtitle-preview-strip span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 820;
}

.subtitle-style-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-style-body {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(65, 71, 85, 0.24);
  padding: 8px 10px 9px;
}

.subtitle-style-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.subtitle-choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.subtitle-choice-row.size-row {
  grid-template-columns: repeat(4, minmax(64px, 1fr));
}

.subtitle-choice-row button {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(65, 71, 85, 0.34);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
}

.subtitle-choice-row .active {
  color: #08101f;
  border-color: transparent;
  background: linear-gradient(135deg, #d6e2ff, #7facff);
}

.subtitle-preview-strip {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  place-items: center;
  border: 1px solid rgba(65, 71, 85, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.018);
  padding: 7px 8px;
}

.subtitle-preview-strip strong {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
  text-shadow:
    0 1px 0 #000,
    0 0 5px rgba(0, 0, 0, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-table-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto;
  flex: 1 1 auto;
}

.subtitle-table {
  gap: 0;
  align-content: start;
  grid-auto-rows: minmax(48px, auto);
  min-height: 100%;
  border: 1px solid rgba(65, 71, 85, 0.24);
  border-radius: 8px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.014);
  scroll-padding: 8px;
}

.subtitle-edit-row {
  grid-template-columns: 70px 70px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(65, 71, 85, 0.24);
  border-radius: 0;
  background: transparent;
  padding: 8px;
}

.subtitle-delete {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(65, 71, 85, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
}

.subtitle-delete:hover {
  color: var(--text);
  border-color: rgba(173, 198, 255, 0.42);
}

.subtitle-edit-row:last-child {
  border-bottom: 0;
}

.subtitle-edit-row input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(65, 71, 85, 0.32);
  border-radius: 7px;
  background: rgba(11, 12, 15, 0.25);
  color: var(--text);
  padding: 0 9px;
  outline: none;
  font-size: 12px;
  font-weight: 700;
}

.subtitle-edit-row .time-input {
  color: var(--muted);
  font-size: 11px;
  padding: 0 5px;
  text-align: center;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.edit-grid label {
  display: grid;
  gap: 6px;
}

.edit-grid .wide {
  grid-column: span 2;
}

.edit-grid input,
.storyboard-list input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(65, 71, 85, 0.65);
  border-radius: 8px;
  background: rgba(11, 12, 15, 0.34);
  padding: 0 10px;
}

.timing-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.timing-tools button,
.shot-tools button {
  min-height: 32px;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.shot-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-progress {
  display: grid;
  gap: 8px;
}

.ai-wait-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(240, 193, 92, 0.28);
  border-radius: 8px;
  background: rgba(240, 193, 92, 0.055);
  padding: 10px;
}

.ai-wait-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.ai-wait-card p {
  font-size: 12px;
  line-height: 1.38;
}

.wait-dot {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 0 rgba(240, 193, 92, 0.36);
  animation: waiting-pulse 1.5s infinite;
}

@keyframes waiting-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 193, 92, 0.36);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(240, 193, 92, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(240, 193, 92, 0);
  }
}

@keyframes apiPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.ai-progress div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(65, 71, 85, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 9px;
}

.ai-progress span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(173, 198, 255, 0.1);
  color: var(--primary);
  font-weight: 900;
}

.ai-progress .done span {
  color: #08101f;
  background: var(--cyan);
}

.setup-grid,
.segmented,
.style-grid {
  display: grid;
  gap: 8px;
}

.setup-grid {
  grid-template-columns: 1fr;
}

.segmented {
  grid-template-columns: repeat(3, 1fr);
}

.style-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.style-grid.slim {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.style-detail-input {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid rgba(65, 71, 85, 0.34);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.38);
  color: var(--text);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.segmented button,
.style-grid button {
  min-height: 32px;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 12px;
  font-weight: 740;
}

.style-grid.slim button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.segmented .active,
.style-grid .active {
  color: #08101f;
  border-color: transparent;
  background: linear-gradient(135deg, #d6e2ff, #7facff);
}

.style-grid.slim .active {
  color: var(--primary);
  border-color: rgba(185, 206, 255, 0.34);
  background: rgba(185, 206, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(185, 206, 255, 0.1);
}

.queue-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.queue-row > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(185, 206, 255, 0.1);
  color: var(--primary);
  font-weight: 900;
}

.queue-row em {
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.video-row em {
  -webkit-line-clamp: 4;
  max-height: 5.4em;
  padding-right: 8px;
}

.video-row.failed em {
  color: var(--dim);
}

.queue-row.done em {
  color: var(--cyan);
}

.queue-row.waiting em {
  color: var(--warning);
}

.script-card {
  display: grid;
  gap: 7px;
}

.script-beats {
  display: grid;
  gap: 7px;
}

.script-beats div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(65, 71, 85, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  padding: 8px;
}

.script-beats b {
  color: var(--primary);
  font-size: 12px;
  font-weight: 780;
}

.script-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.script-tags i {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(185, 206, 255, 0.24);
  background: rgba(185, 206, 255, 0.07);
  color: var(--primary);
  padding: 0 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.export-checklist button {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 38px;
  border-left: 2px solid rgba(115, 231, 197, 0.5);
  font-size: 12px;
  font-weight: 720;
}

.export-checklist span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.export-checklist strong {
  font-size: 12px;
  font-weight: 760;
}

.export-checklist .done strong {
  color: var(--cyan);
}

.export-checklist .compose-subtitle-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.export-checklist .compose-subtitle-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(115, 231, 197, 0.28);
  border-radius: 6px;
  background: rgba(115, 231, 197, 0.1);
  color: var(--cyan);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.export-checklist .compose-subtitle-row[aria-pressed="false"] .compose-subtitle-check {
  border-color: rgba(90, 96, 110, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.export-checklist .warn {
  border-color: rgba(246, 199, 104, 0.28);
  border-left-color: var(--warning);
  background: linear-gradient(90deg, rgba(246, 199, 104, 0.07), transparent 76%);
}

.export-checklist .warn strong {
  color: var(--warning);
}

.compose-timeline {
  flex: 1 1 260px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 130, 156, 0.58) transparent;
}

.compose-timeline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.compose-timeline-head strong {
  font-size: 14px;
}

.compose-timeline-head span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 760;
}

.compose-material-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 124px;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 12px 14px;
}

.compose-material-row.disabled {
  opacity: 0.58;
}

.compose-material-controls {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.compose-material-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 860;
}

.compose-material-meta strong {
  overflow: hidden;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-material-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 206, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 206, 255, 0.2), rgba(75, 142, 255, 0.06)),
    var(--surface-high);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.compose-material-preview img,
.compose-material-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compose-material-preview.uploading::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(185, 206, 255, 0.26);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: studio-spin 0.9s linear infinite;
  z-index: 2;
}

.compose-material-preview.uploading img,
.compose-material-preview.uploading video {
  opacity: 0.42;
}

.compose-progress-state {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 231, 197, 0.18);
  border-radius: 8px;
  background: rgba(115, 231, 197, 0.06);
}

.compose-progress-state span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 780;
}

.segmented.compact {
  min-height: 46px;
  gap: 5px;
  padding: 4px;
}

.segmented.compact button {
  min-height: 38px;
  font-size: 14px;
  font-weight: 850;
  padding: 0 12px;
}

.cover-export-control {
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px solid rgba(65, 71, 85, 0.26);
  border-left: 2px solid rgba(115, 231, 197, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
}

.cover-export-control.generated {
  border-color: rgba(65, 71, 85, 0.26);
  border-left-color: rgba(115, 231, 197, 0.5);
}

.cover-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cover-export-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-checklist .cover-toggle-button {
  min-width: 58px;
  width: auto;
  min-height: 30px;
  border: 1px solid rgba(90, 96, 110, 0.48);
  border-left: 1px solid rgba(90, 96, 110, 0.48);
  background: rgba(255, 255, 255, 0.035);
  padding: 0 14px;
}

.cover-export-body {
  display: grid;
  grid-template-columns: minmax(116px, 128px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.cover-card {
  display: grid;
  grid-template-columns: minmax(116px, 128px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.cover-card.open {
  border-color: rgba(185, 206, 255, 0.34);
  background: rgba(185, 206, 255, 0.055);
}

.cover-card.generated {
  border-color: rgba(115, 231, 197, 0.28);
}

.cover-preview {
  position: relative;
  width: 100%;
  min-height: 132px;
  max-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(185, 206, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(185, 206, 255, 0.18), rgba(115, 231, 197, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--surface-high);
  padding: 0;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-preview.generating::after {
  content: "";
  position: absolute;
  inset: auto 10px 10px auto;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(185, 206, 255, 0.28);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: studio-spin 0.9s linear infinite;
}

.cover-preview span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--primary);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.cover-body {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.cover-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.cover-head .compact {
  justify-self: end;
}

.cover-head span,
.cover-form span,
.cover-collapsed span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 850;
}

.cover-head strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.cover-form {
  display: grid;
  gap: 8px;
}

.cover-collapsed {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(65, 71, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 8px 10px;
}

.cover-collapsed.generated {
  border-color: rgba(115, 231, 197, 0.28);
  background: rgba(115, 231, 197, 0.04);
}

.cover-collapsed div,
.cover-collapsed strong {
  min-width: 0;
}

.cover-collapsed strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-collapsed.generated strong {
  color: var(--cyan);
}

.cover-form label {
  display: grid;
  gap: 5px;
}

.cover-form input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(65, 71, 85, 0.58);
  border-radius: 8px;
  background: rgba(11, 12, 15, 0.34);
  padding: 0 9px;
  outline: none;
  font-size: 13px;
}

.export-checklist .cover-form .cover-generate-button {
  display: inline-flex;
  justify-content: space-between;
  min-height: 34px;
  border: 1px solid rgba(90, 96, 110, 0.48);
  border-left: 1px solid rgba(90, 96, 110, 0.48);
  border-color: rgba(90, 96, 110, 0.48);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 10px;
}

@media (max-height: 768px) {
  .panel-content:has(.image-setup-card) {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .panel-content:has(.image-setup-card)::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .panel-content:has(.image-setup-card) .panel-summary {
    position: relative;
    z-index: 2;
  }

  .panel-content:has(.image-setup-card) .image-setup-card {
    position: relative;
    z-index: 1;
  }

  .panel-content:has(.image-setup-card) .generation-record-list {
    flex: 0 0 auto;
    min-height: 0;
  }

  .panel-content:has(.image-setup-card) .inline-actions {
    margin-top: 0;
  }

  .panel-content:has(.subtitle-style-card.open) {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .panel-content:has(.subtitle-style-card.open)::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .panel-content:has(.subtitle-style-card.open) .subtitle-table-shell {
    flex: 0 0 auto;
    height: 0;
    min-height: 0;
    overflow: hidden;
  }

  .panel-content:has(.subtitle-style-card.open) .inline-actions {
    margin-top: 0;
  }
}

@media (max-width: 1180px) {
  .login-shell,
  .entry-grid,
  .home-compose-grid,
  .billing-layout,
  .billing-products {
    grid-template-columns: 1fr;
  }

  .upload-file-control,
  .import-actions {
    grid-column: 1;
  }

  .project-grid,
  .shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: 10px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-shell,
  .billing-shell {
    padding: 14px;
  }

  .login-copy h1 {
    font-size: 32px;
  }

}

@import url("./base.css?v=2026061107");
@import url("./layout.css?v=2026061107");
@import url("./home.css?v=2026061107");
@import url("./editor.css?v=2026061107");
@import url("./player.css?v=2026061107");
@import url("./billing.css?v=2026061107");
@import url("./components.css?v=2026061107");
