.dq-view{width:100%;max-width:1600px;margin:0 auto;padding:24px 28px;color:var(--text,#dbe7f4);box-sizing:border-box;min-width:0}.dq-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.dq-head h2{font-size:23px;line-height:1.4;margin:0}.dq-head p{margin:7px 0 0;color:#a9bad0;font-size:13px}.dq-actions,.dq-footer,.dq-filters,.dq-meta,.dq-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dq-filters{padding:14px 0 20px}.dq-filters label{display:flex;gap:8px;align-items:center;font-size:13px}.dq-filters>span{margin-left:auto;font-size:13px}.dq-status{font-size:13px;min-height:20px;margin:0 0 10px;color:#e2a55f}.dq-scroll{overflow:auto;border:1px solid #334155;border-radius:10px}.dq-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;font-variant-numeric:tabular-nums}.dq-table th{padding:13px 16px;background:#172337;color:#a9bad0;font-weight:500;white-space:nowrap}.dq-table td{padding:15px 16px;border-top:1px solid #2c3b50;vertical-align:top;line-height:1.6}.dq-table tbody tr:hover{background:rgba(148,163,184,.045)}.dq-table td>strong{display:block;max-width:360px;overflow-wrap:anywhere}.dq-table small{display:block;color:#9caec4;margin-top:4px}.dq-table button+button{margin-left:8px}.dq-badge{display:inline-block;white-space:nowrap;border:1px solid #46576d;border-radius:5px;padding:1px 8px;color:#c3d1e1;background:#233147}.dq-open{color:#8bd9f0;border-color:#3d697c}.dq-delivered,.dq-received{color:#89dfbc;border-color:#3b7060}.dq-working{color:#f1d39a;border-color:#796842}.dq-empty{padding:46px 20px;text-align:center;color:#a9bad0}.dq-pagination{justify-content:flex-end;padding:18px 0}.dq-view input:not([type=checkbox]),.dq-view textarea,.dq-view select,.dq-user-group select,.dq-group-editor input{box-sizing:border-box;max-width:100%;border:1px solid #46576d;background:#101b2d;color:inherit;border-radius:6px;padding:8px 10px;font:inherit}.dq-view select{min-width:130px}.dq-form{table-layout:fixed;min-width:780px}.dq-form th:nth-child(1){width:18%}.dq-form th:nth-child(2){width:30%}.dq-form th:nth-child(4){width:55px}.dq-form input[data-name],.dq-form textarea{width:100%}.dq-form textarea{height:140px;resize:vertical}.dq-source{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 0 25px}.dq-source>label{font-weight:600}.dq-source span{font-size:13px;color:#a9bad0}.dq-footer{justify-content:flex-end;margin-top:24px}.dq-images{display:flex;gap:8px;flex-wrap:wrap}.dq-images>span{display:flex;flex-direction:column;gap:5px}.dq-thumb{display:block;width:64px;height:80px;object-fit:contain;border:1px solid #334155;border-radius:5px;background:#101b2d}.dq-video{display:block;width:150px;height:205px;object-fit:contain;background:#101b2d;border-radius:6px}.dq-meta{font-size:13px;margin-bottom:20px;color:#a9bad0}.dq-reference{margin:0 0 22px;padding:12px 0;border-block:1px solid #334155}.dq-reference summary{cursor:pointer;padding:4px 0}.dq-reference video{margin-top:16px;width:240px;height:320px}.dq-note{white-space:pre-wrap;max-width:580px;max-height:130px;overflow:auto;overflow-wrap:anywhere}.dq-process{padding:8px 10px 20px}.dq-process h3{margin:22px 0 10px;font-size:14px}.dq-process pre,.dq-table details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font:inherit;background:#111d30;padding:14px;border-radius:6px}.dq-section-title{margin:32px 0 12px;font-size:17px}.dq-table details summary{cursor:pointer;margin-top:12px}.dq-groups{padding:12px 0 20px}.dq-groups summary{cursor:pointer}.dq-group-editor{display:grid;gap:10px;margin-top:14px;max-width:520px}.dq-group-editor>div{display:flex;gap:8px}.dq-user-group select{min-width:110px}.dq-view button:not(.btn-primary):not(.btn-secondary),.dq-groups button{border:1px solid #46576d;background:transparent;color:inherit;border-radius:5px;padding:6px 10px;cursor:pointer}.dq-view button:disabled{opacity:.45;cursor:default}.dq-view :focus-visible,.dq-groups :focus-visible{outline:2px solid #38bdf8;outline-offset:3px}.dq-view[aria-busy=true] [data-publish],.dq-view[aria-busy=true] [data-deliver]{opacity:.5;pointer-events:none}.script-right #demandNotes,.script-right #scriptPrompt{flex:1 1 0;min-height:135px;height:135px;resize:vertical}.script-right #demandNotes{background:rgba(148,163,184,.05)}.dq-task-link{margin:0 0 12px}.dq-view ::placeholder{color:#9caec4}
:root[data-theme=light] .dq-view{color:#24364b}:root[data-theme=light] .dq-head p,:root[data-theme=light] .dq-meta,:root[data-theme=light] .dq-table small,:root[data-theme=light] .dq-empty,:root[data-theme=light] .dq-source span{color:#52657b}:root[data-theme=light] .dq-table th{background:#edf2f7;color:#42566d}:root[data-theme=light] .dq-scroll,:root[data-theme=light] .dq-table td,:root[data-theme=light] .dq-reference{border-color:#d7e0ea}:root[data-theme=light] .dq-view input:not([type=checkbox]),:root[data-theme=light] .dq-view textarea,:root[data-theme=light] .dq-view select,:root[data-theme=light] .dq-user-group select,:root[data-theme=light] .dq-group-editor input{background:#fff;border-color:#afbdcd;color:#24364b}:root[data-theme=light] .dq-badge{background:#edf2f7;color:#344c65}:root[data-theme=light] .dq-process pre,:root[data-theme=light] .dq-table details pre{background:#f1f5f9}:root[data-theme=light] .dq-view ::placeholder{color:#617489}
@media(max-width:900px){.dq-view{padding:18px 14px}.dq-head{align-items:flex-start}.dq-table{min-width:740px}.dq-head h2{font-size:20px}.dq-filters>span{margin-left:0}.dq-actions{justify-content:flex-end}.dq-source input{width:100%}}

.dq-form textarea{min-height:120px!important;height:140px!important}.dq-form th:nth-child(4){width:80px}.dq-table button{white-space:nowrap}.dq-partial{color:#f1d39a;border-color:#796842}

/* Intake uses the same media-slot vocabulary as the replica workspace. */
.dq-intake{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:28px;align-items:start}.dq-intake h3{font-size:14px;margin:0 0 12px;line-height:1.5}.dq-intake h3 small{font-size:12px;font-weight:400;color:#9fb2c9;margin-left:8px}.dq-video-input{padding-top:7px}.dq-video-input .dq-drop{aspect-ratio:9/16;max-height:470px}.dq-drop{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:4/5;border:1px dashed #52677f;background:#172438;border-radius:8px;overflow:hidden;cursor:pointer}.dq-drop:hover,.dq-drop.drag-over{border-color:#38bdf8;background:#1d3046}.dq-drop:focus-visible{outline:2px solid #38bdf8;outline-offset:3px}.dq-drop img,.dq-drop video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#0c1728}.dq-drop video{cursor:auto}.dq-drop-empty{display:flex;align-items:center;flex-direction:column;gap:10px;color:#b5c7db;text-align:center;font-size:13px}.dq-drop-empty svg{width:25px;height:25px;opacity:.8}.dq-drop-empty small{font-size:11px;color:#96abc4}.dq-slot-actions{position:absolute;bottom:6px;right:6px;display:flex;gap:5px}.dq-slot-actions button{font-size:11px;background:#142236!important;color:#e4edf6!important;border:1px solid #627790!important;padding:3px 7px!important}.dq-video-input .dq-slot-actions{top:8px;bottom:auto}.dq-slot-state{position:absolute;left:0;right:0;top:0;padding:5px 7px;font-size:11px;background:rgba(12,23,40,.8);color:#e5be85;text-align:center}.dq-slot-state:empty{display:none}.dq-drop.uploading{opacity:.7}.dq-product-nav{display:flex;align-items:center;gap:12px;border-bottom:1px solid #334155;padding-bottom:14px;margin-bottom:18px}.dq-product-nav [role=tablist]{display:flex;gap:7px;flex:1;min-width:0;overflow:auto}.dq-product-nav [role=tab]{white-space:nowrap;padding:8px 12px;border:1px solid transparent!important}.dq-product-nav [aria-selected=true]{background:#1e3c51!important;color:#8fdef7!important;border-color:#48758b!important}.dq-product-name{display:flex;align-items:end;gap:15px;margin-bottom:22px}.dq-product-name label{display:grid;gap:8px;flex:1;font-size:13px}.dq-product-name input{width:100%;height:40px}.dq-product-name button{height:40px}.dq-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.dq-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dq-supplement{display:grid;grid-template-columns:3fr 2fr;gap:16px;margin-top:22px}.dq-brief{display:flex;flex-direction:column;gap:12px;font-size:14px;font-weight:600;min-width:0}.dq-brief textarea{flex:1;min-height:100px!important;height:100px!important;resize:vertical;width:100%;font-size:13px;font-weight:400;line-height:1.7}.dq-file-name{font-size:12px;color:#a9bad0;margin-top:12px;overflow-wrap:anywhere}.dq-footer [data-readiness]{margin-right:auto;font-size:12px;color:#a9bad0}.dq-view .btn-secondary{border:1px solid #52677f;background:transparent;color:inherit;border-radius:6px;padding:7px 12px;text-decoration:none}.dq-view .btn-secondary:hover{background:rgba(148,163,184,.1)}.dq-view .btn-primary:disabled{background:#334155;color:#9fb2c9;border-color:#46576d;cursor:not-allowed;opacity:.65}.dq-view .btn-primary{border-radius:6px}
:root[data-theme=light] .dq-drop{background:#edf2f7;border-color:#a9bbcf}:root[data-theme=light] .dq-drop:hover,:root[data-theme=light] .dq-drop.drag-over{background:#e2edf5;border-color:#467495}:root[data-theme=light] .dq-drop-empty{color:#415a72}:root[data-theme=light] .dq-drop-empty small,:root[data-theme=light] .dq-file-name,:root[data-theme=light] .dq-intake h3 small,:root[data-theme=light] .dq-footer [data-readiness]{color:#536b83}:root[data-theme=light] .dq-product-nav{border-color:#d1dce8}:root[data-theme=light] .dq-product-nav [aria-selected=true]{background:#dcebf4!important;color:#254c6a!important;border-color:#89a9bf!important}
@media(max-width:1250px){.dq-intake{grid-template-columns:190px minmax(0,1fr);gap:20px}.dq-five,.dq-three{gap:8px}.dq-drop-empty small{font-size:10px}.dq-supplement{gap:12px}}
@media(max-width:900px){.dq-intake{grid-template-columns:1fr}.dq-video-input{max-width:230px}.dq-five{grid-template-columns:repeat(5,minmax(85px,1fr));overflow:auto}.dq-product-input{min-width:0}.dq-supplement{grid-template-columns:1fr}.dq-three{max-width:480px}.dq-brief textarea{min-height:130px!important}.dq-product-name{align-items:stretch}.dq-product-name button{align-self:end}}

.dq-group-rail{display:none;gap:8px;margin-top:20px}.app-shell:has(#demandSquare:not(.hidden)) .dq-group-rail,body:has(#demandSquare:not(.hidden)) .dq-group-rail{display:grid}.dq-group-rail button{text-align:left;padding:12px 14px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit}.dq-group-rail button[aria-pressed=true]{background:rgba(56,189,248,.15);border-color:#38bdf8}.dq-library{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));max-height:80vh;overflow:auto;background:var(--bg,#101b2b);color:var(--text,#dbe7f4);border:1px solid #52677f;border-radius:12px;padding:24px}.dq-library::backdrop{background:#0009}.dq-library [data-items]{display:grid;gap:12px;margin:18px 0}.dq-library-product{display:flex;align-items:center;gap:10px;padding:12px;background:transparent;color:inherit;border:1px solid #52677f;border-radius:8px;text-align:left}.dq-library-product img{width:80px;height:100px;object-fit:contain}.dq-intake h3 [data-library]{float:right}

/* Aligned delivery cards: shared headers, version rails and bounded media. */
.dq-view{--dq-surface:#131f31;--dq-inset:#0c1728;--dq-border:#314159;--dq-muted:#9fb2c9;--dq-content-height:330px}
.dq-filters{gap:12px 16px;padding:16px;margin:0 0 20px;border:1px solid var(--dq-border);border-radius:10px;background:var(--dq-surface)}
.dq-filters label{white-space:nowrap;flex-wrap:wrap;max-width:100%}.dq-filters input[type=date]{width:146px;color-scheme:dark}.dq-product-filter input{width:180px}.dq-filters>span{color:var(--dq-muted)}
.dq-section-title{margin:24px 0 12px;line-height:1.5}.dq-meta{padding:12px 0;margin-bottom:0;border-bottom:1px solid var(--dq-border)}
.dq-panel,.dq-product-delivery{border:1px solid var(--dq-border);border-radius:12px;background:var(--dq-surface);overflow:hidden;min-width:0}
.dq-panel-heading,.dq-product-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;box-sizing:border-box;padding:12px 16px;border-bottom:1px solid var(--dq-border);background:#19273b}
.dq-panel-heading h4,.dq-product-heading h4{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}.dq-panel-heading span,.dq-product-heading>span{font-size:12px;color:var(--dq-muted)}
.dq-panel-heading span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}
.dq-requirements{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:stretch}
.dq-requirements .dq-reference{padding:0;margin:0;max-width:none;display:flex;flex-direction:column;border:1px solid var(--dq-border);height:374px;box-sizing:border-box;align-self:start}
.dq-reference .dq-media-tile{height:300px;min-height:0;flex:none;margin:12px;border-radius:8px}
.dq-product-requirements{display:grid;gap:16px;min-width:0}.dq-requirement-body{display:grid;grid-template-columns:minmax(180px,34%) minmax(0,1fr);gap:16px;padding:16px;height:324px;box-sizing:border-box}
.dq-requirement-body>section{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.dq-requirement-body h5{font-size:12px;font-weight:500;color:var(--dq-muted);margin:0;line-height:20px}
.dq-requirement-body .dq-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px;min-height:0;overflow:auto;align-content:stretch;grid-auto-rows:minmax(180px,1fr);flex:1}
.dq-images .dq-media-tile{height:100%;min-width:0}.dq-images .dq-empty{grid-column:1/-1;padding:32px 12px}
.dq-deliverables{display:grid;gap:20px}.dq-delivery-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,.9fr);gap:14px;padding:16px}
.dq-cell{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--dq-border);border-radius:9px;background:var(--dq-inset)}
.dq-cell-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;min-height:44px;box-sizing:border-box;border-bottom:1px solid var(--dq-border)}
.dq-cell-heading h5{font-size:13px;font-weight:600;margin:0;line-height:20px}.dq-cell-heading span{font-size:11px;color:var(--dq-muted);white-space:nowrap}
.dq-version-rail{height:50px;box-sizing:border-box;padding:8px 12px;flex:none;border-bottom:1px solid var(--dq-border)}
.dq-version-tabs{display:flex;gap:6px;align-items:center;overflow-x:auto;height:100%}.dq-version-tabs button{min-width:30px;height:27px;padding:2px 8px!important;font-size:12px}
.dq-version-tabs [aria-selected=true]{background:#1c4960!important;border-color:#38bdf8!important;color:#e4f7ff!important}.dq-version-tabs .dq-version-selected::after{content:'✓';margin-left:3px;color:#89dfbc}
.dq-artifact{height:var(--dq-content-height);display:flex;flex-direction:column;min-width:0;min-height:0;padding:10px;box-sizing:border-box;gap:8px}.dq-artifact[hidden]{display:none!important}.dq-cell>.dq-empty{height:var(--dq-content-height);display:grid;place-content:center;box-sizing:border-box;margin:0;font-size:13px}
.dq-select{display:flex;align-items:center;gap:8px;min-height:22px;font-size:12px;flex:none}.dq-select input{width:16px;height:16px;margin:0;accent-color:#38bdf8}
.dq-media-tile{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;overflow:hidden;background:#070f1d;border:1px solid var(--dq-border);border-radius:7px;box-sizing:border-box}
.dq-artifact>.dq-media-tile{width:100%;height:100%;flex:1}.dq-media-tile .dq-thumb,.dq-media-tile .dq-video{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border:0;border-radius:0;margin:0;background:transparent}
.dq-media-actions{position:absolute;bottom:0;right:0;left:0;display:flex;justify-content:flex-end;gap:6px;padding:24px 8px 8px;background:linear-gradient(transparent,rgba(3,10,20,.75));pointer-events:none}
.dq-media-video .dq-media-actions{top:0;bottom:auto;padding:8px 8px 24px;background:linear-gradient(rgba(3,10,20,.55),transparent)}
.dq-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:32px;height:32px;box-sizing:border-box;padding:6px!important;border:1px solid #63738a!important;border-radius:7px!important;background:rgba(15,29,47,.92)!important;color:#e6f1ff!important;text-decoration:none!important;cursor:pointer;pointer-events:auto}
.dq-icon-button svg,.dq-text-actions svg{width:16px;height:16px;flex:none}.dq-icon-button:hover{background:#23516c!important;border-color:#63d4ff!important}.dq-icon-button:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
.dq-text-surface{display:flex;flex-direction:column;min-height:0;min-width:0;width:100%;height:100%;flex:1;border:1px solid var(--dq-border);border-radius:7px;overflow:hidden;background:var(--dq-inset)}
.dq-text{box-sizing:border-box;flex:1;min-height:0;overflow:auto;width:100%;max-width:none;margin:0;padding:14px;font:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;scrollbar-gutter:stable}
.dq-text-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:6px 10px;box-sizing:border-box;border-top:1px solid var(--dq-border);flex:none;background:var(--dq-surface)}
.dq-text-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 7px!important;font-size:11px;white-space:nowrap;border-color:transparent!important}.dq-text-actions button:hover{background:#23445c!important}
.dq-text-dialog,.dq-media-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1000px,calc(100vw - 64px));height:min(820px,84dvh);max-width:calc(100vw - 48px);max-height:84dvh;padding:0;border:1px solid #52677f;border-radius:14px;background:#101b2d;color:#dbe7f4;overflow:hidden;box-shadow:0 24px 80px #0008}
.dq-text-dialog[open],.dq-media-dialog[open]{display:flex;flex-direction:column}.dq-text-dialog::backdrop,.dq-media-dialog::backdrop{background:rgba(3,8,16,.72)}
.dq-text-dialog header,.dq-media-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid #314159;flex:none;min-height:60px;box-sizing:border-box}.dq-text-dialog header>div,.dq-media-dialog header>div{display:flex;gap:8px}
.dq-text-dialog button{padding:7px 12px;border:1px solid #52677f;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.dq-text-dialog pre{flex:1;min-height:0;overflow:auto;margin:0;padding:24px;font:inherit;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.dq-text-dialog p{margin:0;padding:0 24px 12px;color:#89dfbc;font-size:12px}.dq-text-dialog p:empty{display:none}
.dq-modal-media{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:16px;background:#070f1d}.dq-modal-media img,.dq-modal-media video{width:100%;height:100%;object-fit:contain;min-height:0}
.dq-library [data-items]{grid-template-columns:repeat(3,minmax(0,1fr))}.dq-library-product{flex-direction:column;align-items:stretch}.dq-library-product img{width:100%;height:130px;object-fit:contain}.dq-library-product strong{overflow-wrap:anywhere}.dq-library button{cursor:pointer}.dq-library .dq-pagination{justify-content:center}.dq-product-name{flex-wrap:wrap}.dq-product-name [data-remove-product]{margin-left:auto}
:root[data-theme=light] .dq-view{--dq-surface:#fff;--dq-inset:#f5f8fb;--dq-border:#d5dee9;--dq-muted:#596d83}
:root[data-theme=light] .dq-panel-heading,:root[data-theme=light] .dq-product-heading{background:#eef3f8}:root[data-theme=light] .dq-filters input[type=date]{color-scheme:light}
:root[data-theme=light] .dq-text-dialog,:root[data-theme=light] .dq-media-dialog{background:#fff;color:#24364b;border-color:#afbdcd}:root[data-theme=light] .dq-text-actions button:hover{background:#e2edf5!important}
@media(max-width:1200px){.dq-delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dq-requirement-body{grid-template-columns:minmax(140px,38%) minmax(0,1fr)}.dq-filters>span{margin-left:0}}
@media(max-width:700px){.dq-view{--dq-content-height:360px}.dq-requirements{grid-template-columns:1fr}.dq-requirements .dq-reference{height:354px}.dq-reference .dq-media-tile{height:280px;min-height:0}.dq-requirement-body{height:auto;grid-template-columns:1fr}.dq-requirement-note{height:250px}.dq-requirement-body .dq-images{flex:none;grid-template-columns:repeat(3,minmax(0,1fr))}.dq-images .dq-media-tile{height:150px}.dq-delivery-grid{grid-template-columns:1fr;padding:12px}.dq-filters label{flex-wrap:wrap}.dq-date-filter{gap:6px!important}.dq-text-dialog,.dq-media-dialog{width:calc(100vw - 32px);max-width:none;height:80dvh}.dq-library [data-items]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Demand intake: content-sized desktop cards, shared spacing and explicit text areas. */
html body .dq-view:has(.dq-intake){height:auto;max-width:none;padding:12px 20px 16px}
html body .dq-intake{display:grid;grid-template-columns:calc(var(--dq-source-height)*9/16 + 34px) minmax(0,1fr);gap:16px;align-items:stretch;--dq-source-height:clamp(260px,calc(100dvh - 400px),640px);--dq-slot-height:clamp(150px,calc((100dvh - 400px)/2),320px)}
html body .dq-video-input,html body .dq-product-input{padding:16px;border:1px solid var(--bc-border,#52677f);border-radius:8px;min-width:0;background:var(--bc-surface,#131f31)}
html body .dq-video-input{display:flex;flex-direction:column;gap:12px}
html body .dq-intake h3{margin:0;font-size:14px}
html body .dq-video-input [data-video-slot]{min-height:0}
html body .dq-video-input .dq-drop{height:var(--dq-source-height);width:auto;max-width:100%;min-height:0;max-height:none;aspect-ratio:9/16;margin-inline:auto}
html body .dq-product-nav{padding-bottom:10px;margin-bottom:12px}
html body .dq-product-name{gap:8px;margin-bottom:12px;align-items:end}
html body .dq-product-name label{margin:0;display:flex;flex-direction:column;gap:6px;max-width:none;flex:1}
html body .dq-product-name input{display:block;margin:0}
html body .dq-product-name input{width:100%;max-width:none;height:32px}
html body .dq-product-name button{height:32px;box-sizing:border-box;margin-block:0;align-self:end}
html body .dq-five,html body .dq-three{display:flex;gap:12px;margin-top:10px;overflow-x:auto;padding:2px}
html body .dq-three{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .dq-product-input .dq-drop{height:var(--dq-slot-height);width:auto;flex:0 0 auto;min-height:0;aspect-ratio:9/16}
html body .dq-supplement{display:grid;grid-template-columns:minmax(0,3fr) minmax(160px,2fr);gap:16px;margin-top:16px;align-items:stretch}
html body .dq-brief{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
html body .dq-brief .desktop-field-heading{display:flex;align-items:center;justify-content:space-between;min-height:28px;gap:8px}
html body .dq-brief .desktop-text-tools{margin:0;flex:none}
html body .dq-brief textarea{box-sizing:border-box;width:100%;height:auto!important;min-height:110px!important;flex:1;resize:vertical;margin:0}
html body .dq-transcript{display:flex;flex:1;flex-direction:column;gap:8px;min-height:140px}
html body .dq-transcript header,html body .dq-material-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body .dq-transcript pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;min-height:90px;max-height:180px;overflow:auto;padding:12px;border:1px solid var(--bc-border,#52677f);border-radius:6px;font:inherit;line-height:1.7}
html body .dq-transcript small{color:var(--bc-muted,#9fb2c9)}
html body .dq-footer{margin-top:12px;padding:0;min-height:32px}
html body .dq-fission{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;max-width:none;margin:auto;--dq-slot-height:clamp(150px,calc((100dvh - 458px)/2),260px)}
html body .dq-fission-name{grid-column:1/-1;display:flex;align-items:center;gap:12px}
html body .dq-fission-name input{flex:1}
html body .dq-fission-media{grid-column:1;grid-row:3;display:grid;grid-template-columns:3fr 2fr;gap:16px}
html body .dq-material-panel{padding:16px;border:1px solid var(--bc-border,#52677f);border-radius:8px;background:var(--bc-surface,#131f31);min-width:0}
html body .dq-material-panel h3{margin:0}
html body .dq-material-strip{display:flex;gap:12px;margin-top:12px;overflow-x:auto;padding:2px}
html body .dq-material{flex:0 0 150px;min-width:0}
html body .dq-material img,html body .dq-material video{width:150px;height:200px;object-fit:contain;border-radius:6px;background:var(--bc-canvas,#0c1728)}
html body .dq-material audio{width:260px}
html body .dq-material footer{display:flex;align-items:center;gap:8px;margin-top:8px}
html body .dq-material footer span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .dq-material-add{flex:0 0 140px;min-height:150px;border:1px dashed var(--bc-border,#52677f);border-radius:6px;background:var(--bc-canvas,#0c1728);color:inherit}
html body .dq-fission textarea{width:100%;min-height:140px;margin-top:12px;box-sizing:border-box}
html body .dq-table{table-layout:fixed;min-width:1200px;width:100%}
html body .dq-table th,html body .dq-table td{white-space:nowrap;text-align:left;overflow:hidden;text-overflow:ellipsis}

html body .dq-delivery-dialog{width:min(880px,calc(100vw - 48px));max-height:85vh;padding:20px;border:1px solid var(--bc-border,#52677f);border-radius:8px;background:var(--bc-surface,#131f31);color:inherit;overflow:auto}
html body .dq-delivery-dialog::backdrop{background:#0008}
html body .dq-delivery-dialog header,html body .dq-delivery-dialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center}
html body .dq-delivery-choice{display:grid;grid-template-columns:24px 160px minmax(0,1fr);gap:16px;align-items:start;padding:16px 0;border-bottom:1px solid var(--bc-border,#52677f)}
html body .dq-delivery-choice video{width:160px;height:220px;object-fit:contain}
html body .dq-delivery-choice pre{white-space:pre-wrap;max-height:200px;overflow:auto;font:inherit}
html body .dq-original-detail{padding:16px}

html body .dq-bundle>summary{padding:16px;cursor:pointer;font-weight:500}
html body .dq-bundle .dq-delivery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
html body .dq-bundle .dq-delivery-grid:has(>.dq-cell:last-child:nth-child(2)){grid-template-columns:1fr 1fr}
html body .dq-bundle .dq-artifact{height:380px}
@media(max-width:1450px){html body .dq-bundle .dq-delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

html body .dq-pagination{display:flex;align-items:center;flex-wrap:wrap;margin-top:16px}
html body .dq-pagination label{display:flex;align-items:center;gap:8px;white-space:nowrap}
html body .dq-pagination input{width:64px}
html body .dq-sort{border:0;background:transparent;color:inherit;text-align:left;padding:0;white-space:nowrap}

html body .dq-delivery-dialog{position:fixed;inset:0;margin:auto;color:var(--bc-text,#dbe7f4)}
html body .dq-delivery-grid:has(>.dq-cell:last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}

/* Demand assets consume the replica slot component and preserve its portrait geometry. */
html body .dq-drop.img-slot {border:2px dashed var(--bc-border);background:var(--bc-canvas);border-radius:6px;color:var(--bc-muted);box-sizing:border-box;transition:border-color 120ms,background-color 120ms;}
html body .dq-drop.img-slot.has-image {border-style:solid;background:var(--bc-surface);}
html body .dq-drop.img-slot:is(:hover,:focus-visible,.dragover) {border-color:var(--bc-muted);background:var(--bc-hover);outline-offset:2px;}
html body .dq-drop.img-slot :is(img,video) {width:100%;height:100%;object-fit:contain;background:transparent;}
html body .dq-drop .slot-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--bc-muted);}
html body .dq-drop .slot-placeholder[hidden] {display:none;}


html body .dq-drop .dq-slot-state:empty {display:none;}
html body .dq-drop .dq-slot-replace {position:absolute;top:6px;right:40px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;}
html body .dq-drop .dq-slot-replace svg {width:15px;height:15px;}
html body .dq-material-strip>.dq-material {flex:0 0 auto;width:auto;height:var(--dq-slot-height);aspect-ratio:9/16;}
html body .dq-material audio {width:100%;min-width:0;}
html body .dq-fission .dq-material-panel:has(textarea) {grid-column:2;grid-row:2 / 4;display:flex;flex-direction:column;}
html body .dq-fission textarea {min-height:110px;margin-top:8px;flex:1;height:auto!important;}

.dq-table th,.dq-table td {white-space:nowrap}
.dq-table td.dq-product-cell>strong {display:inline}
.dq-shot-count,.dq-task-links{display:flex;align-items:center;gap:8px}
.dq-shot-count input{width:72px}
html body .dq-view:has([data-publish]) .dq-intake{--dq-source-height:clamp(260px,calc(100dvh - 440px),640px);--dq-slot-height:clamp(150px,calc((100dvh - 440px)/2),320px)}
.dq-task-links{flex-wrap:wrap;margin:12px 0}
.dq-workflow-dialog{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 48px));max-height:85vh;box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--bc-border);border-radius:8px;background:var(--bc-surface);color:var(--bc-text)}
.dq-workflow-dialog::backdrop{background:#0008}
.dq-workflow-dialog header,.dq-workflow-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dq-workflow-dialog label{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.dq-workflow-dialog label.dq-notification-toggle{flex-direction:row;align-items:center}
.dq-workflow-dialog textarea{width:100%;min-height:120px;box-sizing:border-box;resize:vertical}
.dq-workflow-dialog footer{justify-content:flex-end}
.dq-workflow-history{margin-top:16px;border-top:1px solid var(--bc-border);padding-top:12px}
.dq-workflow-history summary{cursor:pointer}
.dq-workflow-history li{margin:12px 0;overflow-wrap:anywhere}
.dq-workflow-history time{margin-left:12px;color:var(--bc-muted)}
.dq-workflow-history p{white-space:pre-wrap}

/* Demand identity and final delivery are separate from production workspaces. */
html body .dq-demand-title{display:flex;align-items:center;gap:12px;margin-bottom:16px;white-space:nowrap;grid-column:1/-1}
html body .dq-demand-title input{flex:1;min-width:0}
html body .dq-table th,html body .dq-table td{padding-left:12px;padding-right:12px}
html body .dq-table td:last-child{overflow:visible}
html body .dq-table td:last-child button+button{margin-left:8px}
html body .dq-task-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--bc-muted)}
html body .dq-external-picker{margin-top:16px;padding-top:16px;border-top:1px solid var(--bc-border)}
html body .dq-external-picker header{display:flex;align-items:center;gap:12px;justify-content:space-between}
html body .dq-external-toolbar,html body .dq-external-toolbar label{display:flex;align-items:center;gap:8px}
html body .dq-external-toolbar select{max-width:280px}
html body .dq-external-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0}
html body .dq-external-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;border:1px solid var(--bc-border);border-radius:6px}
html body .dq-external-card img,html body .dq-external-card video{width:100%;height:150px;object-fit:contain}
html body .dq-external-card audio{width:100%;min-width:0}
html body .dq-external-card a,html body .dq-external-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .dq-external-card a{text-decoration:underline}
html body .dq-external-name input{margin-right:8px}
html body .dq-external-card small{color:var(--bc-muted)}
html body .dq-file-type{display:grid;place-items:center;min-height:72px;color:var(--bc-muted)}
html body .dq-picker-product{margin:12px 0;border:1px solid var(--bc-border);border-radius:6px;padding:12px}
html body .dq-picker-product summary{cursor:pointer;overflow-wrap:anywhere}
html body .dq-delivery-dialog{box-sizing:border-box}
html body .dq-delivery-dialog h3{margin:0;min-width:0;overflow-wrap:anywhere}
html body .dq-delivery-choice{grid-template-columns:24px 120px minmax(0,1fr)}
html body .dq-delivery-choice img,html body .dq-delivery-choice video{width:100%;height:180px;object-fit:contain}
html body .dq-fission .dq-demand-title{grid-row:1;margin-bottom:0}
html body .dq-fission-name{grid-row:2}
html body .dq-fission>.dq-material-panel{grid-row:3}
html body .dq-fission-media{grid-row:4}
html body .dq-fission .dq-material-panel:has(textarea){grid-row:3/5}
html body .dq-view:has([data-publish]) .dq-intake{--dq-source-height:clamp(230px,calc(100dvh - 488px),600px);--dq-slot-height:clamp(140px,calc((100dvh - 488px)/2),290px)}

html body .dq-workbench-picker .dq-empty{min-height:0;padding:16px}
html body .dq-external-card{display:grid;grid-template-rows:150px auto auto;align-content:start}
html body .dq-external-card>:first-child{align-self:center}

/* Delivery media use the same portrait viewport; text receives the remaining width. */
html body .dq-deliverables .dq-delivery-grid{grid-template-columns:254px minmax(0,1fr) 254px minmax(0,1fr)}
html body .dq-deliverables .dq-delivery-grid:has(>.dq-cell:last-child:nth-child(2)){grid-template-columns:254px minmax(0,1fr)}
html body .dq-deliverables .dq-artifact{height:432px;padding:10px}
html body .dq-deliverables .dq-media-tile{aspect-ratio:9/16;background:var(--bc-surface);border:0}
html body .dq-deliverables .dq-heading-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
html body .dq-deliverables .dq-heading-actions[hidden]{display:none}
html body .dq-deliverables .dq-cell-heading{min-height:48px;gap:8px}
html body .dq-deliverables .dq-cell-heading h5{min-width:0}
html body .dq-deliverables .dq-heading-actions svg{width:16px;height:16px}
html body .dq-deliverables .dq-heading-actions .dq-icon-button{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:1600px){html body .dq-deliverables .dq-delivery-grid{grid-template-columns:254px minmax(0,1fr)}}
@media(max-width:700px){html body .dq-deliverables .dq-delivery-grid{grid-template-columns:minmax(0,1fr)}html body .dq-deliverables .dq-media-tile{max-width:232px;align-self:center}}

html body .dq-deliverables .dq-heading-actions .dq-icon-button{background:var(--bc-surface)!important;color:var(--bc-text)!important;border-color:var(--bc-border)!important;border-radius:6px!important}
html body .dq-deliverables .dq-heading-actions .dq-icon-button:hover{background:var(--bc-hover)!important}
.dq-deliverables video::-webkit-media-controls-fullscreen-button{display:none}

html body .dq-deliverables .dq-external-grid{grid-template-columns:repeat(auto-fill,254px);padding:16px;align-items:start}
html body .dq-external-media h5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Demand list: fixed metadata columns and a readable video/title column. */
html body #demandSquare .dq-filters { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
html body #demandSquare .dq-filter-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; min-width:0; }
html body #demandSquare .dq-filter-row label { flex-wrap:nowrap; }
html body #demandSquare .dq-filter-row input[type=search] { width:180px; }
html body #demandSquare .dq-filter-row>span { margin-left:auto; color:var(--bc-muted); font-size:13px; white-space:nowrap; }
html body #demandSquare .dq-list-table { table-layout:fixed; min-width:1360px; }
html body #demandSquare .dq-list-table :is(th,td) { text-align:left; vertical-align:middle; }
html body #demandSquare .dq-list-table :is(th,td) { padding-left:12px; padding-right:12px; }
html body #demandSquare .dq-list-table .dq-sort { display:inline-flex; align-items:center; justify-content:flex-start; width:auto; min-width:0; min-height:32px; height:32px; padding:0; margin:0; border:0; text-align:left; font:inherit; overflow:visible; text-overflow:clip; }
html body #demandSquare .dq-list-table td:last-child { white-space:nowrap; }
html body #demandSquare .dq-row-actions { display:inline-flex; align-items:center; justify-content:flex-start; gap:8px; }
html body #demandSquare .dq-row-actions button + button { margin-left:0; }
html body #demandSquare .dq-ding-reminder { display:inline-flex; align-items:center; justify-content:center; width:28px; min-width:28px; height:28px; padding:0; color:#1688ee; }
html body #demandSquare .dq-ding-reminder svg { display:block; width:17px; height:17px; }
html body #demandSquare .dq-ding-reminder:disabled { opacity:.55; cursor:default; }

html body #demandSquare .dq-list-table td { height:104px; }
html body #demandSquare .dq-order-summary { display:flex; align-items:center; gap:12px; min-width:0; }
html body #demandSquare .dq-cover { flex:0 0 64px; width:64px; height:84px; padding:0; margin:0; overflow:hidden; border:1px solid var(--bc-border); border-radius:6px; background:var(--dq-inset); display:flex; align-items:center; justify-content:center; }
html body #demandSquare .dq-cover img { display:block; width:100%; height:100%; object-fit:contain; }
html body #demandSquare .dq-cover [hidden] { display:none; }
html body #demandSquare .dq-cover-fallback { padding:6px; color:var(--bc-muted); font-size:11px; line-height:1.5; white-space:normal; text-align:center; }
html body #demandSquare .dq-order-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; }
html body #demandSquare .dq-list-table :is(th,td):nth-child(8) { text-align:right; font-variant-numeric:tabular-nums; }
html body #demandSquare .dq-list-table th:nth-child(8) .dq-sort { justify-content:flex-end; }
html body #demandSquare .dq-list-table :is(td:nth-child(6),td:nth-child(7)) { font-variant-numeric:tabular-nums; font-size:12px; white-space:nowrap; }
