.director-studio{--ds-line:#dce3ed;--ds-muted:#63738a;--ds-accent:#315fe8;min-height:calc(100vh - 160px);font-size:13px}.ds-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.ds-header small{letter-spacing:.16em;color:var(--ds-muted)}.ds-header h1{margin:4px 0;font-size:26px}.ds-header #ds-project-bar{display:flex;gap:16px;align-items:center}.ds-badge{background:#eef2fc;color:#315fe8;border-radius:20px;padding:6px 12px}.ds-layout{display:grid;grid-template-columns:180px minmax(340px,1fr) 260px;gap:18px}.ds-resources,.ds-assistant,.ds-workspace{background:#fff;border:1px solid var(--ds-line);border-radius:12px;padding:16px}.ds-resources nav{display:grid;gap:5px;margin-top:20px}.director-studio button{border:1px solid var(--ds-line);border-radius:7px;padding:7px 10px;background:white;color:#223148;cursor:pointer}.director-studio button:hover{border-color:var(--ds-accent);color:var(--ds-accent)}.director-studio button:disabled{opacity:.45;cursor:not-allowed}.ds-resources nav button{text-align:left;border:0}.ds-resources nav button.active{background:#edf2ff;color:var(--ds-accent)}.director-studio select,.director-studio input,.director-studio textarea{max-width:100%;border:1px solid var(--ds-line);border-radius:7px;padding:8px;color:#223148;background:#fff}.ds-project-selector{display:grid;gap:8px}#ds-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:14px}#ds-name{font-weight:600;max-width:200px}.ds-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:16px}.ds-stages article{display:flex;flex-direction:column;gap:7px;background:#fff;border:1px solid var(--ds-line);border-radius:9px;padding:11px}.ds-stages article[data-state=SUCCEEDED]{border-top:3px solid #2c9875}.ds-stages article[data-state=RUNNING]{border-top:3px solid #315fe8}.ds-stages article[data-state=FAILED]{border-top:3px solid #c84b4b}.ds-stages small{font-size:11px;color:var(--ds-muted);overflow-wrap:anywhere}.ds-stages progress{width:100%;height:5px;accent-color:var(--ds-accent)}.ds-error,#ds-message{color:#ae3d3d;overflow-wrap:anywhere}.ds-workspace h2,.ds-assistant h2{font-size:17px;margin:0 0 12px}.ds-workspace>p{color:var(--ds-muted)}#ds-script{display:block;width:100%;min-height:420px;line-height:1.8;margin:15px 0;resize:vertical}.ds-model-settings{display:flex;flex-wrap:wrap;gap:12px}.ds-model-settings label{display:grid;gap:5px;max-width:200px}.ds-assistant{align-self:start;position:sticky;top:16px}#ds-chat{max-height:310px;overflow:auto}#ds-chat p{line-height:1.7;background:#f4f6fa;padding:10px;border-radius:8px}#ds-chat p.user{background:#edf2ff}.ds-assistant textarea{width:100%;min-height:90px}.ds-assistant form button{width:100%;background:#315fe8;color:white;margin-top:6px}#ds-logs{max-height:360px;overflow:auto;font-size:11px}#ds-logs small,#ds-capabilities small{display:block;color:var(--ds-muted);margin-top:5px}#ds-capabilities{margin-top:22px;font-size:11px}.ds-production{display:flex;gap:20px;flex-wrap:wrap;padding:14px;margin-top:16px;border:1px solid var(--ds-line);border-radius:9px;background:#fff}.ds-shot,.ds-asset{padding:14px 0;border-bottom:1px solid var(--ds-line)}.ds-shot header{display:flex;justify-content:space-between;align-items:center;gap:10px}.ds-shot h3{margin:5px 0}.ds-shot pre{white-space:pre-wrap;max-height:360px;overflow:auto;font-size:12px;padding:12px;background:#f4f6fa}.ds-shot details{margin:10px 0}.ds-asset textarea{display:block;width:100%;min-height:95px;margin:10px 0}.ds-asset img{max-width:240px}.ds-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ds-media img,.ds-media video,.ds-media audio{width:100%;max-height:260px;object-fit:contain;background:#101827}.ds-track{padding:10px 0;border-bottom:1px solid var(--ds-line)}.ds-clip{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding:9px;background:#f4f6fa;flex-wrap:wrap}.ds-clip input[type=number]{width:80px}.ds-clip span{flex:1}@media(max-width:1350px){.ds-layout{grid-template-columns:150px minmax(320px,1fr)}.ds-assistant{grid-column:1/-1;position:static}.ds-stages{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.ds-layout{display:block}.ds-resources{margin-bottom:12px}.ds-resources nav{display:flex;flex-wrap:wrap}.ds-stages{grid-template-columns:repeat(2,1fr)}.ds-header{align-items:flex-start}.ds-header #ds-project-bar{display:grid;gap:5px}.ds-assistant{margin-top:12px}}

.ds-evidence{display:flex;gap:8px;margin-top:10px}.ds-evidence img{width:30%;object-fit:contain;border-radius:5px}
.director-studio {
  color-scheme: dark;
  --ds-line:#353945;
  --ds-muted:#aeb6c8;
  --ds-accent:#a9b7ff;
  --ds-panel:#1b1e27;
  --ds-field:#14171f;
  color:#f2f4fb;
}
.director-studio [hidden] {display:none!important}
.ds-header {padding:12px 0 20px; border-bottom:1px solid var(--ds-line);margin-bottom:18px}
.ds-header small {letter-spacing:0}
.ds-resources,.ds-assistant,.ds-workspace,.ds-stages article,.ds-production {
  background:var(--ds-panel);color:#f2f4fb
}
.director-studio :is(input,textarea,select,button) {
  background:var(--ds-field);color:#f2f4fb;border-color:var(--ds-line);font:inherit
}
.director-studio :is(input,textarea,select,button,summary,a):focus-visible {
  outline:2px solid var(--ds-accent);outline-offset:3px
}
.director-studio button.ds-primary,.director-studio .ds-assistant form button {
  background:#b9c4ff;color:#171d3e;border-color:transparent;font-weight:700
}
.director-studio button.ds-primary:hover {background:#d0d7ff}
.ds-badge,.ds-resources nav button.active,.ds-assistant #ds-chat p.user {
  background:#313a60;color:#e1e6ff
}
.ds-assistant #ds-chat p,.ds-clip,.ds-shot pre {background:var(--ds-field)}
.ds-error,#ds-message {color:#ffaeae}
#ds-message:empty,#ds-stages:empty,#ds-controls:empty {display:none}
.ds-technical {margin-top:18px;color:var(--ds-muted)}
.ds-technical summary {cursor:pointer}
#ds-capabilities {margin-top:8px}
.ds-empty .ds-layout {display:block;max-width:1000px;margin:auto}
.ds-empty .ds-resources {display:none}
.ds-empty .ds-workspace {padding:clamp(20px,5vw,58px)}
.ds-welcome {max-width:610px;padding:16px 0 32px}
.ds-welcome h2 {font-size:clamp(28px,5vw,48px);line-height:1.12;margin:12px 0}
.ds-welcome p,.ds-welcome small,.ds-guide p {color:var(--ds-muted);line-height:1.7}
.ds-welcome small {display:block;margin-top:12px}
.ds-welcome .ds-primary {margin-top:14px;padding:11px 17px}
.ds-guide {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.ds-guide article {background:var(--ds-field);border:1px solid var(--ds-line);border-radius:9px;padding:15px}
.ds-guide p {margin:6px 0 0}
.ds-media .ds-film {grid-column:1/-1;border-bottom:1px solid var(--ds-line);padding-bottom:16px}
.ds-media .ds-film video {max-height:460px}
.director-studio a {color:var(--ds-accent)}
.ds-overview {display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 16px;border:1px solid var(--ds-line);background:var(--ds-panel);border-radius:9px}
.ds-overview span {color:var(--ds-muted)}
.ds-overview progress {grid-column:1/-1;width:100%;height:5px;accent-color:var(--ds-accent)}
.ds-stage-details {margin:12px 0 16px}
.ds-stage-details summary {cursor:pointer;color:var(--ds-muted);padding:4px 0}
.ds-stage-details .ds-stages {margin:12px 0 0}
.ds-layout {grid-template-columns:160px minmax(0,1fr) 244px;align-items:start}
.ds-layout > main {min-width:0}
.ds-resources,.ds-assistant,.ds-workspace {padding:18px}
.ds-resources {position:sticky;top:16px}
.ds-resources nav {gap:14px;margin-top:16px}
.ds-view-group {display:grid;gap:3px}
.ds-view-group small {padding:0 9px 3px;color:var(--ds-muted);font-size:11px}
.ds-view-group button {background:transparent;min-height:34px}
.ds-view-group button.active {font-weight:700}
#ds-controls {justify-content:space-between;align-items:end}
.ds-project-identity {display:grid;gap:5px;flex:1;min-width:145px;max-width:320px}
.ds-project-identity label {font-size:11px;color:var(--ds-muted)}
#ds-name {max-width:none;width:100%;font-weight:700;font-size:16px}
.ds-actions,.ds-editor-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ds-actions {align-items:end}
.ds-planning-skill {display:grid;gap:5px;min-width:145px}
.ds-planning-skill label,.ds-planning-skill-note {font-size:11px;color:var(--ds-muted)}
.ds-planning-skill-note {flex-basis:100%;line-height:1.5;margin:0}
.ds-editor-actions {margin-top:14px}
.ds-section-empty {padding:26px 0;max-width:520px}
.ds-section-empty h3 {font-size:18px;margin:0 0 8px}
.ds-section-empty p,.ds-muted {color:var(--ds-muted);line-height:1.65}
.ds-settings .ds-model-settings {margin-top:12px;align-items:end}
.ds-workspace-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ds-workspace-heading span,.ds-shot header>span,.ds-shot-camera {color:var(--ds-muted);font-size:12px}
.ds-shot header {justify-content:flex-start;flex-wrap:wrap}
.ds-shot header .ds-shot-status {margin-inline-start:auto;color:#c9cfe1;background:#303647;padding:4px 8px;border-radius:6px}
.ds-shot header .ds-shot-status[data-tone=success] {background:#203b34;color:#b0efd7}
.ds-shot header .ds-shot-status[data-tone=error] {background:#492d38;color:#ffc0c8}
.ds-shot-camera {display:flex;flex-wrap:wrap;gap:6px}
.ds-shot-camera span {padding:3px 7px;border:1px solid var(--ds-line);border-radius:5px}
.ds-shot-text {display:flex;gap:10px;border-left:2px solid #6c7fb7;padding:4px 10px}
.ds-shot-text b {flex:none;color:#cbd3fa}
.ds-shot summary,.ds-timeline-inspector summary {cursor:pointer;color:var(--ds-accent);padding:4px 0}
.ds-prompt {background:var(--ds-field);border:1px solid var(--ds-line);border-radius:8px;padding:8px 12px}
.ds-restore {border:1px solid var(--ds-line);border-radius:8px;background:var(--ds-field);padding:0 14px 14px}
.ds-version {display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:8px;border-bottom:1px solid var(--ds-line);padding:10px 0}
.ds-version time {color:var(--ds-muted)}
#ds-message:not(:empty) {padding:9px 12px;background:#34242c;border-radius:7px}
#ds-message[data-tone=success] {color:#b0efd7;background:#203b34}
#ds-message[data-tone=info] {color:#d1dcff;background:#29344f}
@media (max-width:1330px) {
 .ds-layout {grid-template-columns:145px minmax(0,1fr)}
 .ds-assistant {grid-column:2;position:static}
}
@media (max-width:800px) {
 .ds-layout {display:block}
 .ds-resources {position:static}
 .ds-view-group {display:flex;gap:4px;align-items:center;flex-wrap:wrap}
 .ds-version {grid-template-columns:1fr auto}
 .ds-version time {grid-column:1;grid-row:2}
}


.ds-tl-board, .ds-tl-empty, .ds-film-feature, .ds-output-card {
  background: var(--ds-field, #14171f);
  border: 1px solid var(--ds-line, #353945);
  border-radius: 12px;
  padding: 16px;
}
.ds-tl-heading, .ds-output-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.ds-tl-heading strong {font-size: 15px; overflow-wrap: anywhere}
.ds-tl-heading span, .ds-output-head span, .ds-output-name small, .ds-tl-note,
.ds-tl-empty p {color: var(--ds-muted, #aeb6c8)}
.ds-tl-board {margin-bottom: 16px}
.ds-tl-scroll {overflow-x: auto; margin-top: 12px; padding: 3px}
.ds-tl-row {min-width: 410px}
.ds-tl-ruler {
  display: flex;
  justify-content: space-between;
  min-width: 334px;
  margin: 0 0 6px 76px;
  color: var(--ds-muted, #aeb6c8);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ds-tl-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 4px;
}
.ds-tl-track-label {font-size: 12px; color: var(--ds-muted, #aeb6c8)}
.ds-tl-lane {
  position: relative;
  min-height: calc(var(--track-lanes) * 29px);
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,#a1acc71b 0 1px,transparent 1px 25%),#a1acc70d;
  border-right: 1px solid #a1acc71b;
}
.director-studio button.ds-tl-segment {
  position: absolute;
  inset-inline-start: var(--clip-start);
  inset-block-start: calc(2px + var(--clip-lane) * 29px);
  width: var(--clip-width);
  min-width: 2px;
  height: 25px;
  padding: 2px min(8px, var(--clip-width) / 4);
  overflow: hidden;
  white-space: nowrap;
  text-align: start;
  font-size: 11px;
  border: 1px solid #7897eb;
  border-radius: 5px;
  color: #ecf0ff;
  background: #2d467b;
}
.ds-tl-segment span {display: block; overflow: hidden; text-overflow: ellipsis}
.director-studio [data-kind="A"] .ds-tl-segment {background: #20594a; border-color: #66b59e}
.director-studio [data-kind="T"] .ds-tl-segment {background: #684a2c; border-color: #b4936b}
.director-studio .ds-tl-segment:hover, .director-studio .ds-tl-segment[aria-pressed="true"] {
  border-color: #fff;
  color: #fff;
  filter: brightness(1.3);
  z-index: 1;
}
.ds-tl-segment:focus-visible {z-index: 2}
.ds-tl-preview {margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ds-line, #353945)}
.ds-tl-preview :is(video, audio, img), .ds-film-feature video {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 12px 0;
  object-fit: contain;
  border-radius: 6px;
}
.ds-tl-preview video, .ds-film-feature video {background: #0e1017}
.ds-tl-preview button {margin-top: 8px}
.ds-timeline-inspector {margin: 14px 0}
.ds-timeline-inspector > summary, .ds-output-history > summary {cursor: pointer; padding-block: 8px}
.ds-output-history {margin-top: 18px}
.ds-output-history > .ds-media {margin-top: 8px}
.ds-output-card {min-width: 0; padding: 12px}
.ds-output-card :is(video,img) {aspect-ratio: 16 / 9; display: block; border-radius: 6px}
.ds-output-name {display: grid; gap: 4px; margin: 10px 0; overflow-wrap: anywhere}
.director-studio :is(.ds-film-feature,.ds-output-card) a {
  display: inline-block;
  padding: 5px 0;
  text-underline-offset: 3px;
}
.ds-output-head {margin: 18px 0 8px}
.ds-output-head h3 {margin: 0}
@media (max-width: 600px) {
  .ds-tl-board, .ds-film-feature {padding: 12px}
  .ds-output-history > .ds-media, .ds-output-head + .ds-media {grid-template-columns: 1fr}
}

/* Guided director review. */
.director-studio .ds-step-list button {display:flex;align-items:center;gap:7px;line-height:1.35}
.director-studio .ds-step-list button:disabled {opacity:.58}
.ds-step-list button > small {margin-inline-start:auto;padding:0;white-space:nowrap}
.ds-step-number {display:grid;place-items:center;flex:none;width:19px;height:19px;background:var(--ds-field);border-radius:5px;font-size:11px}
.ds-workflow-card {padding:16px 0}
.ds-profile-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:9px;margin:10px 0}
.ds-profile-grid div {min-width:0;padding:8px 10px;border:1px solid var(--ds-line);border-radius:6px;background:var(--ds-field)}
.ds-profile-grid dt {margin-bottom:4px;color:var(--ds-muted);font-size:11px}
.ds-profile-grid dd {margin:0;overflow-wrap:anywhere}
.ds-card-editor {display:grid;gap:9px;padding:10px 0}
.ds-card-editor label {display:grid;gap:4px;min-width:0}
.ds-card-editor textarea {min-height:0;margin:0}
.ds-prompt p {white-space:pre-wrap;overflow-wrap:anywhere}
.ds-asset img.ds-reference-image {display:block;max-width:min(100%,740px);max-height:480px;object-fit:contain;margin:12px 0;border-radius:8px}
.ds-inline-confirm {padding:10px 12px;margin-top:12px;border:1px solid var(--ds-line);border-radius:8px}
.ds-inline-confirm p {margin:0 0 8px}
.ds-video-list {list-style:none;margin:12px 0;padding:0}
.ds-video-list li {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 0;border-bottom:1px solid var(--ds-line)}
.ds-video-list li span {color:var(--ds-muted)}
.ds-h3-prompt pre {overflow-wrap:anywhere}
.ds-h3-references {display:flex;align-items:start;gap:8px;flex-wrap:wrap;margin:9px 0}
.ds-h3-references figure {width:112px;margin:0}
.ds-h3-references img {width:112px;aspect-ratio:16 / 9;object-fit:contain;background:var(--ds-field);border-radius:5px}
.ds-h3-references figcaption {font-size:11px;padding-top:4px;overflow-wrap:anywhere}
