.studio-main{margin-left:92px;padding:26px 30px 60px}.workspace-head{position:relative;height:100px}.workspace-head h1{font-size:24px}.head-actions{display:flex;align-items:center;gap:8px}.head-actions select{width:170px;margin:0;font-size:11px}.head-actions button{white-space:nowrap}.pane[hidden]{display:none}.global-message{position:sticky;top:0;z-index:30;margin-left:92px;background:#f4efff;color:#443069;font-size:12px;line-height:1.8;padding:0 30px}.global-message:not(:empty){padding:11px 30px;border-bottom:1px solid #d8cdec}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}.page-heading h2{font-size:26px;margin:0 0 10px;letter-spacing:-.8px}.page-heading p{font-size:12px;color:#5d6d84;margin:0;line-height:1.8}.studio-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:24px;align-items:start}.creation-tools{background:#fff;border:1px solid #dce1eb;border-radius:12px;padding:22px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;scrollbar-width:thin}.section-label{font-size:14px;color:#2e264b;font-weight:650;border-bottom:1px solid #e0dbea;padding:0 0 12px;margin:25px 0 15px}.section-label:first-child{margin-top:0}.creation-tools details{font-size:12px;margin:14px 0}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.chips button{background:#fff;color:#56627a;border:1px solid #d6deeb;font-size:11px;padding:7px 10px;font-weight:450;border-radius:6px}.chips button.selected,.choice-grid button.selected{border-color:#8664d1;color:#603bc1;background:#f0eaff;box-shadow:0 0 0 1px #bba3ec40}.category-chips button{font-size:10px;padding:6px 8px}.inline{display:flex;gap:6px;align-items:center}.inline input{min-width:0;margin:0}.inline button{flex-shrink:0;padding:9px}.file-label{font-size:10px}.file-label input{font-size:10px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.choice-grid button{background:#fff;border:1px solid #d8deea;color:#3f4a60;font-size:12px;padding:12px 5px;font-weight:500}.creation-tools .full{margin-top:9px}.model-result{font-size:11px;color:#3d5470;line-height:1.8;margin:12px 0}.model-result:empty{display:none}.model-result .candidate-fact{background:#f0f4fb;border-left:2px solid #8b76cc;padding:9px;margin:6px 0}.claim-card{padding:11px;background:#f8f9fc;border:1px solid #e1e5ee;border-radius:8px;margin:9px 0}.claim-card label{font-size:10px;margin:7px 0}.claim-card input[type=checkbox]{width:14px;display:inline;margin:0 5px 0 0;vertical-align:middle}.claim-card input[type=text]{font-size:11px;padding:7px}.claim-card .basis{font-size:10px}.project-summary{display:flex;justify-content:space-between;align-items:center;padding:8px 0 20px}.project-summary h2{font-size:20px;margin:8px 0}.project-summary p{font-size:11px;color:#5f6d84;margin:0}.product-preview-card{display:grid;grid-template-columns:220px 1fr;gap:23px;padding:20px;background:#fff;border:1px solid #dce1eb;border-radius:12px;min-height:220px}.studio-image-stage{background:radial-gradient(ellipse,#fff,#edf0f5);border:1px solid #e2e5ed;border-radius:8px;height:190px;display:grid;place-items:center;overflow:hidden;text-align:center;color:#7b8494;font-size:11px}.studio-image-stage img{width:100%;height:100%;object-fit:contain;padding:9px}.studio-image-stage img[hidden]{display:none}.product-preview-card h3{font-size:17px;margin:24px 0 13px}.product-preview-card p{font-size:12px;line-height:1.9;color:#5f6d82;white-space:pre-wrap}.flow-tabs{display:flex;border-bottom:1px solid #d6dce8;margin-top:25px;gap:8px}.flow-tabs button{background:transparent;color:#6b7589;border-radius:0;border-bottom:3px solid transparent;padding:14px 22px}.flow-tabs button.selected{color:#6244be;border-color:#7351cf}.artifact-panel{background:#fff;border:1px solid #dce1eb;border-top:0;border-radius:0 0 12px 12px}.artifact-panel .panel-heading p{max-width:600px}.artifact-view{padding:0 23px 20px}.artifact-view .scene-card{background:#f8f9fc;border:1px solid #e2e6f0;border-radius:9px;padding:16px;margin:12px 0}.scene-card h3{font-size:13px;margin:0 0 10px}.scene-card label{font-size:11px}.scene-card textarea{min-height:64px}.artifact-view>label{font-size:12px}.dialogue-edit{display:grid;grid-template-columns:90px 1fr;gap:8px;align-items:start}.dialogue-edit textarea{min-height:52px}.artifact-actions{padding:18px 23px;border-top:1px solid #e3e7ef;display:flex;gap:8px;flex-wrap:wrap}.advanced-editor{padding:0 23px 20px;font-size:11px;color:#62718b}.advanced-editor textarea{min-height:210px;font-family:monospace;font-size:11px}.filter-rows{background:#fff;border:1px solid #dce1eb;padding:10px 22px;border-radius:12px}.filter-row{display:flex;align-items:flex-start;gap:20px;padding:13px 0;border-bottom:1px solid #eef0f5}.filter-row:last-child{border:0}.filter-row>strong{font-size:12px;min-width:72px;margin-top:8px}.filter-row .chips{margin:0}.filter-row button{font-size:11px;padding:7px 11px}.library-count{display:flex;justify-content:space-between;align-items:center;margin:20px 0;font-size:13px;color:#57677e}.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.media-card{background:#fff;border:1px solid #dce1eb;border-radius:12px;overflow:hidden}.media-stage{position:relative;aspect-ratio:16/10;background:#e5e9f1;display:grid;place-items:center;cursor:pointer;overflow:hidden}.media-stage img,.media-stage video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.media-stage video{display:none}.media-stage.playing video{display:block}.media-stage .preview-tag{position:absolute;bottom:10px;left:10px;background:#19243bc9;color:#fff;font-size:10px;padding:6px 8px;border-radius:5px;z-index:2}.media-empty{font-size:11px;color:#62718a;text-align:center;padding:20px}.media-info{padding:17px}.media-info h3{font-size:14px;line-height:1.6;margin:0 0 9px}.media-info p{font-size:11px;color:#69778e;line-height:1.8;margin:7px 0}.media-info .card-actions{display:flex;gap:7px}.card-actions button{font-size:10px;padding:8px 10px}.source-window{font-size:10px;color:#7258a7}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:22px}.asset-card{border:1px solid #dce1eb;border-radius:10px;background:#fff;padding:12px}.asset-card img{width:100%;height:160px;object-fit:contain;background:#eef0f5;border-radius:6px}.asset-card h3{font-size:13px}.asset-card p{font-size:11px;color:#66748d;line-height:1.7}.asset-card button{font-size:10px}.capability-line{background:#fff;border:1px solid #e1e5ee;color:#69738a;padding:12px 16px;border-radius:8px;font-size:11px;line-height:1.8}.check-line{display:flex;gap:7px;align-items:center;font-size:11px}.check-line input{width:15px;margin:0}.canvas-layout{display:grid;grid-template-columns:220px 1fr;min-height:640px;border:1px solid #dce1eb;background:#fff;border-radius:12px;overflow:hidden}.canvas-layout>aside{padding:18px;border-right:1px solid #e0e5ef}.canvas-layout h3{font-size:14px}.palette-card{border:1px solid #dce1eb;padding:10px;border-radius:7px;margin:8px 0;font-size:11px;cursor:grab;background:#f8f9fc}.canvas-board{position:relative;min-height:640px;overflow:auto;background-color:#f7f8fc;background-image:radial-gradient(#d4d9e6 1px,transparent 1px);background-size:20px 20px}.canvas-board svg{position:absolute;inset:0;width:1800px;height:1100px;pointer-events:none}.canvas-node{position:absolute;width:190px;background:#fff;border:1px solid #bdc7db;border-radius:10px;box-shadow:0 4px 12px #34445a10;user-select:none}.canvas-node .node-handle{padding:10px 12px;border-bottom:1px solid #e2e6ef;background:#f0ebfb;border-radius:10px 10px 0 0;color:#62449c;font-size:11px;font-weight:600;cursor:grab;touch-action:none}.canvas-node p{font-size:11px;padding:10px 12px;margin:0;color:#435574;line-height:1.7}.canvas-node img{height:85px;object-fit:contain;width:100%;padding:7px}.production-summary{background:#fff;border:1px solid #dce1eb;border-radius:12px;padding:22px;font-size:12px;line-height:1.9}.production-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.production-grid article{background:#fff;border:1px solid #dce1eb;border-radius:10px;padding:20px}.production-grid h3{font-size:16px}.production-grid p{font-size:12px;line-height:1.9;color:#6b768d}dialog{width:520px;max-width:90vw}dialog h2{font-size:20px}dialog p{font-size:12px;line-height:1.8;color:#6a7890}#previewContent img{max-width:70vw;max-height:72vh}#previewDialog{width:auto}.empty-state{padding:55px 25px;background:#fff;border:1px dashed #c9d0df;border-radius:10px;font-size:13px;color:#74819a;text-align:center}.artifact-warning{background:#fff6df;color:#88651f;padding:12px;border-radius:7px;font-size:11px;line-height:1.8}.job-progress{color:#6341ad;background:#f2edfc;border:1px solid #daccf4;padding:18px;border-radius:10px;font-size:12px}.import-note{font-size:10px;color:#77859a}@media(min-width:1700px){.media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-layout{grid-template-columns:380px minmax(0,1fr)}.product-preview-card{grid-template-columns:290px 1fr}}@media(max-width:1250px){.studio-main{padding:20px}.studio-layout{grid-template-columns:305px minmax(0,1fr);gap:17px}.creation-tools{padding:17px}.product-preview-card{grid-template-columns:150px 1fr;padding:15px;gap:15px}.studio-image-stage{height:170px}.media-grid{grid-template-columns:repeat(2,1fr)}.asset-grid{grid-template-columns:repeat(3,1fr)}.workspace-head h1{font-size:20px}.head-actions select{width:130px}}@media(max-width:850px){.studio-main{margin-left:70px;padding:15px}.studio-layout{grid-template-columns:1fr}.creation-tools{position:static;max-height:none}.workspace-head{height:auto}.head-actions{flex-wrap:wrap;justify-content:flex-end}.head-actions select{width:145px}.workspace-head h1{font-size:17px}.global-message{margin-left:70px}.media-grid,.asset-grid{grid-template-columns:repeat(2,1fr)}.filter-row{display:block}.filter-row>strong{display:block;margin:0 0 10px}.canvas-layout{grid-template-columns:1fr}.canvas-layout>aside{border-right:0;border-bottom:1px solid #ddd}.production-grid{grid-template-columns:1fr}.artifact-actions button{font-size:11px}}@media(max-width:550px){.media-grid,.asset-grid{grid-template-columns:1fr}.product-preview-card{grid-template-columns:1fr}.studio-image-stage{height:220px}.workspace-head .breadcrumb{display:none}.head-actions button{padding:8px;font-size:10px}.flow-tabs button{padding:12px}.dialogue-edit{grid-template-columns:65px 1fr}}
/* Readable, image-led workbench. Controls stay in the left column. */
.studio-page{background:#f3f4f7;color:#202432;font-size:14px}
.studio-page .app-rail{background:#fff;border-right:1px solid #d1d5df}
.studio-page .app-rail nav a{color:#4c5365;font-size:12px;font-weight:550}
.studio-page .app-rail nav a[aria-current=page]{background:#eee8ff;color:#582fc0;box-shadow:inset 3px 0 #6d3ee1}
.studio-page .brand{background:linear-gradient(145deg,#9a46f6,#5426de);box-shadow:0 5px 14px #632fe12a}
.studio-page .workspace-head{background:#fff;border-bottom:1px solid #d6d9e2;padding:22px 30px;min-height:102px}
.studio-page .workspace-head h1{font-size:27px;color:#20212b;font-weight:700;letter-spacing:-.6px;margin-top:9px}
.studio-page .breadcrumb{color:#656b7a;font-size:12px}
.studio-page button{font-size:13px;font-weight:550;padding:11px 15px;cursor:pointer}
.studio-page button.primary{background:#6332d5;color:#fff;box-shadow:0 3px 8px #4f23b620}
.studio-page button.primary:hover{background:#5123bd}
.studio-page button.secondary{background:#f0edf8;color:#4e308d;border:1px solid #c9bedf}
.studio-page button.quiet{background:#fff;color:#4a4760;border:1px solid #d2d4df}
.studio-page button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.studio-page button:focus-visible,.studio-page input:focus-visible,.studio-page textarea:focus-visible,.studio-page select:focus-visible{outline:3px solid #b197ed;outline-offset:2px}
.studio-page input,.studio-page select,.studio-page textarea{font-size:13px;color:#252737;border-color:#bdc3d0;padding:11px;line-height:1.7;background:#fff}
.studio-page input::placeholder,.studio-page textarea::placeholder{color:#777b88}
.studio-page label{font-size:13px;color:#363a4b}
.studio-page .studio-layout{grid-template-columns:360px minmax(0,1fr);gap:25px}
.studio-page .creation-tools{border-color:#cbd0dc;padding:23px;box-shadow:0 4px 18px #25345005}
.studio-page .section-label{font-size:15px;font-weight:700;color:#34244d;border-color:#d5cbe9}
.studio-page .field-note,.studio-page .project-summary p{font-size:12px;color:#5b6275;line-height:1.8}
.studio-page .upload-zone{background:#f5f0ff;border-color:#9776d7;padding:21px 10px}
.studio-page .upload-zone strong{font-size:15px;color:#4b268b}
.studio-page .upload-zone>span:last-of-type{font-size:12px;color:#66527e}
.studio-page .upload-zone input{font-size:11px}
.studio-page .choice-grid button{font-size:13px;border-color:#c6ccda;padding:14px 7px}
.studio-page .chips button{font-size:12px;border-color:#c3c9d5;color:#444e65;padding:8px 11px}
.studio-page .chips button.selected,.studio-page .choice-grid button.selected{background:#ece3ff;border-color:#7850c6;color:#512998;box-shadow:inset 0 0 0 1px #7850c6;font-weight:650}
.studio-page .project-summary h2{font-size:22px;color:#222636}
.studio-page .product-preview-card{grid-template-columns:280px minmax(0,1fr);padding:24px;min-height:290px;border-color:#cbd0dc;box-shadow:0 4px 18px #25345005}
.studio-page .studio-image-stage{height:250px;background:radial-gradient(ellipse,#fff 30%,#e9ebf1);border-color:#d1d5de;color:#61697b;font-size:13px;position:relative}
.studio-page .studio-image-stage img{padding:13px;cursor:zoom-in;transition:transform .2s}
.studio-page .studio-image-stage img:hover{transform:scale(1.035)}
.studio-page .product-preview-card h3{font-size:20px;line-height:1.5;margin:25px 0 13px}
.studio-page .product-preview-card p{font-size:14px;line-height:1.9;color:#535e74}
.studio-page .badge{background:#eee7fc;color:#5b368e;border:1px solid #daceec;font-size:11px}
.product-shelf-panel{background:#fff;border:1px solid #cbd0dc;border-radius:12px;margin-top:20px;padding:19px 22px}
.shelf-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.shelf-heading h3{font-size:15px;margin:0 auto 0 0}.shelf-heading h3 span{font-size:12px;color:#6840ac;margin-left:7px}.shelf-heading>span{font-size:11px;color:#636d7f}.studio-page .shelf-heading button{font-size:11px;padding:6px 9px}
.studio-product-shelf{display:flex;gap:13px;overflow:auto;padding:2px 2px 9px;scrollbar-width:thin;max-width:100%}
.studio-page .product-thumb{flex:0 0 132px;width:132px;text-align:left;padding:8px;border:1px solid #cbd0dc;border-radius:9px;background:#fff;color:#303749}.studio-page .product-thumb.selected{border-color:#7952cb;box-shadow:0 0 0 1px #7952cb;background:#f6f1ff}.product-thumb img{width:100%;height:94px;object-fit:contain;background:#f2f3f7;border-radius:5px}.product-thumb strong{display:block;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:8px}.product-thumb small{font-size:10px;color:#656d7d}
.studio-page .flow-tabs{margin-top:22px;border-color:#cbd0dc}.studio-page .flow-tabs button{font-size:14px}.studio-page .flow-tabs button.selected{color:#592db1;border-color:#663ac1;font-weight:650}
.studio-page .artifact-panel{border-color:#cbd0dc}.studio-page .artifact-view>label{font-size:13px}.studio-page .artifact-view .scene-card{background:#f7f8fb;border-color:#d2d7e2;padding:19px}.studio-page .scene-card h3{font-size:15px}.studio-page .scene-card label{font-size:12px}.studio-page .artifact-warning,.studio-page .model-result{font-size:12px}.studio-page .panel-heading p{font-size:12px;color:#57647b}
.studio-page .filter-rows,.studio-page .media-card,.studio-page .asset-card,.studio-page .production-grid article{border-color:#cbd0dc}.studio-page .filter-row>strong{font-size:13px;color:#30364b}.studio-page .media-info h3{font-size:16px}.studio-page .media-info p{font-size:12px;color:#5b667c}.studio-page .media-stage{background:#e6e9ef}.studio-page .preview-tag{font-size:11px;background:#211a32cf}.studio-page .empty-state{color:#5d687e;font-size:14px}.studio-page .page-heading p{font-size:13px}.studio-page .asset-card h3{font-size:15px}.studio-page .asset-card p{font-size:12px}.studio-page .global-message{color:#4b2c7e;background:#eee7ff;font-size:13px}
.studio-page .head-actions select{font-size:12px}.studio-page .claim-card label,.studio-page .claim-card .basis{font-size:12px}.studio-page .claim-card input[type=text]{font-size:12px}
[hidden]{display:none!important}
@media(min-width:1700px){.studio-page .studio-layout{grid-template-columns:380px minmax(0,1fr)}.studio-page .product-preview-card{grid-template-columns:340px minmax(0,1fr)}.studio-page .studio-image-stage{height:300px}}
@media(max-width:1250px){.studio-page .studio-layout{grid-template-columns:310px minmax(0,1fr);gap:18px}.studio-page .creation-tools{padding:18px}.studio-page .product-preview-card{grid-template-columns:180px minmax(0,1fr);padding:18px;gap:17px;min-height:240px}.studio-page .studio-image-stage{height:210px}.studio-page .product-preview-card h3{font-size:17px}.studio-page .workspace-head h1{font-size:21px}.studio-page .head-actions button{font-size:11px;padding:9px}}
@media(max-width:950px){.studio-page .workspace-head{flex-wrap:wrap;height:auto;gap:12px}.studio-page .head-actions{flex-wrap:wrap}.studio-page .studio-layout{grid-template-columns:1fr}.studio-page .creation-tools{position:static;max-height:none}.studio-page .product-preview-card{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:550px){.studio-page .studio-main{margin-left:70px;padding:12px}.studio-page .workspace-head{padding:16px}.studio-page .product-preview-card{grid-template-columns:1fr}.studio-page .studio-image-stage{height:230px}.studio-page .product-preview-card h3{margin-top:4px}.shelf-heading>span{display:none}.studio-page .workspace-head h1{font-size:19px}}
.media-lab-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:23px;margin-top:22px;align-items:start}.media-tools{padding:21px;background:#fff;border:1px solid #cbd0dc;border-radius:12px;position:sticky;top:18px}.media-tools h3{font-size:17px;margin-top:0}.media-lab-layout .asset-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}.media-tools details{margin-top:22px;font-size:12px}.sample-item{padding:13px 0;border-top:1px solid #ddd}.sample-item strong{font-size:12px}.studio-page .sample-item button{font-size:12px}.studio-page .asset-card audio{width:100%;margin-top:15px}.studio-page #mediaJobStatus{white-space:pre-wrap;max-height:400px;overflow:auto}#mediaQuoteSummary{font-size:13px;line-height:1.8}#mediaQuoteDialog .check-line{margin:20px 0;align-items:start}#mediaQuoteDialog .check-line input{flex-shrink:0;margin-top:4px}@media(max-width:1250px){.media-lab-layout .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:950px){.media-lab-layout{grid-template-columns:1fr}.media-tools{position:static}}@media(max-width:550px){.media-lab-layout .asset-grid{grid-template-columns:1fr}}
.connection-panel{margin:20px 30px 0 122px;padding:20px 23px;background:#fff;border:1px solid #bda6e7;border-left:4px solid #6d3ee1;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:20px}.connection-panel strong{color:#36214f;font-size:16px}.connection-panel p{color:#5b6173;font-size:13px;line-height:1.8;margin:8px 0 0}.connection-panel[data-state=error]{border-color:#bd704e}.connection-panel button{flex-shrink:0}#localDialogEntry{margin-bottom:15px}@media(max-width:800px){.connection-panel{margin:15px 15px 0 85px;flex-wrap:wrap}}

/* Preserve the full source composition and avoid enlarging low-resolution assets. */
.studio-page .media-stage{background:#222531}.studio-page .media-stage img,.studio-page .media-stage video{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;inset:0;margin:auto}.studio-page .media-quality{font-size:11px;line-height:1.7;color:#554b70}.studio-page #workbenchVersion{color:#5932a6;font-size:12px;letter-spacing:.2px}

.studio-page .media-info .display-excerpt{display:block;font-size:10px;color:#737b8b;margin-bottom:6px}.studio-page .media-info .event-short-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.55;min-height:3.1em;font-size:16px;margin-bottom:8px}.studio-page .media-info .event-short-hook{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.8;min-height:3.6em;margin:0 0 10px}.studio-page .media-info .source-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#616d81;margin:0 0 4px}.studio-page .media-info .source-window{display:block;font-size:11px;color:#7258a7;margin:0 0 9px}.event-full-detail{max-width:720px;min-width:min(500px,70vw)}.event-full-detail h2{font-size:21px}.event-full-detail h3{font-size:14px;margin-top:22px}.event-full-detail p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.event-full-detail pre{max-height:380px}.studio-page .media-info .card-actions{margin-top:12px;flex-wrap:wrap}

.event-index-card,.beautify-panel{border:1px solid #cbd0dc;border-radius:12px;background:#fff;overflow:hidden}.beautify-panel{margin-top:20px;padding:20px}.beautify-panel>img{max-width:100%;height:280px;object-fit:contain;display:block;margin:auto}.project-assistant{position:fixed;right:24px;bottom:24px;width:350px;max-width:calc(100vw - 90px);background:#fff;border:1px solid #baa6df;border-radius:13px;box-shadow:0 8px 40px #28213d26;z-index:65;overflow:hidden}.project-assistant>header{display:flex;align-items:center;justify-content:space-between;background:#eee7fb;padding:11px 14px;cursor:grab;touch-action:none}.project-assistant>header strong{font-size:13px;color:#4b2b7e}.studio-page .project-assistant>header button{font-size:11px;padding:6px 8px}.project-assistant.collapsed #assistantBody{display:none}#assistantBody{padding:13px}#assistantMessages{max-height:320px;overflow-y:auto;overflow-wrap:anywhere}#assistantInput{min-height:65px;font-size:12px}.assistant-message{padding:10px;border-radius:8px;margin:8px 0;background:#f4f5f8;font-size:12px;line-height:1.8}.assistant-message.user{background:#f0eafb}.assistant-message p{white-space:pre-wrap;margin:5px 0}.assistant-message strong{font-size:11px;color:#654695}.assistant-message button{font-size:10px!important;margin:3px}.studio-page .media-stage>button{position:relative;z-index:3}.studio-page #pane-history .asset-card{display:flex;flex-direction:column;gap:8px}.studio-page #pane-history details{font-size:12px;margin-top:25px}.studio-page #pane-history .asset-card h3{margin:5px 0}

.shop-examples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shop-example{border:1px solid #d7dce5;border-radius:9px;padding:10px;min-width:0}.shop-example img{width:100%;height:130px;object-fit:contain;background:#fff}.shop-example h4{font-size:12px;margin:10px 0 0}.shop-example a{font-size:11px;color:#6848a0;display:block;margin-bottom:9px}.studio-page .shop-example button{font-size:11px;padding:8px;width:100%}.product-shelf-panel hr{border:0;border-top:1px solid #e2e5ec;margin:22px 0}@media(max-width:1150px){.shop-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}

.project-assistant{max-height:calc(100vh - 16px);overflow-y:auto}

.beautify-panel>#beautifySwitches{margin:10px 0 14px}.beautify-panel>#beautifyPreview{height:320px;width:100%;background:#f7f8fa;border:1px solid #e0e3ea;border-radius:8px;cursor:zoom-in}.beautify-panel>#beautifyResult{margin-bottom:0}.beautify-panel details{margin:12px 0}.beautify-panel details>summary{cursor:pointer;color:#514266}.beautify-panel>p.field-note{margin:0}

/* Unified product zone: original evidence and display candidates stay distinct. */
.product-composer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;padding:20px;background:#fff;border:1px solid #cbd0dc;border-radius:12px}.product-recognition-column{min-width:0}.product-zone-title{font-size:16px;margin:0 0 16px}.studio-page .product-composer .product-preview-card{display:flex;flex-direction:column;padding:0;border:0;box-shadow:none;gap:8px;min-height:0}.studio-page .product-composer .studio-image-stage{height:280px}.studio-page .product-composer .product-preview-card h3{font-size:18px;margin:8px 0}.studio-page .product-composer .product-preview-card p{font-size:13px;margin:8px 0}.product-claim-summary{font-size:12px;color:#515d72;line-height:1.8;margin-top:14px}.product-composer>.beautify-panel{margin:0;padding:0 0 0 18px;border:0;border-left:1px solid #e0e3e9;border-radius:0;overflow:visible}.beautify-display-stage{height:280px;margin-top:14px;background:#f5f6f8;border:1px solid #d6dbe4;border-radius:9px;display:grid;place-items:center;overflow:hidden}.beautify-display-stage img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.beautify-display-stage p{text-align:center;color:#627087;font-size:13px;line-height:1.9;padding:20px}.product-composer .beautify-panel>p.field-note{font-size:12px}.studio-page .product-composer .shelf-heading h3{font-size:16px}.studio-page .product-composer .shelf-heading>button{font-size:12px;padding:9px 13px}.product-management{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 18px;padding:12px;background:#f5f6fa;border-radius:8px}.product-management .check-line input{width:15px}.studio-page article.product-thumb{flex:0 0 155px;width:155px;cursor:default}.studio-page article.product-thumb input{font-size:12px;width:100%;padding:6px}.studio-page article.product-thumb .check-line input{width:14px}.studio-page article.product-thumb button{font-size:11px;margin-top:8px;padding:6px;width:100%}.claim-card details{margin:9px 0 0;font-size:12px}.claim-card>label.check-line{display:flex}.product-composer #beautifyResult:empty{display:none}@media(max-width:1150px){.product-composer{padding:15px;gap:14px}.product-composer>.beautify-panel{padding-left:14px}.studio-page .product-composer .studio-image-stage,.beautify-display-stage{height:230px}}@media(max-width:720px){.product-composer{grid-template-columns:1fr}.product-composer>.beautify-panel{padding:18px 0 0;border-left:0;border-top:1px solid #e0e3e9}}

/* Keep image grid items inside their preview frame, including tall source photos. */
.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{min-width:0;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.studio-page .product-composer #studioProductImage,.studio-page .product-composer #beautifyPreview{display:block;width:100%!important;height:100%!important;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;box-sizing:border-box}
.studio-page .product-composer #studioProductImage:hover{transform:none}
.studio-page .studio-layout>*,.studio-page .creation-workspace,.studio-page .creation-tools,.studio-page .product-composer>*{min-width:0}
.studio-page input,.studio-page textarea,.studio-page select{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:950px){.studio-page .studio-layout{grid-template-columns:minmax(0,1fr)}.studio-page .creation-tools{width:100%}.studio-page .product-composer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:720px){.studio-page .product-composer{grid-template-columns:minmax(0,1fr)}.studio-page .product-composer>.beautify-panel{padding:18px 0 0;border-left:0;border-top:1px solid #e0e3e9}.studio-page .product-composer .product-preview-card{min-width:0}}
@media(max-width:550px){.studio-page .studio-main{min-width:0;margin-left:70px;padding:10px}.studio-page .creation-tools{padding:14px}.studio-page .workspace-head{padding:14px;min-width:0}.studio-page .head-actions{min-width:0;max-width:100%}.studio-page .head-actions select{width:100%;max-width:100%}.studio-page .product-composer{padding:12px}.studio-page .creation-tools .inline{flex-wrap:wrap}.studio-page .creation-tools .inline input{flex:1 1 100%;width:100%}.studio-page input[type=file]{width:100%;font-size:11px}.studio-page .product-composer .shelf-heading{gap:8px}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:240px}.studio-page .product-preview-card p,.studio-page .product-claim-summary{overflow-wrap:anywhere}.studio-page .studio-product-shelf{min-width:0}.studio-page .product-management{align-items:flex-start;flex-direction:column}}

/* Product headings share a fixed row; both full-image frames share the same baseline. */
.studio-page .product-composer .product-zone-head{height:44px;min-height:44px;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.studio-page .product-composer .product-zone-title,.studio-page .product-composer .product-zone-head h3{margin:0;font-size:16px;line-height:1.4}.studio-page .product-composer .product-preview-card{gap:8px}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:280px;margin-top:0;margin-bottom:0}.stage-job-status{margin:0 23px 18px;padding:14px;border-radius:8px;background:#f1edfb;color:#513485;font-size:13px;line-height:1.8}.stage-job-status.error{background:#fff0ec;color:#8c3824;border:1px solid #e6b2a6}.stage-job-status.success{background:#eef7f1;color:#335f43}.stage-job-status button{margin:8px 0 0}.claim-group-title{font-size:13px;color:#44365d;border-bottom:1px solid #dedbe8;padding-bottom:9px;margin:20px 0 10px}@media(max-width:1150px){.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:230px}}@media(max-width:550px){.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:240px}}

.production-workspace{display:grid;grid-template-columns:285px minmax(0,1fr) 250px;gap:18px;align-items:start}.production-workspace>*{min-width:0;background:#fff;border:1px solid #d1d6e1;border-radius:12px;padding:18px}.production-column-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:35px;margin-bottom:12px}.production-column-heading h3{font-size:16px;margin:0}.production-controls label{display:block;font-size:12px;margin:17px 0 8px}.production-controls textarea{min-height:150px}.production-controls .inline{gap:5px;flex-wrap:wrap}.production-controls .inline select{flex:1 1 100%;width:100%}.production-controls .inline button{font-size:11px;flex:1}.production-setting-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.production-controls details{font-size:12px;margin-top:20px}.production-controls .production-summary{padding:10px;font-size:11px;overflow-wrap:anywhere}.production-controls .production-summary pre{white-space:pre-wrap}.production-references{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.production-reference{width:72px;flex:0 0 72px;min-width:0}.production-reference img{height:76px;width:72px;object-fit:contain;background:#f4f5f8;border:1px solid #dce0e8;border-radius:7px}.production-reference span{font-size:10px;display:block;margin-top:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.production-center{padding:20px;position:sticky;top:15px}.production-screen{position:relative;aspect-ratio:9/16;max-height:640px;width:auto;max-width:100%;margin:0 auto;background:#f0f1f5;border-radius:10px;overflow:hidden;border:1px solid #d9dde6;display:grid;place-items:center}.production-screen video,.production-screen>img{width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;position:absolute;inset:0}.production-screen>p{padding:30px;text-align:center;line-height:1.9;color:#647086;font-size:13px}.production-demo-mark{position:absolute;top:15px;left:15px;z-index:3;background:#efdfbe;color:#6d481f;border-radius:5px;padding:6px 9px;font-size:12px;font-weight:600}.production-preview-actions{display:flex;justify-content:center;gap:8px;margin:17px 0 10px;flex-wrap:wrap}.production-preview-actions button{font-size:12px}.production-storyboard-slide{position:absolute;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid #d9dce5;padding:18px;color:#303c53;font-size:13px;line-height:1.8;max-height:55%;overflow:auto;z-index:2}.production-storyboard-slide h4{margin:0 0 8px;font-size:14px}.production-storyboard-slide p{margin:7px 0}.production-shot-strip{display:flex;gap:7px;overflow:auto;padding:8px 0}.production-shot-strip button{flex-shrink:0;font-size:11px}.production-session{padding:12px;border:1px solid #d7dce6;border-radius:9px;margin:12px 0;cursor:pointer;width:100%;text-align:left;background:#fff;color:#27334b}.production-session.selected{border-color:#8762cc;background:#f6f1ff}.production-session img{height:115px;width:100%;object-fit:contain;background:#f1f2f6;border-radius:6px}.production-session strong{display:block;font-size:13px;margin:10px 0 6px;line-height:1.6}.production-session small{font-size:11px;color:#6a6079;display:block;line-height:1.8}.production-sessions .chips button{font-size:11px}.production-sessions .production-column-heading button{font-size:10px;padding:7px}.production-controls .badge{font-size:10px}@media(min-width:1700px){.production-workspace{grid-template-columns:320px minmax(0,1fr) 285px}.production-screen{max-height:720px}}@media(max-width:1200px){.production-workspace{grid-template-columns:250px minmax(0,1fr)}.production-sessions{grid-column:1/-1}.production-sessions #productionSessionList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.production-session{margin:0}.production-center{position:static}}@media(max-width:720px){.production-workspace{grid-template-columns:minmax(0,1fr)}.production-sessions{grid-column:auto}.production-sessions #productionSessionList{grid-template-columns:minmax(0,1fr)}.production-screen{height:440px;max-height:65vh}.production-center{padding:14px}.production-controls{padding:16px}}

.project-assistant{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}

/* Three focused steps share one project and one persistent tool rail. */
.studio-page{background:#f2f3f7;color:#252a3b}.studio-page .studio-main{color:#252a3b}.studio-page .field-note{color:#596275}.creation-step-nav{display:flex;gap:8px;padding:6px;background:#e6e7ef;border:1px solid #c8ccda;border-radius:12px;width:fit-content;margin:0 0 20px}.studio-page .creation-step-nav button{padding:12px 22px;font-size:14px;font-weight:600;border:0;background:transparent;color:#4d5269}.studio-page .creation-step-nav button.selected{color:#fff;background:#6440bb;box-shadow:0 3px 9px #4e328e28}.creation-step-panel{min-width:0}.step-identify-layout,.step-writing-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.studio-page .step-identify-layout>.creation-tools,.studio-page .step-writing-layout>.creation-tools{padding:20px;max-height:none;position:sticky;top:16px;border-color:#c4c8d6}.studio-page .step-identify-layout .product-composer{min-width:0;padding:20px;border-color:#c4c8d6}.studio-page .step-writing-layout>.creation-workspace{min-width:0}.studio-page .creation-tools .section-label{color:#493278;font-size:13px}.studio-page .creation-tools label{color:#353b51}.studio-page input,.studio-page textarea,.studio-page select{border-color:#bfc5d2;color:#252b40;background:#fff}.studio-page .primary{background:#6341b5;color:#fff;border-color:#6341b5}.studio-page .secondary{background:#eae4f7;color:#4b2d87;border-color:#c8b9e4}.studio-page .quiet{color:#49435e}.studio-page .chips button{border:1px solid #c5c8d5;color:#41465b;background:#fff}.studio-page .chips button.selected{background:#6341b5;color:#fff;border-color:#6341b5}.studio-page .product-shelf-panel{margin-top:20px;border-color:#c4c8d6}.studio-page .product-composer .product-zone-head{height:48px;min-height:48px;margin-bottom:12px}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:300px;background:#eef0f5;border:1px solid #cbd0dc}.beauty-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 10px}.beauty-controls label{font-size:11px;color:#515b70;display:block}.beauty-controls select{font-size:11px;margin-top:5px;padding:9px}.studio-page #beautyViews{margin-bottom:9px}.studio-page #beautyViews button{padding:7px 12px;font-size:12px}.studio-page .beautify-panel #beautifySwitches button{padding:8px 15px}.studio-page #beautyUsage{line-height:1.8;font-size:11px}.selling-step-content{max-width:1050px;padding:26px;border:1px solid #c4c8d6;border-radius:12px;background:#fff}.selling-step-content>.section-label{margin-bottom:14px;color:#493278}#claimsList{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.claim-chip-box{border:1px solid #cbd0dc;border-radius:11px;padding:18px;background:#f8f9fc;min-width:0}.claim-chip-box h3{font-size:14px;color:#32394d;margin:0 0 14px}.claim-chips{gap:8px}.studio-page .claim-chips button{font-size:12px;line-height:1.5;padding:8px 11px;border-radius:8px;text-align:left;max-width:100%;overflow-wrap:anywhere}.studio-page .claim-chips button.pending-claim:not(.selected){border-style:dashed;color:#625375;background:#f5f1fa}.claim-add-line{margin:18px 0 20px;gap:8px}.claim-add-line select{max-width:150px}.claim-add-line input{flex:1;min-width:120px}.selling-step-content>details{font-size:12px;margin:20px 0;color:#5b506d}.selling-step-content>details>summary{cursor:pointer}.selling-step-content .selling-conversation textarea{margin-top:12px}.selling-step-content #suggestClaims{width:auto;font-size:12px;padding:9px 14px}.selling-step-content #sellingReply:empty{display:none}.studio-page .story-prose{font-size:15px;line-height:2.15;color:#30374d;white-space:pre-wrap;margin:0;padding:24px}.story-structure-editor{margin:0 24px 24px;border-top:1px solid #d7dbe5;padding-top:16px;font-size:12px;color:#574274}.story-structure-editor>summary{cursor:pointer}.story-structure-editor .scene-card{margin-left:0;margin-right:0}.story-structure-editor>label{margin:18px 0}.studio-page .artifact-warning{color:#8b4a21;background:#fff4e8;border-left:3px solid #c98c47;padding:11px 14px;margin:10px 22px;font-size:12px;line-height:1.8}.activity-progress{margin:14px 30px 0 122px;padding:12px 16px;border:1px solid #c4b2e2;border-radius:9px;background:#f0eafa;color:#4b327b;font-size:12px}.activity-progress>div{font-weight:600}.activity-progress details{font-size:11px;margin-top:7px}.activity-progress details p{margin:7px 0}.activity-progress[data-state=error]{background:#fff0e8;border-color:#e1b093;color:#8d4325}.activity-progress[data-state=success]{background:#ecf5ee;border-color:#b5d0bd;color:#3c6549}.assistant-avatar{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:#754ddb;border-radius:50%;margin-right:8px;box-shadow:0 2px 5px #704e9b30}.assistant-title{display:flex;align-items:center}.assistant-avatar svg{width:27px;height:27px}.project-assistant>header{background:#e9dff9;border-color:#c2abdf}
@media(min-width:1800px){.step-identify-layout,.step-writing-layout{grid-template-columns:320px minmax(0,1fr)}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:360px}}
@media(max-width:1250px){.step-identify-layout,.step-writing-layout{grid-template-columns:270px minmax(0,1fr);gap:15px}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:250px}.studio-page .step-identify-layout .product-composer{padding:14px}.beauty-controls{grid-template-columns:1fr}.studio-page .product-composer .shelf-heading>button{font-size:11px;padding:8px}}
@media(max-width:1000px){.step-identify-layout,.step-writing-layout{grid-template-columns:minmax(0,1fr)}.studio-page .step-identify-layout>.creation-tools,.studio-page .step-writing-layout>.creation-tools{position:static}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{height:300px}.beauty-controls{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.creation-step-nav{width:100%;box-sizing:border-box;gap:3px}.studio-page .creation-step-nav button{padding:10px 8px;font-size:12px;flex:1}.selling-step-content{padding:17px}#claimsList{grid-template-columns:1fr}.claim-add-line{flex-wrap:wrap}.claim-add-line select{max-width:100%;width:100%}.studio-page .story-prose{padding:16px;font-size:14px}.activity-progress{margin:12px 12px 0 82px}.beauty-controls{grid-template-columns:1fr 1fr}}

/* Calm white workspace with restrained blue accents. */
.studio-page{--studio-blue:#3979d6;--studio-blue-soft:#edf4ff;--studio-border:#dfe5ed;background:#f7f8fa;color:#283446}.studio-page .app-rail{border-color:#e4e8ee}.studio-page .brand{background:linear-gradient(145deg,#75b5ff,#3984e7);box-shadow:0 3px 9px #3183db18;color:#fff}.studio-page .app-rail nav a[aria-current=page]{background:#edf5ff;color:#3475c7;box-shadow:inset 3px 0 #6aa6ed}.studio-page .workspace-head{border-color:#e3e8ee;background:#fff}.studio-page .workspace-head h1{color:#293649;font-size:25px;letter-spacing:-.4px}.studio-page .workspace-head .breadcrumb,.studio-page .page-heading p{color:#788596}.studio-page .creation-step-nav{background:#eff2f6;border-color:#e0e5ec;padding:5px;gap:5px;margin-bottom:22px}.studio-page .creation-step-nav button{color:#647389;font-weight:550}.studio-page .creation-step-nav button.selected{background:#fff;color:#3478cc;box-shadow:0 2px 7px #3049680d}.studio-page button.primary,.studio-page .primary{background:#4389df;border:1px solid #4389df;box-shadow:none;color:#fff}.studio-page button.primary:hover{background:#347bd2}.studio-page button.secondary,.studio-page .secondary{background:#f0f6fd;color:#3973b9;border-color:#d5e4f5}.studio-page button.quiet{background:#fff;color:#63748a;border-color:#e0e6ed}.studio-page button:focus-visible,.studio-page input:focus-visible,.studio-page textarea:focus-visible,.studio-page select:focus-visible{outline:3px solid #a7cef9;outline-offset:2px}.studio-page input,.studio-page textarea,.studio-page select{border-color:#d8e1eb;background:#fff;color:#344256}.studio-page .chips button{border-color:#e0e6ed;color:#617086;font-weight:450}.studio-page .chips button.selected,.studio-page .choice-grid button.selected{background:#eaf3ff;color:#397bc9;border-color:#9fc5ee;box-shadow:none}.studio-page .section-label,.studio-page .creation-tools .section-label,.studio-page .selling-step-content>.section-label{color:#4c698a;border-color:#e1e7ef}.studio-page .eyebrow{color:#7e9bb7}.studio-page .badge{color:#5e80a8;background:#edf3fa}.studio-page .field-note,.studio-page .product-claim-summary,.studio-page .project-summary p{color:#748195}.studio-page .step-identify-layout>.creation-tools,.studio-page .step-writing-layout>.creation-tools,.studio-page .step-identify-layout .product-composer,.studio-page .product-shelf-panel,.studio-page .selling-step-content{border-color:#e0e6ed;box-shadow:none}.studio-page .creation-tools .upload-zone{background:#f8fbff;border-color:#b9d1ed}.studio-page .upload-zone strong,.studio-page .upload-icon{color:#5c8abb}.studio-page .product-composer .studio-image-stage,.studio-page .product-composer .beautify-display-stage{background:linear-gradient(145deg,#fff 18%,#fafcff 62%,#edf4fb);border-color:#e1e7ee}.studio-page .product-composer>.beautify-panel{border-color:#e8edf3}.studio-page .product-zone-head h3,.studio-page .product-zone-title,.studio-page .product-composer .product-preview-card h3{color:#34445a}.studio-page .product-composer .product-preview-card p{color:#718094}.studio-page .product-shelf-panel{padding:20px;margin-top:20px;background:#fff}.studio-page .product-shelf-panel .shelf-heading{align-items:center;gap:10px;flex-wrap:wrap}.studio-page .product-shelf-panel .shelf-heading h3{font-size:15px;margin:0 auto 0 0;color:#3d4f66}.studio-page .product-shelf-panel .shelf-heading button{font-size:11px;padding:7px 10px}.studio-page .product-shelf-panel .shelf-heading #cacheStatus{font-size:10px}.studio-page .product-thumb.selected,.studio-page .production-session.selected{border-color:#99bee9;background:#f4f8fe;box-shadow:none}.studio-page .product-thumb img{background:#f7f9fc}.studio-page .product-management{background:#f5f8fc}.studio-page .product-selection-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:12px}.studio-page .product-selection-actions button{font-size:12px;line-height:1.5;padding:10px 7px}.studio-page .selling-step-content{max-width:1100px;padding:28px}.studio-page #claimsList{align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.studio-page .claim-chip-box{margin:0;background:#fafbfd;border-color:#e1e7ef;padding:20px;min-height:160px}.studio-page .claim-chip-box h3{margin:0 0 16px;font-size:14px;color:#4b607b}.studio-page .claim-chips{margin:0;align-items:flex-start;align-content:flex-start}.studio-page .claim-chips button.pending-claim:not(.selected){background:#f8fafc;color:#7d8797;border-color:#d8e0ea}.studio-page .claim-add-line{display:grid;grid-template-columns:160px minmax(0,1fr) 44px;gap:10px;align-items:center;margin:20px 0 24px}.studio-page .claim-add-line select,.studio-page .claim-add-line input,.studio-page .claim-add-line button{height:44px;min-height:44px;margin:0;max-width:none;box-sizing:border-box;line-height:22px;padding:10px 12px}.studio-page .claim-add-line button{padding:0;font-size:21px;font-weight:400}.studio-page .selling-step-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;border-top:1px solid #e5eaf0;padding-top:20px}.studio-page .flow-tabs button.selected{background:#edf4fd;color:#3975bc;border-color:#91b8e6}.studio-page .artifact-panel,.studio-page .scene-card,.studio-page .asset-card,.studio-page .media-card{border-color:#e0e6ee}.studio-page .global-message{color:#466f9c;background:#edf5ff}.studio-page .activity-progress{color:#55799f;background:#f2f7fe;border-color:#d6e5f6}.studio-page .canvas-node .node-handle{background:#edf5ff;color:#567ea6}.studio-page .stage-job-status{background:#eef5fd;color:#4e779f}.studio-page .stage-job-status.error{background:#fff1ea;color:#955b3c}.studio-page .stage-job-status.success{background:#edf7f0;color:#56836b}

/* The closed assistant is one accessible avatar; the open panel has fixed rows. */
.studio-page .project-assistant{right:20px;bottom:20px;border:1px solid #d7e3f0;background:#fff;border-radius:16px;box-shadow:0 8px 36px #29476c17;max-height:calc(100dvh - 40px);overflow:hidden;display:flex;flex-direction:column}.studio-page .project-assistant.collapsed{width:60px;height:60px;min-height:60px;max-height:60px;border:0;border-radius:50%;box-shadow:none;background:transparent;overflow:visible}.studio-page .project-assistant.collapsed>header,.studio-page .project-assistant.collapsed #assistantBody{display:none}.studio-page #assistantLauncher{padding:0;margin:0;display:none;width:60px;height:60px;border:0;border-radius:50%;background:transparent;box-shadow:none;flex-shrink:0}.studio-page .project-assistant.collapsed #assistantLauncher{display:block}.studio-page #assistantLauncher .assistant-avatar{width:60px;height:60px;margin:0;background:linear-gradient(145deg,#9bc8ff,#5f9ee7);box-shadow:0 5px 18px #3675b52b}.studio-page #assistantLauncher .assistant-avatar svg{width:49px;height:49px}.studio-page .project-assistant:not(.collapsed){width:350px;top:20px;bottom:20px;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}.studio-page .project-assistant>header{display:flex;min-height:56px;box-sizing:border-box;flex-shrink:0;padding:12px 15px;background:#f4f8fe;border-bottom:1px solid #e1eaf5}.studio-page .project-assistant>header strong{font-size:14px;color:#547aa6}.studio-page .project-assistant>header #toggleAssistant{font-size:11px;padding:6px 9px}.studio-page #assistantBody{padding:0;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:0}.studio-page #assistantContext{padding:11px 15px;margin:0;flex-shrink:0;line-height:1.7;font-size:11px;border-bottom:1px solid #edf1f6}.studio-page #assistantMessages{padding:8px 13px;min-height:0;max-height:none;flex:1;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.studio-page .assistant-message{font-size:12px;padding:10px 12px;margin:9px 0;background:#f5f7fa}.studio-page .assistant-message.user{background:#edf5ff}.studio-page .assistant-message strong{color:#7690ac}.studio-page .assistant-message button{margin:5px 4px 0 0}.studio-page .assistant-composer{padding:12px;display:flex;flex-direction:column;gap:10px;flex-shrink:0;border-top:1px solid #e2eaf3;background:#fff}.studio-page #assistantInput{display:block;position:static;width:100%;min-height:76px;max-height:150px;margin:0;font-size:12px;padding:10px;line-height:1.7;resize:vertical;border-color:#d6e2ef}.studio-page .assistant-composer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:center}.studio-page .assistant-composer-actions button{position:static;margin:0;height:38px;min-height:38px;line-height:18px;padding:9px;font-size:12px}.studio-page #assistantStatus{margin:0;font-size:10px;line-height:1.6}.studio-page #assistantStatus:empty{display:none}
@media(min-width:1180px){.studio-page.assistant-open .studio-main,.studio-page.assistant-open .workspace-head{margin-right:390px}.studio-page.assistant-open .global-message,.studio-page.assistant-open .activity-progress,.studio-page.assistant-open .connection-panel{margin-right:410px}.studio-page.assistant-open .workspace-head{flex-wrap:wrap;height:auto;gap:12px}.studio-page.assistant-open .step-identify-layout,.studio-page.assistant-open .step-writing-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.studio-page.assistant-open .product-composer{padding:15px;gap:13px}.studio-page.assistant-open .product-composer>.beautify-panel{padding-left:13px}.studio-page.assistant-open .product-selection-actions{grid-template-columns:1fr}.studio-page.assistant-open .beauty-controls{grid-template-columns:1fr}}
@media(max-width:1179px){.studio-page .project-assistant:not(.collapsed){top:12px;right:12px;bottom:12px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}}
@media(max-width:1000px){.studio-page .claim-add-line{grid-template-columns:140px minmax(0,1fr) 44px}.studio-page .product-selection-actions{grid-template-columns:1fr}}
@media(max-width:720px){.studio-page #claimsList{grid-template-columns:1fr}.studio-page .claim-chip-box{min-height:0}.studio-page .selling-step-content{padding:18px}.studio-page .claim-add-line{grid-template-columns:minmax(0,1fr) 44px;gap:8px}.studio-page .claim-add-line select{grid-column:1/-1;width:100%}.studio-page .selling-step-actions{flex-wrap:wrap;justify-content:stretch}.studio-page .selling-step-actions button{flex:1 1 auto}.studio-page .project-assistant:not(.collapsed){width:min(350px,calc(100vw - 94px));max-width:calc(100vw - 94px)}.studio-page .project-assistant.collapsed{right:14px;bottom:16px}}

.studio-page .image-quality-warning{padding:10px 12px;margin:12px 0 0;border:1px solid #ead9ba;border-radius:8px;background:#fff9ee;color:#8b714b;font-size:11px;line-height:1.8}.studio-page button.primary,.studio-page .primary{background:#3577c5;border-color:#3577c5}.studio-page button.primary:hover{background:#2e69b1}.studio-page .field-note,.studio-page .product-claim-summary,.studio-page .project-summary p{color:#68788c}@media(max-height:520px){.studio-page .project-assistant>header{min-height:46px;padding:8px 12px}.studio-page #assistantContext{padding:6px 12px;font-size:10px}.studio-page .assistant-composer{padding:8px;gap:7px}.studio-page #assistantInput{min-height:54px;max-height:80px}.studio-page .assistant-composer-actions button{height:34px;min-height:34px;padding:7px}}

/* Product image headers share one row size, based on the actual workspace width. */
.studio-page .step-identify-layout>.creation-workspace{container:product-images / inline-size}
.studio-page .step-identify-layout .product-composer{--product-heading-height:48px}
.studio-page .step-identify-layout .product-composer>.product-recognition-column>.product-zone-head,
.studio-page .step-identify-layout .product-composer>.beautify-panel>.product-zone-head{box-sizing:border-box;height:var(--product-heading-height);min-height:var(--product-heading-height);max-height:var(--product-heading-height);margin:0 0 12px;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:space-between;gap:6px 10px}
.studio-page .step-identify-layout .product-composer .product-zone-head>h3{flex:0 1 auto;min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere}
.studio-page .step-identify-layout .product-composer .product-zone-head>button{flex:0 1 auto;min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;margin:0}
@container product-images (max-width:700px){
 .studio-page .step-identify-layout .product-composer{--product-heading-height:84px}
}
@container product-images (max-width:440px){
 .studio-page .step-identify-layout .product-composer{grid-template-columns:minmax(0,1fr)}
 .studio-page .step-identify-layout .product-composer>.beautify-panel{padding:18px 0 0;border-left:0;border-top:1px solid #e8edf3}
 .studio-page .step-identify-layout .product-composer>.product-recognition-column>.product-zone-head,
 .studio-page .step-identify-layout .product-composer>.beautify-panel>.product-zone-head{height:auto;min-height:48px;max-height:none}
}

/* Continuous shot timing is readable before opening the versioned editors. */
.shot-table-wrap{overflow-x:auto;margin:0 20px 20px}.shot-time-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.8;min-width:680px;table-layout:fixed}.shot-time-table th{background:#f3f7fc;color:#56718d;text-align:left;font-weight:550;padding:10px;border-bottom:1px solid #dce5ef}.shot-time-table td{vertical-align:top;padding:12px 10px;border-bottom:1px solid #e5ebf2;white-space:pre-wrap;overflow-wrap:anywhere;color:#465970}.shot-time-table th:first-child{width:90px}.shot-time-table th:nth-child(2){width:115px}.shot-time-table th:last-child{width:100px}.shot-time-table small{display:block;color:#8a98a8}.shot-time-table p{margin:0 0 7px}.shot-time-table .shot-dialogue{color:#354c68}.shot-structure-editor{margin:16px 22px 22px;padding-top:14px;border-top:1px solid #e1e8f0;font-size:12px;color:#66819d}.shot-structure-editor>summary{cursor:pointer}.prompt-time-card{margin:0 22px 14px;border:1px solid #dfe7f0;border-radius:10px;overflow:hidden;font-size:12px;color:#465d75}.prompt-time-card>summary{padding:13px 16px;background:#f6f9fd;cursor:pointer;font-weight:550;line-height:1.7}.prompt-time-card>button{margin:14px 16px 0}.prompt-time-card h4{font-size:12px;color:#728ba5;margin:18px 16px 6px}.prompt-time-card p{margin:6px 16px 16px;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.prompt-time-card .prompt-action-beat{padding:10px 12px;background:#f7f9fc;border-left:2px solid #b8d2ef}.stage-job-status.waiting{background:#f2f6fc;color:#607e9c}@media(max-width:720px){.shot-table-wrap{margin:0 12px 16px}.shot-time-table{font-size:11px}.prompt-time-card,.shot-structure-editor{margin-left:12px;margin-right:12px}}

#trialLogin label{margin:16px 0 8px}#trialLogin input{margin-top:7px}#trialLoginSubmit{width:100%;margin:10px 0 14px}.login-error{color:#a14e3b!important;line-height:1.8;font-size:12px;min-height:1.8em;margin:8px 0}#loginDialog>button[data-close]{margin-top:10px}

/* Short, actionable project conversations; the composer always stays visible. */
.studio-page #assistantContext{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 14px}
.studio-page .assistant-message{padding:10px 12px;margin:7px 0;border-radius:11px;line-height:1.7}
.studio-page .assistant-message>p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.studio-page .assistant-message>strong{font-size:10px;font-weight:500}
.studio-page .assistant-message button{font-size:12px;padding:8px 11px;max-width:100%;line-height:1.4;margin-top:9px}
.studio-page .assistant-message details{font-size:11px;color:#718195;margin-top:7px}
.studio-page .assistant-message details summary{cursor:pointer}
.studio-page .assistant-edit-intent{font-size:12px;color:#4f6d8c;background:#edf5ff;border-radius:8px;padding:9px 11px;line-height:1.6}
.studio-page .assistant-edit-intent:empty{display:none}
.studio-page .assistant-result-state{display:block;margin-top:8px;color:#3f7f69}
.studio-page #assistantScope{padding:7px 9px;font-size:11px;margin:0;border-color:#d6e2ef;max-width:130px}
.studio-page #assistantInput{min-height:66px;max-height:110px;resize:vertical}
.studio-page .assistant-composer{gap:8px;padding:10px 12px}
.studio-page #assistantStatus{font-size:11px;padding:4px 0;color:#59738f}
.studio-page #assistantStatus[data-state=error]{color:#a94331}
.studio-page #assistantStatus[data-state=success]{color:#347c62}
.studio-page #assistantStatus[data-state=working]::before{content:"";display:inline-block;width:9px;height:9px;border:2px solid #cadff5;border-top-color:#3577c5;border-radius:50%;margin-right:7px;vertical-align:-2px;animation:assistant-spin .8s linear infinite}
@keyframes assistant-spin{to{transform:rotate(360deg)}}

/* Library filter recovery: distinguish no matches from missing preview assets. */
.library-filter-help{font-size:13px;line-height:1.7;color:#62738b;margin:0 0 14px}
.library-selection{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.library-selection[hidden]{display:none}
.library-selection-label{font-size:13px;color:#62738b;margin-right:4px}
.library-selection .quiet{font-size:12px;padding:7px 11px;white-space:normal;overflow-wrap:anywhere}
.library-empty{grid-column:1 / -1;padding:28px;background:#fff;border:1px solid #dce5f0;border-radius:14px}
.library-empty h3{font-size:18px;margin:0 0 10px;color:#263d5c}
.library-empty p{font-size:14px;line-height:1.8;color:#61738c;margin:0 0 18px}
.library-empty-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.library-empty-actions button{min-height:42px}

.qianxing-handoff{background:#fff;border:1px solid #dce6f1;border-radius:12px;padding:18px 22px;margin-bottom:20px}.qianxing-handoff h3{font-size:16px;margin:0 0 8px;color:#3c5979}.qianxing-handoff p{font-size:12px;line-height:1.8;color:#6d7e91}.qianxing-handoff .inline{gap:12px;flex-wrap:wrap}.qianxing-link{display:inline-block;color:#3979bd;font-size:13px;text-decoration:none;padding:10px 0}#qianxingHandoffStatus{margin-bottom:0}

/* familiar-ip.1 */
.ip-story-panel{margin:16px 0;padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fafbfc}.ip-story-panel .chips{gap:5px}.ip-story-panel .chips button{font-size:12px;padding:6px 9px}.ip-story-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.ip-story-card{min-width:0;border:1px solid #e5e7eb;border-radius:9px;background:#fff;overflow:hidden}.ip-story-card.selected{border-color:#9b8be8;background:#f7f4ff}.ip-story-pick{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;height:auto;min-height:70px;padding:10px;border:0;background:transparent;color:inherit}.ip-story-pick span{font-size:12px;color:#6b7280;line-height:1.5}.ip-story-card details{font-size:11px;padding:0 9px 9px;line-height:1.6;overflow-wrap:anywhere}.ip-story-original{grid-column:1/-1;border:1px solid #e5e7eb;border-radius:8px;padding:8px;background:white}.ip-story-original.selected{background:#f1edff;border-color:#9b8be8}.ip-story-panel textarea{min-height:76px}.ip-story-panel[hidden],.ip-story-panel label[hidden]{display:none!important}@media(max-width:480px){.ip-story-cards{grid-template-columns:1fr}}

/* familiar-ip.2: scalable character catalog */
.ip-story-pick small{font-size:10px;color:#7b7491;font-weight:400}.ip-story-search-label{font-size:12px}.ip-story-search-label input{margin-top:6px;min-width:0;width:100%}#ipStorySelected:empty{display:none}#ipStorySelected button{max-width:100%;overflow-wrap:anywhere}

/* ip-layout.1: sidebar entry, central reference workspace */
.ip-story-entry{margin:16px 0}.studio-page .ip-story-entry>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;border:1px solid #cbdcee;border-radius:9px;background:#f2f7fd;color:#426e9b;text-align:left}.ip-story-entry>p{margin:7px 0 0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.creation-workspace>.ip-story-panel{margin:0 0 18px;padding:18px 20px;scroll-margin-top:64px;background:white;border-color:#e0e6ed;max-height:min(70vh,720px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.ip-story-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;background:white;z-index:2;padding:8px 0 12px;border-bottom:1px solid #e7edf3}.ip-story-panel-head h3{font-size:16px;margin:0;color:#405a77}.ip-story-panel-head button{flex-shrink:0}.creation-workspace>.ip-story-panel .ip-story-cards{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.creation-workspace>.ip-story-panel .ip-story-pick{padding:14px;min-height:96px}.creation-workspace>.ip-story-panel .ip-story-card details{padding:0 14px 12px}.creation-workspace>.ip-story-panel .ip-story-search-label{display:block;max-width:460px}.creation-workspace>.ip-story-panel .ip-story-original{grid-column:1/-1}.creation-workspace>.ip-story-panel select{max-width:300px}.creation-workspace>.ip-story-panel textarea{min-height:80px}@media(max-width:550px){.creation-workspace>.ip-story-panel{padding:14px;max-height:70vh}.ip-story-panel-head{top:0}.creation-workspace>.ip-story-panel .ip-story-cards{grid-template-columns:minmax(0,1fr)}}
/* Account bookmarks and explicitly bound project references. */
.project-reference-panel{margin:16px 0;padding:18px;border:1px solid #d7dce5;border-radius:16px;background:#fff;color:#202a3a}
.project-reference-panel h3{margin:0 0 8px}.project-reference-panel>button{margin:4px 8px 8px 0}
.reference-item{padding:12px;margin-top:10px;border:1px solid #d7dce5;border-radius:10px;background:#f6f7f9}
.reference-item p{margin:6px 0}.reference-feedback{display:block;margin:6px 0;color:#334155}.reference-feedback[role=alert]{color:#9f2424}
.reference-dialog{width:min(680px,90vw);max-height:85vh;overflow:auto;border:1px solid #cbd2de;border-radius:16px;padding:22px;color:#202a3a;background:white}
.reference-dialog::backdrop{background:#14203388}.reference-dialog select{display:block;width:100%;margin:12px 0;padding:10px}.reference-dialog button{margin:6px 8px 4px 0}
.creative-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;margin:20px 0 32px}.creative-layout input[type=search]{width:100%;padding:12px;margin-bottom:12px}
.creative-element-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.creative-element-card{padding:16px;background:#fff;border:1px solid #d7dce5;border-radius:14px}.creative-element-card h3{font-size:18px;margin:12px 0}.creative-element-card p{font-size:14px;color:#435168;line-height:1.6}.creative-element-card button{margin:4px 6px 0 0}
.creative-selection{position:sticky;top:20px;align-self:start;padding:20px;border:1px solid #cbd2de;border-radius:16px;background:#f1f4f8;color:#202a3a}.creative-selection textarea{width:100%;min-height:120px;margin:12px 0;box-sizing:border-box;padding:10px}.creative-selection>button{margin:4px 8px 6px 0}.creative-picked{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #d7dce5;padding:8px 0}.reference-dialog textarea{display:block;width:100%;min-height:110px;padding:10px;box-sizing:border-box}.reference-dialog input:not([type=checkbox]){display:block;width:100%;box-sizing:border-box;padding:10px;margin:10px 0}
@media(max-width:1000px){.creative-layout{grid-template-columns:1fr}.creative-selection{position:static}}
.pane[data-retired]{display:none!important}.rail-external{display:block;width:100%;margin:16px 0;padding:12px 8px;border:1px solid #cbd2de;border-radius:12px;background:#eef2ff;color:#26366a;font-size:13px;cursor:pointer}.qianxing-handoff{margin-top:22px;background:#f1f4f8;border:1px solid #cbd2de;border-radius:16px;padding:20px}.qianxing-handoff .inline{flex-wrap:wrap}

.creative-reference-image{display:block;width:100%;height:140px;object-fit:contain;background:#f5f6fa;border-radius:10px;margin:10px 0}audio.creative-reference-image{height:40px}

.rail-external{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;font-size:12px;line-height:1.5}.rail-external span{white-space:nowrap}

/* Discovery shares the existing creative-source workspace. */
#pane-sources[data-discovery-mode="search"]>:not(#discoveryWorkspace),#pane-sources[data-discovery-mode="boards"]>:not(#discoveryWorkspace){display:none!important}
.discovery-workspace{margin-bottom:24px}.discovery-tabs{padding:10px 0 18px;border-bottom:1px solid #d7dfe8;margin-bottom:20px}.discovery-content h2{color:#182738;font-size:26px}.discovery-content>p{color:#4d5d70}.discovery-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.discovery-form>input{flex:1;min-width:240px;height:44px}.discovery-form label{display:grid;gap:6px;color:#24354a;font-size:13px}.discovery-form select{min-width:110px;height:44px}.discovery-form>button{height:44px}.discovery-notice{padding:14px 18px;background:#edf3f8;border:1px solid #cfdae6;border-radius:12px;line-height:1.7;color:#294058}.discovery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;margin:20px 0}.discovery-card{background:#fff;border:1px solid #cfd9e5;border-radius:16px;overflow:hidden;box-shadow:0 3px 12px #152c4710}.discovery-cover{height:220px;background:#e9edf2;display:flex;align-items:center;justify-content:center}.discovery-cover img{width:100%;height:100%;object-fit:contain}.discovery-card-body{padding:18px}.discovery-card h3{font-size:17px;line-height:1.5;color:#14273d;margin:0 0 10px}.discovery-card p{overflow-wrap:anywhere;line-height:1.65}.discovery-card .discovery-badge{font-size:12px;font-weight:600;color:#244664;background:#e6eff8;padding:6px 9px;border-radius:7px}.discovery-card button,.discovery-card a{margin-top:10px}.discovery-card details{font-size:13px;color:#43556a}.discovery-metrics{color:#344c65;font-size:13px}.discovery-card-body>a{display:inline-block;margin-right:8px}.discovery-grid>.empty-state{grid-column:1/-1}.discovery-form[hidden],.discovery-content[hidden]{display:none!important}@media(max-width:650px){.discovery-form{align-items:stretch}.discovery-form>input{flex-basis:100%;min-width:0}.discovery-form label{flex:1}.discovery-grid{grid-template-columns:1fr}.discovery-cover{height:260px}}
.discovery-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

#retiredSourceTools{display:none!important}.image-failure{padding:16px;background:#fff4ed;border:1px solid #d4a981;border-radius:12px;color:#654126}.image-failure p{line-height:1.7;overflow-wrap:anywhere}.image-failure details{font-size:13px}.history-asset-card{border:1px solid #d7dfe8;border-radius:12px;padding:14px;margin:12px 0}.history-asset-card img{height:140px;width:160px;object-fit:contain}

.app-rail a.rail-external{box-sizing:border-box;text-decoration:none;font:inherit;cursor:pointer}.app-rail a.rail-external:focus-visible{outline:2px solid #235eac;outline-offset:3px}

.live-trends{margin-top:8px}.live-topic-list{border:1px solid #d4dce6;border-radius:14px;overflow:hidden;background:white;margin:20px 0}.live-list-heading,.live-topic-row{display:grid;grid-template-columns:75px minmax(0,1fr) 130px;gap:16px;padding:17px 20px;align-items:start}.live-list-heading{background:#edf1f5;color:#4e6075;font-size:12px}.live-topic-row+.live-topic-row{border-top:1px solid #e8ecf1}.live-topic-row:hover{background:#f7f9fc}.live-rank{font-size:20px;font-weight:700;color:#667a90}.live-rank.top{color:#d95333}.live-topic-title{border:0;background:transparent;text-align:left;padding:0;color:#152c46;font-weight:600;line-height:1.6;font-size:16px;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.live-topic-title:hover{color:#225bb0}.live-topic-content{min-width:0}.live-topic-content details{font-size:12px;color:#64758a;margin-top:6px}.live-topic-content details p{overflow-wrap:anywhere}.live-topic-badge{display:inline-block;font-size:11px;color:#b84726;background:#fff0e8;margin-left:7px;padding:1px 5px;border-radius:4px}.live-metric{text-align:right;color:#52657c;display:grid;gap:4px}.live-metric strong{font-size:14px;color:#314a65}.live-metric small{font-size:11px}.live-board-panel[hidden]{display:none!important}.live-trends label[hidden],.live-trends .chips[hidden]{display:none!important}@media(max-width:650px){.live-topic-row,.live-list-heading{grid-template-columns:45px minmax(0,1fr) 85px;padding:14px 10px;gap:10px}.live-rank{font-size:16px}.live-topic-title{font-size:15px}.live-metric strong{font-size:12px}}
.discovery-grid[hidden],.discovery-notice[hidden]{display:none!important}

.live-inline-detail{grid-column:1/-1;padding:18px;background:#f1f4f8;border:1px solid #d1dbe7;border-radius:12px}.live-inline-detail[hidden],.inline-analysis[hidden]{display:none!important}.live-detail-cover{width:150px;height:180px;object-fit:contain;float:left;margin:0 20px 14px 0;background:#e2e7ee;border-radius:10px}.live-expand{font-size:12px;margin-top:8px}.heat-stars{color:#bd6b08;letter-spacing:2px;font-weight:700;white-space:nowrap}.inline-analysis{border-top:1px solid #cbd5e1;margin-top:14px;padding-top:12px}.inline-analysis video{width:100%;max-height:360px}.inline-analysis h4{color:#192d45;margin:16px 0 6px}.discovery-grid>.field-note{grid-column:1/-1}

.commerce-grid,.commerce-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;margin:22px 0}.commerce-card,.commerce-topic{background:#fff;border:1px solid #cbd5e1;border-radius:16px;overflow:hidden;box-shadow:0 3px 12px #1e293b0a}.commerce-card-body,.commerce-topic{padding:20px}.commerce-card h3{font-size:18px;line-height:1.5;margin:0 0 12px;color:#172c44}.commerce-cover{position:relative;height:240px;background:#e4eaf1}.commerce-cover img,.commerce-cover video{width:100%;height:100%;object-fit:contain}.commerce-cover video{display:none}.commerce-preview-label{position:absolute;bottom:8px;left:8px;padding:5px 9px;border-radius:7px;background:#172c44cc;color:#fff;font-size:12px}.commerce-state{font-size:12px;color:#244564}.commerce-analysis{border-top:1px solid #d0dae5;margin-top:16px;line-height:1.7}.commerce-analysis[hidden]{display:none}.commerce-dialog{width:min(940px,92vw);max-height:90vh;overflow:auto;border:1px solid #cbd5e1;border-radius:18px;padding:26px}.commerce-dialog::backdrop{background:#142b4580}.commerce-dialog .chips label{display:flex;align-items:center;gap:8px}.commerce-dialog .chips input{width:auto}.commerce-topic-editor{display:grid;gap:14px;margin:20px 0}.commerce-topic-editor label{display:grid;gap:6px;color:#172c44;font-size:14px}.commerce-topic-editor input,.commerce-topic-editor textarea{box-sizing:border-box;width:100%;font:inherit;color:#172c44;padding:10px;border:1px solid #9eafc0;border-radius:8px;resize:vertical}.commercial-project-panel{border:1px solid #cad6e3;background:#fff;border-radius:14px;padding:18px;margin:16px 0}.commerce-workspace h2{color:#172c44;font-size:28px}.commerce-topic p{line-height:1.6}@media(max-width:650px){.commerce-grid,.commerce-topics{grid-template-columns:1fr}}
.story-feedback{margin:14px 0;padding:12px;background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px}.story-feedback summary{cursor:pointer;font-weight:600}.story-feedback textarea{margin:10px 0;width:100%;box-sizing:border-box}.story-feedback .check-line{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px}.story-feedback input[type=checkbox]{width:auto}.story-feedback .inline{display:flex;gap:8px;flex-wrap:wrap}

/* 2.0: actual video layer must occupy the same box as its poster. */
.studio-page .commerce-cover,.studio-page .media-stage{position:relative;overflow:hidden}
.studio-page .commerce-cover>video,.studio-page .media-stage>video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;display:block!important;opacity:0;pointer-events:none;z-index:1}
.studio-page .commerce-cover.playing>video,.studio-page .media-stage.playing>video{opacity:1}
.studio-page .commerce-cover.playing>img,.studio-page .media-stage.playing>img{opacity:0}
.studio-page .commerce-preview-label,.studio-page .preview-tag{z-index:2}
.project-idea-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 22px;grid-column:1/-1}
.project-idea-cards>section{margin:0!important;padding:16px!important;min-width:0;background:#fff;border:1px solid #d7e0eb;border-radius:14px}
.project-idea-cards h3{font-size:16px;margin:0 0 10px}.project-idea-cards p{font-size:13px;line-height:1.7;margin:8px 0}.project-idea-cards .reference-item{padding:8px;margin:8px 0;max-height:180px;overflow:auto}.project-idea-cards button{padding:8px 12px;font-size:12px}.idea-generate{grid-column:1/-1;justify-self:end}
@media(max-width:1000px){.project-idea-cards{grid-template-columns:1fr}.idea-generate{justify-self:stretch}}

.discovery-workspace{position:relative;padding-right:310px;min-height:500px}.breakdown-queue{position:absolute;right:0;top:0;width:285px;background:#fff;border:1px solid #d7e0eb;border-radius:14px;padding:14px;max-height:80vh;overflow:auto}.breakdown-queue h3{font-size:17px;margin:0 0 12px}.breakdown-queue-item{border-top:1px solid #e3e9f1;padding:14px 0;overflow-wrap:anywhere}.breakdown-queue-item strong{font-size:13px}.breakdown-queue-item p,.breakdown-queue-item small{font-size:12px;line-height:1.7}.breakdown-queue-item button{font-size:12px;padding:7px}.drama-commerce-transfer{border-top:1px solid #d7e0eb;padding-top:16px;margin-top:16px}.drama-commerce-transfer p{font-size:14px;line-height:1.8}
@media(max-width:1100px){.discovery-workspace{padding-right:0}.breakdown-queue{position:relative;width:auto;max-height:500px;margin-bottom:20px}}

.identity-review-pictures{display:grid;grid-template-columns:1fr 1fr;gap:16px}.identity-review-pictures img{width:100%;height:340px;object-fit:contain;background:linear-gradient(#fff,#f4f7fa)}.identity-review-check{display:inline-flex;align-items:center;gap:6px;margin:12px}.identity-review-check input{width:auto}

/* Teacher 2.1: stable reference columns and compact, independent source modes. */
#compositionProjectSummary{display:none!important}
#pane-sources[data-discovery-mode="composition"] #discoveryWorkspace{min-height:0;padding-right:0;margin-bottom:18px}
#pane-sources[data-discovery-mode="composition"] .breakdown-queue{display:none}
.project-idea-cards{align-items:start}.project-idea-cards>section{height:auto!important;min-height:0!important}
.reference-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.reference-actions button{margin:0!important}.idea-empty{color:#738197}
#historyProjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px;align-items:start}
#historyProjects article{padding:22px;border-radius:18px;display:flex;flex-direction:column;gap:12px;min-width:0}
#historyProjects article h3{margin:0;font-size:18px}#historyProjects article p{margin:0;overflow-wrap:anywhere}
#historyProjects article .button-row,#historyProjects article .actions,#historyProjects article .history-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:8px}
#historyProjects article button{margin:4px 8px 4px 0;padding:10px 14px}
.discovery-cover{position:relative;min-height:150px;height:200px}.discovery-cover.cover-unavailable{height:130px;background:linear-gradient(135deg,#eff5fd,#fff);padding:20px}
.discovery-cover .cover-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:18px;text-align:center;max-width:100%;font-size:14px}
.discovery-cover .cover-fallback a{color:#316fbc;font-weight:600}.cover-fallback[hidden]{display:none!important}
.breakdown-live{font-size:12px;color:#61748c}.breakdown-queue-item .queue-wait{background:#fff4e7;padding:10px;border-radius:9px}

#historyProjects .card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}

.history-management{margin:24px 0;align-items:center;gap:14px}.history-select-all,.history-topic-pick{display:inline-flex;align-items:center;gap:9px}.history-topic-pick{margin-bottom:14px}.history-select-all input,.history-topic-pick input{width:18px;height:18px;min-height:0}.history-management .danger{color:#a12a25;background:#fff1ef;border:1px solid #edc9c4}

.saved-version-list{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.saved-version-content{padding:20px;border:1px solid #dde5f0;border-radius:16px}.saved-artifact-prose{white-space:pre-wrap;line-height:1.8;margin-top:20px}.saved-artifacts-dialog{max-height:88vh;overflow:auto}

/* Progress bar for long AI jobs: the model reports no real percentage, so the bar
   follows stage boundaries and is labelled as an estimate. */
#activityCurrent{display:flex;flex-direction:column;gap:6px}
#activityCurrent .activity-label{font-weight:600}
#activityCurrent .activity-bar{height:4px;border-radius:999px;background:rgba(31,27,22,.12);overflow:hidden}
#activityCurrent .activity-bar>i{display:block;height:100%;width:0;background:currentColor;opacity:.55;border-radius:999px;transition:width .4s ease}

/* Multi-image product strip: main photo plus user-added supplementary shots. */
.product-image-strip{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.product-image-strip button{position:relative;width:56px;height:56px;padding:0;border:1px solid rgba(31,27,22,.18);border-radius:8px;overflow:hidden;background:#f6f3ee;cursor:pointer}
.product-image-strip button.selected{border-color:#1f1b16;box-shadow:0 0 0 1px #1f1b16 inset}
.product-image-strip img{width:100%;height:100%;object-fit:cover;display:block}
.product-image-strip .strip-tag{position:absolute;left:0;bottom:0;right:0;font-size:10px;line-height:1.4;color:#fff;background:rgba(31,27,22,.55);text-align:center;pointer-events:none}
.product-more-label{display:inline-block;margin-top:8px;padding:4px 10px;border:1px dashed rgba(31,27,22,.35);border-radius:999px;cursor:pointer;font-size:12px}
.product-more-label:hover{background:rgba(31,27,22,.06)}

/* Structured angle slots: front/back/side required, top/bottom optional. */
.angle-slots{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;justify-content:center}
.angle-slot{position:relative;width:62px;height:62px;border:1.5px dashed rgba(75,38,139,.45);border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}
.angle-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.angle-slot em{font-style:normal;font-size:20px;color:#9776d7;line-height:1}
.angle-slot .slot-tag{position:absolute;left:0;right:0;bottom:0;font-size:10px;line-height:1.5;text-align:center;color:#4b268b;background:rgba(255,255,255,.86)}
.angle-slot.filled{border-style:solid;border-color:#9776d7}
.angle-slot.disabled{opacity:.45;cursor:not-allowed}
.angle-slot:hover{border-color:#4b268b}
.studio-image-stage .product-image-strip{position:absolute;left:10px;right:10px;bottom:8px;margin:0;justify-content:center}

#detectAngles{display:block;margin:10px auto 0;font-size:12px;padding:5px 12px}
