:root{color-scheme:light;--paper:#f4f3ef;--surface:#fff;--surface-soft:#fbfaf8;--ink:#191b23;--muted:#686c76;--line:#e3e3e7;--blue:#4c4bec;--blue-dark:#3634c9;--lavender:#efefff;--green:#2a8d67;--red:#a9483d;--sans:Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--serif:'Iowan Old Style','Palatino Linotype',Georgia,serif;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{min-width:320px;margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{color:inherit}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #7775ff;outline-offset:3px}
.skip{position:fixed;z-index:20;top:8px;left:8px;padding:10px 13px;border-radius:9px;background:var(--ink);color:white;transform:translateY(-150%)}
.skip:focus{transform:translateY(0)}

/* App chrome */
.topbar{height:68px;position:sticky;z-index:10;top:0;display:flex;align-items:center;gap:24px;padding:0 28px;border-bottom:1px solid var(--line);background:#f8f7f4f2;backdrop-filter:blur(16px)}
.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;flex:none}
.brand-mark,.brand-mark svg{width:36px;height:36px;display:block}
.brand-mark{overflow:hidden;border-radius:11px;background:var(--blue)}
.brand-mark svg{fill:none;stroke:#fffaf2;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.brand-mark circle{fill:#efa578;stroke:none}
.brand-type{display:grid;gap:4px;font:700 14px/.95 var(--sans);letter-spacing:-.25px}
.brand-type small{font:500 7px/1 var(--mono);letter-spacing:1.15px}
.topbar-product{padding-left:18px;border-left:1px solid var(--line);color:#646670;font:500 10px var(--mono);letter-spacing:.55px}
.topbar-product i{padding:0 4px;color:var(--blue);font-style:normal}
.topbar-right{display:flex;align-items:center;gap:9px;margin-left:auto}
.connection-status{display:inline-flex;align-items:center;gap:7px;margin-right:5px;color:var(--muted);font-size:11px}
.connection-dot{width:7px;height:7px;border-radius:50%;background:#aaaeb6}
.connection-status.connected .connection-dot{background:var(--green);box-shadow:0 0 0 3px #2a8d6715}
.connection-status.error .connection-dot{background:var(--red)}
.account-link,.sign-in-link{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}
.account-link:hover,.sign-in-link:hover{border-color:#c9c8f6;background:#f8f7ff;color:var(--blue)}
.app-shell{min-height:calc(100vh - 126px);display:grid;grid-template-columns:228px minmax(0,1fr)}
.studio-rail{position:sticky;top:68px;height:calc(100vh - 68px);min-height:520px;display:flex;flex-direction:column;padding:25px 13px 18px 17px;border-right:1px solid var(--line);background:#f6f5f1}
.rail-label,.rail-section-heading,.section-kicker,.context-label,.composer-heading label,.media-fieldset legend,.stage-topline,.message-author{font:500 9px/1.3 var(--mono);letter-spacing:.7px}
.rail-label{margin:2px 10px 10px;color:#8a8c94}
.work-nav{display:grid;gap:3px}
.work-nav a{min-height:41px;display:flex;align-items:center;gap:11px;padding:0 11px;border-radius:9px;color:#555963;font-size:12px;font-weight:600;text-decoration:none;transition:background .16s ease,color .16s ease}
.work-nav a:hover{background:#eeede8;color:var(--ink)}
.work-nav a.active{background:#ecebff;color:#3938c8}
.nav-icon{width:19px;display:grid;place-items:center;font-size:16px}
.rail-divider{height:1px;margin:20px 7px 17px;background:var(--line)}
.rail-section-heading{display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#878992}
.rail-section-heading button{width:25px;height:25px;border:0;border-radius:7px;background:transparent;color:var(--blue);font-size:18px;cursor:pointer}
.rail-section-heading button:hover{background:var(--lavender)}
.recent-project-list{display:grid;gap:3px;margin-top:7px}
.recent-project-list button{min-width:0;display:flex;align-items:flex-start;gap:8px;padding:9px;border:0;border-radius:8px;background:transparent;text-align:left;cursor:pointer}
.recent-project-list button:hover{background:#eeede8}
.recent-project-list button strong{display:block;overflow:hidden;color:#4c4f59;font-size:11px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}
.recent-project-list button small{display:block;margin-top:3px;color:#8c8f98;font-size:9px}
.recent-project-mark{flex:none;color:#8884ef;font-size:13px}
.rail-empty{margin:8px 9px;color:#92949c;font-size:10px;line-height:1.5}
.rail-bottom{margin-top:auto;padding:13px 9px 0;border-top:1px solid var(--line)}
.rail-home{display:inline-flex;align-items:center;gap:7px;color:#5c5f68;font-size:11px;font-weight:600;text-decoration:none}
.rail-home:hover{color:var(--blue)}
.rail-bottom p{margin:8px 0 0;color:#858791;font-size:10px;line-height:1.5}

/* Views and project context */
.main-area{min-width:0;padding:35px clamp(20px,3vw,44px) 50px}
.app-view{width:min(1520px,100%);margin:0 auto}
.view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:23px}
.create-heading{align-items:center;margin-bottom:22px}
.eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 11px;color:#777a84;font:500 9px var(--mono);letter-spacing:.7px}
.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:#e8a06e;box-shadow:0 0 0 4px #e8a06e24}
.view-heading h1{margin:0;font:400 clamp(32px,4vw,45px)/1.08 var(--serif);letter-spacing:-1.4px}
.view-subtitle{max-width:650px;margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.project-context{min-width:190px;display:grid;gap:3px;padding:11px 14px;border:1px solid var(--line);border-radius:11px;background:#ffffffa6}
.context-label{color:#898b93;font-size:8px}
.project-context strong{overflow:hidden;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.project-context>span:last-child{color:var(--muted);font-size:10px}
.workbench-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(350px,.82fr);align-items:start;gap:16px}
.workbench-panel,.agent-panel{min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 7px 24px #191b2309}
.workbench-panel{padding:18px}
.workbench-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.section-kicker{margin:0;color:#898b94}
.workbench-header h2,.agent-header h2{margin:4px 0 0;font-size:16px;font-weight:650;letter-spacing:-.35px}
.new-project-button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:#51545e;font-size:11px;font-weight:600;cursor:pointer}
.new-project-button span{color:var(--blue);font-size:17px}
.new-project-button:hover{border-color:#cac9f4;background:#f8f7ff;color:var(--blue)}

/* Medium-specific canvas */
.media-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;border:1px solid var(--line);border-radius:11px;background:#f6f6f8}
.media-tab{min-width:0;min-height:42px;display:grid;grid-template-columns:22px auto 1fr;align-items:center;gap:5px;padding:5px 9px;border:0;border-radius:8px;background:transparent;color:#666973;text-align:left;cursor:pointer}
.media-tab.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #191b2314}
.media-tab .tab-icon{color:#7775df;font-size:16px}
.media-tab>span:nth-child(2){font-size:11px;font-weight:650}
.media-tab small{justify-self:end;overflow:hidden;color:#9b9da5;font:500 8px var(--mono);text-overflow:ellipsis;white-space:nowrap}
.media-tab.active small{color:#8c8e97}
.media-stage{position:relative;min-height:355px;display:flex;flex-direction:column;overflow:hidden;margin-top:12px;border:1px solid #e7e7eb;border-radius:12px;background-color:#fafafb;background-image:linear-gradient(#e5e5eb80 1px,transparent 1px),linear-gradient(90deg,#e5e5eb80 1px,transparent 1px);background-size:28px 28px}
.media-stage:before{position:absolute;inset:0;content:"";pointer-events:none;background:radial-gradient(ellipse at 50% 47%,#fafafb 8%,#fafafbdf 51%,#fafafb90 100%)}
.stage-topline,.stage-footer{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.stage-topline{padding:14px 15px;color:#777a84;font-size:8px}
.stage-state{padding:4px 7px;border:1px solid #e5e4e1;border-radius:999px;background:#fff;color:#83858d;font-size:7px}
.stage-empty{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 22px 28px;text-align:center}
.stage-symbol{width:53px;height:53px;display:grid;place-items:center;margin-bottom:15px;border:1px solid #dcdbfb;border-radius:15px;background:#f3f2ff;color:#7775e8;font-size:27px}
.media-stage[data-medium="music"] .stage-symbol{border-color:#f0dfcf;background:#fff7ef;color:#ba7140}
.media-stage[data-medium="video"] .stage-symbol{border-color:#dce7e2;background:#f2f8f5;color:#4d8870}
.stage-title{margin:0;color:#292b34;font-size:15px;font-weight:650;letter-spacing:-.2px}
.stage-description{max-width:400px;margin:7px 0 13px;color:#777a84;font-size:11px;line-height:1.6}
.stage-capability{padding:5px 8px;border-radius:5px;background:#efeff2;color:#777984;font:500 8px var(--mono);letter-spacing:.15px}
.stage-footer{padding:11px 14px;border-top:1px solid #e8e8ec;background:#ffffffe6;color:#8a8d95;font-size:9px}
.stage-link{border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:650;cursor:pointer}
.stage-link:hover{text-decoration:underline}
.direction-desk{margin-top:12px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fcfbf9}
.direction-placeholder{display:flex;align-items:center;gap:12px}
.direction-placeholder-mark{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:#f1f0ff;color:var(--blue);font-size:17px}
.direction-placeholder strong{font-size:11px;font-weight:650}
.direction-placeholder p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.result-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 9px}
.result-top h3{margin:4px 0 0;font-size:14px;font-weight:650}
.result-badge{padding:5px 8px;border:1px solid #d7d6fc;border-radius:999px;background:#f3f2ff;color:#5754c8;font:500 8px var(--mono);white-space:nowrap}
.result-badge.confirmed{border-color:#d3ebdf;background:#f0faf4;color:#2b7a59}
.result-badge.rejected{border-color:#eedbd6;background:#fbf3f1;color:#9d5146}
.section-intro,.library-intro{margin:7px 0 12px;color:var(--muted);font-size:10px}
.result-document{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.result-document>.quote,.result-document>h3,.result-document>details,.result-document>.trace,.result-document>.muted,.feedback-history,.follow-up-question{grid-column:1/-1}
.result-document>.quote{margin:0;padding:12px 14px;border-left:3px solid var(--blue);border-radius:0 8px 8px 0;background:#f2f1fb;font:400 16px/1.4 var(--serif)}
.result-document h3{margin:8px 0 0;font-size:10px;font-weight:700}
.result-document .card{min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}
.result-document .card p{margin:3px 0;color:#444751;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.result-document .card .muted,.result-document .muted,.result-document .trace{color:var(--muted);font-size:9px}
.result-document .trace-source-quote{margin:5px 0 9px;padding:7px 9px;border-left:2px solid var(--line);background:var(--surface-soft);color:#474953;font-size:11px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.result-document .tag{color:#5754c8;font:500 7px var(--mono)}
.result-document details{font-size:10px}
.result-document summary{cursor:pointer;font-weight:600}
.result-document>.compile-preview{grid-column:1/-1;display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfaf7}
.compile-preview-output{display:grid;gap:9px}
.compiled-media-card,.compiled-decision-card{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.compiled-media-card h4{margin:0;font-size:10px}
.compiled-media-card p{margin:0;overflow-wrap:anywhere;font-size:10px;line-height:1.5}
.compiled-media-card .muted,.compiled-media-card .trace{color:var(--muted);font-size:9px}
.compiled-coverage{margin-top:4px}
.feedback-history{color:#514fc2;font-size:9px}
.follow-up-question{padding:9px 11px;border-left:3px solid #e8a06e;border-radius:0 8px 8px 0;background:#fff7f0;font-size:10px}
.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:13px}
.result-actions button:disabled{opacity:.5;cursor:not-allowed}
.music-rights-wrap{flex-basis:100%;display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #e7dfd4;border-radius:8px;background:#fcfaf6;color:#62616a;font-size:10px;line-height:1.5}
.music-rights-wrap input{flex:none;margin:2px 0 0;accent-color:var(--blue)}
.music-generate-button{min-height:36px}
.music-output-panel{position:relative;z-index:1;display:grid;gap:10px;margin:0 14px 13px;padding:14px;border:1px solid #ead8c7;border-radius:10px;background:#fffdf9}
.music-output-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.music-output-heading strong{display:block;margin-top:3px;font-size:12px}
.music-output-note,.music-provider-note{margin:0;color:#777a84;font-size:10px;line-height:1.5}
.music-output-panel audio{width:100%;height:40px}
.music-download{justify-self:start;color:var(--blue);font-size:10px;font-weight:650;text-decoration:none}
.music-download:hover{text-decoration:underline}
.button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:10px;font-weight:650;text-decoration:none;cursor:pointer}
.button-primary{border-color:var(--blue);background:var(--blue);color:#fff}
.button-primary:hover{border-color:var(--blue-dark);background:var(--blue-dark)}
.button-outline:hover{border-color:#cac9f4;background:#f8f7ff;color:var(--blue)}
.text-button{padding:6px;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:600;cursor:pointer}
.text-button:hover{text-decoration:underline}

/* Creative Director conversation */
.agent-panel{position:sticky;top:84px;display:flex;flex-direction:column;min-height:600px;max-height:calc(100vh - 104px);overflow:hidden}
.agent-header{min-height:65px;display:flex;align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid var(--line)}
.agent-avatar{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--blue);color:white;font-size:18px}
.agent-header h2{font-size:13px}
.agent-header .section-kicker{font-size:8px}
.agent-state{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:#737680;font:500 8px var(--mono)}
.agent-state i{width:6px;height:6px;border-radius:50%;background:#aaaeb6}
.agent-thread{flex:1;min-height:175px;overflow:auto;padding:17px 15px 12px;scrollbar-color:#d8d9df transparent;scrollbar-width:thin}
.agent-message{max-width:100%;padding:12px 13px;border:1px solid #ececf0;border-radius:11px 11px 11px 4px;background:#fafafd}
.message-author{margin:0 0 8px;color:#888b94;font-size:8px}
.message-author span{padding:0 2px;color:#c0c0c6}
.agent-message>p:not(.message-author){margin:6px 0;color:#545761;font-size:11px;line-height:1.55}
.agent-message>p:nth-child(2){color:#252731;font-size:13px;font-weight:650}
.example-prompt{margin-top:5px;padding:0;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:650;cursor:pointer}
.example-prompt:hover{text-decoration:underline}
.user-message{max-width:88%;margin:12px 0 12px auto;padding:10px 12px;border-radius:11px 11px 4px 11px;background:#eeedff;color:#34344c;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.response-message{margin:12px 0;padding:11px 12px;border:1px solid #e5e4fa;border-radius:11px 11px 11px 4px;background:#f9f8ff;color:#51535d;font-size:11px;line-height:1.55}
.agent-composer{padding:13px;border-top:1px solid var(--line);background:#fdfdfd}
.composer-heading{display:flex;justify-content:space-between;gap:9px;margin-bottom:7px}
.composer-heading label{color:#6e717b;font-size:8px}
.composer-heading span{color:#999ba2;font-size:9px}
.requirements{display:grid;gap:7px}
.requirement{position:relative}
.requirement label{display:block}
.requirement textarea{width:100%;min-height:86px;resize:vertical;padding:11px 36px 11px 12px;border:1px solid #dadbe1;border-radius:9px;background:#fff;color:var(--ink);font:12px/1.55 var(--sans)}
.requirement textarea::placeholder{color:#9a9ca4}
.requirement textarea:focus{border-color:#9694ef;outline:none;box-shadow:0 0 0 3px #4c4bec17}
.requirement textarea:focus-visible{border-color:#3634c9;outline:3px solid #3634c9;outline-offset:2px;box-shadow:none}
.requirement>button{position:absolute;right:7px;top:7px;width:25px;height:25px;border:0;border-radius:6px;background:transparent;color:#8a8d96;font-size:17px;cursor:pointer}
.requirement>button:hover{background:#f1f0f7;color:var(--ink)}
.requirement>button:disabled{opacity:.3;cursor:not-allowed}
.add-note{margin:5px 0 10px;padding:0;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:600;cursor:pointer}
.add-note:hover{text-decoration:underline}
.media-fieldset{margin:0;padding:0;border:0}
.media-fieldset legend{margin-bottom:6px;color:#777a83;font-size:8px}
.media-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.media-option{position:relative;min-height:32px;display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid var(--line);border-radius:7px;background:white;color:#656873;font-size:10px;font-weight:550;cursor:pointer}
.media-option:has(input:checked){border-color:#c8c7f7;background:#f5f4ff;color:#3836bc}
.media-option input{width:13px;height:13px;margin:0;accent-color:var(--blue)}
.media-check{display:none}
.composer-actions{display:grid;gap:6px;margin-top:9px}
.send-button{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border:0;border-radius:8px;background:var(--blue);color:white;font-size:11px;font-weight:650;cursor:pointer}
.send-button:hover:not(:disabled){background:var(--blue-dark)}
.send-button:disabled{background:#e1e1e8;color:#888a93;cursor:not-allowed}
.send-button span{font-size:16px}
.check-operation{min-height:32px;border:1px solid var(--line);border-radius:7px;background:white;color:#666974;font-size:10px;cursor:pointer}
.composer-note{margin:7px 1px 0;color:#878a93;font-size:9px;line-height:1.45}
.composer-note.error{color:var(--red)}
.composer-note.success{color:var(--green)}
.analysis-receipt-panel{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-top:8px;padding:8px 9px;border:1px solid #ead8d8;border-radius:8px;background:#fff8f7}
.analysis-receipt-panel[hidden]{display:none}
.analysis-receipt-panel .composer-note{flex:1;margin:0}
.analysis-receipt-history{flex:1 0 100%;max-height:150px;overflow:auto;font-size:10px}
.analysis-receipt-history[hidden]{display:none}
.analysis-receipt-history summary{cursor:pointer;color:var(--muted)}
.analysis-receipt-history-entry{margin:6px 0 0;padding:6px 8px;border-left:2px solid #ead8d8;background:rgba(255,255,255,.55)}
.analysis-receipt-dismiss{flex:none;min-height:27px;margin-left:auto;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:9px;cursor:pointer}

/* Projects and library */
.collection-view{min-height:520px}
.collection-view .view-heading{margin-bottom:28px}
.view-new-project{flex:none}
.projects-grid,.library-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.project-card,.library-card{min-width:0;min-height:150px;display:flex;flex-direction:column;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.project-card:hover,.library-card:hover{transform:translateY(-2px);border-color:#c9c8f4;box-shadow:0 8px 24px #191b2310}
.collection-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.collection-card-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f0efff;color:var(--blue)}
.collection-type{color:#8b8d95;font:500 8px var(--mono);text-transform:uppercase}
.project-card strong,.library-card strong{display:block;overflow:hidden;color:var(--ink);font-size:13px;font-weight:650;line-height:1.4;text-overflow:ellipsis}
.project-card p,.library-card p{display:-webkit-box;overflow:hidden;margin:5px 0;color:var(--muted);font-size:10px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.collection-card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px;color:#898c94;font-size:9px}
.collection-empty{grid-column:1/-1;min-height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;border:1px dashed #d6d6dc;border-radius:12px;background:#faf9f7;color:var(--muted);font-size:12px;text-align:center;line-height:1.6}
.collection-empty strong{margin-bottom:4px;color:#3c3f48;font-size:13px}
.collection-empty a{margin-top:10px;color:var(--blue);font-weight:650;text-decoration:none}
.library-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.library-section{grid-column:1/-1;min-width:0}
.library-section>h2{margin:0;color:var(--ink);font-size:17px;font-weight:650}
.library-section>p{margin:5px 0 14px;color:var(--muted);font-size:10px;line-height:1.5}
.library-section>.library-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.library-card{min-height:126px}
.library-card .collection-card-meta{padding-top:9px}
.library-media-card{min-height:0;cursor:default}
.library-media-preview{min-height:112px;display:grid;place-items:center;overflow:hidden;padding:9px;border-radius:9px;background:#f5f4f1;color:var(--muted);font-size:10px;line-height:1.45}
.library-media-preview img{display:block;width:100%;max-height:190px;object-fit:contain;border-radius:6px}
.library-media-preview video{display:block;width:100%;max-height:260px;background:#171717;border-radius:6px}
.library-media-preview audio{width:100%;max-width:420px}
.library-media-note,.library-media-preview>span{display:block;color:var(--muted);font-size:9px}
.library-media-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.library-media-actions .button{min-height:32px;padding:7px 9px;font-size:9px}
.library-load-status{padding:9px 11px;border:1px solid #ead7a7;border-radius:8px;background:#fff9e8;color:#705a23;font-size:10px}

/* Footer */
.site-footer{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 28px;border-top:1px solid var(--line);color:#898b93;font-size:9px}
.site-footer>span:first-child{color:#656873;font:500 8px var(--mono);letter-spacing:.6px}
.site-footer i{color:var(--blue);font-style:normal}
.site-footer>span:last-child{text-align:right}

@media(max-width:1180px){.app-shell{grid-template-columns:204px minmax(0,1fr)}.main-area{padding-inline:22px}.workbench-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:12px}.workbench-panel{padding:15px}.project-context{min-width:170px}.media-tab{padding-inline:6px}.media-tab small{font-size:7px}}
@media(max-width:980px){.app-shell{grid-template-columns:66px minmax(0,1fr)}.studio-rail{align-items:center;padding-inline:7px}.rail-label,.rail-section-heading,.rail-projects,.rail-bottom{display:none}.work-nav{width:100%;gap:7px}.work-nav a{justify-content:center;gap:0;padding:0}.work-nav a>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.nav-icon{font-size:18px}.rail-divider{width:30px;margin:15px 0}.workbench-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:12px}.agent-panel{position:relative;top:auto;min-height:510px;max-height:calc(100vh - 104px)}.agent-thread{min-height:180px}.main-area{padding-top:25px}}
@media(max-width:760px){.workbench-layout{grid-template-columns:minmax(0,1fr)}.agent-panel{order:-1;max-height:700px}}
@media(max-width:700px){.topbar{height:60px;gap:12px;padding-inline:15px}.brand-mark,.brand-mark svg{width:32px;height:32px}.brand-mark{border-radius:9px}.brand-type{font-size:12px}.brand-type small{font-size:6px}.topbar-product{display:none}.topbar-right{gap:6px}.connection-status{margin-right:0;font-size:0}.connection-dot{width:8px;height:8px}.account-link,.sign-in-link{min-height:32px;padding-inline:9px;font-size:10px}.app-shell{min-height:calc(100vh - 112px);display:block}.studio-rail{position:sticky;z-index:8;top:60px;height:auto;min-height:0;display:block;padding:0 13px;border-right:0;border-bottom:1px solid var(--line);background:#f8f7f4f5;backdrop-filter:blur(12px)}.rail-divider,.rail-label,.rail-projects,.rail-bottom{display:none}.work-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px 0}.work-nav a{min-height:38px;gap:6px;padding:0 7px;border-radius:7px;font-size:10px}.work-nav a>span:last-child{position:static;width:auto;height:auto;overflow:visible;clip-path:none}.nav-icon{width:auto;font-size:13px}.main-area{padding:23px 14px 32px}.view-heading,.create-heading{align-items:flex-start;gap:13px}.view-heading h1{font-size:34px}.view-subtitle{font-size:11px}.project-context{min-width:135px;padding:8px 9px}.project-context strong{max-width:132px;font-size:10px}.project-context>span:last-child{font-size:8px}.workbench-header h2{font-size:14px}.workbench-panel{padding:12px;border-radius:12px}.new-project-button{min-height:31px;padding-inline:8px;font-size:9px}.media-toolbar{gap:3px;padding:4px}.media-tab{grid-template-columns:17px auto;gap:4px;min-height:39px;padding:4px 6px}.media-tab small{grid-column:2;justify-self:start;font-size:7px}.media-tab .tab-icon{font-size:14px}.media-tab>span:nth-child(2){font-size:10px}.media-stage{min-height:290px}.stage-topline{padding:11px}.stage-empty{padding:15px}.stage-title{font-size:14px}.stage-description{font-size:10px}.stage-footer{align-items:flex-start;padding:9px 10px;font-size:8px}.direction-desk{padding:12px}.result-top{align-items:flex-start;flex-direction:column}.result-document{grid-template-columns:1fr}.result-document>.quote,.result-document>h3,.result-document>details,.result-document>.trace,.result-document>.muted,.feedback-history,.follow-up-question{grid-column:1}.result-actions{align-items:stretch;flex-direction:column}.result-actions .button{width:100%}.text-button{text-align:center}.agent-panel{min-height:560px;max-height:none;border-radius:12px}.agent-header{min-height:58px}.agent-thread{min-height:210px;max-height:340px}.agent-composer{padding:11px}.requirement textarea{min-height:76px}.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.project-card{min-height:139px;padding:12px}.library-list{grid-template-columns:1fr;gap:9px}.collection-view .view-heading{align-items:flex-start;flex-direction:column}.view-new-project,.collection-view .view-heading>.button{align-self:flex-start}.site-footer{align-items:flex-start;flex-direction:column;padding:12px 16px}.site-footer>span:last-child{text-align:left}}
@media(max-width:400px){.topbar{padding-inline:10px}.brand{gap:6px}.brand-mark,.brand-mark svg{width:29px;height:29px}.brand-type{font-size:11px}.topbar-right{gap:4px}.account-link,.sign-in-link{min-height:30px;padding-inline:7px;font-size:9px}.main-area{padding-inline:10px}.create-heading{display:block}.project-context{display:inline-grid;margin-top:12px}.media-tab{grid-template-columns:15px auto;padding-inline:4px}.media-tab small{font-size:6px}.projects-grid{grid-template-columns:1fr}.result-badge{font-size:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}

/* Answer a Creative Director question without mutating or submitting the brief. */
.follow-up-question label{display:block;margin-top:8px;font-size:10px;font-weight:600}
.follow-up-question textarea{box-sizing:border-box;display:block;width:100%;min-height:64px;margin-top:4px;padding:10px;border:1px solid #ead1bb;border-radius:8px;background:#fff;color:var(--ink);font:inherit;line-height:1.5;resize:vertical}
.follow-up-question textarea:focus{border-color:#8f4824;outline:3px solid #8f4824;outline-offset:2px}
.follow-up-question button{min-height:36px;margin-top:7px}
.follow-up-answer-status{margin:7px 0 0;color:var(--muted);line-height:1.5}
@media(max-width:700px){.follow-up-question textarea{min-height:80px;font-size:16px}.follow-up-question button{width:100%;min-height:44px;font-size:14px}}

/* Project-first media studio */
.create-heading{margin-bottom:16px}
.create-heading .eyebrow{margin-bottom:7px}
.create-heading h1{font-size:clamp(27px,3.1vw,35px);letter-spacing:-.8px}
.create-heading .view-subtitle{margin-top:5px;font-size:11px}
.project-context{min-width:205px;padding:10px 13px}
.project-context strong{font-size:11px}
.project-context>span:last-child{font-size:9px}
.workbench-layout{grid-template-columns:minmax(0,1.65fr) minmax(350px,.85fr);gap:18px}
.workbench-panel{padding:16px}
.workbench-header{margin-bottom:12px}
.workbench-header h2{font-size:15px}
.media-stage:not([data-medium="image"]):not([data-medium="music"]){display:none}
.video-studio{margin-top:11px;overflow:hidden;border:1px solid #dedee4;border-radius:12px;background:#fff}
.video-project-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px 12px}
.video-project-bar h3{margin:5px 0 0;font-size:13px;font-weight:650;letter-spacing:-.2px}
.video-pipeline-state{display:inline-flex;align-items:center;gap:7px;flex:none;padding:6px 8px;border:1px solid #f0d8ce;border-radius:999px;background:#fff8f5;color:#9b5949;font-size:8px;font-weight:600}
.video-pipeline-state i{width:6px;height:6px;border-radius:50%;background:#cb7b64}
.video-workflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:10px 12px;border-top:1px solid #eeedf0;border-bottom:1px solid #eeedf0;background:#fafafd;list-style:none}
.video-workflow li{position:relative;display:grid;grid-template-columns:21px 1fr;align-items:center;column-gap:5px;min-width:0;padding:2px 6px}
.video-workflow li+li:before{position:absolute;top:10px;left:-3px;width:7px;height:1px;background:#dedee5;content:""}
.video-workflow li>span{grid-row:1/3;display:grid;place-items:center;width:20px;height:20px;border:1px solid #dedee5;border-radius:50%;background:#fff;color:#7b7e88;font:500 7px var(--mono)}
.video-workflow li strong{overflow:hidden;color:#474a54;font-size:8px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.video-workflow li small{overflow:hidden;color:#9698a0;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.video-workflow li.complete>span{border-color:#ceeadc;background:#effaf4;color:#2a8d67}
.video-workflow li.complete strong{color:#287654}
.video-tabs{display:flex;gap:4px;padding:8px 11px 0;border-bottom:1px solid #e9e8ed}
.video-tab{position:relative;min-height:34px;padding:0 10px;border:0;background:transparent;color:#777a84;font-size:9px;font-weight:600;cursor:pointer}
.video-tab.active{color:#3735bb}
.video-tab.active:after{position:absolute;right:8px;bottom:-1px;left:8px;height:2px;border-radius:2px;background:#514fee;content:""}
.video-view{padding:12px}
.video-editor{display:grid;grid-template-columns:minmax(0,1fr) 166px;gap:10px}
.video-monitor-panel,.video-inspector{min-width:0;overflow:hidden;border:1px solid #e3e3e8;border-radius:9px;background:#fafafb}
.video-panel-heading{height:34px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 10px;border-bottom:1px solid #e5e5e9;color:#747782;font:500 7px var(--mono);letter-spacing:.5px}
.video-no-source{color:#b05e4f;font-size:6px}
.video-monitor{position:relative;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 42%,#252732,#17191f 70%);color:#fff}
.monitor-empty{display:grid;justify-items:center;gap:5px;padding:14px;text-align:center}
.monitor-mark{width:28px;height:28px;display:grid;place-items:center;border:1px solid #ffffff38;border-radius:50%;color:#d7d7e2;font-size:9px}
.monitor-empty strong{font-size:10px;font-weight:600}
.monitor-empty>span:last-child{max-width:225px;color:#a6a8b1;font-size:8px;line-height:1.45}
.monitor-timecode{position:absolute;right:8px;bottom:7px;color:#bfc1ca;font:500 7px var(--mono)}
.inspector-dots{letter-spacing:2px;color:#9a9ca4}
.sequence-empty{display:grid;justify-items:center;padding:14px 10px 12px;text-align:center}
.sequence-icon{width:29px;height:29px;display:grid;place-items:center;border:1px solid #dedee5;border-radius:8px;background:#fff;color:#7a78db;font-size:15px}
.sequence-empty strong{margin-top:7px;font-size:9px}
.sequence-empty p{margin:4px 0 0;color:#858892;font-size:8px;line-height:1.5}
.sequence-facts{padding:0 10px}
.sequence-facts>div{display:flex;justify-content:space-between;gap:5px;padding:7px 0;border-top:1px solid #e8e8ec;font-size:7px}
.sequence-facts span{color:#898c95}
.sequence-facts strong{color:#62656e;font-size:7px;font-weight:600;text-align:right}
.timeline-panel{margin-top:10px;border:1px solid #e3e3e8;border-radius:9px;background:#fff}
.timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px 8px}
.timeline-heading .section-kicker{font-size:7px}
.timeline-heading>div:first-child>span{display:block;margin-top:3px;color:#858892;font-size:8px}
.timeline-actions{display:flex;gap:4px}
.timeline-actions button{min-height:24px;padding:0 7px;border:1px solid #e3e3e8;border-radius:6px;background:#fafafb;color:#777a84;font-size:7px}
.timeline-actions button:disabled{opacity:.6;cursor:not-allowed}
.timeline-unavailable{margin:0 10px 7px;padding:6px 8px;border-radius:6px;background:#fff8f4;color:#97634f;font-size:7px;line-height:1.45}
.track-list{padding:0 10px 9px}
.track-row{min-height:32px;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:6px}
.track-row+.track-row{margin-top:4px}
.track-name{display:flex;align-items:center;gap:6px;color:#656873;font-size:8px;font-weight:600}
.track-name i{width:17px;height:17px;display:grid;place-items:center;border:1px solid #e7e7eb;border-radius:5px;background:#fafafb;color:#737681;font-size:8px;font-style:normal}
.track-lane{height:30px;display:flex;align-items:center;overflow-x:auto;padding:0 9px;border:1px dashed #dedee5;border-radius:5px;background:repeating-linear-gradient(135deg,#fafafb 0,#fafafb 8px,#f6f6f8 8px,#f6f6f8 16px);color:#9a9ca5;font-size:7px}
.timeline-clip{height:22px;min-width:70px;display:flex;align-items:center;overflow:hidden;padding:0 8px;border:1px solid #b9b3ff;border-radius:5px;background:linear-gradient(100deg,#e7e5ff,#f0eaff 72%,#d9e7ff);color:#42407d;font-size:7px;font-weight:650;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.timeline-clip.selected{border-color:#514fee;box-shadow:0 0 0 1px #514fee55}
.video-text-cue-chip{height:22px;display:flex;align-items:center;overflow:hidden;padding:0 7px;border:1px solid #d4c6eb;border-radius:5px;background:#f2eafd;color:#5c4776;font-size:7px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.video-audio-track-chip{height:22px;display:flex;align-items:center;overflow:hidden;padding:0 7px;border:1px solid #b7d8c8;border-radius:5px;background:#e9f6ef;color:#315c48;font-size:7px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.video-sequence-editor{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:0 10px 10px}
.video-sequence-editor[hidden],#video-sequence-form[hidden],#video-sequence-add-list[hidden]{display:none}
#video-sequence-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}
#video-sequence-form label{display:grid;gap:4px;color:#62656e;font-size:8px;font-weight:600}
#video-sequence-form label span{color:#92949d;font-size:7px;font-weight:400}
#video-sequence-form input{width:95px;min-height:32px;padding:5px 7px;border:1px solid #dedee5;border-radius:6px;background:#fff;color:#333;font:500 10px var(--mono)}
.video-sequence-clips{display:grid;gap:7px;width:100%}
.video-sequence-audio-track{display:grid;gap:7px;width:100%;padding:9px;border:1px solid #d9e9df;border-radius:7px;background:#f8fcf9}
.video-sequence-audio-track>div:first-child{display:grid;gap:3px}
.video-sequence-audio-track>div:first-child strong{color:#315c48;font-size:9px}
.video-sequence-audio-track>div:first-child span{color:#78877e;font-size:7px;line-height:1.5}
.video-sequence-audio-track>label{display:grid;gap:4px;color:#62656e;font-size:8px;font-weight:600}
.video-sequence-audio-track>select{max-width:100%;min-height:32px;padding:5px 7px;border:1px solid #dedee5;border-radius:6px;background:#fff;color:#333;font-size:9px}
.video-sequence-audio-track>button{justify-self:start;min-height:30px;padding:4px 7px;font-size:8px}
.video-sequence-audio-controls{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));align-items:end;gap:8px}
.video-sequence-audio-controls[hidden]{display:none}
.video-sequence-audio-controls>label{display:grid;gap:4px;color:#62656e;font-size:8px;font-weight:600}
.video-sequence-audio-controls>label span{color:#92949d;font-size:7px;font-weight:400}
.video-sequence-audio-controls input[type="number"]{width:100%;min-height:32px;padding:5px 7px;border:1px solid #dedee5;border-radius:6px;background:#fff;color:#333;font:500 10px var(--mono)}
.video-sequence-audio-controls input[type="range"]{width:100%;min-height:32px;padding:5px 0;accent-color:#397654}
.video-sequence-audio-controls>button{min-height:30px;padding:4px 7px;font-size:8px}
#video-sequence-audio-note{margin:0;color:#78877e;font-size:8px;line-height:1.5}
#video-sequence-audio-note[data-state="error"]{color:#9f3131}
#video-sequence-audio-note[data-state="success"]{color:#315c48}
.video-sequence-text-track{display:grid;gap:7px;width:100%;padding:9px;border:1px solid #e3dfee;border-radius:7px;background:#fbfaff}
.video-sequence-text-track>div:first-child{display:grid;gap:3px}
.video-sequence-text-track>div:first-child strong{color:#4f466c;font-size:9px}
.video-sequence-text-track>div:first-child span{color:#85818e;font-size:7px;line-height:1.5}
.video-sequence-text-overlays{display:grid;gap:6px}
.video-sequence-text-cue{display:grid;grid-template-columns:minmax(140px,1fr) auto auto auto auto;align-items:end;gap:7px;padding:7px;border:1px solid #e3e1e9;border-radius:6px;background:#fff}
.video-sequence-text-cue legend{padding:0 3px;color:#65558d;font-size:8px;font-weight:650}
.video-sequence-text-cue textarea{width:100%;min-height:42px;resize:vertical;padding:6px;border:1px solid #dedee5;border-radius:5px;color:#333;font:400 9px var(--sans);line-height:1.4}
.video-sequence-text-cue select{min-height:30px;padding:4px 6px;border:1px solid #dedee5;border-radius:5px;background:#fff;color:#333;font-size:8px}
.video-sequence-text-cue>button{min-height:29px;padding:4px 7px;border:1px solid #e3c6c2;border-radius:6px;background:#fff9f8;color:#8b4339;font-size:8px;cursor:pointer}
.video-sequence-text-track>#video-sequence-add-text{justify-self:start;min-height:29px;padding:4px 8px;font-size:8px}
.video-sequence-clip-edit{display:grid;grid-template-columns:minmax(120px,1fr) auto auto auto;align-items:end;gap:8px;padding:8px;border:1px solid #e3e3e8;border-radius:7px;background:#fafafb}
.video-sequence-clip-edit legend{padding:0 4px;color:#5551a6;font-size:8px;font-weight:650}
.video-sequence-clip-edit>label{display:grid;gap:4px;color:#62656e;font-size:8px;font-weight:600}
.video-sequence-clip-edit>label span{color:#92949d;font-size:7px;font-weight:400}
.video-sequence-clip-edit input{width:85px;min-height:30px;padding:4px 6px;border:1px solid #dedee5;border-radius:6px;background:#fff;color:#333;font:500 9px var(--mono)}
.video-sequence-clip-edit>button{min-height:30px;padding:4px 7px;border:1px solid #e3c6c2;border-radius:6px;background:#fff9f8;color:#8b4339;font-size:8px;cursor:pointer}
.video-sequence-add-list{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.video-sequence-play{margin-top:8px}
.video-sequence-add-list>button{min-height:30px;padding:5px 8px;border:1px solid #cbd4e8;border-radius:6px;background:#f4f7ff;color:#303f60;font-size:8px;font-weight:600;cursor:pointer}
#video-sequence-note{flex-basis:100%;margin:0;color:#777a84;font-size:8px;line-height:1.5}
#video-sequence-note[data-state="error"]{color:#9f3131}
#video-sequence-note[data-state="success"]{color:#17643e}
.video-local-export{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 10px 10px;padding:9px;border:1px solid #dddced;border-radius:7px;background:#faf9ff}
.video-local-export[hidden]{display:none}
.video-local-export-copy{display:grid;flex:1 1 220px;gap:3px}
.video-local-export-copy strong{color:#454370;font-size:8px;font-weight:650}
.video-local-export-copy span{color:#777985;font-size:7px;line-height:1.5}
.video-local-export-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.video-local-export-actions .button{min-height:30px;padding:0 9px;font-size:8px}
#video-export-download[hidden]{display:none}
#video-export-status{flex-basis:100%;margin:0;color:#777a84;font-size:8px;line-height:1.5}
#video-export-status[data-state="error"]{color:#9f3131}
#video-export-status[data-state="success"]{color:#17643e}
.preservation-note{display:flex;align-items:flex-start;gap:7px;margin:9px 1px 1px;color:#777a84;font-size:8px;line-height:1.5}
.preservation-note span{color:#4e4bd2;font-size:12px}
.storyboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:2px 2px 10px}
.storyboard-heading .section-kicker{font-size:7px}
.storyboard-heading h4{margin:5px 0;font-size:13px;font-weight:650}
.storyboard-heading p:not(.section-kicker){max-width:520px;margin:4px 0 0;color:#777a84;font-size:9px;line-height:1.5}
.storyboard-boundary{margin:0 0 10px;padding:7px 9px;border-radius:6px;background:#f5f4ff;color:#5c5a85;font-size:8px;line-height:1.5}
.storyboard-shots{display:grid;gap:9px}
.storyboard-shot{min-width:0;margin:0;padding:10px;border:1px solid #e3e3e8;border-radius:8px;background:#fff}
.storyboard-shot legend{padding:0 5px;color:#4947ba;font-size:9px;font-weight:650}
.storyboard-shot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.storyboard-shot label{display:grid;gap:4px;color:#676a74;font-size:8px;font-weight:600}
.storyboard-shot input,.storyboard-shot textarea,.storyboard-shot select{width:100%;min-width:0;padding:7px 8px;border:1px solid #dedee5;border-radius:6px;background:#fff;color:#373943;font:400 9px/1.45 var(--sans);resize:vertical}
.storyboard-shot textarea{min-height:48px}
.storyboard-shot .storyboard-wide{grid-column:1/-1}
.storyboard-source-list{display:grid;gap:5px;padding:7px;border:1px solid #e7e6ec;border-radius:6px;background:#fafafd}
.storyboard-source-list legend{color:#676a74;font-size:8px;font-weight:600}
.storyboard-source-option{display:flex!important;align-items:flex-start;gap:6px!important;color:#646771!important;font-size:8px!important;font-weight:400!important;line-height:1.4}
.storyboard-source-option input{width:13px;min-width:13px;margin:1px 0 0;accent-color:#514fee}
.storyboard-shot-remove{margin-top:7px;padding:5px 7px;border:1px solid #e5e4eb;border-radius:5px;background:#fff;color:#777a84;font-size:8px;cursor:pointer}
.storyboard-actions{display:flex;justify-content:space-between;gap:8px;margin-top:10px}
.storyboard-actions button{min-height:30px;padding:0 10px;font-size:8px}
.storyboard-actions button:disabled{opacity:.55;cursor:not-allowed}
.video-empty-view{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center}
.empty-view-mark{width:43px;height:43px;display:grid;place-items:center;margin-bottom:12px;border:1px solid #e1e0f3;border-radius:12px;background:#f5f4ff;color:#6562d7;font-size:21px}
.video-empty-view .section-kicker{font-size:7px}
.video-empty-view h4,.video-versions-heading h4{margin:5px 0;font-size:13px;font-weight:650}
.video-empty-view>p:not(.section-kicker){max-width:390px;margin:4px 0 11px;color:#777a84;font-size:9px;line-height:1.6}
.capability-pill{padding:5px 7px;border-radius:5px;background:#f0eff3;color:#777984;font:500 7px var(--mono)}
.video-versions-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 11px}
.video-versions-heading .section-kicker{font-size:7px}
.video-versions-heading h4{margin-bottom:0}
.video-versions-heading>span{color:#92949d;font-size:8px}
.video-versions-list{display:grid;gap:7px}
.video-version-empty{display:grid;gap:4px;padding:17px;border:1px dashed #dcdce3;border-radius:8px;background:#fafafb}
.video-version-empty strong{font-size:9px;font-weight:600}
.video-version-empty span{color:#858892;font-size:8px}
.video-version-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid #e5e5e9;border-radius:8px;background:#fff}
.video-version-row>div{min-width:0;display:grid;gap:4px}
.video-version-row strong{overflow:hidden;font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.video-version-row span{color:#858892;font-size:7px}
.video-version-row button{flex:none;padding:6px 8px;border:1px solid #dedee7;border-radius:6px;background:#fafafd;color:#4c49c7;font-size:8px;font-weight:600;cursor:pointer}
.version-boundary{margin:10px 0 1px;color:#858892;font-size:8px;line-height:1.5}
@media(max-width:1100px){.workbench-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr)}.video-editor{grid-template-columns:minmax(0,1fr) 145px}}
@media(max-width:980px){.workbench-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr);gap:12px}}
@media(max-width:760px){.workbench-layout{grid-template-columns:minmax(0,1fr)}.agent-panel{order:1}.workbench-panel{order:0}.video-editor{grid-template-columns:minmax(0,1fr) 166px}}
@media(max-width:600px){.video-project-bar{align-items:flex-start;flex-direction:column}.video-workflow{overflow-x:auto;grid-template-columns:repeat(5,minmax(92px,1fr));padding-inline:8px}.video-workflow li{padding-inline:4px}.video-editor{grid-template-columns:minmax(0,1fr)}.video-inspector{display:grid;grid-template-columns:1fr 1fr;align-items:center}.video-inspector .video-panel-heading{grid-column:1/-1}.sequence-empty{padding:9px}.sequence-facts{padding-right:12px}.video-monitor{min-height:180px}.timeline-heading{align-items:flex-start;flex-direction:column}.timeline-actions{width:100%}.timeline-actions button{flex:1}.track-row{grid-template-columns:58px minmax(0,1fr)}.video-sequence-clip-edit{grid-template-columns:1fr 1fr}.video-sequence-clip-edit legend,.video-sequence-clip-edit>button{grid-column:1/-1}.video-sequence-audio-controls{grid-template-columns:1fr 1fr}.video-sequence-audio-controls>button{grid-column:1/-1}.video-view{padding:9px}.video-empty-view{min-height:260px;padding:18px}.video-version-row{align-items:flex-start;flex-direction:column}.video-version-row button{align-self:flex-start}}
@media(max-width:600px){.storyboard-heading{flex-direction:column}.storyboard-shot-grid{grid-template-columns:minmax(0,1fr)}.storyboard-shot .storyboard-wide{grid-column:auto}.storyboard-actions{flex-direction:column}.storyboard-actions button{width:100%}}
.image-studio{margin-top:11px;overflow:hidden;border:1px solid #dedee4;border-radius:12px;background:#fff}
.image-project-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px 12px}
.image-project-bar h3{margin:5px 0 0;font-size:13px;font-weight:650;letter-spacing:-.2px}
.image-pipeline-state{display:inline-flex;align-items:center;gap:7px;flex:none;padding:6px 8px;border:1px solid #f0d8ce;border-radius:999px;background:#fff8f5;color:#9b5949;font-size:8px;font-weight:600}
.image-pipeline-state i{width:6px;height:6px;border-radius:50%;background:#cb7b64}
.image-workflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:10px 12px;border-top:1px solid #eeedf0;border-bottom:1px solid #eeedf0;background:#fafafd;list-style:none}
.image-workflow li{position:relative;display:grid;grid-template-columns:21px 1fr;align-items:center;column-gap:5px;min-width:0;padding:2px 6px}
.image-workflow li+li:before{position:absolute;top:10px;left:-3px;width:7px;height:1px;background:#dedee5;content:""}
.image-workflow li>span{grid-row:1/3;display:grid;place-items:center;width:20px;height:20px;border:1px solid #dedee5;border-radius:50%;background:#fff;color:#7b7e88;font:500 7px var(--mono)}
.image-workflow li strong{overflow:hidden;color:#474a54;font-size:8px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.image-workflow li small{overflow:hidden;color:#9698a0;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.image-workflow li.complete>span{border-color:#ceeadc;background:#effaf4;color:#2a8d67}
.image-workflow li.complete strong{color:#287654}
.image-tabs{display:flex;gap:4px;padding:8px 11px 0;border-bottom:1px solid #e9e8ed}
.image-tab{position:relative;min-height:34px;padding:0 10px;border:0;background:transparent;color:#777a84;font-size:9px;font-weight:600;cursor:pointer}
.image-tab.active{color:#3735bb}
.image-tab.active:after{position:absolute;right:8px;bottom:-1px;left:8px;height:2px;border-radius:2px;background:#514fee;content:""}
.image-view{padding:12px}
.image-editor{display:grid;grid-template-columns:minmax(0,1fr) 166px;gap:10px}
.image-canvas-panel,.image-inspector{min-width:0;overflow:hidden;border:1px solid #e3e3e8;border-radius:9px;background:#fafafb}
.image-panel-heading{height:34px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 10px;border-bottom:1px solid #e5e5e9;color:#747782;font:500 7px var(--mono);letter-spacing:.5px}
.image-no-source{color:#b05e4f;font-size:6px}
.image-no-source.image-source-saved{color:#2a8d67}
.image-canvas{min-height:290px;display:grid;place-items:center;padding:18px;background-color:#f6f6f8;background-image:linear-gradient(45deg,#ececf0 25%,transparent 25%),linear-gradient(-45deg,#ececf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ececf0 75%),linear-gradient(-45deg,transparent 75%,#ececf0 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}
.image-canvas-empty{width:min(260px,100%);min-height:148px;display:grid;align-content:center;justify-items:center;gap:7px;border:1px dashed #d1d1da;border-radius:8px;background:#ffffffeb;text-align:center}
.image-canvas-empty>span{width:30px;height:30px;display:grid;place-items:center;border:1px solid #e0e0e8;border-radius:8px;background:#fafafd;color:#7775db;font-size:16px}
.image-canvas-empty strong{font-size:10px;font-weight:600}
.image-canvas-empty small{max-width:190px;color:#858892;font-size:8px;line-height:1.45}
.image-canvas-footer{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-top:1px solid #e5e5e9;background:#fff;color:#888b95;font-size:7px}
.image-source-empty{display:grid;justify-items:center;padding:19px 11px 13px;text-align:center}
.image-source-mark{width:29px;height:29px;display:grid;place-items:center;border:1px solid #dedee5;border-radius:8px;background:#fff;color:#7a78db;font-size:15px}
.image-source-empty strong{margin-top:7px;font-size:9px}
.image-source-empty p{margin:4px 0 0;color:#858892;font-size:8px;line-height:1.5}
.image-source-facts{padding:0 10px}
.image-source-facts>div{display:flex;justify-content:space-between;gap:5px;padding:7px 0;border-top:1px solid #e8e8ec;font-size:7px}
.image-source-facts span{color:#898c95}
.image-source-facts strong{color:#62656e;font-size:7px;font-weight:600;text-align:right}
.image-add-reference{width:calc(100% - 20px);min-height:26px;margin:10px;border:1px solid #e3e3e8;border-radius:6px;background:#f7f7f8;color:#8a8c95;font-size:8px}
.image-add-reference:disabled{cursor:not-allowed}
.image-edit-note{margin:10px 1px 0;padding:7px 9px;border-radius:6px;background:#fff8f4;color:#97634f;font-size:8px;line-height:1.5}
.image-empty-view{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center}
.image-empty-view .section-kicker{font-size:7px}
.image-empty-view h4{margin:5px 0;font-size:13px;font-weight:650}
.image-empty-view>p:not(.section-kicker){max-width:390px;margin:4px 0 11px;color:#777a84;font-size:9px;line-height:1.6}
.image-comparison-heading{padding:3px 2px 12px}
.image-comparison-heading .section-kicker{font-size:7px}
.image-comparison-heading h4{margin:5px 0;font-size:14px;font-weight:650}
.image-comparison-heading>p:last-child{max-width:660px;margin:5px 0;color:#777a84;font-size:10px;line-height:1.6}
.image-comparison{display:grid;gap:12px}
.image-comparison>p{margin:0;color:#777a84;font-size:9px;line-height:1.55}
.image-comparison form{display:grid;gap:11px;padding:12px;border:1px solid #e4e3e8;border-radius:10px;background:#fff}
.comparison-picks{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.image-comparison label{display:grid;gap:5px;color:#686b75;font-size:9px;font-weight:600}
.image-comparison select,.image-comparison textarea,.image-comparison input{width:100%;min-height:35px;padding:8px 9px;border:1px solid #dfdfe5;border-radius:7px;background:#fff;color:#30323b;font:500 10px inherit}
.image-comparison textarea{min-height:58px;resize:vertical;line-height:1.5}
.comparison-previews{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.comparison-preview{min-width:0;margin:0;padding:7px;border:1px solid #e8e7eb;border-radius:8px;background:#faf9f7}
.comparison-preview img{display:block;width:100%;aspect-ratio:1 / 1;object-fit:contain;border-radius:5px;background:#f0efed}
.comparison-preview img[hidden]{display:none}
.comparison-preview figcaption{padding-top:6px;color:#656873;font-family:inherit;font-size:10px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.image-comparison form>p{margin:0;color:#858892;font-size:8px;line-height:1.5}
.image-comparison form>button{justify-self:start;min-height:34px;padding:7px 11px;border:1px solid var(--blue);border-radius:7px;background:var(--blue);color:#fff;font-size:9px;font-weight:650;cursor:pointer}
.image-comparison form>button:disabled{opacity:.65;cursor:wait}
.image-comparison h5{margin:8px 0 0;font-size:11px;font-weight:650}
.comparison-history{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.comparison-history li{display:grid;gap:4px;padding:9px;border:1px solid #e8e7eb;border-radius:8px;background:#fff}
.comparison-history strong{font-size:9px}
.comparison-history span{color:#686b75;font-size:9px;line-height:1.5}
.comparison-history small{color:#8a8c95;font:500 7px/1.5 var(--mono);overflow-wrap:anywhere}
.candidate-ranking{display:grid;gap:9px;padding:11px;border:1px solid #dfe5f1;border-radius:9px;background:#f9fbff}
.candidate-ranking>h5{margin:0;font-size:11px;font-weight:650}
.candidate-ranking>p,.candidate-ranking>small{margin:0;color:#777a84;font-size:8px;line-height:1.55}
.candidate-ranking-group{display:grid;gap:7px;padding:9px;border:1px solid #e8eaf0;border-radius:8px;background:#fff}
.candidate-ranking-group>strong{font-size:9px}
.candidate-ranking-group>p{margin:0;color:#777a84;font-size:8px;line-height:1.5}
.candidate-ranking-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.candidate-ranking-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:7px;border:1px solid #eeeef2;border-radius:7px}
.candidate-ranking-item>img{width:72px;aspect-ratio:1;object-fit:cover;border-radius:5px;background:#f0efed}
.candidate-ranking-details{display:grid;align-content:start;gap:4px;min-width:0}
.candidate-ranking-details strong{font-size:8px}
.candidate-ranking-details span,.candidate-ranking-details small{color:#777a84;font-size:7px;line-height:1.5;overflow-wrap:anywhere}
.candidate-ranking-details small{font-family:var(--mono)}
.candidate-ranking-details button{justify-self:start;min-height:27px;padding:5px 8px;border:1px solid #cbd4e8;border-radius:6px;background:#f4f7ff;color:#303f60;font-size:8px;font-weight:600;cursor:pointer}
.candidate-inspection-status{margin:0;color:#4f5870;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.candidate-inspection-status[data-state="success"]{color:#17643e}
.candidate-inspection-status[data-state="error"]{color:#9f3131}
.artifact-inspection-status{margin:0;color:#4f5870;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.artifact-inspection-status[data-state="success"]{color:#17643e}
.artifact-inspection-status[data-state="error"]{color:#9f3131}
.comparison-preview button{justify-self:start;min-height:32px;padding:6px 10px;border:1px solid #cbd4e8;border-radius:7px;background:#f4f7ff;color:#303f60;font-size:11px;font-weight:600;cursor:pointer}
.candidate-ranking-group>[role=status]{padding:7px;border-radius:6px;background:#f7f7f9;color:#686b75}
.image-versions-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 11px}
.image-versions-heading .section-kicker{font-size:7px}
.image-versions-heading h4{margin:5px 0 0;font-size:13px;font-weight:650}
.image-versions-heading>span{color:#92949d;font-size:8px}
.image-versions-list{display:grid;gap:7px}
@media(max-width:1100px){.image-editor{grid-template-columns:minmax(0,1fr) 145px}}
@media(max-width:600px){.image-project-bar{align-items:flex-start;flex-direction:column}.image-workflow{overflow-x:auto;grid-template-columns:repeat(5,minmax(92px,1fr));padding-inline:8px}.image-workflow li{padding-inline:4px}.image-editor{grid-template-columns:minmax(0,1fr)}.image-inspector{display:grid;grid-template-columns:1fr 1fr;align-items:center}.image-inspector .image-panel-heading{grid-column:1/-1}.image-source-empty{padding:9px}.image-source-facts{padding-right:12px}.image-add-reference{grid-column:1/-1}.image-canvas{min-height:225px}.image-view{padding:9px}.image-empty-view{min-height:260px;padding:18px}.comparison-picks,.comparison-previews{grid-template-columns:minmax(0,1fr)}}
.video-workflow li strong,.image-workflow li strong{font-size:9px}
.video-workflow li small,.image-workflow li small{font-size:8px}
.video-panel-heading,.image-panel-heading{font-size:8px}
.video-no-source,.image-no-source{font-size:7px}
.video-pipeline-state,.image-pipeline-state{font-size:9px}
.timeline-heading>div:first-child>span,.timeline-actions button,.image-canvas-footer,.image-source-facts>div{font-size:8px}
.timeline-unavailable,.track-lane,.track-name,.image-canvas-empty small,.image-source-empty p,.image-edit-note,.version-boundary{font-size:8px}
.track-name{font-size:9px}
@media(max-width:400px){.media-tab small{display:none}}

.image-preview{display:block;max-width:100%;max-height:420px;object-fit:contain;border:1px solid #e0dfea;border-radius:8px;background:#fff;box-shadow:0 8px 28px #28264b18}
.image-canvas-footer a{color:#5149c8;font-size:8px;font-weight:600;text-decoration:none}
.image-output-panel{display:grid;justify-items:start;gap:7px;margin:10px 1px 0;padding:9px 11px;border:1px solid #e3e0f5;border-radius:8px;background:#faf9ff}
.image-output-panel p{margin:0;color:#6d6e79;font-size:9px;line-height:1.5}
@media(max-width:600px){.image-preview{max-height:300px}}

/* A compact, expressive project identity */
.create-heading{position:relative;isolation:isolate;display:flex;align-items:center;min-height:80px;margin-bottom:16px}
.create-heading:before{position:absolute;z-index:-1;top:-34px;left:-64px;width:min(520px,80vw);height:132px;border-radius:50%;background:radial-gradient(ellipse at 35% 46%,#aaa4ff55,transparent 68%),radial-gradient(ellipse at 68% 78%,#ffc99c35,transparent 65%);filter:blur(13px);content:"";pointer-events:none;animation:project-glow 9s ease-in-out infinite alternate}
.project-heading-main{min-width:0;display:flex;align-items:center;gap:15px}
.project-sigil{position:relative;flex:none;width:50px;height:50px;display:grid;place-items:center;overflow:hidden;border:1px solid #c6c0ff;border-radius:16px;background:radial-gradient(circle at 31% 23%,#fff 0,#d9d5ff 7%,#8580ff 36%,#594cf0 67%,#3832b4 100%);box-shadow:0 7px 22px #6257d33b,inset 0 1px 0 #ffffffd9;color:#fff;font-size:23px;text-shadow:0 1px 8px #fff9}
.project-sigil:after{position:absolute;inset:1px;border:1px solid #ffffff73;border-radius:15px;content:"";pointer-events:none}
.project-heading-copy{min-width:0}
.project-heading-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:3px}
.create-heading .eyebrow{gap:7px;margin:0;color:#625ddd;font-size:8px;letter-spacing:1px}
.create-heading .eyebrow-dot{width:6px;height:6px;background:#eea774;box-shadow:0 0 0 4px #eea77424}
.project-save-pill{min-height:20px;display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border:1px solid #e4e1f2;border-radius:999px;background:#ffffffa8;color:#686578;font-size:9px;line-height:1.2}
.project-save-pill i{width:5px;height:5px;flex:none;border-radius:50%;background:#aaa6ba;box-shadow:0 0 0 3px #aaa6ba1a}
.create-heading h1{overflow:hidden;margin:0;background:linear-gradient(105deg,#1d1d28 8%,#393550 58%,#5750a0 100%);background-clip:text;color:transparent;font-size:clamp(30px,3.6vw,40px);letter-spacing:-1.1px;text-overflow:ellipsis;white-space:nowrap}
.main-area{background-color:#f5f3fb;background-image:radial-gradient(ellipse at 39% 0%,#e9e6ffad 0,transparent 36%),radial-gradient(ellipse at 96% 8%,#fff0e1a6 0,transparent 28%)}
.workbench-panel,.agent-panel{border-color:#dedbf0;box-shadow:0 12px 34px #534ba710,0 2px 9px #191b2309}
.work-nav a.active{background:linear-gradient(105deg,#5147d4,#756bf3);box-shadow:0 5px 14px #5147d43b;color:#fff}
.work-nav a.active .nav-icon{color:#fff;text-shadow:0 1px 5px #ffffff99}
.media-toolbar{border-color:#e0def0;background:linear-gradient(115deg,#f3f1ff,#f9f8fc 68%,#fff8f2)}
.media-tab.active{background:linear-gradient(135deg,#5146d6,#786eff);box-shadow:inset 0 0 0 1px #ffffff70,0 4px 12px #5149b033;color:#fff}
.media-tab.active .tab-icon{color:#fff;filter:drop-shadow(0 2px 5px #ffffff52)}
.media-tab.active small{color:#e8e6ff}
.agent-header{background:linear-gradient(105deg,#faf8ff,#fff 72%)}
.agent-avatar{background:linear-gradient(140deg,#756eff,#4539d2 76%);box-shadow:0 5px 13px #4c4bec3b}
.agent-message.agent-welcome{border-color:#e5e1fa;background:linear-gradient(135deg,#faf8ff,#f8faff 70%,#fffaf7)}
@keyframes project-glow{from{opacity:.72;transform:translate3d(-3px,0,0) scale(.98)}to{opacity:1;transform:translate3d(6px,2px,0) scale(1.03)}}

/* Keep workspace destinations readable before the rail reaches phone size */
@media(max-width:980px) and (min-width:701px){
  .app-shell{display:block}
  .studio-rail{position:sticky;z-index:9;top:68px;height:auto;min-height:0;display:block;padding:0 22px;border-right:0;border-bottom:1px solid var(--line);background:#f8f7f4f2;backdrop-filter:blur(14px)}
  .studio-rail .rail-label,.studio-rail .rail-divider,.studio-rail .rail-projects,.studio-rail .rail-bottom{display:none}
  .work-nav{width:min(1520px,100%);display:flex;gap:6px;margin:0 auto;padding:7px 0}
  .work-nav a{min-height:38px;justify-content:flex-start;gap:8px;padding:0 14px;border-radius:9px;font-size:11px}
  .work-nav a>span:last-child{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  .nav-icon{width:auto;font-size:14px}
  .main-area{padding-top:24px}
}
@media(max-width:700px){
  .create-heading{min-height:68px;margin-bottom:13px}
  .create-heading:before{top:-22px;left:-35px;width:min(390px,100vw);height:106px}
  .project-heading-main{gap:11px}
  .project-sigil{width:42px;height:42px;border-radius:13px;font-size:20px}
  .project-sigil:after{border-radius:12px}
  .project-heading-meta{gap:7px}
  .project-save-pill{min-height:18px;padding-inline:7px;font-size:8px}
  .create-heading h1{max-width:calc(100vw - 93px);font-size:clamp(26px,7vw,34px);letter-spacing:-.8px}
}
@media(max-width:980px){
  .media-tab{grid-template-columns:17px minmax(0,1fr);grid-template-rows:auto auto;column-gap:5px;row-gap:0}
  .media-tab .tab-icon{grid-row:1/3}
  .media-tab>span:nth-child(2){grid-column:2;grid-row:1}
  .media-tab small{grid-column:2;grid-row:2;justify-self:start;max-width:100%;font-size:7px}
}
@media(max-width:400px){
  .create-heading{display:flex}
  .project-heading-main{gap:9px}
  .project-sigil{width:38px;height:38px;border-radius:12px;font-size:18px}
  .project-sigil:after{border-radius:11px}
  .create-heading .eyebrow{font-size:7px}
  .project-save-pill{min-width:0;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .project-save-pill #project-save-state{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .create-heading h1{max-width:calc(100vw - 78px);font-size:26px}
}

/* Capability-gated artifact review and explicit preference controls. */
.creative-review { margin: 20px 0; padding: 20px; border: 1px solid var(--line, #d8d5ce); border-radius: 12px; background: var(--paper, #faf9f5); }
.creative-review[hidden], .creative-review [hidden] { display: none; }
.creative-review form, .creative-review section { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--line, #d8d5ce); border-radius: 8px; }
.creative-review label { display: grid; gap: 6px; font-size: 14px; }
.creative-review label.checkbox-field { grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
.creative-review label.checkbox-field input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #274bc6; }
.creative-review textarea, .creative-review input:not([type=checkbox]), .creative-review select { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #b8b5af; border-radius: 6px; background: #fff; color: #222; font: inherit; }
.creative-review textarea { min-height: 76px; resize: vertical; }
.creative-review button { width: fit-content; padding: 10px 14px; border: 1px solid #274bc6; border-radius: 6px; background: #fff; color: #2341a8; font: inherit; cursor: pointer; }
.creative-review button:disabled { opacity: .5; cursor: default; }
.creative-review :focus-visible { outline: 3px solid #5277ed; outline-offset: 3px; }
.creative-review p { line-height: 1.6; overflow-wrap: anywhere; }
.creative-review h2, .creative-review h3 { margin: 0; }
.creative-review fieldset { min-width: 0; display: grid; gap: 10px; border: 1px solid #d8d5ce; }
.critic-consent { display: grid; gap: 10px; }
.critic-consent label { grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
.critic-consent input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #274bc6; }
.critic-evaluation { background: #fff; }
.critic-evaluation h4, .critic-evaluation h5 { margin: 0; line-height: 1.45; }
.review-source-pin,.diff-proposal-record { background:#fff; }
.review-source-pin p,.diff-proposal-record p { margin:0; font-size:12px; }
.review-source-pin p:first-of-type { color:#68655e; }
.diff-proposal-record h4 { margin:0; }
.refinement-plan-record { background:#f4f3ef; }
.refinement-plan-record h4 { margin:0; }
.refinement-plan-record p { margin:0; font-size:12px; }
.refinement-semantic-review { display:grid; gap:8px; padding:12px; border:1px solid #d7d4cb; border-radius:12px; background:#fff; }
.refinement-semantic-review h5,.refinement-semantic-review h6 { margin:0; line-height:1.4; }
.refinement-semantic-review p { margin:0; font-size:12px; color:#5d5b54; }
.refinement-assessment-history { display:grid; gap:8px; padding:12px; border:1px solid #d7d4cb; border-radius:12px; background:#fff; }
.refinement-assessment-history h5 { margin:0; }
.refinement-assessment-notice { font-size:12px; color:#5d5b54; }
.workflow-catalog { margin: 18px 0 24px; padding: 20px; border: 1px solid var(--line, #d8d5ce); border-radius: 12px; background: #f8f7f2; }
.workflow-catalog > header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.workflow-catalog > header h2 { margin: 0; }
.workflow-catalog > header p { max-width: 440px; color: #62616a; font-size: 13px; }
.workflow-budget-summary { margin: -7px 0 14px; color: #62616a; font-size: 12px; line-height: 1.55; }
.workflow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.workflow-card { display: grid; align-content: start; gap: 8px; min-height: 168px; padding: 15px; border: 1px solid #d8d5ce; border-radius: 9px; background: #fff; }
.workflow-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.workflow-card p { margin: 0; font-size: 13px; line-height: 1.5; color: #595963; }
.workflow-card .section-kicker { font-size: 10px; letter-spacing: .08em; }
.workflow-state { justify-self: start; margin-top: auto; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.workflow-card.is-ready .workflow-state { color: #145a35; background: #e8f5ed; }
.workflow-card.is-off .workflow-state { color: #6b4d18; background: #f4eddd; }
.workflow-card.is-capped .workflow-state { color: #7b4d16; background: #fff0d5; }
@media (max-width: 640px) { .workflow-catalog { padding: 15px; } .workflow-catalog > header { display: block; } .workflow-card { min-height: 0; } }

/* Long saved titles must not cover controls in the workbench. */
.recent-project-list{min-width:0}
.recent-project-list button{width:100%;max-width:100%;overflow:hidden}
.recent-project-list button>span:last-child{min-width:0;flex:1}
.decision-editor form{display:grid;gap:12px;margin-top:12px}
.decision-editor label{display:grid;gap:6px;font-size:12px}
.decision-editor textarea{box-sizing:border-box;width:100%;min-height:100px;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;color:inherit;background:var(--paper,#fff)}
.decision-editor button,#image-recovery button,#music-recovery button{min-height:36px;margin:4px 8px 4px 0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper,#fff);color:inherit;cursor:pointer}
#image-recovery,#music-recovery{overflow-wrap:anywhere;font-size:12px}
.studio-rail,.rail-projects{min-width:0}
.recent-project-list{grid-template-columns:minmax(0,1fr);width:100%}
.recent-project-list button{display:grid;grid-template-columns:14px minmax(0,1fr)}

/* Local image adjustments are pixel-scoped exports; the source asset stays immutable. */
.local-edit-panel{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid #dedbe9;border-radius:10px;background:#faf9ff}
.local-edit-plan-link{display:grid;gap:8px;padding:11px;border:1px solid #ddd9f2;border-radius:8px;background:#fff}
.local-edit-plan-link h5,.local-edit-plan-link p{margin:0}
.local-edit-plan-link h5{color:#3d3a56;font-size:10px}
.local-edit-plan-link p,.local-edit-plan-status{color:#6f707b;font-size:9px;line-height:1.5}
.local-edit-plan-link label:not(.local-edit-plan-acknowledgement){display:grid;gap:5px;color:#686b75;font-size:8px;font-weight:600}
.local-edit-plan-link select{box-sizing:border-box;width:100%;min-height:36px;padding:7px;border:1px solid #dcdbe3;border-radius:6px;background:#fff;color:#30323b;font:500 10px inherit}
.local-edit-plan-acknowledgement{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;color:#454453;font-size:9px;line-height:1.5}
.local-edit-plan-acknowledgement input{margin:2px 0 0;accent-color:#514fee}
.local-edit-heading{display:grid;gap:5px}
.local-edit-heading .section-kicker{margin:0;color:#5953a7;font-size:8px;letter-spacing:.08em}
.local-edit-heading h4{margin:0;font-size:13px}
.local-edit-heading>p:last-child,.local-edit-limitations{margin:0;color:#6f707b;font-size:9px;line-height:1.55}
.local-edit-source-row{display:flex;justify-content:center;min-width:0;overflow:hidden;padding:10px;border:1px solid #e2e0e8;border-radius:8px;background:#fff}
.local-edit-source-frame{position:relative;display:inline-block;max-width:100%;line-height:0}
.local-edit-source-image{display:block;max-width:100%;max-height:360px;width:auto;height:auto;object-fit:contain;user-select:none}
.local-edit-scope-overlay{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}
.local-edit-status,.local-edit-result-status{margin:0;color:#5d5b68;font-size:9px;line-height:1.5}
.local-edit-coordinates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.local-edit-coordinates label,.local-edit-controls label{display:grid;gap:5px;color:#686b75;font-size:8px;font-weight:600}
.local-edit-coordinates input,.local-edit-controls select{box-sizing:border-box;width:100%;min-height:34px;padding:7px;border:1px solid #dcdbe3;border-radius:6px;background:#fff;color:#30323b;font:500 10px inherit}
.local-edit-controls{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1.5fr);gap:10px;align-items:center}
.local-edit-controls label:last-child{grid-template-columns:1fr auto;align-items:center}
.local-edit-controls input[type=range]{width:100%;accent-color:#514fee}
.local-edit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.local-edit-actions button,.local-edit-actions a{min-height:34px;padding:7px 10px;border:1px solid #514fee;border-radius:7px;background:#514fee;color:#fff;font-size:9px;font-weight:650;text-decoration:none;cursor:pointer}
.local-edit-actions .local-edit-secondary{border-color:#d8d5e2;background:#fff;color:#494858}
.local-edit-actions button:disabled{opacity:.55;cursor:not-allowed}
.local-edit-result{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr);gap:9px;align-items:center;padding:9px;border:1px solid #d4e7d9;border-radius:8px;background:#f4fbf6}
.local-edit-result[hidden]{display:none}
.local-edit-output-image{display:block;width:100%;max-height:180px;object-fit:contain;background:#fff;border-radius:5px}
.local-edit-empty{margin:0;padding:12px;border:1px dashed #d8d5e2;border-radius:8px;color:#74727e;font-size:9px;line-height:1.5}
@media(max-width:600px){.local-edit-coordinates{grid-template-columns:repeat(2,minmax(0,1fr))}.local-edit-controls{grid-template-columns:minmax(0,1fr)}.local-edit-result{grid-template-columns:minmax(0,1fr)}}

@media(max-width:600px){
  .image-comparison-heading .section-kicker{font-size:11px}
  .image-comparison-heading h4{font-size:18px}
  .image-comparison-heading>p:last-child,.image-comparison>p{font-size:14px;line-height:1.6}
  .image-comparison form{gap:14px;padding:14px}
  .image-comparison label{gap:7px;font-size:14px}
  .image-comparison select,.image-comparison textarea,.image-comparison input{box-sizing:border-box;min-height:44px;padding:11px 12px;font-family:inherit;font-size:16px;line-height:1.4}
  .image-comparison textarea{min-height:112px}
  .comparison-picks{grid-template-columns:minmax(0,1fr)}
  .comparison-preview figcaption{font-size:12px}
  .image-comparison form>p{font-size:12px;line-height:1.5}
  .image-comparison form>button{min-height:44px;padding:10px 14px;font-size:14px}
  .image-comparison h5{font-size:16px}
  .comparison-history li{gap:7px;padding:12px}
  .comparison-history strong{font-size:13px}
}

.discovery-options,.discovery-selection-record{grid-column:1/-1;margin-top:6px;padding:13px;border:1px solid #e5e0ed;border-radius:10px;background:#fbfaff}
.discovery-options h3,.discovery-selection-record h3{margin:0 0 6px;font-family:var(--display);font-size:17px}
.discovery-options>p,.discovery-selection-record>p{font-size:11px;line-height:1.6}
.discovery-choice-list{display:grid;gap:8px;margin:10px 0 0;padding:10px;border:1px solid #e4dfed;border-radius:8px}
.discovery-choice-list legend{padding:0 5px;color:#666174;font-size:10px;font-weight:700}
.discovery-card{display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;align-items:start;padding:10px;border:1px solid #dfdbe8;border-radius:8px;background:#fff}
.discovery-card.is-selected{border-color:#6670d8;background:#f5f5ff;box-shadow:0 0 0 2px #6670d820}
.discovery-card>input{width:16px;height:16px;margin:2px 0 0;accent-color:#5058c9}
.discovery-card-label{display:block;grid-column:2;cursor:pointer}
.discovery-sources{grid-column:2;color:#5e5b6d;font-size:9px;line-height:1.5}
.discovery-sources summary{cursor:pointer;font-weight:600}
.discovery-sources p{margin:5px 0 0;padding:7px;border-radius:5px;background:#f7f6fa}
.discovery-card-copy{display:grid;gap:5px;min-width:0}
.discovery-card-copy strong{font-family:var(--display);font-size:13px}
.discovery-card-copy>span{font-size:11px;line-height:1.55}
.discovery-card-copy small{color:#686579;font-size:9px;line-height:1.5}
.discovery-choice-status{margin:8px 2px 0;color:#55516a;font-size:10px;line-height:1.5}
.discovery-selection-record{background:#f6fbf7;border-color:#d9e9dc}
.discovery-selected-card{margin-top:7px;padding:9px;border:1px solid #dfe9e1;border-radius:7px;background:#fff}
.discovery-selected-card strong{font-size:11px}
.discovery-selected-card p{margin:5px 0 0;font-size:10px;line-height:1.5}
.discovery-selection-message{margin:6px 0;padding:8px 10px;border-left:3px solid #6570d5;border-radius:0 8px 8px 0;background:#f4f4ff;color:#4a4f9a;font-size:10px;line-height:1.5}
@media(max-width:700px){.discovery-options,.discovery-selection-record{grid-column:1;padding:12px}.discovery-options>p,.discovery-selection-record>p{font-size:13px}.discovery-choice-list{padding:9px}.discovery-choice-list legend{font-size:12px}.discovery-card{min-height:44px;gap:10px;padding:11px}.discovery-card>input{width:18px;height:18px}.discovery-card-copy strong{font-size:15px}.discovery-card-copy>span{font-size:14px}.discovery-card-copy small{font-size:12px}.discovery-sources{font-size:12px}.discovery-choice-status{font-size:13px}.discovery-selected-card{padding:11px}.discovery-selected-card strong{font-size:14px}.discovery-selected-card p{font-size:13px}.discovery-selection-message{font-size:13px}}
@media(max-width:700px){.library-section>.library-list{grid-template-columns:1fr}}
.video-create-panel{display:grid;gap:7px;margin-top:10px;padding:12px;border:1px solid #e3e3e8;border-radius:9px;background:#fff}
.video-create-panel h4{margin:2px 0 0;font:600 15px var(--display);color:#2e2f39}
.video-create-panel>div>p:last-child{max-width:680px;margin:5px 0;color:#70727d;font-size:10px;line-height:1.55}
.video-create-panel>label[for="video-source-image"]{color:#555762;font-size:10px;font-weight:600}
#video-source-image,#video-duration{width:100%;min-height:36px;padding:7px 9px;border:1px solid #d9d9e0;border-radius:7px;background:#fff;color:#383944;font:inherit}
.video-create-panel .music-rights-wrap{max-width:740px}
.video-create-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.video-output-note{margin:0;color:#686b75;font-size:10px;line-height:1.55}
.video-provider-reconciliation{display:grid;gap:8px;padding:10px;border:1px solid #dedee5;border-radius:9px;background:#fafafd;color:#565863;font-size:11px;line-height:1.5}
.video-provider-reconciliation p{margin:0}
.video-provider-reconciliation a{width:fit-content;color:#343746;font-weight:650;text-decoration:underline;text-underline-offset:2px}
.video-provider-reconciliation form{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.video-provider-reconciliation label{display:grid;gap:4px;font-size:11px;font-weight:650}
.video-provider-reconciliation input{min-width:140px;min-height:34px;padding:6px 8px;border:1px solid #c9cad2;border-radius:6px;background:white;color:#292a32;font:inherit}
.video-asset-history{display:grid;gap:7px;padding-top:4px}
.video-asset-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #e3e3e8;border-radius:8px;color:#565863;font-size:11px}
.video-asset-history-row a{color:#343746;font-weight:650;text-decoration:underline;text-underline-offset:2px}
#video-preview{width:100%;height:100%;max-height:100%;object-fit:contain}
.video-preview-text-overlay{position:absolute;z-index:2;left:50%;max-width:82%;transform:translateX(-50%);padding:7px 10px;border:1px solid #ffffff38;border-radius:6px;background:#15171dcc;color:#fff;font-size:clamp(10px,2.2vw,16px);font-weight:650;line-height:1.3;text-align:center;text-shadow:0 1px 2px #000;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}
.video-preview-text-overlay[data-placement="top"]{top:12%}
.video-preview-text-overlay[data-placement="bottom"]{bottom:13%}
.video-preview-text-overlay[hidden]{display:none}
.video-preview-transition{position:absolute;z-index:3;inset:0;background:#000;opacity:0;pointer-events:none;will-change:opacity}
.video-preview-transition[hidden]{display:none}
@media(max-width:600px){.video-create-panel{padding:10px}.video-create-panel h4{font-size:17px}.video-create-panel>div>p:last-child,.video-output-note{font-size:12px}#video-source-image,#video-duration{min-height:42px}.video-create-actions>*{width:100%}.video-asset-history-row{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.video-sequence-text-cue{grid-template-columns:repeat(2,minmax(0,1fr))}.video-sequence-text-cue>label:first-of-type,.video-sequence-text-cue>button{grid-column:1/-1}}
/* WCAG AA: secondary text on light surfaces */
:root{--green:#236b50}
.rail-label,.rail-section-heading,.recent-project-list button small,.rail-empty,.rail-bottom p,.eyebrow,.context-label,.section-kicker,.media-tab small,.stage-topline,.stage-state,.stage-description,.stage-capability,.stage-footer,.music-output-note,.music-provider-note,.agent-state,.message-author,.message-author span,.composer-heading label,.composer-heading span,.requirement textarea::placeholder,.media-fieldset legend,.composer-note,.collection-type,.collection-card-meta,.site-footer,.video-workflow li>span,.video-workflow li small,.video-tab,.video-panel-heading,.sequence-empty p,.sequence-facts span,.timeline-heading>div:first-child>span,.timeline-actions button,.track-name i,.track-lane,#video-sequence-form label span,.video-sequence-audio-track>div:first-child span,.video-sequence-audio-controls>label span,#video-sequence-audio-note,#video-sequence-text-track>div:first-child span,#video-sequence-clip-edit>label span,#video-sequence-note,.video-local-export-copy span,#video-export-status,.preservation-note,.storyboard-heading p:not(.section-kicker),.capability-pill,.video-versions-heading>span,.video-version-empty span,.video-version-row span,.version-boundary,.image-workflow li>span,.image-workflow li small,.image-tab,.image-panel-heading,.image-canvas-empty small,.image-source-empty p,.image-source-facts span,.image-add-reference,.image-empty-view>p:not(.section-kicker),.image-comparison-heading>p:last-child,.image-comparison>p,.comparison-history small,.candidate-ranking>p,.candidate-ranking>small,.candidate-ranking-group>p,.candidate-ranking-details span,.candidate-ranking-details small,.image-canvas-footer,.image-comparison form>p,.image-versions-heading>span,.local-edit-plan-link p,.local-edit-plan-status,.local-edit-heading>p:last-child,.local-edit-limitations,.local-edit-empty,.video-create-panel>div>p:last-child{color:var(--muted)}
.send-button:disabled{color:#555963}
.media-tab.active small,.requirement>button,.video-sequence-text-track>div:first-child span,.video-sequence-clip-edit>label span,.storyboard-shot-remove,.video-empty-view>p:not(.section-kicker){color:var(--muted)}
.video-pipeline-state,.image-pipeline-state,.video-no-source,.image-no-source{color:var(--red)}
.video-workflow li.complete>span,.image-workflow li.complete>span,.image-no-source.image-source-saved{color:var(--green)}
.image-edit-note,.timeline-unavailable{color:#7a451e}
