/* VibeFilm Story Studio — Home's Aeonik, true black and shared X8 materials. */
@font-face {
  font-family: "Aeonik Studio";
  src: url('/__assets/08a2e78008be78275c27/design/Aeonik-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --font: "Aeonik Studio", Aeonik, Arial, sans-serif;
  --display: var(--font);
  --ink: #eeeef0;
  --secondary: #aeb6bd;
  --muted: #899198;
  --faint: #484a4d;
  --canvas: #000;
  --panel: #000;
  --raised: #0d1012;
  --line: #ffffff14;
  --line-soft: #ffffff0c;
  --rail-width: 100px;
  --chat-width: 356px;
  --header-height: 88px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--font); font-synthesis: none; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, textarea { border-radius: 0; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid #c7c8c9; outline-offset: 4px; }
input, textarea { color: var(--ink); }
textarea { resize: none; }
input::placeholder, textarea::placeholder { color: #74767a; opacity: 1; }
::selection { color: #fff; background: #454647; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
.icon, [data-icon] { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; align-items: center; justify-content: center; }
.icon svg, [data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 88px; padding: 10px 18px; border-radius: 6px; background: var(--ink); color: #111; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.stage-scroll, .conversation, .studio-dialog, .viewer-document { scrollbar-width: thin; scrollbar-color: #343e46 transparent; }
.stage-scroll::-webkit-scrollbar, .conversation::-webkit-scrollbar, .studio-dialog::-webkit-scrollbar, .viewer-document::-webkit-scrollbar { width: 5px; height: 5px; }
.stage-scroll::-webkit-scrollbar-thumb, .conversation::-webkit-scrollbar-thumb, .studio-dialog::-webkit-scrollbar-thumb, .viewer-document::-webkit-scrollbar-thumb { border-radius: 10px; background: #343638; }

/* Persistent frame. Only the board and conversation scroll. */
.studio-shell { display: grid; grid-template-columns: var(--rail-width) var(--chat-size, var(--chat-width)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 100%; height: 100dvh; min-height: 0; overflow: hidden; }
.studio-rail { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); width: 60px; display: flex; flex-direction: column; align-items: center; padding: 8px; border: 1px solid #ffffff24; border-radius: 40px; background: linear-gradient(135deg,#343b4299,#14181ccc 58%,#343b4244); box-shadow: inset 0 1px 2px #ffffff2b,inset 0 -1px 3px #ffffff14,0 12px 30px #0006; backdrop-filter: blur(12px); z-index: 5; }
.rail-brand { display: none; }
.rail-brand svg { width: 32px; height: 32px; }
.rail-top, .rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.rail-bottom { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff12; }
.rail-button { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid transparent; border-radius: 50%; color: #a7afb7; transition: background 160ms, color 160ms; }
.rail-button [data-icon] { width: 20px; height: 20px; }
.rail-button:hover { color: #fff; background: #ffffff0e; }
.rail-button.is-active { color: #14181c; border-color: transparent; background: linear-gradient(145deg,#f8fafc,#bfc8d0); box-shadow: 0 4px 16px #0004,inset 0 1px 0 #fff; }
.rail-button#new-project { background: transparent; color: #bcc5cd; border-color: #ffffff18; }
.rail-button#new-project:hover { background: #ffffff0e; color: #fff; }
.rail-divider { width: 20px; height: 1px; background: #ffffff12; margin: 4px 0; }
.connection-dot { width: 5px; height: 5px; background: #6b6c6d; border-radius: 50%; }
.rail-button .connection-dot { position: absolute; top: 7px; right: 7px; border: 1px solid #0d0e0f; width: 6px; height: 6px; }
.connection-dot.connected, .connection-dot.is-connected { background: #b7c1c9; }
.studio-header { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; padding: 0 30px 0 36px; background: #000; }
.studio-identity { display: flex; align-items: center; gap: 25px; min-width: 0; }
.wordmark { position: relative; font-size: 25px; font-weight: 400; letter-spacing: -1.4px; white-space: nowrap; }
.wordmark-dot { display: inline-block; font-size: 9px; font-weight: 400; letter-spacing: 0; vertical-align: top; padding: 3px 0 0 3px; color: #9b9d9f; }
.header-divider { width: 1px; height: 25px; background: #292b2e; }
.project-switch { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 6px 8px; margin-left: -8px; border-radius: 6px; text-align: left; }
.project-switch:hover { background: #ffffff04; }
.project-switch-copy { display: grid; gap: 1px; min-width: 0; }
.project-overline { font-size: 9px; font-weight: 500; letter-spacing: 1.5px; color: #6a6b6c; }
.project-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #cdd0d2; }
.project-switch > [data-icon] { width: 12px; height: 12px; color: #747576; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.project-meta { color: var(--muted); font-size: 11px; }
.activity-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: #999da1; font-size: 12px; }
.activity-toggle:hover { background: #181a1c; color: var(--ink); }
.activity-indicator { width: 5px; height: 5px; background: #6c6d6e; border-radius: 50%; }
.activity-toggle.is-active .activity-indicator, .activity-toggle[data-active='true'] .activity-indicator { background: #d7d8d9; box-shadow: 0 0 8px #d6d7d840; }
#activity-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; background: #202226; color: #abaeb2; font-size: 10px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 50%; color: #a6aeb6; transition: background 150ms, color 150ms; }
.icon-button:hover:not(:disabled) { color: #f5f5f2; background: #ffffff09; }
.icon-button:disabled { opacity: .28; }
.quiet-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 9px 15px; border-radius: 999px; font-size: 12px; line-height: 1.25; font-weight: 400; white-space: nowrap; transition: background 150ms, border-color 150ms, color 150ms; }
.quiet-button { border: 1px solid #ffffff1c; color: #bfc7ce; background: #ffffff03; }
.quiet-button:hover:not(:disabled) { background: #ffffff08; border-color: #ffffff3a; color: #f2f5f7; }
.primary-button { background: #0b0c0e; border: 1px solid #ffffff30; color: #eeeef0; box-shadow: 0 5px 14px #0005,inset 0 1px 0 #ffffff10; }
.primary-button:hover:not(:disabled) { background: #171b1e; border-color: #ffffff50; }
.quiet-button:disabled, .primary-button:disabled { opacity: .35; }
.quiet-button [data-icon], .primary-button [data-icon] { width: 15px; height: 15px; }
.export-link { border-color: transparent; background: none; }
.eyebrow, .header-eyebrow { display: block; color: #757677; font-size: 9px; font-weight: 500; letter-spacing: 1.6px; line-height: 1.6; }

/* The canvas is the visual centre of the workspace. */
.creation-stage { position: relative; grid-column: 3; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0 24px 20px 26px; background: #000; }
.stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0 22px; flex: 0 0 auto; }
.stage-heading h1 { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 31px; font-weight: 400; letter-spacing: -1.2px; line-height: 1.2; }
.board-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 20px; padding: 0 5px; border: 1px solid #2d3032; border-radius: 5px; font-size: 10px; font-weight: 400; letter-spacing: 0; color: #899198; }
.stage-actions { display: flex; align-items: center; gap: 8px; }
.board-state { color: #777879; font-size: 11px; margin-right: 8px; }
.board-tabs { display: flex; flex: 0 0 auto; gap: 6px; height: auto; min-height: 43px; padding: 0 0 15px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; color: #899198; }
.board-tabs button:hover { color: #c9cccf; }
.board-tabs button.is-active { color: #eeeef0; border-color: #ffffff22; background: #ffffff05; }
.board-tabs button.is-active::after { content: none; }
.board-tabs button span { color: #68696a; font-size: 10px; padding-top: 1px; }
.board-tabs button.is-active span { color: #9e9fa0; }
.stage-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 21px 3px 30px 0; background: #000; }
.board-empty-filter { padding: 100px 25px; text-align: center; font-size: 13px; color: #808284; }
.board-card-placeholder > span:not(.icon) { font-size: 10px; }
.board-card-placeholder:has(.board-card-document) > .icon { display: none; }
#review-pending[aria-pressed="true"] { border-color: #a3a5a7; color: #e4e6e7; background: #242628; }
.board-loading { padding: 70px 24px; text-align: center; color: var(--muted); }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; align-content: start; }
.board-grid:empty { display: none; }
.board-card { position: relative; min-width: 0; border: 1px solid #ffffff18; border-radius: 17px; overflow: hidden; background: #0a0d0f; box-shadow: inset 0 1px 0 #ffffff07; transition: border-color 160ms; }
.board-card:hover { border-color: #ffffff42; }
.board-card.is-focused { border-color: #9a9b9c; }
.board-card.is-selected { border-color: #b8c4cd; box-shadow: 0 0 0 1px #b8c4cd; }
.board-card.is-stale { border-style: dashed; }
.board-card-open { display: block; width: 100%; padding: 0; text-align: left; }
.board-card-preview { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #101316; border-bottom: 1px solid #ffffff0b; }
.board-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.board-card-placeholder { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100px; color: #74808a; background: radial-gradient(ellipse at 45% 75%,#39434b20,transparent 75%),#090c0e; }
.board-card-placeholder .icon, .board-card-placeholder [data-icon] { width: 34px; height: 34px; opacity: .7; }
.board-card-document { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; overflow: hidden; padding: 30px 20px 16px; text-align: left; font-size: 9px; line-height: 1.65; color: #959fa8; background: #0c1012; mask-image: linear-gradient(#000 58%, transparent 100%); }
.board-card-document p { margin: 0 0 8px; }
.board-card-document h3 { color: #c9cacb; margin: 0 0 10px; font-size: 12px; font-weight: 400; }
.board-card-select { position: absolute; z-index: 2; left: 10px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #ffffff24; border-radius: 50%; background: #06090bd9; opacity: 0; transition: opacity 140ms; cursor: pointer; }
.board-card:hover .board-card-select, .board-card:focus-within .board-card-select, .board-card.is-selected .board-card-select { opacity: 1; }
.board-card-select input { width: 13px; height: 13px; margin: 0; accent-color: #e2e3e4; cursor: pointer; }
.board-card-kind { position: absolute; top: 11px; right: 10px; padding: 3px 6px; border: 1px solid #ffffff16; border-radius: 4px; background: #0b0e11c9; color: #bebfc0; font-size: 8px; font-weight: 500; letter-spacing: .7px; text-transform: uppercase; line-height: 1.4; }
.board-card-copy { padding: 13px 14px 14px; }
.board-card-copy h3 { font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: -.1px; margin: 0; color: #dce0e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 5px 0 0; font-size: 11px; line-height: 1.55; color: #828c95; }
.board-card-status { position: absolute; left: 9px; bottom: 9px; padding: 4px 6px; border: 1px solid #ffffff18; border-radius: 4px; background: #101112dc; display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #9c9d9e; font-size: 9px; line-height: 1.3; }
.board-card-status .icon { width: 12px; height: 12px; }
.board-card-status::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.board-card.is-featured { grid-column: span 2; }
.board-card.is-featured .board-card-preview { aspect-ratio: 16/9; }
.selection-bar { position: absolute; z-index: 4; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 9px 10px 9px 18px; border: 1px solid #ffffff28; border-radius: 999px; background: #11161bea; box-shadow: 0 12px 40px #0009; transform: translateX(-50%); white-space: nowrap; }
.selection-bar > span { font-size: 12px; color: #b0b1b2; padding-right: 10px; }
.selection-bar strong { font-weight: 500; color: #edf0f2; }

/* Quiet empty canvas: an editorial title and a small cut of film. */
.board-empty { display: flex; flex-direction: column; align-items: center; min-height: min(700px, calc(100dvh - 275px)); width: 100%; max-width: 1080px; margin: 0 auto; padding: 10px 2px 0; text-align: center; }
.empty-topline, .empty-bottomline { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #68717a; font-size: 8px; letter-spacing: 1.5px; line-height: 1.6; }
.empty-topline > span:nth-child(2) { margin: 0 15px; }
.empty-cross { font-size: 17px; font-weight: 400; line-height: 1; color: #696a6b; letter-spacing: 0; }
.empty-scene { position: relative; flex: 0 0 auto; width: 340px; height: 190px; margin-top: 30px; }
.scene-frame { position: absolute; border: 1px solid #343536; border-radius: 5px; background: #0c1013; overflow: hidden; box-shadow: 0 12px 25px #0005; }
.scene-frame > span { position: absolute; font-size: 6px; font-weight: 400; letter-spacing: 1px; color: #7f8081; }
.scene-frame-back { width: 192px; height: 120px; left: 0; top: 36px; transform: rotate(-11deg); background: #0c0f12; border-color: #262728; }
.scene-frame-back > span { top: 10px; left: 11px; color: #565758; }
.scene-frame-main { width: 226px; height: 141px; left: 53px; top: 19px; background: radial-gradient(ellipse at 50% 74%, #3e3f40 0, #212223 24%, #151617 49%, #0e0f10 76%); border-color: #5d5e5f; transform: rotate(-3deg); }
.scene-frame-main > span:first-child { left: 11px; top: 10px; color: #b8b9ba; }
.scene-frame-main .scene-timecode { right: 10px; bottom: 10px; color: #737475; letter-spacing: 1px; }
.scene-aperture { position: absolute; display: block; width: 64px; height: 64px; left: calc(50% - 32px); top: calc(50% - 30px); border: 1px solid #aaabac48; border-radius: 50%; box-shadow: 0 0 0 14px #8283840c, 0 0 0 28px #82838405; }
.scene-aperture::before, .scene-aperture::after { content: ''; position: absolute; inset: 8px; border: 1px solid #a8a9aa30; border-radius: 40% 60% 60% 40%; transform: rotate(45deg); }
.scene-aperture::after { inset: 14px; transform: rotate(-15deg); border-color: #c6c7c849; }
.scene-frame-front { width: 148px; height: 93px; right: 0; top: 66px; transform: rotate(11deg); border-color: #404142; background: linear-gradient(115deg, #1f2021, #191a1b 57%, #373839); }
.scene-frame-front > span { top: 10px; right: 11px; color: #9d9e9f; font-size: 6px; }
.scene-frame-front > span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 4px 1px 0; background: #aaabac; border-radius: 50%; }
.scene-frame-front i { position: absolute; display: block; width: 34px; height: 68px; left: 58px; top: 36px; border-radius: 50% 50% 0 0; background: #111213; box-shadow: -19px 3px 22px #8d8e8f16; }
.board-empty h2 { font-size: clamp(39px, 3.85vw, 66px); font-weight: 400; letter-spacing: -2.5px; line-height: 1.06; margin: 9px 0 18px; color: #e6e9e9; }
.board-empty h2 > span { color: #7c7d7e; }
.board-empty > p { margin: 0; color: #7f8081; font-size: 13px; line-height: 1.75; }
.starter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 600px); margin-top: 34px; }
.starter-list button { display: flex; align-items: center; gap: 9px; padding: 15px 13px; border: 1px solid #ffffff14; border-radius: 7px; background: #0d1114; text-align: left; transition: border-color 160ms, background 160ms; }
.starter-list button:hover { border-color: #6c6d6e; background: #1b1c1d; }
.starter-list button > span:first-child { color: #676869; font-size: 9px; }
.starter-list strong { font-weight: 400; font-size: 12px; color: #bebfc0; }
.starter-list [data-icon] { width: 12px; height: 12px; margin-left: auto; color: #7d7e7f; }
.empty-bottomline { margin-top: auto; padding-top: 39px; font-size: 7px; letter-spacing: 1.3px; }

/* One focused result, with review controls kept outside the image. */
.creation-stage:has(.viewer:not([hidden])) > .stage-heading,
.creation-stage:has(.viewer:not([hidden])) > .board-tabs { display: none; }
.creation-stage:has(.viewer:not([hidden])) > .stage-scroll { overflow: hidden; padding-top: 20px; padding-bottom: 14px; }
.viewer { display: flex; flex-direction: column; height: 100%; min-width: 0; min-height: 0; }
.viewer > * { flex: 0 0 auto; }
.viewer-top { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
.viewer-top > .quiet-button { background: none; border-color: transparent; padding-left: 0; color: #929394; }
.viewer-position { margin-left: auto; font-size: 11px; color: #6a6b6c; }
.viewer-navigation { display: flex; gap: 3px; }
.viewer-stage { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-height: 0; overflow: hidden; border: 1px solid #ffffff18; border-radius: 18px; background: #000; }
.viewer-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.viewer-media:empty { display: none; }
.viewer-media-element { width: 100%; max-width: 100%; max-height: 100%; height: 100%; object-fit: contain; }
img.viewer-media-element, video.viewer-media-element { min-height: 0; }
audio.viewer-media-element { width: min(85%, 560px); margin: 100px 25px; height: 54px; }
.viewer-media > .board-card-placeholder { min-height: 320px; }
.viewer-document { width: 100%; height: 100%; min-height: 0; margin: 0; max-height: 100%; overflow: auto; padding: clamp(28px, 4vw, 64px); background: #000; }
.viewer-document:empty { display: none; }
.viewer-text { max-width: 720px; margin: 0 auto; font-size: 15px; line-height: 1.85; color: #bebfc0; overflow-wrap: anywhere; }
.viewer-text > :first-child { margin-top: 0; }
.viewer-text > :last-child { margin-bottom: 0; }
.viewer-text h1, .viewer-text h2, .viewer-text h3, .viewer-text h4 { margin: 1.7em 0 .7em; font-weight: 400; font-size: 22px; line-height: 1.35; letter-spacing: -.5px; color: #e0e5e8; }
.viewer-text p { margin: 0 0 1.2em; }
.viewer-text ul, .viewer-text ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.viewer-text li { padding-left: .25em; margin-bottom: .45em; }
.viewer-text strong { font-weight: 500; color: #e2e3e4; }
.viewer-text blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid #6d6e6f; color: #9b9c9d; }
.viewer-text pre, .viewer-technical pre { padding: 16px; border: 1px solid #1d2429; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; background: #0b1013; font-size: 11px; line-height: 1.7; }
.viewer-text code { font-family: ui-monospace, monospace; font-size: .85em; }
.viewer-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 19px; }
.viewer-heading { min-width: 0; }
.viewer-heading h2 { margin: 5px 0 4px; font-size: 21px; line-height: 1.3; font-weight: 400; letter-spacing: -.5px; overflow-wrap: anywhere; }
.viewer-status { color: #8c8d8e; font-size: 11px; }
.viewer-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.viewer-details { max-height: 22dvh; overflow: auto; scrollbar-width: thin; border-top: 1px solid #2a2b2c; border-bottom: 1px solid #2a2b2c; }
.viewer-details summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; list-style: none; cursor: pointer; font-size: 11px; color: #939495; }
.viewer-details summary::-webkit-details-marker { display: none; }
.viewer-details summary [data-icon] { width: 13px; height: 13px; }
.viewer-details[open] summary [data-icon] { transform: rotate(45deg); }
.viewer-technical { font-size: 12px; line-height: 1.7; color: #9a9b9c; padding-bottom: 20px; overflow-wrap: anywhere; }
.viewer-technical h3, .viewer-technical h4 { font-size: 12px; font-weight: 500; color: #cdcecf; margin: 14px 0 6px; }
.viewer-technical p { margin: 0 0 9px; }
.viewer-filmstrip { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 2px; scrollbar-width: thin; scrollbar-color: #3e3f40 transparent; }
.filmstrip-item { display: block; position: relative; width: 92px; flex: 0 0 92px; padding: 3px; border: 1px solid transparent; border-radius: 5px; text-align: left; color: #898a8b; }
.filmstrip-item:hover { border-color: #676869; }
.filmstrip-item.is-active { border-color: #c7c8c9; color: #dddedf; }
.filmstrip-item img, .filmstrip-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; background: #222324; }
.filmstrip-placeholder { display: grid; place-items: center; color: #848586; }
.filmstrip-placeholder .icon { width: 18px; height: 18px; }
.filmstrip-item > span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; padding-top: 5px; }

/* The director stays alongside the work, never in front of it. */
.assistant-panel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin-bottom: 20px; background: #000; border: 1px solid #ffffff14; border-radius: 22px; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 81px; padding: 22px 21px; border-bottom: 1px solid #ffffff0e; }
.assistant-identity { display: flex; align-items: center; gap: 11px; }
.director-mark { display: grid; place-items: center; width: 28px; height: 28px; color: #cecfd0; font-size: 29px; line-height: 1; }
.assistant-identity h2 { margin: 0; color: #dedfe0; font-weight: 400; font-size: 14px; line-height: 1.25; }
.assistant-identity #brain-state { display: block; margin-top: 4px; color: #78797a; font-size: 9px; letter-spacing: .2px; }
.voice-entry { min-height: 31px; padding: 7px 11px; background: #ffffff03; border-color: #ffffff18; font-size: 11px; }
.voice-entry [data-icon] { width: 14px; height: 14px; }
.conversation { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 25px 22px 20px; background: #000; overscroll-behavior: contain; scroll-padding-bottom: 24px; }
.conversation:focus { outline: none; }
.chat-empty { padding: 21px 0 24px; }
.chat-empty .eyebrow { color: #828384; font-size: 8px; letter-spacing: 1.5px; }
.chat-empty h3 { font-weight: 400; font-size: 35px; line-height: 1.08; letter-spacing: -1.6px; color: #eeeef0; margin: 17px 0 16px; }
.chat-empty p { max-width: 295px; font-size: 13px; line-height: 1.8; color: #899198; margin: 0; }
.chat-empty-line { width: 25px; height: 1px; background: #4e4f50; margin: 29px 0 16px; }
.chat-empty-note { font-size: 10px; color: #727374; }
.message-list { display: flex; flex-direction: column; gap: 28px; }
.message-list:empty { display: none; }
.chat-message { min-width: 0; color: #b7c1c9; }
.chat-message-header { display: flex; align-items: center; gap: 7px; color: #959697; font-size: 10px; line-height: 1.4; margin-bottom: 9px; }
.chat-message-header .icon { width: 12px; height: 12px; }
.chat-message-header strong { font-weight: 500; color: #b5b6b7; }
.chat-message-header time { margin-left: auto; color: #636465; font-size: 9px; }
.chat-message-body { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.chat-message-body p { margin: 0 0 12px; }
.chat-message-body > :last-child { margin-bottom: 0; }
.chat-message-body h3 { font-size: 14px; line-height: 1.4; font-weight: 500; margin: 19px 0 8px; color: #dedfe0; }
.chat-message-body ul, .chat-message-body ol { margin: 8px 0 14px; padding-left: 19px; }
.chat-message-body li { margin-bottom: 6px; }
.chat-message-body strong { color: #dddedf; font-weight: 500; }
.chat-message-body pre { margin: 12px 0; padding: 13px; background: #090c0e; border: 1px solid #ffffff18; border-radius: 6px; font: 10px/1.7 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message-body code { font-family: ui-monospace, monospace; font-size: .87em; color: #cccdce; }
.chat-message-body blockquote { margin: 12px 0; padding-left: 13px; border-left: 2px solid #696a6b; color: #949596; }
.chat-message.is-user { padding: 13px 15px; background: #ffffff06; border: 1px solid #ffffff14; border-radius: 17px 17px 4px 17px; }
.chat-message.is-user .chat-message-header { color: #9a9b9c; margin-bottom: 6px; }
.chat-message.is-user .chat-message-body { color: #d9dadb; }
.chat-message-body.is-collapsed { max-height: 260px; overflow: hidden; mask-image: linear-gradient(#000 80%, transparent); }
.chat-message-body.is-streaming::after { content: ''; display: inline-block; vertical-align: -.05em; width: 5px; height: 12px; margin-left: 3px; background: #b6b7b8; animation: cursor-breathe 1s ease-in-out infinite; }
.chat-expand { margin-top: 6px; padding: 5px 0; color: #afb0b1; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #5c5d5e; }
.chat-artifact-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chat-artifact-chip { display: inline-flex; align-items: center; max-width: 100%; gap: 7px; padding: 7px 10px; background: #ffffff04; border: 1px solid #ffffff21; border-radius: 999px; color: #aeb8c1; font-size: 10px; text-align: left; }
.chat-artifact-chip:hover { background: #ffffff08; border-color: #ffffff42; }
.chat-artifact-chip .icon { width: 12px; height: 12px; }
.chat-artifact-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.working { display: flex; align-items: center; gap: 10px; margin-top: 23px; padding-top: 17px; border-top: 1px solid #ffffff14; }
.working-orbit { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ffffff24; border-top-color: #c3c4c5; animation: orbit 1.6s linear infinite; }
.working > div { min-width: 0; }
.working strong { display: block; color: #b9babb; font-size: 11px; font-weight: 400; }
.working small { display: block; margin-top: 4px; color: #7c7d7e; font-size: 10px; line-height: 1.5; }
.working .icon-button { margin-left: auto; width: 28px; height: 28px; border: 1px solid #ffffff24; }
.working .icon-button [data-icon] { width: 11px; height: 11px; }
.composer-zone { position: relative; flex: 0 0 auto; min-width: 0; padding: 14px 16px 16px; background: transparent; }
.suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.suggestions:empty { display: none; }
.suggestions button { padding: 7px 10px; border: 1px solid #ffffff15; border-radius: 999px; font-size: 10px; line-height: 1.4; color: #a6aeb6; background: #ffffff03; text-align: left; }
.suggestions button:hover { color: #dadbdc; border-color: #767778; }
.composer { position: relative; border: 1px solid #ffffff29; border-radius: 18px; background: #00000026; box-shadow: inset 0 1px 1px #ffffff29,inset 0 -1px 2px #ffffff12,0 14px 50px -32px #000c; }
.composer:focus-within { border-color: #d7e2ec77; box-shadow: inset 0 1px 1px #ffffff38,inset 0 -1px 2px #ffffff18,0 14px 50px -32px #000c; }
.composer textarea { display: block; width: 100%; min-height: 88px; max-height: 200px; padding: 17px 16px 8px; margin: 0; border: 0; outline: none; background: transparent; color: #e3e9ed; font-size: 13px; line-height: 1.7; scrollbar-width: thin; }
.composer textarea:focus-visible { outline: none; }
.composer textarea::placeholder { color: #aeb8c1; }
.composer-toolbar { display: flex; align-items: center; gap: 5px; min-height: 48px; padding: 5px 9px 10px; }
.composer-toolbar > .icon-button { width: 30px; height: 30px; color: #a0a1a2; }
.composer-spacer { flex: 1; }
.composer-apps { display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 6px; color: #9fa0a1; font-size: 10px; border-radius: 5px; }
.composer-apps:hover { color: #dfe0e1; background: #1d2429; }
.composer-apps [data-icon] { width: 13px; height: 13px; }
#tools-count { font-size: 9px; color: #7d7e7f; }
.send-button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff30; background: #0b0c0e; color: #eeeef0; transition: border-color 150ms, color 150ms; }
.send-button [data-icon] { width: 17px; height: 17px; }
.send-button:hover:not(:disabled) { border-color: #ffffff70; color: #fff; }
.send-button:disabled { background: #101214; border-color: #ffffff13; color: #737a81; }
.composer-caption { margin: 10px 0 0; min-height: 14px; color: #666768; font-size: 8px; line-height: 1.4; text-align: center; }
.inline-error { display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; margin-bottom: 10px; background: #302623; border: 1px solid #60433a; border-radius: 7px; color: #d8b3a9; font-size: 11px; line-height: 1.6; }
.inline-error > span { flex: 1; }
.inline-error button { padding: 0 3px; line-height: 1.2; font-size: 17px; color: #c6a197; }
.context-tray { display: flex; align-items: center; gap: 7px; padding: 0 0 10px; min-width: 0; }
.context-label { font-size: 7px; letter-spacing: 1px; color: #818283; flex: 0 0 auto; }
#context-items { display: flex; gap: 5px; min-width: 0; overflow: auto; scrollbar-width: none; flex: 1; }
.context-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 180px; flex: 0 0 auto; padding: 5px 7px; border: 1px solid #494a4b; border-radius: 5px; color: #aaabac; background: #0e1215; font-size: 9px; white-space: nowrap; }
.context-chip > span { overflow: hidden; text-overflow: ellipsis; }
.context-chip .icon { width: 11px; height: 11px; }
.context-tray > .icon-button { width: 22px; height: 22px; }
.context-tray > .icon-button [data-icon] { width: 12px; height: 12px; }
.reference-tray { display: flex; gap: 7px; max-height: 110px; overflow: auto; padding-bottom: 10px; scrollbar-width: thin; }
.reference-tray:empty { display: none; }
.reference-item { position: relative; display: flex; flex: 0 0 76px; align-items: center; justify-content: center; width: 76px; height: 64px; overflow: hidden; border: 1px solid #4f5051; border-radius: 6px; background: #262728; color: #a5a6a7; }
.reference-preview, .reference-item > img { width: 100%; height: 100%; object-fit: cover; }
.reference-item > .icon { width: 24px; height: 24px; }
.reference-item > button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 1px solid #ffffff35; border-radius: 4px; background: #101112cc; color: #dcddde; }
.reference-item > button .icon { width: 11px; height: 11px; }
.reference-item > span:not(.icon) { position: absolute; left: 4px; right: 4px; bottom: 3px; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #191a1baa; }

/* Shared overlays retain a small, predictable visual vocabulary. */
.studio-dialog { width: min(560px, calc(100vw - 40px)); max-height: min(82dvh, 820px); padding: 28px; overflow: auto; color: var(--ink); background: #07090a; border: 1px solid #ffffff28; border-radius: 22px; box-shadow: 0 30px 120px #000a; }
.studio-dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dialog-top h2 { margin: 7px 0 0; font-size: 24px; font-weight: 400; letter-spacing: -.6px; line-height: 1.2; }
.dialog-top .icon-button { align-self: flex-start; }
.dialog-intro { margin: 0 0 24px; color: #a3a4a5; font-size: 13px; line-height: 1.75; }
.project-list { display: flex; flex-direction: column; gap: 6px; }
.project-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 13px; border: 1px solid #ffffff17; border-radius: 8px; text-align: left; color: #a8a9aa; }
.project-item:hover { background: #11161a; border-color: #78797a; }
.project-item.is-active { background: #151b20; border-color: #7d7e7f; color: #e9eaeb; }
.project-item > .icon { width: 20px; height: 20px; }
.project-item strong { display: block; font-size: 13px; font-weight: 400; }
.project-item small { display: block; margin-top: 4px; color: #8f9091; font-size: 10px; }
.project-item > span:last-child:not(.icon) { flex: 1; margin-left: 0; font-size: 13px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-empty { margin: 0; padding: 25px 0; color: #959697; font-size: 13px; line-height: 1.7; }
.activity-empty { margin: 0; padding: 20px 0; color: #959799; font-size: 13px; line-height: 1.7; }
.activity-row.running .activity-dot, .activity-row.queued .activity-dot { background: #c9ced2; }
.activity-row.failed .activity-dot { background: #c8a19a; }
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-top: 1px solid #ffffff16; }
.activity-dot { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 6px; background: #8a8b8c; border-radius: 50%; }
.activity-row.is-active .activity-dot { background: #dadbdc; box-shadow: 0 0 9px #dadbdc35; }
.activity-row > div { flex: 1; min-width: 0; }
.activity-row strong, .activity-row h3 { display: block; margin: 0; color: #d8d9da; font-size: 12px; font-weight: 400; }
.activity-row small, .activity-row p { display: block; margin: 4px 0 0; font-size: 10px; line-height: 1.65; color: #949596; }
.activity-row button { margin-left: auto; color: #b8b9ba; font-size: 10px; padding: 4px 7px; border: 1px solid #ffffff2b; border-radius: 4px; }
.activity-error { color: #c8a19a !important; }
.provider-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.provider-state { font-size: 10px; color: #74787b; }
.provider-state.ready { color: #c4d0c8; }
.connection-dot.ready { background: #b4c5b8; }
.provider-detail { margin: 4px 0 0; }
.library-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.library-counts > div { padding: 14px 10px; border: 1px solid #333639; border-radius: 7px; }
.library-counts strong { display: block; color: #d9dcdf; font-size: 23px; font-weight: 400; }
.library-counts span { display: block; color: #888d91; font-size: 10px; }
.library-item { border-top: 1px solid #303336; padding: 14px 0; }
.library-item summary { cursor: pointer; color: #c7ccd1; font-size: 13px; }
.library-source { font-size: 10px; }
.context-chip button { padding: 0 1px 0 4px; color: #a7b0b7; font-size: 14px; line-height: 1; }
.connection-status { display: grid; gap: 8px; margin-bottom: 24px; }
.connection-status > div { padding: 14px; border: 1px solid #ffffff20; border-radius: 7px; color: #c0c1c2; font-size: 12px; }
.connection-status strong { font-weight: 500; color: #e3e4e5; }
.connection-status small, .provider-detail { color: #999a9b; font-size: 11px; line-height: 1.7; }
.connection-status small { display: block; margin-top: 4px; }
#credentials-form label { display: block; margin-bottom: 9px; font-size: 12px; color: #d4d5d6; }
#credentials-form label span { color: #999a9b; font-size: 11px; margin-left: 5px; }
.studio-dialog input:not([type=checkbox]) { width: 100%; height: 42px; padding: 10px 12px; border: 1px solid #ffffff2b; border-radius: 6px; background: #090c0e; color: #e3e4e5; font-size: 12px; }
.key-note { margin: 11px 0 20px; color: #898a8b; font-size: 10px; line-height: 1.7; }
#settings-feedback { color: #c3c4c5; font-size: 12px; line-height: 1.5; }
.tools-dialog { width: min(800px, calc(100vw - 40px)); }
.tools-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid #ffffff20; border-radius: 8px; background: #0e1215; }
.tool-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px; }
.tool-card-head .icon { width: 17px; height: 17px; color: #afb0b1; }
.tool-card h3 { font-size: 13px; font-weight: 400; color: #e3e4e5; margin: 0; }
.tool-card p { margin: 0 0 13px; color: #999a9b; font-size: 11px; line-height: 1.65; }
.tool-availability { margin-left: auto; font-size: 9px; color: #999a9b; }
.tool-card > button { align-self: flex-start; margin-top: 14px; padding: 6px 9px; background: #1d2429; border: 1px solid #575859; border-radius: 5px; font-size: 10px; color: #cecfd0; }
.tool-card > button:hover { background: #515253; }
.library-dialog #library-content { color: #aeafb0; font-size: 12px; line-height: 1.8; }
.library-dialog h3 { color: #e1e2e3; font-size: 15px; font-weight: 400; margin: 24px 0 10px; }
.library-dialog ul { padding-left: 19px; }
.library-dialog a { color: #dbdcdd; text-decoration: underline; text-underline-offset: 3px; }
.library-dialog .knowledge-section { border-top: 1px solid #68717a; padding-top: 16px; }
.toast { position: fixed; z-index: 90; bottom: 25px; left: 50%; width: max-content; max-width: calc(100vw - 40px); padding: 13px 19px; border: 1px solid #646566; border-radius: 8px; background: #171c20; color: #dcddde; font-size: 12px; box-shadow: 0 8px 30px #0008; transform: translateX(-50%); }
.mobile-workspace-nav { display: none; }
body.preview-expanded .studio-shell { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
body.preview-expanded .assistant-panel { display: none; }
body.preview-expanded .creation-stage { grid-column: 2; margin-left: 0; }

/* The voice orb belongs to the reserved foot of the rail. The dialog owns its FX. */
body:has(.studio-shell) .voice-launcher { left: 15px; right: auto; bottom: 24px; width: 42px; height: 42px; border-color: #68717a; border-radius: 50%; box-shadow: 0 0 15px #bdbebf10; }
body:has(.studio-shell) .voice-launcher:hover { transform: scale(1.05); box-shadow: 0 0 19px #d1d2d329; }
body:has(.studio-shell) .voice-launcher-label { display: none; }
body:has(.studio-shell) .voice-launcher canvas { border-radius: 50%; }
body:has(.studio-shell) .voice-minibar { left: 83px; right: auto; bottom: 25px; max-width: min(420px, calc(100vw - 108px)); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes cursor-breathe { 50% { opacity: .25; } }


/* The glass is provided by /design/system.css and /design/effects.mjs.
   These selectors keep neutral control styles from covering the shared shader. */
:is(button,a)[data-x8-metal].x8-enhanced { background: transparent; border-color: transparent; box-shadow: none; }
:is(button,a)[data-x8-metal].x8-enhanced:hover { background: transparent; }
.composer[data-x8-glass] { border-radius: 18px; background: #00000026; }
.studio-rail[data-x8-glass] { position: fixed; }
.studio-rail > .x8-material { border-radius: inherit; }
.eyebrow, .header-eyebrow { padding: 0; border: 0; background: none; box-shadow: none; color: #7c8790; font-size: 9px; font-weight: 400; letter-spacing: 1.65px; }
.board-empty h2 { color: #eeeef0; font-weight: 400; }
.board-empty h2 > span { color: #aeb6bd; }
.board-empty > p, .chat-empty-note { color: #899198; }
.starter-list button { border-radius: 999px; background: #ffffff03; border-color: #ffffff18; }
.starter-list button:hover { background: #ffffff08; border-color: #ffffff35; }
.starter-list strong { color: #b7c1c9; }
body:has(.studio-shell) .voice-launcher { left: 29px; bottom: 29px; width: 42px; height: 42px; border: 1px solid #ffffff1a; }
body:has(.studio-shell) .voice-minibar { left: 84px; bottom: 30px; }
@media (min-width: 1650px) { :root { --chat-width: 384px; --rail-width: 112px; --header-height: 96px; } .creation-stage { margin-left: 36px; margin-right: 36px; margin-bottom: 28px; } .assistant-panel { margin-bottom: 28px; } .stage-heading h1 { font-size: 36px; } .board-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } .studio-rail { left: 25px; } body:has(.studio-shell) .voice-launcher { left: 34px; } }
@media (max-width: 1190px) and (min-width: 901px) { :root { --rail-width: 86px; --chat-width: 330px; --header-height: 78px; } .studio-rail { left: 14px; width: 58px; padding: 7px; } .studio-header { padding-left: 26px; padding-right: 24px; } .creation-stage { margin-left: 22px; margin-right: 20px; } .stage-heading h1 { font-size: 27px; } .board-state, .project-meta { display: none; } .stage-actions { gap: 3px; } .stage-actions .quiet-button { font-size: 11px; padding: 8px 10px; } .board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .board-tabs { gap: 3px; } .board-tabs button { padding: 7px 10px; font-size: 11px; } .assistant-header { padding: 21px 18px; } .conversation { padding-left: 18px; padding-right: 18px; } .viewer-caption { flex-wrap: wrap; gap: 13px; } body:has(.studio-shell) .voice-launcher { left: 22px; } }
@media (max-width: 900px) {
  :root { --rail-width: 78px; --header-height: 74px; }
  .studio-shell, body.preview-expanded .studio-shell { grid-template-columns: var(--rail-width) minmax(0,1fr); grid-template-rows: minmax(0,1fr) calc(66px + env(safe-area-inset-bottom,0px)); }
  .studio-rail { left: 12px; width: 54px; padding: 7px; }
  .rail-button { width: 38px; height: 38px; }
  .rail-top,.rail-bottom { gap: 6px; }
  .studio-header { grid-column: 1 / -1; padding: 0 22px; gap: 15px; }
  .studio-identity { gap: 18px; }
  .wordmark { font-size: 23px; }
  .project-name { max-width: 220px; font-size: 12px; }
  .project-meta,#toggle-assistant,.export-link { display: none !important; }
  .header-actions { gap: 5px; }
  .activity-toggle { font-size: 11px; gap: 6px; }
  .creation-stage,.assistant-panel,body.preview-expanded .creation-stage { grid-column: 2; grid-row: 1; margin: 0 17px 0 0; }
  .assistant-panel { border: 1px solid #ffffff14; border-radius: 20px; }
  body[data-mobile-view='chat'] .creation-stage { display: none; }
  body[data-mobile-view='board'] .assistant-panel { display: none; }
  body[data-mobile-view='chat'] .assistant-panel { display: flex; }
  .stage-heading { padding: 12px 0 20px; }
  .stage-heading h1 { font-size: 29px; }
  .board-state { display: none; }
  .stage-scroll { padding-top: 20px; }
  .board-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .board-card-select { opacity: 1; }
  .assistant-header { min-height: 77px; padding: 21px 25px; }
  .conversation { padding: 26px max(24px,calc((100% - 620px)/2)); }
  .chat-empty { padding-top: 35px; }
  .chat-empty h3 { font-size: 41px; }
  .chat-empty p { max-width: 375px; font-size: 14px; }
  .composer-zone { padding: 14px max(22px,calc((100% - 628px)/2)) 16px; }
  .composer textarea { min-height: 83px; max-height: 160px; font-size: 14px; }
  .mobile-workspace-nav { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 17px calc(8px + env(safe-area-inset-bottom,0px)) 0; background: #000; }
  .mobile-workspace-nav button { display: flex; justify-content: center; align-items: center; flex: 1; gap: 8px; height: 39px; max-width: 300px; border: 1px solid transparent; border-radius: 999px; color: #899198; font-size: 12px; }
  .mobile-workspace-nav button.is-active { background: #ffffff05; border-color: #ffffff25; color: #eeeef0; }
  .mobile-workspace-nav button [data-icon] { width: 15px; height: 15px; }
  #mobile-material-count { font-size: 9px; color: #9ba5ad; }
  body:has(.studio-shell) .voice-launcher { left: 20px; width: 38px; height: 38px; bottom: calc(21px + env(safe-area-inset-bottom,0px)); }
  body:has(.studio-shell) .voice-minibar { left: 78px; bottom: 75px; max-width: calc(100vw - 94px); }
  .toast { bottom: 78px; }
}
@media (max-width: 600px) {
  :root { --rail-width: 0px; --header-height: 70px; }
  .studio-shell, body.preview-expanded .studio-shell { grid-template-columns: minmax(0,1fr); }
  .studio-rail { display: none; }
  .studio-header { grid-column: 1; padding: 0 17px; }
  .studio-identity { gap: 13px; }
  .wordmark { font-size: 22px; }
  .header-divider { height: 21px; }
  .project-switch { gap: 7px; padding-right: 0; }
  .project-overline { font-size: 7px; letter-spacing: 1px; }
  .project-name { font-size: 11px; max-width: 130px; }
  .project-switch > [data-icon] { width: 10px; height: 10px; }
  .activity-toggle { padding: 7px 0 7px 5px; }
  .activity-toggle > span:nth-child(2) { display: none; }
  .creation-stage,.assistant-panel,body.preview-expanded .creation-stage { grid-column: 1; margin: 0 12px; }
  .stage-heading { padding: 7px 0 18px; gap: 9px; }
  .stage-heading h1 { font-size: 26px; }
  .stage-actions { gap: 2px; }
  .stage-actions .quiet-button { font-size: 10px; padding: 7px 10px; min-height: 31px; }
  .stage-actions .quiet-button [data-icon] { display: none; }
  .stage-actions .icon-button { width: 29px; height: 31px; }
  .board-tabs { padding-bottom: 12px; gap: 3px; }
  .board-tabs button { font-size: 10px; padding: 7px 10px; gap: 5px; }
  .board-tabs button span { font-size: 8px; }
  .stage-scroll { padding: 19px 1px 25px; }
  .board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 11px; }
  .board-card-copy { padding: 12px; }
  .board-card-copy h3 { font-size: 12px; }
  .board-card-copy p { font-size: 10px; -webkit-line-clamp: 1; }
  .board-card-kind { font-size: 6px; right: 7px; top: 8px; }
  .board-card-status { font-size: 8px; }
  .board-card-document { padding: 24px 13px; font-size: 8px; }
  .board-card-document h3 { font-size: 10px; }
  .board-empty { min-height: min(600px,calc(100dvh - 280px)); }
  .empty-topline { font-size: 6px; letter-spacing: 1px; }
  .empty-scene { width: 340px; margin: -6px -25px -19px; transform: scale(.76); }
  .board-empty h2 { font-size: clamp(31px,8vw,44px); letter-spacing: -1.4px; }
  .board-empty > p { font-size: 12px; max-width: 270px; }
  .desktop-break { display: none; }
  .starter-list { gap: 7px; margin-top: 27px; }
  .starter-list button { padding: 11px 8px; gap: 5px; }
  .starter-list button > span:first-child { display: none; }
  .starter-list strong { font-size: 10px; }
  .starter-list [data-icon] { display: none; }
  .empty-bottomline { padding-top: 26px; font-size: 6px; }
  .assistant-header { min-height: 72px; padding: 20px; }
  .conversation { padding: 23px 20px; }
  .chat-empty { padding-top: 23px; }
  .chat-empty h3 { font-size: 35px; }
  .chat-empty p { font-size: 13px; }
  .chat-message-body { font-size: 13px; }
  .chat-message.is-user { padding: 12px 14px; }
  .composer-zone { padding: 10px 13px 13px; }
  .composer textarea { min-height: 76px; max-height: 145px; padding: 14px 13px 7px; font-size: 16px; }
  .composer-toolbar { padding-bottom: 8px; min-height: 44px; }
  .composer-caption { font-size: 8px; margin-top: 9px; }
  .context-chip { max-width: 155px; font-size: 9px; }
  .suggestions { gap: 5px; }
  .suggestions button { font-size: 9px; }
  .mobile-workspace-nav { grid-column: 1; padding-left: 66px; padding-right: 16px; }
  .viewer-top { margin: -3px 0 12px; gap: 6px; }
  .viewer-top .quiet-button { font-size: 10px; gap: 5px; }
  .viewer-top .icon-button { width: 28px; height: 28px; }
  .viewer-position { font-size: 9px; }
  .viewer-caption { flex-direction: column; align-items: stretch; padding: 17px 0; gap: 14px; }
  .viewer-heading h2 { font-size: 20px; }
  .viewer-actions { justify-content: flex-end; }
  .viewer-actions .quiet-button,.viewer-actions .primary-button { font-size: 11px; }
  .viewer-document { padding: 25px 19px; }
  .viewer-text { font-size: 13px; }
  .viewer-text h3 { font-size: 19px; }
  .filmstrip-item { flex-basis: 75px; width: 75px; }
  .selection-bar { bottom: 14px; gap: 6px; padding: 8px; max-width: calc(100% - 16px); }
  .selection-bar > span { font-size: 10px; padding-right: 0; }
  .selection-bar .quiet-button,.selection-bar .primary-button { padding: 7px 10px; font-size: 10px; }
  .selection-bar .primary-button [data-icon] { width: 12px; height: 12px; }
  .studio-dialog { padding: 23px; width: calc(100vw - 26px); max-height: 87dvh; }
  .dialog-top h2 { font-size: 25px; }
  .dialog-intro { font-size: 12px; }
  .tools-content { grid-template-columns: 1fr; }
  body:has(.studio-shell) .voice-launcher { left: 18px; bottom: calc(15px + env(safe-area-inset-bottom,0px)); width: 36px; height: 36px; }
  body:has(.studio-shell) .voice-minibar { left: 13px; bottom: 80px; max-width: calc(100vw - 26px); }
}
@media (max-height: 690px) and (min-width: 901px) { :root { --header-height: 72px; } .stage-heading { padding-top: 4px; padding-bottom: 16px; } .assistant-header { min-height: 70px; padding-top: 17px; padding-bottom: 17px; } .studio-rail { padding: 7px; } .rail-button { height: 36px; width: 36px; } .rail-top,.rail-bottom { gap: 5px; } .composer textarea { min-height: 72px; } .chat-empty { padding-top: 8px; } .empty-scene { height: 150px; margin-top: 0; transform: scale(.8); margin-bottom: -10px; } .board-empty h2 { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (hover: none) { .board-card-select { opacity: 1; } }

/* The production overview tells one story: intention, shots, generation, final cut. */
.story-workspace { min-width: 0; }
.film-overview { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; column-gap: 25px; padding: 2px 0 24px; }
.film-overview > div:first-child { min-width: 0; }
.film-kicker { display: block; color: #7c8790; font-size: 9px; font-weight: 400; letter-spacing: 1.75px; text-transform: uppercase; }
.film-overview h2 { max-width: 720px; margin: 11px 0 11px; font-size: clamp(29px,2.4vw,42px); line-height: 1.08; letter-spacing: -1.45px; font-weight: 400; color: #eeeef0; overflow-wrap: anywhere; }
.film-overview p { max-width: 640px; margin: 0; font-size: 13px; line-height: 1.75; color: #899198; }
.film-stats { display: flex; align-items: flex-end; flex: 0 0 auto; gap: 22px; padding-bottom: 3px; color: #7c8790; font-size: 10px; }
.film-stats > span { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.film-stats strong { display: block; color: #bec8d0; font-size: 24px; line-height: 1.1; font-weight: 400; letter-spacing: -.6px; }
.production-path { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin: 0 0 22px; }
.path-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 109px; padding: 15px 13px 13px; background: #ffffff02; border: 1px solid #ffffff10; border-radius: 15px; text-align: left; color: #7d8993; transition: border-color 160ms, background 160ms; }
.path-step:hover { border-color: #ffffff35; background: #ffffff04; }
.path-number { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; margin-bottom: 12px; border: 1px solid #ffffff20; border-radius: 50%; color: #88949e; font-size: 9px; font-variant-numeric: tabular-nums; }
.path-number .icon { width: 11px; height: 11px; }
.path-step strong { display: block; font-size: 12px; font-weight: 400; line-height: 1.4; color: #aab5be; }
.path-step small { display: block; margin-top: 3px; font-size: 9px; line-height: 1.5; color: #76838d; }
.path-step.is-current { border-color: #a6b9c650; background: linear-gradient(130deg,#adbcca0a,#ffffff02); }
.path-step.is-current .path-number { color: #161d22; background: linear-gradient(140deg,#f0f3f5,#afbdc8); border-color: transparent; box-shadow: inset 0 1px 0 #fff; }
.path-step.is-current strong { color: #e3e9ed; }
.path-step.is-current small { color: #a5b2bd; }
.path-step.is-complete { border-color: #ffffff1b; }
.path-step.is-complete .path-number { color: #d0dce4; border-color: #bacbd345; background: #a1b8c410; }
.path-step.is-complete strong { color: #c4cfd6; }
.next-step-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 34px; padding: 21px 22px; border: 1px solid #ffffff20; border-radius: 18px; background: linear-gradient(115deg,#11171b88,#06090b66 60%,#000); box-shadow: inset 0 1px 0 #ffffff06; }
.next-step-card > div:first-child { min-width: 0; }
.next-step-card h3 { margin: 8px 0 5px; font-size: 19px; line-height: 1.3; letter-spacing: -.45px; font-weight: 400; color: #dbe3e9; }
.next-step-card p { max-width: 550px; margin: 0; font-size: 12px; line-height: 1.65; color: #8996a0; }
.next-step-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 48%; }
.next-step-actions button { font-size: 11px; }
.story-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,44%); column-gap: 22px; align-items: end; margin: 0 0 18px; }
.story-heading h3 { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -.65px; color: #dde5eb; }
.story-heading p { max-width: 440px; margin: 6px 0 0; color: #7c8993; font-size: 11px; line-height: 1.65; }
.story-heading > p { text-align: right; }
.scene-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; margin-bottom: 30px; }
.scene-card { position: relative; min-width: 0; padding: 6px; border: 1px solid #ffffff18; border-radius: 21px; background: #080b0d; box-shadow: inset 0 1px 0 #ffffff08; transition: border-color 160ms; }
.scene-card:hover { border-color: #ffffff40; }
.scene-card.is-selected,.scene-card.is-active { border-color: #9cb3c56b; }
.scene-open { display: block; width: 100%; padding: 0; text-align: left; color: inherit; }
.scene-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; min-width: 0; overflow: hidden; border-radius: 15px; background: radial-gradient(ellipse at 43% 78%,#3a495329,transparent 75%),#101417; }
.scene-cover > img,.scene-cover > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-cover::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg,#0002 0,transparent 30%,transparent 50%,#0008 100%); }
.scene-cover > .icon,.scene-cover > [data-icon] { width: 38px; height: 38px; color: #788994; stroke-width: 1; }
.scene-number,.scene-cover-number,.scene-cover > .number { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 31px; height: 27px; padding: 0 8px; border: 1px solid #ffffff25; border-radius: 999px; background: #080c10c4; color: #dce5eb; font-size: 10px; line-height: 1; letter-spacing: .4px; }
.scene-time,.scene-cover-time,.scene-cover > .time { position: absolute; z-index: 1; right: 12px; bottom: 12px; padding: 5px 8px; border: 1px solid #ffffff21; border-radius: 999px; background: #080c10c4; font-size: 9px; font-variant-numeric: tabular-nums; color: #dce5eb; }
.scene-copy { padding: 17px 12px 14px; }
.scene-copy h3 { margin: 0; color: #dbe4eb; font-size: 17px; font-weight: 400; line-height: 1.35; letter-spacing: -.35px; }
.scene-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 7px 0 0; color: #8996a0; font-size: 12px; line-height: 1.65; }
.scene-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 0 12px 12px; }
.scene-progress > span { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 9px; color: #71808b; line-height: 1.5; }
.scene-progress > span::before { content: ''; flex: 0 0 auto; width: 4px; height: 4px; border: 1px solid #75859066; border-radius: 50%; }
.scene-progress > span.is-complete,.scene-progress > span.is-ready,.scene-progress > span.complete,.scene-progress > span.ready { color: #c0cfd9; }
.scene-progress > span.is-complete::before,.scene-progress > span.is-ready::before,.scene-progress > span.complete::before,.scene-progress > span.ready::before { background: #c0cfd9; border-color: #c0cfd9; }
.scene-progress > span.is-current,.scene-progress > span.is-pending { color: #abbcc8; }
.scene-progress > span.is-current::before { background: #aabccc35; border-color: #c1d0dc; }
.assembly-card { padding: 25px 23px 22px; margin: 4px 0 8px; border: 1px solid #ffffff1c; border-radius: 20px; background: #ffffff02; }
.assembly-card > h3,.assembly-card h3 { margin: 8px 0 8px; font-size: 23px; font-weight: 400; line-height: 1.25; letter-spacing: -.65px; color: #dde5eb; }
.assembly-card p { margin: 0; max-width: 640px; color: #85939d; font-size: 12px; line-height: 1.75; }
.assembly-timeline { display: flex; gap: 7px; overflow-x: auto; padding: 22px 0 21px; scrollbar-width: thin; scrollbar-color: #34414a transparent; }
.assembly-timeline button { position: relative; display: block; min-width: 88px; flex: 1 0 88px; max-width: 180px; padding: 0; aspect-ratio: 16/10; overflow: hidden; border: 1px solid #ffffff20; border-radius: 8px; background: #101518; }
.assembly-timeline button:hover { border-color: #ffffff70; }
.assembly-timeline img { width: 100%; height: 100%; object-fit: cover; }
.assembly-timeline button > span { position: absolute; bottom: 5px; left: 6px; padding: 3px 5px; background: #000c; border-radius: 4px; color: #b9c7d1; font-size: 8px; line-height: 1.2; }
.assembly-card .next-step-actions { max-width: none; justify-content: flex-start; margin-top: 16px; }
.assembly-status { margin-top: 14px; color: #99a9b5; font-size: 11px; line-height: 1.7; }

/* Scene inspection keeps intention, exact prompts and execution visible in context. */
.scene-inspector { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.creation-stage:has(.scene-inspector:not([hidden])) > .stage-heading,
.creation-stage:has(.scene-inspector:not([hidden])) > .board-tabs { display: none; }
.creation-stage:has(.scene-inspector:not([hidden])) > .stage-scroll { padding-top: 5px; padding-bottom: 0; overflow: hidden; }
.scene-inspector-head { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; padding-bottom: 20px; }
.scene-inspector-head h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.7px; line-height: 1.25; color: #dde5eb; overflow-wrap: anywhere; }
.scene-inspector-head .eyebrow { margin-bottom: 5px; }
.scene-inspector-head > div { min-width: 0; }
.scene-inspector-head > .quiet-button { font-size: 11px; padding: 8px 11px; }
.scene-inspector-head .viewer-navigation { margin-left: auto; }
.scene-detail-tabs { display: flex; gap: 6px; flex: 0 0 auto; padding: 0 0 17px; border-bottom: 1px solid #ffffff12; }
.scene-detail-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; color: #84949f; font-size: 12px; }
.scene-detail-tabs button.is-active,.scene-detail-tabs button[aria-selected=true],.scene-detail-tabs button[aria-pressed=true] { border-color: #ffffff25; background: #ffffff05; color: #e4ecf1; }
.scene-detail-tabs button:hover { color: #e4ecf1; }
#scene-detail-content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 22px 2px 23px 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #34414a transparent; }
.scene-visual { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 210px; max-height: min(54dvh,620px); aspect-ratio: 16/9; overflow: hidden; border: 1px solid #ffffff18; border-radius: 18px; background: #020304; }
.scene-visual > img,.scene-visual > video { width: 100%; height: 100%; max-height: min(54dvh,620px); object-fit: contain; }
.scene-visual > .icon,.scene-visual > [data-icon] { width: 46px; height: 46px; color: #6e818d; }
.frame-options { display: flex; gap: 10px; padding: 14px 0 2px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #34414a transparent; }
.frame-options button { position: relative; flex: 0 0 103px; width: 103px; padding: 4px; text-align: left; border: 1px solid #ffffff18; border-radius: 10px; background: #000; color: #94a5b0; }
.frame-options button img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.frame-options button span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 6px 3px 3px; font-size: 9px; }
.frame-options button.is-active,.frame-options button[aria-pressed=true] { border-color: #c1d1db8c; color: #dce6ed; }
.frame-options button:hover { border-color: #ffffff60; }
.scene-intent { padding: 24px 0 0; }
.scene-intent h3 { margin: 0 0 10px; font-size: 17px; font-weight: 400; letter-spacing: -.3px; color: #dbe5ec; }
.scene-intent p { max-width: 830px; margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: #a9b7c1; }
.scene-intent dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 24px; }
.scene-intent dt { color: #788995; font-size: 10px; }
.scene-intent dd { margin: 7px 0 0; color: #c5d2da; font-size: 12px; line-height: 1.6; }
.scene-review-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 0 0 auto; padding: 17px 0 3px; border-top: 1px solid #ffffff18; }
.scene-review-actions > span,.scene-review-status { color: #90a2ae; font-size: 11px; line-height: 1.6; }
.scene-review-actions > div { display: flex; align-items: center; gap: 8px; }
.scene-review-actions button { font-size: 11px; }
.prompt-block { padding: 24px; margin: 0 0 18px; border: 1px solid #ffffff1c; border-radius: 18px; background: #06090b; }
.prompt-block header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prompt-block h3 { margin: 0 0 8px; font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: -.3px; color: #dbe5ec; }
.prompt-block small { display: block; font-size: 10px; line-height: 1.65; color: #7f949f; }
.prompt-block pre { margin: 20px 0 0; padding: 20px 0 0; max-height: none; border-top: 1px solid #ffffff11; color: #bac9d2; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.85 var(--font); }
.prompt-block > button { margin-top: 17px; }
.prompt-block .quiet-button { font-size: 10px; min-height: 32px; }
.dispatch-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 25px; }
.dispatch-flow > div,.dispatch-flow > li { min-width: 0; padding: 21px 19px; border: 1px solid #ffffff1a; border-radius: 17px; background: #ffffff02; }
.dispatch-flow > div > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #ffffff22; border-radius: 50%; margin-bottom: 17px; color: #93a7b4; font-size: 10px; }
.dispatch-flow h3,.dispatch-flow strong { display: block; margin: 0 0 7px; color: #d5e1e9; font-size: 15px; font-weight: 400; line-height: 1.35; }
.dispatch-flow p,.dispatch-flow small { display: block; margin: 0; color: #8197a5; font-size: 11px; line-height: 1.75; }
.reference-list { display: flex; flex-wrap: wrap; gap: 11px; margin: 15px 0 23px; }
.reference-list > button,.reference-list > a,.reference-list > div { width: 101px; padding: 4px; border: 1px solid #ffffff1b; border-radius: 10px; background: #05090b; color: #9bb0bc; text-align: left; }
.reference-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.reference-list span,.reference-list small { display: block; padding: 6px 3px 3px; font-size: 9px; line-height: 1.4; }
.scene-checklist { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 20px 0; padding: 0; }
.scene-checklist > li,.scene-checklist > div { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #ffffff0e; color: #9eb1be; font-size: 12px; line-height: 1.65; }
.scene-checklist .icon { width: 15px; height: 15px; flex: 0 0 auto; color: #bcd0de; }
.scene-checklist .is-missing,.scene-checklist .is-pending { color: #8499a7; }
#dispatch-dialog { width: min(710px,calc(100vw - 40px)); }
#dispatch-content { color: #a7bbc8; font-size: 13px; line-height: 1.8; }
#dispatch-content h3 { margin: 23px 0 9px; color: #d7e6ef; font-size: 17px; font-weight: 400; letter-spacing: -.3px; }
#dispatch-content ul { padding-left: 19px; }
#dispatch-content p { margin: 0 0 16px; }
#dispatch-content pre { padding: 15px; margin: 14px 0; border: 1px solid #ffffff15; border-radius: 13px; font: 11px/1.8 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; color: #b5c9d5; background: #020609; }
#dispatch-confirm { margin-top: 19px; }

@media (min-width:1650px) { .scene-grid { gap: 24px; } .scene-copy { padding: 19px 16px 17px; } .scene-copy h3 { font-size: 19px; } .scene-progress { padding-left: 16px; padding-right: 16px; padding-bottom: 15px; } .production-path { gap: 13px; } .path-step { padding: 18px 17px 16px; min-height: 114px; } .path-step strong { font-size: 13px; } }
@media (max-width:1190px) { .film-overview { align-items: start; row-gap: 0; padding-bottom: 21px; } .film-overview h2 { font-size: 29px; } .film-stats { gap: 24px; } .film-stats > span { flex-direction: row; align-items: baseline; gap: 6px; } .film-stats strong { font-size: 18px; } .production-path { gap: 6px; } .path-step { min-height: 104px; padding: 13px 9px; border-radius: 12px; } .path-step strong { font-size: 11px; } .path-step small { font-size: 8px; } .next-step-card { padding: 19px; flex-direction: column; align-items: flex-start; gap: 16px; } .next-step-actions { max-width: 100%; justify-content: flex-start; } .scene-grid { gap: 15px; } .scene-copy { padding: 14px 9px 12px; } .scene-copy h3 { font-size: 15px; } .scene-copy p { font-size: 11px; } .scene-progress { padding-left: 9px; padding-right: 9px; gap: 4px; } .scene-progress > span { font-size: 8px; } .dispatch-flow { gap: 9px; } .dispatch-flow > div,.dispatch-flow > li { padding: 17px 13px; } }
@media (max-width:900px) { .film-overview { align-items: end; } .film-stats { gap: 15px; } .film-stats > span { flex-direction: column; gap: 5px; } .film-overview h2 { max-width: 450px; } .next-step-card { flex-direction: row; align-items: center; } .next-step-actions { max-width: 43%; justify-content: flex-end; } .path-step { padding: 16px 13px; } .path-step strong { font-size: 12px; } .path-step small { font-size: 9px; } .scene-copy h3 { font-size: 17px; } .scene-copy p { font-size: 12px; } .scene-progress > span { font-size: 9px; } .scene-inspector-head h2 { font-size: 23px; } }
@media (max-width:600px) {
  .film-overview { align-items: start; row-gap: 0; padding-bottom: 21px; }
  .film-overview h2 { font-size: 30px; letter-spacing: -1.25px; }
  .film-overview p { font-size: 12px; }
  .film-stats { gap: 20px; }
  .film-stats > span { flex-direction: row; align-items: baseline; gap: 5px; }
  .film-stats strong { font-size: 18px; }
  .production-path { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 7px; margin-bottom: 15px; scrollbar-width: none; }
  .path-step { flex: 1 0 92px; min-height: 106px; padding: 14px 12px; }
  .path-step strong { font-size: 11px; }
  .path-step small { font-size: 9px; }
  .next-step-card { flex-direction: column; align-items: flex-start; padding: 20px; gap: 17px; margin-bottom: 29px; }
  .next-step-card h3 { font-size: 19px; }
  .next-step-card p { font-size: 12px; }
  .next-step-actions { max-width: none; justify-content: flex-start; }
  .story-heading { gap: 10px; margin-bottom: 16px; }
  .story-heading h3 { font-size: 21px; }
  .story-heading p { font-size: 10px; }
  .scene-grid { grid-template-columns: 1fr; gap: 20px; }
  .scene-copy { padding: 16px 13px 14px; }
  .scene-copy h3 { font-size: 18px; }
  .scene-copy p { font-size: 12px; }
  .scene-progress { padding-left: 13px; padding-right: 13px; padding-bottom: 14px; }
  .scene-progress > span { font-size: 10px; }
  .assembly-card { padding: 21px 18px; }
  .assembly-card h3 { font-size: 22px; }
  .assembly-timeline { padding: 20px 0; }
  .scene-inspector-head { flex-wrap: wrap; padding-bottom: 17px; gap: 11px; }
  .scene-inspector-head > .quiet-button { padding: 7px 10px; font-size: 10px; }
  .scene-inspector-head h2 { font-size: 21px; }
  .scene-inspector-head .viewer-navigation { gap: 0; }
  .scene-inspector-head .viewer-navigation button { width: 29px; height: 29px; }
  .scene-detail-tabs { gap: 5px; padding-bottom: 13px; }
  .scene-detail-tabs button { padding: 8px 14px; font-size: 11px; }
  #scene-detail-content { padding-top: 18px; }
  .scene-visual { min-height: 165px; border-radius: 15px; }
  .scene-intent { padding-top: 21px; }
  .scene-intent p { font-size: 13px; }
  .scene-intent dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .scene-review-actions { flex-wrap: wrap; padding-top: 15px; gap: 9px; }
  .scene-review-actions > span { font-size: 10px; }
  .scene-review-actions > div { margin-left: auto; gap: 5px; }
  .scene-review-actions button { font-size: 10px; padding: 8px 12px; }
  .prompt-block { padding: 20px 17px; }
  .prompt-block header { flex-wrap: wrap; }
  .prompt-block h3 { font-size: 17px; }
  .prompt-block small { font-size: 9px; }
  .prompt-block pre { font-size: 12px; line-height: 1.8; }
  .dispatch-flow { grid-template-columns: 1fr; gap: 11px; }
  .dispatch-flow > div,.dispatch-flow > li { padding: 18px; }
  .dispatch-flow > div > span:first-child { float: left; margin: 0 13px 20px 0; }
  .dispatch-flow h3,.dispatch-flow strong { font-size: 16px; }
  .dispatch-flow p,.dispatch-flow small { font-size: 12px; }
  .scene-checklist > li,.scene-checklist > div { font-size: 11px; }
}

/* Exact DOM contract of the storyboard renderer. */
.film-overview > .film-kicker { grid-column: 1; grid-row: 1; }
.film-overview > h2 { grid-column: 1; grid-row: 2; }
.film-overview > p { grid-column: 1; grid-row: 3; }
.film-overview > .film-stats { grid-column: 2; grid-row: 2 / 4; display: grid; grid-template-columns: repeat(2,auto); gap: 17px 23px; padding: 0 0 3px; }
.film-overview > .production-path { grid-column: 1 / -1; grid-row: 4; margin-top: 25px; margin-bottom: 0; }
.story-heading > div { grid-column: 1; color: #6f828e; font-size: 8px; letter-spacing: 1.55px; margin-bottom: 7px; }
.story-heading > h3 { grid-column: 1; }
.story-heading > p { grid-column: 2; grid-row: 1 / 3; margin: 0; text-align: right; }
.scene-placeholder { padding: 25px; max-width: 185px; text-align: center; color: #748995; font-size: 12px; line-height: 1.75; }
.scene-copy > small { display: block; margin-top: 9px; color: #8096a3; font-size: 10px; }
.scene-progress > span::before { content: none; }
.scene-navigation { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.scene-inspector-head > .film-kicker { margin-left: auto; color: #879daa; font-size: 9px; letter-spacing: 1.1px; }
.scene-inspector-head > .scene-navigation { margin-left: 5px; }
.scene-detail-title { flex: 0 0 auto; margin: 0 0 24px; }
.scene-detail-title h2 { margin: 0; color: #e1eaf0; font-size: clamp(26px,2.4vw,36px); line-height: 1.12; font-weight: 400; letter-spacing: -1.1px; }
.scene-detail-title p { margin: 9px 0 0; color: #8b9fac; font-size: 12px; }
.scene-review-actions > button:first-child { margin-right: auto; }
.frame-options > button { flex-basis: auto; width: auto; min-width: 93px; max-width: 220px; min-height: 34px; padding: 9px 13px; font-size: 10px; line-height: 1.5; border-radius: 999px; }
.scene-visual > p { max-width: 230px; padding: 22px; text-align: center; font-size: 13px; line-height: 1.8; color: #8299a7; }
.scene-intent > .film-kicker { margin-bottom: 11px; }
.scene-intent > .quiet-button { margin-top: 4px; font-size: 11px; }
.scene-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #ffffff12; color: #7c93a2; font-size: 11px; line-height: 1.85; }
.assembly-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.assembly-summary > span { color: #829baa; font-size: 11px; line-height: 1.6; }
.assembly-summary > button { flex: 0 0 auto; font-size: 11px; }
.story-start { border: 1px dashed #ffffff1c; border-radius: 18px; padding: 29px 25px; margin-top: 24px; }
.story-start > strong { display: block; font-size: 16px; font-weight: 400; letter-spacing: -.2px; color: #b7cbd8; }
.story-start > p { max-width: 620px; margin: 13px 0 0; color: #7e98a9; font-size: 12px; line-height: 1.85; }
.dispatch-list { display: grid; gap: 0; border-top: 1px solid #ffffff14; margin: 21px 0; }
.dispatch-list > div { padding: 16px 0; border-bottom: 1px solid #ffffff14; }
.dispatch-list strong { display: block; color: #c9dce8; font-size: 13px; font-weight: 400; line-height: 1.5; }
.dispatch-list small { display: block; margin-top: 5px; color: #809cae; font-size: 10px; line-height: 1.6; }
.dispatch-blockers { padding: 18px; margin: 19px 0 22px; border: 1px solid #b6a39630; border-radius: 16px; background: #a28d7208; }
.dispatch-blockers > strong { font-size: 13px; font-weight: 400; color: #d2c6bb; }
.dispatch-blockers ul { margin: 11px 0 15px; color: #b4a99f; font-size: 12px; line-height: 1.85; }
.dispatch-blockers button { font-size: 11px; }
.dispatch-ready { color: #a6bdcd; }
.dispatch-request { border-top: 1px solid #ffffff13; border-bottom: 1px solid #ffffff13; margin: 19px 0; }
.dispatch-request summary { color: #a4bed0; cursor: pointer; padding: 14px 0; font-size: 11px; }
.dispatch-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 15px; }
.dispatch-footer #dispatch-confirm { margin-top: 0; }
.dispatch-footer button { font-size: 11px; }
#dispatch-error { color: #d3b6ac; font-size: 12px; line-height: 1.7; }
@media (max-width:1190px) { .film-overview { grid-template-columns: minmax(0,1fr); } .film-overview > .film-stats { grid-column: 1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px 20px; margin-top: 17px; } .film-overview > .film-stats > span { display: inline-flex; flex-direction: row; } .film-overview > .production-path { grid-row: 5; margin-top: 22px; } .story-heading { grid-template-columns: minmax(0,1fr); } .story-heading > p { grid-column: 1; grid-row: 3; text-align: left; max-width: 430px; margin-top: 10px; } .scene-inspector-head { gap: 9px; } .scene-inspector-head > .film-kicker { font-size: 8px; } .assembly-summary { flex-wrap: wrap; gap: 14px; } }
@media (max-width:600px) { .film-overview > .film-stats { gap: 8px 17px; } .film-overview > .production-path { margin-top: 21px; } .scene-detail-title { margin-bottom: 22px; } .scene-detail-title h2 { font-size: 29px; } .scene-detail-title p { font-size: 11px; } .scene-inspector-head > .film-kicker { font-size: 7px; letter-spacing: .75px; } .scene-inspector-head > .scene-navigation { gap: 0; } .scene-inspector-head > .scene-navigation button { width: 25px; height: 27px; } .scene-review-actions > button:first-child { margin-right: 0; } .scene-review-actions { justify-content: flex-start; } .story-start { padding: 25px 21px; } .story-start > strong { font-size: 14px; line-height: 1.8; } .dispatch-footer { flex-wrap: wrap; justify-content: flex-start; gap: 9px; } }

/* Laptop density: the sequence remains visible without consuming a screen on metadata. */
.story-workspace { background: #000; }
@media (max-width: 1350px) and (min-width: 901px) {
  .stage-heading { padding-bottom: 17px; }
  .stage-heading h1 { font-size: 27px; }
  .film-overview { row-gap: 0; padding-bottom: 18px; }
  .film-overview h2 { font-size: 29px; margin-top: 8px; margin-bottom: 9px; }
  .film-overview p { font-size: 12px; line-height: 1.6; }
  .film-overview > .film-stats { margin-top: 14px; gap: 8px 17px; }
  .film-overview > .production-path { margin-top: 19px; }
  .path-step { min-height: 91px; padding: 12px 10px; }
  .path-number { margin-bottom: 8px; width: 19px; height: 19px; }
  .path-step strong { font-size: 11px; }
  .path-step small { font-size: 8px; line-height: 1.45; }
  .next-step-card { padding: 18px; gap: 13px; margin-bottom: 25px; }
  .next-step-card h3 { font-size: 18px; margin-top: 6px; }
  .next-step-card p { font-size: 11px; line-height: 1.65; }
  .next-step-actions .primary-button,.next-step-actions .quiet-button { font-size: 11px; padding: 9px 13px; min-height: 35px; }
  .story-heading { margin-bottom: 15px; }
  .story-heading h3 { font-size: 21px; }
  .story-heading > p { font-size: 10px; line-height: 1.6; margin-top: 8px; }
}
.prompt-previews { margin-top: 18px; border: 1px solid #ffffff16; border-radius: 16px; padding: 0 17px 17px; }
.prompt-previews > summary { padding: 17px 0; cursor: pointer; color: #a1b5c3; font-size: 12px; line-height: 1.6; }
.prompt-previews .prompt-block:last-child { margin-bottom: 0; }
#scene-detail-content > h3 { margin: 27px 0 14px; font-size: 18px; font-weight: 400; letter-spacing: -.4px; color: #c4d5e0; }
.scene-review-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.scene-review-actions > button:first-child { margin-right: 0; }
.scene-review-actions > .primary-button:last-child { margin-left: auto; }
@media (max-width: 600px) { .scene-review-actions { gap: 7px; } .scene-review-actions > .primary-button:last-child { margin-left: 0; } }

/* Shared production modes: lightweight controls, no extra rendering layer. */
.creation-mode-bar { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; padding: 16px 20px; }
.creation-modes { flex: 1; max-width: 300px; display: flex; gap: 4px; padding: 3px; border: 1px solid #ffffff16; border-radius: 999px; background: #080909; }
.creation-modes button { flex: 1; border: 0; border-radius: 999px; padding: 7px 8px; font: inherit; font-size: 11px; color: #8d9498; background: transparent; cursor: pointer; }
.creation-modes button[aria-pressed="true"] { color: #eff1f2; background: #ffffff0e; box-shadow: inset 0 0 0 1px #ffffff19; }
.creation-modes button:focus-visible { outline: 1px solid #d5dce1; outline-offset: 2px; }
.creation-modes button:disabled { cursor: wait; opacity: .6; }
.creation-mode-bar p { margin: 8px 3px 0; font-size: 10px; line-height: 1.5; color: #7b848a; }

/* Chat-first workspace: split, conversation focus, and an explicit preview focus. */
.studio-shell { padding-top: 20px; }
.preview-controls { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; height: 44px; margin-bottom: 8px; }
.preview-controls > div { display: flex; align-items: center; gap: 6px; }
.preview-controls .icon-button, .workspace-toggle { color: #9aa3aa; }
.preview-controls .icon-button:hover, .workspace-toggle:hover { color: #f5f6f7; background: #ffffff08; }
.preview-activity-count { position: absolute; right: 0; top: 0; font-size: 9px; }
#activity-toggle { position: relative; }
.composer-voice { flex: 0 0 32px; width: 32px; height: 32px; margin-right: 3px; color: #fff; border-radius: 50%; }
.composer-voice [data-icon] { width: 17px; height: 17px; }
.composer-voice[aria-pressed="true"] { color: #fff; }
body.preview-hidden .studio-shell { grid-template-columns: var(--rail-width) minmax(0,1fr); }
body.preview-hidden .creation-stage { display: none; }
body.preview-hidden .assistant-panel { grid-column: 2; width: min(100% - 48px, 900px); justify-self: center; }
@media (min-width: 901px) {
  body.preview-expanded .creation-stage { display: flex; }
  body.preview-expanded .assistant-panel { display: none; }
}
@media (max-width: 900px) {
  .studio-shell { padding-top: 12px; }
  body.preview-hidden .assistant-panel { width: auto; justify-self: stretch; margin-right: 17px; }
  .workspace-toggle { display: none; }
  .preview-controls { height: 34px; }
}
@media (max-width: 600px) {
  body.preview-hidden .studio-shell { grid-template-columns: minmax(0,1fr); }
  body.preview-hidden .assistant-panel { grid-column: 1; margin: 0 12px; }
  .creation-mode-bar { padding: 12px 16px; }
}

/* Composer mode picker and resizable split; defaults retain the original chat width. */
.assistant-panel { position: relative; }
.chat-controls { display: flex; justify-content: flex-end; flex: 0 0 40px; padding: 5px 10px 0; }
.composer-mode { display: inline-flex; align-items: center; position: relative; min-width: 0; flex: 0 1 108px; }
.composer-mode select { appearance: none; width: 100%; min-width: 0; padding: 6px 23px 6px 9px; border: 1px solid #ffffff13; border-radius: 999px; background: #17191b; color: #cdd2d5; font: inherit; font-size: 10px; line-height: 18px; cursor: pointer; }
.composer-mode select:focus-visible { outline: 1px solid #c6d5dd; outline-offset: 3px; }
.composer-mode > [data-icon] { position: absolute; right: 8px; width: 10px; height: 10px; pointer-events: none; color: #939ba1; }
.composer-mode select:disabled { opacity: .6; cursor: wait; }
.composer-toolbar .composer-apps { padding: 0 3px; gap: 4px; }
.composer-toolbar .send-button { flex: 0 0 32px; }
.chat-resizer { position: absolute; top: 20px; bottom: 20px; right: -15px; width: 24px; cursor: col-resize; touch-action: none; z-index: 4; outline: none; }
.chat-resizer::after { content: ''; position: absolute; width: 2px; height: 46px; left: 11px; top: calc(50% - 23px); border-radius: 2px; background: #ffffff24; transition: background .15s; }
.chat-resizer:hover::after, .chat-resizer:focus-visible::after, .is-resizing-chat .chat-resizer::after { background: #c1d4df; }
body.is-resizing-chat, body.is-resizing-chat * { cursor: col-resize !important; user-select: none !important; }
body.preview-hidden .chat-resizer, body.preview-expanded .chat-resizer { display: none; }
@media (max-width: 900px) { .chat-resizer, .chat-controls { display: none; } }

/* Review room: one delivery owns the stage. The index is deliberately on demand. */
.creation-stage > .stage-scroll { overflow: hidden; padding: 0 0 8px; display: flex; flex-direction: column; }
.creation-stage:has(.review-room:not([hidden])) > .stage-scroll { padding-top: 0; padding-bottom: 8px; }
.review-room { gap: 0; }
.review-room .viewer-top { margin: 0; padding: 0 0 12px; gap: 10px; }
.review-room .viewer-top > .quiet-button { font-size: 11px; color: #aaaeb1; gap: 9px; }
.review-room .viewer-position { font-variant-numeric: tabular-nums; color: #80888d; font-size: 11px; }
.review-progress { height: 1px; background: #ffffff0e; overflow: hidden; }
.review-progress > span { display: block; height: 100%; background: linear-gradient(90deg,#c6d5dd44,#d5d8d9); transition: width .35s ease; }
.review-heading { width: min(100%,780px); margin: 0 auto; padding: clamp(22px,3vh,38px) 24px 18px; }
.review-kicker { display: flex; align-items: center; gap: 16px; }
.review-kicker .eyebrow { color: #929ba0; font-size: 9px; letter-spacing: 1.7px; text-transform: uppercase; }
.review-kicker .viewer-status { color: #777f85; font-size: 10px; }
.review-kicker .viewer-status::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: 9px; vertical-align: middle; }
.review-heading h1 { font-size: clamp(25px,2.5vw,42px); font-weight: 400; letter-spacing: -.045em; line-height: 1.13; margin: 15px 0 0; text-wrap: balance; overflow-wrap: anywhere; }
.review-room .viewer-stage { border: 0; border-radius: 0; align-items: stretch; }
.review-room .viewer-document { background: transparent; padding: 13px 24px 60px; scrollbar-width: thin; scrollbar-color: #ffffff23 transparent; scroll-behavior: smooth; overscroll-behavior: contain; }
.review-room .viewer-text { max-width: 732px; font-size: clamp(14px,1.05vw,17px); line-height: 1.9; color: #b1b7bb; }
.review-room .viewer-text > h2:first-child { font-size: 23px; margin: 0 0 1em; }
.review-room .viewer-text h2 { font-size: 25px; margin: 1.8em 0 .8em; }
.review-room .viewer-text h3 { font-size: 20px; margin: 1.7em 0 .65em; }
.review-room .viewer-text h4,.review-room .viewer-text h5,.review-room .viewer-text h6 { font-size: 16px; color: #d8dfe3; }
.review-room .viewer-text blockquote { padding: 8px 0 8px 22px; border-left: 1px solid #adb6be77; color: #e0e4e7; font-size: 1.12em; line-height: 1.7; }
.review-room .viewer-text hr { border: 0; border-top: 1px solid #ffffff12; margin: 30px 0; }
.review-room.is-visual .review-heading { width: 100%; padding: 20px 0 18px; }
.review-room.is-visual .review-heading h1 { font-size: clamp(23px,2vw,31px); margin-top: 8px; }
.review-room.is-visual .viewer-stage { border-radius: 14px; background: #050606; }
.review-room .viewer-details { border-color: #ffffff10; margin-top: 8px; max-height: 24vh; flex-shrink: 0; }
.review-room .viewer-details summary { font-size: 10px; color: #7e898e; padding: 10px 1px; }
.review-room .viewer-details .viewer-technical { padding: 0 12px 14px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff13; padding: 20px 0 10px; }
.review-upnext { min-width: 0; display: grid; gap: 5px; }
.review-upnext .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
#review-next-title { color: #9da5aa; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 28vw; }
.review-footer .viewer-actions { gap: 7px; }
.review-footer .primary-button { min-height: 40px; padding: 10px 19px; color: #e6edf2; border-color: #abbec344; background: linear-gradient(135deg,#1a2024,#0d0f10); }
.review-voice-hint { text-align: right; font-size: 9px; color: #727b80; margin: 5px 0 0; line-height: 1.5; }
.review-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.review-empty h1 { font-size: clamp(34px,4vw,60px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; margin: 23px 0; color: #dce0e3; }
.review-empty h2 { font-size: 28px; font-weight: 400; letter-spacing: -.8px; }
.review-empty p { font-size: 13px; line-height: 1.9; color: #838c92; }
.review-empty .working-orbit { width: 40px; height: 40px; }
.review-empty-line { width: 80px; height: 1px; margin: 34px auto; background: linear-gradient(90deg,transparent,#94a3ae88,transparent); }
.review-index { width: min(640px,calc(100vw - 28px)); max-height: 80dvh; padding: 26px; border: 1px solid #ffffff20; border-radius: 22px; background: #0a0b0c; }
.review-index::backdrop { background: #000a; backdrop-filter: blur(8px); }
.review-index .dialog-top h2 { font-size: 26px; font-weight: 400; letter-spacing: -.8px; margin-top: 10px; }
.review-index .board-tabs { padding: 12px 0; gap: 4px; overflow-x: auto; border-bottom: 1px solid #ffffff12; }
.review-index .board-tabs button { padding: 7px 12px; font-size: 11px; }
.review-index .viewer-filmstrip { display: flex; flex-direction: column; gap: 3px; max-height: 51dvh; overflow-y: auto; padding: 12px 0 0; }
.review-index-item { display: flex; align-items: center; gap: 17px; width: 100%; padding: 14px 12px; border: 1px solid transparent; border-radius: 10px; text-align: left; }
.review-index-item:hover { background: #ffffff05; }
.review-index-item.is-active { border-color: #b8c7d533; background: #ffffff05; }
.review-index-number { font-size: 10px; color: #707a81; font-variant-numeric: tabular-nums; }
.review-index-copy { flex: 1; min-width: 0; display: grid; gap: 6px; }
.review-index-copy strong { font-size: 13px; font-weight: 400; color: #d3d9dd; }
.review-index-copy small { font-size: 10px; color: #879198; }
.review-index-item > .icon { width: 14px; height: 14px; color: #9aa7af; }
.review-index-empty { color: #949da3; font-size: 13px; padding: 20px 8px; }
@media (max-width:1190px) {
 .review-footer { flex-wrap: wrap; gap: 12px; }
 .review-footer .viewer-actions { margin-left: auto; }
 .review-upnext { width: 100%; }
 #review-next-title { max-width: 100%; }
 .review-heading { padding-left: 10px; padding-right: 10px; }
 .review-room .viewer-document { padding-left: 10px; padding-right: 10px; }
}
@media (max-width:600px) {
 .review-room .viewer-top { padding-bottom: 6px; }
 .review-heading { padding-top: 17px; padding-bottom: 12px; }
 .review-heading h1 { font-size: 27px; }
 .review-room .viewer-text { font-size: 14px; }
 .review-footer { padding-top: 12px; gap: 10px; }
 .review-footer .viewer-actions { width: 100%; justify-content: flex-end; }
 .review-footer .quiet-button,.review-footer .primary-button { font-size: 11px; padding: 9px 12px; }
 .review-voice-hint { font-size: 8px; }
 .review-index { padding: 18px; }
}
@media (prefers-reduced-motion:reduce) { .review-progress > span { transition: none; } .review-room .viewer-document { scroll-behavior: auto; } }
.markdown-table { overflow-x: auto; margin: 24px 0; border: 1px solid #ffffff14; border-radius: 10px; }
.markdown-table table { border-collapse: collapse; width: 100%; font-size: .86em; line-height: 1.65; }
.markdown-table th,.markdown-table td { padding: 12px 16px; border-bottom: 1px solid #ffffff0e; min-width: 100px; vertical-align: top; }
.markdown-table th { font-weight: 500; color: #d8dfe3; background: #ffffff04; }
.markdown-table tr:last-child td { border-bottom: 0; }
/* File mentions keep real artifact IDs in context; previews remain lightweight. */
.mention-picker { position: absolute; bottom: calc(100% + 12px); left: 0; right: 0; z-index: 40; padding: 8px; background: #101315; border: 1px solid #9dafbc3b; border-radius: 15px; box-shadow: 0 20px 60px #000b; }
.mention-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px 12px; font-size: 11px; color: #c0ccd3; }
.mention-picker-heading > span { color: #7e8b93; font-size: 8px; }
#mention-results { max-height: min(310px,38dvh); overflow-y: auto; scrollbar-width: thin; }
.mention-option { width: 100%; padding: 9px; display: flex; align-items: center; gap: 11px; text-align: left; border-radius: 9px; border: 1px solid transparent; }
.mention-option[aria-selected='true'],.mention-option:hover { background: #ffffff07; border-color: #abc6d528; }
.mention-option > .icon { width: 30px; height: 30px; padding: 6px; color: #b3c3ce; background: #ffffff04; border-radius: 7px; flex-shrink: 0; }
.mention-thumbnail { width: 36px; height: 36px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.mention-copy { min-width: 0; display: grid; gap: 4px; }
.mention-copy strong { color: #dde4e8; font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-copy small { color: #8b9ba5; font-size: 10px; }
.mention-empty { font-size: 12px; color: #98a6af; padding: 16px 9px; line-height: 1.6; }
.context-chip { border-radius: 8px; padding: 5px 7px; max-width: 240px; }
.context-thumbnail { height: 29px; width: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.context-label { font-size: 7px; }
@media(max-width:600px) { .mention-picker-heading > span { display: none; } .context-chip { max-width: 210px; } }

/* The same preview has two lenses: one delivery, or the map of its scene. */
.chat-controls { display: none; }
body.preview-hidden .chat-controls { display: flex; }
.preview-view-controls { gap: 4px; }
.preview-view-controls .icon-button[aria-pressed="true"] { background: #e5e9eb; color: #080a0b; }
#back-to-blocks { font-size: 11px; margin-right: 10px; color: #b6bfc4; }
#back-to-blocks .icon { width: 14px; height: 14px; }
.scene-library { min-height: 0; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 20px 8px 60px 0; scrollbar-width: thin; scrollbar-color: #ffffff23 transparent; }
.library-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 16px 0 28px; }
.library-header h1 { font-size: clamp(25px,2.6vw,42px); font-weight: 400; letter-spacing: -1.4px; line-height: 1.15; margin: 14px 0 0; }
.library-search { color: #d7dce0; background: #08090a; border: 1px solid #ffffff15; border-radius: 30px; padding: 12px 17px; font: inherit; font-size: 12px; max-width: 225px; min-width: 0; }
.library-search:focus-visible { outline: 1px solid #a7bdcd; }
.library-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 23px; border-bottom: 1px solid #ffffff13; }
.library-tabs button { font-size: 12px; padding: 10px 16px; color: #8c969d; border-radius: 25px; border: 1px solid transparent; }
.library-tabs button.is-active { background: #ffffff08; border-color: #ffffff24; color: #e1e6e9; }
.library-sequence-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 25px 0 20px; font-size: 12px; color: #c4ccd1; }
.library-sequence-heading small { font-size: 11px; color: #6f7c85; }
.library-scene-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 22px; }
.library-scene { text-align: left; border: 1px solid #ffffff16; border-radius: 20px; overflow: hidden; background: linear-gradient(155deg,#101416,#050607 72%); transition: border-color .18s ease; min-width: 0; }
.library-scene:hover,.library-asset:hover { border-color: #a6c1d154; }
.library-scene:focus-visible,.library-asset:focus-visible { outline: 2px solid #bacbd6; outline-offset: 3px; }
.library-scene-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 90%,#24313b44,transparent 65%),#080a0c; }
.library-scene-cover:after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%,#0008); pointer-events: none; }
.library-scene-cover img { width: 100%; height: 100%; object-fit: cover; }
.library-scene-watermark { position: absolute; right: 25px; bottom: -15px; font-size: 120px; font-weight: 400; letter-spacing: -7px; color: #ffffff08; }
.library-scene-number,.library-scene-time { position: absolute; z-index: 1; font-size: 10px; padding: 7px 10px; border: 1px solid #ffffff20; border-radius: 20px; background: #080a0bdc; color: #d8dfe3; }
.library-scene-number { top: 14px; left: 14px; letter-spacing: 1px; }
.library-scene-time { bottom: 14px; right: 14px; font-variant-numeric: tabular-nums; }
.library-scene-copy { padding: 20px; }
.library-scene-copy h2 { font-size: 21px; font-weight: 400; letter-spacing: -.6px; line-height: 1.3; color: #d7dfe3; margin: 0; }
.library-scene-copy p { font-size: 11px; color: #788893; margin: 10px 0 22px; }
.library-scene-status { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; line-height: 1.5; padding-top: 14px; border-top: 1px solid #ffffff0d; color: #9ba8b1; }
.library-scene-status > span:last-child { white-space: nowrap; color: #b5c0c7; }
.library-scene-status .is-running:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #c5deeb; display: inline-block; margin-right: 6px; }
.library-scene-nav { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
.library-back { font-size: 12px; color: #9aa7b0; padding: 8px 0; }
.library-scene-hero { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 15px 0 38px; }
.library-scene-hero h1 { font-size: clamp(26px,2.8vw,42px); font-weight: 400; letter-spacing: -1.2px; line-height: 1.2; margin: 15px 0 10px; }
.library-scene-hero p { color: #7f909b; font-size: 12px; line-height: 1.7; }
.library-scene-hero > button { border: 1px solid #ffffff21; border-radius: 24px; padding: 11px 15px; font-size: 11px; flex-shrink: 0; }
.library-section { margin: 30px 0 36px; }
.library-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.library-section-heading h2 { font-size: 19px; letter-spacing: -.5px; font-weight: 400; margin: 0; color: #d2dce2; }
.library-section-heading > span { font-size: 10px; border: 1px solid #ffffff1a; border-radius: 5px; padding: 3px 6px; color: #85939d; }
.library-asset-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,215px),1fr)); gap: 15px; }
.library-asset { text-align: left; overflow: hidden; border: 1px solid #ffffff14; border-radius: 15px; background: #080a0b; min-width: 0; }
.library-asset-cover { aspect-ratio: 16/10; background: #0c1013; position: relative; overflow: hidden; }
.library-asset-cover img { width: 100%; height: 100%; object-fit: cover; }
.library-asset-cover.is-document { padding: 25px 18px 35px; background: linear-gradient(135deg,#12171a,#080a0b); }
.library-asset-cover p { margin-top: 14px; line-height: 1.7; font-size: 11px; color: #8c9ba5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.library-symbol { font-size: 24px; color: #a2b1bb; }
.library-kind { position: absolute; bottom: 10px; left: 12px; background: #080a0cdc; border: 1px solid #ffffff15; border-radius: 12px; padding: 4px 8px; font-size: 9px; color: #c9d3da; }
.library-asset-copy { padding: 15px 15px 17px; display: grid; gap: 7px; }
.library-asset-copy strong { font-weight: 400; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.library-asset-copy small { font-size: 10px; color: #82939e; }
.library-prompt { border: 1px solid #ffffff13; border-radius: 12px; margin: 8px 0; }
.library-prompt summary { padding: 17px; cursor: pointer; font-size: 12px; color: #aebdc7; }
.library-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 5px 20px 23px; font: inherit; font-size: 12px; color: #95a6b2; line-height: 1.85; }
.library-empty { padding: 65px 15px; text-align: center; }
.library-empty h2 { font-size: 23px; font-weight: 400; margin-bottom: 14px; }
.library-empty p,.library-section-empty,.library-association-note { font-size: 12px; line-height: 1.8; color: #82949f; }
.library-section-empty { border: 1px dashed #ffffff15; border-radius: 12px; padding: 25px; }
@media(max-width:1200px) { .library-header { align-items: flex-start; flex-direction: column; gap: 18px; }.library-search { max-width: none; width: 100%; }.library-scene-hero { align-items: flex-start; flex-direction: column; } }
@media(max-width:600px) { .scene-library { padding-right: 1px; }.library-header h1 { font-size: 28px; }.library-tabs { gap: 1px; }.library-tabs button { padding: 8px 11px; font-size: 11px; }.library-asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.library-asset-copy { padding: 12px; }.library-asset-copy strong { font-size: 12px; }.library-sequence-heading small { display: none; }#back-to-blocks { font-size: 0; gap: 0; margin: 0; }.library-scene-hero h1 { font-size: 28px; } }
@media(prefers-reduced-motion:reduce) { .library-scene { transition: none; } }

.tool-model{width:100%;max-width:100%;margin:8px 0;padding:9px 10px;border:1px solid #34383b;border-radius:9px;background:#101214;color:#d8dee2;font:inherit;font-size:12px;color-scheme:dark;}

/* The fixed global menu remains visible in chat; mobile workspace tabs sit above it. */
@media (max-width:600px) {
  .film-page .studio-shell { height:calc(100dvh - 76px - env(safe-area-inset-bottom,0px)); grid-template-rows:minmax(0,1fr) 54px; }
  .film-page .mobile-workspace-nav { padding:7px 64px 7px 16px; }
  .film-page .mobile-workspace-nav button { height:36px; }
  body.film-page:has(.studio-shell) .voice-launcher { left:auto; right:15px; bottom:calc(89px + env(safe-area-inset-bottom,0px)); }
  body.film-page:has(.studio-shell) .voice-minibar { bottom:146px; }
}

.film-page .chat-controls { display:flex; }
body:not(.preview-hidden) #restore-preview { display:none; }

/* A visible handoff between saved creative deliveries. */
.vf-next-step{font-family:'Aeonik Studio','Aeonik',sans-serif;border-top:1px solid #ffffff1c;padding:16px 0 4px;color:#eeeef0}.vf-next-step[hidden]{display:none}.vf-next-description{margin:0 0 12px;color:#aeb6bd;font-size:12px;line-height:1.5}.vf-next-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.vf-next-actions button{font:inherit;font-size:12px;line-height:1.4;border-radius:12px;padding:11px 15px;cursor:pointer;max-width:100%;white-space:normal}.vf-next-primary{color:#121518;background:#dce3e8;border:1px solid #ffffff40}.vf-next-adjust{color:#b8c4ce;background:transparent;border:1px solid #ffffff24}.vf-next-actions button:focus-visible{outline:2px solid #c0d3de;outline-offset:3px}.vf-next-actions button:disabled{opacity:.5;cursor:wait}.chat-next-step{margin:18px 0 10px}.ap-next-step{flex:0 0 auto;width:min(720px,100%);align-self:center;text-align:center;margin:4px 0 10px;padding-top:12px}.ap-next-step .vf-next-actions{justify-content:center}.ap-next-step .vf-next-description{margin-bottom:8px}@media(max-width:600px){.vf-next-actions{gap:8px}.chat-next-step .vf-next-primary{flex-basis:100%}.ap-next-step{margin-bottom:4px}.ap-next-step .vf-next-actions button{font-size:11px;padding:9px 12px}}

/* Film uses the same project rail as Code; only the workspace grid differs. */
body.film-sidebar-page{--rail-width:calc(var(--code-sidebar-width,248px) + 20px);--chat-width:clamp(300px,25vw,384px)}
.film-sidebar-page .studio-shell{transition:grid-template-columns .22s ease}
.film-sidebar-page .studio-return-dock,.film-sidebar-page #new-project{display:none!important}
.film-sidebar-page .code-sidebar .vf-account-trigger{position:static!important;margin:0;width:36px;height:36px;flex:0 0 36px}
.film-sidebar-page .chat-controls{min-height:12px}
.film-sidebar-page .code-topbar{display:none}
.film-sidebar-page .code-sidebar .vf-navigation{z-index:auto}
.film-sidebar-dialog{width:min(420px,calc(100vw - 32px));padding:28px}
.film-sidebar-dialog h2{font-size:28px;font-weight:400;margin:0 0 12px}
.film-sidebar-dialog p{font-size:13px;color:#aeb6bd;line-height:1.5}
.film-sidebar-dialog label{display:block;color:#aeb6bd;font-size:12px;margin:18px 0 8px}
.film-sidebar-name{width:100%;box-sizing:border-box;background:#0006;border:1px solid #ffffff24;border-radius:10px;padding:12px;color:#eeeef0;font:inherit}
.film-sidebar-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}
@media(min-width:601px) and (max-width:900px){.film-sidebar-page .studio-shell{grid-template-columns:var(--rail-width) minmax(0,1fr)}}
@media(max-width:600px){body.film-sidebar-page{--rail-width:0px}.film-sidebar-page .code-topbar{display:block;position:fixed;top:20px;left:22px;z-index:40}.film-sidebar-page .code-topbar button{width:30px;height:30px}.film-sidebar-page .assistant-panel{padding-top:35px}.film-sidebar-page .studio-shell{height:100dvh;grid-template-rows:minmax(0,1fr) calc(54px + env(safe-area-inset-bottom));padding-bottom:8px}.film-sidebar-page .code-sidebar .vf-navigation{display:block!important}.film-sidebar-page .code-sidebar .vf-nav-items{flex-direction:row!important}.film-sidebar-page .vf-navigation:not(.code-sidebar .vf-navigation){display:none!important}.film-sidebar-page .voice-launcher{bottom:70px!important}}
@media(prefers-reduced-motion:reduce){.film-sidebar-page .studio-shell{transition:none}}
