:root {
  --create-bg: #07111f;
  --create-surface: rgba(9, 18, 32, 0.88);
  --create-surface-strong: rgba(10, 21, 36, 0.96);
  --create-surface-soft: rgba(15, 23, 42, 0.74);
  --create-surface-faint: rgba(255, 255, 255, 0.04);
  --create-border: rgba(148, 163, 184, 0.16);
  --create-border-strong: rgba(148, 163, 184, 0.28);
  --create-copy: #cbd5e1;
  --create-copy-soft: #94a3b8;
  --create-title: #f8fafc;
  --create-accent: #38bdf8;
  --create-accent-soft: #5eead4;
  --create-accent-warm: #fbbf24;
  --create-danger: #fb7185;
  --create-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
  --create-radius: 28px;
  --create-radius-md: 20px;
  --create-radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--create-bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--create-title);
  background: var(--create-bg);
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.12), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(94, 234, 212, 0.12), transparent 28%),
    linear-gradient(180deg, #08101d 0%, #07111f 48%, #040a12 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.12;
}

body[data-create-screen="auth"] #create-user-email,
body[data-create-screen="auth"] #create-open-settings,
body[data-create-screen="auth"] #create-sign-out,
body[data-create-screen="locked"] #create-open-settings,
body[data-create-screen="locked"] #create-user-email,
body[data-create-screen="app"] #create-members-link {
  display: none !important;
}

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

img {
  display: block;
  max-width: 100%;
}

.create-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.create-shell {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.create-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--create-border);
  border-radius: var(--create-radius);
  background: rgba(7, 12, 22, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--create-shadow);
}

.create-topbar__identity,
.create-topbar__actions,
.create-inline-actions,
.create-sidebar__head,
.create-scenes-panel__head,
.create-output-panel__head,
.create-stage__toolbar,
.create-modal__head,
.create-scene-controls,
.create-clip-card__head,
.create-board-panel__hint {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-topbar__identity {
  min-width: 0;
}

.create-brand {
  flex-shrink: 0;
}

.create-topbar__copy {
  display: grid;
  gap: 4px;
}

.create-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

.create-kicker,
.create-panel__kicker,
.create-sidebar__kicker {
  color: var(--create-copy-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.create-topbar__actions,
.create-inline-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.create-screen {
  margin-top: 20px;
}

.create-global-loader {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(28, 22, 40, 0.96), rgba(10, 13, 24, 0.94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.create-global-loader:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.create-global-loader__orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.create-global-loader__orb span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbbf24;
  animation: create-loader-dot 880ms ease-in-out infinite;
}

.create-global-loader__orb span:nth-child(2) {
  animation-delay: 120ms;
}

.create-global-loader__orb span:nth-child(3) {
  animation-delay: 240ms;
}

.create-global-loader__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.create-global-loader__copy strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.1;
}

.create-global-loader__copy span {
  overflow: hidden;
  color: rgba(226, 218, 244, 0.76);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-global-loader__rail {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.create-global-loader__rail span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #c7a7ff, #5eead4);
  animation: create-loader-rail 1.1s ease-in-out infinite;
}

@keyframes create-loader-dot {
  0%,
  80%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes create-loader-rail {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(230%);
  }
}

.create-auth-screen,
.create-auth-complete .create-screen {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
}

.create-screen--hidden,
.create-modal--hidden {
  display: none !important;
}

.create-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.create-new-project {
  z-index: -1 !important;
}
.create-sidebar,
.create-stage,
.create-output-panel,
.create-scenes-panel,
.create-panel,
.create-modal__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--create-border);
  border-radius: var(--create-radius);
  background: var(--create-surface);
  box-shadow: var(--create-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.create-sidebar::before,
.create-stage::before,
.create-output-panel::before,
.create-scenes-panel::before,
.create-panel::before,
.create-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08), transparent 30%),
    linear-gradient(25deg, rgba(251, 191, 36, 0.08), transparent 28%);
  opacity: 0.9;
}

.create-sidebar > *,
.create-stage > *,
.create-output-panel > *,
.create-scenes-panel > *,
.create-panel > *,
.create-modal__panel > * {
  position: relative;
  z-index: 1;
}

.create-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 56px);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(11, 21, 36, 0.97), rgba(7, 15, 27, 0.94));
}

.create-sidebar__head,
.create-scenes-panel__head,
.create-output-panel__head,
.create-stage__toolbar,
.create-modal__head {
  justify-content: space-between;
}

.create-scene-card strong,
.create-clip-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--create-title);
}

.create-project-meta,
.create-muted {
  color: var(--create-copy-soft);
  font-size: 13px;
  line-height: 1.55;
}

.create-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.create-stage,
.create-output-panel,
.create-scenes-panel,
.create-panel,
.create-modal__panel {
  padding: 22px;
}

.create-stage {
  grid-column: 1 / 2;
}

.create-output-panel {
  grid-column: 2 / 3;
}

.create-scenes-panel {
  grid-column: 1 / 3;
}

.create-stage__title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.create-title-input,
.create-input,
.create-select,
.create-scene-card textarea {
  width: 100%;
  border: 1px solid var(--create-border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--create-title);
  font: inherit;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.create-title-input::placeholder,
.create-input::placeholder,
.create-scene-card textarea::placeholder {
  color: rgba(148, 163, 184, 0.78);
}

.create-title-input {
  min-width: 280px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.create-title-input:focus,
.create-input:focus,
.create-select:focus,
.create-scene-card textarea:focus {
  outline: 3px solid rgba(56, 189, 248, 0.22);
  outline-offset: 2px;
  border-color: rgba(125, 211, 252, 0.42);
}

.create-select {
  appearance: none;
}

.create-board-panel {
  margin-top: 18px;
}

.create-board-panel__hint {
  margin-bottom: 12px;
  color: var(--create-copy-soft);
  font-size: 14px;
}

.create-board-stage {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  border: 1px dashed rgba(125, 211, 252, 0.26);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 40%);
  overflow: hidden;
}

.create-board-image {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.create-board-image.is-ready {
  display: block;
}

.create-board-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.create-board-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--create-copy-soft);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.create-board-empty strong {
  color: var(--create-title);
  font-size: 1rem;
}

.create-board-empty:hover {
  background: rgba(255, 255, 255, 0.03);
}

.create-board-empty:focus-visible {
  outline: 2px solid rgba(214, 191, 255, 0.9);
  outline-offset: -6px;
  background: rgba(255, 255, 255, 0.04);
}

.create-board-empty--compact {
  position: static;
  min-height: 180px;
  border-radius: 22px;
  border: 1px dashed var(--create-border);
  background: rgba(15, 23, 42, 0.46);
}

.create-scenes,
.create-video-storyboard {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.create-scenes {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.create-video-storyboard {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.create-scene-card,
.create-clip-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--create-border);
  border-radius: 22px;
  background: var(--create-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.create-clip-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 15, 27, 0.94));
}

.create-clip-card__head {
  justify-content: space-between;
}

.create-clip-card__meta {
  color: var(--create-copy-soft);
  font-size: 12px;
}

.create-clip-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.create-clip-card__media:focus-visible {
  outline: 3px solid rgba(196, 167, 255, 0.85);
  outline-offset: 4px;
}

.create-clip-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.create-clip-card__media:hover .create-clip-card__zoom,
.create-clip-card__media:focus-visible .create-clip-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.create-scene-thumb,
.create-clip-card video,
.create-render-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.95));
}

.create-scene-thumb {
  object-fit: cover;
}

.create-clip-card__media video {
  display: block;
  pointer-events: none;
}

.create-render-player {
  min-height: 220px;
  display: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.create-render-player.is-visible {
  display: block;
}

.create-scene-controls input {
  flex: 1;
}

.create-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--create-border);
  background: rgba(15, 23, 42, 0.88);
  color: var(--create-title);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.create-pill--subtle {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.create-auth-form {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  margin: 0 auto;
}

.create-auth-layout {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
  gap: 22px;
  align-items: center;
}

.create-auth-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.create-auth-copy h2 {
  max-width: 12ch;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #fff;
}

.create-auth-lead {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--create-copy);
}

.create-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.create-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(8, 15, 27, 0.72);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.create-hero-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.create-auth-card {
  width: 100%;
  margin: 0;
  min-height: 420px;
  padding: 34px 28px;
  text-align: center;
  align-content: center;
}

.create-auth-card p {
  color: var(--create-copy);
}

.create-auth-upsell {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.create-auth-upsell .btn {
  justify-self: center;
}

.create-auth-upsell--locked {
  margin: 18px 0 0;
  padding-top: 16px;
}

.create-auth-carousel {
  width: min(100%, 820px);
  display: grid;
  gap: 10px;
  padding: 0;
}

.create-auth-carousel__header,
.create-auth-carousel__body,
.create-auth-dots {
  display: flex;
  align-items: center;
}

.create-auth-carousel__header {
  justify-content: space-between;
  gap: 12px;
}

.create-auth-carousel__body {
  gap: 16px;
}

.create-auth-message-stack {
  position: relative;
  flex: 1;
  min-height: 126px;
}

.create-auth-message {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  padding: 8px 0;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.create-auth-carousel[data-auth-active="1"] .create-auth-message[data-auth-message="1"],
.create-auth-carousel[data-auth-active="2"] .create-auth-message[data-auth-message="2"],
.create-auth-carousel[data-auth-active="3"] .create-auth-message[data-auth-message="3"] {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.create-auth-message__step {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.42);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(79, 70, 229, 0.98), rgba(30, 41, 59, 0.98));
  color: #eef2ff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
}

.create-auth-message h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}

.create-auth-message p {
  color: var(--create-copy);
  line-height: 1.45;
  font-size: 0.94rem;
}

.create-auth-form .create-input {
  min-height: 58px;
  padding: 16px 18px;
  font-size: 1rem;
}

.create-auth-form .btn {
  min-height: 56px;
  font-size: 1rem;
}

