/* Studio design system: one spacing rhythm, predictable controls, stable media. */
:root{--bg:#f4f5f7;--text:#242a35;--muted:#6d7481;--line:#e2e5eb;--accent:#176b58;--soft:#eaf3ef;--radius:14px}
html{scrollbar-gutter:stable}body{background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}
*{box-sizing:border-box}button,input,select,textarea{font:inherit}button,a.primary{min-height:40px;padding:10px 16px;border-radius:9px;font-weight:600;font-size:13px;line-height:1.35;transition:background .15s,border-color .15s;box-shadow:none}button:disabled{opacity:.5;cursor:not-allowed}button:hover{transform:none}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#125541;color:#fff}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:44px;width:100%}input,select,textarea{border:1px solid #dce0e7;border-radius:9px;background:#fff;color:var(--text);padding:11px 13px;box-shadow:none}textarea{resize:vertical;line-height:1.65;width:100%}input:focus,select:focus,textarea:focus{border-color:#5d9e8e;outline:3px solid #176b5810}input::placeholder,textarea::placeholder{color:#959ba5}label{font-size:12px;font-weight:600;color:#535b68;line-height:1.5}label>input,label>textarea,label>select{display:block;margin-top:8px}input[type=checkbox],input[type=radio]{width:16px;height:16px;min-height:0;accent-color:var(--accent)}
h1,h2,h3,h4{color:var(--text)}h1{font-weight:700}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:16px;letter-spacing:-.2px}p{line-height:1.65}.muted,small{color:var(--muted)}.row{gap:12px;align-items:center;flex-wrap:wrap}.row>*{min-width:0}.panel{border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:24px;box-shadow:0 2px 5px #18202c03;margin-bottom:24px}.panel>.panel{box-shadow:none}.panel>h2:first-child{margin-top:0}.panel>p:last-child{margin-bottom:0}.panel[hidden],[hidden]{display:none!important}
.sidebar{width:220px;padding:28px 16px;background:#fff;border-right:1px solid var(--line);gap:30px}.sidebar .brand{font-size:16px;letter-spacing:-.4px}.sidebar nav a{font-size:13px;padding:12px 14px;border-radius:9px;color:#737b87}.sidebar nav a.active{background:#edf4f1;color:#165c4b;font-weight:700}.sidebar nav a:hover{background:#f4f6f8}.sidebar .footer{padding:18px 10px}.shell{margin-left:220px}.topbar{height:64px;background:#ffffffed;border-bottom:1px solid var(--line);padding:0 32px}.topbar .muted{font-size:12px}.topbar .pill{font-size:9px;letter-spacing:.08em;background:#f3f4f6}main{max-width:1440px;width:100%;padding:32px 40px 80px}.pagehead{margin:0 0 28px;gap:24px;align-items:center}.pagehead h1{font-size:30px;letter-spacing:-1px;margin:0}.pagehead p{font-size:13px;margin:7px 0 0}.project-back{font-size:12px;min-height:28px;margin:0 0 18px}.eyebrow{font-size:10px;font-weight:700;color:#839087;letter-spacing:.12em}.optional{font-weight:400;color:#9198a2;font-size:11px;margin-left:6px}
.genie-steps{display:flex;gap:6px;padding:5px;background:#eaedf1;border:0;border-radius:12px;margin:0 0 28px;width:100%}.genie-steps button{flex:1;padding:11px 16px;min-height:44px;border:0;border-radius:8px;font-size:12px;color:#808895;background:transparent;display:flex;justify-content:center;align-items:center;gap:9px}.genie-steps button.active{background:white;color:#176b58;box-shadow:0 1px 4px #17202c0a;border:0}.genie-steps b{font-size:13px}.library-hint{margin:0 0 20px;padding:10px 14px;background:#ecf2ef;border-radius:8px;font-size:12px;max-width:none}.genie-conversation{padding:28px;margin:0}.brief-heading{padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid var(--line)}.brief-heading h2{margin:0}.brief-heading p{margin:6px 0 0;font-size:13px;color:var(--muted)}.conversation-switch{display:none}.project-format{padding:0 0 24px!important;margin:0 0 28px!important;border:0;border-bottom:1px solid var(--line)!important;border-radius:0;box-shadow:none}.project-format .section-heading h2{font-size:14px;margin:0}.project-format .section-heading p{font-size:12px;margin:5px 0 18px;color:var(--muted)}.genie-duration-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.genie-duration-controls label{margin:0}.project-format>small{display:block;margin-top:12px;font-size:11px}.genie-sources>label{margin:20px 0}.script-section-heading{margin-bottom:20px}.script-section-heading h3{font-size:24px;letter-spacing:-.7px;margin:5px 0}.script-section-heading p{font-size:13px;color:var(--muted);margin:0}.production-reference-heading{border-top:1px solid var(--line);padding-top:24px;margin-top:30px}.production-reference-heading h3{margin:0}.production-reference-heading p{margin:5px 0;font-size:12px;color:var(--muted)}.reference-approach{padding:20px;background:#f8f9fb;border:1px solid var(--line);border-radius:12px}.reference-approach label{margin:0 0 16px}.brief-save{border-top:1px solid var(--line);padding-top:22px;margin-top:24px;gap:18px}.brief-save small{max-width:65ch;font-size:12px}.brief-save .primary{min-height:46px;padding:12px 24px}
.writer-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.writer-canvas{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.writer-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 18px;background:#fafbfc;border-bottom:1px solid var(--line);flex-wrap:wrap}.writer-tabs{display:flex;gap:4px;background:#edf0f3;padding:3px;border-radius:9px}.writer-tabs button{background:transparent;border:0;min-height:34px;padding:8px 12px;font-size:12px}.writer-tabs [aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #25304312;color:var(--accent)}.writer-save-state{font-size:10px;color:#87909d}.writer-layout fieldset{border:0;padding:20px;margin:0;min-width:0;display:grid;gap:20px}.writer-cast-label textarea{min-height:70px}.writer-free-label textarea{min-height:330px;border:0;background:#fafbfc;padding:18px;font-size:14px}.writer-footer{border-top:1px solid var(--line);padding:16px 20px;display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center}.writer-footer small{font-size:11px;max-width:38ch}.writer-footer .row{gap:8px}.writer-footer button{font-size:12px}.writer-assistant{background:#f6f8f7;border:1px solid #e0e8e4;border-radius:12px;padding:20px;min-width:0}.writer-assistant-heading{display:flex;gap:12px;align-items:center;margin-bottom:20px}.writer-spark{width:34px;height:34px;border:1px solid #d9e6df;border-radius:10px;background:#fff;color:var(--accent);display:grid;place-items:center;font-size:20px;flex-shrink:0}.writer-assistant h3{margin:0;font-size:15px}.writer-assistant-heading p{font-size:11px;margin:3px 0 0;color:var(--muted)}.writer-assistant fieldset{padding:0;gap:18px}.writer-assistant textarea{font-size:12px;background:white}.writer-assistant-note{font-size:11px;color:#89928c;margin:18px 0 0}.writer-reference{border-top:1px solid #dee6e1;padding-top:14px}.writer-reference summary{font-size:12px;font-weight:600;color:#53665b;cursor:pointer}.writer-reference p{font-size:11px;color:var(--muted);margin:12px 0}.writer-reference label{display:block;margin:14px 0}.writer-loading,.writer-job{display:flex;gap:14px;align-items:center;padding:22px;background:#f4f8f6;border-radius:10px;min-height:100px}.writer-loading p,.writer-job p{font-size:12px;margin:4px 0 0;color:var(--muted)}.writer-job{margin-top:18px;padding:14px;align-items:start}.writer-job strong{font-size:12px}.writer-job p{font-size:11px}.writer-job .preview-spinner{margin-top:4px}.writer-scenes{display:grid;gap:20px}.writer-scene{padding:0 0 22px;border-bottom:1px solid var(--line);min-width:0}.writer-scene:last-child{border-bottom:0;padding-bottom:0}.writer-scene>header{display:flex;gap:10px;align-items:center;margin-bottom:16px}.writer-scene>header input{border:0;background:transparent;min-width:0;font-weight:650;padding:8px;flex:1}.scene-number{font-size:11px;font-variant-numeric:tabular-nums;color:#8a948e}.writer-scene-tools{display:flex;gap:3px;flex-shrink:0}.writer-scene-tools button{min-height:30px;min-width:30px;padding:4px 8px;border:0;background:#f4f6f8}.writer-scene textarea{background:#fafbfc;font-size:13px}.writer-scene-bottom{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:14px;margin-top:16px}.writer-scene-bottom textarea{background:#f7f5fa;border-color:#e6e1ef}.writer-total{font-size:12px;text-align:right;color:var(--muted);margin:0}.writer-add{border:1px dashed #cddbd4;color:var(--accent);background:#f8fbf9}.writer-suggestion{margin-top:24px;padding:24px;border:1px solid #ccdfd4;border-radius:12px;background:#fbfdfb}.writer-suggestion>header{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:24px}.writer-suggestion>header h3{font-size:20px;margin:6px 0}.writer-suggestion>header p{font-size:12px;color:var(--muted)}.writer-suggestion>header button{flex-shrink:0}.writer-suggestion .writer-scene{margin-bottom:20px}.writer-suggestion .writer-scene p{white-space:pre-wrap;font-size:13px}.writer-dialogue{padding:12px 16px;background:#f2eff8;border-left:3px solid #9a89bf;border-radius:5px;color:#57466e}
/* Stable media boxes and a quieter production canvas. */
.genie-workbench{gap:24px}.genie-assets-folder{margin:0}.genie-assets-folder>summary{display:flex;align-items:center;gap:14px;cursor:pointer;padding:2px 0;min-height:30px}.genie-assets-folder>summary strong{font-size:15px}.genie-assets-folder>summary span{font-size:12px}.genie-ingredients{gap:20px;align-items:stretch}.genie-ingredient{display:flex;flex-direction:column;gap:14px;margin:0;padding:18px;min-width:0}.genie-ingredient>img,.genie-image-placeholder{height:240px;width:100%;object-fit:contain;background:#f6f7f9;border:1px solid #edf0f3;border-radius:10px;flex-shrink:0}.genie-ingredient h3{font-size:15px;min-height:24px}.genie-ingredient>p{font-size:12px;min-height:40px}.genie-ingredient>.row:last-child{margin-top:auto}.genie-ingredient textarea{min-height:84px}.genie-storyboard{padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff}.storyboard-contact-sheet{margin:24px 0;border-radius:12px}.sheet-cell img{aspect-ratio:var(--panel-aspect,1);height:auto;max-height:none;object-fit:contain}.sheet-cell>p{min-height:58px;font-size:12px}.sheet-cell-heading{min-height:32px}.sheet-panel-empty{aspect-ratio:1;min-height:0}.sheet-feedback textarea{min-height:112px;background:#fafbfc}.sheet-dialogue{background:#fafbfc;border:1px solid var(--line);border-radius:12px;padding:20px}.sheet-dialogue-row:last-child{border-bottom:0}.sheet-spoken{border-left-color:#a59abd;background:#f1eef7;color:#564667}.stage-next{padding:20px;border-radius:12px;background:#f5f8f6;border:1px solid #e0e7e3;margin-top:24px}.stage-next p{font-size:12px}.completion-panel{padding:18px 20px;background:#f7f9f8;border:1px solid #e1e8e4;border-radius:12px}.completion-panel .primary{background:white;color:var(--accent);border-color:#cadcd4}.handoff-build{display:flex;gap:20px;align-items:center;padding:20px 0}.handoff-build>p{font-size:12px;max-width:60ch}.handoff-format{gap:10px}.result-edit-card,.edit-range-panel,.edit-change-panel{border-radius:12px}.result-editor-grid{gap:24px;align-items:start}.result-edit-card>video{aspect-ratio:16/9;object-fit:contain}.result-generation{padding-top:24px}.edit-reference-list{scrollbar-gutter:stable;overflow-anchor:none}.frame-picker{overflow-anchor:none}.genie-activity{background:#fff;border:1px solid var(--line);border-left:3px solid var(--accent);padding:18px 20px;margin:0 0 24px;box-shadow:none;border-radius:10px}.genie-activity strong{font-size:13px;color:#36584a}.genie-activity p{font-size:12px;margin:6px 0 12px;color:var(--muted)}.genie-activity small{font-size:10px;color:#8a938f}.activity-track{height:3px;background:#eaf0ed;border-radius:10px;overflow:hidden;margin:14px 0 10px}.activity-track>span{display:block;height:100%;width:35%;background:#5b9c87;border-radius:10px;animation:studio-progress 1.8s ease-in-out infinite alternate}progress{appearance:none;-webkit-appearance:none;height:4px;width:100%;border:0;border-radius:5px;overflow:hidden;background:#e9efeb;accent-color:var(--accent)}progress::-webkit-progress-bar{background:#e9efeb}progress::-webkit-progress-value{background:#5b9c87;border-radius:5px}progress:indeterminate{background:linear-gradient(90deg,#e9efeb 0%,#91b7a7 45%,#e9efeb 75%);background-size:220% 100%;animation:studio-shimmer 2s linear infinite}progress:indeterminate::-webkit-progress-bar{background:transparent}.preview-progress{border-radius:10px!important;background:#f3f8f5!important}.preview-spinner{border-width:2px;width:16px;height:16px}.control-reason.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.note{border:1px solid #ecdfbf;border-left:3px solid #c7a762;background:#fffaf0;padding:16px 18px;border-radius:9px;font-size:12px;line-height:1.65}.workspace-card{box-shadow:none;border-radius:14px}.workspace-card:hover{border-color:#c7d9d0;box-shadow:0 5px 18px #1e392508}.project-cover{height:auto;aspect-ratio:16/10}.project-card-body{padding:20px}.project-card-body h2{font-size:17px;min-height:48px}.workspace-stats{gap:16px}.workspace-stats>div{border-radius:12px;background:white;padding:20px}.workspace-stats strong{font-size:27px}.workspace-stats span{font-size:12px}.status-badge{font-size:10px;border-radius:6px}.workspace-filters{gap:8px}.workspace-filters button{font-size:12px;min-height:34px;padding:7px 12px;border-radius:8px}.workspace-toolbar{gap:16px}.workspace-grid{gap:20px}dialog{max-height:85vh;overflow:auto;border-radius:16px;padding:28px}#toast{border-radius:10px;font-size:13px;box-shadow:0 8px 28px #16271e25}
@keyframes studio-progress{from{transform:translateX(0)}to{transform:translateX(185%)}}@keyframes studio-shimmer{to{background-position:-220% 0}}
@media(min-width:1600px){main{padding-left:48px;padding-right:48px}.writer-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1100px){main{padding:28px 24px 72px}.writer-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.writer-assistant{padding:16px}.genie-duration-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.writer-scene-tools{gap:0}.writer-toolbar{padding:12px}.genie-conversation{padding:22px}}
@media(max-width:900px){.writer-layout{grid-template-columns:1fr}.writer-assistant{position:static}.writer-assistant fieldset{grid-template-columns:1fr 1fr}.writer-assistant fieldset>label:first-child,.writer-reference,.writer-assistant .primary{grid-column:1/-1}}
@media(max-width:800px){.sidebar{width:100%;padding:0}.shell{margin:0}.sidebar nav a{padding:10px 6px;font-size:10px}.topbar{padding:0 18px}.pagehead h1{font-size:26px}main{padding:24px 16px 100px}.genie-steps{gap:3px}.genie-steps button{padding:10px 7px;gap:5px}.genie-steps b{font-size:11px}.genie-conversation,.genie-storyboard{padding:18px}.workspace-toolbar{grid-template-columns:1fr 1fr}.genie-ingredients{grid-template-columns:1fr}.handoff-build{align-items:start;flex-direction:column}}
@media(max-width:520px){.writer-layout fieldset{padding:14px}.writer-assistant fieldset{padding:0}.writer-footer{padding:14px}.writer-footer .row{width:100%}.writer-scene-bottom{grid-template-columns:minmax(0,1fr) 60px}.writer-suggestion{padding:16px}.writer-suggestion>header{flex-direction:column;gap:12px}.writer-scene>header{gap:4px}.genie-duration-controls{gap:12px}.pagehead{gap:14px}.brief-save{align-items:stretch;flex-direction:column}.brief-save button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
input,textarea,select{font-weight:400}.writer-free-label textarea{font-weight:400}.writer-scene>header input{font-weight:600}.genie-storyboard>.row:first-child{align-items:center}.writer-save-state{min-height:16px}.script-section-heading{margin-bottom:18px}.script-section-heading h3{font-size:22px}.brief-heading{padding-bottom:16px;margin-bottom:20px}.project-format{padding-bottom:20px!important;margin-bottom:22px!important}
.writer-suggestion>summary{font-size:13px;font-weight:600;color:var(--accent);cursor:pointer}.writer-suggestion[open]>summary{margin-bottom:22px}.writer-conflict{margin-bottom:20px}
/* Background updates live outside document flow, so starting a job cannot push the editor down. */
.genie-activity{position:fixed;right:24px;bottom:22px;width:340px;max-width:calc(100vw - 48px);z-index:35;margin:0;box-shadow:0 8px 30px #243c2b15}.genie-activity p{font-size:11px;margin:5px 0 8px}.genie-activity small{font-size:10px}.genie-activity .activity-track{margin:10px 0 7px}.sheet-state{min-height:18px}.sheet-cell>p{overflow-wrap:anywhere}.writer-suggestion{overflow-anchor:none}button[aria-busy="true"]::after{position:absolute;right:8px;top:calc(50% - 6px);margin:0}button[aria-busy="true"]{box-shadow:inset 0 0 0 1px #ffffff18}
@media(max-width:800px){.genie-activity{bottom:78px;right:16px;max-width:calc(100vw - 32px);width:320px}}
input[type=file]{width:100%;height:44px;min-height:44px;padding:6px 8px;font-size:12px}input[type=file]::file-selector-button{font:inherit;border:1px solid var(--line);border-radius:6px;background:#f6f8fa;color:#59616c;padding:5px 10px;margin-right:12px}.result-import>div>label{width:100%}.result-import>div>button{align-self:start}
.vault-meta,.vault-filters{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:24px}.vault-meta p{grid-column:1/-1;margin:0;color:var(--muted)}.vault-card{display:flex;flex-direction:column;gap:12px;min-width:0}.vault-card h2,.vault-card p{margin:0}.vault-card .row{margin-top:auto}.vault-excerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;color:var(--muted);line-height:1.6}.vault-finish{margin-top:24px;display:grid;gap:16px}.vault-finish p{max-width:760px}.vault-card details{border-top:1px solid #e2e7ec;padding-top:12px}#script-vault-page>section>h2{margin:28px 0 16px}@media(max-width:700px){.vault-meta,.vault-filters{grid-template-columns:1fr}}
.sidebar nav>button{width:100%;text-align:left;background:transparent;border:0;box-shadow:none;padding:13px 14px;color:#53636d;font:inherit;border-radius:10px}.sidebar nav>button:hover,.sidebar nav>button.active{background:#edf4f1;color:#245448}
@media(max-width:800px){.sidebar nav{overflow-x:auto;justify-content:flex-start}.sidebar nav>a,.sidebar nav>button{flex:0 0 86px;width:86px;min-width:86px;justify-content:center;text-align:center;font-size:11px;padding:10px 8px;line-height:1.4;white-space:normal}.sidebar nav>button{border-radius:0}}
/* One compact progress tray shared by every page; never stretches from top to bottom. */
.background-task-tray{position:fixed;inset:auto 22px 20px auto;width:340px;max-width:calc(100vw - 32px);height:auto;max-height:min(420px,60vh);overflow:auto;z-index:40;border:1px solid #dbe5df;border-radius:14px;background:#fff;box-shadow:0 8px 30px #243c2b20;overflow-anchor:none}.task-tray-toggle{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;text-align:left;border:0;border-radius:14px;background:#fff;box-shadow:none}.task-tray-toggle>span:nth-child(2){flex:1;min-width:0}.task-tray-toggle strong,.background-task-row strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.task-tray-toggle small,.background-task-row small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:3px}.task-tray-dot{height:8px;width:8px;flex-shrink:0;border-radius:50%;background:#408c76;box-shadow:0 0 0 4px #e6f1ec}.background-task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;border:0;border-top:1px solid #edf0ee;border-radius:0;padding:12px 16px;background:#fff;box-shadow:none}.background-task-row:hover{background:#f5f9f6}#background-task-list>p{font-size:10px;color:var(--muted);padding:8px 16px 14px;margin:0}.genie-activity{top:auto;height:auto;max-height:200px}body:has(.background-task-tray) #toast{bottom:106px}@media(max-width:800px){.background-task-tray{right:16px;bottom:76px;width:320px;max-height:45vh}body:has(.background-task-tray) #toast{bottom:170px}}
.task-tray-dot[data-state="error"]{background:#b56a24;box-shadow:0 0 0 4px #fff2dd}.task-tray-dot[data-state="ready"]{background:#408c76;box-shadow:none}
.task-tray-dismiss{display:block;margin:0 16px 12px;font-size:11px;min-height:32px;padding:5px 8px}

/* Stable, explicit progress and dense reusable-script library. */
.stage-loading{max-width:760px!important;margin:48px auto!important;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:20px;padding:40px!important}.stage-loading p{max-width:560px;margin:12px auto}.studio-spinner{display:inline-block;width:38px;height:38px;border:3px solid #dce9e4;border-top-color:#176b58;border-radius:50%;animation:studio-spin .85s linear infinite;flex:none}.studio-spinner.small{width:17px;height:17px;border-width:2px;vertical-align:middle;margin-right:8px}.handoff-loading{background:#f3f8f6;border-radius:12px;padding:20px!important;min-height:96px}.handoff-loading p{width:100%;margin:8px 0 0;color:#52665f}@keyframes studio-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.studio-spinner{animation-duration:2s}}.vault-table-wrap{overflow-x:auto;background:white;border:1px solid #dfe5e9;border-radius:14px;margin:20px 0}.vault-table{width:100%;border-collapse:collapse;min-width:720px}.vault-table th,.vault-table td{text-align:left;padding:16px;border-bottom:1px solid #e8ecef;vertical-align:middle}.vault-table th{background:#f4f7f8;font-size:12px;color:#566573}.vault-table td small{display:block;color:#718096;margin-top:5px}.vault-table .row{flex-wrap:wrap;gap:8px}.vault-table td:first-child{min-width:220px}.vault-filters{display:flex;gap:16px;flex-wrap:wrap}.vault-filters label{flex:1;min-width:180px}.variation-dialog textarea{width:100%;min-height:130px}.variation-dialog{max-width:560px}.variation-dialog .row{margin-top:20px}
/* Approved script library and separate drafting workspace. */
.vault-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.vault-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
.vault-filter-options{grid-column:1/-1;display:flex;align-items:center;gap:24px;flex-wrap:wrap;color:var(--muted,#667085)}
.vault-filter-options label,.vault-check{display:flex;align-items:center;gap:8px;margin:0}
.vault-filter-options input[type=checkbox],.vault-check input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0}
.vault-preview{max-width:960px;margin:auto}.vault-script-copy{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.vault-preview h2{margin-top:28px}
.vault-menu{position:relative}.vault-menu>summary{list-style:none;cursor:pointer;border:1px solid #dce3e8;border-radius:8px;padding:4px 12px;font-size:24px;line-height:28px}.vault-menu>summary::-webkit-details-marker{display:none}
.vault-menu>div{display:flex;flex-direction:column;gap:6px;min-width:150px;padding-top:8px}.vault-menu button{text-align:left}
.vault-row-actions{justify-content:flex-end;align-items:flex-start}.vault-projects p{min-width:150px}.vault-unused{color:#166856;font-weight:600}
@media(max-width:850px){.vault-filters,.vault-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.vault-filters,.vault-meta{grid-template-columns:1fr}}
.vault-more{font-size:24px;line-height:24px;padding:6px 12px;min-width:40px}.vault-options{display:grid;gap:10px}.vault-options button{text-align:left}
