.generation-heading { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.project-launchers { display: flex; gap: 7px; margin: -8px 0 12px; }
.project-launchers a { flex: 1; border: 1px solid #303630; border-radius: 7px; padding: 7px 8px; color: var(--accent); text-decoration: none; text-align: center; font-size: 10px; }
.project-assets { display: grid; gap: 8px; max-height: 216px; overflow: auto; }
.project-asset { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid #252b27; background: #0d0f0e; border-radius: 9px; padding: 7px; }
.project-asset-preview { width: 48px; height: 42px; border-radius: 6px; overflow: hidden; background: #171c18; display: grid; place-items: center; color: var(--accent); font: 9px var(--mono); text-transform: uppercase; }
.project-asset-preview img,.project-asset-preview video { width: 100%; height: 100%; object-fit: cover; }
.project-asset-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.project-asset-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.project-asset-copy span { color: #737c74; font: 8px var(--mono); text-transform: uppercase; }
.project-asset button { border: 0; background: transparent; color: #9fa89f; cursor: pointer; font-size: 10px; }
.project-media-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding: 12px 8px 2px; }
.project-media-controls label { min-width: 0; }
.project-media-controls label span { display: block; color: #727a73; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.project-media-controls select { width: 100%; border: 1px solid #303630; border-radius: 7px; padding: 7px; background: #0d100e; overflow: hidden; text-overflow: ellipsis; }
.export-action { color: var(--accent); border-color: #56683e; }
.preview-audio { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; background: radial-gradient(circle at 50% 20%,#23331d,#101311 55%); text-align: center; }
.preview-audio span { color: var(--accent); font: 10px var(--mono); letter-spacing: .18em; }
.preview-audio strong { max-width: 520px; font: 28px/1.15 Georgia,serif; }
.preview-audio audio { width: min(520px,90%); }
.timeline-editor { margin: 0 0 18px; padding: 12px; border: 1px solid #2d352f; border-radius: 10px; background: linear-gradient(145deg,#111512,#0b0d0c); }
.timeline-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.timeline-title output { color: var(--accent); letter-spacing: 0; }
.timeline-track { position: relative; height: 24px; border: 1px solid #303730; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(90deg,#151a16 0,#151a16 calc(10% - 1px),#2d332e calc(10% - 1px),#2d332e 10%); }
.timeline-track span { position: absolute; top: 4px; bottom: 11px; left: 0; width: 100%; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px #d8ff6350; }
.timeline-track i { position: absolute; top: 14px; bottom: 4px; left: 0; width: 100%; border-radius: 3px; background: #76bfff; }
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.timeline-grid label,.export-title { min-width: 0; }
.timeline-grid label span,.export-title span { display: block; margin-bottom: 4px; color: #778079; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.timeline-grid input,.timeline-grid select,.export-title input { width: 100%; min-width: 0; border: 1px solid #303630; border-radius: 6px; background: #0b0e0c; color: var(--ink); padding: 7px; font: 10px var(--mono); outline: none; }
.export-title { display: block; margin-top: 9px; }
.export-heading { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 16px; margin-bottom: 10px; }
.export-heading span:last-child { color: #737c74; font: 9px var(--mono); }
.export-history { display: flex; flex-direction: column; gap: 7px; max-height: 210px; overflow: auto; padding-right: 3px; }
.export-card { border: 1px solid #272d29; border-radius: 8px; background: #0d100e; padding: 9px; }
.export-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.export-card-meta { display: flex; justify-content: space-between; gap: 7px; color: #747d75; font: 8px var(--mono); margin: 5px 0 8px; }
.export-card a { color: var(--accent); font-size: 9px; text-decoration: none; }
.storyboard-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#111411,#0b0d0c); padding: 18px; }
.storyboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.storyboard-header .kicker { margin-bottom: 6px; }
.storyboard-header h2 { margin: 0; font: 500 28px/1 Georgia,serif; }
.storyboard-header p:not(.kicker) { margin: 7px 0 0; color: #7c857e; font-size: 11px; }
.storyboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.storyboard-actions button { border: 1px solid #343b35; border-radius: 7px; background: #131714; color: #aeb5ae; padding: 8px 10px; font: 10px var(--sans); cursor: pointer; }
.storyboard-actions button.primary { border-color: #718641; background: var(--accent); color: #10150d; font-weight: 700; }
.storyboard-actions button:disabled { opacity: .45; cursor: wait; }
.storyboard-master { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(150px,.8fr); gap: 10px; margin: 16px 0; padding: 12px; border: 1px solid #272d28; border-radius: 9px; background: #0b0e0c; }
.storyboard-master label span,.scene-field span { display: block; margin-bottom: 4px; color: #737c75; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.storyboard-master input[type="text"],.storyboard-master select,.scene-field input,.scene-field select { width: 100%; border: 1px solid #303630; border-radius: 6px; background: #111512; color: var(--ink); padding: 7px; font: 10px var(--sans); outline: none; }
.storyboard-master label:has(input[type="range"]) { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 8px; }
.storyboard-master label:has(input[type="range"]) span { grid-column: 1 / -1; }
.storyboard-master output { color: var(--accent); font: 9px var(--mono); }
.storyboard-scenes { display: flex; flex-direction: column; gap: 8px; }
.storyboard-empty { margin: 0; padding: 24px; border: 1px dashed #303630; border-radius: 9px; color: #6f7770; font-size: 11px; text-align: center; }
.scene-card { display: grid; grid-template-columns: 28px 96px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid #29302a; border-radius: 9px; background: #0d100e; padding: 9px; }
.scene-index { color: var(--accent); font: 10px var(--mono); text-align: center; }
.scene-thumb { width: 96px; height: 58px; border-radius: 6px; object-fit: cover; background: #151916; }
.scene-fields { display: grid; grid-template-columns: minmax(140px,1.8fr) 72px 72px 100px 72px 72px; gap: 7px; min-width: 0; }
.scene-field.caption { grid-column: 1 / -1; }
.scene-controls { display: grid; grid-template-columns: repeat(2,28px); gap: 5px; }
.scene-controls button { width: 28px; height: 28px; border: 1px solid #303630; border-radius: 6px; background: #151816; color: #9ca49d; cursor: pointer; }
.scene-controls button.remove { color: var(--danger); }
.storyboard-summary { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #292f2a; margin-top: 12px; padding-top: 10px; color: #747d76; font: 9px var(--mono); }
@media(max-width:980px){.storyboard-header{flex-direction:column}.storyboard-actions{justify-content:flex-start}.storyboard-master{grid-template-columns:1fr 1fr}.storyboard-master label:last-child{grid-column:1/-1}.scene-card{grid-template-columns:24px 76px minmax(0,1fr) auto}.scene-thumb{width:76px}.scene-fields{grid-template-columns:1fr 64px 64px 90px 64px 64px}.scene-field.transition{grid-column:auto}}
@media(max-width:720px){.project-media-controls{grid-template-columns:1fr}.timeline-grid{grid-template-columns:1fr 1fr}.export-history{max-height:none}.storyboard-master{grid-template-columns:1fr}.storyboard-master label:last-child{grid-column:auto}.scene-card{grid-template-columns:24px minmax(0,1fr) auto}.scene-thumb{display:none}.scene-fields{grid-template-columns:1fr 1fr}.scene-field.clip,.scene-field.caption,.scene-field.transition{grid-column:1/-1}.storyboard-summary{flex-direction:column}}
.continuity-field { grid-column: 1 / -1; }
.storyboard-master textarea { width: 100%; min-height: 44px; resize: vertical; border: 1px solid #303630; border-radius: 6px; background: #111512; color: var(--ink); padding: 7px; font: 10px var(--sans); outline: none; }
.storyboard-master textarea:focus,.storyboard-master input:focus,.storyboard-master select:focus { border-color: #67755d; }
