.film-shell[hidden] { display: none !important; }
.film-shell.film-clean-shell {
  position: fixed; inset: 0; z-index: 30; display: block; overflow-y: auto;
  overscroll-behavior-y: none; overflow-anchor: none;
  background: var(--bg); color: var(--ink);
}
.film-shell.film-clean-shell:has(.film-asset-editor) { z-index: 100; }
body:has(.film-asset-editor) .product-nav-reveal { display: none !important; }
.film-history-main { max-width: 1400px; margin: auto; padding: 32px; }
.film-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.film-history-heading h1 { font-size: 24px; margin: 0 0 8px; }
.film-history-heading h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.film-history-heading p { margin: 0; color: var(--ink-soft); }
.film-clean-shell button, .film-clean-shell input {
  font: inherit; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--panel); color: var(--ink);
}
.film-clean-shell button { cursor: pointer; }
.film-clean-shell button:hover:not(:disabled) { border-color: var(--primary); }
.film-clean-shell button:disabled { color: var(--ink-soft); cursor: not-allowed; }
.film-clean-shell :is(button, input, a, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.film-clean-shell button > span { display: inline-flex; align-items: center; justify-content: center; }
.film-action-cost { display: block; margin-top: 3px; color: var(--primary); font-size: 11px; font-weight: 700; line-height: 1.35; }
.film-retired-notice { padding: 20px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.film-retired-notice h2 { margin: 0 0 8px; font-size: 18px; }
.film-retired-notice p { max-width: 70ch; line-height: 1.7; margin: 8px 0 16px; }
.film-retired-notice > div { display: flex; flex-wrap: wrap; gap: 12px; }
.film-history-search { display: grid; gap: 8px; margin-bottom: 20px; max-width: 360px; }
.film-history-search input { min-width: 0; width: 100%; box-sizing: border-box; }
.film-history-search input::placeholder { color: var(--ink-soft); }
.film-clean-shell .film-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.film-history-grid article { min-width: 0; }
.film-history-grid article > button:where(:not(.film-project-delete)) { padding: 10px; width: 100%; text-align: left; display: grid; gap: 10px; }
.film-project-card { position: relative; }
.film-clean-shell .film-project-delete { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--ink-soft); }
.film-clean-shell .film-project-delete:hover:not(:disabled) { color: var(--ink); }
.film-project-delete svg { pointer-events: none; }
.film-history-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; border-radius: 6px; }
.film-history-cover img { width: 100%; height: 100%; object-fit: cover; }
.film-history-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-history-grid small { color: var(--ink-soft); }
.film-project-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.film-trash-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.film-trash-row > div:first-child { flex: 1 1 220px; min-width: 0; }
.film-trash-row h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.film-trash-row p { margin: 0; color: var(--ink-soft); }
.film-clean-shell .film-danger { color: #ffb6af; }
.film-history-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.film-history-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.film-history-media figure { margin: 0; min-width: 0; }
.film-history-media :is(img, video) { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--panel); }
.film-history-media audio { width: 100%; }
.film-history-media figcaption { margin-top: 8px; line-height: 1.7; overflow-wrap: anywhere; }
.film-clean-shell a { color: var(--primary); }
.film-history-source { padding: 16px 0; border-block: 1px solid var(--line); }
.film-history-source summary { cursor: pointer; padding: 8px 0; }
.film-history-source pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; max-height: 480px; overflow: auto; }
.home-film-entry { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; margin-top: 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }
.home-film-entry svg { width: 24px; height: 24px; }
.home-film-entry-copy { display: grid; gap: 6px; flex: 1; }
.home-film-entry-copy small, .home-film-entry-meta em { color: var(--ink-soft); font-style: normal; }
.home-film-entry-meta { display: grid; gap: 6px; }
.home-film-entry-meta b { display: flex; gap: 8px; align-items: center; }
.film-basic-top, .film-basic-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-block: 16px; }
.film-basic-form { border: 0; padding: 0; margin: 0; min-width: 0; }
.film-basic-form label, .film-basic-top label { display: grid; gap: 8px; margin-block: 12px; }
.film-clean-shell :is(textarea, select) { font: inherit; width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--ink); }
.film-clean-shell textarea { resize: vertical; line-height: 1.7; min-height: 120px; }
.film-clean-shell textarea[data-basic-field="source"] { min-height: 320px; }
.film-clean-shell :is(select, textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.film-basic-form input, .film-basic-top input { width: 100%; min-width: 0; box-sizing: border-box; }
.film-basic-stages, .film-basic-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px; }
.film-basic-stages { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.film-basic-stages [aria-current="step"] { background: var(--primary); color: var(--bg); }
.film-basic-status { min-height: 24px; line-height: 1.7; overflow-wrap: anywhere; }
.film-basic-settings { padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 24px; }
.film-basic-settings summary { cursor: pointer; padding-block: 8px; }
.film-basic-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.film-basic-item :is(img, video) { width: 100%; max-height: 440px; object-fit: contain; background: var(--panel); }
.film-basic-item > div { min-width: 0; }
.film-basic-item h3 { margin-top: 0; }
.film-basic-references { border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
.film-basic-references label { display: flex; align-items: center; gap: 8px; }
.film-basic-references input { width: 20px; min-height: 20px; }
.film-basic-upload input { max-width: 100%; }
.film-basic-help, .film-basic-settings p { color: var(--ink-soft); line-height: 1.7; max-width: 75ch; }
.film-basic-delivery { display: block; width: 100%; max-height: 600px; margin-block: 24px; background: var(--panel); }
@media (max-width: 600px) {
  .film-history-main { padding: 20px 16px; }
  .film-history-main > .film-history-heading > div { padding-left: 48px; }
  .film-clean-shell .film-history-grid { grid-template-columns: 1fr; }
  .film-history-media { grid-template-columns: 1fr; }
  .home-film-entry-meta { display: none; }
  .film-basic-item, .film-basic-top, .film-basic-models { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the established project library and four-step production workspace. */
.film-agent-panel { margin: 0 18px 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.film-agent-panel > header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.film-agent-panel h3 { margin: 0; font-size: 18px; }
.film-agent-panel :is(small, [data-film-agent-connection]) { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.film-agent-panel [data-film-agent-progress] { overflow-wrap: anywhere; font-size: 13px; }
.film-agent-panel > label { display: grid; gap: 8px; margin-block: 16px; font-size: 13px; }
.film-agent-panel .film-basic-actions { align-items: end; }
.film-agent-panel .film-basic-actions label { display: grid; gap: 6px; font-size: 12px; }
.film-agent-panel input[type="number"] { width: 140px; }
.film-agent-panel [data-film-agent-send] { background: var(--primary); color: var(--bg); }
.film-agent-log { max-height: 500px; overflow-y: auto; }
.film-agent-log article { padding-block: 16px; border-bottom: 1px solid var(--line); }
.film-agent-log strong { font-size: 13px; color: var(--primary); }
.film-agent-log pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.8; max-width: 85ch; margin-bottom: 0; }
.film-agent-panel details { margin-block: 12px; font-size: 12px; color: var(--ink-soft); }
.film-agent-panel summary { cursor: pointer; }
.film-agent-panel li { overflow-wrap: anywhere; line-height: 1.8; }
.film-clean-shell .film-history-main { max-width: none; padding: 28px 48px; }
.film-history-heading .film-history-search { margin: 0; width: 220px; font-size: 12px; }
.film-clean-shell .film-history-grid { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 16px; }
.film-history-grid article > button:where(:not(.film-project-delete)) { height: 100%; padding: 8px 8px 18px; gap: 10px; }
.film-history-grid article > [data-film-project] > :is(strong, small, time) { margin-inline: 6px; }
.film-history-grid time { color: var(--ink-soft); font-size: 12px; }
.film-history-grid strong { font-size: 14px; }
.film-history-cover { position: relative; aspect-ratio: 1; font-size: 14px; }
.film-project-stage { position: absolute; top: 10px; left: 8px; padding: 5px 8px; border-radius: 3px; background: var(--panel); color: var(--ink); font-size: 12px; z-index: 1; }
.film-project-card .film-project-stage { max-width: calc(100% - 76px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-new-project { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-height: 310px; }
.film-new-project .film-new-icon { color: var(--primary); font-size: 28px; line-height: 1; }
.film-new-project h2 { margin: 10px 0 6px; font-size: 20px; }
.film-new-project p { color: var(--ink-soft); margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
.film-clean-shell .film-new-project > button { height: auto; padding: 10px; text-align: center; }
.film-clean-shell .film-primary-button { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.film-history-empty { color: var(--ink-soft); margin-block: 28px; }
.film-history-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; color: var(--ink-soft); font-size: 12px; }
.film-history-footer button { font-size: 12px; }
.film-clean-shell .film-workspace-main { padding: 0; }
.film-workspace-main > .film-history-feedback:empty { display: none; }
.film-workspace { background: var(--canvas); color: var(--ink); min-height: 100dvh; }
.film-workspace-header { display: flex; align-items: center; gap: 16px; padding: 12px 18px; min-height: 64px; box-sizing: border-box; border-bottom: 1px solid var(--line); }
.film-workspace-header .film-workspace-close { border: 0; background: none; color: var(--ink-soft); font-size: 24px; padding: 4px; width: 36px; flex-shrink: 0; }
.film-workspace-steps { display: flex; flex: 1 1 auto; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.film-workspace-steps button { display: flex; gap: 7px; align-items: center; padding: 4px 6px; border: 0; background: transparent; font-size: 12px; white-space: nowrap; }
.film-workspace-steps button span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--panel); color: var(--ink-soft); }
.film-workspace-steps [aria-current="step"], .film-workspace-steps [aria-current="step"] span { color: var(--primary); }
.film-workspace-navigation { display: flex; gap: 12px; margin-left: auto; align-items: center; }
.film-workspace-navigation select { width: 190px; font-size: 12px; }
.film-workspace-navigation button[data-basic-action="next"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); padding-inline: 24px; white-space: nowrap; }
.film-workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 18px; }
.film-workspace-editor { display: flex; flex-direction: column; min-height: calc(100dvh - 160px); }
.film-workspace-editor > label:first-child { margin-top: 0; }
.film-workspace .film-basic-form label { font-size: 12px; }
.film-workspace :is(input, textarea, select) { font-size: 13px; }
.film-workspace :is(input, textarea)::placeholder { color: var(--ink-soft); opacity: 1; }
.film-workspace .film-source-label { margin: 4px 0 12px; }
.film-script-editor { display: flex; flex: 1; flex-direction: column; min-height: max(430px, calc(100dvh - 240px)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px 7px 0 0; }
.film-script-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 18px; border-bottom: 2px solid var(--primary); }
.film-script-tools > span { color: var(--ink-soft); font-size: 12px; }
.film-script-tools .film-import-button { position: relative; display: inline-flex; align-items: center; margin: 0; min-height: 34px; border: 1px solid #69767b; border-radius: 20px; padding: 0 14px; cursor: pointer; overflow: hidden; }
.film-import-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.film-import-button:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.film-workspace .film-script-editor textarea { flex: 1; width: 100%; min-height: 360px; padding: 20px 18px; border: 0; border-bottom: 2px solid var(--primary); border-radius: 0; resize: vertical; background: #202324; font-size: 14px; line-height: 1.8; }
.film-script-editor textarea:focus-visible { outline: 1px solid var(--primary); outline-offset: -3px; }
.film-video-production-settings { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 18px 28px; align-items: end; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.film-video-production-settings h2 { margin: 0 0 8px; }
.film-video-production-settings p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.film-video-production-controls { display: flex; align-items: end; gap: 18px; }
.film-video-production-controls > label { min-width: 240px; }
.film-video-production-controls .film-video-ratio { min-width: 360px; margin: 0; }
.film-video-production-settings > .film-basic-actions { grid-column: 1 / -1; margin: 0; }
.film-workspace-sidebar { min-width: 0; }
.film-choice-group { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.film-choice-group legend { font-size: 12px; margin-bottom: 12px; padding: 0; }
.film-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.film-choice-grid button { font-size: 12px; border-color: transparent; padding: 8px; }
.film-style-choices button { min-height: 60px; }
.film-ratio-choices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: var(--panel); padding: 4px; border-radius: 6px; }
.film-ratio-choices button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 64px; padding: 6px 1px; border-color: transparent; border-radius: 4px; font-size: 11px; }
.film-ratio-shape { display: block; border: 1px solid currentColor; box-sizing: border-box; }
.film-ratio-auto { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-size: 10px; font-weight: 800; }
.film-workspace button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--ink); }
.film-workspace-sidebar .film-basic-settings { margin-block: 24px 12px; font-size: 12px; }
.film-workspace-sidebar .film-basic-models { display: block; }
.film-workspace-sidebar .film-basic-models label { margin-top: 12px; }
.film-workspace-utilities { display: flex; flex-wrap: wrap; gap: 6px; }
.film-workspace-utilities button { font-size: 12px; padding: 8px; }
.film-workspace-status { padding: 0 18px 14px; color: var(--ink-soft); font-size: 12px; }
.film-workspace-status p { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
[data-film-cloud-status] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
[data-film-cloud-status] p { flex: 1 1 240px; }
[data-film-cloud-status] button { min-height: 40px; }
.film-live-progress { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.film-live-progress-text { display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 0 18px; font-size: 12px; color: var(--ink-soft); }
.film-live-progress-text [data-film-live-label] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-live-progress-text [data-film-live-count] { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.film-live-progress-track { height: 3px; overflow: hidden; background: var(--line); }
.film-live-progress-track > span { display: block; height: 100%; width: 0; background: var(--primary); }
.film-live-progress:is([data-state="running"], [data-state="queued"]) .film-live-progress-track > span { width: 30%; animation: film-progress-slide 1.6s linear infinite; }
.film-live-progress[data-state="completed"] .film-live-progress-track > span { width: 100%; }
.film-live-progress:is([data-state="error"], [data-state="failed"], [data-state="paused"], [data-state="interrupted"]) { color: #efbf86; }
.film-live-progress:is([data-state="error"], [data-state="failed"], [data-state="paused"], [data-state="interrupted"]) [data-film-live-label] { color: #efbf86; }
.film-live-progress:is([data-state="error"], [data-state="failed"], [data-state="paused"], [data-state="interrupted"]) .film-live-progress-track > span { width: 100%; background: #a77941; }
@keyframes film-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(334%); } }
@media (prefers-reduced-motion: reduce) { .film-live-progress .film-live-progress-track > span { animation: none !important; } .film-asset-card { transition: none !important; } }
.film-next-dialog { box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #424e52; border-radius: 12px; background: #222526; color: #f0f4f4; }
.film-next-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.film-next-dialog h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.film-next-dialog p { margin: 0 0 24px; color: #b3c2c7; font-size: 14px; line-height: 1.7; }
.film-next-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.film-next-dialog button { min-height: 44px; padding: 9px 16px; border: 1px solid #424e52; border-radius: 7px; background: #222526; color: #f0f4f4; font: inherit; cursor: pointer; }
.film-next-dialog .film-next-confirm { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.film-next-dialog button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.film-content-dialog { width: min(640px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain; }
.film-content-dialog fieldset { border: 1px solid #424e52; padding: 16px; margin: 16px 0; min-width: 0; }
.film-content-dialog legend, .film-content-dialog h3 { font-size: 15px; }
.film-content-dialog li, .film-content-dialog label { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.film-content-dialog li { margin-bottom: 12px; }
.film-content-dialog label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.film-content-dialog input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.film-content-dialog .film-content-ack { margin: 16px 0; }
.film-content-confirmation { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 16px 0; padding: 16px; background: var(--primary-soft); border-radius: 8px; }
@media (max-width: 600px) { .film-live-progress-text { flex-wrap: wrap; gap: 2px 8px; padding: 4px 8px; } .film-live-progress-text [data-film-live-label] { flex-basis: 100%; } }
.film-episode-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.film-episode-toolbar label { flex: 1; min-width: 140px; }
.film-with-episodes { grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 22px; }
.film-episode-sidebar { min-width: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.film-episode-sidebar h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin: 8px 0 18px; }
.film-episode-sidebar small, .film-episode-sidebar p { color: var(--ink-soft); font-size: 11px; font-weight: 400; line-height: 1.7; }
.film-episode-sidebar nav { display: grid; gap: 8px; max-height: calc(100dvh - 160px); overflow-y: auto; }
.film-episode-sidebar nav button { display: flex; gap: 10px; align-items: baseline; text-align: left; min-height: 58px; padding: 10px 8px; border-color: transparent; background: transparent; font-size: 13px; }
.film-episode-sidebar nav button > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.film-episode-sidebar nav small { display: block; margin-top: 4px; }
.film-episode-sidebar nav [aria-current="true"] { border-color: var(--primary); background: var(--primary-soft); }
.film-episode-toolbar h2 { flex: 1; font-size: 18px; margin: 6px 0 12px; }
.film-episode-toolbar h2 small { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 8px; white-space: nowrap; }
.film-episode-toolbar .film-basic-actions { margin: 0 0 12px; }
.film-episode-edit-actions { margin-top: 12px; }
.film-storyboard-layout { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 18px; }
.film-storyboard-layout > .film-workspace-editor { min-width: 0; }
.film-analysis-view { min-width: 0; }
.film-analysis-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.film-analysis-heading h2 { font-size: 22px; margin: 2px 0 10px; }
.film-analysis-heading p, .film-analysis-note { font-size: 13px; color: var(--ink-soft); line-height: 1.8; margin: 0; }
.film-analysis-heading button { flex-shrink: 0; }
.film-deliverable-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.film-analysis-note { margin-top: 18px; }
.film-analysis-index { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 18px 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.film-analysis-index a { color: var(--primary); font-size: 13px; line-height: 1.8; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.film-analysis-index a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.film-analysis-sections > section { padding-block: 24px 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; outline-offset: 4px; }
.film-analysis-sections h3 { margin: 0 0 18px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.film-analysis-prose { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.film-analysis-prose :is(p, ul, h4) { max-width: 72ch; }
.film-analysis-prose h4 { font-size: 15px; margin: 22px 0 10px; }
.film-analysis-prose p { margin: 10px 0; }
.film-analysis-prose li + li { margin-top: 6px; }
.film-analysis-prose pre { white-space: pre-wrap; font: inherit; }
.film-analysis-prose figure { margin: 20px 0; }
.film-analysis-prose img { max-width: 100%; height: auto; }
.film-analysis-prose figcaption { color: var(--ink-soft); font-size: 12px; }
.film-analysis-table { overflow-x: auto; }
.film-analysis-table table { border-collapse: collapse; font-size: 13px; }
.film-analysis-table :is(th, td) { border: 1px solid var(--line); padding: 8px 12px; text-align: left; min-width: 80px; }
.film-analysis-empty { padding-block: 48px; }
.film-analysis-empty h3 { font-size: 18px; margin: 0 0 18px; }
.film-analysis-empty p { color: var(--ink-soft); max-width: 60ch; font-size: 14px; line-height: 1.9; }
.film-workspace button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.film-concept-editor { padding-block: 8px 18px; }
.film-concept-editor summary { cursor: pointer; font-size: 14px; }
.film-clip-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.film-clip-tabs button { min-width: 72px; }
.film-clip-tabs [aria-current="step"] { border-color: var(--primary); color: var(--primary); }
.film-asset-workspace { min-width: 0; }
.film-asset-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.film-asset-toolbar h2 { margin: 0 0 8px; font-size: 22px; }
.film-asset-toolbar p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.film-asset-toolbar-actions { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.film-asset-toolbar-actions label { width: min(260px, 100%); margin: 0; }
.film-asset-toolbar-actions .film-asset-batch { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); white-space: nowrap; }
.film-asset-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 10px; font-size: 13px; }
.film-asset-summary span { color: var(--ink-soft); }
.film-asset-tabs { display: flex; gap: 4px; margin-block: 8px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.film-asset-tabs button { display: flex; align-items: center; gap: 8px; min-width: 92px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.film-asset-tabs button[aria-pressed="true"] { border-bottom-color: var(--primary); background: transparent; color: var(--primary); }
.film-asset-tabs span { color: var(--ink-soft); font-size: 11px; }
.film-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.film-asset-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); transition: border-color 160ms ease, transform 160ms ease; }
.film-asset-card[data-approved="true"] { border-color: #4e8478; }
.film-asset-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.film-clean-shell .film-asset-card-open { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; text-align: left; background: transparent; color: inherit; }
.film-asset-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 10px 12px; box-sizing: border-box; }
.film-asset-card-title { display: grid; gap: 4px; min-width: 0; flex: 1; color: inherit; text-align: left; }
.film-asset-card-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.film-asset-card-title small { color: var(--ink-soft); font-size: 11px; }
.film-asset-card-delete { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #5f3737; border-radius: 7px; background: #2a1d1e; color: #ffaaa7; font-size: 12px; }
.film-asset-card-delete:hover { border-color: #d46661; color: #ffd1cf; }
.film-asset-card-delete:disabled { opacity: .45; cursor: not-allowed; }
.film-asset-preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #181a1b; }
.film-asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.film-asset-placeholder { display: grid; justify-items: center; gap: 8px; color: var(--ink-soft); }
.film-asset-placeholder span { font-size: 32px; font-weight: 300; }
.film-asset-badge { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 4px; background: rgb(20 23 23 / 88%); color: var(--ink-soft); font-size: 11px; }
.film-asset-card[data-approved="true"] .film-asset-badge { background: var(--primary-soft); color: var(--primary); }
.film-basic-upload { position: relative; overflow: hidden; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
.film-basic-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.film-basic-upload.is-disabled { color: var(--ink-soft); cursor: not-allowed; opacity: .65; }
.film-asset-empty { padding: 64px 20px; text-align: center; color: var(--ink-soft); }
.film-asset-empty h3 { color: var(--ink); font-size: 18px; }
.film-asset-editor { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 58px minmax(0, 1fr); overflow: hidden; overscroll-behavior: contain; background: #151718; color: var(--ink); }
.film-asset-editor-header { display: flex; align-items: center; gap: 14px; padding: 8px 18px; box-sizing: border-box; border-bottom: 1px solid #282d2f; background: #121415; }
.film-clean-shell .film-asset-editor-close { width: 38px; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 24px; }
.film-asset-editor-header h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.film-asset-editor-header > span { color: var(--ink-soft); font-size: 12px; }
.film-asset-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); min-height: 0; }
.film-asset-editor-canvas { display: grid; grid-template-rows: auto minmax(300px, 1fr) auto; gap: 12px; min-width: 0; min-height: 0; padding: 16px 28px 20px; overflow: auto; background: #17191a; }
.film-asset-editor-canvas > p { margin: 0; color: #778186; font-size: 11px; }
.film-asset-editor-image { position: relative; display: grid; place-items: center; min-height: 380px; overflow: hidden; border-radius: 9px; background: #0e1011; }
.film-asset-editor-image[data-empty="true"] { border: 1px dashed var(--line-strong); }
.film-asset-editor-image > img { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 255px); object-fit: contain; }
.film-asset-editor-progress, .film-asset-editor-approved { position: absolute; top: 12px; padding: 7px 10px; border-radius: 5px; background: rgb(17 20 20 / 88%); font-size: 11px; }
.film-asset-editor-progress { left: 12px; color: var(--ink); }
.film-asset-editor-approved { right: 12px; background: var(--success); color: var(--primary-ink); }
.film-asset-history { min-width: 0; padding-top: 6px; }
.film-asset-history > div:first-child { display: flex; align-items: center; gap: 10px; }
.film-asset-history h3 { margin: 0; font-size: 13px; }
.film-asset-history > div:first-child span { color: var(--ink-soft); font-size: 11px; }
.film-asset-history-list { display: flex; gap: 10px; min-height: 74px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.film-asset-history-list > p { color: var(--ink-soft); font-size: 12px; }
.film-clean-shell .film-asset-history-list button { position: relative; flex: 0 0 72px; width: 72px; height: 72px; min-height: 72px; padding: 0; overflow: hidden; border-color: var(--line); opacity: 1; }
.film-asset-history-list button[aria-current="true"] { border-color: var(--primary); }
.film-asset-history-list img { width: 100%; height: 100%; object-fit: cover; }
.film-asset-history-list button span { position: absolute; inset: auto 0 0; padding: 3px; background: rgb(0 0 0 / 72%); color: white; font-size: 9px; text-align: center; }
.film-asset-editor-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid #282d2f; background: #1c1f20; }
.film-asset-editor-fields { flex: 1; min-height: 0; padding: 20px 22px; overflow-y: auto; }
.film-asset-editor-fields > label { display: grid; gap: 8px; margin-block: 14px; font-size: 12px; }
.film-asset-editor-fields textarea { min-height: 230px; }
.film-asset-editor-eyebrow { margin: 0 0 16px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.film-asset-editor-params { display: grid; gap: 14px; margin: 16px 0; }
.film-asset-editor-params .film-choice-group { margin: 0; }
.film-asset-editor-params .film-video-ratio { padding: 0; border: 0; }
.film-asset-note { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.film-asset-editor-actions { padding: 14px 22px 20px; border-top: 1px solid #303638; }
.film-asset-editor-actions > p { min-height: 20px; margin: 0 0 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.film-asset-editor-actions > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.film-asset-editor-actions > div > :is(button, label) { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; margin: 0; text-align: center; }
.film-asset-editor-actions button:first-child { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.film-shot-sidebar nav button { align-items: flex-start; }
.film-shot-sidebar nav button > span:first-child { flex: 0 0 28px; text-align: center; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.film-shot-sidebar nav [aria-current="true"] > span:first-child { color: var(--primary); }
.film-shot-sidebar-empty { display: grid; gap: 10px; padding: 12px 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.film-shot-sidebar-empty strong { color: var(--ink); font-size: 13px; }
.film-shot-sidebar-empty p { margin: 0; }
.film-shot-sidebar-empty button { justify-content: center; min-height: 38px; padding: 8px 10px; border-color: var(--line-strong); background: var(--panel); }
.film-shot-workbench { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(340px, 420px); gap: 22px; min-height: min(720px, calc(100dvh - 245px)); }
.film-shot-workbench-empty { min-height: min(640px, calc(100dvh - 245px)); }
.film-shot-preview { display: grid; place-items: center; min-width: 0; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #101213; }
.film-shot-preview video { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 270px); object-fit: contain; background: #050606; }
.film-shot-preview[data-empty="true"] > div { display: grid; justify-items: center; gap: 10px; color: var(--ink-soft); text-align: center; }
.film-shot-preview[data-empty="true"] span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); color: var(--ink); }
.film-shot-preview[data-empty="true"] strong { color: var(--ink); font-size: 16px; }
.film-shot-preview[data-empty="true"] p { margin: 0 0 6px; font-size: 12px; }
.film-shot-preview button, .film-shot-actions button:first-child { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.film-shot-inspector { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.film-shot-inspector-scroll { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; }
.film-shot-inspector h3 { margin: 0 0 14px; font-size: 16px; overflow-wrap: anywhere; }
.film-shot-inspector label { display: grid; gap: 8px; margin-block: 12px; font-size: 12px; }
.film-shot-inspector textarea { min-height: 260px; }
.film-shot-prompt-label textarea { min-height: 300px; }
.film-shot-prompt-attachments { display: flex; gap: 8px; min-height: 42px; overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #171a1b; }
.film-shot-prompt-attachments span { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 170px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; }
.film-shot-prompt-attachments img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #0d0f10; }
.film-shot-prompt-attachments small { color: var(--ink-soft); font-weight: 600; }
.film-shot-prompt-attachments em { align-self: center; color: var(--ink-soft); font-size: 11px; font-style: normal; }
.film-shot-reference-panel { margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.film-shot-reference-panel h4 { margin: 0 0 10px; font-size: 13px; }
.film-shot-reference-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.film-shot-reference-strip figure { flex: 0 0 108px; margin: 0; }
.film-shot-reference-strip img { display: block; width: 108px; height: 72px; object-fit: cover; border-radius: 6px; background: #111; }
.film-shot-reference-strip figcaption { display: grid; gap: 2px; margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.film-shot-reference-strip figcaption strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }
.film-shot-reference-strip figcaption small, .film-shot-reference-strip p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.film-shot-reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.film-basic-references .film-shot-reference-choice { position: relative; display: grid; gap: 6px; min-width: 0; margin: 0; cursor: pointer; }
.film-shot-reference-choice input { position: absolute; inset: 8px auto auto 8px; z-index: 1; width: 18px; min-height: 18px; accent-color: var(--primary); }
.film-shot-reference-choice span { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #111; }
.film-shot-reference-choice img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .8; }
.film-shot-reference-choice input:checked + span { border-color: var(--primary); }
.film-shot-reference-choice input:checked + span img { opacity: 1; }
.film-shot-reference-choice i { position: absolute; inset: auto 0 0; padding: 4px 6px; background: rgb(0 0 0 / 70%); color: var(--ink-soft); font-size: 10px; font-style: normal; text-align: right; }
.film-shot-reference-choice input:checked + span i { color: var(--primary); }
.film-shot-reference-choice strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.film-shot-reference-choice small { color: var(--ink-soft); font-size: 10px; }
.film-shot-actions { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.film-shot-actions > p { min-height: 20px; margin: 0 0 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.film-shot-actions > div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.film-shot-actions > div > :is(button, label) { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; margin: 0; text-align: center; }
.film-prompt-actions { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.film-prompt-actions button { min-height: 36px; }
.film-prompt-actions small { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.film-editing-workbench { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(260px, 340px); grid-template-rows: auto auto minmax(440px, 1fr); gap: 18px 22px; min-height: min(760px, calc(100dvh - 210px)); }
.film-editing-header { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.film-editing-header h2 { margin: 0 0 8px; }
.film-editing-header p { max-width: 760px; margin: 0; color: var(--ink-soft); line-height: 1.7; }
.film-editing-header .film-basic-actions { justify-content: flex-end; margin: 0; }
.film-editing-progress { grid-column: 1 / -1; display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(105deg, rgb(20 45 45 / 86%), rgb(20 25 26 / 92%)); }
.film-editing-progress-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 13px; }
.film-editing-progress-header span { color: var(--primary); font-variant-numeric: tabular-nums; font-weight: 800; }
.film-editing-progress-track { position: relative; overflow: hidden; height: 8px; border-radius: 999px; background: #182526; }
.film-editing-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); transition: width .35s ease; }
.film-editing-progress[data-state="running"] .film-editing-progress-track span { min-width: 18%; animation: film-editing-progress-pulse 1.35s ease-in-out infinite alternate; }
.film-editing-progress[data-state="waiting"] { border-color: #6f5830; background: linear-gradient(105deg, rgb(66 49 24 / 62%), rgb(31 29 24 / 92%)); }
.film-editing-progress[data-state="waiting"] .film-editing-progress-track span { background: linear-gradient(90deg, #d49b42, #f2d17c); }
.film-editing-progress[data-state="completed"] { border-color: #277f70; }
.film-editing-progress p, .film-editing-progress small { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
@keyframes film-editing-progress-pulse { from { opacity: .62; } to { opacity: 1; } }
.film-final-preview { position: relative; display: grid; place-items: center; min-width: 0; min-height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0b0d0e; }
.film-final-preview video { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 255px); object-fit: contain; background: #050606; }
.film-final-preview[data-empty="true"] > div { display: grid; justify-items: center; gap: 10px; max-width: 360px; color: var(--ink-soft); text-align: center; }
.film-final-preview[data-empty="true"] span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--panel); color: var(--ink); }
.film-final-preview[data-empty="true"] strong { color: var(--ink); font-size: 18px; }
.film-final-preview[data-empty="true"] p { margin: 0; font-size: 12px; line-height: 1.7; }
.film-final-progress { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 8px; background: rgb(17 20 20 / 88%); color: var(--primary); font-size: 12px; }
.film-final-sidebar { min-width: 0; align-self: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.film-final-sidebar h3 { margin: 0 0 8px; }
.film-final-sidebar p { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.7; }
.film-final-download, .film-final-sidebar > button { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 16px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: var(--primary-ink); text-decoration: none; font-weight: 700; }
.film-final-sidebar > button:disabled { border-color: var(--line-strong); background: #25292a; color: var(--ink-soft); }
.film-final-sidebar dl { display: grid; gap: 10px; margin: 0; }
.film-final-sidebar dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.film-final-sidebar dt { color: var(--ink-soft); }
.film-final-sidebar dd { margin: 0; text-align: right; }
@media (max-width: 1100px) {
  .film-workspace-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .film-with-episodes { grid-template-columns: 160px minmax(0, 1fr); }
  .film-storyboard-layout { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); }
  .film-with-episodes > .film-workspace-sidebar { grid-column: 2; }
  .film-workspace-header { flex-wrap: wrap; gap: 8px; }
  .film-workspace-navigation select { width: 160px; }
  .film-asset-toolbar { align-items: stretch; flex-direction: column; }
  .film-asset-toolbar-actions { justify-content: flex-start; }
  .film-asset-editor-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .film-shot-workbench, .film-editing-workbench { grid-template-columns: minmax(0, 1fr); }
  .film-shot-preview { min-height: 420px; }
}
@media (max-width: 760px) {
  .film-clean-shell .film-history-main:not(.film-workspace-main) { padding: 24px 18px; }
  .film-history-heading .film-history-search { width: 100%; }
  .film-workspace-layout { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .film-storyboard-layout { grid-template-columns: minmax(0, 1fr); }
  .film-with-episodes > .film-workspace-sidebar { grid-column: auto; }
  .film-episode-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .film-episode-sidebar nav { display: flex; overflow-x: auto; max-height: none; }
  .film-episode-sidebar nav button { flex: 0 0 155px; }
  .film-workspace-header { padding: 8px; }
  .film-workspace-header .film-workspace-close { order: 2; align-self: start; }
  .film-workspace-steps { flex: 1 1 calc(100% - 52px); gap: 2px; display: flex; margin-left: 0; order: 1; overscroll-behavior-x: contain; }
  .film-workspace-steps button { padding-inline: 4px; }
  .film-workspace-navigation { width: 100%; padding-inline: 8px; order: 3; }
  .film-workspace-navigation select { flex: 1; min-width: 0; }
  .film-workspace-editor { min-height: 480px; }
  .film-workspace-sidebar { border-top: 1px solid var(--line); padding-top: 24px; }
  .film-ratio-choices { max-width: 380px; }
  .film-history-footer { align-items: start; flex-direction: column; }
  .film-asset-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .film-asset-editor { overflow-y: auto; }
  .film-asset-editor-layout { display: block; overflow: visible; }
  .film-asset-editor-canvas { min-height: auto; padding: 14px; overflow: visible; }
  .film-asset-editor-image { min-height: 320px; }
  .film-asset-editor-image > img { max-height: 70dvh; }
  .film-asset-editor-sidebar { border-left: 0; border-top: 1px solid #282d2f; }
  .film-shot-workbench { gap: 14px; min-height: 0; }
  .film-shot-preview { min-height: 360px; }
  .film-shot-actions > div { grid-template-columns: minmax(0, 1fr); }
  .film-editing-header { align-items: stretch; flex-direction: column; }
  .film-final-preview { min-height: 360px; }
}
/* Skill deliverable workbench: reuse the existing dark/mint studio tokens. */
.film-media-dialog label { display: grid; gap: 8px; }
.film-media-dialog input { min-height: 44px; max-width: 100%; width: 100%; box-sizing: border-box; }
.film-media-dialog .film-next-dialog-actions { flex-wrap: wrap; }
.film-deliverable-view { min-width: 0; }
.film-deliverable-media { margin: 12px 0 24px; }
.film-deliverable-media img, .film-deliverable-media video { display: block; max-width: 100%; max-height: 560px; object-fit: contain; margin-top: 12px; }
.film-deliverable-view h2 { margin: 0 0 8px; }
.film-deliverable-view [data-deliverable-status] { color: var(--ink-soft); line-height: 1.7; }
.film-asset-table-batch { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0 22px; padding: 14px 16px; border: 1px solid #3f625b; border-radius: 9px; background: #1f332f; }
.film-asset-table-batch strong { display: block; margin-bottom: 4px; }
.film-asset-table-batch p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.film-asset-table-batch button { flex: 0 0 auto; }
.film-deliverable-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.film-deliverable-tabs button { display: grid; gap: 6px; text-align: left; max-width: 280px; }
.film-deliverable-tabs button[aria-pressed="true"] { border-color: var(--primary); }
.film-deliverable-tabs small, .film-deliverable-meta { color: var(--ink-soft); font-size: 12px; }
.film-deliverable-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.film-deliverable-block { padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.film-deliverable-block h3 { margin: 0 0 20px; font-size: 18px; }
.film-deliverable-block textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; line-height: 1.7; min-height: 80px; }
.film-deliverable-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.film-deliverable-fields label, .film-deliverable-decisions label { display: grid; gap: 8px; min-width: 0; }
.film-deliverable-table { overflow: auto; max-height: 660px; overscroll-behavior: contain; }
.film-deliverable-table table { border-collapse: collapse; width: max-content; min-width: 100%; }
.film-deliverable-table th { position: sticky; top: 0; z-index: 1; background: var(--panel); text-align: left; }
.film-deliverable-table th, .film-deliverable-table td { border: 1px solid var(--line); padding: 10px; min-width: 180px; max-width: 360px; }
.film-deliverable-table textarea { border: 0; background: transparent; min-width: 180px; }
.film-deliverable-warning { border-left: 3px solid var(--primary); padding: 12px 20px; background: var(--panel); }
.film-stage-gate { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0 22px; padding: 16px 18px; border: 1px solid #3f625b; border-radius: 8px; background: #213631; }
.film-stage-gate strong { display: block; margin-bottom: 5px; }
.film-stage-gate p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.film-stage-gate button { flex-shrink: 0; }
.film-deliverable-actions { margin: 24px 0 12px; flex-wrap: wrap; }
.film-deliverable-actions [data-deliverable-action="confirm"]:not(:disabled) { background: var(--primary); color: var(--bg); }
.film-deliverable-decisions { display: flex; flex-wrap: wrap; gap: 16px; }
.film-deliverable-decisions select { max-width: 100%; min-height: 44px; }
.film-fixed-channel { display: grid; gap: 8px; min-width: 230px; }
.film-fixed-channel span { font-size: 12px; color: var(--ink-soft); }
.film-fixed-channel strong { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); font-size: 13px; }
.film-deliverable-history { margin: 28px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.film-deliverable-history pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 500px; overflow: auto; }
.film-execution-details { margin-top: 20px; }
.film-execution-details > summary { padding: 12px 0; cursor: pointer; }
.film-workspace-steps, .film-clip-tabs { overflow-x: auto; min-width: 0; }
.film-workspace-steps button, .film-clip-tabs button { flex-shrink: 0; }
.film-workspace-editor { overflow-anchor: none; }
@media (max-width: 900px) { .film-deliverable-fields { grid-template-columns: minmax(0, 1fr); } .film-deliverable-decisions { display: grid; } .film-stage-gate, .film-asset-table-batch { align-items: stretch; flex-direction: column; } }
@media (max-width: 1100px) { .film-video-production-settings { grid-template-columns: minmax(0, 1fr); align-items: stretch; } .film-video-production-controls { align-items: stretch; flex-direction: column; } .film-video-production-controls > label, .film-video-production-controls .film-video-ratio { min-width: 0; width: 100%; } }
