:root {
  --stream-bg: #131820; --stream-line: #29313e; --stream-text: #8290a4; --stream-heading: #a0abbc; --stream-dot: #8197b4; --stream-mask: #000;
  --surface-detail-18: #b9a0ff;
  --surface-detail-17: #80b6ff;
  --surface-detail-16: #686868;
  --surface-detail-15: #568cff;
  --surface-detail-14: #479f85;
  --surface-detail-13: #3978f655;
  --surface-detail-12: #2d3747;
  --surface-detail-11: #263449;
  --surface-detail-10: #1c2532;
  --surface-detail-9: #1b222e;
  --surface-detail-8: #151a23;
  --surface-detail-7: #10151e;
  --surface-detail-6: #10151d;
  --surface-detail-5: #0d1016;
  --surface-detail-4: #0005;
  --surface-detail-3: #0003;
  --surface-detail-2: #0002;
  --surface-detail-1: #00000010;
  --shot-trail-angle: 0deg; --trail-one: #637eff; --trail-two: #c7a4ff; --trail-three: #b8f2ff;
  --studio-glow: #3978f612;
  --image-accent: #b9a3ff;
  --video-accent: #6dd4c2;
  --check-accent: #e6bd7a;
  --studio-shadow: #00000024;
  --prompt-accent: #80adff;
  color-scheme: dark;
  --bg: #101216;
  --paper: #191c22;
  --soft: #20242c;
  --ink: #edf0f7;
  --muted: #a2acbc;
  --line: #343b48;
  --gold: #80adff;
  --blue: #3978f6;
  --blue-hover: #518aff;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --scroll-thumb: #485365;
  --scroll-track: #171a20;
  --button-bg: #232832;
  --button-ink: #dce3ef;
  --button-hover: #2c3441;
  --button-hover-line: #58667d;
  --primary-shadow: #0002;
  --focus: #93b8ff;
  --link: #90b7ff;
  --input-line: #3c4554;
  --input-bg: #13161c;
  --input-ink: #e5eaf3;
  --input-hover-line: #5a687e;
  --placeholder: #8793a6;
  --option-bg: #1c212a;
  --label: #c1cada;
  --subtitle: #c0cadb;
  --eyebrow: #86a9e5;
  --sidebar-bg: #14171d;
  --sidebar-line: #2b313c;
  --sidebar-eyebrow: #8595ae;
  --sidebar-input: #1c2028;
  --sidebar-label: #98a6bc;
  --history-hover: #202631;
  --history-line: #4775c0;
  --history-active: #202f49;
  --history-meta: #99a9c2;
  --sidebar-meta: #9eacc1;
  --header-bg: #1a202b;
  --header-ink: #afc4e8;
  --composer-line: #333a47;
  --composer-shadow: #00000014;
  --section-ink: #edf2ff;
  --formal-accent: #426fb8;
  --fieldset-line: #353e4d;
  --fieldset-bg: #161a21;
  --legend: #b4c2d8;
  --fieldset-hint: #94a1b5;
  --type-bg: #202630;
  --type-line: #394353;
  --type-ink: #c6cfdf;
  --type-hover-line: #647a9d;
  --type-hover: #283243;
  --type-selected-bg: #203555;
  --type-selected-line: #598cf3;
  --type-selected-ink: #dce9ff;
  --type-selected-shadow: #598cf31a;
  --options-label: #aebcd1;
  --example-bg: #222a37;
  --example-ink: #b9ccef;
  --example-line: #38465e;
  --check-ink: #adbad0;
  --status-ink: #aebed6;
  --privacy-ink: #96a5bb;
  --empty-ink: #8d9db4;
  --empty-title: #bdcbe0;
  --orb-line: #3d5578;
  --orb-bg: #1c293c;
  --orb-ink: #93b9ff;
  --evidence-ink: #a8b9d2;
  --details-bg: #1b222d;
  --summary-ink: #c4d4ee;
  --source-ink: #b4c0d1;
  --danger: #f2a9ac;
  --toolbar-bg: #1b2029;
  --draft-ink: #ebc17d;
  --tab-selected-bg: #243957;
  --tab-selected-line: #507bbd;
  --tab-selected-ink: #dbe9ff;
  --prose-ink: #d4dce9;
  --prompt-bg: #151c27;
  --prompt-line: #303d51;
  --prompt-ink: #a9c8ff;
  --shot-meta: #a0afc6;
  --progress-bg: #1b2a40;
  --progress-line: #385982;
  --progress-ink: #c0d4f5;
  --progress-track: #111b2a;
  --progress-value: #649bff;
  --dialog-line: #47546a;
  --dialog-shadow: #0009;
  --backdrop: #080c14b8;
  --library-meta: #a8b7cd;
  --library-bg: #141a23;
  --comparison-bg: #131923;
  --toast-line: #5276ac;
  --toast-bg: #223552;
  --toast-ink: #edf4ff;
  --toast-shadow: #0006;
  --warning-ink: #f1cf91;
  --warning-bg: #352c1e;
  --warning-line: #695533;
  --reference-bg: #151b25;
  --reference-line: #475775;
  --reference-card-line: #394963;
  --reference-card-bg: #202735;
  --reference-image-bg: #10151e;
  --reference-meta: #abbad0;
  --drag-bg: #1c2a40;
  --crop-bg: #0f141d;
  --scroll-hover: #687991;
  --selection: #3465ab;
  --history-mobile: #1b222e;
}
:root[data-theme=light] {
  --stream-bg: #131820; --stream-line: #29313e; --stream-text: #8290a4; --stream-heading: #a0abbc; --stream-dot: #8197b4; --stream-mask: #000;
  --surface-detail-18: #b9a0ff;
  --surface-detail-17: #80b6ff;
  --surface-detail-16: #686868;
  --surface-detail-15: #568cff;
  --surface-detail-14: #479f85;
  --surface-detail-13: #3978f655;
  --surface-detail-12: #2d3747;
  --surface-detail-11: #263449;
  --surface-detail-10: #1c2532;
  --surface-detail-9: #1b222e;
  --surface-detail-8: #151a23;
  --surface-detail-7: #10151e;
  --surface-detail-6: #10151d;
  --surface-detail-5: #0d1016;
  --surface-detail-4: #0005;
  --surface-detail-3: #0003;
  --surface-detail-2: #0002;
  --surface-detail-1: #00000010;
  --shot-trail-angle: 0deg; --trail-one: #637eff; --trail-two: #c7a4ff; --trail-three: #b8f2ff;
  --studio-glow: #3978f60c;
  --image-accent: #7250bb;
  --video-accent: #147b6c;
  --check-accent: #92601d;
  --studio-shadow: #243e6510;
  --prompt-accent: #245fd0;
  color-scheme: light;
  --bg: #f3f6fb;
  --paper: #ffffff;
  --soft: #edf2f8;
  --ink: #182438;
  --muted: #596b82;
  --line: #d3deec;
  --gold: #245fd0;
  --blue: #2463df;
  --blue-hover: #1853c6;
  --scroll-thumb: #a6b7ce;
  --scroll-track: #edf2f8;
  --button-bg: #f0f4fa;
  --button-ink: #293f5e;
  --button-hover: #e5edf8;
  --button-hover-line: #91a9c9;
  --primary-shadow: #20477920;
  --focus: #205fd4;
  --link: #175cc7;
  --input-line: #bacbe0;
  --input-bg: #ffffff;
  --input-ink: #233650;
  --input-hover-line: #7e9bc2;
  --placeholder: #687b93;
  --option-bg: #ffffff;
  --label: #435875;
  --subtitle: #526680;
  --eyebrow: #3368b7;
  --sidebar-bg: #edf2f9;
  --sidebar-line: #d2deed;
  --sidebar-eyebrow: #5d718e;
  --sidebar-input: #f8faff;
  --sidebar-label: #5a6e8b;
  --history-hover: #e2ebf8;
  --history-line: #7197d5;
  --history-active: #dce9ff;
  --history-meta: #536d91;
  --sidebar-meta: #566c8a;
  --header-bg: #e7effc;
  --header-ink: #315b98;
  --composer-line: #d3deee;
  --composer-shadow: #27456e0c;
  --section-ink: #1c3152;
  --formal-accent: #4278d1;
  --fieldset-line: #d1ddeb;
  --fieldset-bg: #f7f9fd;
  --legend: #4c6484;
  --fieldset-hint: #5e728e;
  --type-bg: #f0f4fa;
  --type-line: #c7d5e8;
  --type-ink: #405777;
  --type-hover-line: #7d9bc4;
  --type-hover: #e5edfa;
  --type-selected-bg: #e1ecff;
  --type-selected-line: #3e75d9;
  --type-selected-ink: #164caa;
  --type-selected-shadow: #3978f61a;
  --options-label: #536b8b;
  --example-bg: #edf3fe;
  --example-ink: #355e99;
  --example-line: #c4d5ef;
  --check-ink: #4e6484;
  --status-ink: #4c668b;
  --privacy-ink: #60738e;
  --empty-ink: #627590;
  --empty-title: #425b7f;
  --orb-line: #bed1ef;
  --orb-bg: #e6efff;
  --orb-ink: #2865ce;
  --evidence-ink: #4b6589;
  --details-bg: #f3f7fe;
  --summary-ink: #355987;
  --source-ink: #516581;
  --danger: #b2293b;
  --toolbar-bg: #f8faff;
  --draft-ink: #86520e;
  --tab-selected-bg: #e0ecff;
  --tab-selected-line: #82a2d3;
  --tab-selected-ink: #2056a8;
  --prose-ink: #30435f;
  --prompt-bg: #f5f8fe;
  --prompt-line: #cdddf2;
  --prompt-ink: #245cba;
  --shot-meta: #59708e;
  --progress-bg: #ebf3ff;
  --progress-line: #bed3f1;
  --progress-ink: #355e95;
  --progress-track: #dce6f5;
  --progress-value: #3576e7;
  --dialog-line: #b7c9e2;
  --dialog-shadow: #21385333;
  --backdrop: #243c6273;
  --library-meta: #536c8d;
  --library-bg: #f2f6fc;
  --comparison-bg: #f3f7fd;
  --toast-line: #b3ccef;
  --toast-bg: #e7f0ff;
  --toast-ink: #224f95;
  --toast-shadow: #21385326;
  --warning-ink: #7e4b09;
  --warning-bg: #fff6e6;
  --warning-line: #ead1a5;
  --reference-bg: #f4f8ff;
  --reference-line: #a7bfdf;
  --reference-card-line: #c2d3eb;
  --reference-card-bg: #ffffff;
  --reference-image-bg: #eaf0f8;
  --reference-meta: #546d8f;
  --drag-bg: #e9f1ff;
  --crop-bg: #e4ebf5;
  --scroll-hover: #7d98ba;
  --selection: #245fd0;
  --history-mobile: #e7eef9;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0, var(--studio-glow), transparent 55%), var(--bg); color: var(--ink); font-size: 14px; line-height: 1.7; }
.mobile-sidebar-bar { display: none; }
html[data-popover-fallback] [popover]:not([data-fallback-open]) { display: none !important; }
html[data-popover-fallback] [popover][data-fallback-open] { display: block; position: fixed; z-index: 100; max-height: 80vh; overflow: auto; }
html[data-popover-fallback] .asset-more-panel[data-fallback-open] { display: grid; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, fieldset, section, nav { min-width: 0; }
button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--button-bg); color: var(--button-ink); cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.5; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover { background: var(--button-hover); border-color: var(--button-hover-line); }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 10px var(--primary-shadow); }
button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
input, select, textarea { max-width: 100%; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); color: var(--input-ink); padding: 10px 12px; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--input-hover-line); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
input[type=range], progress { accent-color: var(--blue); }
select { cursor: pointer; padding-right: 26px; }
option { background: var(--option-bg); color: var(--ink); }
textarea { display: block; width: 100%; resize: vertical; min-height: 70px; line-height: 1.85; }
label { display: block; font-size: 12px; color: var(--label); }
label input:not([type=checkbox]):not([type=radio]), label select { display: block; width: 100%; margin-top: 7px; }
small { color: var(--muted); font-size: 11px; line-height: 1.7; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { margin: 8px 0 4px; font-size: 34px; font-weight: 700; }
h1 span { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .12em; font-weight: 500; color: var(--subtitle); }
h2 { margin: 6px 0; font-size: 26px; font-weight: 650; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--eyebrow); }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
aside { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width, 252px); padding: 30px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-line); }
.sidebar-resizer { position: absolute; top: 0; right: -4px; bottom: 0; width: 8px; z-index: 20; cursor: col-resize; touch-action: none; }
.sidebar-resizer:hover, .sidebar-resizer:focus-visible { background: var(--surface-detail-13); outline: none; }
.resizing-sidebar, .resizing-sidebar * { cursor: col-resize !important; user-select: none !important; }
@media (max-width: 760px) { .sidebar-resizer { display: none; } }
aside .eyebrow { font-size: 9px; color: var(--sidebar-eyebrow); }
aside > .muted { margin: 0 0 14px; }
aside button { text-align: left; }
aside > button.primary { margin-bottom: 8px; padding: 11px 15px; }
aside input, aside select { width: 100%; background: var(--sidebar-input); font-size: 12px; padding: 9px 10px; }
.side-label { color: var(--sidebar-label); font-size: 11px; margin-top: 10px; }
#history { flex: 1; min-height: 50px; overflow: auto; }
#history button { display: block; width: 100%; margin: 4px 0; padding: 11px; background: transparent; border: 1px solid transparent; white-space: normal; }
#history button:hover { background: var(--history-hover); }
#history button.active { border-color: var(--history-line); background: var(--history-active); }
#history .history-item-actions { display: flex; gap: 6px; padding: 0 7px 7px; }
#history .history-item-actions button { width: auto; min-width: 0; padding: 3px 7px; font-size: 11px; border: 1px solid var(--line); }
.history-item { flex-shrink: 0; }
.asset-library > summary { cursor: pointer; font-weight: 600; }
.asset-library[open] > summary { margin-bottom: 16px; }
#history strong, #history small { display: block; overflow-wrap: anywhere; }
#history strong { font-size: 12px; font-weight: 500; }
#history small { margin-top: 5px; color: var(--history-meta); font-size: 10px; }
.side-bottom { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--sidebar-line); font-size: 11px; color: var(--sidebar-meta); }
.side-bottom button { background: var(--option-bg); font-size: 12px; }
.side-bottom small { font-size: 10px; }
main { margin-left: var(--sidebar-width, 252px); min-width: 0; padding: 34px clamp(24px, 3.5vw, 64px) 70px; }
.shot-navigation { position: fixed; right: 8px; top: 0; bottom: 0; margin-block: auto; height: max-content; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 44px; padding: 10px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 4px 18px var(--surface-detail-2); }
.shot-navigation > button, .shot-navigation .shot-nav-mark { width: 42px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.shot-navigation > button { font-size: 20px; }
.shot-nav-marks { display: flex; flex-direction: column; gap: 12px; max-height: min(65vh, calc(100dvh - 160px)); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; width: 42px; }
.shot-navigation .shot-nav-mark { display: flex; flex-shrink: 0; align-items: center; justify-content: center; }
.shot-nav-bar { width: 20px; height: 3px; border-radius: 2px; background: currentColor; transition: width .15s; }
.shot-navigation button:hover, .shot-navigation button:focus-visible, .shot-navigation [aria-current] { color: var(--blue); background: var(--soft); }
.shot-navigation [aria-current] .shot-nav-bar { width: 28px; height: 4px; }
.shot-nav-label { display: none; position: fixed; right: 64px; max-width: min(300px, 65vw); max-height: calc(100dvh - 16px); overflow: hidden; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 14px; text-align: left; overflow-wrap: anywhere; box-shadow: 0 4px 16px var(--surface-detail-3); pointer-events: none; }
.shot-nav-mark:hover .shot-nav-label, .shot-nav-mark:focus-visible .shot-nav-label { display: block; }
.shot-card { scroll-margin-top: 20px; }
@media (max-width: 760px) { .shot-navigation { right: 2px; width: 36px; } .shot-navigation > button, .shot-navigation .shot-nav-mark, .shot-nav-marks { width: 34px; } .shot-nav-label { right: 46px; } }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
header button { font-size: 11px; flex-shrink: 0; background: var(--header-bg); color: var(--header-ink); }
.composer { position: relative; background: linear-gradient(120deg, var(--studio-glow), transparent 55%), var(--paper); border: 1px solid var(--composer-line); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 8px 24px var(--composer-shadow); }
.composer + .composer { margin-top: 24px; }
.preplan-caption { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--status-ink); }
#pre-composer > summary { margin: 0; }
#pre-composer[open] > summary { margin-bottom: 12px; }
.section-title { margin: 0 0 8px; color: var(--section-ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.6; }
.composer > .muted { margin: 4px 0 18px; }
#formal-composer { border-top: 2px solid var(--formal-accent); }
#pre-composer { border-left: 3px solid var(--image-accent); }
.model-picker { border-top: 2px solid var(--gold); }
.revision-asset-picker { width: min(900px, 94vw); max-height: 85vh; overflow-y: auto; }
.revision-reference-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.revision-reference-list > div { display: flex; flex-direction: column; gap: 4px; }
.revision-reference-list img { width: 100px; height: 80px; object-fit: contain; }
.shot-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; margin: 16px 24px; padding: 16px; border: 1px solid transparent; }
.shot-video-layout > .prompt { margin: 0; min-width: 0; resize: vertical; overflow: auto; display: flex; flex-direction: column; }
.shot-video-layout > .prompt > .bounded-prose { resize: none; flex: 1 0 auto; }
.shot-video-reference { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.shot-video-reference h4 { margin: 0 0 10px; }
.shot-video-reference img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
@media (max-width: 900px) { .shot-video-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .shot-video-reference { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .shot-video-layout { margin: 12px 0; padding: 12px; } }
.section-title { display: block; }
fieldset { margin: 20px 0; padding: 13px 14px 12px; border: 1px solid var(--fieldset-line); border-radius: 9px; background: var(--fieldset-bg); }
legend { padding: 0 6px; color: var(--legend); font-size: 11px; font-weight: 600; }
fieldset > small { display: block; margin-top: 10px; color: var(--fieldset-hint); }
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.type-options label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; background: var(--type-bg); border: 1px solid var(--type-line); border-radius: 7px; font-size: 12px; color: var(--type-ink); cursor: pointer; transition: background .15s, border-color .15s; }
.type-options label:hover { border-color: var(--type-hover-line); background: var(--type-hover); }
.type-options label:has(input:checked) { background: var(--type-selected-bg); border-color: var(--type-selected-line); color: var(--type-selected-ink); box-shadow: inset 0 0 0 1px var(--type-selected-shadow); }
.type-options label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.type-options input { width: auto; }
.type-options label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.composer > label:has(> select) { max-width: 340px; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.options label { font-size: 11px; color: var(--options-label); }
.options input, .options select { font-size: 12px; }
.examples { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.examples button { padding: 5px 11px; border-radius: 6px; font-size: 11px; background: var(--example-bg); color: var(--example-ink); border-color: var(--example-line); }
.check { display: flex; align-items: center; gap: 9px; margin: 20px 0 10px; font-size: 12px; color: var(--check-ink); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions .primary { min-height: 40px; padding-inline: 20px; }
.creation-progress { flex-basis: 100%; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--status-ink); }
.creation-progress ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 12px; }
.creation-progress li { padding: 9px; border-bottom: 3px solid var(--line); }
.creation-progress .is-active { color: var(--surface-detail-15); border-color: var(--surface-detail-15); font-weight: 600; }
.creation-progress .is-complete { color: var(--surface-detail-14); border-color: var(--surface-detail-14); }
.creation-progress small { display: block; margin-top: 6px; }
.creation-progress + [role=status] { display: none; }
#status, #preplan-status, #settings-status { color: var(--status-ink); font-size: 12px; overflow-wrap: anywhere; }
.privacy { font-size: 11px; color: var(--privacy-ink); margin-bottom: 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--empty-ink); }
.empty h3 { margin: 17px 0 10px; font-size: 18px; font-weight: 500; color: var(--empty-title); }
.empty p { font-size: 12px; }
.empty .empty-brand{font-size:24px;font-weight:650;letter-spacing:.03em;margin:14px 0 0;color:var(--empty-title)}
.directing-rhythm-help{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0}.directing-rhythm-help summary{cursor:pointer}.directing-rhythm-help p{margin:8px 0 0;max-width:880px}
.empty small { font-size: 11px; }
.orb { margin: auto; width: 54px; height: 54px; border: 1px solid var(--orb-line); border-radius: 14px; background: var(--orb-bg); font-size: 25px; line-height: 52px; color: var(--orb-ink); }
#evidence-panel { margin-top: 14px; font-size: 12px; color: var(--evidence-ink); overflow-wrap: anywhere; }
details { padding: 15px 18px; background: var(--details-bg); border: 1px solid var(--line); border-radius: 9px; }
summary { color: var(--summary-ink); cursor: pointer; font-size: 12px; }
.source { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.source button { font-size: 11px; padding: 4px 9px; }
.source p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow: auto; color: var(--source-ink); }
.output-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 34px 0 18px; }
.output-header > div { display: flex; flex-wrap: wrap; gap: 7px; }
.output-header button { font-size: 12px; }
.result-primary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.result-primary-actions > button, .result-primary-actions > details > summary { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 30px; min-height: 0; margin: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--button-bg); color: var(--button-ink); font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.result-primary-actions > details { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
.result-primary-actions > details > summary { list-style: none; gap: 5px; }
.result-primary-actions > details > summary::-webkit-details-marker { display: none; }
.result-primary-actions > details > summary::after { content: '\25BE'; font-size: 10px; color: var(--muted); }
.result-primary-actions > details[open] > summary::after { content: '\25B4'; }
.result-primary-actions > details > button { position: absolute; z-index: 5; top: calc(100% + 5px); left: 0; width: max-content; min-width: 100px; padding: 7px 12px; font-size: 12px; box-shadow: 0 4px 12px var(--studio-shadow); }
.result-primary-actions > details:not([open]) > button { display: none; }
.result-primary-actions > button:hover, .result-primary-actions > details > summary:hover { background: var(--button-hover); border-color: var(--button-hover-line); }
.result-primary-actions:empty { display: none; }
.result-management { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--toolbar-bg); margin-bottom: 12px; }
.result-management > summary { padding: 7px 12px; line-height: 20px; cursor: pointer; color: var(--muted); font-size: 13px; }
.result-management[open] > summary { border-bottom: 1px solid var(--line); }
.result-management .output-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.result-management .output-actions button { font-size: 12px; }
.result-management .project-tools { border: 0; background: transparent; }
#delete-project { color: var(--danger); }
.project-tools, .view-tabs, .shot-header, .library-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.project-tools { align-items: flex-end; background: var(--toolbar-bg); padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.project-tools label { flex: 1; min-width: 140px; }
.project-tools button, .project-tools select { box-sizing: border-box; height: 40px; font-size: 12px; }
#draft-status { width: 100%; color: var(--draft-ink); font-size: 12px; overflow-wrap: anywhere; }
.view-tabs { padding-bottom: 12px; margin: 22px 0 12px; border-bottom: 1px solid var(--line); }
.view-tabs button { border-radius: 7px; padding: 7px 18px; background: transparent; }
.view-tabs button[aria-pressed=true] { background: var(--tab-selected-bg); border-color: var(--tab-selected-line); color: var(--tab-selected-ink); }
.card { margin: 16px 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.95; color: var(--prose-ink); }
.bounded-prose { height: 220px; min-height: 90px; overflow: auto; resize: vertical; }
.bounded-prose.is-long { height: 340px; }
.prompt { background: var(--prompt-bg); padding: 18px; margin: 16px 0; border: 1px solid var(--prompt-line); border-radius: 9px; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--prompt-ink); font-weight: 600; }
.prompt-head button { flex-shrink: 0; font-size: 11px; padding: 5px 11px; }
.shot-meta { font-size: 12px; line-height: 1.85; color: var(--shot-meta); white-space: pre-wrap; overflow-wrap: anywhere; }
.shot-header { margin-bottom: 14px; }
.shot-header h3 { flex: 1; min-width: 140px; margin: 0; }
.shot-header button { font-size: 12px; }
.asset-library > input { width: 100%; margin: 14px 0; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 14px; }
.asset-library > .asset-grid { overflow-y: auto; scrollbar-gutter: stable; }
.asset-trash-dialog { width: min(1100px, 92vw); }
.asset-tile { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); min-width: 0; }
.asset-library .asset-tile { position: relative; }
.asset-batch-select { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.asset-batch-select input { margin: 0; }
.asset-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; background: var(--paper); }
.asset-tile strong, .asset-tile small { display: block; overflow-wrap: anywhere; margin: 7px 0; }
.asset-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.asset-actions button, .asset-actions a { font-size: 12px; }
.asset-actions input[type=file] { max-width: 100%; font-size: 12px; }
.asset-library-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.asset-library-toolbar button, .asset-library-toolbar select { max-width: 100%; }
.asset-selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.asset-selection-bar button { font-size: 12px; white-space: nowrap; }
.asset-selection-count { font-size: 12px; white-space: nowrap; }
.asset-selection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.asset-selection-delete { margin-left: auto; }
@media (max-width: 560px) {
  .asset-library-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-library-toolbar > * { width: 100%; min-width: 0; font-size: 12px; }
  .asset-library-toolbar > button { white-space: normal; }
  .asset-selection-count { margin-left: auto; }
  .asset-selection-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .asset-selection-actions button { min-width: 0; padding-left: 6px; padding-right: 6px; }
}
.shot-images { margin: 16px 24px; padding: 16px; background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; }
.shot-images h4 { margin: 0 0 8px; }
.shot-images { position: relative; }
.shot-revision-progress { position: relative; margin: -16px -16px 16px; padding: 16px; border-radius: 10px 10px 0 0; background: var(--progress-bg); color: var(--progress-ink); }
.shot-revision-progress::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 10px; background: linear-gradient(90deg, transparent, var(--progress-value), var(--surface-detail-18), transparent); background-size: 200% 100%; animation: shot-stage-glide 2s linear infinite; }
.shot-revision-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 12px; }
.shot-revision-progress li { padding: 8px 4px; border-top: 3px solid var(--line); }
.shot-revision-progress[data-phase=scope] li:first-child,
.shot-revision-progress[data-phase=validating] li:nth-child(4),
.shot-revision-progress[data-phase=directing] li:nth-child(4),
.shot-revision-progress[data-phase=saving] li:nth-child(4),
.shot-revision-progress[data-phase=search] li:nth-child(2),
.shot-revision-progress[data-phase=processing] li:nth-child(3) { color: var(--blue); border-color: var(--progress-value); background: linear-gradient(90deg, transparent, var(--progress-track), transparent); background-size: 200% 100%; animation: shot-stage-glide 2s linear infinite; }
.shot-revision-progress[data-phase=search] li:first-child,
.shot-revision-progress[data-phase=processing] li:nth-child(-n+2) { border-color: var(--surface-detail-14); }
.shot-revision-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shot-revision-detail p { margin: 0; font-size: 12px; }
.shot-revision-progress small { display: block; margin-top: 8px; opacity: .75; }
.shot-workspace-loading { position: absolute; top: -1px; left: 0; right: 0; height: 3px; border-radius: 10px; background: linear-gradient(90deg, transparent, var(--progress-value), var(--surface-detail-18), transparent); background-size: 200% 100%; animation: shot-stage-glide 2s linear infinite; }
@property --shot-trail-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.is-revising .prompt, .image-task-trail { position: relative; isolation: isolate; }
.is-revising .prompt::after, .image-task-trail::after { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--shot-trail-angle), transparent 0% 65%, var(--trail-one) 78%, var(--trail-two) 90%, var(--trail-three) 96%, transparent 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; animation: shot-border-trail 3s linear infinite; }
.image-task-progress { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--progress-line); border-radius: 8px; background: var(--progress-bg); color: var(--progress-ink); font-size: 12px; }
.image-task-progress ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; gap: 8px; margin: 12px 0; padding: 0; }
.image-task-progress li { padding: 8px 0; border-top: 3px solid var(--line); }
.image-task-progress .is-complete { border-color: var(--surface-detail-14); }
.image-task-progress .is-active { border-color: var(--progress-value); color: var(--blue); }
.image-task-progress p { margin: 8px 0; }
.image-task-progress small { line-height: 1.7; opacity: .8; }
@keyframes shot-border-trail { to { --shot-trail-angle: 360deg; } }
@keyframes shot-stage-glide { to { background-position: -200% 0; } }
@media (max-width: 760px) { .shot-revision-progress { margin: -12px -12px 12px; padding: 12px; } .shot-revision-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .is-revising .prompt::after, .image-task-trail::after, .shot-workspace-loading, .shot-revision-progress::before, .shot-revision-progress li { animation: none !important; } }
.shot-image-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.shot-image-toolbar h4 { flex-basis: 100%; margin: 0; }
.shot-image-settings { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; min-width: 0; }
.shot-image-settings > label { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; font-size: 12px; min-width: 0; }
.shot-image-toolbar select { width: auto; max-width: 100%; padding: 6px 10px; }
.shot-image-toolbar .asset-actions { margin: 0; gap: 10px; min-width: 0; }
.shot-image-toolbar .asset-actions button { padding: 7px 12px; }
.shot-image-toolbar input[type=file] { box-sizing: border-box; width: 220px; max-width: 100%; padding: 6px; }
.shot-image-hint { margin: 8px 0 0; font-size: 12px; }
.work-reference-badge { color: var(--accent, var(--surface-detail-17)); }
.work-reference-content { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.gift-first-frame { display: block; max-width: 100%; max-height: 480px; object-fit: contain; }
.shot-image-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; margin-top: 16px; }
.shot-image-controls, .shot-image-preview { min-width: 0; }
.shot-image-layout > .prompt { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.shot-image-layout > .prompt > .bounded-prose { flex: 1 0 auto; }
.shot-image-controls { padding-left: 24px; border-left: 1px solid var(--line); }
.shot-image-preview { margin: 0; }
.shot-image-strip { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 12px; scroll-snap-type: x proximity; }
.shot-image-strip > .asset-tile { flex: 0 0 360px; box-sizing: border-box; min-width: 0; padding: 8px; scroll-snap-align: start; }
.shot-image-strip .asset-tile img { display: block; aspect-ratio: auto; height: auto; object-fit: contain; }
.shot-image-strip .asset-tile strong, .shot-image-strip .asset-tile small { margin: 4px 0; line-height: 1.4; }
.shot-image-strip .asset-tile strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.shot-image-strip .asset-tile .check { margin: 6px 0; font-size: 12px; }
.shot-image-strip .asset-actions { gap: 6px; margin: 4px 0 0; }
.shot-image-strip .asset-actions button { padding: 5px 8px; }
.shot-image-strip > .shot-image-empty { flex: 0 0 min(100%, 260px); min-width: 0; box-sizing: border-box; scroll-snap-align: start; }
.asset-preview-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.asset-preview-dialog { width: min(1100px, 92vw); max-width: 92vw; max-height: 90vh; padding: 16px; }
.asset-preview-dialog > button { display: block; margin: 0 0 12px auto; }
.asset-preview-dialog > img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.asset-preview-navigation { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.asset-preview-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.shot-image-preview .asset-grid { margin-top: 8px; }
.shot-image-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 200px; margin: 0; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--label); text-align: center; }
.shot-image-loading { align-content: center; gap: 12px; }
.image-batch-progress { border-color: var(--focus); }
.image-batch-progress h3 { margin: 0 0 12px; }
.image-batch-progress progress { display: block; width: 100%; height: 10px; accent-color: var(--focus); }
.image-batch-progress p { margin: 12px 0 0; overflow-wrap: anywhere; }
.image-batch-progress.is-dismissible { cursor: pointer; }
.image-progress-heading .image-progress-close { flex: 0 0 28px; width: 28px; min-height: 28px; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 21px; line-height: 28px; }
.image-progress-heading .image-progress-close:hover { color: var(--ink); background: var(--progress-bg); }
.image-loading-spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--label); border-radius: 50%; animation: image-loading-spin 1s linear infinite; }
.image-progress-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.image-progress-heading h3{margin:0}.image-progress-heading .image-progress-stop{width:auto;min-height:30px;padding:4px 9px;font-size:12px;margin-left:auto}.image-progress-heading .image-loading-spinner,.image-task-progress>.image-loading-spinner,.material-generation-progress .image-loading-spinner{display:inline-block;flex:0 0 22px;width:22px;height:22px;vertical-align:middle;margin-right:8px}
.material-generation-progress{display:flex;align-items:center;gap:6px;padding:12px;border:1px solid var(--progress-line);border-radius:8px;background:var(--progress-bg);font-size:12px}
.background-task { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.background-task .image-loading-spinner { display: inline-block; flex: 0 0 30px; }
.background-task p { flex: 1 1 220px; margin: 0; }
.task-stage-progress { flex-basis: 100%; border: 0; padding: 8px 0 0; }
.task-stage-progress ol { margin-bottom: 0; }
.task-stage-progress .is-active { background: linear-gradient(90deg, transparent, var(--progress-track), transparent); background-size: 200% 100%; animation: shot-stage-glide 2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .task-stage-progress .is-active { animation: none; } }
@keyframes image-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .image-loading-spinner { animation: none; } }
@media (max-width: 900px) { .shot-image-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .shot-image-controls { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); } .shot-image-strip > .asset-tile { flex-basis: min(360px, 100%); } }
#storage-status, #save-status { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) { .shot-images { margin: 12px 0; padding: 12px; } }
#output .card { box-shadow: 0 8px 28px var(--studio-shadow); }
#output .card[data-kind=plan] { border-top: 3px solid var(--gold); background: linear-gradient(120deg, var(--studio-glow), transparent 65%), var(--paper); }
#output .card[data-kind=checks] { border-left: 3px solid var(--check-accent); }
#output .card[data-kind=checks] h3 { color: var(--check-accent); }
.shot-card { padding: 0; overflow: hidden; }
.shot-card > .shot-header { padding: 18px 24px; margin: 0; background: linear-gradient(110deg, var(--header-bg), var(--paper)); border-bottom: 1px solid var(--line); }
.shot-card > .shot-meta { padding: 14px 24px; }
.shot-card > .shot-meta:last-child { background: var(--fieldset-bg); border-top: 1px solid var(--line); }
.shot-card > .prompt { margin: 16px 24px; }
.shot-card > .edit-field { margin: 16px 24px; }
.prompt { --prompt-accent: var(--gold); border-left: 3px solid var(--prompt-accent); background: linear-gradient(110deg, color-mix(in srgb, var(--prompt-accent) 7%, transparent), transparent 85%), var(--prompt-bg); }
.prompt[data-kind=image] { --prompt-accent: var(--image-accent); }
.prompt[data-kind=video] { --prompt-accent: var(--video-accent); }
.prompt-head { color: var(--prompt-accent); }
.prompt-head > span { display: flex; align-items: center; gap: 9px; }
.prompt-head > span::before { content: ''; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 2px; flex-shrink: 0; }
.prompt[data-kind=video] .prompt-head > span::before { border-radius: 50%; }
.orb { background: linear-gradient(135deg, var(--orb-bg), var(--paper)); box-shadow: 0 0 40px var(--studio-glow); }
@media (max-width: 760px) {
  .shot-card > .shot-header, .shot-card > .shot-meta { padding: 14px 16px; }
  .shot-card > .prompt, .shot-card > .edit-field { margin: 12px 16px; }
}
.edit-field { display: block; padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; }
.edit-field textarea { margin-top: 9px; min-height: 70px; font-size: 14px; font-weight: 400; }
.card .edit-field { padding: 0; border: 0; }
.generation-progress { margin-top: 16px; padding: 14px 18px; background: var(--progress-bg); border: 1px solid var(--progress-line); border-radius: 9px; overflow-wrap: anywhere; }
.generation-progress p { margin: 5px 0; font-size: 12px; color: var(--progress-ink); }
.generation-progress progress { width: 100%; height: 8px; border: 0; border-radius: 8px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--progress-track); border-radius: 8px; }
progress::-webkit-progress-value { background: var(--progress-value); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--progress-value); }
dialog { width: 600px; max-width: calc(100vw - 32px); max-height: 90vh; max-height: 90dvh; padding: 28px; overflow: auto; border: 1px solid var(--dialog-line); border-radius: 16px; background: var(--toolbar-bg); color: var(--ink); box-shadow: 0 28px 100px var(--dialog-shadow); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dialog-head h2 { font-size: 23px; }
.dialog-head button { min-width: 34px; padding: 6px 9px; background: transparent; }
dialog label { margin-top: 16px; }
dialog .check { margin-top: 18px; }
dialog small { display: block; margin-top: 6px; }
.category-dialog-form { display: flex; flex-direction: column; gap: 12px; }
.category-dialog-form h2 { margin: 0 0 4px; }
.category-dialog-form select { width: 100%; min-width: 0; }
.category-dialog-form label { margin: 4px 0 -6px; font-size: 13px; }
.category-dialog-form textarea { min-height: 42px; height: 42px; resize: none; }
.category-help, .category-suggestions p { margin: 0; font-size: 13px; color: var(--muted); }
.category-suggestions { padding: 12px; border: 1px solid var(--dialog-line); border-radius: 10px; }
.category-suggestions[hidden] { display: none; }
.category-suggestion-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 128px; overflow-y: auto; }
.category-suggestion-choices button { max-width: 100%; padding: 6px 10px; overflow-wrap: anywhere; text-align: left; }
.category-dialog-form .actions { justify-content: flex-end; margin-top: 8px; }
#library { width: 1100px; }
.library-layout { display: grid; grid-template-columns: minmax(230px, 34%) minmax(0, 1fr); gap: 18px; height: 55vh; margin-top: 16px; }
.library-layout nav { overflow: auto; }
.library-layout button { display: block; width: 100%; text-align: left; font-size: 12px; margin-bottom: 6px; }
.library-layout button strong, .library-layout button small { display: block; }
.library-layout button small, .library-excerpt { color: var(--library-meta); }
.library-excerpt { font-size: 12px; line-height: 1.7; margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-filters input { flex: 1; min-width: 150px; }
.library-filters select { min-width: 120px; }
.library-filters span { width: 100%; font-size: 12px; color: var(--muted); }
#library-text { margin: 0; padding: 18px; overflow: auto; overflow-wrap: anywhere; white-space: normal; background: var(--library-bg); border-radius: 8px; font-family: inherit; font-size: 13px; line-height: 1.9; }
#library-text :is(h2,h3,h4,h5,h6) { margin: 20px 0 10px; font-family: inherit; line-height: 1.5; }
#library-text h2 { font-size: 21px; }
#library-text h3 { font-size: 18px; }
#library-text :is(h4,h5,h6) { font-size: 15px; }
#library-text p { white-space: pre-wrap; margin: 7px 0; }
#library-text > :first-child { margin-top: 0; }
#comparison { width: 1300px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.comparison-grid pre { padding: 18px; max-height: 65vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--comparison-bg); border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 13px; line-height: 1.9; }
.comparison-grid h3 { font-size: 15px; }
#toast { position: fixed; bottom: 24px; right: 30px; z-index: 20; max-width: calc(100vw - 28px); padding: 12px 20px; border: 1px solid var(--toast-line); border-radius: 10px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: 0 8px 35px var(--toast-shadow); overflow-wrap: anywhere; }
.warning { color: var(--warning-ink); background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: 8px; padding: 15px; overflow-wrap: anywhere; }
.attachment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; font-size: 12px; color: var(--label); }
.attachment-heading .check { margin: 0; }
.reference-panel { margin-bottom: 10px; padding: 12px; background: var(--reference-bg); border: 1px dashed var(--reference-line); border-radius: 9px; }
.attachment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.attachment-tools button { font-size: 12px; padding: 5px 10px; }
.attachment-tools span { color: var(--muted); font-size: 11px; }
.composer-attachment-tools { justify-content: flex-end; margin: 0; }
.composer-attachment-panel, #pre-attachments, #formal-attachments { width: min(560px, 100%); box-sizing: border-box; margin-left: auto; }
.composer-attachment-panel input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.reference-attachment-popup { position: fixed; inset: auto; margin: 0; padding: 12px; width: min(480px, calc(100vw - 24px)); box-sizing: border-box; max-height: calc(100vh - 32px); overflow: visible; color: var(--ink); background: var(--reference-bg); border: 1px solid var(--reference-line); border-radius: 10px; box-shadow: 0 12px 36px var(--surface-detail-4); }
.reference-attachment-popup::before { content: ''; position: absolute; left: var(--pointer-left, 24px); top: -7px; width: 12px; height: 12px; background: var(--reference-bg); border-top: 1px solid var(--reference-line); border-left: 1px solid var(--reference-line); transform: rotate(45deg); }
.reference-attachment-popup.opens-above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.reference-attachment-popup > .reference-panel { margin: 0; border: 0; padding: 0; max-height: 65vh; overflow: auto; }
.reference-attachment-popup input { min-width: 0; max-width: 100%; }
.image-file-input { display: none; }
.reference-images { display: flex; flex-wrap: wrap; gap: 8px; }
.reference-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 9px; width: 280px; max-width: 100%; min-width: 0; margin-top: 8px; padding: 8px; border: 1px solid var(--reference-card-line); border-radius: 8px; background: var(--reference-card-bg); }
.reference-card img { width: 64px; height: 64px; object-fit: contain; border-radius: 5px; background: var(--reference-image-bg); }
.reference-meta { display: grid; gap: 4px; min-width: 0; }
.reference-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reference-card input, .reference-card select { width: 100%; min-width: 0; padding: 3px 6px; font-size: 11px; }
.reference-card small { color: var(--reference-meta); overflow-wrap: anywhere; }
.reference-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.reference-actions button { font-size: 11px; padding: 3px 8px; }
.reference-panel [role=status] { margin: 6px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.reference-panel [role=status]:empty, #image-analysis-status:empty { display: none; }
.composer.drag-over { outline: 2px dashed var(--gold); outline-offset: 3px; background: var(--drag-bg); }
#crop-dialog { width: 850px; }
#crop-preview { display: block; width: auto; max-width: 100%; height: auto; max-height: 45vh; margin: auto; background: var(--crop-bg); }
.crop-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.crop-fields input { width: 100%; min-width: 0; }
#image-analysis { min-height: 70px; }
#image-analysis-panel { margin-top: 20px; }
#image-analysis-status, #crop-status { overflow-wrap: anywhere; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--scroll-track); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::selection { background: var(--selection); color: #fff; }
#storage-status:empty { display: none; }
@media (min-width: 1101px) {
  .composer > .options { grid-template-columns: minmax(90px, .8fr) minmax(190px, 2fr) minmax(80px, .7fr) minmax(100px, .8fr) minmax(160px, 1.4fr) minmax(90px, .7fr); gap: 12px; }
  .composer .pre-options { grid-template-columns: minmax(190px, 2fr) minmax(80px, .7fr) minmax(100px, .8fr) minmax(160px, 1.4fr) minmax(90px, .7fr); gap: 12px; }
}
@media (max-width: 1100px) {
  aside { width: var(--sidebar-width, 252px); padding: 25px 16px 18px; }
  main { margin-left: var(--sidebar-width, 252px); padding: 28px 24px 60px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer { padding: 22px; }
  h2 { font-size: 23px; }
}
@media (max-width: 760px) {
  aside { position: static; width: auto; padding: 20px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  aside .eyebrow { font-size: 8px; }
  h1 { font-size: 27px; margin: 0; }
  h1 span { display: inline; font-size: 12px; margin-left: 12px; letter-spacing: .05em; }
  aside > .muted { display: none; }
  aside > button.primary { align-self: flex-start; margin: 3px 0; }
  .side-label { margin: 0; }
  #history { display: flex; flex: none; gap: 8px; min-height: 0; max-height: 130px; overflow: auto; }
  #history button { width: 185px; min-width: 185px; flex-shrink: 0; margin: 0; background: var(--history-mobile); }
  #history:empty { display: none; }
  .side-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-top: 12px; gap: 10px; }
  .side-bottom small { display: none; }
  main { margin: 0; padding: 24px 16px 48px; }
  header { gap: 12px; margin-bottom: 22px; }
  header .eyebrow { font-size: 8px; letter-spacing: .09em; }
  header h2 { font-size: 21px; }
  header button { padding: 8px; font-size: 10px; }
  .composer, .card { padding: 20px 16px; }
  .section-title { font-size: 17px; }
  .composer + .composer { margin-top: 18px; }
  .type-options { gap: 7px; }
  .type-options label { padding: 8px; font-size: 11px; }
  .options { gap: 12px; }
  .project-tools { padding: 12px; }
  .project-tools button { flex-grow: 1; }
  .view-tabs { gap: 6px; }
  .view-tabs button { padding: 7px 12px; }
  .shot-header { align-items: flex-start; }
  .prompt { padding: 13px; }
  .prompt-head { flex-wrap: wrap; }
  .library-layout, .comparison-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .library-layout nav { max-height: 25vh; }
  #library-text { max-height: 45vh; }
  .comparison-grid pre { max-height: 40vh; }
  dialog { padding: 20px; }
  .crop-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #toast { left: 14px; right: 14px; bottom: 16px; }
}
@media (max-width: 420px) {
  .options { grid-template-columns: minmax(0, 1fr); }
  fieldset { padding: 11px 9px; }
  header { align-items: flex-start; }
  header h2 { font-size: 19px; }
  .actions { gap: 8px; }
  .actions > [role=status] { width: 100%; }
  .empty { padding: 36px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.theme-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.theme-icon { font-size: 18px; line-height: 1; }
.model-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.model-tiers button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; text-align: left; white-space: normal; }
.model-tiers strong { font-size: 18px; }
.model-tier { position: relative; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.model-tier.is-active { border-color: var(--type-selected-line); background: var(--type-selected-bg); }
.model-tiers .model-tier button { width: 100%; padding: 0; border: 0; background: transparent; }
.model-tier strong { min-height: 24px; display: flex; align-items: center; }
.model-tiers .model-tier button[aria-pressed=true] { background: transparent; }
.model-tier select { display: block; width: 180px; max-width: 100%; min-width: 0; margin: 8px 0 0; padding: 5px 8px; font-size: 12px; }
.creation-pricing-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr); gap: 20px; align-items: stretch; }
.creation-price-panel { min-width: 0; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; align-self: start; }
.creation-price-heading { display: flex; align-items: center; gap: 8px; }
.creation-price-panel h4 { margin: 0; }
.creation-price-panel .creation-price-help, #formal-composer .creation-price-help { position: relative; flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#formal-composer > .creation-price-heading { position: relative; margin-bottom: 8px; }
#formal-composer > .creation-price-heading .section-title { margin-bottom: 0; }
#formal-composer .creation-price-help { position: static; }
#formal-composer .creation-price-tooltip { left: 0; right: auto; }
.planning-image-options { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.planning-image-options > label { margin: 0; }
.planning-image-options > select { width: auto; min-width: 120px; margin: 0; }
.preplan-help { position: relative; display: inline-grid; place-items: center; vertical-align: middle; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1; cursor: help; }
.preplan-help-tip { display: none; position: absolute; top: 100%; right: 0; z-index: 30; width: min(280px, 65vw); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--summary-ink); font-size: 12px; line-height: 1.7; box-shadow: 0 8px 24px var(--composer-shadow); }
.preplan-help:hover .preplan-help-tip, .preplan-help:focus-visible .preplan-help-tip { display: block; }
.creation-price-help > summary { display: grid; place-items: center; width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 50%; list-style: none; font-size: 10px; line-height: 1; color: var(--muted); }
.creation-price-help > summary::-webkit-details-marker { display: none; }
.creation-price-help > .creation-price-tooltip { display: none; position: absolute; right: -16px; top: 100%; z-index: 30; width: min(310px, 70vw); padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 24px var(--composer-shadow); }
.creation-price-help:hover > .creation-price-tooltip,.creation-price-help > summary:focus-visible + .creation-price-tooltip { display: block; }
.creation-price-panel p { font-size: 12px; margin: 8px 0; }
.creation-price-panel > strong { font-size: 24px; color: var(--type-selected-ink); }
.creation-price-panel small { display: block; line-height: 1.8; color: var(--muted); }
@media(max-width:1000px) { .creation-pricing-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.model-picker .model-tiers { margin: 10px 0 0; }
@media(max-width:900px) { .model-picker .model-tiers { grid-template-columns: minmax(0, 1fr); } .model-tier { padding: 12px; } }
.model-tiers span { font-size: 12px; }
.model-tiers button[aria-pressed=true] { border-color: var(--type-selected-line); color: var(--type-selected-ink); background: var(--type-selected-bg); }
@media (max-width: 600px) { .model-tiers { gap: 6px; } .model-tiers button { padding: 12px 8px; } .model-tiers strong { font-size: 16px; } }
.theme-toggle[aria-pressed=true] { border-color: var(--type-selected-line); color: var(--type-selected-ink); background: var(--type-selected-bg); }
.experience-dialog { width: min(720px, 94vw); max-height: 88vh; overflow: hidden; }
.experience-dialog[open] { display: flex; flex-direction: column; }
.experience-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.experience-header h2 { margin: 0; }
.experience-dialog > [role=status]:empty { display: none; }
.experience-content { min-height: 0; display: flex; flex-direction: column; }
.experience-dialog .experience-content > form { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; margin: 8px 0; }
.experience-content > form label { margin: 0; min-width: 0; }
.experience-content > form label:nth-of-type(3) { grid-column: 1 / -1; }
.experience-content > p, .experience-content > h3 { margin: 6px 0; flex-shrink: 0; }
.experience-style-list { min-height: 0; max-height: 272px; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-auto-rows: 132px; gap: 8px; flex-shrink: 1; }
.experience-style-list .experience-card { margin: 0; padding: 10px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.experience-style-list h4, .experience-style-list p { margin: 0 0 4px; }
.experience-style-list .experience-style-prompt { min-height: 0; overflow-y: auto; flex: 1; }
.experience-style-list .experience-card > div { flex-shrink: 0; }
.experience-dialog label { display: block; margin: 10px 0; }
.experience-dialog textarea, .experience-dialog input:not([type=checkbox]), .experience-dialog select { display: block; width: 100%; box-sizing: border-box; }
.experience-dialog textarea { height: clamp(55px, 12vh, 110px); overflow: auto; resize: none; }
.experience-dialog form, .experience-card { padding: 16px; margin: 16px 0; border: 1px solid var(--line, var(--surface-detail-16)); border-radius: 12px; }
.experience-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
.experience-dialog button { margin: 4px; }

/* Studio surfaces and compact asset actions. */
:root:not([data-theme="light"]) { --bg: var(--surface-detail-5); --paper: var(--surface-detail-8); --soft: var(--surface-detail-9); --line: var(--surface-detail-12); --input-bg: var(--surface-detail-7); --button-bg: var(--surface-detail-10); --button-hover: var(--surface-detail-11); --sidebar-bg: var(--surface-detail-6); }
.card, .composer, .model-tier { box-shadow: 0 8px 28px var(--surface-detail-1); }
.shot-header { background: color-mix(in srgb, var(--soft) 65%, transparent); }
.asset-tile { border-radius: 12px; transition: border-color .16s ease; }
.asset-tile:hover { border-color: var(--input-hover-line); }
.asset-tile > .asset-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; margin-top: 12px; }
.asset-tile > .asset-actions > button:first-child { grid-column: 1 / -1; border-color: var(--formal-accent); color: var(--gold); background: color-mix(in srgb, var(--blue) 10%, var(--paper)); }
.asset-tile > .asset-actions > button:first-child[aria-pressed=true] { background: var(--type-selected-bg); border-color: var(--type-selected-line); }
.asset-tile > .asset-actions > button { padding: 7px 10px; font-size: 12px; }
.asset-more { margin: 0; padding: 0; border: 0; }
.asset-more > button { padding: 7px 10px; font-size: 12px; color: var(--muted); }
.asset-more-panel { position: fixed; inset: auto; margin: 0; box-sizing: border-box; width: 160px; max-width: calc(100vw - 16px); padding: 6px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px var(--surface-detail-3); }
.asset-more-panel:popover-open { display: grid; gap: 4px; }
.asset-more-panel > a, .asset-more-panel > button { display: flex; justify-content: center; align-items: center; padding: 7px; font-size: 12px; text-decoration: none; border: 1px solid var(--line); border-radius: 7px; }
.asset-more-panel > .asset-danger { color: var(--danger); }
.streaming-preview { height: 190px; max-height: 190px; display: grid; grid-template-rows: 22px minmax(0, 1fr); gap: 12px; box-sizing: border-box; padding: 16px 18px; overflow: hidden; background: var(--stream-bg); border-color: var(--stream-line); color: var(--stream-text); user-select: none; -webkit-user-select: none; }
.streaming-preview-heading { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--stream-heading); }
.streaming-preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stream-dot); animation: streaming-pulse 1.4s ease-in-out infinite; }
.streaming-preview-viewport { min-height: 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(transparent, var(--stream-mask) 16%, var(--stream-mask) 88%, transparent); }
.streaming-preview-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.9; transition: transform 350ms linear; }
@keyframes streaming-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .streaming-preview-dot { animation: none; } .streaming-preview-content { transition: none; } }
@media (max-width: 760px) {
  header { flex-direction: column; align-items: stretch; }
  header > div { min-width: 0; }
  header .header-actions { justify-content: flex-start; }
  aside { padding: 16px; }
  h1 span { display: block; margin: 4px 0 0; }
  .attachment-heading { flex-wrap: wrap; }
  .model-tier select, input:not([type=checkbox]):not([type=radio]), select, textarea,
  .options input, .options select, aside input, aside select,
  .reference-card input, .reference-card select, .edit-field textarea { font-size: 16px; }
  button { min-height: 44px; }
  main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .shot-card { scroll-margin-top: 12px; scroll-margin-bottom: 90px; }
  .shot-navigation { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; width: auto; height: auto; margin: 0; flex-direction: row; padding: 4px; border-radius: 12px; }
  .shot-nav-marks { flex: 1; min-width: 0; flex-direction: row; width: auto; max-height: none; overflow-x: auto; gap: 4px; }
  .shot-nav-label { display: none !important; }
}