.create-auth-arrow {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
  color: #e2e8f0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1;
}

.create-auth-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.48);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(30, 41, 59, 0.74));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3);
}

.create-auth-arrow:focus-visible,
.create-auth-dot:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.9);
  outline-offset: 3px;
}

.create-auth-dots {
  justify-content: center;
  gap: 10px;
}

.create-auth-dot {
  appearance: none;
  border: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.create-auth-dot:hover {
  transform: scale(1.12);
  background: rgba(165, 180, 252, 0.58);
}

.create-auth-dot.active {
  background: #a5b4fc;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15);
}

.create-panel--centered {
  max-width: 640px;
  margin: 80px auto 0;
  text-align: center;
}

.create-auth-card.create-panel--centered,
.create-auth-complete .create-panel--centered {
  margin: 0 auto;
}

.create-auth-card.create-panel--centered {
  max-width: none;
}

.create-panel--centered h2,
.create-output-panel h2,
.create-scenes-panel h2,
.create-sidebar h2,
.create-modal__panel h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.create-panel--centered p {
  color: var(--create-copy);
  line-height: 1.6;
}

.create-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.create-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.create-modal__panel {
  width: min(680px, calc(100% - 28px));
  margin: 42px auto;
}

.create-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.create-settings-grid label,
.create-settings-field,
.create-scene-card label,
.create-clip-card label {
  display: grid;
  gap: 8px;
  color: var(--create-copy-soft);
  font-size: 13px;
}

.create-settings-grid > label > span,
.create-settings-field > span,
.create-scene-card label > span,
.create-clip-card label > span {
  color: var(--create-copy);
  font-weight: 600;
}

.create-settings-field--full {
  grid-column: 1 / -1;
}

.create-settings-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.create-settings-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--create-accent);
}

.create-settings-toggle strong,
.create-settings-toggle em {
  display: block;
}

