:root {
  --nav: #0a1736;
  --canvas: #edf3ff;
  --surface: #f8faff;
  --ink: #13284c;
  --muted: #526887;
  --line: #cbd9ef;
  --blue: #0057e1;
  --green: #16734f;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
main:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.demo-notice {
  height: 40px;
  background: var(--nav);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  font-size: 10px;
  border-bottom: 1px solid #354563;
}
.demo-notice > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.demo-notice button {
  border: 0;
  color: #cedaf0;
  background: transparent;
  min-height: 30px;
  padding: 3px 5px;
  font-size: 10px;
}
.demo-notice button[aria-pressed="true"] {
  color: white;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.demo-notice #reset {
  border: 1px solid #7688a8;
  border-radius: 4px;
  padding: 3px 8px;
  color: white;
}
.shell {
  display: flex;
  height: calc(100dvh - 40px);
}
.sidebar {
  width: 214px;
  flex: none;
  background: var(--nav);
  color: #f0f5ff;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  height: 70px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #2c3c5d;
}
.brand-mark {
  display: grid;
  place-items: center;
  font:
    italic 32px Georgia,
    serif;
  color: #8bb8ff;
  width: 32px;
  height: 34px;
}
.brand small {
  display: block;
  font-size: 8px;
  margin-top: 5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #b0bed7;
}
.sidebar nav {
  padding: 14px 9px;
  flex: 1;
  overflow-y: auto;
}
.nav-group {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #adc0e2;
  padding: 18px 12px 9px;
  text-transform: uppercase;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  min-height: 43px;
  border-radius: 5px;
  margin: 3px 0;
  font-size: 12px;
  color: #bdcde9;
}
.nav-link.active {
  color: white;
  background: #1d355c;
  box-shadow: inset 3px 0 #74aaff;
}
.nav-link:hover {
  color: white;
  background: #182c4c;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.sidebar-foot {
  padding: 22px;
  font-size: 8px;
  color: #adbfdf;
  border-top: 1px solid #2c3c5d;
  letter-spacing: 0.12em;
}
.sidebar-foot small {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0;
}
.workspace {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  min-height: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.breadcrumb strong {
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-selector {
  width: 230px;
  min-width: 0;
}
.project-selector select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 5px;
  padding: 9px;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
}
.director-toggle {
  min-height: 36px;
  border: 1px solid #b3caef;
  padding: 8px 12px;
  color: var(--blue);
  background: #e4edff;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}
main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 30px;
  overscroll-behavior: contain;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    400 clamp(30px, 3vw, 42px)/1.1 Georgia,
    serif;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin-top: 12px;
}
.page-head > div:last-child {
  flex: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: white;
  font-size: 11px;
}
.button:hover {
  border-color: #79a4e4;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 5px 18px -10px #0057e1;
}
.button.primary:hover {
  background: #0044b7;
}
.button.danger {
  color: #a8303b;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 9px;
  background: #e5edfa;
  color: #38577e;
}
.chip.green {
  background: #e1f2eb;
  color: #166047;
}
.chip.blue {
  background: #dceaff;
  color: #0050c6;
}
.section-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font:
    32px Georgia,
    serif;
  margin-top: 10px;
}
.continue-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  margin-bottom: 32px;
}
.continue-card > div:last-child {
  padding: 24px;
}
.continue-card h2 {
  font:
    25px Georgia,
    serif;
  margin: 13px 0 10px;
}
.continue-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.art {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: white;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 30% 110%, #ffbc89 0, transparent 57%),
    linear-gradient(135deg, #14465d, #76afb7 52%, #22334e);
}
.art::before {
  content: "";
  position: absolute;
  width: 76%;
  height: 80%;
  right: -18%;
  top: 22%;
  background: #f4d4b75c;
  border-radius: 48% 48% 0 0;
  transform: rotate(-17deg);
  z-index: -1;
}
.art::after {
  content: "";
  position: absolute;
  width: 75%;
  height: 55%;
  left: -15%;
  bottom: -15%;
  border: 1px solid #fff9;
  border-radius: 50%;
  transform: rotate(12deg);
  z-index: -1;
}
.art .art-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.art .art-title {
  font:
    italic 36px Georgia,
    serif;
  letter-spacing: -0.05em;
}
.art.violet {
  background:
    radial-gradient(ellipse at 60% 20%, #eeb6c0, transparent 65%),
    linear-gradient(135deg, #423659, #93749a);
}
.art.amber {
  background:
    radial-gradient(ellipse at 30% 90%, #e4ae76, transparent 60%),
    linear-gradient(145deg, #2c3d3a, #8b886d);
}
.art.blue {
  background:
    radial-gradient(ellipse at 50% 10%, #a0d6f0, transparent 55%),
    linear-gradient(135deg, #193e83, #5e88bf);
}
.project-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card,
.asset-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.project-card > button {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 0;
  display: block;
}
.project-card:hover {
  border-color: #8eb0e4;
}
.project-card .card-info {
  padding: 16px;
}
.card-info h3 {
  margin: 10px 0;
  font-size: 13px;
}
.card-info p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.card-info .progress {
  margin: 16px 0 5px;
}
.progress {
  height: 4px;
  border-radius: 5px;
  background: #d8e4f7;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
  transition: width 0.2s;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  max-width: 300px;
}
input:not([type="range"]),
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
  font-size: 12px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
label > span {
  display: block;
  margin-bottom: 8px;
}
label > input:not([type="range"]),
label > textarea,
label > select {
  width: 100%;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scene {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.scene .art {
  min-height: 150px;
}
.scene .art-title {
  font-size: 30px;
}
.scene-body {
  padding: 15px;
  display: grid;
  gap: 12px;
}
.scene-body .title {
  font-weight: 600;
}
.scene-body .two-fields {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
}
.scene-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scene-tools button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  min-width: 30px;
  min-height: 30px;
  font-size: 11px;
}
.scene-tools button:last-child {
  color: #a8303b;
}
.board.list {
  grid-template-columns: 1fr;
}
.board.list .scene {
  display: grid;
  grid-template-columns: 210px 1fr;
}
.board.list .scene .art {
  height: 100%;
}
.empty {
  padding: 40px;
  border: 1px dashed #a8bcdd;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 22px;
  min-width: 0;
}
.panel > h2 {
  margin-bottom: 20px;
}
.form-stack {
  display: grid;
  gap: 20px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stage {
  min-height: 230px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  color: white;
  background:
    radial-gradient(ellipse at 25% 120%, #ffcfb2, transparent 62%),
    linear-gradient(125deg, #214759, #62999e 55%, #26334b);
  position: relative;
  overflow: hidden;
}
.stage::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 300px;
  top: 50px;
  right: 25px;
  border: 1px solid #d1f5f0;
  border-radius: 100px 100px 0 0;
  transform: rotate(20deg);
  opacity: 0.6;
}
.stage span {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.stage strong {
  position: relative;
  z-index: 1;
  font:
    italic 50px Georgia,
    serif;
}
.stage small {
  position: relative;
  z-index: 1;
  font-size: 10px;
  line-height: 1.6;
}
.stage.playing::after {
  animation: drift 3s linear infinite alternate;
}
@keyframes drift {
  to {
    transform: translate(-35px, 20px) rotate(-10deg);
  }
}
.generation {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.generation > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 10px;
}
.generation p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}
.generation .inline-actions {
  margin-top: 12px;
}
.demo-info {
  margin-top: 16px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 20px;
}
.conversation {
  min-height: 340px;
  max-height: 400px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
}
.message {
  max-width: 95%;
  font-size: 12px;
  line-height: 1.75;
  padding: 16px;
  background: #e7eefc;
  border-radius: 8px;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  margin-left: auto;
  background: white;
}
.message strong {
  font-size: 9px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
}
.composer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.composer textarea {
  min-height: 90px;
  width: 100%;
}
.mode {
  width: 100%;
  text-align: left;
  display: block;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 9px;
  font-size: 11px;
}
.mode.active {
  border-color: #548ce5;
  color: var(--blue);
  background: #e5eeff;
}
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 20px 0;
  font-size: 11px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.checklist span {
  color: var(--green);
}
.workflow {
  display: grid;
  gap: 12px;
}
.workflow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  position: relative;
}
.workflow-node + .workflow-node::before {
  content: "";
  width: 1px;
  height: 13px;
  background: #95b3df;
  position: absolute;
  top: -13px;
  left: 36px;
}
.node-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dceaff;
  color: var(--blue);
  font-size: 10px;
  flex: none;
}
.workflow-node > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.workflow-node p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}
.workflow-node.running {
  border-color: #4a89e7;
}
.workflow-node.done .node-number {
  background: #e1f2eb;
  color: var(--green);
}
.asset-card .art {
  min-height: 155px;
}
.asset-card .card-info .inline-actions {
  margin-top: 16px;
}
.asset-card .art.audio {
  background: linear-gradient(125deg, #193150, #608ca1);
}
.audio-wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 60px;
}
.audio-wave i {
  width: 6px;
  background: #b8deef;
  border-radius: 8px;
}
.editor {
  display: grid;
  gap: 20px;
}
.editor .stage {
  max-width: 700px;
  margin: auto;
  width: 100%;
  min-height: 260px;
}
.play-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 11px;
}
.play-controls input {
  width: 220px;
  accent-color: var(--blue);
}
.timeline {
  overflow-x: auto;
}
.timeline-inner {
  min-width: 520px;
}
.ruler {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 10px 50px;
  font: 9px monospace;
  color: var(--muted);
}
.track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  border-top: 1px solid var(--line);
}
.track-label {
  width: 42px;
  flex: none;
  font: 10px monospace;
  color: var(--muted);
}
.clips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
}
.clip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 60px;
  height: 44px;
  background: #d8e6ff;
  border: 1px solid #9ab7e8;
  color: #154582;
  font-size: 10px;
  text-align: left;
  border-radius: 4px;
  padding: 7px;
  overflow: hidden;
}
.clip.active {
  border: 2px solid var(--blue);
  background: #c7dbff;
}
.clip small {
  font: 9px monospace;
}
.audio-clip {
  flex: 1;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    #d6ede7 0px,
    #d6ede7 10px,
    #b8ded0 11px,
    #b8ded0 14px
  );
  border: 1px solid #93c4b0;
  border-radius: 4px;
}
.clip-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
}
.clip-tools label {
  max-width: 100px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: calc(100vw - 32px);
  width: 460px;
  color: var(--ink);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 25px 80px #0a173640;
}
dialog::backdrop {
  background: #0a173680;
}
dialog form {
  display: grid;
  gap: 24px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-head h2 {
  font:
    28px Georgia,
    serif;
}
.dialog-head button {
  border: 0;
  background: white;
  color: var(--ink);
  min-width: 36px;
  min-height: 36px;
  border-radius: 4px;
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: calc(100vw - 40px);
  padding: 14px 18px;
  color: white;
  background: var(--nav);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 10px 30px #0a173633;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
#toast.visible {
  opacity: 1;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 64px;
  }
  .brand {
    padding: 14px;
    justify-content: center;
  }
  .brand > span:last-child,
  .nav-link > span,
  .nav-group,
  .sidebar-foot {
    display: none;
  }
  .nav-link {
    justify-content: center;
    padding: 12px;
  }
  .sidebar nav {
    padding: 12px 5px;
  }
  .project-selector {
    width: 200px;
  }
  .project-grid,
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    padding: 12px 18px;
  }
}
@media (max-width: 720px) {
  main {
    padding: 22px 18px;
  }
  .topbar {
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 18px;
  }
  .breadcrumb {
    flex-basis: 100%;
  }
  .project-selector {
    flex: 1;
    width: auto;
  }
  .director-toggle {
    font-size: 10px;
    padding: 8px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .page-head p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 14px;
  }
  .continue-card {
    grid-template-columns: 1fr;
  }
  .continue-card .art {
    min-height: 160px;
  }
  .continue-card > div:last-child {
    padding: 20px;
  }
  .studio-grid,
  .chat-grid {
    grid-template-columns: 1fr;
  }
  .project-grid,
  .asset-grid,
  .board {
    grid-template-columns: 1fr;
  }
  .board.list .scene {
    grid-template-columns: 1fr;
  }
  .demo-notice {
    padding: 0 10px;
    gap: 5px;
    font-size: 9px;
  }
  .demo-notice > div {
    gap: 4px;
  }
  .demo-notice button {
    font-size: 9px;
  }
  .panel {
    padding: 18px;
  }
  .two-fields {
    gap: 12px;
  }
  .toolbar {
    align-items: start;
  }
  .toolbar input[type="search"] {
    width: 100%;
  }
  .conversation {
    max-height: 320px;
    min-height: 230px;
  }
  .workflow-node {
    gap: 10px;
    padding: 15px;
  }
  .workflow-node .chip {
    font-size: 8px;
    padding: 4px;
  }
  .editor .stage {
    min-height: 200px;
    padding: 18px;
  }
  .stage strong {
    font-size: 40px;
  }
  .play-controls input {
    width: 150px;
  }
}
@media (max-width: 380px) {
  .sidebar {
    width: 48px;
  }
  .brand {
    padding: 8px;
  }
  .sidebar nav {
    padding: 8px 3px;
  }
  .nav-link {
    padding: 12px 8px;
  }
  .demo-notice {
    height: 54px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 8px;
  }
  .shell {
    height: calc(100dvh - 54px);
  }
  main {
    padding: 20px 12px;
  }
  .topbar {
    padding: 10px 12px;
  }
  .director-toggle {
    width: 100%;
  }
  h1 {
    font-size: 30px;
  }
  .clip-tools {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sidebar a:focus-visible {
  outline-color: #a9caff;
}
.stage.violet {
  background:
    radial-gradient(ellipse at 60% 20%, #eeb6c0, transparent 65%),
    linear-gradient(135deg, #423659, #93749a);
}
.stage.blue {
  background:
    radial-gradient(ellipse at 50% 10%, #a0d6f0, transparent 55%),
    linear-gradient(135deg, #193e83, #5e88bf);
}
.stage.amber {
  background:
    radial-gradient(ellipse at 30% 90%, #e4ae76, transparent 60%),
    linear-gradient(145deg, #2c3d3a, #8b886d);
}
.art-label {
  align-self: flex-start;
  background: #0a1736cc;
  padding: 5px 7px;
  border-radius: 3px;
}
.art-title {
  align-self: flex-start;
  background: #0a1736a3;
  padding: 4px 9px;
  border-radius: 3px;
}
.stage strong {
  align-self: flex-start;
  background: #0a1736a3;
  padding: 6px 12px;
  border-radius: 4px;
}
.stage {
  width: 100%;
  min-width: 0;
}
.stage strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(26px, 4.5vw, 50px);
}
.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.two-fields label {
  min-width: 0;
}
.stage[data-format="9:16"] {
  aspect-ratio: 9/16;
  max-width: 260px;
  min-height: 300px;
  margin-inline: auto;
}
.stage[data-format="1:1"] {
  aspect-ratio: 1;
}
/* Independent reconstruction based on the supplied desktop captures. */
:root {
  --nav: #0b1733;
  --canvas: #ecf2fc;
  --surface: #fff;
  --ink: #101d3f;
  --blue: #005bea;
}
.sidebar {
  width: 236px;
}
.brand {
  height: 56px;
  font:
    20px Georgia,
    serif;
  letter-spacing: -1px;
  padding: 12px 16px;
}
.brand small {
  font: 8px monospace;
  letter-spacing: 3px;
}
.brand-mark {
  color: #005bea;
  background: #111923;
  border: 1px solid #24324a;
  border-radius: 4px;
  font: bold 27px Arial;
  width: 28px;
  height: 28px;
}
.nav-link {
  min-height: 36px;
  padding: 8px 12px;
  margin: 0;
  font-size: 12px;
}
.nav-group {
  font: 9px monospace;
  letter-spacing: 2px;
  padding-top: 22px;
}
.nav-link.active {
  background: #0b2a4e;
  box-shadow: inset 3px 0 #33a9ed;
}
.topbar {
  min-height: 56px;
  height: 56px;
  gap: 12px;
  padding: 8px 16px;
}
.breadcrumb {
  flex: 0 1 130px;
}
.project-selector {
  width: 170px;
}
.topbar select {
  padding: 6px 10px;
  background: #edf2fc;
  min-height: 30px;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  padding: 8px;
  flex: 1;
  min-width: 0;
}
.topbar-search span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-search kbd {
  font: 9px monospace;
  background: #e0e9fa;
  padding: 2px 4px;
}
.model-preview {
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--canvas);
  padding: 9px;
  border-radius: 6px;
}
.offline-label {
  font: 9px monospace;
  letter-spacing: 0.4px;
  color: #875300;
  background: #f8f0df;
  border: 1px solid #d8b887;
  border-radius: 20px;
  padding: 4px 8px;
  white-space: nowrap;
}
.director-toggle {
  padding: 8px 12px;
  white-space: nowrap;
}
.activity-bar {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  background: white;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.activity-status {
  color: #16734f;
}
#workspace {
  padding: 28px 24px;
  flex: 1;
}
.page-head h1 {
  font:
    34px Georgia,
    serif;
  letter-spacing: -1.3px;
  font-weight: 400;
}
.page-head p {
  font-size: 12px;
}
.page-head {
  margin-bottom: 20px;
}
h2,
h3 {
  font-weight: 500;
}
.panel {
  background: white;
  border-radius: 10px;
}
.panel > h2,
.section-label {
  font: 10px monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.section-label {
  margin: 32px 0 12px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  max-width: 1376px;
  margin: auto;
}
.dashboard-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dashboard-aside .button {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
.continue-card {
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
}
.continue-card h2 {
  font:
    29px Georgia,
    serif;
}
.continue-card > .art {
  min-height: 210px;
}
.art {
  background:
    repeating-linear-gradient(0deg, #ffffff03 0px, #ffffff03 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #664026, #161b15);
  min-height: 180px;
}
.art:before {
  inset: 18% 20%;
  width: auto;
  height: auto;
  border: 1px solid #ffffff3d;
  background: none;
  border-radius: 5px;
  transform: none;
  box-shadow: none;
}
.art:after {
  content: "♧";
  font: 40px Georgia;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  background: none;
  border: none;
  transform: none;
  color: #ffffff65;
  box-shadow: none;
}
.art.violet {
  background:
    repeating-linear-gradient(0deg, #ffffff03 0px, #ffffff03 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #512853, #18131c);
}
.art.amber {
  background: linear-gradient(135deg, #655127, #111714);
}
.art.blue {
  background: linear-gradient(135deg, #254e5c, #141727);
}
.art-title {
  font:
    21px Georgia,
    serif;
  z-index: 2;
  bottom: 20px;
  left: 14px;
}
.art-label {
  z-index: 2;
  top: auto;
  bottom: 7px;
  right: 9px;
  left: auto;
  font: 8px monospace;
}
.project-card h3 {
  font:
    19px Georgia,
    serif;
}
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card .card-info {
  padding: 14px;
}
.project-card .card-info p,
.project-card small {
  font-size: 10px;
  color: var(--muted);
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.preset-grid button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 3px 3px #14284909;
}
.preset-grid strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.preset-grid small {
  font: 9px monospace;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.preset-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  background: #d7e7fa;
  border-radius: 8px;
  font-size: 23px;
  color: var(--blue);
  flex: none;
}
.preset-1 {
  background: #f7e3dc;
  color: #b55432;
}
.preset-2 {
  background: #e8e2fc;
  color: #7753df;
}
.preset-3 {
  background: #eee6d7;
  color: #956413;
}
.preset-4 {
  background: #dcece5;
  color: #187850;
}
.metric {
  font:
    35px Georgia,
    serif;
  display: block;
  color: var(--blue);
}
.mini-stats {
  display: flex;
  gap: 30px;
  font-size: 10px;
}
.mini-stats strong {
  font: 27px Georgia;
  display: block;
}
.storyboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.board,
.board.list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.scene {
  padding: 18px;
  border-radius: 16px;
  background: #f6f9ff;
  overflow: visible;
}
.scene-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.scene-heading h2 {
  font: 24px Georgia;
  margin: 0;
  flex: 1;
}
.scene-heading > div {
  display: flex;
  gap: 5px;
}
.scene-heading .button {
  padding: 4px 7px;
}
.scene-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #e2ebfa;
  border-radius: 50%;
  font: 12px monospace;
}
.scene textarea {
  width: 100%;
  margin-bottom: 14px;
  min-height: 60px;
}
.shot-card {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-align: left;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
}
.shot-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.shot-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 160px;
  background: repeating-linear-gradient(
    135deg,
    #e0e9f8 0px,
    #e0e9f8 18px,
    #d7e2f4 18px,
    #d7e2f4 36px
  );
}
.shot-placeholder strong {
  font: 42px Georgia;
  color: #9baece;
}
.shot-placeholder small {
  font: 9px monospace;
  letter-spacing: 1px;
  color: #657a9d;
}
.shot-placeholder > span {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #bdcbe3;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 10px;
}
.shot-card > div:last-child {
  padding: 12px;
}
.shot-card h3 {
  margin: 0;
  font-size: 12px;
}
.shot-card p {
  font-size: 10px;
  color: var(--muted);
}
.shot-inspector {
  position: sticky;
  top: 0;
  align-self: start;
}
.shot-inspector label {
  display: block;
  margin-top: 18px;
}
.shot-inspector label > span {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
}
.shot-inspector input,
.shot-inspector textarea,
.shot-inspector select {
  width: 100%;
  background: var(--canvas);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  padding: 50px 24px;
  background: radial-gradient(#b9c8e5 0.8px, transparent 0.8px) 0 0/16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.workflow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  border-top: 4px solid #467cbe;
  min-height: 150px;
  padding: 15px;
  background: white;
  box-shadow: 0 5px 10px #1527440d;
}
.workflow-node:after {
  content: "→";
  position: absolute;
  right: -23px;
  top: 55%;
  color: #7195b7;
  font-size: 21px;
}
.workflow-node:nth-child(4n):after {
  content: "↓";
  right: 50%;
  top: auto;
  bottom: -32px;
}
.workflow-node:last-child:after {
  content: none;
}
.workflow-node h2 {
  font-size: 12px;
}
.workflow-node p {
  font-size: 10px;
}
.workflow-node:nth-child(3n) {
  border-top-color: #6f54ce;
}
.workflow-node:nth-child(3n + 1) {
  border-top-color: #1d9976;
}
.node-number {
  width: 28px;
  height: 28px;
  font: 12px monospace;
  background: #e4effb;
  border-radius: 6px;
}
.workflow-node .chip {
  font-size: 9px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 620px;
}
td,
th {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  font: 10px monospace;
  color: var(--muted);
  text-transform: uppercase;
}
td:nth-child(3) {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
}
.client-card {
  display: flex;
  width: 100%;
  gap: 12px;
  text-align: left;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.client-card strong {
  display: block;
  font-size: 12px;
}
.client-card small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: var(--muted);
}
.selected {
  border-color: var(--blue) !important;
  background: #dae6fa !important;
}
.client-avatar {
  display: grid;
  place-items: center;
  background: #7b4d21;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font: 23px Georgia;
  flex: none;
}
.client-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.client-heading h2 {
  font: 29px Georgia;
  margin: 0;
}
.client-heading p {
  font-size: 11px;
  color: var(--muted);
}
.client-profile {
  border-top: 4px solid #7b4d21;
}
.client-profile label,
.prompt-layout label,
.settings-layout label {
  display: block;
  margin: 15px 0;
}
.client-profile label > span,
.prompt-layout label > span,
.settings-layout label > span {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
}
.client-profile input,
.client-profile textarea,
.prompt-layout input,
.prompt-layout textarea,
.settings-layout select {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.prompt-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 20px;
}
.template-item {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 6px;
  padding: 16px;
  font-size: 12px;
}
.template-item strong {
  font-size: 12px;
  font-weight: 500;
}
.template-item small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.prompt-layout textarea,
.prompt-layout pre {
  font: 11px/1.6 monospace;
}
.prompt-layout pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 20px;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 11px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  max-width: 1120px;
  margin: auto;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12px;
}
.setting-row code {
  font-size: 10px;
}
.editor .stage,
.studio-grid .stage {
  background: repeating-linear-gradient(
    135deg,
    #0c1118 0px,
    #0c1118 25px,
    #111823 25px,
    #111823 30px
  );
  color: #ced7e6;
}
.stage:before,
.stage:after {
  display: none;
}
.stage strong {
  font: 27px Georgia;
  color: white;
}
.stage small {
  color: #afbdcf;
}
.editor .stage {
  min-height: 340px;
}
.studio-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}
.stage {
  min-height: 420px;
}
.chat-grid {
  max-width: 1100px;
  margin: auto;
}
.conversation {
  background: white;
}
.message.assistant {
  background: #edf2fc;
}
.page-head h1 {
  line-height: 1.15;
}
@media (min-width: 1600px) {
  #workspace[data-module="dashboard"],
  #workspace[data-module="projects"] {
    padding: 28px max(24px, calc((100% - 1376px) / 2));
  }
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dashboard-layout .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1350px) {
  .model-preview {
    display: none;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
  }
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prompt-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .prompt-layout > aside:last-child {
    grid-column: 2;
  }
  .sidebar {
    width: 214px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-layout .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 60px;
  }
  .brand {
    justify-content: center;
    padding: 8px;
  }
  .brand > span:last-child,
  .nav-link > span,
  .nav-group,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    padding: 12px 8px;
  }
  .nav-link {
    justify-content: center;
    padding: 8px;
  }
  .topbar-search {
    display: none;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .storyboard-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .workflow {
    gap: 30px 16px;
    padding: 24px 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workflow-node:after {
    display: none;
  }
  .client-layout {
    grid-template-columns: 200px 1fr;
  }
  .studio-grid {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .offline-label {
    font-size: 8px;
  }
  .activity-bar {
    gap: 12px;
  }
  .activity-bar > span:nth-child(2),
  .activity-bar > span:nth-child(3) {
    display: none;
  }
}
@media (max-width: 760px) {
  #workspace {
    padding: 20px 14px;
  }
  .topbar {
    gap: 8px;
    padding: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .project-selector {
    width: 120px;
    flex: 1;
  }
  .offline-label {
    display: none;
  }
  .director-toggle {
    font-size: 10px;
  }
  .page-head h1 {
    font-size: 28px;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
  .dashboard-aside > .panel:not(:first-child) {
    display: none;
  }
  .continue-card {
    grid-template-columns: 1fr;
  }
  .continue-card > .art {
    min-height: 170px;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-layout .project-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .storyboard-layout {
    grid-template-columns: 1fr;
  }
  .shot-inspector {
    position: static;
  }
  .scene-heading {
    flex-wrap: wrap;
  }
  .scene-heading h2 {
    font-size: 20px;
  }
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 10px;
    gap: 20px 12px;
  }
  .workflow-node {
    min-width: 0;
    padding: 12px;
  }
  .workflow-node h2 {
    overflow-wrap: anywhere;
  }
  .client-layout,
  .prompt-layout,
  .settings-layout,
  .studio-grid,
  .analytics-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }
  .prompt-layout > aside:last-child {
    grid-column: auto;
  }
  .client-layout > aside,
  .prompt-layout > aside:first-child,
  .settings-layout > aside {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .client-card,
  .template-item {
    width: 190px;
    flex: none;
  }
  .settings-layout .template-item {
    width: auto;
    white-space: nowrap;
  }
  .client-heading h2 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shot-card {
    width: 100%;
  }
  .activity-bar {
    font-size: 8px;
    padding: 0 10px;
  }
  .activity-bar > span:first-child {
    display: none;
  }
  .stage {
    min-height: 260px;
  }
  .editor .stage {
    min-height: 240px;
  }
  .chart-row {
    grid-template-columns: 90px 1fr 15px;
    font-size: 10px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > div {
    min-width: 0;
  }
  .scene {
    padding: 12px;
  }
  .demo-notice {
    padding: 0 8px;
    font-size: 8px;
  }
  .demo-notice > span {
    min-width: 0;
  }
  .setting-row {
    flex-wrap: wrap;
  }
  .panel {
    min-width: 0;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 48px;
  }
  .nav-link svg {
    width: 16px;
  }
  .sidebar nav {
    padding: 8px 4px;
  }
}
@font-face {
  font-family: StudioSerif;
  src: url("./fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: StudioSerif;
  src: url("./fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: StudioSans;
  src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: StudioSans;
  src: url("./fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
:root {
  font-family: StudioSans, Arial, sans-serif;
}
.brand,
.page-head h1,
.continue-card h2,
.art-title,
.project-card h3,
.shot-placeholder strong,
.scene-heading h2,
.metric,
.mini-stats strong,
.client-heading h2,
.stage strong {
  font-family: StudioSerif, Georgia, serif;
  letter-spacing: -0.01em;
}
.video-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  gap: 20px;
}
.video-compose,
.video-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.video-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.video-modes button {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue);
  text-align: left;
}
.video-modes strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
}
.video-layout label {
  display: block;
  margin: 18px 0;
}
.video-layout label > span {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}
.video-layout textarea,
.video-layout select {
  width: 100%;
  background: var(--canvas);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.video-inspector {
  align-self: start;
}
.video-inspector hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.video-inspector .primary {
  width: 100%;
  margin-top: 24px;
  white-space: normal;
}
.video-inspector .offline-label {
  display: block;
  font-size: 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.5;
}
.camera-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.camera-options .button {
  padding: 6px;
  font-size: 10px;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 12px;
  color: var(--muted);
}
.video-preview .stage {
  min-height: 400px;
}
.director-overlay {
  position: absolute;
  top: 122px;
  right: 16px;
  bottom: 44px;
  width: 780px;
  max-width: calc(100% - 90px);
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: white;
  box-shadow: 0 10px 35px #13244829;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 5;
}
.director-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.director-head > span {
  font-size: 16px;
  color: var(--blue);
}
.director-head strong {
  color: var(--ink);
  font-size: 13px;
}
.director-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 0 25px;
}
.director-models {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.7fr;
  gap: 8px;
}
.director-models label > span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.director-models select {
  width: 100%;
  font-size: 11px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 5px;
}
.director-modes {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.director-modes .button {
  font-size: 10px;
  padding: 7px 9px;
}
.director-overlay .conversation {
  flex: 1;
  min-height: 0;
  padding: 10px 0;
  height: auto;
  max-height: none;
  overflow: auto;
}
.director-overlay .composer {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.director-overlay .composer textarea {
  background: var(--canvas);
  border-color: var(--blue);
  min-height: 86px;
}
.director-overlay .composer .demo-info {
  font-size: 9px;
}
.director-welcome {
  padding: 10px 0;
}
.director-welcome h1 {
  font:
    34px/1.1 StudioSerif,
    Georgia;
  margin: 18px 0;
}
.director-welcome em {
  font-style: normal;
  color: var(--blue);
}
.director-welcome > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 380px;
}
.director-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.director-suggestions button {
  text-align: left;
  font-size: 11px;
}
.editor {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 230px;
  gap: 14px;
}
.editor-monitor {
  padding: 0 !important;
  overflow: hidden;
}
.editor-monitor .stage {
  border: 0;
  border-radius: 0;
  min-height: 380px;
}
.editor .play-controls {
  padding: 12px;
}
.editor-timeline {
  grid-column: 1/-1;
}
.media-bin-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
  font-size: 11px;
}
.media-bin-item small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.editor-properties p {
  font-size: 12px;
}
.editor-properties .setting-row {
  font-size: 11px;
}
@media (max-width: 1400px) {
  .video-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .video-inspector {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .video-inspector > h2,
  .video-inspector > .demo-info,
  .video-inspector > hr {
    grid-column: 1/-1;
  }
  .video-inspector label {
    margin: 0;
  }
  .video-inspector hr {
    margin: 10px 0;
  }
  .video-inspector .primary {
    margin: 0;
  }
  .editor {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .editor-properties {
    grid-column: 1/-1;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
  }
  .editor-properties .setting-row {
    padding: 0;
    border: 0;
  }
  .editor-properties .demo-info {
    margin: 0;
  }
  .editor-properties p {
    margin: 0;
  }
}
@media (max-width: 760px) {
  .video-layout {
    grid-template-columns: 1fr;
  }
  .video-inspector {
    grid-column: auto;
    display: block;
  }
  .video-inspector label {
    margin: 18px 0;
  }
  .video-preview .stage {
    min-height: 240px;
  }
  .director-overlay {
    top: 96px;
    right: 8px;
    bottom: 38px;
    max-width: calc(100% - 64px);
    padding: 12px;
  }
  .director-models {
    grid-template-columns: 1fr 1fr;
  }
  .director-models label:last-child {
    display: none;
  }
  .director-models select {
    font-size: 9px;
  }
  .director-welcome h1 {
    font-size: 29px;
  }
  .director-suggestions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 16px;
  }
  .director-head {
    margin-bottom: 12px;
  }
  .director-modes {
    gap: 3px;
  }
  .director-modes .button {
    padding: 6px;
    font-size: 8px;
  }
  .director-overlay .composer textarea {
    min-height: 70px;
  }
  .director-overlay .composer .inline-actions {
    flex-wrap: wrap;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .editor-bin {
    display: flex;
    align-items: center;
    overflow: auto;
    gap: 8px;
  }
  .editor-bin h2 {
    white-space: nowrap;
  }
  .editor-bin .media-bin-item {
    width: 130px;
    min-width: 130px;
    margin: 0;
  }
  .editor-bin .demo-info {
    display: none;
  }
  .editor-properties {
    grid-column: auto;
  }
  .editor-timeline {
    grid-column: auto;
  }
  .editor-monitor .stage {
    min-height: 240px;
  }
}
.topbar {
  flex: none;
  flex-wrap: nowrap;
  position: relative;
  z-index: 6;
}
.director-toggle {
  width: auto;
  flex: none;
}
.project-selector {
  min-width: 0;
}
.art .art-title {
  font:
    400 22px/1.15 StudioSerif,
    Georgia,
    serif;
  letter-spacing: -0.01em;
  background: none;
  padding: 0;
  position: absolute;
  left: 12px;
  bottom: 18px;
}
.art .art-label {
  position: absolute;
  top: auto;
  bottom: 6px;
  right: 8px;
  background: none;
  padding: 0;
  font: 8px monospace;
}
.shell {
  height: calc(100dvh - 40px);
}
.demo-notice {
  height: 40px;
}
.art {
  position: relative;
}
.video-preview .stage,
.editor-monitor .stage {
  border-radius: 8px;
}
.activity-bar {
  position: relative;
  z-index: 6;
}
@media (max-width: 760px) {
  .topbar {
    padding: 8px;
    gap: 6px;
  }
  .director-toggle {
    max-width: 95px;
    font-size: 9px;
    padding: 8px;
  }
  .project-selector select {
    font-size: 9px;
  }
  .demo-notice {
    font-size: 8px;
  }
  .demo-notice button {
    font-size: 8px;
  }
}