/* A compact library drawer leaves the phone screen available for creation. */
@media (max-width: 900px) {
  aside { position: sticky; top: 0; z-index: 45; inset-inline: auto; width: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); max-height: 72dvh; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-sidebar-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
  .mobile-sidebar-bar a { font-size: 20px; font-weight: 700; text-decoration: none; }
  .mobile-sidebar-bar button { min-height: 44px; padding: 9px 14px; }
  #project-sidebar:not([data-mobile-open="true"]) > :not(.mobile-sidebar-bar) { display: none; }
  aside > h1, aside > .eyebrow, aside > .muted { display: none; }
  .sidebar-resizer { display: none; }
  main { margin-left: 0; padding: 18px 12px calc(100px + env(safe-area-inset-bottom, 0px)); }
  main > header { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 18px; }
  .header-actions { display: flex; flex-wrap: wrap; min-width: 0; gap: 8px; }
  .header-actions button, .header-actions a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .composer, .card { min-width: 0; padding: 18px 14px; box-shadow: none; }
  .shot-card { padding: 0; }
  #history { display: grid; grid-template-columns: minmax(0, 1fr); max-height: 32dvh; overflow: auto; }
  #history button { width: 100%; min-width: 0; white-space: normal; }
  .history-item { min-width: 0; }
  .options, .composer > .options, .composer .pre-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-picker .model-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .model-picker .model-tier { display: contents; }
  .model-picker .model-tiers .model-tier button { grid-row: 1; min-height: 44px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; align-items: center; }
  .model-picker .model-tier.is-active button { border-color: var(--blue); background: var(--type-selected-bg); }
  .model-picker .model-tier button > span { display: none; }
  .model-picker .model-tier select { display: none; grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .model-picker .model-tier.is-active select { display: block; }
  .model-tier strong { min-height: auto; font-size: 16px; }
  .model-tiers .model-tier button { min-height: 44px; gap: 4px; }
  .shot-image-layout, .shot-video-layout { grid-template-columns: minmax(0, 1fr); }
  .shot-image-controls, .shot-video-reference { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .shot-image-strip > .asset-tile { flex-basis: min(300px, 100%); }
  .asset-preview-navigation { flex-wrap: wrap; gap: 10px; }
  .asset-preview-navigation a { align-self: center; }
  .asset-actions, .project-tools, .shot-header, .prompt-head, .attachment-heading { flex-wrap: wrap; }
  .project-tools > *, .actions > *, .shot-header > * { max-width: 100%; }
  input:not([type=checkbox]):not([type=radio]), select, textarea, .options input, .options select, .project-tools select { font-size: 16px; }
  button, .asset-tile > .asset-actions > button { min-height: 44px; }
  dialog { width: calc(100% - 24px); max-width: calc(100vw - 24px); max-height: 90dvh; padding: 16px; }
  dialog::backdrop { backdrop-filter: none; }
  .shot-task-trail::before, .image-task-trail::before, .shot-task-trail::after, .image-task-trail::after { animation: none; }
}
@media (max-width: 480px) {
  .options, .composer > .options, .composer .pre-options { grid-template-columns: minmax(0, 1fr); }
  .shot-card > .shot-header, .shot-card > .shot-meta { padding: 12px; }
  .shot-card > .prompt, .shot-card > .edit-field { margin: 12px; }
  .shot-images, .shot-video-layout { margin: 12px; padding: 10px; }
  .shot-header h3 { min-width: 0; flex-basis: 100%; }
  .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .project-tools > button { flex: 1 1 130px; }
  .shot-revision-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .composer > .options, .composer .pre-options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .composer .options > label { flex: 0 1 150px; min-width: 0; margin: 0; }
  .composer .options > label:has(#mode, #pre-mode) { flex-basis: 310px; }
  .composer .options > label:has(#delivery-output, #pre-delivery-output) { flex-basis: 240px; }
  .composer .options > label:has(#platform, #pre-platform) { flex-basis: 250px; }
  .composer .options > label:has(#ratio, #pre-ratio, #language, #pre-language) { flex-basis: 120px; }
  .model-picker .model-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; }
}
/* Completed plans prioritize reading while keeping the existing composer intact. */
.creation-composer { width: min(100%, max(1120px, 66.666vw)); margin-inline: auto; margin-bottom: 32px; min-width: 0; padding: 0; border: 0; background: transparent; }
.creation-composer > summary { display: list-item; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-weight: 600; }
.creation-composer > summary span { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 12px; }
.creation-composer[open] > summary { margin-bottom: 16px; }
.creation-composer > .composer { margin-top: 16px; }
@media (max-width: 600px) { .creation-composer > summary span { display: block; margin: 4px 0 0; } }

/* Revision drafts stay compact and visible beside the controls that started them. */
.action-dialog:has(.revision-form) { width: min(480px, calc(100vw - 24px)); }
.revision-form textarea { min-height: 84px; max-height: 180px; font-size: 14px; }
.revision-form > button { padding: 6px 10px; font-size: 12px; }
.revision-form > .muted { font-size: 11px; line-height: 1.6; }
.revision-reference-list { display: flex; gap: 8px; overflow-x: auto; max-height: 112px; }
.revision-reference-list > div { flex: 0 0 82px; }
.revision-reference-list img { width: 76px; height: 62px; object-fit: cover; border-radius: 6px; }
.revision-history { margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.revision-history > summary { padding: 7px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.revision-history-list { max-height: 200px; overflow: auto; padding: 0 10px 8px; }
.revision-history-list article { padding: 9px 0; border-top: 1px solid var(--line); }
.revision-history-list small { color: var(--muted); font-size: 10px; }
.revision-history-list pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 88px; overflow: auto; font: inherit; font-size: 12px; margin: 6px 0; }
.revision-history-list button { padding: 4px 9px; min-height: 30px; font-size: 11px; }
.revision-draft-status { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 7px 0; }
.revision-status { margin: 10px 14px 0; font-size: 12px; color: var(--blue); overflow-wrap: anywhere; }
.revision-status:empty { display: none; }
#revision-summary-status { margin-left: 10px; color: var(--blue); font-size: 11px; }
.result-management.is-revision-running { position: relative; isolation: isolate; border-color: var(--progress-line); }
.result-management.is-revision-running::after { content: ''; position: absolute; inset: -1px; padding: 2px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--shot-trail-angle), transparent 0% 58%, var(--trail-one) 76%, var(--trail-two) 89%, var(--trail-three) 97%, transparent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; animation: shot-border-trail 2.6s linear infinite; }
.mobile-plan-options { display: contents; }
.mobile-plan-options > summary { display: none; }
@media (min-width: 761px) { .composer .mobile-plan-options > .options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; } .composer .mobile-plan-options .options > label { flex: 0 1 150px; min-width: 0; margin: 0; } .composer .mobile-plan-options .options > label:has(#mode, #pre-mode) { flex-basis: 310px; } }
@media (max-width: 760px) {
  main { padding: 14px 12px calc(74px + env(safe-area-inset-bottom, 0px)); }
  header { gap: 8px; margin-bottom: 14px; } header h2 { font-size: 19px; } header .eyebrow { font-size: 9px; }
  .composer { padding: 14px; margin-bottom: 12px; border-radius: 10px; }
  .creation-composer { margin-bottom: 14px; } .creation-composer > summary { padding: 10px 12px; font-size: 13px; }
  .creation-composer[open] > summary { margin-bottom: 10px; } .creation-composer > .composer { margin-top: 10px; }
  button, .asset-tile > .asset-actions > button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  input:not([type=checkbox]):not([type=radio]), select { min-height: 36px; padding: 6px 8px; }
  textarea { padding: 9px 10px; line-height: 1.65; max-height: 190px; }
  .actions, .project-tools, .attachment-tools { gap: 7px; }
  .project-tools > button { flex: 0 0 auto; } .project-tools { padding: 10px 12px; }
  .result-management .output-actions { padding: 10px 12px 0; gap: 6px; }
  .model-picker .model-tiers .model-tier button { min-height: 36px; padding: 6px 8px; } .model-tier strong { font-size: 14px; }
  .model-picker .model-tiers { gap: 6px; } .creation-price-panel { padding: 10px 12px; }
  .mobile-plan-options { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
  .mobile-plan-options > summary { display: list-item; padding: 9px 0; font-size: 11px; color: var(--muted); cursor: pointer; overflow-wrap: anywhere; }
  .composer .mobile-plan-options > .options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
  .mobile-plan-options .options > label:has(#mode, #pre-mode, #platform, #pre-platform) { grid-column: 1 / -1; }
  .planning-image-options { gap: 6px; font-size: 11px; margin-top: 10px; }
  .shot-card > .shot-header, .shot-card > .shot-meta { padding: 10px 12px; } .shot-header h3 { font-size: 15px; }
  .view-tabs { gap: 5px; } .view-tabs button { padding: 5px 9px; font-size: 11px; min-height: 32px; }
  .revision-form textarea { font-size: 16px; max-height: 150px; } .revision-history-list { max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .result-management.is-revision-running::after { animation: none; } }

.new-creation-menu { position: relative; margin-bottom: 8px; }
.new-creation-menu > button { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-radius: 9px; font-size: 13px; }
.creation-menu-chevron { opacity: .75; transition: transform .15s; }
.new-creation-menu > button[aria-expanded=true] .creation-menu-chevron { transform: rotate(180deg); }
.new-creation-choices { position: absolute; z-index: 65; top: calc(100% + 6px); left: 0; width: max(100%, 234px); max-width: calc(100vw - 32px); padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 10px 28px var(--composer-shadow); }
.new-creation-choices[hidden] { display: none; }
.new-creation-choices > button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 50px; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; font-size: 12px; }
.new-creation-choices > button:hover, .new-creation-choices > button:focus-visible { background: var(--soft); border-color: var(--line); }
.new-creation-choices strong, .new-creation-choices small { display: block; }
.new-creation-choices strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.new-creation-choices small { color: var(--muted); font-size: 10px; line-height: 1.65; }
.creation-choice-symbol { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: var(--soft); font-size: 17px; }
.model-picker.composer { padding: 15px 20px; }
.model-picker .section-title { margin: 0 0 10px; font-size: 15px; }
.model-picker .creation-pricing-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); width: min(100%, 1040px); margin-inline: auto; align-items: stretch; gap: 12px; }
.model-picker .model-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.model-picker .model-tier { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 13px; border-radius: 12px; }
.model-picker .model-tiers .model-tier button { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: center; }
.model-picker .model-tier button > strong { min-height: 0; font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: .2px; }
.model-picker .model-tier button > span { display: block; min-height: 40px; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.model-picker .model-tier select, .model-picker .model-tier.is-active select { position: relative; display: block; width: 160px; max-width: 100%; height: 32px; min-height: 32px; margin: 0; padding: 5px 23px 5px 9px; border-radius: 7px; font-size: 12px; line-height: 20px; }
.model-picker .model-tier.is-active button { background: transparent; }
.model-picker .creation-price-panel { display: flex; flex-direction: column; justify-content: space-between; align-items: center; align-self: stretch; gap: 8px; margin: 0; padding: 16px 13px; border-color: var(--input-line); border-radius: 12px; background: linear-gradient(135deg, var(--studio-glow), transparent 78%), var(--soft); box-shadow: none; text-align: center; }
.model-picker .creation-price-heading { justify-content: center; flex-wrap: wrap; gap: 6px 8px; }
.model-picker .creation-price-heading h4 { font-size: 18px; font-weight: 600; color: var(--ink); }
.model-picker #creation-price-total { display: block; color: var(--type-selected-ink); font-size: 24px; font-weight: 650; line-height: 1.35; letter-spacing: -.3px; font-variant-numeric: tabular-nums; white-space: normal; }
.model-picker #creation-price-selection { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
@media (max-width: 760px) {
  .model-picker.composer { padding: 12px; }
  .model-picker .creation-pricing-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .model-picker .model-tiers { display: contents; }
  .model-picker .model-tier, .model-picker .creation-price-panel { padding: 12px 9px; gap: 9px; }
  .model-picker .model-tier button > strong { font-size: 20px; }
  .model-picker .model-tier button > span { min-height: 58px; }
  .model-picker .model-tier select, .model-picker .model-tier.is-active select { width: 160px; max-width: 100%; height: 36px; min-height: 36px; font-size: 14px; }
  .model-picker .creation-price-panel { max-width: 100%; }
}
.segment-duration-field { max-width: 180px; }
.story-import-status { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
#formal-composer .options { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
#formal-composer .options > label { display: flex; flex: 0 1 145px; flex-direction: column; gap: 6px; width: 145px; max-width: 100%; min-width: 0; margin: 0; font-size: 11px; line-height: 16px; }
#formal-composer .options > label:has(#mode) { flex: 0 1 140px; width: 140px; }
#formal-composer .options > #creation-form-field { flex-basis: 150px; width: 150px; }
#formal-composer .options > label:has(#segment-duration) { flex-basis: 108px; width: 108px; }
#formal-composer .options > label:has(#ratio, #language) { flex-basis: 108px; width: 108px; }
#formal-composer .options > label:has(#duration) { flex-basis: 160px; width: 160px; }
#formal-composer .options input, #formal-composer .options select { width: 100%; height: 38px; min-height: 38px; margin: 0; padding: 8px 10px; font-size: 12px; line-height: 20px; box-sizing: border-box; }
#formal-composer .options select { padding-right: 26px; }
#formal-composer #creation-relations { flex: 0 1 150px; min-width: 0; width: 150px; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#formal-composer #creation-relations > .creation-relation-title { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 0; font-size: 11px; line-height: 16px; list-style: none; text-align: left; color: var(--options-label); }
#formal-composer #creation-relations > .creation-relation-title::-webkit-details-marker { display: none; }
#formal-composer .creation-relation-title > strong { font-weight: 400; }
#formal-composer .creation-relation-title > .creation-relation-status { position: relative; display: block; height: 38px; margin: 0; padding: 8px 26px 8px 10px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); color: var(--input-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 20px; }
#formal-composer .creation-relation-title > .creation-relation-status::after { position: absolute; right: 10px; top: 9px; content: '⌄'; color: var(--muted); }
#formal-composer .creation-relation-popover { position: fixed; z-index: 90; width: min(440px, calc(100vw - 24px)); max-height: min(520px, calc(100dvh - 24px)); overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 28px var(--composer-shadow); }
#formal-composer .creation-relation-popover > .creation-relation-status:empty { display: none; }
#formal-composer #creation-relations:not([open]) > .creation-relation-popover { display: none; }
#formal-composer #creation-relations .creation-relation-options { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: none; gap: 12px; margin: 0 0 12px; }
#formal-composer #creation-relations .creation-relation-actions { gap: 8px; }
#formal-composer #creation-relations .creation-relation-actions > button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
#formal-composer > .actions { margin-top: 14px; gap: 8px; align-items: center; }
#formal-composer > .actions > button { min-height: 34px; padding: 6px 11px; font-size: 12px; }
@media (max-width: 760px) {
  #formal-composer .options { gap: 10px; }
  #formal-composer .options > label, #formal-composer .options > #creation-form-field, #formal-composer .options > label:has(#segment-duration, #ratio, #language, #duration), #formal-composer #creation-relations { flex: 0 1 calc((100% - 10px) / 2); width: calc((100% - 10px) / 2); max-width: calc((100% - 10px) / 2); }
  #formal-composer .options > label:has(#mode) { flex-basis: 100%; width: 100%; max-width: 100%; }
  #formal-composer .options input, #formal-composer .options select { height: 38px; min-height: 38px; font-size: 16px; padding: 6px 8px; }
  #formal-composer #creation-relations .creation-relation-options { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.idea-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.idea-suggestions[hidden] { display: none; }
.idea-suggestions > small { color: var(--muted); font-size: 11px; margin-right: 2px; }
.idea-suggestions button { max-width: 100%; padding: 6px 9px; font-size: 12px; border-radius: 8px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
#demand { min-height: 150px; max-height: min(480px, 55vh); resize: vertical; }
.inline-reference-editor { display: block; width: 100%; box-sizing: border-box; min-height: 150px; max-height: min(480px, 55vh); overflow-y: auto; resize: vertical; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); color: var(--input-ink); font: inherit; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.inline-reference-editor:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.inline-reference-editor[data-empty=true]::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.inline-reference-editor[aria-disabled=true] { opacity: .65; cursor: default; }
.inline-reference-chip { display: inline-flex; vertical-align: middle; align-items: center; gap: 4px; max-width: 84px; height: 22px; margin: 0 3px; padding: 1px 4px; box-sizing: border-box; border: 1px solid var(--image-accent); border-radius: 4px; background: color-mix(in srgb, var(--image-accent) 10%, var(--input-bg)); color: var(--image-accent); font-size: 11px; line-height: 18px; white-space: nowrap; cursor: pointer; user-select: all; }
.inline-reference-chip img { display: block; width: 20px; height: 16px; object-fit: cover; border-radius: 2px; pointer-events: none; }
.inline-reference-chip:hover, .inline-reference-chip:focus-visible { outline: 1px solid var(--image-accent); outline-offset: 1px; }
.composer-input-shell { min-width: 0; width: 100%; box-sizing: border-box; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); }
.composer-input-shell:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer-input-shell .inline-reference-editor { border: 0; border-radius: 8px; }
.composer-input-shell .inline-reference-editor:focus { outline: none; }
.composer-reference-tray { display: flex; flex-wrap: wrap; gap: 6px; max-height: 104px; overflow-y: auto; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.composer-reference-tag { display: inline-flex; align-items: center; max-width: min(240px, 100%); min-width: 0; height: 28px; box-sizing: border-box; border: 1px solid var(--reference-line); border-radius: 6px; background: var(--soft); }
.composer-reference-tag button { margin: 0; padding: 2px 5px; min-height: 0; height: 26px; border: 0; border-radius: 5px; background: transparent; font-size: 11px; }
.composer-reference-tag .composer-reference-open { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 205px; color: var(--ink); }
.composer-reference-open img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.composer-reference-label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer-reference-tag .composer-reference-remove { flex: 0 0 24px; width: 24px; padding: 0; font-size: 17px; color: var(--muted); }
.composer-reference-tag button:hover { background: var(--button-hover); }
.composer-reference-preview { width: min(760px, calc(100vw - 28px)); box-sizing: border-box; max-height: 90dvh; overflow-y: auto; }
.composer-reference-preview .dialog-head { position: sticky; top: -1px; z-index: 1; background: var(--paper); padding: 6px 0; }
.composer-reference-preview h2 { overflow-wrap: anywhere; font-size: 16px; margin: 0; }
.composer-reference-preview > img, .composer-reference-preview > video { display: block; max-width: 100%; max-height: 60dvh; margin: 10px auto; object-fit: contain; }
.composer-reference-preview > input { width: 100%; box-sizing: border-box; }
.composer-reference-frames { display: flex; gap: 8px; margin: 12px 0; }
.composer-reference-frames img { min-width: 0; width: calc((100% - 16px) / 3); max-height: 200px; object-fit: contain; }
.composer-reference-file-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60dvh; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--input-bg); font: inherit; }
.composer-reference-url { overflow-wrap: anywhere; }
.ss-video-edit-dialog { width: min(980px, calc(100vw - 28px)); }
.ss-segment-edit { min-width: 0; width: 100%; }
.ss-segment-edit .inline-reference-editor { min-height: 180px; max-height: 48dvh; }
.ss-segment-edit > .attachment-tools { justify-content: flex-start; margin-bottom: 8px; }
.vp-upload-reference { display: grid; gap: 5px; min-width: 0; max-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.vp-upload-reference img { width: 100%; height: 100px; object-fit: contain; }
.vp-upload-reference span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.director-stage { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.director-stage p { font-size: 12px; color: var(--muted); }
.director-map { display: block; width: min(100%, 340px); aspect-ratio: 1; margin: 12px auto; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg); touch-action: none; }
.director-grid { stroke: var(--line); stroke-width: .2; }
.director-route { stroke: var(--video-accent); stroke-width: .7; stroke-dasharray: 2 1; }
.director-map circle { cursor: grab; stroke: var(--ink); stroke-width: .4; }
.director-actor { fill: var(--image-accent); }.director-end { fill: var(--video-accent); }.director-camera { fill: var(--gold); }
.director-map text { fill: var(--ink); font: 3px sans-serif; pointer-events: none; }
.director-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; margin: 8px 0; }.director-fields label { display: grid; gap: 3px; font-size: 11px; width: 72px; }.director-fields label:first-child { width: 105px; }.director-fields input, .director-fields select { width: 100%; box-sizing: border-box; padding: 4px; }.director-stage button { font-size: 12px; padding: 5px 8px; margin: 3px; }
@media (max-width: 760px) { .inline-reference-editor { font-size: 16px; padding: 9px 10px; min-height: 120px; max-height: min(360px, 50dvh); line-height: 1.65; } }
#formal-composer > .actions { gap: 14px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
#formal-composer #generate { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 22px; border: 1px solid color-mix(in srgb, var(--focus) 40%, transparent); border-radius: 12px; background: linear-gradient(120deg, var(--blue-hover), color-mix(in srgb, var(--blue) 75%, var(--image-accent))); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .3px; box-shadow: 0 4px 14px var(--primary-shadow); transition: background .18s, box-shadow .18s, transform .18s; }
#formal-composer #generate::before { content: '✦'; font-size: 19px; line-height: 1; }
#formal-composer #generate:hover:not(:disabled) { background: linear-gradient(120deg, var(--blue-hover), color-mix(in srgb, var(--blue-hover) 75%, var(--image-accent))); box-shadow: 0 5px 18px var(--primary-shadow); transform: translateY(-1px); }
#formal-composer #generate:active:not(:disabled) { transform: translateY(0); }
#formal-composer #generate:disabled { opacity: .55; box-shadow: none; }
#formal-composer .planning-effort-control { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; font-size: 12px; color: var(--muted); }
#formal-composer .planning-effort-segments { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg); }
#formal-composer .planning-effort-segments > button { flex: 0 0 auto; width: auto; min-height: 32px; margin: 0; padding: 6px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; line-height: 18px; white-space: nowrap; box-shadow: none; }
#formal-composer .planning-effort-segments > button:hover:not(:disabled) { background: var(--button-hover); color: var(--ink); }
#formal-composer .planning-effort-segments > button[aria-pressed="true"] { background: var(--button-hover); border-color: var(--input-hover-line); color: var(--ink); font-weight: 600; box-shadow: 0 2px 5px var(--primary-shadow); }
#formal-composer .planning-effort-segments > button:focus-visible, #formal-composer #generate:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#formal-composer > .actions > #status { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
#formal-composer > .actions > #status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { #formal-composer #generate { transition: none; } }
.planning-image-options > select { width: 132px; min-width: 0; height: 32px; min-height: 32px; padding: 5px 24px 5px 9px; font-size: 12px; line-height: 20px; }
.planning-image-options > label { font-size: 12px; line-height: 20px; }
#output-panel { padding-top: 24px; border-top: 1px solid var(--line); }
#output-panel > .output-header::before { content: '生成结果'; display: inline-block; flex: 0 0 auto; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--video-accent); font-size: 12px; line-height: 20px; }
#planning-idea-help { margin: 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  #demand { min-height: 136px; max-height: 280px; font-size: 16px; }
  .planning-image-options > select { min-height: 36px; height: 36px; font-size: 14px; }
  #formal-composer > .actions { gap: 12px; }
  #formal-composer .planning-effort-control { gap: 8px; }
  #formal-composer .planning-effort-segments > button { min-height: 36px; padding-inline: 12px; font-size: 13px; }
  .idea-suggestions { gap: 5px; margin: 8px 0 10px; }
  .idea-suggestions > small { flex-basis: 100%; }
  .idea-suggestions button { min-height: 42px; padding: 6px 8px; font-size: 11px; flex: 1 1 42%; }
  .new-creation-menu > button { min-height: 42px; }
  .streaming-preview { height: 150px; max-height: 150px; padding: 12px; gap: 8px; }
}