.create-settings-toggle em {
  color: var(--create-copy-soft);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.create-video-engine-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-video-engine-option {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 16px 16px 14px;
  border: 1px solid var(--create-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.create-video-engine-option:hover {
  border-color: rgba(169, 125, 255, 0.42);
  transform: translateY(-1px);
}

.create-video-engine-option:has(input:checked) {
  border-color: rgba(169, 125, 255, 0.76);
  background:
    radial-gradient(circle at 14% 0%, rgba(196, 167, 255, 0.22), transparent 42%),
    rgba(108, 68, 255, 0.16);
  box-shadow: 0 18px 40px rgba(108, 68, 255, 0.18);
}

.create-video-engine-option input {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--create-accent);
}

.create-video-engine-option strong,
.create-video-engine-option em {
  display: block;
  max-width: calc(100% - 26px);
}

.create-video-engine-option strong {
  color: var(--create-copy);
  font-size: 15px;
}

.create-video-engine-option em {
  color: var(--create-copy-soft);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.create-format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.create-format-option {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.create-format-option:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 167, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.create-format-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.create-format-option__frame {
  display: block;
  width: 100%;
  max-width: 88px;
  border: 1px solid rgba(196, 167, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(196, 167, 255, 0.18), rgba(255, 255, 255, 0.02)),
    rgba(17, 15, 25, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.create-format-option__frame--landscape {
  aspect-ratio: 16 / 9;
}

.create-format-option__frame--portrait {
  max-width: 54px;
  aspect-ratio: 9 / 16;
}

.create-format-option__frame--square {
  max-width: 64px;
  aspect-ratio: 1 / 1;
}

.create-format-option__frame--four-five {
  max-width: 60px;
  aspect-ratio: 4 / 5;
}

.create-format-option strong {
  color: var(--create-title);
  font-size: 0.98rem;
  line-height: 1;
}

.create-format-option em,
.create-format-option small {
  font-style: normal;
}

.create-format-option em {
  color: var(--create-copy);
  font-size: 0.8rem;
  font-weight: 600;
}

.create-format-option small {
  color: var(--create-copy-soft);
  font-size: 0.74rem;
  line-height: 1.4;
}

.create-format-option input:checked + .create-format-option__frame,
.create-format-option input:checked ~ strong,
.create-format-option input:checked ~ em,
.create-format-option input:checked ~ small {
  color: #fff;
}

.create-format-option:has(input:checked) {
  border-color: rgba(196, 167, 255, 0.48);
  background: rgba(138, 94, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(196, 167, 255, 0.18);
}

.create-format-option:has(input:checked) .create-format-option__frame {
  border-color: rgba(214, 191, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(196, 167, 255, 0.28), rgba(255, 255, 255, 0.04)),
    rgba(17, 15, 25, 0.98);
}

.create-format-option:has(input:focus-visible) {
  outline: 2px solid rgba(214, 191, 255, 0.9);
  outline-offset: 3px;
}

.create-scene-card textarea {
  min-height: 92px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .create-app,
  .create-studio {
    grid-template-columns: 1fr;
  }

  .create-auth-layout {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .create-auth-copy {
    justify-items: center;
    text-align: center;
  }

  .create-auth-copy h2,
  .create-auth-lead {
    max-width: 100%;
  }

  .create-sidebar {
    position: static;
    min-height: auto;
  }

  .create-stage,
  .create-output-panel,
  .create-scenes-panel {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .create-shell {
    padding: 14px;
  }

  .create-topbar,
  .create-topbar__identity,
  .create-stage__toolbar,
  .create-output-panel__head,
  .create-scenes-panel__head,
  .create-sidebar__head,
  .create-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .create-topbar__actions,
  .create-inline-actions {
    justify-content: flex-start;
  }

  .create-auth-screen,
  .create-auth-complete .create-screen {
    min-height: auto;
  }

  .create-auth-carousel__header,
  .create-auth-carousel__body {
    flex-direction: column;
    align-items: stretch;
  }

  .create-auth-dots {
    justify-content: center;
  }

  .create-auth-arrow {
    width: 100%;
    height: 44px;
    border-radius: 16px;
  }

  .create-auth-message-stack {
    min-height: 250px;
  }

  .create-board-stage {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .create-shell {
    padding: 12px;
  }

  .create-topbar,
  .create-sidebar,
  .create-stage,
  .create-output-panel,
  .create-scenes-panel,
  .create-panel,
  .create-modal__panel {
    padding: 18px;
    border-radius: 22px;
  }

  .create-auth-card,
  .create-auth-carousel {
    padding: 18px;
  }

  .create-video-storyboard,
  .create-scenes {
    grid-template-columns: 1fr;
  }

  .create-title-input {
    min-width: 0;
  }

  .brand-name {
    display: none;
  }

  .create-auth-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Auth redesign */

body {
  color: #f3ecff;
  background: #130f1f;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(171, 124, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(106, 86, 255, 0.14), transparent 18%),
    radial-gradient(circle at 70% 72%, rgba(119, 95, 245, 0.14), transparent 24%),
    linear-gradient(180deg, #171225 0%, #14101f 48%, #0d0b14 100%);
}

body::after {
  background-image:
    linear-gradient(90deg, rgba(167, 139, 250, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.14;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #f8f3ff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible,
.create-topnav__link:focus-visible,
.create-topbar__status:focus-visible,
.create-auth-footer__links a:focus-visible {
  outline: 2px solid rgba(214, 191, 255, 0.9);
  outline-offset: 3px;
}

.btn-primary {
  border-color: rgba(196, 167, 255, 0.5);
  background: linear-gradient(180deg, #c7a7ff 0%, #aa84fb 100%);
  color: #24183f;
  box-shadow: 0 18px 40px rgba(125, 88, 222, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(125, 88, 222, 0.36);
}

.btn-secondary,
.btn-outline,
.btn-ghost {
  border-color: rgba(201, 186, 232, 0.14);
  color: #f3ecff;
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost {
  background: transparent;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
  border-color: rgba(201, 186, 232, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.create-shell {
  width: min(1520px, 100%);
  padding: 12px;
}

.create-topbar {
  padding: 14px 18px;
  border-color: rgba(181, 157, 236, 0.18);
  border-radius: 18px;
  background: rgba(24, 18, 36, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(7, 4, 15, 0.34);
}

.create-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.create-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(210, 182, 255, 0.18), rgba(115, 86, 196, 0.24));
  border: 1px solid rgba(202, 176, 247, 0.22);
}

.create-brand__mark img {
  width: 24px;
  height: 24px;
}

.create-brand__text {
  display: grid;
  gap: 2px;
}

.create-brand__text strong {
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.create-brand__text span {
  color: rgba(225, 214, 249, 0.72);
  font-size: 0.76rem;
}

.create-topnav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.create-topnav__link {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(233, 225, 249, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.create-topnav__link:hover,
.create-topnav__link--active {
  background: rgba(201, 186, 232, 0.08);
  color: #fff;
}

.create-topbar__actions {
  gap: 10px;
}

.create-topbar__status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 167, 255, 0.22);
  background: rgba(196, 167, 255, 0.08);
  color: #dbc8ff;
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-create-screen="app"] .create-topbar__status {
  display: none;
}

.create-auth-screen {
  min-height: auto;
  padding: 26px 18px 30px;
}

.create-auth-stage {
  display: grid;
  gap: 68px;
}

.create-auth-layout {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 390px);
  gap: 42px;
  align-items: center;
}

.create-auth-copy {
  gap: 22px;
}

.create-hero-badge {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(196, 167, 255, 0.18);
  background: rgba(196, 167, 255, 0.08);
  color: #d8c4ff;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.create-auth-title {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 4.55rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  color: #f7f2ff;
}

.create-auth-lead {
  max-width: 560px;
  color: rgba(231, 222, 248, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.create-auth-preview {
  width: min(100%, 720px);
  padding-top: 8px;
}

.create-preview-window {
  overflow: hidden;
  border: 1px solid rgba(181, 157, 236, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 19, 35, 0.98), rgba(14, 13, 21, 0.98)),
    radial-gradient(circle at top left, rgba(123, 97, 255, 0.12), transparent 32%);
  box-shadow: 0 30px 80px rgba(4, 4, 12, 0.5);
}

.create-preview-window__chrome {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(181, 157, 236, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.create-preview-window__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(219, 203, 255, 0.44);
}

.create-preview-window__tabs {
  display: inline-flex;
  gap: 18px;
  margin-left: auto;
  color: rgba(232, 224, 249, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}

.create-preview-window__tabs span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.create-preview-window__tabs .is-active {
  color: #f5f0ff;
  box-shadow: inset 0 -2px 0 #c6a0ff;
}

.create-preview-workspace {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 146px;
  min-height: 338px;
}

.create-preview-sidebar,
.create-preview-main,
.create-preview-rail {
  min-width: 0;
}

.create-preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(41, 33, 53, 0.76);
}

.create-preview-sidebar__meta {
  display: grid;
  gap: 4px;
}

.create-preview-sidebar__meta span {
  color: rgba(232, 224, 249, 0.76);
  font-size: 0.64rem;
  font-weight: 700;
}

.create-preview-sidebar__meta strong {
  color: rgba(210, 201, 233, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
}

.create-preview-sidebar__button {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #a771ff 0%, #8759f6 100%);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.create-preview-sidebar__nav {
  display: grid;
  gap: 8px;
}

.create-preview-sidebar__nav span {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  color: rgba(228, 220, 245, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
}

.create-preview-sidebar__nav .is-active {
  background: linear-gradient(90deg, #8b60ff 0%, #a56fff 100%);
  color: #fff;
}

.create-preview-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: rgba(20, 16, 29, 0.98);
}

.create-preview-main__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.create-preview-main__copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.create-preview-main__eyebrow {
  color: rgba(212, 198, 241, 0.78);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.create-preview-main__copy strong {
  max-width: 8ch;
  font-size: 2.1rem;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.create-preview-main__copy p {
  max-width: 18ch;
  color: rgba(221, 212, 243, 0.76);
  font-size: 0.8rem;
  line-height: 1.45;
}

.create-preview-main__actions {
  display: grid;
  gap: 10px;
  min-width: 116px;
}

.create-preview-main__actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(196, 167, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(242, 235, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
}

.create-preview-main__actions .is-primary {
  background: linear-gradient(180deg, #a872ff 0%, #8a5eff 100%);
  color: #fff;
}

.create-preview-canvas {
  display: grid;
  min-height: 156px;
  border: 1px solid rgba(61, 194, 159, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(0, 214, 170, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(13, 19, 30, 0.92), rgba(11, 16, 28, 0.98));
}

.create-preview-canvas__drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
}

.create-preview-canvas__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(196, 167, 255, 0.2);
  background: rgba(196, 167, 255, 0.08);
  color: #e8dcff;
  font-size: 1rem;
  font-weight: 700;
}

.create-preview-canvas__drop strong {
  font-size: 1rem;
}

.create-preview-canvas__drop p {
  margin: 0;
  color: rgba(219, 212, 238, 0.62);
  font-size: 0.72rem;
}

.create-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.create-preview-strip span {
  display: block;
  height: 70px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(12, 12, 16, 0.2), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.create-preview-strip span:nth-child(1) {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(120deg, #111318 0%, #585858 45%, #15151c 100%);
}

.create-preview-strip span:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18%, rgba(255, 255, 255, 0.08) 36%, transparent 52%),
    linear-gradient(135deg, #1a1a1f 0%, #0f0f13 100%);
}

.create-preview-strip span:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #0e0f12 0%, #2e2e34 100%);
}

.create-preview-strip span:nth-child(4) {
  border: 1px dashed rgba(201, 186, 232, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.create-preview-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(36, 30, 46, 0.92);
}

.create-preview-rail__eyebrow {
  color: #d9c5ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.create-preview-rail__screen {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(196, 167, 255, 0.08), transparent 34%),
    rgba(18, 15, 28, 0.94);
}

.create-preview-rail__queue {
  display: grid;
  gap: 10px;
}

.create-preview-rail__item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.create-preview-rail__item strong {
  font-size: 0.72rem;
  line-height: 1.2;
}

.create-preview-rail__item span {
  color: rgba(220, 212, 239, 0.64);
  font-size: 0.62rem;
  font-weight: 700;
}

.create-preview-rail__item--success {
  border-color: rgba(90, 230, 177, 0.26);
}

.create-preview-rail__item--success span {
  color: #67e6b6;
}

.create-auth-card {
  min-height: 0;
  padding: 26px;
  border-radius: 20px;
  border-color: rgba(181, 157, 236, 0.14);
  background: rgba(29, 22, 43, 0.9);
  text-align: left;
}

.create-auth-card__eyebrow {
  color: #f4edff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.create-auth-card h2 {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(226, 217, 244, 0.7);
  letter-spacing: 0;
}

.create-auth-card p {
  margin-top: 14px;
  color: rgba(221, 212, 243, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

.create-auth-form {
  width: 100%;
  margin: 22px 0 0;
  gap: 14px;
}

.create-field {
  display: grid;
  gap: 8px;
}

.create-field span {
  color: rgba(236, 230, 248, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.create-auth-form .create-input,
.create-auth-card .create-input {
  min-height: 52px;
  border-color: rgba(196, 167, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f7f2ff;
  box-shadow: none;
}

.create-auth-form .create-input::placeholder {
  color: rgba(221, 212, 243, 0.34);
}

.create-auth-form .btn {
  width: 100%;
  justify-content: space-between;
}

.create-auth-status {
  min-height: 22px;
  margin-top: 10px;
}

.create-auth-card__footer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 167, 255, 0.1);
}

.create-auth-card__footer span {
  color: rgba(221, 212, 243, 0.46);
  font-size: 0.76rem;
  text-align: center;
}

.create-capabilities {
  display: grid;
  gap: 28px;
}

.create-section-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.create-section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.create-section-heading::after {
  content: "";
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180, 147, 255, 0.2), rgba(214, 191, 255, 0.9), rgba(180, 147, 255, 0.2));
}

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

.create-capability-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(181, 157, 236, 0.12);
  border-radius: 18px;
  background: rgba(24, 18, 36, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.create-capability-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 10px;
  background: rgba(191, 160, 255, 0.12);
  color: #dbc8ff;
  font-size: 1rem;
  font-weight: 800;
}

.create-capability-card h3 {
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.create-capability-card p {
  color: rgba(221, 212, 243, 0.72);
  font-size: 0.93rem;
  line-height: 1.65;
}

.create-capability-card__tag {
  color: #d7c3ff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.create-capability-card__tag--success {
  color: #6ee7b7;
}

.create-capability-card__tag--warm {
  color: #f9c56d;
}

.create-diamond-banner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 42px 34px;
  border: 1px solid rgba(181, 157, 236, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(53, 39, 82, 0.9), rgba(23, 18, 37, 0.96)),
    radial-gradient(circle at top, rgba(196, 167, 255, 0.12), transparent 50%);
  text-align: center;
}

.create-diamond-banner__eyebrow {
  color: #87f2bf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.create-diamond-banner h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.create-diamond-banner p {
  max-width: 56ch;
  color: rgba(228, 220, 244, 0.78);
  line-height: 1.7;
}

.create-diamond-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.create-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  color: rgba(221, 212, 243, 0.54);
}

.create-auth-footer__brand,
.create-auth-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.create-auth-footer__brand strong {
  color: #f3ecff;
  font-size: 0.8rem;
}

.create-auth-footer__brand span,
.create-auth-footer__links a {
  font-size: 0.78rem;
}

.create-auth-footer__links a:hover {
  color: #fff;
}

.create-auth-complete .create-screen {
  min-height: calc(100vh - 140px);
  padding: 24px;
}

.create-auth-complete .create-panel--centered {
  padding: 36px 30px;
  border-radius: 20px;
  border-color: rgba(181, 157, 236, 0.14);
  background: rgba(29, 22, 43, 0.9);
}

@media (max-width: 1180px) {
  .create-auth-layout {
    grid-template-columns: 1fr;
    max-width: 920px;
  }

  .create-auth-copy {
    justify-items: center;
    text-align: center;
  }

  .create-auth-title,
  .create-auth-lead {
    max-width: 100%;
  }

  .create-capability-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .create-topbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .create-topnav {
    order: 2;
    margin: 0 auto 0 0;
  }

  .create-topbar__actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .create-auth-screen {
    padding: 20px 8px 26px;
  }

  .create-auth-stage {
    gap: 52px;
  }

  .create-preview-workspace {
    grid-template-columns: 1fr;
  }

  .create-preview-sidebar,
  .create-preview-rail {
    display: none;
  }

  .create-preview-main {
    padding: 20px;
  }

  .create-diamond-banner {
    padding: 34px 24px;
  }

  .create-auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .create-shell {
    padding: 10px;
  }

  .create-topbar {
    align-items: flex-start;
  }

  .create-topbar,
  .create-auth-card,
  .create-diamond-banner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .create-topnav {
    width: 100%;
    justify-content: center;
  }

  .create-topbar__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .create-auth-title {
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 0.98;
  }

  .create-auth-lead {
    font-size: 0.94rem;
  }

  .create-auth-preview {
    display: none;
  }

  .create-preview-main,
  .create-capability-card {
    padding: 18px;
  }

  .create-diamond-banner__actions,
  .create-auth-footer__brand,
  .create-auth-footer__links {
    width: 100%;
  }

  .create-diamond-banner__actions .btn {
    width: 100%;
  }
}

/* Logged-in workspace redesign */

body[data-create-screen="app"] {
  background: #1c1d23;
}

body[data-create-screen="app"]::before {
  background:
    radial-gradient(circle at 8% 12%, rgba(143, 97, 255, 0.08), transparent 18%),
    radial-gradient(circle at 82% 82%, rgba(0, 214, 170, 0.05), transparent 16%),
    linear-gradient(180deg, #23252c 0%, #1d1e25 100%);
}

body[data-create-screen="app"]::after {
  background-image: radial-gradient(rgba(242, 235, 255, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.24;
}

body[data-create-screen="app"] .create-topbar {
  display: none;
}

body[data-create-screen="app"] .create-shell {
  width: min(1740px, 100%);
  padding: 14px 14px 28px;
}

body[data-create-screen="app"] .create-topnav {
  background: transparent;
}

body[data-create-screen="app"] .create-topnav__link {
  padding: 10px 10px 8px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(221, 212, 243, 0.76);
}

body[data-create-screen="app"] .create-topnav__link--active,
body[data-create-screen="app"] .create-topnav__link:hover {
  background: transparent;
  border-bottom-color: #c6a0ff;
  color: #fff;
}

body[data-create-screen="app"] .create-topbar__actions {
  gap: 8px;
}

body[data-create-screen="app"] #create-user-email.create-pill {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 241, 255, 0.86);
}

body[data-create-screen="app"] .create-workspace-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(23, 17, 34, 0.96);
}

body[data-create-screen="app"] .create-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-create-screen="app"] .create-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 860px;
}

body[data-create-screen="app"] .create-workspace-main {
  display: grid;
  gap: 18px;
  padding: 30px 24px 24px;
  background: rgba(21, 16, 30, 0.96);
}

body[data-create-screen="app"] .create-sidebar,
body[data-create-screen="app"] .create-stage,
body[data-create-screen="app"] .create-output-panel,
body[data-create-screen="app"] .create-scenes-panel,
body[data-create-screen="app"] .create-modal__panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-create-screen="app"] .create-sidebar::before,
body[data-create-screen="app"] .create-stage::before,
body[data-create-screen="app"] .create-output-panel::before,
body[data-create-screen="app"] .create-scenes-panel::before,
body[data-create-screen="app"] .create-modal__panel::before {
  display: none;
}

body[data-create-screen="app"] .create-sidebar {
  position: relative;
  z-index: 20;
  min-height: 100%;
  padding: 22px 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px 0 0 18px;
  background: rgba(42, 36, 52, 0.92);
  overflow: visible;
}

body[data-create-screen="app"] .create-sidebar__head {
  align-items: flex-start;
}

body[data-create-screen="app"] .create-project-menu {
  position: relative;
  z-index: 1000;
  margin-left: auto;
}

body[data-create-screen="app"] .create-project-menu__trigger {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 186, 232, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 241, 255, 0.88);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-project-menu__trigger:hover,
body[data-create-screen="app"] .create-project-menu__trigger[aria-expanded="true"] {
  border-color: rgba(201, 186, 232, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body[data-create-screen="app"] .create-project-menu__trigger:focus-visible,
body[data-create-screen="app"] .create-project-menu__item:focus-visible {
  outline: 2px solid rgba(214, 191, 255, 0.9);
  outline-offset: 3px;
}

body[data-create-screen="app"] .create-project-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1001;
  width: 190px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(18, 14, 26, 0.98);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-create-screen="app"] .create-project-menu__item {
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 241, 255, 0.88);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body[data-create-screen="app"] .create-project-menu__item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body[data-create-screen="app"] .create-project-menu__item--danger {
  color: #ffb4b4;
}

body[data-create-screen="app"] .create-project-menu__item--danger:hover {
  background: rgba(255, 97, 97, 0.14);
  color: #ffd0d0;
}

body[data-create-screen="app"] .create-sidebar__kicker {
  color: rgba(240, 233, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

body[data-create-screen="app"] .create-sidebar h2 {
  margin-top: 4px;
  color: rgba(199, 189, 222, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

body[data-create-screen="app"] .create-sidebar__new {
  width: 100%;
  margin: 18px 0 14px;
  justify-content: center;
}

body[data-create-screen="app"] .create-sidebar__nav {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

body[data-create-screen="app"] .create-sidebar__account {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-create-screen="app"] .create-sidebar__nav-item {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(223, 214, 244, 0.78);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-create-screen="app"] .create-sidebar__nav-item.is-active {
  background: linear-gradient(90deg, #8a5eff 0%, #a46fff 100%);
  color: #fff;
}

body[data-create-screen="app"] .create-sidebar__nav-item[data-workspace-view="generate"] {
  position: relative;
  margin-top: 4px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.12)),
    rgba(251, 191, 36, 0.06);
  color: #ffe7a3;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08), 0 12px 28px rgba(249, 115, 22, 0.14);
}

body[data-create-screen="app"] .create-sidebar__nav-item[data-workspace-view="generate"]::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.9);
}

body[data-create-screen="app"] .create-sidebar__nav-item[data-workspace-view="generate"]:hover {
  border-color: rgba(251, 191, 36, 0.62);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(249, 115, 22, 0.16)),
    rgba(251, 191, 36, 0.08);
  color: #fff4cf;
}

body[data-create-screen="app"] .create-sidebar__nav-item[data-workspace-view="generate"].is-active {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body[data-create-screen="app"] .create-sidebar__nav-item[data-workspace-view="generate"].is-active::after {
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}

body[data-create-screen="app"] .create-sidebar__nav-item:disabled,
body[data-create-screen="app"] .create-sidebar__nav-item.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body[data-create-screen="app"] .create-sidebar__nav-item:disabled:hover,
body[data-create-screen="app"] .create-sidebar__nav-item.is-disabled:hover {
  background: transparent;
  color: rgba(223, 214, 244, 0.78);
}

body[data-create-screen="app"] .create-sidebar__email {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 241, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-create-screen="app"] .create-sidebar__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

body[data-create-screen="app"] .create-sidebar__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(223, 214, 244, 0.72);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

body[data-create-screen="app"] .create-sidebar__link:hover {
  color: #fff;
}

body[data-create-screen="app"] .create-stage,
body[data-create-screen="app"] .create-scenes-panel {
  padding: 0;
}

body[data-create-screen="app"] .create-project-browser {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(31, 25, 42, 0.76);
}

body[data-create-screen="app"] .create-project-browser__head {
      display: flex;
    flex-direction: column;
  gap: 6px;
  max-width: 560px;
}

body[data-create-screen="app"] .create-project-browser__head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

body[data-create-screen="app"] .create-project-browser__head p {
  margin: 0;
  color: rgba(222, 214, 242, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
}

body[data-create-screen="app"] .create-project-browser__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
  justify-content: start;
  gap: 14px;
}

body[data-create-screen="app"] .create-project-browser__card,
body[data-create-screen="app"] .create-project-browser__empty {
      display: flex;
    flex-direction: column;
    justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(20, 16, 29, 0.94);
}

body[data-create-screen="app"] .create-project-browser__card {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  aspect-ratio: 1 / 1;
  text-align: left;
  color: rgba(230, 223, 245, 0.84);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-project-browser__empty {
  place-items: center;
  justify-items: center;
  min-height: 280px;
  text-align: center;
}

body[data-create-screen="app"] .create-project-browser__card:hover {
  transform: translateY(-1px);
  background: rgba(139, 94, 255, 0.12);
  border-color: rgba(180, 145, 255, 0.22);
}

body[data-create-screen="app"] .create-project-browser__card strong,
body[data-create-screen="app"] .create-project-browser__empty strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-project-browser__card span {
  color: #cbaeff;
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-create-screen="app"] .create-project-browser__empty-action {
  min-width: 180px;
}

body[data-create-screen="app"] .create-storyboards-hub {
  display: none;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(31, 25, 42, 0.76);
}

body[data-create-screen="app"] .create-storyboards-view {
  display: grid;
  gap: 18px;
}

body[data-create-screen="app"] .create-storyboards-view__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

body[data-create-screen="app"] .create-storyboards-block__head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

body[data-create-screen="app"] .create-storyboards-block__head strong {
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-storyboards-list {
  display: grid;
  gap: 14px;
}

body[data-create-screen="app"] .create-storyboards-empty {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 32px 24px;
  border: 1px dashed rgba(196, 167, 255, 0.18);
  border-radius: 18px;
  background: rgba(20, 16, 29, 0.94);
  text-align: center;
}

body[data-create-screen="app"] .create-storyboards-empty strong {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

body[data-create-screen="app"] .create-storyboards-empty p {
  max-width: 480px;
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.6;
}

body[data-create-screen="app"] .create-storyboard-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(20, 16, 29, 0.94);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-storyboard-card:hover,
body[data-create-screen="app"] .create-storyboard-card.is-active {
  border-color: rgba(187, 149, 255, 0.3);
  background: rgba(139, 94, 255, 0.1);
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-storyboard-card__media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(11, 12, 20, 0.96);
}

body[data-create-screen="app"] .create-storyboard-card__media img,
body[data-create-screen="app"] .create-storyboards-reference__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-create-screen="app"] .create-storyboard-card__media-badges {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-create-screen="app"] .create-storyboard-card__media-fallback {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: rgba(222, 214, 242, 0.74);
  font-weight: 700;
}

body[data-create-screen="app"] .create-storyboard-card__body {
  display: grid;
  align-content: start;
  gap: 16px;
}

body[data-create-screen="app"] .create-storyboard-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

body[data-create-screen="app"] .create-storyboard-card__head strong {
  color: #fff;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
}

body[data-create-screen="app"] .create-storyboard-card__head p {
  margin: 6px 0 0;
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] .create-storyboard-card__scenes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-create-screen="app"] .create-storyboard-card__scene {
  overflow: hidden;
  aspect-ratio: 0.95;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-create-screen="app"] .create-storyboard-card__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-create-screen="app"] .create-storyboard-card__scene span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: rgba(221, 212, 243, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

body[data-create-screen="app"] .create-storyboards-reference {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(20, 16, 29, 0.94);
}

body[data-create-screen="app"] .create-storyboards-reference__image {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  background: rgba(11, 12, 20, 0.96);
}

body[data-create-screen="app"] .create-storyboard-form {
  display: grid;
  gap: 20px;
}

body[data-create-screen="app"] .create-storyboard-assets {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(196, 167, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-create-screen="app"] .create-storyboard-reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body[data-create-screen="app"] .create-storyboard-reference-card,
body[data-create-screen="app"] .create-storyboard-reference-empty {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(18, 15, 26, 0.78);
}

body[data-create-screen="app"] .create-storyboard-reference-empty {
  min-height: 150px;
  place-items: center;
  justify-items: center;
  text-align: center;
}

body[data-create-screen="app"] .create-storyboard-reference-empty strong,
body[data-create-screen="app"] .create-storyboard-reference-card__body strong {
  color: #fff;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-storyboard-reference-empty p,
body[data-create-screen="app"] .create-storyboard-reference-card__body span {
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

body[data-create-screen="app"] .create-storyboard-reference-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: rgba(10, 10, 18, 0.88);
}

body[data-create-screen="app"] .create-storyboard-reference-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-create-screen="app"] .create-storyboard-reference-card__body {
  display: grid;
  gap: 8px;
}

body[data-create-screen="app"] .create-storyboard-reference-card__body label {
  display: grid;
  gap: 5px;
  color: rgba(225, 217, 244, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-create-screen="app"] .create-storyboard-reference-card__check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

body[data-create-screen="app"] .create-storyboard-form__styles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-create-screen="app"] .create-style-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(20, 16, 29, 0.92);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-style-card:hover {
  border-color: rgba(187, 149, 255, 0.24);
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-style-card:has(input:checked) {
  border-color: rgba(187, 149, 255, 0.42);
  background: rgba(139, 94, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(187, 149, 255, 0.18);
}

body[data-create-screen="app"] .create-style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-create-screen="app"] .create-style-card img {
  width: 100%;
  aspect-ratio: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(11, 12, 20, 0.96);
  object-fit: cover;
}

body[data-create-screen="app"] .create-style-card strong {
  color: #fff;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-style-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-create-screen="app"] .create-style-card span {
  color: rgba(221, 212, 243, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

body[data-create-screen="app"] .create-style-card__remove {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: auto;
  padding: 4px 8px;
  opacity: 0.92;
}

body[data-create-screen="app"] .create-storyboard-custom-style {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(20, 16, 29, 0.9);
}

body[data-create-screen="app"] .create-storyboard-custom-style__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

body[data-create-screen="app"] .create-storyboard-custom-style__preview {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border: 1px dashed rgba(196, 167, 255, 0.18);
  border-radius: 16px;
  background: rgba(12, 10, 18, 0.92);
  text-align: center;
}

body[data-create-screen="app"] .create-storyboard-custom-style__preview strong {
  color: #fff;
  font-size: 0.96rem;
}

body[data-create-screen="app"] .create-storyboard-custom-style__preview span {
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.6;
}

body[data-create-screen="app"] .create-storyboard-custom-style__preview img {
  width: 100%;
  max-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  object-fit: cover;
}

body[data-create-screen="app"] .create-storyboard-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-create-screen="app"] .create-storyboard-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

body[data-create-screen="app"] .create-storyboard-form__foot p {
  max-width: 620px;
}

body[data-create-screen="app"] .create-generate-hub {
  display: none;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(31, 25, 42, 0.76);
  overflow: hidden;
}

body[data-create-screen="app"] .create-generate-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 0;
  align-items: stretch;
  min-height: 720px;
}

body[data-create-screen="app"] .create-generate-sidebar,
body[data-create-screen="app"] .create-generate-main {
  display: grid;
  gap: 14px;
}

body[data-create-screen="app"] .create-generate-sidebar {
  grid-column: 2;
  grid-row: 1;
  align-content: start;
  padding: 22px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(19, 15, 29, 0.94), rgba(13, 11, 20, 0.9)),
    rgba(20, 16, 29, 0.94);
}

body[data-create-screen="app"] .create-generate-main {
  grid-column: 1;
  grid-row: 1;
  align-content: start;
  padding: 22px;
  min-height: 720px;
}

body[data-create-screen="app"] .create-generate-sidebar__top {
  display: grid;
  gap: 12px;
  align-items: start;
}

body[data-create-screen="app"] .create-generate-sidebar__top .create-inline-actions,
body[data-create-screen="app"] .create-generate-sidebar__top .btn {
  width: 100%;
}

body[data-create-screen="app"] .create-generate-mode-switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

body[data-create-screen="app"] .create-generate-mode-switch__button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(33, 27, 45, 0.96), rgba(20, 16, 29, 0.94));
  color: rgba(221, 212, 243, 0.76);
  font: inherit;
  font-weight: 700;
  min-width: 116px;
  padding: 12px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-create-screen="app"] .create-generate-mode-switch__button:hover {
  border-color: rgba(203, 174, 255, 0.26);
  color: #fff;
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-generate-mode-switch__button.is-active {
  border-color: rgba(207, 177, 255, 0.5);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(207, 177, 255, 0.98), rgba(149, 94, 255, 0.96));
  color: #20142e;
  box-shadow: 0 14px 34px rgba(149, 94, 255, 0.22);
}

body[data-create-screen="app"] .create-generate-view {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 650px;
  animation: create-generate-view-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes create-generate-view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .create-global-loader,
  .create-global-loader__orb span,
  .create-global-loader__rail span {
    animation: none;
    transition: none;
  }

  body[data-create-screen="app"] .create-generate-view {
    animation: none;
  }
}

body[data-create-screen="app"] .create-generate-chat-list {
  display: grid;
  gap: 10px;
}

body[data-create-screen="app"] .create-generate-chat-item,
body[data-create-screen="app"] .create-generate-chat-list__empty {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(20, 16, 29, 0.94);
  text-align: left;
}

body[data-create-screen="app"] .create-generate-chat-item {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-generate-chat-item:hover,
body[data-create-screen="app"] .create-generate-chat-item.is-active {
  border-color: rgba(187, 149, 255, 0.28);
  background: rgba(139, 94, 255, 0.12);
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-generate-chat-item strong,
body[data-create-screen="app"] .create-generate-chat-list__empty strong {
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-generate-chat-item span,
body[data-create-screen="app"] .create-generate-chat-list__empty p {
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] .create-generate-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 420px;
  max-height: 780px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(203, 174, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 10, 20, 0.9), rgba(8, 8, 14, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: auto;
}

body[data-create-screen="app"] .create-generate-messages.is-empty {
  place-items: center;
  align-content: center;
}

body[data-create-screen="app"] .create-generate-starter-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(420px, 92%);
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(231, 222, 255, 0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(203, 174, 255, 0.18), transparent 52%),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 55px rgba(3, 3, 9, 0.24);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-generate-starter-card:hover,
body[data-create-screen="app"] .create-generate-starter-card:focus-visible {
  border-color: rgba(203, 174, 255, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(203, 174, 255, 0.28), transparent 54%),
    rgba(139, 94, 255, 0.1);
  transform: translateY(-2px);
}

body[data-create-screen="app"] .create-generate-starter-card:focus-visible {
  outline: 3px solid rgba(187, 149, 255, 0.28);
  outline-offset: 4px;
}

body[data-create-screen="app"] .create-generate-starter-card__spark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(203, 174, 255, 0.34);
  border-radius: 16px;
  background: rgba(203, 174, 255, 0.12);
  color: #d8c6ff;
  font-size: 1.7rem;
  font-weight: 900;
}

body[data-create-screen="app"] .create-generate-starter-card strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.03em;
}

body[data-create-screen="app"] .create-generate-starter-card span:last-child {
  max-width: 30ch;
  color: rgba(232, 224, 249, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] #create-generate-chat-view {
  align-content: stretch;
  grid-template-rows: minmax(420px, 1fr) auto;
  padding: 16px;
  border: 1px solid rgba(203, 174, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(37, 30, 50, 0.62), rgba(19, 15, 29, 0.84)),
    rgba(21, 17, 30, 0.92);
  box-shadow: 0 18px 44px rgba(3, 3, 9, 0.16);
}

body[data-create-screen="app"] .create-generate-message {
  display: grid;
  gap: 10px;
  max-width: min(720px, 92%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(20, 16, 29, 0.94);
}

body[data-create-screen="app"] .create-generate-message--user {
  justify-self: end;
  background: rgba(139, 94, 255, 0.14);
}

body[data-create-screen="app"] .create-generate-message__label {
  color: rgba(203, 174, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-generate-message p {
  margin: 0;
  color: #f4efff;
  line-height: 1.65;
}

body[data-create-screen="app"] .create-generate-message__image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(11, 12, 20, 0.96);
}

body[data-create-screen="app"] .create-generate-message__image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

body[data-create-screen="app"] .create-generate-form {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

body[data-create-screen="app"] #create-generate-form {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(30, 24, 43, 0.96), rgba(18, 15, 26, 0.96));
  box-shadow: 0 14px 34px rgba(3, 3, 9, 0.18);
}

body[data-create-screen="app"] .create-generate-form__input textarea {
  min-height: 120px;
  resize: vertical;
}

body[data-create-screen="app"] #create-generate-form .create-generate-form__input textarea {
  border-color: rgba(203, 174, 255, 0.18);
  background: rgba(8, 8, 14, 0.72);
}

body[data-create-screen="app"] .create-generate-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-create-screen="app"] .create-generate-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(203, 174, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.48);
  color: rgba(244, 239, 255, 0.9);
}

body[data-create-screen="app"] .create-generate-attachment__icon {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  border-radius: 999px;
  background: rgba(203, 174, 255, 0.14);
  color: #d8c6ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body[data-create-screen="app"] .create-generate-attachment__name {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-create-screen="app"] .create-generate-attachment__meta {
  color: rgba(221, 212, 243, 0.58);
  font-size: 0.78rem;
}

body[data-create-screen="app"] .create-generate-attachment button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 239, 255, 0.82);
  cursor: pointer;
}

body[data-create-screen="app"] .create-generate-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-create-screen="app"] .create-generate-form__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-create-screen="app"] .create-generate-tool-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(203, 174, 255, 0.18);
  border-radius: 12px;
  background: rgba(203, 174, 255, 0.08);
  color: #f8f4ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-generate-tool-button:hover,
body[data-create-screen="app"] .create-generate-tool-button:focus-visible {
  border-color: rgba(203, 174, 255, 0.48);
  background: rgba(139, 94, 255, 0.18);
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-generate-combine {
  display: grid;
  gap: 14px;
  min-height: 650px;
  align-content: start;
}

body[data-create-screen="app"] .create-generate-combine-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body[data-create-screen="app"] .create-generate-customize-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

body[data-create-screen="app"] .create-generate-customize-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body[data-create-screen="app"] .create-generate-customize-toggle__track {
  position: relative;
  width: 52px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(38, 32, 50, 0.98), rgba(17, 14, 25, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body[data-create-screen="app"] .create-generate-customize-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

body[data-create-screen="app"] .create-generate-customize-toggle input:checked + .create-generate-customize-toggle__track {
  border-color: rgba(207, 177, 255, 0.5);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(207, 177, 255, 0.98), rgba(149, 94, 255, 0.96));
  box-shadow: 0 12px 28px rgba(149, 94, 255, 0.22);
}

body[data-create-screen="app"] .create-generate-customize-toggle input:checked + .create-generate-customize-toggle__track .create-generate-customize-toggle__thumb {
  transform: translateX(22px);
  background: #20142e;
}

body[data-create-screen="app"] .create-generate-customize-toggle input:focus-visible + .create-generate-customize-toggle__track {
  outline: 3px solid rgba(244, 160, 103, 0.72);
  outline-offset: 4px;
}

body[data-create-screen="app"] #create-generate-combine-prompt-wrap:not([hidden]) {
  animation: create-generate-view-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-create-screen="app"] .create-generate-combine-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

body[data-create-screen="app"] .create-generate-combine-list.is-drag-over .create-generate-combine-slot--empty {
  border-color: rgba(207, 177, 255, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(207, 177, 255, 0.18), transparent 42%),
    rgba(149, 94, 255, 0.12);
  transform: translateY(-2px);
}

body[data-create-screen="app"] .create-generate-combine-slot {
  min-height: 230px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}

body[data-create-screen="app"] .create-generate-combine-slot--filled {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 16, 29, 0.94);
  overflow: hidden;
}

body[data-create-screen="app"] .create-generate-combine-slot--empty {
  appearance: none;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 2px dotted rgba(221, 212, 243, 0.42);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(20, 16, 29, 0.5);
  color: #fff;
  font: inherit;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-generate-combine-slot--empty:hover,
body[data-create-screen="app"] .create-generate-combine-slot--empty:focus-visible {
  border-color: rgba(207, 177, 255, 0.72);
  background:
    radial-gradient(circle at 50% 12%, rgba(207, 177, 255, 0.18), transparent 42%),
    rgba(149, 94, 255, 0.12);
  transform: translateY(-2px);
}

body[data-create-screen="app"] .create-generate-combine-slot--empty:focus-visible {
  outline: 3px solid rgba(244, 160, 103, 0.75);
  outline-offset: 4px;
}

body[data-create-screen="app"] .create-generate-combine-slot__plus {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

body[data-create-screen="app"] .create-generate-combine-slot--empty strong,
body[data-create-screen="app"] .create-generate-combine-card__body strong {
  color: #fff;
}

body[data-create-screen="app"] .create-generate-combine-slot--empty span:not(.create-generate-combine-slot__plus),
body[data-create-screen="app"] .create-generate-combine-card__body span {
  margin: 0;
  color: #fff;
  line-height: 1.55;
}

body[data-create-screen="app"] .create-generate-combine-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(10, 11, 18, 0.94);
}

body[data-create-screen="app"] .create-generate-combine-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-create-screen="app"] .create-generate-combine-card__body {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.42), rgba(8, 8, 14, 0.82));
  backdrop-filter: blur(8px);
}

body[data-create-screen="app"] #create-generate-combine-view .create-generate-form__foot {
  display: block;
}

body[data-create-screen="app"] #create-generate-combine-send {
  width: 100%;
  color: #fff;
}

body[data-create-screen="app"] .create-assets-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body[data-create-screen="app"] .create-asset-card,
body[data-create-screen="app"] .create-assets-library__empty {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(20, 16, 29, 0.94);
}

body[data-create-screen="app"] .create-assets-library__empty {
  grid-column: 1 / -1;
  min-height: 220px;
  place-items: center;
  justify-items: center;
  text-align: center;
}

body[data-create-screen="app"] .create-assets-library__empty strong {
  color: #fff;
  font-size: 1rem;
}

body[data-create-screen="app"] .create-assets-library__empty p {
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] .create-asset-card__media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(11, 12, 20, 0.96);
}

body[data-create-screen="app"] .create-asset-card__media img,
body[data-create-screen="app"] .create-asset-card__media video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

body[data-create-screen="app"] .create-asset-card__body {
  display: grid;
  gap: 8px;
}

body[data-create-screen="app"] .create-asset-card__body strong {
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-asset-card__body p {
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] [hidden],
body[data-create-screen="app"] .create-flow-section[hidden] {
  display: none !important;
}

body[data-create-screen="app"] #create-app-screen .create-flow-section {
  display: none !important;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] #create-flow-step-1:not([hidden]),
body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] #create-flow-step-1:not([hidden]),
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] #create-flow-step-2:not([hidden]),
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] #create-flow-step-3:not([hidden]) {
  display: grid !important;
}

body[data-create-screen="app"] .create-project-browser[hidden] {
  display: none !important;
}

body[data-create-screen="app"] .create-stage__scene-intro,
body[data-create-screen="app"] .create-output-panel__mode-scenes,
body[data-create-screen="app"] .create-scenes-panel--assets,
body[data-create-screen="app"] .create-output-card--pipeline {
  display: none;
}

body[data-create-screen="app"] .create-stage__toolbar {
  align-items: start;
  gap: 22px;
}

body[data-create-screen="app"] .create-stage__heading {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

body[data-create-screen="app"] .create-stage__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(219, 205, 245, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-stage__eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(186, 159, 244, 0.34);
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0;
}

body[data-create-screen="app"] .create-title-input {
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.92;
}

body[data-create-screen="app"] .create-stage__description {
  margin: 0;
  color: rgba(222, 214, 242, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

body[data-create-screen="app"] .create-stage__scene-intro {
  margin-top: 18px;
  padding: 0 4px;
}

body[data-create-screen="app"] .create-stage__scene-intro h2 {
  margin: 12px 0 6px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

body[data-create-screen="app"] .create-stage__scene-intro p {
  margin: 0;
  color: rgba(222, 214, 242, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

body[data-create-screen="app"] .create-stage__mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(196, 167, 255, 0.14);
  color: #d7c0ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-stage__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body[data-create-screen="app"] .create-select,
body[data-create-screen="app"] .create-input,
body[data-create-screen="app"] .create-scene-card textarea {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f2ff;
}

body[data-create-screen="app"] .create-board-panel {
  margin-top: 20px;
}

body[data-create-screen="app"] .create-board-stage {
  min-height: 360px;
  border: 1px solid rgba(61, 194, 159, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(0, 214, 170, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(13, 19, 30, 0.96), rgba(12, 17, 28, 0.98));
}

body[data-create-screen="app"] .create-board-empty {
  gap: 12px;
  color: rgba(218, 212, 238, 0.7);
}

body[data-create-screen="app"] .create-board-empty strong {
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

body[data-create-screen="app"] .create-board-panel__hint {
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 0;
  color: rgba(214, 207, 233, 0.66);
}

body[data-create-screen="app"] .create-board-panel__selection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 14, 25, 0.72);
}

body[data-create-screen="app"] .create-board-panel__selection-tools div {
  display: grid;
  gap: 3px;
}

body[data-create-screen="app"] .create-board-panel__selection-tools strong {
  color: #fff;
  font-size: 0.92rem;
}

body[data-create-screen="app"] .create-board-panel__selection-tools span {
  color: rgba(214, 207, 233, 0.68);
  font-size: 0.82rem;
}

body[data-create-screen="app"] #create-delete-selected-crop:not(:disabled) {
  border-color: rgba(255, 116, 116, 0.42);
  color: #ffd0d0;
}

body[data-create-screen="app"] .create-pill--subtle {
  border-color: rgba(196, 167, 255, 0.16);
  background: rgba(196, 167, 255, 0.08);
  color: #dbc8ff;
}

body[data-create-screen="app"] .create-scenes-panel {
  margin-top: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(36, 29, 49, 0.7);
}

body[data-create-screen="app"] .create-scenes-panel__head,
body[data-create-screen="app"] .create-output-panel__head {
  align-items: center;
}

body[data-create-screen="app"] .create-scenes-panel__title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body[data-create-screen="app"] .create-scenes-panel__title p {
  margin: 6px 0 0;
  color: rgba(222, 214, 242, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

body[data-create-screen="app"] .create-scenes-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-create-screen="app"] .create-step-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(191, 160, 255, 0.64);
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

body[data-create-screen="app"] .create-step-badge--teal {
  border-color: rgba(67, 242, 181, 0.78);
}

body[data-create-screen="app"] .create-scenes-panel h2,
body[data-create-screen="app"] .create-output-panel h2 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

body[data-create-screen="app"] .create-workflow-progress {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 167, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 160, 103, 0.15), transparent 34%),
    rgba(14, 11, 20, 0.68);
}

body[data-create-screen="app"] .create-animation-customizer {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(196, 167, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(67, 242, 181, 0.12), transparent 36%),
    rgba(17, 13, 25, 0.72);
}

body[data-create-screen="app"] .create-animation-customizer__toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(246, 242, 255, 0.86);
  cursor: pointer;
}

body[data-create-screen="app"] .create-animation-customizer__toggle input {
  width: 20px;
  height: 20px;
  accent-color: #43f2b5;
}

body[data-create-screen="app"] .create-animation-customizer__toggle strong,
body[data-create-screen="app"] .create-animation-customizer__toggle em {
  display: block;
}

body[data-create-screen="app"] .create-animation-customizer__toggle em {
  color: rgba(220, 211, 241, 0.66);
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}

body[data-create-screen="app"] .create-animation-customizer__body label {
  display: grid;
  gap: 8px;
}

body[data-create-screen="app"] .create-animation-customizer__body textarea {
  min-height: 112px;
  resize: vertical;
}

body[data-create-screen="app"] .create-workflow-progress[hidden] {
  display: none !important;
}

body[data-create-screen="app"] .create-workflow-progress--compact {
  gap: 8px;
  margin: 2px 0 4px;
  padding: 12px;
  border-radius: 14px;
}

body[data-create-screen="app"] .create-workflow-progress--compact .create-workflow-progress__track {
  height: 8px;
}

body[data-create-screen="app"] .create-workflow-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

body[data-create-screen="app"] .create-workflow-progress__head strong {
  font-size: 0.95rem;
}

body[data-create-screen="app"] .create-workflow-progress__head span {
  color: rgba(220, 211, 241, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
}

body[data-create-screen="app"] .create-workflow-progress__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body[data-create-screen="app"] .create-workflow-progress__track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4a067, #cbb0ff);
  transition: width 260ms ease;
}

body[data-create-screen="app"] .create-workflow-progress[data-state="complete"] .create-workflow-progress__track span {
  background: linear-gradient(90deg, #43f2b5, #cbb0ff);
}

body[data-create-screen="app"] .create-workflow-progress[data-state="error"] {
  border-color: rgba(255, 116, 116, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 116, 116, 0.16), transparent 34%),
    rgba(28, 10, 16, 0.72);
}

body[data-create-screen="app"] .create-workflow-progress[data-state="error"] .create-workflow-progress__track span {
  background: linear-gradient(90deg, #ff7474, #f4a067);
}

body[data-create-screen="app"] .create-scenes,
body[data-create-screen="app"] .create-video-storyboard {
  margin-top: 16px;
}

body[data-create-screen="app"] .create-scenes {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body[data-create-screen="app"] .create-scene-card,
body[data-create-screen="app"] .create-clip-card {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(22, 18, 30, 0.88);
}

body[data-create-screen="app"] .create-scene-card__media {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

body[data-create-screen="app"] .create-scene-card__media:focus-visible {
  outline: 3px solid rgba(244, 160, 103, 0.85);
  outline-offset: 4px;
}

body[data-create-screen="app"] .create-clip-card__media {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

body[data-create-screen="app"] .create-clip-card__media:focus-visible {
  outline: 3px solid rgba(244, 160, 103, 0.85);
  outline-offset: 4px;
}

body[data-create-screen="app"] .create-clip-card__media video {
  display: block;
  pointer-events: none;
}

body[data-create-screen="app"] .create-clip-card__zoom {
  background: rgba(12, 13, 22, 0.84);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

body[data-create-screen="app"] .create-scene-card__overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-create-screen="app"] .create-scene-card__index,
body[data-create-screen="app"] .create-scene-card__state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(12, 13, 22, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-scene-card__body {
  display: grid;
  gap: 4px;
}

body[data-create-screen="app"] .create-scene-card__details,
body[data-create-screen="app"] .create-clip-card__details {
  display: grid;
  gap: 12px;
}

body[data-create-screen="app"] .create-scene-card__details summary,
body[data-create-screen="app"] .create-clip-card__details summary {
  cursor: pointer;
  color: rgba(220, 211, 241, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

body[data-create-screen="app"] .create-scene-card__details summary::-webkit-details-marker,
body[data-create-screen="app"] .create-clip-card__details summary::-webkit-details-marker {
  display: none;
}

body[data-create-screen="app"] .create-scene-card__details summary::after,
body[data-create-screen="app"] .create-clip-card__details summary::after {
  content: "+";
  float: right;
  color: rgba(220, 211, 241, 0.48);
}

body[data-create-screen="app"] .create-scene-card__details[open] summary::after,
body[data-create-screen="app"] .create-clip-card__details[open] summary::after {
  content: "−";
}

body[data-create-screen="app"] .create-scene-thumb,
body[data-create-screen="app"] .create-clip-card video,
body[data-create-screen="app"] .create-render-player {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(11, 12, 20, 0.96);
}

body[data-create-screen="app"] .create-output-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px 18px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(44, 37, 54, 0.92);
}

body[data-create-screen="app"] .create-render-player,
body[data-create-screen="app"] .create-board-empty--compact {
  min-height: 170px;
}

body[data-create-screen="app"] .create-render-hub {
  display: none;
  gap: 20px;
}

body[data-create-screen="app"] .create-render-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

body[data-create-screen="app"] .create-render-hub__surface {
  display: grid;
  gap: 14px;
}

body[data-create-screen="app"] .create-render-hub__surface .create-render-player,
body[data-create-screen="app"] .create-render-hub__surface .create-board-empty--compact {
  min-height: 360px;
}

body[data-create-screen="app"] .create-render-hub__sidebar {
  display: grid;
  gap: 16px;
}

body[data-create-screen="app"] .create-render-history {
  display: grid;
  gap: 10px;
}

body[data-create-screen="app"] .create-render-history__item,
body[data-create-screen="app"] .create-render-history__empty {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(18, 15, 26, 0.92);
  text-align: left;
}

body[data-create-screen="app"] .create-render-history__item {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-create-screen="app"] .create-render-history__item:hover,
body[data-create-screen="app"] .create-render-history__item.is-active {
  border-color: rgba(187, 149, 255, 0.28);
  background: rgba(139, 94, 255, 0.12);
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-render-history__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-create-screen="app"] .create-render-history__item-head strong,
body[data-create-screen="app"] .create-render-history__empty strong {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-render-history__item-head span {
  color: #d7c0ff;
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-create-screen="app"] .create-render-history__empty p {
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  line-height: 1.55;
}

body[data-create-screen="app"] .create-board-empty--compact {
  border-radius: 12px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(19, 16, 27, 0.96);
}

body[data-create-screen="app"] .create-output-card {
  display: grid;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(33, 27, 43, 0.9);
}

body[data-create-screen="app"] .create-output-card--storage {
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

body[data-create-screen="app"] .create-output-card--storage p {
  margin: 0;
  color: rgba(221, 212, 243, 0.74);
  font-size: 0.82rem;
}

body[data-create-screen="app"] .create-output-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-create-screen="app"] .create-output-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

body[data-create-screen="app"] .create-output-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(77, 255, 202, 0.12);
  color: #77f7ca;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-output-queue {
  display: grid;
  gap: 16px;
}

body[data-create-screen="app"] .create-output-queue__item {
  display: grid;
  gap: 8px;
}

body[data-create-screen="app"] .create-output-queue__item--complete .create-output-queue__bar span {
  width: 100%;
  background: linear-gradient(90deg, rgba(67, 242, 181, 0.92), rgba(167, 255, 221, 0.92));
}

body[data-create-screen="app"] .create-output-queue__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-create-screen="app"] .create-output-queue__title strong,
body[data-create-screen="app"] .create-output-queue__title span {
  font-size: 0.82rem;
}

body[data-create-screen="app"] .create-output-queue__title span {
  color: rgba(205, 196, 226, 0.42);
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-output-queue__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

body[data-create-screen="app"] .create-output-queue__bar span {
  display: block;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, rgba(152, 97, 255, 0.88), rgba(193, 160, 255, 0.92));
}

body[data-create-screen="app"] .create-output-queue__bar .is-idle {
  width: 18%;
  opacity: 0.28;
}

body[data-create-screen="app"] .create-pipeline-setting {
  display: grid;
  gap: 10px;
}

body[data-create-screen="app"] .create-pipeline-setting > span {
  color: rgba(220, 211, 241, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-pipeline-range {
  width: 100%;
  accent-color: #bb95ff;
}

body[data-create-screen="app"] .create-pipeline-boost {
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-create-screen="app"] .create-pipeline-boost span {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

body[data-create-screen="app"] .create-pipeline-boost span.is-active {
  background: #cbb0ff;
}

body[data-create-screen="app"] .create-pipeline-boost strong {
  margin-left: 8px;
  font-size: 0.9rem;
}

body[data-create-screen="app"] .create-asset-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

body[data-create-screen="app"] .create-asset-strip__card {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(196, 167, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(220, 211, 241, 0.82);
  font-weight: 700;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-output-panel__mode-scenes,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-stage__scene-intro,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-scenes-panel--assets,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-storyboards-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-generate-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-render-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-output-card--pipeline {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="board"] .create-output-panel__mode-board {
  display: block;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="projects"] .create-stage,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="projects"] .create-scenes-panel,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="projects"] .create-render-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="projects"] .create-project-browser {
  display: grid;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-output-panel__mode-board,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-stage__description,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] #create-project-status,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-storyboards-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-generate-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-render-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-output-panel__mode-scenes,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-stage__scene-intro,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-output-card--pipeline {
  display: grid;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-stage__toolbar {
  gap: 18px;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-stage__heading {
  max-width: 420px;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-title-input {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-board-stage {
  min-height: 200px;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-board-empty strong {
  font-size: 1.05rem;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-board-empty span {
  font-size: 0.8rem;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-scenes {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-scenes .create-scene-card {
  flex: 0 0 clamp(300px, 30vw, 380px);
  min-width: 300px;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-scene-thumb {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-video-storyboard {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] #create-flow-step-2,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-stage__scene-intro,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-scenes-panel--assets,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-storyboards-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-generate-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-render-hub,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-output-card--pipeline {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-output-panel__mode-board {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="video"] .create-output-panel__mode-scenes {
  display: grid;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] #create-flow-step-2,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] #create-flow-step-3,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] .create-scenes-panel,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] .create-render-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="storyboards"] .create-storyboards-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="generate"] .create-stage,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="generate"] .create-scenes-panel:not(.create-generate-hub),
body[data-create-screen="app"] #create-app-screen[data-workspace-view="generate"] .create-render-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="generate"] .create-generate-hub {
  display: grid;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="assets"] .create-stage,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="assets"] .create-scenes-panel:not(.create-scenes-panel--assets),
body[data-create-screen="app"] #create-app-screen[data-workspace-view="assets"] .create-render-hub {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="assets"] .create-scenes-panel--assets,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="assets"] .create-output-card--pipeline {
  display: grid;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="render"] .create-stage,
body[data-create-screen="app"] #create-app-screen[data-workspace-view="render"] .create-scenes-panel:not(.create-render-hub) {
  display: none;
}

body[data-create-screen="app"] #create-app-screen[data-workspace-view="render"] .create-render-hub {
  display: grid;
}

body[data-create-screen="app"] .create-output-card--tip strong {
  font-size: 0.9rem;
}

body[data-create-screen="app"] .create-output-card--tip p {
  margin: 0;
  color: rgba(221, 212, 243, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

body[data-create-screen="app"] .create-output-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: rgba(205, 196, 226, 0.34);
  font-size: 0.7rem;
}

body[data-create-screen="app"] .create-output-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(205, 196, 226, 0.7);
}

body[data-create-screen="app"] .create-output-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #43f2b5;
  box-shadow: 0 0 0 6px rgba(67, 242, 181, 0.08);
}

body[data-create-screen="app"] .create-modal {
  display: grid;
  place-items: center;
  padding: 30px;
}

body[data-create-screen="app"] .create-modal__backdrop {
  background: rgba(15, 12, 22, 0.82);
}

body[data-create-screen="app"] .create-modal__panel {
  width: min(760px, 100%);
  margin: 0;
  padding: 26px 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(23, 17, 34, 0.98);
}

body[data-create-screen="app"] .create-modal__head {
  margin-bottom: 18px;
}

body[data-create-screen="app"] .create-modal__panel h2 {
  font-size: 2rem;
}

body[data-create-screen="app"] .create-scene-modal__panel {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

body[data-create-screen="app"] .create-scene-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  min-height: min(720px, calc(100vh - 170px));
}

body[data-create-screen="app"] .create-scene-modal__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(244, 160, 103, 0.16), transparent 34%),
    rgba(8, 7, 12, 0.82);
  overflow: hidden;
}

body[data-create-screen="app"] .create-scene-modal__preview img {
  display: none;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

body[data-create-screen="app"] .create-scene-modal__preview.is-ai-preview img {
  display: block;
}

body[data-create-screen="app"] .create-scene-modal__preview.is-image-fallback img {
  display: block;
}

body[data-create-screen="app"] .create-scene-modal__preview.is-ai-preview .create-scene-editor__canvas,
body[data-create-screen="app"] .create-scene-modal__preview.is-ai-preview .create-scene-editor__overlay,
body[data-create-screen="app"] .create-scene-modal__preview.is-image-fallback .create-scene-editor__canvas,
body[data-create-screen="app"] .create-scene-modal__preview.is-image-fallback .create-scene-editor__overlay {
  display: none;
}

body[data-create-screen="app"] .create-scene-editor__canvas,
body[data-create-screen="app"] .create-scene-editor__overlay {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  touch-action: none;
}

body[data-create-screen="app"] .create-scene-editor__canvas {
  background: #fff;
}

body[data-create-screen="app"] .create-scene-editor__overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: none;
}

body[data-create-screen="app"] .create-clip-modal__preview video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(70vh, 720px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #05060a;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

body[data-create-screen="app"] .create-scene-modal__side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 4px 0 0;
}

body[data-create-screen="app"] .create-scene-modal__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-create-screen="app"] .create-scene-editor {
  display: grid;
  gap: 12px;
}

body[data-create-screen="app"] .create-scene-editor__divider {
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

body[data-create-screen="app"] .create-scene-editor__head {
  display: grid;
  gap: 3px;
}

body[data-create-screen="app"] .create-scene-editor__head strong {
  color: #fff;
  font-size: 0.92rem;
}

body[data-create-screen="app"] .create-scene-editor__head span {
  color: rgba(220, 211, 241, 0.66);
  font-size: 0.78rem;
}

body[data-create-screen="app"] .create-scene-editor__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-create-screen="app"] .create-scene-editor__tool {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(246, 242, 255, 0.82);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body[data-create-screen="app"] .create-scene-editor__tool:hover,
body[data-create-screen="app"] .create-scene-editor__tool.is-active {
  border-color: rgba(196, 167, 255, 0.42);
  background: rgba(139, 94, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

body[data-create-screen="app"] .create-scene-editor__settings {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 10px;
  align-items: end;
}

body[data-create-screen="app"] .create-scene-editor__settings label {
  display: grid;
  gap: 6px;
}

body[data-create-screen="app"] .create-scene-editor__settings span {
  color: rgba(220, 211, 241, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-create-screen="app"] .create-scene-editor__settings input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

body[data-create-screen="app"] .create-scene-editor__settings input[type="range"] {
  width: 100%;
  accent-color: #bb95ff;
}

body[data-create-screen="app"] .create-scene-modal__side label {
  display: grid;
  gap: 8px;
}

body[data-create-screen="app"] .create-scene-modal__side textarea {
  min-height: 220px;
  resize: vertical;
}

body[data-create-screen="app"] .create-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

body[data-create-screen="app"] .create-settings-field--full {
  grid-column: 1 / -1;
}

body[data-create-screen="app"] .create-settings-toggle {
  padding: 14px 16px;
  border: 1px solid rgba(196, 167, 255, 0.14);
  border-radius: 14px;
  background: rgba(19, 16, 27, 0.72);
}

body[data-create-screen="app"] .create-settings-toggle strong {
  color: #fff;
}

body[data-create-screen="app"] .create-format-option {
  min-height: 100%;
  background: rgba(19, 16, 27, 0.9);
}

body[data-create-screen="app"] .create-settings-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 167, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(220, 211, 241, 0.72);
  font-size: 0.85rem;
  line-height: 1.55;
}

body[data-create-screen="app"] .create-settings-status {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  body[data-create-screen="app"] .create-workspace-shell {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  body[data-create-screen="app"] .create-studio {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body[data-create-screen="app"] .create-storyboards-view__grid,
  body[data-create-screen="app"] .create-storyboard-form__styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-create-screen="app"] .create-generate-hub__grid {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-generate-main,
  body[data-create-screen="app"] .create-generate-sidebar {
    grid-column: 1;
  }

  body[data-create-screen="app"] .create-generate-main {
    grid-row: 1;
  }

  body[data-create-screen="app"] .create-generate-sidebar {
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 900px) {
  body[data-create-screen="app"] .create-stage__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-create-screen="app"] .create-stage__actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  body[data-create-screen="app"] .create-title-input {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  body[data-create-screen="app"] .create-scenes,
  body[data-create-screen="app"] .create-video-storyboard {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-scenes-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-create-screen="app"] .create-scenes-panel__actions {
    justify-content: flex-start;
  }

  body[data-create-screen="app"] .create-render-hub__grid {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-storyboard-card,
  body[data-create-screen="app"] .create-storyboard-form__grid,
  body[data-create-screen="app"] .create-storyboard-custom-style__grid,
  body[data-create-screen="app"] .create-storyboards-view__grid {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-storyboard-card__scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-create-screen="app"] .create-storyboard-form__foot {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-create-screen="app"] .create-generate-form__foot {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-create-screen="app"] .create-generate-message {
    max-width: 100%;
  }

  body[data-create-screen="app"] .create-scene-modal__body {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: auto;
  }

  body[data-create-screen="app"] .create-scene-modal__preview {
    min-height: 280px;
  }

  body[data-create-screen="app"] .create-scene-modal__preview img {
    max-height: 52vh;
  }

  body[data-create-screen="app"] .create-scene-editor__canvas,
  body[data-create-screen="app"] .create-scene-editor__overlay {
    max-height: 52vh;
  }

  body[data-create-screen="app"] .create-scene-editor__settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-create-screen="app"] .create-shell {
    padding: 12px 8px 20px;
  }

  body[data-create-screen="app"] .create-workspace-main,
  body[data-create-screen="app"] .create-sidebar {
    padding: 18px 14px;
  }

  body[data-create-screen="app"] .create-topbar {
    padding: 14px;
  }

  body[data-create-screen="app"] .create-settings-grid {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-settings-field--full {
    grid-column: auto;
  }

  body[data-create-screen="app"] .create-board-empty strong {
    font-size: 1.4rem;
  }

  body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-scenes {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body[data-create-screen="app"] #create-app-screen[data-workspace-view="scenes"] .create-scenes .create-scene-card {
    min-width: 0;
  }

  body[data-create-screen="app"] .create-render-hub__surface .create-render-player,
  body[data-create-screen="app"] .create-render-hub__surface .create-board-empty--compact {
    min-height: 240px;
  }

  body[data-create-screen="app"] .create-board-panel__selection-tools {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-create-screen="app"] .create-board-panel__selection-tools .btn {
    width: 100%;
  }

  body[data-create-screen="app"] .create-storyboards-hub,
  body[data-create-screen="app"] .create-project-browser {
    padding: 18px 16px;
  }

  body[data-create-screen="app"] .create-storyboard-form__styles,
  body[data-create-screen="app"] .create-storyboard-card__scenes {
    grid-template-columns: 1fr;
  }

  body[data-create-screen="app"] .create-modal {
    padding: 10px;
  }

  body[data-create-screen="app"] .create-scene-modal__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
  }

  body[data-create-screen="app"] .create-scene-modal__preview {
    min-height: 220px;
  }
}
