:root{--ink:#202c31;--muted:#7a858b;--line:#e7ebe9;--green:#227965;--bg:#f6f8f7;--soft:#eaf3ee}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink);font-size:14px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}.hidden{display:none!important}.sidebar{position:fixed;width:238px;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;letter-spacing:1px}.brand-mark{display:inline-grid;place-items:center;background:var(--green);color:#fff;width:41px;height:43px;border-radius:12px 12px 12px 3px;font-family:Georgia,serif;font-size:29px;font-weight:bold}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#819088;margin-top:5px}.workspace-label{border:1px solid var(--line);border-radius:7px;margin:37px 0 24px;padding:12px;color:#7a858b;font-size:12px}.workspace-label span{float:right;color:var(--green);font-weight:bold}.nav{display:flex;align-items:center;gap:13px;width:100%;padding:14px 13px;text-align:left;border-radius:7px;color:#69777c;margin-bottom:8px}.nav span{font-size:20px;width:22px}.nav.active{background:var(--soft);color:var(--green);font-weight:600}.nav b{margin-left:auto;font-size:11px;background:white;border-radius:5px;padding:2px 6px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:22px;font-size:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#48a685;margin-right:7px}.sidebar-bottom p{font-size:11px;color:var(--muted);line-height:1.8}.text-button{color:var(--green);font-size:12px;padding:6px 0}.workspace{margin-left:238px}header{height:79px;padding:0 42px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;font-size:12px}.breadcrumb{color:#8a9497}.slash{padding:0 14px;color:#bec5c3}.header-right{display:flex;gap:22px;align-items:center}.tag{color:#727e7a;font-size:11px}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#eeeae3;border-radius:50%;font-weight:bold;color:#8d7862}main{padding:39px 42px 20px;max-width:1800px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:700;margin:0 0 12px}h1{font-size:29px;font-weight:600;letter-spacing:-.7px;margin:0 0 10px}h2{font-size:20px;margin:0 0 18px}h3{font-size:14px}.muted{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.primary,.secondary,.dark-button{border-radius:6px;padding:12px 17px;font-size:12px;font-weight:500;white-space:nowrap}.primary{background:var(--green);color:white}.primary:hover{background:#185e4e}.secondary{border:1px solid #dce3df;background:white}.dark-button{background:#263a33;color:white}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:30px}.stats article{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.stats span{font-size:12px;color:#6d787d}.stats strong{font-size:32px;display:block;margin:13px 0 8px;font-weight:500}.stats small{font-size:10px;color:#909a9c}.stats .stat-accent{background:#edf4ef;border-color:#deebe2}.stat-accent strong{color:var(--green)}.panel,.list-panel{border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}.panel-toolbar{display:flex;align-items:center;justify-content:space-between;padding:21px 23px;gap:10px}.panel-title{font-size:15px;font-weight:600;white-space:nowrap}.panel-title span{font-size:11px;color:#819087;margin-left:7px;border-radius:4px;background:#f1f4f2;padding:3px 7px}.toolbar-actions{display:flex;align-items:center;gap:9px}.toolbar-actions select{max-width:190px}.filters{display:flex;justify-content:space-between;padding:0 23px;border-top:1px solid #f2f4f3;border-bottom:1px solid var(--line);align-items:center;gap:20px}.tabs{display:flex;gap:23px}.tabs button{padding:19px 0;font-size:12px;color:#87918f;border-bottom:2px solid transparent;white-space:nowrap}.tabs .selected{color:var(--green);border-bottom-color:var(--green);font-weight:600}input,select,textarea{border:1px solid #dfe6e2;border-radius:6px;padding:10px 12px;background:#fff;color:var(--ink);max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #e5f1eb}textarea{resize:vertical;line-height:1.7}.search{font-size:11px;width:210px;background:#f9faf9;border-color:#edf0ee}.product-grid{padding:23px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;min-height:240px}.product-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;cursor:pointer;transition:transform .15s,box-shadow .15s;background:#fff}.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #23372d10}.product-image{height:230px;position:relative;background:#f0f2ee;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain;background:#f3f0eb}.image-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#a3afa8;font-size:12px}.image-placeholder span{font-size:38px;font-weight:200}.source-badge{position:absolute;top:10px;left:10px;background:#fffffff0;padding:4px 8px;border-radius:4px;font-size:10px}.card-body{padding:14px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:10px}.number{font-family:monospace;font-size:10px;color:#8e9893}.badge{display:inline-block;font-size:10px;padding:4px 7px;border-radius:4px;white-space:nowrap}.badge.approved,.badge.succeeded{background:#e7f3ec;color:#297659}.badge.pending,.badge.needs_review,.badge.queued,.badge.running{background:#fcf3df;color:#9b7b30}.badge.draft,.badge.canceled{background:#f0f2f3;color:#82908b}.badge.failed{background:#fbece9;color:#b26558}.card-title{font-size:12px;font-weight:500;line-height:1.7;height:40px;overflow:hidden}.card-footer{display:flex;justify-content:space-between;margin-top:14px;padding-top:11px;border-top:1px solid #f0f2f0;font-size:10px;color:#8c9892}.empty{grid-column:1/-1;padding:45px 20px;text-align:center;color:#84918a}.empty .empty-icon{font-size:34px;color:#8db09b;margin-bottom:12px}.empty h3{color:#4b6255;font-size:16px}.empty p{font-size:12px;line-height:1.9}.workflow{display:flex;align-items:center;justify-content:center;gap:24px;padding:27px 12px;color:#8a9690;font-size:10px}.workflow-label{color:#52685b}.workflow i{font-style:normal;color:#b2bfb7}footer{padding:25px 42px;color:#8d9992;font-size:9px;letter-spacing:1px}footer span{float:right;letter-spacing:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-card{padding:27px}.settings-card.full{grid-column:1/-1}.connection{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #f0f3f1;gap:10px}.connection b{font-size:13px}.settings-card .muted{margin:18px 0}.inline-form{display:flex;gap:12px}.inline-form input{flex:1}.note{font-size:11px;color:#8b9690;line-height:1.9}.list-row{padding:22px 25px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);align-items:center}.list-row:last-child{border:0}.list-row h3{margin:0 0 8px}.list-row p{margin:4px 0;font-size:12px;color:#87938c;line-height:1.7;overflow-wrap:anywhere}.list-row .error{color:#b26558}.row-actions{display:flex;align-items:center;gap:15px}dialog{width:min(570px,94vw);border:1px solid var(--line);border-radius:12px;padding:28px;box-shadow:0 25px 100px #18352525;color:var(--ink);max-height:92vh}dialog::backdrop{background:#14271e66;backdrop-filter:blur(2px)}.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-top h2{margin-bottom:22px}.close{font-size:28px;line-height:1;color:#89968d}label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#66786d;margin-bottom:18px}label input,label select,label textarea{width:100%}.checkbox{flex-direction:row;align-items:center;margin-top:22px}.checkbox input{width:auto}form>.primary{width:100%;margin-top:8px}.editor-dialog{width:min(1050px,96vw)}.editor-body{display:grid;grid-template-columns:350px 1fr;gap:30px}.editor-media{min-width:0}#media-main{background:#f1f4f0;border-radius:8px;overflow:hidden;height:370px;display:flex;align-items:center;justify-content:center;color:#9ba89e}#media-main img,#media-main video{width:100%;height:100%;object-fit:contain}.thumbs{display:flex;gap:7px;overflow-x:auto;margin:12px 0}.thumb{flex:0 0 54px;width:54px;height:62px;border:2px solid transparent;border-radius:5px;overflow:hidden;padding:0;background:#edf1ed}.thumb.active{border-color:var(--green)}.thumb img{width:100%;height:100%;object-fit:cover}.upload-zone{border:1px dashed #b1c6b8;border-radius:7px;text-align:center;padding:16px;cursor:pointer;display:block;font-size:12px;color:var(--green)}.upload-zone input{display:none}.media-actions{display:flex;align-items:center;justify-content:space-between}.danger{color:#b26558}.generation-box{border-top:1px solid var(--line);padding-top:15px;margin-top:22px}.generation-box button{width:100%;margin-bottom:10px;text-align:left}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:15px}.preview-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:7px}.editor-fields>textarea{width:100%;margin-bottom:18px;font-family:monospace;font-size:12px}details{margin:8px 0 20px}summary{cursor:pointer;font-size:12px;color:#657c6c;margin-bottom:12px}#description-frame{width:100%;height:65vh;border:1px solid var(--line);border-radius:6px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#243b30;color:white;padding:14px 24px;border-radius:8px;box-shadow:0 8px 30px #0002;z-index:100;max-width:90vw;white-space:pre-line;line-height:1.8;font-size:13px}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(at 20% 20%,#e5efe7,transparent 60%),#f5f7f3}.login-card{width:min(440px,92vw);background:white;border:1px solid var(--line);border-radius:16px;padding:40px}.login-card .brand-mark{margin-bottom:30px}.login-card h1{font-size:24px}.login-card>p:not(.eyebrow){color:var(--muted);font-size:12px;margin-bottom:28px}.error{color:#b26558;font-size:12px;white-space:pre-line}.success{color:var(--green);font-size:12px}.login form label{margin-top:15px}@media(min-width:1600px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.product-image{height:280px}}@media(max-width:1100px){.sidebar{width:195px;padding:30px 15px}.workspace{margin-left:195px}main{padding:30px 22px}.panel-toolbar{flex-wrap:wrap}.workflow{gap:12px}.editor-body{grid-template-columns:300px 1fr;gap:20px}.stats article{padding:16px}.toolbar-actions{flex-wrap:wrap}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:14px 18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:17px}.brand-mark{width:32px;height:34px;font-size:23px}.workspace-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin-top:15px;gap:4px}.nav{font-size:11px;padding:8px;justify-content:center;margin:0;gap:5px}.nav span{font-size:15px;width:auto}.nav b{display:none}.workspace{margin:0}header{height:55px;padding:0 20px}.tag{display:none}main{padding:25px 16px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:25px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stats strong{font-size:27px}.stats small{font-size:9px}.panel-toolbar{padding:17px}.toolbar-actions{gap:6px}.toolbar-actions button{padding:10px;font-size:10px}.filters{padding:0 15px;flex-wrap:wrap;gap:0}.tabs{gap:18px}.tabs button{font-size:11px}.search{margin-bottom:12px;width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:12px}.product-image{height:190px}.card-body{padding:11px}.card-top{flex-wrap:wrap}.workflow{flex-wrap:wrap;line-height:1.5}.workflow-label{width:100%;text-align:center}.settings-grid{grid-template-columns:1fr}.editor-body{grid-template-columns:1fr}.editor-media{max-width:100%}#media-main{height:300px}.list-row{padding:18px;align-items:flex-start;flex-direction:column}.list-row .row-actions{align-self:flex-end}footer{padding:20px 16px;font-size:8px}.inline-form{flex-direction:column}.login-card{padding:30px}.settings-card{padding:20px}}
.section-heading{margin-top:32px}.analysis-summary{font-size:12px;line-height:1.8;color:#64786b}.analysis-summary:not(:empty){background:#f2f7f3;border:1px solid #e0ebe3;border-radius:7px;padding:14px;margin:12px 0}.generation-box .primary{width:100%;margin-bottom:12px;text-align:left}#provider-form{margin-top:20px}.settings-grid>.settings-card{align-self:start}
/* Production workbench */
.production-tabs{gap:18px;overflow-x:auto;max-width:100%;min-width:0}.filters:has(.production-tabs){flex-wrap:wrap;gap:0}.production-tabs button{font-size:11px}.filters .search{width:300px;margin:8px 0 12px}.library-controls{display:flex;align-items:center;gap:18px;padding:14px 23px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.library-controls .checkbox{margin:0}.library-controls input,.product-table input,.card-select input{accent-color:var(--green);width:16px;height:16px}.view-switch{display:flex;gap:3px;margin-left:auto;background:#f1f5f2;border-radius:6px;padding:3px}.view-switch button{padding:6px 13px;border-radius:4px}.view-switch .selected{background:white;color:var(--green);box-shadow:0 1px 5px #193d2010}.bulk-toolbar{padding:13px 23px;display:flex;align-items:center;gap:12px;background:#eaf4ee;flex-wrap:wrap}.bulk-toolbar strong{margin-right:auto;font-size:12px}.bulk-feedback{padding:14px 23px;white-space:pre-line;font-size:12px;line-height:1.9;max-height:190px;overflow:auto;background:#faf6ec;color:#7c673b}.product-table-wrap{overflow:auto;min-height:240px}.product-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:1000px}.product-table th{background:#f8faf8;color:#809087;font-weight:500;padding:16px 17px;white-space:nowrap}.product-table td{padding:19px 17px;border-top:1px solid var(--line);vertical-align:middle}.product-table tr:hover td{background:#fcfdfb}.product-table th:first-child,.product-table td:first-child{padding-right:0;width:45px}.product-identity{min-width:165px;max-width:210px}.product-identity strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7;font-size:12px;font-weight:600;margin:7px 0}.product-identity small{display:block;color:var(--muted);font-size:10px;line-height:1.8}.source-pair{display:flex;align-items:center;gap:9px;padding:0}.source-pair>span{display:block;position:relative;width:58px;height:83px;background:#f0f2ec;border-radius:5px;overflow:hidden}.source-pair img{width:100%;height:100%;object-fit:contain}.source-pair b{position:absolute;bottom:6px;right:5px;background:#183c2bcc;color:white;border-radius:50%;font-size:10px;padding:5px}.source-pair i{font-style:normal;color:#9bada1}.source-pair em{font-style:normal;color:#8d9c93;font-size:10px;display:grid;height:100%;place-items:center}.production-stages{display:flex;gap:12px;align-items:flex-start;min-width:245px}.stage{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:#94a198;white-space:nowrap}.stage i{font-style:normal;border:1px solid #dfe5e1;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;color:#a6b1a8}.stage.done{color:var(--green)}.stage.done i{background:#e9f5ec;border-color:#a6d2b6;color:var(--green)}.stage small{font-size:9px}.row-note{display:block;color:#96a198;font-size:10px;margin-top:12px}.next-action{font-size:11px;line-height:1.7;color:#8a7964;max-width:170px;max-height:40px;overflow:hidden;margin:8px 0 0;overflow-wrap:anywhere}.product-table .secondary{font-size:11px;white-space:nowrap;padding:9px 12px}.card-select{position:absolute;right:10px;top:10px;background:#fffffff0;border-radius:4px;padding:5px;margin:0;display:block}.product-card .production-stages{min-width:0;gap:7px;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:10px}.product-card .stage{font-size:9px}.product-card .next-action{max-width:100%}.editor-readiness{padding:15px 18px;background:#f3f7f1;border:1px solid #e0e9de;border-radius:8px;line-height:1.8;margin-bottom:24px;display:flex;gap:15px;flex-wrap:wrap;font-size:12px}.editor-readiness strong{color:var(--green)}.editor-readiness small{flex-basis:100%;color:#8a947e}.editor-media>#compare-product{width:100%;margin:8px 0 12px}.compare-dialog{width:min(1200px,96vw)}.comparison-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:28px}.comparison-grid h3{font-size:13px}.comparison-grid video{width:100%;height:440px;object-fit:contain;background:#eff2ed;border-radius:8px}.reference-strip{display:flex;gap:6px;overflow:auto;padding:12px 0}.reference-strip img{width:64px;height:90px;object-fit:contain;background:#f1f3ef;border-radius:4px}.comparison-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.comparison-images figure{margin:0}.comparison-images img{width:100%;height:205px;object-fit:contain;background:#f4f3ee;border-radius:6px}.comparison-images figcaption{font-size:10px;color:var(--muted);margin-top:7px;text-align:center}.preflight-heading{margin:20px 0 12px;font-weight:600}.preflight-row{padding:12px 0;border-top:1px solid var(--line);font-size:12px}.preflight-row>b,.preflight-row>span,.preflight-row>small{display:block;line-height:1.8}.preflight-row>span,.preflight-row>small{color:var(--muted)}#export-check{max-height:40vh;overflow:auto;margin:12px 0}.preflight-row .error{margin:3px 0}@media(max-width:760px){.library-controls{padding:12px;gap:10px}.bulk-toolbar{padding:12px;gap:8px}.bulk-toolbar button{font-size:11px;padding:9px}.comparison-grid{grid-template-columns:1fr}.comparison-grid video{height:300px}.comparison-images img{height:150px}.production-tabs{width:100%;gap:18px}.filters .search{width:100%}.editor-readiness{gap:5px}.product-table{min-width:1000px}.product-card .stage{font-size:8px;gap:5px}.product-card .production-stages{gap:4px}}
/* Unified SVG, typography and adjustable workspace appearance */
:root{--base-size:14px;--ui-radius:10px;--surface:#fff;--field:#fff;--ink:#23312e;--muted:#75837d;--line:#e5eae7;--bg:#f5f7f6;--soft:color-mix(in srgb,var(--green) 9%,white)}html{font-size:var(--base-size);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}body{font-family:"Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:1rem;line-height:1.6;letter-spacing:.01em}.icon{width:18px;height:18px;flex:none;display:inline-block;vertical-align:-.2em;pointer-events:none}button .icon,a .icon{width:16px;height:16px}button.primary,button.secondary,button.dark-button,a.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px}.nav>.icon,.nav>span>.icon{width:20px;height:20px}.nav{font-size:.95rem;font-weight:500;min-height:48px;gap:12px;padding:12px 14px}.nav.active{box-shadow:inset 3px 0 var(--green)}.nav span{display:inline-flex}.nav b{font-variant-numeric:tabular-nums}.sidebar{padding:28px 20px;background:var(--surface)}.brand{font-size:1.4rem;letter-spacing:.02em}.brand-mark{font-family:Georgia,serif}.workspace-label{font-size:.85rem;padding:11px 12px;margin:30px 0 24px}.sidebar-bottom{font-size:.83rem}.sidebar-bottom p{font-size:.8rem}.sidebar-bottom .text-button{padding:8px 0}header{background:var(--surface);height:64px;font-size:.9rem}.breadcrumb{font-size:.86rem}.header-right .tag{font-size:.8rem}main{padding:30px 34px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:2rem;letter-spacing:-.04em;line-height:1.4;margin:6px 0 10px;font-weight:650}.eyebrow{font-size:.7rem;letter-spacing:.2em;color:var(--green);font-weight:650}.muted{font-size:.95rem;line-height:1.8}.stats{gap:16px;margin-bottom:26px}.stats article{padding:19px 23px;border-radius:var(--ui-radius);background:var(--surface)}.stats span{font-size:.88rem}.stats strong{font-size:2.3rem;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;margin:12px 0}.stats small{font-size:.78rem}.stats .stat-accent{background:var(--soft);border-color:color-mix(in srgb,var(--green) 20%,var(--line))}.panel,.list-panel,dialog,.product-card{border-radius:var(--ui-radius);background:var(--surface)}.primary{background:var(--green);color:white;border:1px solid transparent}.primary,.secondary,.dark-button{font-size:.88rem;font-weight:550;line-height:1.5;border-radius:calc(var(--ui-radius)*.65);min-height:39px;padding:9px 14px}.secondary{background:var(--surface);border-color:var(--line)}input,textarea,select{font-size:.93rem;background:var(--field);color:var(--ink);border-color:var(--line);border-radius:calc(var(--ui-radius)*.6);line-height:1.6}label{font-size:.89rem;color:var(--ink);font-weight:500}.panel-title{font-size:1rem}.panel-toolbar{padding:19px 22px}.tabs button,.production-tabs button{font-size:.84rem;padding:17px 0}.tabs{gap:20px}.filters .search{font-size:.87rem;width:310px}.library-controls{font-size:.87rem;background:var(--surface);padding:12px 22px}.library-controls .checkbox{font-size:.87rem}.product-table{font-size:.9rem}.product-table th{font-size:.83rem;padding:14px 16px;font-weight:550;background:color-mix(in srgb,var(--surface) 60%,var(--bg));color:var(--muted)}.product-table td{padding:19px 16px}.product-identity{min-width:185px;max-width:240px}.product-identity strong{font-size:.92rem;font-weight:600;line-height:1.6}.number{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.78rem;letter-spacing:.01em}.product-identity small{font-size:.76rem}.source-pair>span{width:62px;height:90px;border:1px solid var(--line);border-radius:calc(var(--ui-radius)*.6)}.source-pair i .icon{width:14px}.source-pair b{display:flex;align-items:center;justify-content:center}.source-pair b .icon{width:12px;height:12px}.production-stages{gap:13px;min-width:275px}.stage{font-size:.76rem;gap:7px}.stage i{width:26px;height:26px}.stage i .icon{width:14px;height:14px}.stage small{font-size:.7rem}.row-note{font-size:.75rem}.badge{font-size:.75rem;padding:4px 8px;font-weight:500}.next-action{font-size:.8rem;line-height:1.7;max-height:44px;max-width:210px}.product-table .secondary{font-size:.82rem;padding:8px 11px}.card-title{font-size:.94rem;height:48px}.card-footer{font-size:.76rem}.note{font-size:.85rem;line-height:1.8}.product-card .stage{font-size:.73rem}.product-card .production-stages{gap:8px}.product-card .next-action{font-size:.8rem}.toolbar-actions select{font-size:.88rem}.product-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.editor-dialog{width:min(1180px,96vw)}.editor-body{grid-template-columns:390px 1fr;gap:34px}.editor-fields>textarea{font-size:.9rem}.thumb{flex-basis:60px;width:60px;height:72px}.settings-card{padding:26px}.settings-card h2,.dialog-top h2{font-size:1.2rem;font-weight:600;letter-spacing:-.02em}.settings-card h2{display:flex;align-items:center;gap:10px}.system-grid{display:grid;grid-template-columns:minmax(360px,1.15fr) minmax(320px,1fr);gap:24px;max-width:1180px}.system-grid>aside{display:flex;flex-direction:column;gap:24px}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.color-presets{display:flex;gap:12px;margin:-6px 0 24px}.color-presets button{width:28px;height:28px;border:3px solid var(--surface);outline:1px solid var(--line);border-radius:50%}.appearance-preview{background:linear-gradient(135deg,var(--surface),var(--soft));color:var(--ink)}.appearance-preview>p:not(.eyebrow){font-size:.92rem;color:var(--muted);line-height:1.8}.preview-sample{background:var(--surface);border:1px solid var(--line);border-radius:var(--ui-radius);padding:18px;display:flex;align-items:center;gap:13px;margin:24px 0}.preview-sample>.icon{width:30px;height:30px;color:var(--green)}.preview-sample small{display:block;font-size:.78rem;color:var(--muted);margin-top:3px}.preview-sample .badge{margin-left:auto}.login-card{width:min(460px,94vw);border-radius:var(--ui-radius);box-shadow:0 20px 60px #23432a0b}.login-card h1{font-size:1.8rem}.login-card>p:not(.eyebrow){font-size:.9rem}.list-row h3{font-size:1rem}.list-row p{font-size:.86rem}.workflow{font-size:.8rem}.workflow .icon{width:14px;height:14px}.row-actions .text-button{font-size:.85rem}.close .icon{width:24px;height:24px}.bulk-toolbar strong{font-size:.88rem}.thumb>.icon{width:22px;height:22px}.preflight-row{font-size:.9rem}.editor-readiness{font-size:.9rem}.comparison-grid h3{font-size:1rem}.comparison-images figcaption{font-size:.8rem}.search{background:var(--field)}.product-table tr:hover td{background:var(--soft)}.stage.done i{background:var(--soft);border-color:color-mix(in srgb,var(--green) 35%,var(--surface));color:var(--green)}.stage.done{color:var(--green)}.badge.approved,.badge.succeeded{background:var(--soft);color:var(--green)}.badge.pending,.badge.needs_review,.badge.queued,.badge.running{background:#fbf2df;color:#826016}.success{color:var(--green)}.view-switch{background:var(--bg)}.view-switch .selected{background:var(--surface)}.connection{border-color:var(--line)}.panel,.stats article,.list-panel{box-shadow:0 2px 6px #20352b03}
html[data-font=sans] body{font-family:"Arial","Noto Sans CJK SC","Microsoft YaHei",sans-serif}html[data-font=serif] body{font-family:"Noto Serif CJK SC","Songti SC","SimSun",Georgia,serif}html[data-density=compact] .product-table td{padding-top:10px;padding-bottom:10px}html[data-density=compact] .source-pair>span{height:67px;width:48px}html[data-density=compact] .stats article{padding:14px 20px}html[data-density=compact] main{padding-top:22px}html[data-density=compact] .page-heading{margin-bottom:18px}html[data-density=compact] .panel-toolbar{padding:12px 20px}html[data-motion=reduced] *,html[data-motion=reduced] *:before,html[data-motion=reduced] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-theme=dark]{color-scheme:dark;--surface:#202b28;--field:#26332e;--ink:#e1ebe6;--muted:#a2b3a9;--line:#35463d;--bg:#17211d;--soft:color-mix(in srgb,var(--green) 22%,#202b28)}html[data-theme=dark] .dark-button{background:#d5e7dc;color:#1b3025}html[data-theme=dark] .sidebar,html[data-theme=dark] header{background:var(--surface)}html[data-theme=dark] .workspace-label,html[data-theme=dark] .filters,html[data-theme=dark] .generation-box,html[data-theme=dark] .card-footer{border-color:var(--line)}html[data-theme=dark] .source-badge{background:#23352ce8;color:var(--ink)}html[data-theme=dark] .badge.pending,html[data-theme=dark] .badge.needs_review{background:#463b20;color:#efd398}html[data-theme=dark] .editor-readiness,html[data-theme=dark] .analysis-summary,html[data-theme=dark] .bulk-toolbar{background:var(--soft);border-color:var(--line);color:var(--ink)}html[data-theme=dark] .login{background:var(--bg)}html[data-theme=dark] .login-card{background:var(--surface)}html[data-theme=dark] .next-action{color:#d4bfa0}html[data-theme=dark] .badge.draft{background:#33433a;color:#c1d0c6}html[data-theme=dark] .avatar,html[data-theme=dark] .nav b{background:var(--field);color:var(--ink)}html[data-theme=dark] .product-card{background:var(--surface)}html[data-theme=dark] .empty h3{color:var(--ink)}@media(max-width:1100px){.system-grid{grid-template-columns:1fr}.editor-body{grid-template-columns:320px 1fr}.production-stages{min-width:250px;gap:10px}main{padding:26px 22px}.stats article{padding:16px}.stats small{font-size:.74rem}.product-identity{min-width:170px}.sidebar{padding:25px 15px}.nav{font-size:.88rem}}@media(max-width:760px){.sidebar{padding:16px}.sidebar nav{overflow-x:auto;justify-content:space-between}.nav{min-width:64px;flex-shrink:0;flex-direction:column;gap:5px;min-height:56px;font-size:.73rem;padding:7px}.nav.active{box-shadow:inset 0 -2px var(--green)}main{padding:22px 14px}.page-heading h1{font-size:1.65rem}.page-heading .muted{font-size:.86rem}.stats strong{font-size:1.9rem}.stats article{padding:16px}.stats span{font-size:.82rem}.stats small{font-size:.7rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editor-body{grid-template-columns:1fr}.system-grid{grid-template-columns:minmax(0,1fr)}.settings-card{padding:20px}.two-cols{gap:12px}.product-card .production-stages{min-width:0;gap:3px}.product-card .stage{font-size:.6rem}.product-card .stage i{height:20px;width:20px}.toolbar-actions{width:100%}.product-card .card-footer{flex-wrap:wrap;gap:5px}.product-card .number{font-size:.66rem}.card-title{font-size:.85rem}.library-controls{padding:12px}.settings-actions button{flex:1}.product-image{height:220px}.sidebar .brand{font-size:1.2rem}.sidebar .brand-mark{width:32px;height:34px}.comparison-grid{grid-template-columns:1fr}.product-table{min-width:1080px}}
.brand-logo{width:31px;height:31px}.brand-mark{display:inline-grid;place-items:center}.sidebar .brand-mark{flex-shrink:0}html[data-theme=dark] .card-select{background:var(--surface)}html[data-theme=dark] .badge.failed{background:#472f2b;color:#f1b2a8}html[data-theme=dark] .badge.queued,html[data-theme=dark] .badge.running{background:#463b20;color:#efd398}html[data-theme=dark] .bulk-feedback{background:#3c3526;color:#e4cfa0}html[data-theme=dark] .nav{color:var(--muted)}html[data-theme=dark] .product-image,html[data-theme=dark] #media-main{background:var(--field)}.settings-actions .primary{width:auto;margin-top:0}.toolbar-actions .icon{width:15px;height:15px}
:root{--accent-ink:var(--green)}html[data-theme=dark]{--accent-ink:color-mix(in srgb,var(--green) 55%,white)}.text-button,.eyebrow,.nav.active,.stage.done,.badge.approved,.badge.succeeded,.success{color:var(--accent-ink)}.primary:hover{background:color-mix(in srgb,var(--green) 86%,black)}.workspace-label span,.tabs .selected{color:var(--accent-ink)}input[type=color]{height:43px;padding:4px;cursor:pointer}input[type=range],input[type=checkbox]{accent-color:var(--green)}.stat-icon{float:right;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--soft);color:var(--accent-ink);margin-top:-3px}.stats .stat-icon .icon{width:18px;height:18px}.appearance-preview>.secondary{margin-left:8px}
@media(max-width:760px){.sidebar nav{gap:3px;overflow:visible}.sidebar nav .nav{width:auto;flex:1 1 0;min-width:0;padding:8px 2px;font-size:.72rem;white-space:nowrap}.sidebar nav .nav .icon{width:19px;height:19px}}
.brand-mark:has(>.brand-logo){background:transparent;border-radius:0}.brand-mark>.brand-logo{width:100%;height:100%;object-fit:contain}.brand small{font-size:7px;letter-spacing:1.25px;white-space:nowrap}.login-card>.brand-mark{width:62px;height:62px;margin-bottom:22px}.login-card .brand-tagline{margin-top:-8px;margin-bottom:25px;font-size:.94rem}.login-card .eyebrow{font-size:.65rem;letter-spacing:.17em}@media(max-width:760px){.brand small{font-size:6.5px;letter-spacing:1px}}
/* Production operations */
.issue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:30px}.issue-card{padding:22px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--ui-radius);transition:border-color .15s}.issue-card:hover{border-color:var(--green)}.issue-card>span{font-size:.9rem;color:var(--muted)}.issue-card strong{display:block;font-size:2rem;font-weight:600;line-height:1.5;margin:9px 0;color:var(--ink);font-variant-numeric:tabular-nums}.issue-card small{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--accent-ink)}.section-toolbar{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:26px 0 16px}.section-toolbar h2{font-size:1.15rem;white-space:nowrap;margin:0}.section-toolbar .note{margin:0;text-align:right}.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.batch-card{text-align:left;padding:21px 23px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--surface)}.batch-card>div:first-child{display:flex;justify-content:space-between;gap:15px}.batch-card strong{font-size:.95rem;overflow-wrap:anywhere}.batch-card span,.batch-card p{font-size:.84rem;color:var(--muted)}.batch-card small{font-size:.78rem;color:var(--muted)}.batch-track{margin:18px 0 13px}.batch-track progress{appearance:none;width:100%;height:6px;border:0;border-radius:6px;background:var(--line);overflow:hidden}.batch-track progress::-webkit-progress-bar{background:var(--line)}.batch-track progress::-webkit-progress-value{background:var(--green)}.batch-track progress::-moz-progress-bar{background:var(--green)}.activity-row{display:flex;align-items:flex-start;gap:13px;padding:17px 22px;border-bottom:1px solid var(--line)}.activity-row:last-child{border-bottom:0}.activity-dot{height:8px;width:8px;flex:none;border-radius:50%;background:var(--green);margin-top:7px}.activity-row b{font-size:.87rem;font-weight:550}.activity-row p{margin:4px 0 0;color:var(--muted);font-size:.8rem;line-height:1.7;overflow-wrap:anywhere}.activity-row small{margin-left:auto;color:var(--muted);font-size:.74rem;white-space:nowrap}.filters:has(#quality-filter){gap:8px 12px;padding-bottom:12px}.filters:has(#quality-filter) .production-tabs{flex:1 0 100%;margin-bottom:4px}.filters:has(#quality-filter) .search{margin:0;width:310px;margin-left:auto}#quality-filter{font-size:.84rem;min-width:170px;padding:8px 11px}.bulk-toolbar{gap:9px}.bulk-toolbar button{font-size:.82rem}.bulk-edit-field{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center;margin:14px 0}.bulk-edit-field .checkbox{margin:0}.bulk-edit-field input[disabled]{background:var(--bg);opacity:.6}.bulk-price-note{margin:16px 0}.preflight-row>p{overflow-wrap:anywhere;font-size:.82rem;color:var(--muted)}#intake-result{max-height:60vh;overflow:auto}#recycle-list{max-height:60vh;overflow:auto}.toolbar-actions #open-recycle{white-space:nowrap}#recycle-count{font-size:.76rem;background:var(--bg);padding:1px 5px;border-radius:4px}#recycle-product{margin:8px 0}#view-jobs .row-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:1000px){.toolbar-actions{flex-wrap:wrap}.activity-row{flex-wrap:wrap}.activity-row small{margin-left:21px}.section-toolbar{flex-direction:column;gap:7px}.section-toolbar .note{text-align:left}.batch-grid{grid-template-columns:1fr}}@media(max-width:760px){.issue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.issue-card{padding:16px}.issue-card strong{font-size:1.8rem}.activity-row{padding:15px}.bulk-edit-field{grid-template-columns:95px 1fr;gap:10px}.toolbar-actions{width:100%}.filters:has(#quality-filter) .search{width:100%;margin:0}#quality-filter{width:100%}.batch-card{padding:18px}.sidebar nav .nav{font-size:.66rem;padding-left:0;padding-right:0}.batch-card>div:first-child{align-items:flex-start}.batch-card span{white-space:nowrap}}
/* Model connection and accountable usage */
.settings-grid:has(.provider-card){grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr)}.provider-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.provider-heading>.icon{width:30px;height:30px;color:var(--accent-ink)}.provider-heading .eyebrow{margin:0 0 8px}.provider-heading h2{margin:0 0 15px}.provider-card #provider-form{margin-top:22px}.provider-card .settings-actions .primary{width:auto}.transport-notice{padding:14px 16px;border:1px solid #e8d6ad;background:#fcf6e9;border-radius:var(--ui-radius);color:#7b6332;line-height:1.8;margin-bottom:15px}.transport-notice p{margin:6px 0}.model-plan,.model-info{border:1px solid var(--line);background:var(--bg);border-radius:var(--ui-radius);padding:16px;margin:-3px 0 22px;line-height:1.8;font-size:.86rem}.model-plan>p{margin:0}.model-info p{margin:7px 0;color:var(--ink)}.model-info small{display:block;color:var(--muted)}.model-info>b{color:var(--accent-ink);font-size:.91rem}.model-price{font-size:.8rem;border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-variant-numeric:tabular-nums;color:var(--ink)}.plan-stages{display:flex;flex-direction:column;gap:9px;margin:14px 0}.plan-stages>div{display:flex;align-items:baseline;justify-content:space-between;gap:18px}.plan-stages span{color:var(--muted);white-space:nowrap}.plan-stages strong{font-family:Consolas,monospace;font-weight:500;font-size:.8rem;overflow-wrap:anywhere;text-align:right}.cost-filters{padding:19px 22px;display:flex;gap:18px;flex-wrap:wrap;align-items:flex-end;margin-bottom:22px}.cost-filters label{margin:0;min-width:145px;flex:1}.cost-filters .note{margin:0 0 6px}.cost-stats strong{font-size:1.95rem;overflow-wrap:anywhere}.cost-stats small{display:block;line-height:1.7}.cost-coverage{border:1px solid var(--line);border-radius:var(--ui-radius);padding:16px 21px;background:var(--soft);font-size:.85rem;line-height:1.8;margin-bottom:24px}.cost-coverage b{color:var(--accent-ink);margin-right:22px}.cost-coverage span{color:var(--muted)}.cost-coverage p{margin:5px 0 0;color:var(--muted)}.cost-panels{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cost-panels article{align-self:start}.cost-panels h2{margin-top:0}#cost-trend,#cost-comparison{max-height:380px;overflow:auto}.trend-row{margin:16px 0}.trend-row>div{display:flex;justify-content:space-between;gap:12px;font-size:.84rem}.trend-row span,.trend-row small{color:var(--muted);font-size:.77rem}.trend-row progress{width:100%;height:6px;appearance:none;border:0;border-radius:5px;overflow:hidden;margin:9px 0 3px}.trend-row progress::-webkit-progress-bar{background:var(--line)}.trend-row progress::-webkit-progress-value{background:var(--green)}.trend-row progress::-moz-progress-bar{background:var(--green)}.comparison-model{padding:16px 0;border-bottom:1px solid var(--line)}.comparison-model b{font-size:.9rem;overflow-wrap:anywhere}.comparison-model strong{float:right;font-size:1rem;color:var(--accent-ink);font-variant-numeric:tabular-nums}.comparison-model p{font-size:.8rem;color:var(--muted);margin:7px 0 4px}.comparison-model small{font-size:.77rem;color:var(--muted);line-height:1.7}.cost-records{overflow:hidden}#cost-records{overflow:auto}.cost-table{width:100%;border-collapse:collapse;min-width:1000px;text-align:left;font-size:.84rem}.cost-table th{padding:15px 18px;background:var(--bg);color:var(--muted);font-size:.8rem;font-weight:500;white-space:nowrap}.cost-table td{padding:17px 18px;vertical-align:top;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.cost-table td small{display:block;max-width:220px;font-size:.75rem;color:var(--muted);line-height:1.8;margin-top:5px;overflow-wrap:anywhere}.cost-pagination{display:flex;align-items:center;justify-content:flex-end;gap:17px;padding:15px 20px;border-top:1px solid var(--line);font-size:.85rem}.call-detail{font-size:.86rem;line-height:1.8}.call-detail dt{font-weight:600;margin:18px 0 5px}.call-detail dd{margin:0;overflow-wrap:anywhere;color:var(--muted)}.call-detail pre{font: .8rem/1.8 Consolas,monospace;white-space:pre-wrap;background:var(--bg);border-radius:var(--ui-radius);padding:14px}.provider-card label input[type=password]{font-family:Consolas,monospace}.provider-card input:disabled{background:var(--bg);opacity:.85}.cost-stats{margin-top:22px}html[data-theme=dark] .transport-notice{background:#423a28;border-color:#605131;color:#efd7a9}@media(max-width:1100px){.cost-panels{grid-template-columns:1fr}.settings-grid:has(.provider-card){grid-template-columns:1fr}.cost-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-filters .note{width:100%}}@media(max-width:760px){.cost-filters{padding:16px;gap:14px}.cost-filters label{min-width:calc(50% - 14px)}.cost-stats strong{font-size:1.5rem}.cost-coverage{padding:15px}.cost-coverage span{display:block}.plan-stages>div{gap:12px}.plan-stages strong{font-size:.73rem}.model-price{font-size:.75rem}.provider-heading h2{font-size:1.1rem}.sidebar nav .nav{font-size:.61rem}.sidebar nav{gap:0}.cost-pagination{gap:12px;padding:12px}.provider-card .settings-actions button{width:auto;flex:1}.cost-stats small{font-size:.68rem}.cost-filters select{font-size:.83rem}.comparison-model strong{float:none;display:block;margin:7px 0}}

/* Separate catalog outputs from original evidence. */
.media-preview-label{font-size:.85rem;font-weight:600;color:var(--green);margin-bottom:8px}.media-groups{margin:18px 0}.media-group{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.media-group h3{display:flex;justify-content:space-between;margin:0 0 10px;font-size:.94rem}.media-group h3 small{font-weight:400;color:var(--muted)}.media-thumb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.media-thumb-grid .thumb{position:relative;width:100%;height:104px;min-width:0;display:flex;align-items:center;justify-content:center;padding:0 0 24px;background:var(--bg)}.media-thumb-grid .thumb img{height:100%;object-fit:contain}.thumb-caption{position:absolute;bottom:0;left:0;right:0;height:24px;padding:3px 2px;background:var(--surface);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}.thumb.active .thumb-caption{color:var(--green);font-weight:600}.media-empty{grid-column:1/-1;margin:0;padding:15px;background:var(--bg);font-size:.82rem;color:var(--muted);border-radius:6px}.media-history{padding:12px;background:var(--bg);border-radius:8px;margin-top:16px}.media-history summary{margin-bottom:0}.media-history .media-group{border-top:0;margin-top:8px}.media-actions{gap:8px;flex-wrap:wrap}#media-main{height:410px}@media(max-width:760px){.media-thumb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.media-thumb-grid .thumb{height:96px}#media-main{height:350px}.editor-body{grid-template-columns:minmax(0,1fr)}.editor-fields{min-width:0}}

.hero-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}.hero-actions:has(button.hidden):has(#reset-gallery.hidden){display:none}.hero-actions button{width:100%}

/* Site-native confirmations and dismissible notifications. */
.app-confirm{width:min(480px,calc(100vw - 32px));padding:26px;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 90px #132a2a36;max-height:85dvh;overflow:auto;background:var(--surface)}.app-confirm::backdrop{background:#14271e70;backdrop-filter:blur(4px)}.confirm-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.confirm-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:var(--green);background:var(--soft)}.confirm-icon .icon{width:24px;height:24px}.confirm-heading>button{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--muted)}.confirm-heading>button:hover{background:var(--bg)}.app-confirm .eyebrow{margin:0 0 7px;font-size:.72rem;letter-spacing:.1em}.app-confirm h2{margin:0 0 13px;font-size:1.35rem;line-height:1.5}.app-confirm #confirm-message{font-size:.96rem;line-height:1.9;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.confirm-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.confirm-footer button{min-width:110px}.app-confirm.is-danger .confirm-icon{color:#b34b3e;background:#fbefeb}.app-confirm.is-danger #confirm-accept{background:#b34b3e}.app-confirm button:focus-visible{outline:3px solid color-mix(in srgb,var(--green) 35%,transparent);outline-offset:3px}.toast{display:flex;align-items:center;gap:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;padding:14px 14px 14px 17px;box-shadow:0 12px 40px #17342b25;z-index:200;max-width:min(620px,calc(100vw - 32px));width:max-content;font-size:.92rem;pointer-events:auto}.toast.hidden{display:none}.toast #toast-icon{color:var(--green);display:flex}.toast #toast-message{white-space:pre-line;overflow-wrap:anywhere;min-width:0}.toast #toast-close{flex:none;align-self:flex-start;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:4px}.toast #toast-close:hover{background:var(--bg)}.toast[data-type=error]{border-left-color:#b34b3e}.toast[data-type=error] #toast-icon{color:#b34b3e}@media(max-width:480px){.app-confirm{padding:22px}.confirm-footer{display:grid;grid-template-columns:1fr 1fr}.confirm-footer button{min-width:0;padding:10px}.toast{bottom:16px}}

.toast[popover]{position:fixed;inset:auto;bottom:25px;left:50%;margin:0;transform:translateX(-50%)}.toast::backdrop{background:transparent;pointer-events:none}@media(max-width:480px){.toast[popover]{bottom:16px}}

.generation-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.generation-wide{grid-column:1/-1}.generation-slot-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.generation-slot{padding:22px;min-width:0}.generation-slot-heading{display:flex;align-items:center;gap:14px;margin-bottom:16px}.generation-slot-heading>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:650;font-size:1.2rem}.generation-slot-heading label{flex:1;margin:0}.generation-layout-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.generation-layout-preview>span{aspect-ratio:var(--generation-ratio,9/16);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:7px;color:var(--green)}.generation-layout-preview small{font-size:.72rem}.generation-save-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;padding:18px 22px;gap:18px;z-index:2;box-shadow:0 4px 25px #17352b12}.generation-save-bar>div{display:flex;gap:10px;flex:none}.generation-slot textarea{font-size:.85rem}.generation-slot select:disabled{opacity:.8}#generation-form textarea{resize:vertical;max-width:100%}@media(max-width:850px){.generation-settings-grid,.generation-slot-cards{grid-template-columns:minmax(0,1fr)}.generation-save-bar{position:static;align-items:stretch;flex-direction:column}.generation-save-bar>div{flex-wrap:wrap}.generation-wide{grid-column:auto}}

@keyframes studio-working-spin{to{transform:rotate(360deg)}}.stage.working{color:var(--green);font-weight:600}.stage.working i{border-color:color-mix(in srgb,var(--green) 40%,var(--line));background:var(--soft);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 6%,transparent)}.stage.working i .icon,.button-working>.icon{animation:studio-working-spin 1s linear infinite;transform-origin:center}.stage.working small{font-weight:400;color:var(--green)}.button-working>.icon{width:17px;height:17px}.ui-update-banner{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:12px 34px;background:var(--soft);border-bottom:1px solid var(--line);color:var(--ink);font-size:.87rem}.ui-update-banner.hidden{display:none}.ui-update-banner button{flex:none}@media(max-width:760px){.ui-update-banner{padding:12px 16px;align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.stage.working i .icon,.button-working>.icon{animation:none;opacity:.8}}html[data-motion=reduced] .stage.working i .icon{animation:none}
