.production-panel{padding:0;overflow:visible;font-size:13px}
.node[hidden]{display:none!important}
.node .production-script-card{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:36px;padding:30px;color:var(--text);background:var(--panel,#222);border-radius:12px}
.production-script-icon{display:grid;justify-items:center;gap:5px;opacity:.4}.production-script-icon span{width:36px;height:4px;border-radius:3px;background:currentColor}.production-script-icon span:last-child{width:25px}
.production-script-progress{display:flex;justify-content:space-between;width:100%;padding:0;margin:0;list-style:none}.production-script-step{position:relative;display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:12px}.production-script-step:not(:last-child):after{content:'';position:absolute;left:calc(50% + 20px);right:calc(-50% + 20px);top:12px;height:2px;background:currentColor;opacity:.3}.production-script-circle{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:2px solid currentColor;font-weight:700}.production-script-step[data-status=completed] .production-script-circle{background:var(--text);color:var(--panel,#222);border-color:var(--text)}.production-script-step[data-status=pending]{opacity:.45}.production-script-open{margin-top:25px;width:100%;padding:12px;border:0;border-radius:8px;background:var(--line2,#383838);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.production-panel *{box-sizing:border-box}.production-panel [hidden]{display:none!important}
.production-heading{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line2)}.production-heading strong{flex:1}.production-heading span,.production-muted{font-size:12px;color:var(--muted,#aaa)}
.production-stages{display:flex;gap:5px;flex-wrap:wrap;list-style:none;margin:0;padding:12px 15px;border-bottom:1px solid var(--line2)}.production-stages li{padding:5px 8px;font-size:12px;border-radius:6px;color:var(--muted,#aaa)}.production-stages [aria-current=step]{background:var(--accent,#78cfbd);color:var(--bg,#111)}
.production-main{padding:16px 18px}.production-main h3{font-size:17px;margin:0 0 12px}.production-main h4{font-size:14px;margin:6px 0 10px}.production-panel .production-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font:inherit;line-height:1.7}
.production-assets,.production-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.production-results:has(.agent-document-inline){grid-template-columns:1fr}.production-asset,.production-result{border:1px solid var(--line2);border-radius:9px;padding:10px;min-width:0}.production-asset[data-current=true]{border-color:var(--accent)}.production-panel .production-asset-title{border:0;padding:0;background:transparent;color:var(--text);text-align:left;width:100%;margin-bottom:10px;font-weight:600}.production-thumb{aspect-ratio:16/9;border-radius:6px;background:var(--bg,#17191b);display:flex;align-items:center;justify-content:center;color:var(--muted,#aaa);overflow:hidden}.production-thumb img{width:100%;height:100%;object-fit:contain}.production-asset-state{font-size:12px;color:var(--accent,#8edac9)}.production-asset>button:last-child{width:100%}.production-result img,.production-result video{width:100%;max-height:260px;object-fit:contain}.production-body-actions{display:flex;gap:8px;flex-wrap:wrap}.production-manual{border-color:var(--accent)!important}
.production-picker{margin-top:15px;padding:14px;border:1px solid var(--line2);border-radius:9px}.production-picker-tabs{display:flex;gap:8px;margin:8px 0}.production-picker-tabs [aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.production-picker input{width:100%;max-width:100%;padding:8px;color:var(--text);background:var(--panel);border:1px solid var(--line2);border-radius:6px;font:inherit}.production-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:340px;overflow:auto}.production-library button{min-width:0;text-align:left}.production-library img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;margin-bottom:5px}.production-library span{display:block;overflow-wrap:anywhere}.production-picker-notice{font-size:12px;color:var(--accent)}.production-asset-documents{margin-top:12px}.production-asset-documents summary{cursor:pointer}.production-asset-documents section{margin-top:12px}
.production-panel .production-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;border:0;border-top:1px solid var(--line2);border-radius:0;padding:14px 18px;margin:0}.production-footer>strong,.production-footer>p:not(.agent-stage-price){flex-basis:100%;margin:0}.production-footer>.agent-stage-fields{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;flex:1}.production-footer .agent-stage-fields label{display:flex;align-items:center;gap:7px;justify-content:flex-start;font-size:12px;flex-wrap:nowrap}.production-footer .agent-stage-fields select{width:auto;max-width:200px}.production-footer .agent-stage-price{margin:0;font-size:12px;color:var(--accent);max-width:220px}.production-footer button{margin:0}.production-footer>.agent-asset-summary,.production-footer>.agent-stage-fields>p{display:none}.production-footer.agent-stage-setup>button:not(.agent-stage-start):not(.production-next){display:none}.production-more{border-top:1px solid var(--line2);padding:10px 18px}.production-more summary{cursor:pointer}.production-more button{margin:7px 7px 0 0}.production-panel .agent-document-edit>summary{display:none}.production-panel .agent-document-edit:not([open]){display:none}.production-panel .agent-document-preview{max-height:300px;overflow:auto}.production-panel .agent-document-text{min-height:220px}
@media(max-width:760px){.production-main,.production-heading{padding:12px}.production-assets,.production-results{grid-template-columns:repeat(2,minmax(0,1fr))}.production-library{grid-template-columns:repeat(2,minmax(0,1fr))}.production-panel .production-footer{justify-content:flex-start;padding:12px}.production-footer>.agent-stage-fields{flex-basis:100%}.production-footer .agent-stage-price{max-width:none}}
@media(max-width:380px){.production-assets,.production-results{grid-template-columns:1fr}.production-heading{flex-wrap:wrap}.production-footer .agent-stage-fields label{flex-wrap:wrap}}

.production-panel .production-footer>.production-footer-title,.production-panel .production-footer>.production-footer-note{display:none}.production-next{display:inline-block}
.production-panel .production-ai-edit[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.production-panel .production-result[data-editing=true],.production-panel .agent-document-inline[data-editing=true]{border-color:var(--accent)}

.production-asset-header{position:relative;display:flex;align-items:center;gap:8px;margin-bottom:8px}
.production-panel .production-asset-header .production-asset-title{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.production-panel .production-asset-more{flex:none;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;font-size:23px;line-height:1}
.production-asset-more:hover,.production-asset-more[aria-expanded=true]{background:color-mix(in srgb,var(--text) 8%,transparent)}
.production-asset-menu{position:absolute;right:0;top:34px;z-index:5;display:grid;min-width:150px;padding:6px;border:1px solid var(--line2);border-radius:12px;background:var(--panel);box-shadow:0 12px 32px #0003}
.production-panel .production-asset-menu button{text-align:left;border:0;border-radius:7px;background:transparent;padding:9px 12px;font-size:12px}
.production-panel .production-asset-menu button:hover{background:color-mix(in srgb,var(--text) 6%,transparent)}
.production-panel .production-asset-menu .production-asset-delete{color:#e36767}
.production-asset-menu hr{width:100%;border:0;border-top:1px solid var(--line2);margin:4px 0}
.production-delete-notice{display:flex;align-items:center;gap:12px;margin-top:12px;color:var(--dim);font-size:12px}
.production-panel .production-asset-placeholder{font-size:13px;font-weight:400;color:var(--dim)}
.production-panel .production-delete-notice button{color:var(--accent);border:0;background:transparent}

.production-asset-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line2);border-radius:18px;color:var(--text);background:var(--panel);box-shadow:0 24px 90px #0005;font:inherit}
.production-asset-dialog[open]{display:flex;flex-direction:column}
.production-asset-dialog::backdrop{background:#0007;backdrop-filter:blur(4px)}
.production-asset-dialog button,.production-asset-dialog select,.production-asset-dialog input{font:inherit;color:var(--text)}
.production-asset-dialog button{padding:9px 15px;border:1px solid var(--line2);border-radius:9px;background:transparent;cursor:pointer;font-size:13px}
.production-asset-dialog button:disabled{opacity:.45;cursor:default}
.production-asset-dialog button.primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.production-asset-dialog [hidden]{display:none!important}
.production-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 16px}
.production-dialog-head strong{font-size:17px;overflow-wrap:anywhere}
.production-asset-dialog .production-dialog-close{border:0;font-size:24px;padding:0;width:32px;height:32px;flex:none;color:var(--dim)}
.production-dialog-tabs{display:flex;gap:5px;margin:0 24px;border-bottom:1px solid var(--line2);flex-shrink:0;overflow-x:auto}
.production-asset-dialog .production-dialog-tabs button{white-space:nowrap;border:0;border-radius:0;padding:12px 15px;color:var(--dim);border-bottom:2px solid transparent}
.production-asset-dialog .production-dialog-tabs button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}
.production-dialog-content{flex:1;min-height:150px;overflow:auto;padding:22px 24px 6px;overscroll-behavior:contain}
.production-prompt-editor{box-sizing:border-box;display:block;width:100%;height:310px;min-height:150px;resize:vertical;border:1px solid var(--line2);border-radius:12px;padding:18px;color:var(--text);background:var(--bg);font:inherit;font-size:14px;line-height:1.85;outline:none}
.production-prompt-editor:focus{border-color:var(--accent)}
.production-dialog-notice{flex:none;margin:8px 24px 16px;color:var(--dim);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.production-dialog-notice:empty{margin-bottom:4px}
.production-dialog-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:none;padding:18px 24px;border-top:1px solid var(--line2)}
.production-dialog-config{display:flex;gap:10px;flex:1;flex-wrap:wrap;min-width:0}
.production-dialog-config label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:11px;color:var(--dim);min-width:0}
.production-dialog-config select{max-width:180px;min-width:0;border:1px solid var(--line2);border-radius:8px;padding:8px;background:var(--bg);font-size:12px}
.production-dialog-price{color:var(--accent);font-size:13px;white-space:nowrap}
.production-dialog-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:250px}
.production-asset-dialog .production-dialog-gallery button{min-width:0;padding:7px;text-align:left}
.production-dialog-gallery button[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--panel))}
.production-dialog-gallery img{width:100%;aspect-ratio:1;object-fit:contain;display:block;border-radius:6px;background:var(--bg)}
.production-dialog-gallery span{display:block;font-size:12px;padding:7px 3px 2px;overflow-wrap:anywhere}
.production-asset-dialog.production-asset-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100vw);height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;transform:none;animation:none}
.production-asset-drawer::backdrop{background:#0005;backdrop-filter:none}
.production-asset-drawer .production-dialog-head{padding:18px 16px;border-bottom:1px solid var(--line2)}
.production-asset-drawer .production-dialog-tabs{margin-inline:16px}
.production-asset-drawer .production-dialog-content{padding:16px;min-height:0}
.production-asset-drawer .production-dialog-notice{margin-inline:16px}
.production-asset-drawer .production-dialog-footer{padding:14px 16px}
.production-asset-drawer .production-add-field{margin:16px 0}
.production-drawer-preview{position:relative;background:var(--bg);border-radius:10px;overflow:hidden;min-height:120px}
.production-drawer-preview img{display:block;width:100%;max-height:330px;object-fit:contain}
.production-asset-drawer .production-drawer-zoom{position:absolute;top:8px;right:8px;background:var(--panel);padding:6px 9px;font-size:12px}
.production-drawer-prompt-label{display:block;margin:16px 0 8px;font-size:12px}
.production-asset-drawer .production-prompt-editor{height:360px;padding:12px;font-size:13px;line-height:1.8}
@media(max-width:600px){.production-asset-dialog.production-asset-drawer{width:100vw;max-height:100dvh;border-radius:0}.production-asset-drawer .production-prompt-editor{font-size:16px}.production-drawer-preview img{max-height:260px}}
.production-dialog-content input[type=file]{box-sizing:border-box;width:100%;padding:36px 20px;border:1px dashed var(--line2);border-radius:12px;background:var(--bg);font-size:13px}
@media(max-width:600px){.production-asset-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.production-dialog-head{padding:15px}.production-dialog-head strong{font-size:15px}.production-dialog-tabs{margin:0 15px}.production-asset-dialog .production-dialog-tabs button{font-size:12px;padding:10px}.production-dialog-content{padding:16px 15px 6px}.production-prompt-editor{height:250px;font-size:16px;padding:13px}.production-dialog-notice{margin:8px 15px 12px}.production-dialog-footer{padding:14px 15px;justify-content:flex-end}.production-dialog-config{flex-basis:100%;gap:8px}.production-dialog-config label{flex:1;flex-wrap:wrap}.production-dialog-config select{width:100%;max-width:none}.production-dialog-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.production-dialog-price{margin-right:auto}}

.production-assets{gap:14px;margin-top:16px}.production-asset{padding:10px;border-color:transparent;border-radius:14px;background:color-mix(in srgb,var(--text) 4%,var(--panel));transition:border-color .15s,background .15s}.production-asset[data-current=true]{border-color:color-mix(in srgb,var(--accent) 65%,transparent);background:color-mix(in srgb,var(--accent) 7%,var(--panel))}.production-panel .production-thumb{width:100%;padding:0;border:0;border-radius:10px;cursor:pointer;background:color-mix(in srgb,var(--text) 5%,var(--bg))}.production-thumb:focus-visible,.production-asset-title:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.production-panel .production-use-asset{padding:8px;border:0;background:color-mix(in srgb,var(--text) 5%,transparent);border-radius:8px;font-size:12px}.production-asset-state{margin:9px 0;color:var(--dim);font-size:11px}.production-panel .production-asset-title{font-size:12px;line-height:1.5}
.production-panel button:disabled,#agent-panel .production-panel button:disabled{cursor:default}.production-image-error{margin:9px 0;color:var(--danger,#bc4949);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.production-panel .production-image-retry,.production-panel .production-image-details{margin:4px 6px 0 0;font-size:12px}

.production-panel .production-workspace-open{align-self:flex-end;margin:12px 18px}
.production-manual-workspace .production-assets{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.production-manual-workspace .production-results{grid-template-columns:1fr}
.production-shot-table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.7}.production-shot-table th{position:sticky;top:0;text-align:left;background:var(--panel2);color:var(--dim);font-weight:500;z-index:1}.production-shot-table th,.production-shot-table td{padding:12px 15px;vertical-align:top;min-width:115px;max-width:340px;white-space:pre-wrap}.production-shot-table th:first-child,.production-shot-table td:first-child{min-width:48px}.production-shot-table th:nth-child(2),.production-shot-table td:nth-child(2){min-width:65px}.production-shot-table tr:nth-child(even){background:color-mix(in srgb,var(--text) 3%,transparent)}.production-shot-table td:nth-child(3){min-width:260px}
@media(max-width:600px){.production-manual-workspace .production-assets{grid-template-columns:repeat(2,minmax(0,1fr))}.production-shot-table th,.production-shot-table td{padding:10px}}

.director-review-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px;font-size:11px;color:var(--dim)}.director-review-toolbar span{flex:1}.director-review-toolbar button{padding:5px 8px;font-size:11px;border:0;background:transparent}
.director-review-notes{font-size:11px;margin:0;padding:9px 0;color:var(--text)}.director-review-notes summary{cursor:pointer;color:var(--dim)}.director-review-note-text{font:inherit;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.director-review-scroll{overflow:auto;max-height:560px;overscroll-behavior:contain;scrollbar-width:thin;min-width:0;width:100%}.director-review-table{width:100%;min-width:1060px;table-layout:fixed;border-spacing:0;border-collapse:separate;font-size:11px;line-height:1.65}.director-review-table th,.director-review-table td{padding:9px 7px;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--line2);border-right:1px solid var(--line2);text-align:left;white-space:pre-wrap}.director-review-table th{position:sticky;top:0;z-index:2;background:var(--panel2);font-weight:500;color:var(--dim);font-size:11px}.director-review-table td:first-child,.director-review-table th:first-child{position:sticky;left:0;background:var(--panel);z-index:1;font-variant-numeric:tabular-nums}.director-review-table th:first-child{background:var(--panel2);z-index:3}.director-review-table tr:nth-child(even) td{background:color-mix(in srgb,var(--text) 3%,var(--panel))}.director-review-table td[data-camera-valid=false]{color:var(--danger,#bc4949)}
.production-panel .director-review-cell{display:block;width:100%;text-align:left;border:0;border-radius:3px;background:transparent;font:inherit;padding:0;white-space:pre-wrap;color:inherit}.director-review-cell:hover{background:color-mix(in srgb,var(--text) 5%,transparent)}.director-review-row-actions button{border:0;background:transparent;font-size:11px;padding:2px;color:var(--dim)}.director-review-row-actions button:hover{color:var(--danger,#bc4949)}.director-review-cell-editor{box-sizing:border-box;display:block;width:100%;min-height:64px;resize:vertical;font:inherit;color:var(--text);padding:4px;border:1px solid var(--accent);border-radius:4px;background:var(--panel)}
@media(pointer:coarse){.director-review-cell-editor{font-size:16px}.director-review-toolbar button,.director-review-row-actions button{min-height:44px}}


body #agent-panel .production-manual-workspace[popover]{inset:auto;margin:0;border:0;position:fixed;z-index:15000;display:flex;flex-direction:column;background:var(--panel);color:var(--text);overflow:hidden;isolation:isolate;left:0;top:54px;width:100vw;height:calc(100dvh - 54px);max-width:none;max-height:none;min-width:0;min-height:0;padding:0;border-radius:0;box-shadow:none;resize:none;font-size:12px}
body #agent-panel .production-manual-workspace[popover]:not(:popover-open),body #agent-panel .production-manual-workspace[popover][hidden]{display:none!important}
body #agent-panel .production-manual-workspace[popover] .production-workspace-chrome{display:flex;align-items:center;gap:12px;padding:3px 16px;min-height:34px;flex:none;background:var(--panel2);border-bottom:1px solid var(--line2)}
body #agent-panel .production-manual-workspace[popover] .production-workspace-chrome strong{flex:1;min-width:0;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #agent-panel .production-manual-workspace[popover] .production-workspace-close{font:inherit;color:inherit;border:0;background:transparent;font-size:11px;padding:5px 8px;white-space:nowrap}
body #agent-panel .production-manual-workspace[popover] .production-workspace-head{display:flex;align-items:center;gap:12px;flex:none;margin:0;padding:0 16px;border-bottom:1px solid var(--line2);cursor:default;touch-action:auto}
body #agent-panel .production-manual-workspace[popover] .production-workspace-stages{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:0}
body #agent-panel .production-manual-workspace[popover] .production-workspace-stages li{color:var(--dim);min-width:0;padding:0;border-radius:0;text-align:center;border-bottom:2px solid transparent}
body #agent-panel .production-manual-workspace[popover] .production-workspace-stages [aria-current=step]{color:var(--text);background:transparent;border-color:var(--text)}
body #agent-panel .production-manual-workspace[popover] .production-workspace-stages button{font:inherit;color:inherit;border:0;background:transparent;width:100%;min-width:0;padding:8px;border-radius:0;font-size:12px;white-space:normal}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar{display:flex;align-items:center;gap:10px;flex:none;min-height:36px;padding:5px 16px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar h3{margin:0;flex:none;font-size:15px;font-weight:500}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar{flex:1;margin:0}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar button{padding:4px 8px;min-height:28px;font-size:11px}
body #agent-panel .production-manual-workspace[popover][data-phase="2"] .production-document-heading{display:none}
body #agent-panel .production-manual-workspace[popover]>.production-reading{flex:1;padding:0 16px 12px;overflow:auto;min-width:0;scrollbar-width:thin;scroll-padding-top:36px}
body #agent-panel .production-manual-workspace[popover] .production-main{padding:0;min-width:0}
body #agent-panel .production-manual-workspace[popover] .production-results{gap:20px;min-width:0}
body #agent-panel .production-manual-workspace[popover] .production-document{grid-column:1/-1;border:0;border-radius:0;padding:0}
body #agent-panel .production-manual-workspace[popover] .production-result{border:0;border-radius:0}
body #agent-panel .production-manual-workspace[popover] .agent-document-preview{border:0;border-radius:0;padding:0;background:transparent}

body #agent-panel .production-manual-workspace[popover] .production-text{max-height:none;overflow:visible;font-size:10px}
body #agent-panel .production-manual-workspace[popover] .agent-document-preview{max-height:none;overflow:visible;font-size:10px;line-height:1.65}
body #agent-panel .production-manual-workspace[popover] .director-review-scroll{display:contents}
body #agent-panel .production-manual-workspace[popover] .director-review-table{min-width:960px;font-size:10px;line-height:1.65}
body #agent-panel .production-manual-workspace[popover] .director-review-table th{font-size:10px}
body #agent-panel .production-manual-workspace[popover] .director-review-table th,body #agent-panel .production-manual-workspace[popover] .director-review-table td{padding:8px 7px}
body #agent-panel .production-manual-workspace[popover] .director-review-cell,body #agent-panel .production-manual-workspace[popover] .director-review-row-more{border:0;background:transparent}
body #agent-panel .production-manual-workspace[popover] .director-review-row-more{padding:3px;font-size:18px}
body #agent-panel .production-manual-workspace[popover] .director-review-row-menu button{border:0;background:transparent;padding:8px;font-size:11px}
body #agent-panel .production-manual-workspace[popover] .director-review-notes{font-size:10px}
body #agent-panel .production-manual-workspace[popover] .director-review-notes summary{font-size:11px}
body #agent-panel .production-manual-workspace[popover] .agent-document-text,body #agent-panel .production-manual-workspace[popover] .director-review-cell-editor{resize:none;overflow:hidden;max-height:none;font-size:10px;line-height:1.65}
body #agent-panel .production-manual-workspace[popover]>.production-dock{flex:none;min-width:0;padding:6px 16px 8px;border-top:1px solid var(--line2)}
body #agent-panel .production-manual-workspace[popover] .production-footer{padding:4px 0 0}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose{margin:6px 0 0;max-height:none;overflow:visible}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose{padding:8px 10px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose .agent-compose-row{margin-top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose textarea{height:48px;min-height:40px;max-height:80px;overflow:auto}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose .agent-conversation-context{margin:0 0 4px;line-height:1.4;font-size:11px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-compose .agent-hint-copy{display:none}
body #agent-panel .production-manual-workspace[popover] .production-dock:has(.production-workspace-compose.agent-editing)>.production-footer{display:none}
body #agent-panel .production-manual-workspace[popover] .production-preparation{padding:12px 0;border-bottom:1px solid var(--line2)}
body #agent-panel .production-manual-workspace[popover] .production-preparation h3{font-size:16px;font-weight:500}
body #agent-panel .production-manual-workspace[popover] .production-preparation p{max-width:560px;line-height:1.7}
body #agent-panel .production-manual-workspace[popover] .production-preparation-reference{padding-top:12px}
.director-review-row-actions{position:relative;text-align:center!important;padding-inline:0!important}
.production-panel .director-review-row-more{width:100%;font-size:18px;line-height:1;padding:2px}
.director-review-row-menu{position:absolute;right:26px;top:5px;z-index:6;width:130px;padding:4px;border:1px solid var(--line2);border-radius:8px;background:var(--panel);box-shadow:0 8px 24px #0002}
.production-panel .director-review-row-menu button{display:block;width:100%;padding:8px;text-align:left;white-space:nowrap;font-size:11px}
.production-panel .director-review-row-menu .director-review-row-delete{color:var(--danger,#bc4949)}
@media(max-width:760px){
body #agent-panel .production-manual-workspace[popover] .production-workspace-chrome{padding-inline:12px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-head{padding-inline:8px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-stages button{padding:8px 4px;font-size:11px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar{padding:5px 12px;gap:6px;flex-wrap:nowrap}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar h3{font-size:15px}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar{min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar>span:not(.shot-review-modes){display:none}
body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar button{flex:none;white-space:nowrap}
body #agent-panel .production-manual-workspace[popover]>.production-reading{padding-inline:12px}
body #agent-panel .production-manual-workspace[popover]>.production-dock{padding:6px 12px 8px}
body #agent-panel .production-manual-workspace[popover] .production-document-actions summary{flex-wrap:wrap}
body #agent-panel .production-manual-workspace[popover] .production-review-actions{margin-left:auto}
}
@media(pointer:coarse){body #agent-panel .production-manual-workspace[popover] .agent-document-text,body #agent-panel .production-manual-workspace[popover] .director-review-cell-editor{font-size:16px}}
@media(pointer:coarse){body #agent-panel .production-manual-workspace[popover] .production-workspace-docbar .director-review-toolbar button{min-height:44px}}


.production-asset-groups{display:grid;gap:28px;margin:22px 0 26px}
.production-panel .production-asset-group-title{margin:0 0 12px;font-size:12px;font-weight:600;color:var(--text)}
.production-panel .production-asset-groups .production-assets{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;margin:0;grid-template-columns:none}
.production-panel .production-asset-groups .production-asset{position:relative;flex:none;width:220px;box-sizing:border-box;padding:0;border:0;border-radius:0;background:transparent}
.production-panel .production-asset-groups .production-thumb{height:146px;aspect-ratio:auto;border-radius:10px;object-fit:contain;background:color-mix(in srgb,var(--text) 5%,var(--bg));width:100%}
.production-panel .production-asset-groups .production-asset-header{position:absolute;top:7px;right:7px;margin:0;z-index:2}
.production-panel .production-asset-groups .production-asset-more{height:26px;width:26px;border-radius:7px;background:color-mix(in srgb,var(--panel) 90%,transparent);font-size:21px;box-shadow:0 1px 4px #0001}
.production-panel .production-asset-groups .production-asset-title{display:block;margin:9px 0 3px;padding:0;border:0;background:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.5;cursor:pointer}
.production-asset-description{margin:0;color:var(--dim);font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.production-panel .production-add-asset{box-sizing:border-box;width:132px;height:146px;display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px;border:1px dashed var(--line2);border-radius:10px;background:transparent;color:var(--dim);font-size:11px;cursor:pointer}
.production-panel .production-add-asset:hover{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 4%,transparent)}
.production-panel .production-add-asset:disabled{opacity:.45;cursor:default}
.production-add-icon{font-size:27px;font-weight:300;line-height:1.3}
.production-panel .production-thumb:has(.production-asset-progress){position:relative;opacity:1}
.production-panel .production-asset-progress{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transform:none;max-width:none;padding:6px;background:transparent;color:var(--text);pointer-events:none}
.production-asset-progress .n-progress-circle{width:62px;height:62px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#102c40;border:1px solid #38bdf8;flex-shrink:0}
.production-asset-progress .n-progress-circle svg{width:18px;height:18px;color:#91ddfa;opacity:.9}
.production-asset-progress .n-progress-circle strong{font-size:18px;line-height:1.15;font-weight:700;color:#f0f9ff;font-variant-numeric:tabular-nums}
.production-asset-progress .n-progress-circle small{font-size:11px;line-height:1.2;color:#d9efff}.production-asset-progress small[hidden]{display:none}
.production-asset-progress .n-progress-note{padding:3px 7px;border:1px solid var(--line2);border-radius:7px;background:var(--panel);font-size:11px;line-height:1.35;color:var(--text);white-space:pre;text-align:center;font-variant-numeric:tabular-nums}
.production-asset-progress.progress-compact{gap:3px}.production-asset-progress.progress-compact .n-progress-circle{width:auto;height:auto;padding:2px 8px;border-radius:6px;flex-direction:row;gap:4px}.production-asset-progress.progress-compact svg{display:none}
.production-add-asset-dialog{width:min(680px,calc(100vw - 32px))}
.production-add-field{display:block;margin-bottom:15px;font-size:12px;color:var(--dim)}
.production-add-field>span{display:block;margin-bottom:8px}
.production-add-field>input{box-sizing:border-box;width:100%;padding:11px 13px;border:1px solid var(--line2);border-radius:9px;background:var(--bg);outline:none}
.production-add-field>input:focus{border-color:var(--accent)}
.production-add-asset-dialog .production-prompt-editor{height:210px;font-size:13px}
.production-add-shots{font-size:12px;margin-bottom:12px}.production-add-shots summary{cursor:pointer}
.production-shot-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.production-shot-options label{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.production-shot-options input{accent-color:var(--accent);flex:none}
@media(max-width:600px){
.production-panel .production-asset-groups .production-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.production-panel .production-asset-groups .production-asset,.production-panel .production-add-asset{width:100%;min-width:0}
.production-panel .production-asset-groups .production-thumb,.production-panel .production-add-asset{height:auto;aspect-ratio:3/2}
.production-asset-groups{gap:24px;margin-top:18px}.production-shot-options{grid-template-columns:1fr}
.production-add-asset-dialog .production-prompt-editor,.production-add-field>input{font-size:16px}
}


.shot-review{font-size:13px;line-height:1.7;color:var(--text);width:100%;min-width:0}.shot-review[hidden],.shot-review-groups[hidden],.director-review-scroll[hidden]{display:none!important}
.shot-review-groups{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(120px,1fr);width:100%;min-width:0;flex:none;border-block:1px solid var(--line2);overflow-x:auto;scrollbar-width:thin;background:var(--panel2)}
.production-panel .shot-review-groups button{min-width:0;border:0;border-right:1px solid var(--line2);border-radius:0;padding:8px 10px;min-height:34px;font:12px/1.4 system-ui,sans-serif;white-space:nowrap;text-align:center;background:transparent;color:var(--dim)}.production-panel .shot-review-groups button:last-child{border-right:0}.production-panel .shot-review-groups button[aria-current=true]{background:color-mix(in srgb,var(--accent) 10%,var(--panel));color:var(--text);box-shadow:inset 0 -2px var(--accent)}
.shot-review-layout{display:grid;grid-template-columns:124px minmax(0,1fr);min-width:0}.shot-review-list{border-right:1px solid var(--line2);padding:8px 6px;min-width:0}.production-panel .shot-review-item{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;min-width:0;padding:10px 8px;margin:0 0 4px;border:1px solid transparent;border-radius:6px;text-align:left;background:transparent;color:var(--text)}.production-panel .shot-review-item[aria-current=true]{background:color-mix(in srgb,var(--accent) 10%,var(--panel));border-color:var(--accent)}.shot-review-item strong{font-size:12px;font-weight:500}.shot-review-item span{font-size:10px;color:var(--dim)}.shot-review-item-title{width:100%;overflow-wrap:anywhere;line-height:1.5}
.shot-review-detail{padding:12px 16px;min-width:0}.shot-review-detail-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.shot-review-detail h3{font-size:16px;font-weight:500;margin:0;overflow-wrap:anywhere}.shot-review-detail-head p{color:var(--dim);font-size:11px;margin:4px 0}.shot-review-detail button,.shot-review-modes button{font:inherit;border:1px solid var(--line2);padding:6px 9px;border-radius:6px;background:var(--panel);color:var(--text);white-space:nowrap}
.shot-review-fields{display:grid;grid-template-columns:1fr;gap:14px}.shot-review-field h4{font-size:11px;font-weight:500;color:var(--dim);margin:0 0 5px}.shot-review-field p{font-size:13px;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.shot-review-modes{display:flex;flex:none!important;gap:4px;padding:2px;background:var(--panel2);border-radius:6px}.production-panel .shot-review-modes button{font-size:11px;padding:5px 8px;border:1px solid transparent}.production-panel .shot-review-modes [aria-pressed=true]{background:var(--panel);border-color:var(--line2)}
.production-manual-workspace[data-phase="2"] .director-review-notes,.production-manual-workspace[data-phase="2"] .agent-document-edit,.production-manual-workspace[data-phase="2"] .agent-document-notice{margin-inline:0}
.shot-director-dialog,.shot-text-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-width:none;height:min(900px,calc(100dvh - 24px));max-height:none;padding:0;border:1px solid #dce3db;border-radius:14px;background:#fff;color:#203328;overflow:hidden}.shot-director-dialog::backdrop,.shot-text-dialog::backdrop{background:#18251cc0}.shot-director-dialog[open],.shot-text-dialog[open]{display:flex;flex-direction:column}.shot-director-dialog header,.shot-text-dialog header,.shot-text-dialog footer{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #dce3db}.shot-director-dialog header strong,.shot-text-dialog header strong{flex:1}.shot-director-dialog button,.shot-text-dialog button{font:inherit;padding:8px 12px;border:1px solid #dce3db;border-radius:8px;background:#fff;color:#203328}.shot-director-viewport{min-height:0;flex:1}.shot-director-notice{margin:0;padding:8px 20px;color:#6b7b6e;font-size:12px}.shot-text-dialog>div{padding:20px;overflow:auto;flex:1}.shot-text-dialog label{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-size:13px}.shot-text-dialog textarea{width:100%;min-height:85px;padding:10px;border:1px solid #dce3db;border-radius:8px;color:#203328;background:#fff;font:15px/1.7 system-ui,sans-serif;resize:vertical}.shot-text-dialog footer{border-top:1px solid #dce3db;border-bottom:0;justify-content:space-between;font-size:12px}
@media(max-width:480px){.shot-review-layout{grid-template-columns:1fr}.shot-review-list{display:flex;gap:4px;overflow-x:auto;padding:6px;border-right:0;border-bottom:1px solid var(--line2)}.production-panel .shot-review-item{width:88px;flex:none;padding:7px;margin:0}.shot-review-detail{padding:12px 6px}.shot-review-detail h3{font-size:15px}.shot-text-dialog textarea{font-size:16px}.shot-review-detail-head button{font-size:11px}.shot-text-dialog footer{flex-wrap:wrap}}
.shot-review-detail [hidden]{display:none!important}.shot-design-advice{margin-top:16px;padding:8px 10px;border:1px solid var(--line2);border-radius:6px;font-size:11px;color:var(--dim)}.shot-design-advice .shot-review-field{margin-top:12px}.shot-text-dialog select{font:16px system-ui,sans-serif;border:1px solid #dce3db;border-radius:8px;padding:10px;background:#fff;color:#203328}
.shot-previz-frame.shot-native-frame{min-height:0;min-width:0}.shot-review-frame-notice{font-size:12px;line-height:1.6;color:var(--dim);margin:6px 0;overflow-wrap:anywhere}.shot-review-frame-notice[data-warning=true]{color:#9b491c}

.production-identity-reference{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;padding:8px 0;cursor:pointer}
.production-identity-reference[hidden]{display:none}
.production-identity-reference input{width:16px;height:16px;flex:0 0 auto;margin:0}
