.folder-art{display:block;width:100%;height:auto;object-fit:contain;background:#fff}.folder-art.light-asset,.asset-choice .light-asset{background:var(--brand)}.folder-asset-row{flex-wrap:wrap}.tile-caption{overflow-wrap:anywhere}
.content-filters{display:flex;flex:1;min-width:0;flex-wrap:wrap;gap:6px}.content-filter-more{border:0;appearance:auto;max-width:145px;font-family:inherit}.content-filter-more.active{background:#fff;color:#686f7b}.field-group select.more-types{width:auto;margin:0;padding:7px 10px;background:#e2e5eb;color:#8a929f;border:0;border-radius:20px;font-size:11px;line-height:1.3;min-height:29px;max-width:150px}.field-group select.more-types.selected{background:var(--orange);color:#fff}.more-types option,.content-filter-more option{background:#fff;color:var(--ink)}
.filter-row:has(.content-filters){height:auto;min-height:64px;padding-bottom:22px}
.brand-categories{display:flex;flex:1;min-width:0;flex-wrap:wrap;gap:7px}.brand-filter-row{height:auto!important;min-height:64px;padding-bottom:22px}.brand-categories .filter{white-space:nowrap;flex:none}.filter-count{font-size:10px;color:#a2aab6;font-variant-numeric:tabular-nums}.filter.active .filter-count{color:#7c8593}.brand-filter-row .filter-end{flex-shrink:0;white-space:nowrap}
@media(max-width:640px){.brand-filter-row{min-height:57px;padding-bottom:18px}.brand-categories{gap:5px}.brand-categories .filter{padding:7px 8px}.brand-categories .filter-count{font-size:9px}}
@font-face{font-family:StudioInter;src:url('assets/zoowork-brand/inter.woff2') format('woff2');font-display:swap}
@font-face{font-family:BrandDidot;src:url('assets/zoowork-brand/didot.woff2') format('woff2');font-display:swap}
:root{--bg:#eef0f4;--paper:#fff;--ink:#353941;--muted:#858d9b;--quiet:#b7bdc7;--line:#d5d9e1;--orange:#ff6538;--brand:#0e0522;--radius:6px;--gutter:24px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:4px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ff653866;outline-offset:2px}button:disabled{opacity:.45;cursor:wait}button:active{transform:translateY(1px)}svg{width:22px;height:22px;display:block;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}img{display:block;max-width:100%}p,h1,h2,h3{margin:0;text-wrap:pretty}button,a{transition:color .16s,background .16s,box-shadow .16s,transform .16s}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rail{position:fixed;inset:142px auto 36px 0;width:80px;display:flex;align-items:center;flex-direction:column;z-index:3}.rail-brand{display:flex;align-items:center;gap:11px;writing-mode:vertical-rl;font-size:19px;font-weight:600;letter-spacing:-.5px;color:#7c8595}.rail-brand img{width:23px;height:23px;object-fit:contain;opacity:.65;transform:rotate(90deg)}.rail-tools{margin-top:auto;display:flex;flex-direction:column;gap:15px}.icon-button{width:30px;height:30px;display:grid;place-items:center;color:#7f8998;border-radius:50%}.icon-button:hover{background:#fff9;color:#4d5664}.create-icon{color:#cf9d84}.rail-tools svg{width:23px;height:23px}.top-nav{position:absolute;top:0;right:80px;height:48px;display:flex;align-items:center;gap:27px}.top-nav nav{height:100%;display:flex;gap:33px}.nav-item{position:relative;font-size:18px;color:#818897;padding:9px 0 10px}.nav-item:hover{color:#3d4148}.nav-item.active{color:#3d4148}.nav-item.active:before{content:"";height:6px;position:absolute;left:-8px;right:-8px;top:0;border-radius:0 0 14px 14px;background:var(--orange)}.new-button{display:flex;align-items:center;gap:5px;background:#fff;border-radius:20px;font-size:12px;color:#949ba7;padding:4px 12px 4px 5px}.new-button img{width:21px;height:21px;object-fit:contain}.new-button:hover{box-shadow:0 3px 14px #858d9b26;color:#555d6a}
main{margin:0 80px;padding-top:38px}.search-wrap{height:106px;display:flex;align-items:center;border-bottom:1px solid var(--line);position:relative}.search-wrap input{display:block;width:100%;border:0;background:none;outline:none!important;box-shadow:none;font-family:Baskerville,"Baskerville Old Face",Georgia,"Times New Roman",serif;font-style:italic;font-size:64px;letter-spacing:-1.9px;color:#707887;padding:0 40px 8px 0;line-height:1.2;border-radius:0}.search-wrap input::placeholder{color:#b8bec8;opacity:1}.search-wrap input::-webkit-search-cancel-button{display:none}.clear-search{position:absolute;right:0}.filter-row{height:64px;display:flex;align-items:flex-start;gap:9px;padding-top:10px}.filter{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:5px;font-size:13px;line-height:16px;color:#8a919f}.filter.active{background:white;color:#686f7b}.filter:hover{color:#535b68;background:#ffffff65}.filter-dot{width:12px;height:12px;border:2.5px solid #e9a38b;border-radius:50%}.filter-end{margin-left:auto;color:#969dab;font-size:12px;padding-top:9px}.masonry{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gutter);align-items:start;padding-bottom:50px}.masonry-column{display:flex;flex-direction:column;gap:20px;min-width:0}.tile{position:relative;width:100%;text-align:left;display:block;border-radius:var(--radius);padding:0;break-inside:avoid}.tile:active{transform:none}.tile:hover .tile-surface{box-shadow:0 8px 24px #7c859523;transform:translateY(-2px)}.tile-surface{overflow:hidden;border-radius:var(--radius);position:relative;transition:transform .18s,box-shadow .18s;background:#fff}.tile-caption{text-align:center;font-size:12px;color:#8b93a2;padding-top:10px;line-height:1.3;display:flex;justify-content:center;gap:7px}.tile-caption .caption-kind{display:none}.tile-overlay{position:absolute;right:10px;top:10px;opacity:0;background:#ffffffeb;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#818998;transition:opacity .16s;box-shadow:0 2px 6px #0001}.tile:hover .tile-overlay,.tile:focus-visible .tile-overlay{opacity:1}.tile-overlay svg{width:16px;height:16px}.compose-card{background:#fff;height:200px;padding:20px;border-radius:var(--radius);display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#bd846a;line-height:1.5}.compose-card textarea{width:100%;flex:1;min-height:70px;resize:none;border:0;outline:0;font-size:14px;line-height:1.65;background:none;padding:6px 0;color:#636d7a}.compose-card textarea::placeholder{color:#8b929d}.compose-actions{width:100%;display:flex;align-items:center;justify-content:space-between;opacity:0;transition:opacity .16s}.compose-card:hover .compose-actions,.compose-card:focus-within .compose-actions{opacity:1}.compose-actions small{color:#a1a8b3;font-size:10px}.compose-actions button{width:28px;height:28px;display:grid;place-items:center;background:var(--orange);color:white;border-radius:50%}.compose-actions svg{width:16px;height:16px}.image-art{width:100%;height:auto}.portrait-art{aspect-ratio:3/4;object-fit:cover}.wide-art{aspect-ratio:16/9;object-fit:cover}.square-art{aspect-ratio:1;object-fit:cover}.note-art{padding:20px;background:white;min-height:158px;display:flex;flex-direction:column;justify-content:center}.note-art p{font-size:17px;line-height:1.65;font-weight:400}.note-art mark{background:#fff6a0;color:#363735;padding:2px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.note-art small{font-size:12px;margin-top:10px;color:#838a97}.typography-art{background:var(--brand);padding:25px 23px 22px;color:#fff;aspect-ratio:16/9;display:flex;flex-direction:column;justify-content:space-between}.typography-art img{width:82px;filter:brightness(0) invert(1)}.typography-art h2{font-family:BrandDidot,Georgia,serif;font-size:clamp(21px,2.1vw,34px);line-height:1.1;font-weight:400;letter-spacing:-.5px}.typography-art small{font-size:8px;color:#ccc7d4;letter-spacing:.4px}.editorial-art{background:white}.editorial-art>div{padding:21px 20px 23px;min-height:160px;display:flex;flex-direction:column;justify-content:space-between}.editorial-art .book-icon{color:#a4acb7}.editorial-art h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-weight:400;font-size:24px;line-height:1.3;letter-spacing:-.4px}.editorial-art>img{width:100%;aspect-ratio:16/9;object-fit:cover}.symbol-art{padding:20px;background:white;aspect-ratio:3/4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:30px}.symbol-art>img{width:76%;aspect-ratio:1;object-fit:contain}.symbol-art small{font-family:StudioInter,Arial,sans-serif;letter-spacing:3px;font-size:12px;color:#51485e}.symbol-art .asset-label{align-self:flex-end;color:#89919e;font-size:10px;letter-spacing:.4px}.color-art{background:var(--brand);min-height:250px;padding:24px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}.color-art h2{font-family:BrandDidot,Georgia,serif;font-size:44px;font-weight:400}.color-art .color-line{display:flex;gap:7px}.color-art .color-line i{width:25px;height:25px;border-radius:50%;border:1px solid #fff4}.color-art small{font-size:11px;letter-spacing:.6px;color:#d7d1e2}.blank-new{aspect-ratio:4/5;display:grid;place-items:center;background:#fff;color:#a0a7b2}.template-card{background:#fff;aspect-ratio:4/5;padding:25px;display:flex;flex-direction:column;justify-content:space-between}.template-card img{width:85px}.template-card h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:32px;line-height:1.2;font-weight:400}.template-card small{color:#8c939e;font-size:10px;line-height:1.5}.template-card.dark{background:var(--brand);color:#fff}.template-card.dark img{filter:brightness(0) invert(1)}.template-card.photo{background:linear-gradient(0deg,#0e0522c9,#0e052210),url('assets/zoowork-brand/human-ai.png') center/cover;color:#fff}.template-card.photo img{filter:brightness(0) invert(1)}.template-card.photo small{color:#d8d7e1}.empty-state{text-align:center;padding:100px 0;color:#8a929f}.empty-state>span{display:grid;place-items:center;margin:0 auto 20px}.empty-state svg{width:32px;height:32px}.empty-state h1{font-size:18px;font-weight:400}.empty-state p{margin:12px 0 24px;font-size:14px}
.detail-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:48px;border:0;background:transparent;overflow:hidden;color:var(--ink)}.detail-dialog::backdrop{background:#141519d9;backdrop-filter:blur(3px)}.detail-layout{display:flex;width:100%;height:100%;gap:28px}.close-detail{position:absolute!important;right:13px;top:8px;color:#e1e3e7!important;background:#ffffff16!important;z-index:5}.round-button{width:33px;height:33px;background:#fff;border-radius:50%;display:inline-grid;place-items:center;color:#9aa2af}.round-button:hover{background:#fff;box-shadow:0 3px 10px #0002;color:#565e6b}.round-button svg{width:18px;height:18px}.preview-area{flex:1;min-width:0;position:relative;border-radius:7px;background:#1a1327;display:flex;flex-direction:column;padding:18px 22px 15px;overflow:hidden;isolation:isolate}.preview-area:before{content:"";position:absolute;inset:0;background:url('assets/zoowork-brand/canvas.webp') center/cover;filter:blur(90px);opacity:.14;z-index:-1}.preview-top{display:flex;justify-content:space-between;gap:10px;color:#ffffff60;font-size:11px;padding-bottom:10px}.preview-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.preview-stage>img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:3px;box-shadow:0 5px 30px #0003}.preview-bottom{height:36px;display:flex;align-items:center;gap:10px;color:#ffffff60;font-size:10px;padding-top:10px}.swatches{display:flex;padding-right:6px}.swatches span{background:var(--swatch);width:22px;height:22px;border-radius:50%;border:1px solid #ffffff90;margin-right:-6px}.brand-lock{display:flex;gap:5px;align-items:center}.brand-lock svg{width:12px;height:12px}.preview-mode{margin-left:auto;display:flex;align-items:center;gap:6px;color:#ffffff70;font-size:10px}.preview-mode svg{width:13px;height:13px}.detail-panel{width:360px;flex:none;background:var(--bg);border-radius:7px;box-shadow:0 10px 50px #0002;display:flex;flex-direction:column;overflow:hidden}.panel-heading{padding:22px 22px 17px}.panel-heading h1{font-size:24px;font-weight:400;letter-spacing:-.6px;line-height:1.2}.panel-heading>span{display:block;color:#939baa;font-size:11px;margin-top:8px}.panel-tabs{margin:0 20px;display:flex;border-bottom:1px solid var(--line);flex-shrink:0;gap:15px}.panel-tabs button{font-size:12px;color:#929aa7;padding:10px 5px 13px;position:relative;flex:1}.panel-tabs button[aria-selected="true"]{color:#c37f60}.panel-tabs button[aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:5px;right:5px;height:2px;background:var(--orange)}.panel-scroll{padding:22px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#c9ced7 transparent}.field-group{margin-bottom:23px}.field-group>label,.field-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#929baa;margin-bottom:10px}.field-label small{font-size:9px;letter-spacing:0}.field-label svg{width:12px;height:12px}.field-group input,.field-group textarea,.field-group select{background:#fff;border:1px solid transparent;border-radius:3px;padding:12px;width:100%;color:#535d6b;font-size:13px;line-height:1.6}.field-group textarea{resize:vertical;min-height:120px}.field-group input::placeholder,.field-group textarea::placeholder{color:#a4abb7}.field-group .title-input{font-size:17px}.field-hint{font-size:10px;color:#9ba3b0;margin-top:7px;line-height:1.65}.pill-group{display:flex;flex-wrap:wrap;gap:6px}.pill{background:#e2e5eb;color:#8a929f;padding:7px 10px;border-radius:20px;font-size:11px;line-height:1}.pill.selected{color:#fff;background:var(--orange)}.pill:hover{filter:brightness(.98)}.locked-palette{display:flex;align-items:center;gap:8px}.locked-palette span{width:28px;height:28px;display:block;background:var(--swatch);border-radius:50%;border:1px solid #d9dde4}.locked-palette small{font-size:10px;color:#9199a7;margin-left:auto}.upload-zone{width:100%;background:#ffffff70;border:1px dashed #cdd3de;padding:17px;border-radius:4px;color:#939baa;display:flex;align-items:center;gap:10px;font-size:11px}.upload-zone svg{width:20px;height:20px}.asset-row{display:flex;gap:8px;margin-top:10px}.asset-choice{width:70px;height:49px;border:2px solid transparent;border-radius:4px;padding:0;overflow:hidden}.asset-choice.selected{border-color:var(--orange)}.asset-choice img{width:100%;height:100%;object-fit:cover}.panel-footer{padding:13px 20px 20px;flex-shrink:0}.footer-tools{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:12px}.footer-tools .saved{color:var(--orange)}.orange-button{background:var(--orange);color:white;padding:11px 17px;border-radius:22px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2}.orange-button:hover{background:#ed5b30;box-shadow:0 4px 14px #ff65382e}.orange-button svg{width:14px;height:14px}.full-button{width:100%}.quiet-button{color:#929baa;font-size:11px;padding:8px}.template-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.template-option{padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;text-align:left}.template-option.selected{border-color:var(--orange)}.template-option .mini-template{height:150px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:13px}.mini-template img{width:48px}.mini-template h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:21px;line-height:1.1;font-weight:400}.mini-template small{font-size:6px;color:#959ca7}.template-name{display:block;font-size:10px;padding:7px;background:#ffffff75;color:#8d95a2}.format-group{margin-bottom:23px}.format-group h2{font-size:13px;font-weight:400;color:#6d7685;margin-bottom:10px;display:flex;align-items:center;gap:7px}.platform-badge{width:20px;height:20px;border-radius:5px;background:#dfe3ea;display:inline-grid;place-items:center;font-size:11px;font-weight:600}.format-row{display:flex;align-items:center;gap:8px;padding:9px 0;cursor:pointer}.format-row input{accent-color:var(--orange);width:13px;height:13px;margin:0;flex-shrink:0}.format-row>span{font-size:11px;color:#7b8594;line-height:1.3}.format-row small{display:block;font-size:9px;color:#9ba4b1;margin-top:3px}.format-row .size-ratio{margin-left:auto;font-size:10px;color:#a2aab7}.export-summary{font-size:11px;color:#8e97a5;line-height:1.7;margin-bottom:12px;display:flex;justify-content:space-between}.export-summary strong{color:#6b7482;font-weight:400}.format-selected{display:flex;gap:5px;align-items:center}.format-selected .pill{font-size:9px}.export-done{padding:16px 0 0;display:flex;flex-direction:column;gap:14px}.export-done>span{background:#fff;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;color:#b98265}.export-done h2{font-size:20px;font-weight:400}.export-done p{font-size:12px;color:#9099a6;line-height:1.7}.summary-item{padding:11px;background:#ffffff80;border-radius:4px;font-size:11px;color:#8b95a4;display:flex;justify-content:space-between;gap:12px}.poster-preview{position:relative;background:#f6f8ff;width:100%;max-height:100%;aspect-ratio:var(--ratio,1);container-type:inline-size;display:flex;flex-direction:column;justify-content:space-between;padding:7%;color:var(--brand);overflow:hidden;border-radius:3px;box-shadow:0 5px 30px #0003}.poster-preview>.poster-logo{width:21%;min-width:50px;height:auto}.poster-preview .poster-copy{position:relative;z-index:2;max-width:95%;padding:3% 0}.poster-preview h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:clamp(15px,6cqw,48px);font-weight:400;line-height:1.18;letter-spacing:-.5px;white-space:pre-wrap}.poster-preview .poster-copy>p{font-size:clamp(8px,1.8cqw,14px);margin-top:4%;line-height:1.5;white-space:pre-wrap}.poster-preview .poster-image{width:100%;max-height:47%;object-fit:contain;object-position:left center;align-self:flex-start;border-radius:4px;margin:3% 0}.poster-preview .poster-footer{font-size:clamp(6px,1.35cqw,10px);display:flex;justify-content:space-between;gap:10px;margin-top:2%;position:relative;z-index:2}.poster-preview.dark{background:var(--brand);color:#fff}.poster-preview.dark .poster-logo,.poster-preview.photo .poster-logo{filter:brightness(0) invert(1)}.poster-preview.photo{background:linear-gradient(0deg,#0e0522e8,#0e052220),url('assets/zoowork-brand/human-ai.png') center/cover;color:white}.poster-preview.photo .poster-copy{margin-top:auto}.poster-preview.photo .poster-image{display:none}.poster-preview.editorial .poster-copy{max-width:88%}.poster-preview.banner{padding:3% 5%;flex-direction:row;align-items:center;gap:5%;min-height:70px}.poster-preview.banner .poster-logo{width:15%;min-width:25px}.poster-preview.banner .poster-copy{flex:1;padding:0}.poster-preview.banner h2{font-size:clamp(12px,3.5cqw,32px)}.poster-preview.banner .poster-copy>p{font-size:clamp(7px,1.4cqw,11px)}.poster-preview.banner .poster-image{width:22%;max-height:100%;margin:0;object-position:center}.poster-preview.banner .poster-footer{display:none}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,10px);background:#fff;color:#6f7987;padding:12px 22px;box-shadow:0 6px 30px #59657525;border-radius:30px;font-size:12px;z-index:99;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.selected-asset-preview{width:100%;max-height:90px;object-fit:contain;object-position:left;border-radius:3px;margin-top:10px}.brand-guideline{font-size:11px;line-height:1.8;color:#939baa;padding:12px;background:#ffffff60;border-radius:4px}
.footer-tools [data-action="favorite"].saved{color:var(--orange);background:#fff0ea}
.footer-tools [data-action="favorite"].saved svg{fill:currentColor}
.footer-tools [data-action="favorite"]:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.tile-open{display:block;width:100%;padding:0;text-align:left;border-radius:var(--radius)}
.tile-open:active{transform:none}
.tile-favorite{position:absolute;right:10px;top:10px;z-index:1;width:30px;height:30px;padding:0;display:grid;place-items:center;border-radius:50%;background:#ffffffeb;color:#818998;opacity:0;box-shadow:0 2px 6px #0001}
.tile-favorite svg{width:18px;height:18px}
.tile:hover .tile-favorite,.tile:focus-within .tile-favorite,.tile-favorite.saved{opacity:1}
.tile-favorite.saved{color:var(--orange)}
.tile-favorite.saved svg{fill:currentColor}
.tile-favorite:hover{background:#fff;color:var(--orange)}
@media(hover:none){.tile-favorite{opacity:1}}
@media(min-width:1700px){main{max-width:1552px;margin:0 auto;padding-left:16px;padding-right:16px}.rail{width:calc((100vw - 1552px)/2)}.top-nav{right:max(80px,calc((100vw - 1520px)/2))}.detail-panel{width:390px}.masonry{gap:26px}}
@media(max-width:1150px){main{margin:0 50px 0 70px}.top-nav{right:50px;gap:18px}.top-nav nav{gap:24px}.nav-item{font-size:15px}.new-button{font-size:11px}.search-wrap input{font-size:56px}.rail{width:65px}.masonry{gap:18px}.masonry-column{gap:18px}.compose-card{padding:16px;height:180px}.typography-art{padding:18px}.editorial-art h2{font-size:20px}.note-art{padding:15px}.note-art p{font-size:15px}.detail-dialog{padding:35px 25px}.detail-panel{width:330px}.detail-layout{gap:18px}.preview-stage{padding:10px}.symbol-art small{font-size:10px}}
@media(max-width:900px){.masonry{grid-template-columns:repeat(3,minmax(0,1fr))}.masonry-column:nth-child(4){display:none}.detail-panel{width:310px}.panel-heading,.panel-scroll{padding:18px}.detail-dialog{padding:35px 16px 20px}.preview-area{padding:15px}.detail-layout{gap:12px}.preview-top{font-size:9px}.brand-lock{display:none}.preview-mode{font-size:9px}}
@media(max-width:640px){.rail{width:45px;top:134px;bottom:28px}.rail-brand{font-size:15px;gap:8px}.rail-brand img{width:18px;height:18px}.rail-tools{gap:11px}.rail-tools svg{width:20px;height:20px}main{margin:0 18px 0 50px;padding-top:51px}.top-nav{left:50px;right:18px;height:40px;gap:10px;justify-content:space-between}.top-nav nav{gap:15px}.nav-item{font-size:12px;padding:9px 0}.nav-item.active:before{height:4px;left:0;right:0}.new-button{padding:3px 5px}.new-button span{display:none}.new-button img{width:22px;height:22px}.search-wrap{height:82px}.search-wrap input{font-size:38px;letter-spacing:-1.3px;padding-bottom:2px}.filter-row{height:57px;gap:2px;padding-top:9px;align-items:flex-start;flex-wrap:wrap}.filter{font-size:10px;padding:7px 5px;gap:4px}.filter-dot{width:9px;height:9px;border-width:2px}.filter-end{display:none}.masonry{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.masonry-column{gap:14px}.masonry-column:nth-child(3){display:none}.compose-card{height:158px;padding:13px}.compose-card .eyebrow{font-size:8px;letter-spacing:.3px}.compose-card textarea{font-size:12px}.compose-actions{opacity:1}.compose-actions small{display:none}.compose-actions button{margin-left:auto;width:24px;height:24px}.tile-caption{font-size:9px;line-height:1.4;padding-top:6px}.typography-art{padding:15px}.typography-art img{width:54px}.typography-art h2{font-size:20px}.typography-art small{font-size:6px}.editorial-art>div{padding:14px;min-height:150px}.editorial-art h2{font-size:20px}.editorial-art .book-icon svg{width:16px}.note-art{padding:12px;min-height:140px}.note-art p{font-size:13px}.note-art small{font-size:9px}.symbol-art{padding:12px;gap:6px}.symbol-art small{font-size:8px;letter-spacing:2px}.color-art{min-height:170px;padding:14px}.color-art h2{font-size:28px}.color-art small{font-size:8px}.template-card{padding:15px}.template-card h2{font-size:23px}.template-card img{width:55px}.template-card small{font-size:8px}.detail-dialog{padding:36px 10px 10px;overflow:auto}.detail-layout{height:auto;min-height:100%;flex-direction:column;gap:12px}.preview-area{flex:none;min-height:260px;height:38vh;max-height:400px}.preview-stage{min-height:180px;padding:5px 18px}.preview-top{font-size:9px}.preview-bottom{height:22px}.detail-panel{width:100%;min-height:380px;max-height:none;flex:1}.panel-scroll{overflow:visible}.panel-heading{padding:17px}.panel-heading h1{font-size:21px}.panel-tabs{margin:0 17px}.close-detail{top:1px;right:9px}.preview-stage .poster-preview{width:auto;max-width:100%;height:100%}.preview-stage .poster-preview.banner{width:100%;height:auto;max-height:100%}.panel-footer{padding:10px 17px 20px}.template-option .mini-template{height:160px}.toast{width:max-content;max-width:90%;text-align:center}.brand-lock{display:flex}.format-row{padding:12px 0}.format-row>span{font-size:12px}.format-row small{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}.tile:hover .tile-surface{transform:none}}
/* Creation flow follows the library's quiet cards and orange actions. */
.new-button{background:var(--orange);color:#fff;padding:11px 18px;border-radius:24px;min-height:40px;gap:7px;box-shadow:0 3px 12px #ff653820;font-size:13px;font-weight:500;white-space:nowrap}.new-button:hover{background:#ed5b30;color:#fff}.new-button [data-icon]{display:flex}.new-button svg{width:17px;height:17px}.new-button span{display:inline}.rail-tools .active{color:var(--orange)}
.onboarding-empty{padding:70px 24px 90px}.onboarding-empty .empty-brand{margin:0 auto 24px;width:72px;height:88px;display:grid;place-items:center;background:#fff;border-radius:7px;box-shadow:8px 8px 0 #e5e8ee;transform:rotate(-7deg);color:#b8bec8}.onboarding-empty .empty-brand svg{width:30px;height:30px}.onboarding-empty>.eyebrow{display:block;color:#a7aebb;font-size:10px;margin-bottom:17px;letter-spacing:1.5px}.onboarding-empty h1{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:32px;color:#687180;line-height:1.5}.onboarding-empty p{font-size:13px;line-height:1.9;color:#939baa;margin:14px 0 26px}.onboarding-empty>.quiet-button{display:block;margin:12px auto 0}.onboarding-empty .orange-button{padding:13px 22px}
.visual-entry-grid{display:grid;gap:8px}.visual-entry{display:flex;width:100%;align-items:center;gap:12px;text-align:left;padding:15px;background:#fff;border:1px solid #e4e7ed;border-radius:6px;color:#717b8b;transition:background .16s,border-color .16s}.visual-entry:hover{background:#ffffffb0;border-color:#e9a38b}.visual-entry>svg{width:20px;height:20px;flex:none;color:#9ca5b3}.visual-entry>span{font-size:12px;line-height:1.5;flex:1}.visual-entry small{display:block;color:#a0a8b4;font-size:10px;margin-top:3px}.visual-entry>svg:last-child{width:16px;height:16px;color:#c19681}.ceo-library-link{display:block;padding:9px 2px;text-decoration:underline;text-underline-offset:3px}.generation-intro{padding:0 0 19px}.generation-intro h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:21px;font-weight:400;line-height:1.6;color:#687281}.generation-intro p{color:#99a2af;font-size:11px;line-height:1.8;margin-top:6px}.field-group>label>small{font-size:10px;letter-spacing:0;text-transform:none}.field-group #visual-category{margin-top:8px;color:#8b95a4;font-size:11px;padding:9px 11px}.field-group select{appearance:auto}.visual-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.visual-choice{position:relative;background:#fff;border:2px solid transparent;border-radius:6px;padding:0;overflow:hidden;min-width:0;text-align:left;transition:border-color .16s,box-shadow .16s}.visual-choice:hover{box-shadow:0 3px 10px #67748216}.visual-choice.selected{border-color:#e9a38b}.visual-choice>img{display:block;width:100%;height:104px;object-fit:cover;background:#fff}.visual-choice>img.light-asset{background:var(--brand)}.visual-choice>span{display:block;font-size:10px;color:#959eac;padding:8px;line-height:1.5;overflow-wrap:anywhere}.visual-choice>i{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:21px;height:21px;background:var(--orange);border-radius:50%;color:#fff}.visual-choice>i svg{width:13px;height:13px}.chooser-empty{grid-column:1/-1;padding:18px 0}.reference-selection{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.reference-chip{display:flex;align-items:center;gap:6px;border-radius:4px;padding:5px 7px;background:#fff;color:#8c96a5;max-width:100%;font-size:10px}.reference-chip img{width:30px;height:30px;object-fit:cover;border-radius:2px}.reference-chip span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-chip>svg{width:12px;height:12px;flex:none}.generation-status{padding:11px 12px;margin:0 0 10px;background:#ffffff80;color:#9b8a7e;border-radius:5px;font-size:10px;line-height:1.8}.generation-status.ready{color:#7b8e80}.generation-error{font-size:11px;line-height:1.7;color:#b56952;padding:10px 0}.ceo-selected{display:flex;align-items:center;gap:10px;padding:10px;margin:9px 0 18px;background:#fff;border-radius:5px;color:#8d97a5;font-size:11px}.ceo-selected img{width:42px;height:49px;object-fit:cover;border-radius:3px}.ceo-selected .quiet-button{margin-left:auto}.field-group input[type=range]{accent-color:var(--orange);background:none;padding:0}.field-group textarea#draft-subtitle{min-height:70px}.poster-preview.has-ceo .poster-copy{width:51%;margin:auto 0}.poster-preview.has-ceo .poster-copy h2{font-size:clamp(15px,5cqw,42px)}.ceo-photo-frame{position:absolute;right:6%;top:23%;bottom:14%;width:37%;overflow:hidden;border-radius:5px;background:#fff}.ceo-photo-frame img{width:100%;height:100%;object-fit:cover;object-position:center top}.poster-preview.ceo-left .ceo-photo-frame{left:6%;right:auto}.poster-preview.ceo-left .poster-copy{margin-left:auto}.poster-preview.banner.has-ceo .ceo-photo-frame{top:10%;bottom:10%;width:22%}.poster-preview.banner.has-ceo .poster-copy{width:auto;padding-right:25%}.poster-preview.banner.ceo-left .poster-copy{padding-left:25%;padding-right:0}.poster-preview.banner.ceo-left .ceo-photo-frame{left:20%}
.work-thumbnail{background:#f6f8ff;color:var(--brand);display:flex;flex-direction:column;justify-content:space-between;padding:7%;overflow:hidden;gap:10px;container-type:inline-size}.work-thumbnail>img:first-child{width:25%;height:auto}.work-thumbnail h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:6cqw;line-height:1.25;white-space:pre-wrap;font-weight:400}.work-thumbnail .work-visual{width:100%;max-height:46%;object-fit:contain;object-position:left}.work-thumbnail .work-portrait{width:55%;max-height:50%;object-fit:cover;align-self:flex-end}.work-thumbnail small{font-size:2cqw;color:#9199a7}.work-thumbnail.dark{background:var(--brand);color:#fff}.work-thumbnail.dark>img:first-child,.work-thumbnail.photo>img:first-child{filter:brightness(0) invert(1)}.work-thumbnail.photo{background:linear-gradient(0deg,#0e0522d9,#0e052210),url('assets/zoowork-brand/human-ai.png') center/cover;color:#fff}.brand-settings-dialog{background:var(--bg);color:#758090;border:0;border-radius:9px;width:min(420px,calc(100vw - 32px));padding:27px;margin:auto;box-shadow:0 15px 80px #18102540}.brand-settings-dialog::backdrop{background:#22222dbb}.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.settings-heading h1{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:26px;font-weight:400}.settings-logo{width:130px;margin:0 0 28px}.brand-settings-dialog .field-label svg{width:13px;height:13px}.brand-settings-dialog #settings-folder{font-size:13px}.brand-settings-dialog .field-hint{font-size:11px}.field-label .quiet-button{padding:0;letter-spacing:0}
@media(max-width:640px){.top-nav{height:82px;align-items:flex-start;padding-top:7px;flex-wrap:wrap;gap:4px}.top-nav .new-button{margin-left:auto;order:0;min-height:36px;padding:9px 14px;font-size:12px}.top-nav .new-button span{display:inline}.top-nav nav{width:100%;justify-content:flex-end;gap:22px;order:1}.top-nav .new-button svg{width:15px;height:15px}main{padding-top:94px}.rail{top:177px}.onboarding-empty{padding:45px 5px 60px}.onboarding-empty h1{font-size:25px}.onboarding-empty p{font-size:12px}.onboarding-empty>.eyebrow{font-size:8px}.visual-choice>img{height:105px}.generation-intro h2{font-size:22px}.visual-entry{padding:15px}.visual-entry>span{font-size:13px}.visual-entry small{font-size:11px}.visual-entry{min-height:67px}.reference-chip{min-height:40px}.panel-tabs button{font-size:11px}.brand-settings-dialog{padding:23px}.work-thumbnail{gap:5px}}
.reference-preview-empty{text-align:center;color:#b3b6c0;padding:30px}.reference-preview-empty>svg{width:35px;height:35px;margin:0 auto 20px}.reference-preview-empty h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:25px;line-height:1.6;font-weight:400}.reference-preview-empty p{font-size:12px;margin-top:12px;color:#979daa}.generation-intro p,.field-hint,.onboarding-empty p{text-wrap:pretty}
.copy-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}.copy-label>label{font-size:10px;letter-spacing:.7px;color:#929baa}.ai-edit-button{padding:5px 9px;font-size:10px;border-radius:12px;color:#bd846b;background:#fff;white-space:nowrap}.ai-edit-button:hover{background:#fff9f6}.ai-copy-editor{background:#ffffff80;border:1px solid #e0e4eb;border-radius:6px;padding:12px;margin-top:10px}.ai-copy-editor select{font-size:11px;color:#8b95a4}.ai-copy-editor textarea{min-height:75px;font-size:12px;margin-top:8px}.copy-generate-button{background:#fff;color:#b78068;border-radius:16px;font-size:11px;padding:8px 12px;margin-top:8px}.copy-generate-button:disabled{opacity:.5;cursor:default}.copy-suggestion-actions{display:flex;align-items:center;gap:5px;margin-top:8px}.copy-suggestion-actions .orange-button{font-size:11px;padding:8px 12px}
.visual-choice[data-ceo]>img{object-fit:contain;object-position:center;background:#e5e7ed}
.generation-progress{padding:14px;background:#fff;border:1px solid #eaded8;border-radius:7px;text-align:left}.generation-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#687281;margin-bottom:12px}.generation-progress-heading strong{color:#bb5739;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}.generation-progress-track{height:8px;overflow:hidden;border-radius:8px;background:#f7e9e3}.generation-progress-track>span{display:block;width:100%;height:100%;background:var(--orange);border-radius:inherit;transform-origin:left;transition:transform .24s ease}.generation-progress-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;color:#7c8797;font-size:11px;line-height:1.6}.generation-progress-meta small{font-size:9px;color:#9aa2ae;white-space:nowrap}
.visual-style-trigger{display:flex;align-items:center;width:100%;gap:12px;padding:12px;background:#fff;border:1px solid #e0e3e9;border-radius:6px;text-align:left;color:#697487}.visual-style-trigger:hover{border-color:#d5a18b}.visual-style-trigger>.style-selected-image,.auto-style-mark{width:48px;height:48px;object-fit:cover;border-radius:4px;flex:none}.auto-style-mark{display:grid;place-items:center;background:#f5eee9;color:#c48d76}.auto-style-mark svg{width:22px;height:22px}.visual-style-trigger>span:nth-child(2){min-width:0;flex:1}.visual-style-trigger strong{display:block;font-size:12px;font-weight:500}.visual-style-trigger small{display:block;font-size:10px;line-height:1.6;color:#8993a1;margin-top:4px}.style-trigger-change{display:flex;align-items:center;gap:5px;font-size:10px;color:#b4775f;white-space:nowrap}.style-trigger-change svg{width:13px;height:13px}.visual-style-dialog{width:min(1080px,calc(100vw - 40px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:10px;background:var(--bg);color:#687281;box-shadow:0 18px 100px #17132244;overflow:hidden}.visual-style-dialog[open]{display:flex;flex-direction:column}.visual-style-dialog::backdrop{background:#171322a8}.visual-style-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 28px 20px;flex:none}.visual-style-heading .eyebrow{font-size:9px;letter-spacing:1.6px;color:#be8974}.visual-style-heading h1{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:30px;line-height:1.4;font-weight:400;margin:5px 0 8px;color:#59616e}.visual-style-heading p{font-size:12px;line-height:1.6;color:#808b9a}.visual-style-heading .round-button{flex:none}.visual-style-scroll{overflow:auto;overscroll-behavior:contain;padding:0 28px 20px;min-height:0}.visual-style-scroll fieldset{border:0;padding:0;margin:0;min-width:0}.visual-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px}.style-option{display:block;position:relative;overflow:hidden;background:#fff;border:2px solid transparent;border-radius:7px;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}.style-option:hover{border-color:#e3c6b9}.style-option.selected{border-color:#e79c7c;box-shadow:0 0 0 1px #e79c7c22}.style-option:has(input:focus-visible){outline:2px solid #a85f42;outline-offset:3px}.style-option input{position:absolute;width:1px;height:1px;opacity:0;inset:12px auto auto 12px;padding:0;margin:0}.style-reference-image{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}.style-selected-image,.style-mosaic-image{display:block;overflow:hidden}.style-card-copy{display:grid;grid-template-columns:23px 1fr;gap:6px 4px;padding:13px 12px 14px}.style-number{font-size:10px;font-variant-numeric:tabular-nums;color:#b49585;padding-top:3px}.style-card-copy strong{font-size:13px;font-weight:500;color:#5f6979;line-height:1.5}.style-card-copy>span:last-child{grid-column:2;font-size:10px;line-height:1.7;color:#8993a1;min-height:34px}.style-choice-dot{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:1px solid #ffffffbb;background:#ffffffde;box-shadow:0 1px 6px #1b142315}.style-option.selected .style-choice-dot{background:var(--orange);border-color:var(--orange)}.style-option.selected .style-choice-dot:after{content:"";width:8px;height:4px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:translateY(-1px) rotate(-45deg)}.style-source{display:block;margin-top:7px;padding:0 2px;font-size:9px;color:#758192;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}.style-source:hover{text-decoration:underline;text-underline-offset:3px}.auto-style-option{display:flex;align-items:center;gap:18px;padding:13px 18px;margin-bottom:22px}.auto-style-mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:120px;height:53px;flex:none;overflow:hidden;border-radius:4px}.auto-style-mosaic .style-mosaic-image{width:100%;height:100%;min-width:0}.auto-style-copy{display:flex;flex-direction:column;gap:5px;padding-right:30px}.auto-style-copy strong{font-size:14px;font-weight:500;color:#687281}.auto-style-copy>span{font-size:11px;line-height:1.7;color:#8a94a2}.auto-style-option .style-choice-dot{top:50%;right:18px;transform:translateY(-50%)}.visual-style-footer{display:flex;align-items:center;justify-content:space-between;gap:30px;border-top:1px solid #dfe3e9;padding:17px 28px;background:var(--bg);flex:none}.visual-style-footer>div{min-width:0;max-width:700px}.visual-style-footer strong{font-weight:500;font-size:13px;color:#657080}.visual-style-footer p{font-size:11px;color:#8691a0;line-height:1.7;margin-top:4px}.visual-style-footer .orange-button{white-space:nowrap;min-height:40px;flex:none;display:flex;align-items:center;gap:12px;padding:11px 18px;font-size:12px}.visual-style-footer .orange-button svg{width:15px;height:15px}.style-reference-note{font-size:10px;color:#8a94a1;line-height:1.7;margin:23px 0 0}
@media(max-width:900px){.visual-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-style-footer{gap:18px}.visual-style-heading{padding:20px 22px 18px}.visual-style-scroll{padding:0 22px 18px}.visual-style-footer{padding:15px 22px}}
@media(max-width:600px){.visual-style-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.visual-style-heading{padding:20px 16px 16px}.visual-style-heading h1{font-size:25px}.visual-style-heading p{font-size:11px}.visual-style-scroll{padding:0 16px 16px}.visual-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.style-card-copy{padding:10px 8px;grid-template-columns:20px 1fr}.style-card-copy strong{font-size:12px}.style-card-copy>span:last-child{font-size:10px}.auto-style-option{padding:12px;gap:12px}.auto-style-mosaic{width:63px;height:49px}.auto-style-copy strong{font-size:13px}.auto-style-copy>span{font-size:10px}.auto-style-option .style-choice-dot{right:12px}.visual-style-footer{padding:14px 16px;gap:12px}.visual-style-footer p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.visual-style-footer .orange-button{padding:10px 12px}.style-trigger-change{font-size:9px}}
@media(prefers-reduced-motion:reduce){.style-option{transition:none}}

/* CEO photo selection stays in a secondary modal and returns to the same editor step. */
.reference-filters{display:flex;align-items:stretch;gap:8px}
.field-group .reference-filters input{flex:1;min-width:0;width:0;padding:10px;font-size:11px}
.field-group .reference-filters #visual-category{flex:0 1 42%;min-width:0;width:42%;margin-top:0;padding:10px 8px;font-size:11px;line-height:1.6}
.generation-model{display:block;margin-top:3px;font-size:10px;color:#687281}
.ceo-selection{display:flex;align-items:center;gap:14px;padding:12px;background:#fff;border:1px solid #e7b29c;border-radius:6px;color:#687281}
.ceo-selection>img{width:64px;height:80px;flex:none;object-fit:contain;object-position:center;background:#eef0f4;border-radius:3px}
.ceo-selection-copy{min-width:0;flex:1}
.ceo-selection-status{display:flex;align-items:center;gap:5px;font-size:10px;color:#a15b40;line-height:1.6}
.ceo-selection-status svg{width:12px;height:12px}
.ceo-selection-copy strong{display:block;margin:4px 0;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.ceo-selection-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:5px}
.ceo-selection-actions button{padding:3px 0;color:#8b6656;font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:26px}
.ceo-selection-actions [data-action="remove-ceo"]{color:#687281}
.ceo-photo-dialog{width:min(700px,calc(100vw - 40px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:9px;background:var(--bg);color:#687281;box-shadow:0 18px 80px #17132244;overflow:hidden}
.ceo-photo-dialog[open]{display:flex;flex-direction:column}
.ceo-photo-dialog::backdrop{background:#171322a8}
.ceo-photo-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 24px 18px;flex:none}
.ceo-photo-heading .eyebrow{font-size:9px;letter-spacing:1.3px;color:#935139}
.ceo-photo-heading h1{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:27px;line-height:1.4;font-weight:400;margin:4px 0 8px;color:#59616e}
.ceo-photo-heading p{font-size:12px;line-height:1.7;color:#687281}
.ceo-photo-heading .round-button{flex:none;color:#687281}
.ceo-photo-scroll{padding:0 24px 24px;overflow:auto;overscroll-behavior:contain;min-height:0}
.ceo-photo-scroll fieldset{margin:0;padding:0;border:0;min-width:0}
.ceo-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ceo-photo-option{display:block;position:relative;min-width:0;overflow:hidden;background:#fff;border:2px solid transparent;border-radius:6px;cursor:pointer}
.ceo-photo-option:hover{border-color:#e4c6b8}
.ceo-photo-option.selected{border-color:var(--orange)}
.ceo-photo-option:has(input:focus-visible){outline:2px solid #a85f42;outline-offset:3px}
.ceo-photo-option input{position:absolute;inset:12px auto auto 12px;width:1px;height:1px;opacity:0;margin:0}
.ceo-photo-option>img{width:100%;height:180px;object-fit:contain;object-position:center;background:#e5e7ed}
.ceo-photo-option>img.transparent-photo,.ceo-selection>img.transparent-photo{background-color:#fff;background-image:conic-gradient(#d9dee6 25%,#fff 0 50%,#d9dee6 0 75%,#fff 0);background-size:16px 16px}
.ceo-photo-name{display:block;padding:9px 10px;font-size:11px;line-height:1.6;color:#687281;overflow-wrap:anywhere}
.ceo-photo-check{display:none;position:absolute;top:8px;right:8px;align-items:center;gap:3px;background:var(--orange);color:#fff;border-radius:12px;padding:4px 7px;font-size:10px;line-height:1.2}
.ceo-photo-check svg{width:12px;height:12px}
.ceo-photo-option.selected .ceo-photo-check{display:flex}
.ceo-photo-empty{grid-column:1/-1;padding:40px 10px;text-align:center;font-size:12px;line-height:1.8;color:#687281}
.ceo-photo-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;border-top:1px solid #dfe3e9;padding:16px 24px}
.ceo-photo-footer>p{min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.ceo-photo-footer>div{display:flex;align-items:center;gap:10px;flex:none}
.ceo-photo-footer .quiet-button{color:#687281}
.ceo-photo-footer .orange-button{min-height:38px;white-space:nowrap;background:#c44821}
.ceo-photo-footer .orange-button:hover{background:#af3e1b}
.ceo-photo-footer .orange-button:disabled{cursor:default}
@media(max-width:600px){.ceo-photo-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.ceo-photo-heading{padding:20px 16px 16px}.ceo-photo-scroll{padding:0 16px 20px}.ceo-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.ceo-photo-option>img{height:160px}.ceo-photo-footer{padding:14px 16px;gap:12px;align-items:flex-start;flex-direction:column}.ceo-photo-footer>div{align-self:flex-end}.ceo-photo-heading h1{font-size:25px}}
/* Content-specific templates share their renderer across cards and the editor. */
.brand-artwork{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:5%;width:100%;padding:7%;overflow:hidden;container-type:inline-size;background:#f6f8ff;color:var(--brand);border-radius:3px;box-sizing:border-box}
.brand-artwork .artwork-header{display:flex;align-items:center;justify-content:space-between;gap:8%;flex:none;min-width:0}
.brand-artwork .artwork-logo{width:25%;height:auto;flex:none}
.brand-artwork .artwork-type{font-size:2.1cqw;line-height:1.5;white-space:nowrap;opacity:.7}
.brand-artwork .artwork-copy{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;gap:6%;min-height:0;z-index:1}
.brand-artwork .artwork-title{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:8cqw;line-height:1.24;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;letter-spacing:normal}
.brand-artwork .artwork-subtitle{font-size:3cqw;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.brand-artwork .artwork-placeholder{opacity:.55}
.brand-artwork .artwork-footer{display:flex;justify-content:space-between;gap:8%;font-size:1.9cqw;line-height:1.5;opacity:.65;flex:none;z-index:1}
.brand-artwork .artwork-visual{width:100%;max-height:34%;object-fit:contain;object-position:left center;min-height:0;border-radius:3px}
.brand-artwork.skin-dark,.brand-artwork.skin-photo{background:var(--brand);color:#f6f8ff}
.brand-artwork.skin-dark .artwork-logo,.brand-artwork.skin-photo .artwork-logo{filter:brightness(0) invert(1)}
.brand-artwork.layout-product .artwork-copy{flex:1}
.brand-artwork.layout-solution .artwork-copy{border-left:2px solid currentColor;padding-left:7%}
.brand-artwork.layout-solution .artwork-title{font-family:Arial,"PingFang SC",sans-serif;font-size:7cqw;font-weight:500}
.brand-artwork.layout-case .artwork-copy{flex:.75;padding:9%;border:1px solid #0e052229;background:#fff}
.brand-artwork.layout-case .artwork-subtitle{padding-top:7%;border-top:1px solid #0e052229}
.brand-artwork.layout-insight .artwork-title{font-size:10cqw}
.brand-artwork.layout-insight .artwork-subtitle{font-size:2.7cqw;opacity:.65}
.brand-artwork.layout-data .artwork-title{font-family:Arial,"PingFang SC",sans-serif;font-size:12cqw;font-weight:600;font-variant-numeric:tabular-nums}
.brand-artwork.layout-data .artwork-subtitle{border-top:1px solid #ffffff40;padding-top:6%}
.brand-artwork.layout-event{background:#f6f8ff;color:var(--brand)}
.brand-artwork.layout-event .artwork-logo{filter:none}
.brand-artwork.layout-event .artwork-copy{justify-content:space-evenly;gap:12%}
.brand-artwork.layout-event .artwork-title{font-size:11cqw;max-width:90%}
.brand-artwork.layout-event .artwork-subtitle{border-top:1px solid #0e052240;border-bottom:1px solid #0e052240;padding:7% 0;font-size:3.5cqw;line-height:2}
.brand-artwork.layout-tutorial .artwork-copy{justify-content:flex-start;padding-top:8%;gap:12%}
.brand-artwork.layout-tutorial .artwork-title{font-family:Arial,"PingFang SC",sans-serif;font-size:7cqw;font-weight:500}
.brand-artwork.layout-tutorial .artwork-subtitle{border-left:2px solid #0e05224d;padding:3% 0 3% 7%;line-height:2.2}
.brand-artwork.layout-news .artwork-copy{text-align:center;border-top:1px solid #0e052229;border-bottom:1px solid #0e052229;padding:10% 0}
.brand-artwork.layout-news .artwork-title{font-size:9cqw}
.brand-artwork.layout-resource .artwork-copy{flex:.8;justify-content:flex-start;padding:10% 9%;border:1px solid #0e052233;border-left:5px solid var(--brand);background:#fff;box-shadow:4px 4px 0 #0e052211}
.brand-artwork.layout-resource .artwork-title{font-size:8.5cqw}
.brand-artwork.layout-resource .artwork-subtitle{margin-top:auto;padding-top:10%;font-size:2.7cqw}
.brand-artwork .artwork-portrait{position:absolute;right:7%;top:25%;bottom:17%;width:35%;overflow:hidden;background:#ffffff0d;border:1px solid #ffffff2b;border-radius:3px}
.brand-artwork .artwork-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top}
.brand-artwork .artwork-portrait.artwork-placeholder{display:grid;place-items:center;font-size:3cqw;text-align:center;padding:8%}
.brand-artwork.artwork-has-portrait .artwork-copy{max-width:53%;padding-left:0}
.brand-artwork.artwork-has-portrait .artwork-title{font-size:7cqw}
.brand-artwork.artwork-portrait-left .artwork-portrait{right:auto;left:7%}
.brand-artwork.artwork-portrait-left .artwork-copy{margin-left:auto}
.brand-artwork.artwork-card,.brand-artwork.artwork-mini,.brand-artwork.artwork-work{box-shadow:none}
.brand-artwork.artwork-mini{height:auto;min-height:0;border-radius:4px}
.brand-artwork.artwork-banner{flex-direction:row;align-items:center;padding:3% 5%;gap:5%}
.brand-artwork.artwork-banner .artwork-header{width:18%;display:block}
.brand-artwork.artwork-banner .artwork-logo{width:85%}
.brand-artwork.artwork-banner .artwork-type{font-size:1.7cqw;margin-top:10%;display:block}
.brand-artwork.artwork-banner .artwork-copy{flex:1;gap:10%;padding:0;border:0;box-shadow:none;background:none;text-align:left;max-width:none}
.brand-artwork.artwork-banner .artwork-title{font-size:4cqw;max-width:100%}
.brand-artwork.artwork-banner .artwork-subtitle{font-size:1.7cqw;padding:0;margin:2% 0 0;border:0;line-height:1.5}
.brand-artwork.artwork-banner .artwork-visual{width:22%;max-height:100%}
.brand-artwork.artwork-banner .artwork-footer{display:none}
.brand-artwork.artwork-banner .artwork-portrait{position:relative;inset:auto;align-self:stretch;flex:none;width:20%}
.brand-artwork.artwork-banner.artwork-portrait-left .artwork-portrait{order:-1}

/* The workspace follows the task: browse references, set content, then inspect a result. */
.detail-shell{height:100%;display:flex;flex-direction:column;gap:16px;min-height:0}
.editor-header{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--bg);border-radius:7px;flex:none;padding:0 22px}
.editor-header .panel-heading{padding:17px 0;min-width:170px}
.editor-header .panel-heading h1{font-size:23px}
.editor-header .panel-tabs{align-self:stretch;align-items:center;margin:0;gap:12px;width:min(540px,60%);border:0}
.editor-header .panel-tabs button{white-space:nowrap;font-size:12px;padding:20px 6px}
.editor-header .panel-tabs button:disabled{cursor:not-allowed;opacity:.45}
.detail-shell>.detail-layout{flex:1;min-height:0;height:auto}
.detail-shell .detail-panel{width:380px;min-height:0;overflow:hidden}
.detail-shell .panel-scroll{min-height:0}
.reference-library{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;background:var(--bg);border-radius:7px;padding:25px 26px 0;overflow:hidden}
.reference-library-heading h2{font-family:BrandDidot,Georgia,"Songti SC",serif;font-size:28px;font-weight:400;color:#586372}
.reference-library-heading p{font-size:12px;line-height:1.7;color:#687281;margin-top:7px}
.reference-library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;flex:none}
.reference-library .reference-upload-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:10px 16px;border-radius:22px;background:#fff;color:#955336;font-size:12px;white-space:nowrap}
.reference-upload-button svg{width:16px;height:16px}
.reference-upload-button:hover{background:#fff8f4}
.reference-upload-button:disabled{opacity:.6;cursor:not-allowed}
.reference-upload-button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.reference-upload-hint,.reference-upload-status{flex:none;font-size:11px;line-height:1.6;color:#657184;margin-top:9px}
.reference-upload-status:empty{display:none}
.reference-upload-status.has-error{color:#ac3b25}
.reference-library #reference-library-controls{margin:20px 0 0;flex:none}
.reference-library .reference-filters input{font-size:13px;padding:12px 14px}
.reference-library .reference-filters #visual-category{flex-basis:32%;width:32%;font-size:12px;padding:12px}
.reference-library-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:0 2px 24px;margin-top:18px}
.reference-library .visual-choices{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;margin:0}
.reference-card{position:relative;min-width:0;background:#fff;border:2px solid transparent;border-radius:6px;overflow:hidden}
.reference-card.selected{border-color:var(--orange)}
.reference-card-select{position:relative;display:block;width:100%;padding:0;text-align:left;height:100%}
.reference-card-select:active{transform:none}
.reference-card-select:focus-visible{outline:none}
.reference-card:has(.reference-card-select:focus-visible){border-color:#955336}
.reference-card-select>img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#e8ebf0}
.reference-card-select .reference-card-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:51px;padding:9px 12px;font-size:12px;line-height:1.5;color:#626e7e}
.reference-card-check{position:absolute;top:9px;right:9px;display:grid;place-items:center;background:#fff;border:1px solid #d5dbe4;border-radius:50%;width:25px;height:25px;color:#758294}
.reference-card-check svg{width:15px;height:15px}
.reference-card.selected .reference-card-check{background:var(--orange);color:white;border-color:var(--orange)}
.reference-card-view{position:absolute;right:9px;bottom:61px;display:flex;align-items:center;gap:4px;padding:7px 8px;background:#fffffff0;border-radius:4px;color:#5d6878;font-size:11px;box-shadow:0 1px 6px #0001}
.reference-card-view svg{width:13px;height:13px}
.reference-card-select:disabled{cursor:not-allowed;opacity:.65}
.selected-reference-list{display:flex;flex-direction:column;gap:12px;list-style:none;padding:0;margin:0 0 16px}
.selected-reference{display:flex;align-items:center;gap:12px;padding:10px;background:#fff;border-radius:5px;min-width:0}
.selected-reference-view{position:relative;padding:0;flex:none;width:88px;height:82px;overflow:hidden;border-radius:3px;background:#e8ebf0}
.selected-reference-view img{width:100%;height:100%;object-fit:contain}
.selected-reference-view>svg{position:absolute;right:4px;bottom:4px;width:17px;height:17px;padding:2px;border-radius:2px;background:#fffffff0;color:#626e7e}
.selected-reference>div{flex:1;min-width:0}
.selected-reference>div>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:#626e7e}
.selected-reference small{display:block;color:#a44426;font-size:11px;margin-top:5px}
.reference-remove{flex:none;align-self:flex-start;padding:5px;border-radius:50%;color:#6d7889}
.reference-remove:hover{background:#eef0f4;color:#a44426}
.reference-remove svg{width:15px;height:15px}
.missing-reference{display:grid;place-items:center;width:60px;height:65px;flex:none;background:#eef0f4;color:#7c8797}
.selected-reference.invalid{outline:1px solid #df9e87}
.reference-purpose{margin:22px 0;font-size:12px;line-height:1.8;color:#687281}
.brand-applied{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:#657181;border-top:1px solid var(--line);padding-top:18px}
.brand-applied svg{width:15px;height:15px}
.brand-applied small{width:100%;font-size:11px;padding-left:22px;color:#758192}
.reference-intro{padding-bottom:0}
.reference-intro h2{text-wrap:balance}
.reference-actions{display:grid;gap:8px;margin-top:20px}
.detail-dialog[data-step="visual"] .panel-footer{display:none}
#reference-selection-group{margin-top:20px}
.reference-route-label{display:block;color:#8a94a2;font-size:10px;line-height:1.5;margin-bottom:6px}
.reference-intro p{font-size:12px;color:#758192;line-height:1.8}
.reference-selection-heading>div{display:flex;align-items:center;gap:10px}
.reference-selection-heading button{padding:3px 0;font-size:11px;color:#a95536;line-height:1.5}
.reference-selection-heading small{font-variant-numeric:tabular-nums}
.reference-brand-context{padding:16px;margin-top:20px;background:#ffffff80;border:1px solid #dfe3ea;border-radius:6px}
.reference-brand-context h3{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:400;color:#596575;line-height:1.5;margin-bottom:16px;text-wrap:balance}
.reference-brand-context h3 svg{width:14px;height:14px;flex:none}
.reference-brand-context dl{margin:0;display:grid;gap:15px;font-size:11px;line-height:1.5}
.reference-brand-context dl>div{display:flex;align-items:center;gap:12px}
.reference-brand-context dt{color:#8a94a2;width:58px;flex:none}
.reference-brand-context dd{margin:0;color:#657181;min-width:0;text-wrap:pretty}
.reference-brand-colors{display:flex;gap:6px;align-items:center}
.reference-brand-colors span{display:block;width:20px;height:20px;border-radius:50%;background:var(--swatch);border:1px solid #d5dae2}
.reference-content-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#687281;margin:0 0 18px}
.reference-content-summary .quiet-button{font-size:11px;white-space:nowrap;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.detail-dialog[data-step="content"] .preview-area{background:var(--bg);isolation:auto}
.detail-dialog[data-step="content"] .preview-area:before{display:none}
.detail-dialog[data-step="content"] .preview-top{color:#687281;font-size:12px;padding:6px 4px 16px}
.detail-dialog[data-step="content"] .preview-bottom{display:none}
.detail-dialog[data-step="content"] .preview-stage{flex-direction:column;gap:20px;padding:15px;overflow:auto}
.reference-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;min-height:0;align-items:center}
.detail-dialog[data-step="content"] .reference-board[data-count="0"]{display:flex;flex:1;align-items:flex-end;justify-content:center}
.reference-board[data-count="0"]>.field-hint{margin:0;text-align:center}
.reference-board[data-count="1"]{grid-template-columns:minmax(0,1fr);max-width:640px}
.reference-board[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.reference-board figure{margin:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.reference-board figure>button{padding:0;position:relative;width:100%;background:#e8ebf0;border-radius:4px;overflow:hidden}
.reference-board img{width:100%;height:auto;max-height:58vh;object-fit:contain}
.reference-board figure>button>svg{position:absolute;right:9px;bottom:9px;width:25px;height:25px;padding:5px;background:#fffffff0;border-radius:3px;color:#626e7e}
.reference-board figcaption{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#626e7e}
.board-missing{display:grid;place-items:center;gap:12px;min-height:140px;color:#687281;background:#fff;font-size:12px}
.view-existing-result{font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#687281}
.generation-settings{border-top:1px solid var(--line);margin:0 0 18px;padding-top:12px}
.generation-settings summary{display:flex;align-items:center;gap:7px;cursor:pointer;color:#657181;font-size:12px;padding:5px 0 12px}
.generation-settings summary:before{content:'';display:block;flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
.generation-settings[open] summary:before{transform:rotate(45deg)}
.generation-settings summary svg{width:14px;height:14px}
.generation-settings summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.brand-settings-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain}
.brand-settings-dialog .settings-heading{position:sticky;top:0;z-index:1;background:var(--bg);padding:7px 0}
[data-brand-guidelines-content] .locked-palette{flex-wrap:wrap;gap:7px}
[data-brand-guidelines-content] .locked-palette>span{flex:none}
[data-brand-guidelines-content] .locked-palette small{flex:1;min-width:170px;margin-left:3px;line-height:1.6;color:#687281}
.brand-guidelines-source{font-size:11px;line-height:1.8;color:#687281;margin:12px 0 0;overflow-wrap:anywhere}
.brand-guidelines-source a,.brand-rule-section h3 a{color:#88604d;text-decoration:underline;text-underline-offset:3px}
.brand-guidelines-source a:focus-visible,.brand-rule-section h3 a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.brand-guidelines-details{margin-top:13px}
.brand-guidelines-details>summary,.brand-recipe-guide>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:12px;line-height:1.6;color:#657181;padding:7px 0}
.brand-guidelines-details>summary::-webkit-details-marker,.brand-recipe-guide>summary::-webkit-details-marker{display:none}
.brand-guidelines-details>summary:before,.brand-recipe-guide>summary:before,.generation-settings .brand-guidelines-details>summary:before,.generation-settings .brand-recipe-guide>summary:before{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
.brand-guidelines-details[open]>summary:before,.brand-recipe-guide[open]>summary:before,.generation-settings .brand-guidelines-details[open]>summary:before,.generation-settings .brand-recipe-guide[open]>summary:before{transform:rotate(45deg)}
.brand-guidelines-details>summary:focus-visible,.brand-recipe-guide>summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.brand-guidelines-body{margin-top:8px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;line-height:1.8;color:#596575}
.brand-guidelines-intro{margin-bottom:20px}
.brand-rule-section{margin:0 0 22px}
.brand-rule-section h3{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:1.6;font-weight:500;color:#465262;margin-bottom:7px}
.brand-rule-section h3 a{display:inline-flex;align-items:center;gap:3px;flex:none;font-size:10px;font-weight:400}
.brand-rule-section h3 a svg{width:10px;height:10px;transform:rotate(45deg)}
.brand-rule-section>p{margin:0 0 9px}
.brand-rule-section ul{padding-left:17px;margin:0}
.brand-rule-section li+li{margin-top:7px}
.brand-color-group{margin-top:15px}
.brand-color-group h4,.brand-recipe-guide h4{font-size:11px;line-height:1.6;font-weight:500;color:#465262;margin-bottom:8px}
.brand-color-group ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.brand-color-group li{display:flex;align-items:flex-start;gap:8px;min-width:0;margin:0!important}
.brand-color-group li>i{display:block;flex:none;width:22px;height:22px;margin-top:2px;background:var(--swatch);border:1px solid #d5d9e1;border-radius:50%}
.brand-color-group li>div{min-width:0}
.brand-color-group strong{font-size:11px;font-weight:400;color:#465262}
.brand-color-group code{display:block;font-family:inherit;font-size:10px;color:#687281;line-height:1.5}
.brand-color-group p{font-size:10px;line-height:1.6;color:#687281;margin:3px 0 0}
.brand-recipe-guide{padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:20px}
.brand-recipe-guide>section{padding:12px 0 8px}
.brand-recipe-guide p{margin:6px 0;font-size:11px;line-height:1.8}
.brand-recipe-scope{color:#687281}
.brand-recipe-guide dl{margin:10px 0 0}
.brand-recipe-guide dl>div{display:flex;align-items:baseline;gap:12px;padding:4px 0;font-size:10px;line-height:1.6}
.brand-recipe-guide dt{flex:1;min-width:0;color:#687281}
.brand-recipe-guide dd{flex:1;min-width:0;text-align:right;overflow-wrap:anywhere;color:#465262;margin:0}
.brand-guidelines-pending p{font-size:11px;line-height:1.8;margin-top:9px}
.brand-guidelines-pending strong{font-weight:500}
[data-brand-guidelines-content="editor"] .brand-color-group ul{grid-template-columns:1fr}
@media(max-width:480px){.brand-settings-dialog{max-height:calc(100dvh - 24px)}.brand-color-group ul{grid-template-columns:1fr}}
.generation-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#657181;padding:0 2px 12px;line-height:1.5}
.generation-summary>span{flex:none;white-space:nowrap}
.generation-summary small{min-width:0;text-align:right;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-dialog .orange-button:disabled,.detail-dialog .quiet-button:disabled{cursor:not-allowed}
.reference-viewer{width:min(1060px,calc(100vw - 36px));height:min(850px,calc(100dvh - 40px));max-width:none;max-height:none;border:0;border-radius:8px;background:var(--bg);padding:0;color:var(--ink);overflow:hidden}
.reference-viewer::backdrop{background:#141519c9;backdrop-filter:blur(3px)}
.reference-viewer[open]{display:flex;flex-direction:column}
.reference-viewer header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;flex:none}
.reference-viewer h1{font-size:17px;font-weight:400;overflow-wrap:anywhere;line-height:1.5}
.reference-viewer header p{font-size:11px;color:#687281;margin-top:4px}
.reference-viewer .round-button{flex:none}
.reference-viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px 22px;overflow:auto}
.reference-viewer-stage>img{max-width:100%;max-height:100%;object-fit:contain;width:auto;height:auto}
.reference-viewer footer{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;gap:16px;font-size:11px;color:#687281;flex:none}
.reference-viewer footer .quiet-button{font-size:12px;padding:7px}
.reference-viewer footer .quiet-button:disabled{cursor:default}
.reference-card img.transparent-photo,.selected-reference img.transparent-photo,.reference-board img.transparent-photo,.reference-viewer img.transparent-photo{background-color:#fff;background-image:conic-gradient(#d9dee6 25%,#fff 0 50%,#d9dee6 0 75%,#fff 0);background-size:16px 16px}
@media(max-width:1100px){.detail-shell .detail-panel{width:340px}.reference-library{padding:20px 20px 0}.reference-library .visual-choices{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.reference-board{gap:12px}.reference-board figcaption{font-size:11px}}
@media(max-width:860px){
 .detail-dialog{padding:36px 14px 14px;overflow:hidden}
 .detail-shell{gap:12px}
 .editor-header{flex-direction:column;align-items:stretch;gap:0;padding:0 17px}
 .editor-header .panel-heading{padding:13px 0 4px}
 .editor-header .panel-heading h1{font-size:21px}
 .editor-header .panel-heading>span{display:none}
 .editor-header .panel-tabs{width:100%;gap:7px}
 .editor-header .panel-tabs button{padding:12px 3px;font-size:11px}
 .detail-shell>.detail-layout{flex-direction:column;gap:12px;min-height:0;height:0}
 .detail-shell .detail-panel{width:100%;flex:1;min-height:0}
 .detail-shell .panel-scroll{overflow-y:auto;padding:16px}
 .detail-shell .panel-footer{padding:10px 16px 13px}
 .reference-library{padding:16px 16px 0;flex:1;min-height:0}
 .reference-library-heading h2{font-size:23px}
 .reference-library-heading p{font-size:11px;margin-top:4px}
 .reference-library #reference-library-controls{margin-top:12px}
 .reference-library-scroll{margin-top:12px;padding-bottom:16px}
 .reference-library .visual-choices{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
 .reference-library .reference-filters input{font-size:12px;padding:10px}
 .reference-library .reference-filters #visual-category{font-size:11px;flex-basis:39%;width:39%;padding:10px 7px}
 .detail-dialog[data-step="visual"] .detail-panel{flex:none;max-height:215px}
 .detail-dialog[data-step="visual"] .panel-scroll{padding:12px 16px 16px;overflow-y:auto}
 .detail-dialog[data-step="visual"] .generation-intro,.detail-dialog[data-step="visual"] .reference-purpose,.detail-dialog[data-step="visual"] .brand-applied{display:none}
 .detail-dialog[data-step="visual"] .field-label{margin-bottom:8px}
 .detail-dialog[data-step="visual"] .selected-reference-list{flex-direction:row;overflow-x:auto;gap:8px;margin:0 0 6px}
 .detail-dialog[data-step="visual"] .selected-reference{width:185px;flex:none;padding:7px;gap:7px}
 .detail-dialog[data-step="visual"] .selected-reference-view{width:47px;height:48px}
 .detail-dialog[data-step="visual"] .selected-reference>div>span{font-size:10px;-webkit-line-clamp:2}
 .detail-dialog[data-step="visual"] .reference-remove{padding:2px}
 .detail-dialog[data-step="visual"] #reference-limit{font-size:10px;margin:0;line-height:1.5}
 .detail-shell .preview-area{height:220px;max-height:none;min-height:0;flex:none;padding:12px}
 .detail-dialog[data-step="content"] .preview-stage{min-height:0;padding:0 5px;gap:8px}
 .detail-dialog[data-step="content"] .preview-top{padding:0 4px 9px;font-size:10px}
 .reference-board{gap:12px}
 .reference-board[data-count="1"]{max-width:230px}
 .reference-board figure{gap:5px}
 .reference-board img{height:145px;max-height:none;object-fit:contain}
 .reference-board figcaption{font-size:10px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
 .view-existing-result{font-size:10px}
 .detail-dialog:not([data-step="content"]):not([data-step="visual"]) .preview-area{height:230px}
 .generation-summary{padding-bottom:8px}
}
@media(max-width:420px){.reference-library .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reference-card-select .reference-card-name{font-size:10px;padding:7px 8px;min-height:45px}.reference-card-view{bottom:52px;font-size:10px;padding:5px}.reference-board{gap:7px}.reference-board img{height:120px}.detail-shell .preview-area{height:190px}.reference-viewer header{padding:14px 16px}.reference-viewer footer{padding:12px 14px;gap:8px}.reference-viewer footer>span{font-size:10px}}

.reference-card-select .reference-card-name{display:block;height:56px;min-height:56px;padding:9px 12px}
.reference-card-name>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.preview-stage.preview-actual-size{display:block;overflow:auto}
.preview-stage.preview-actual-size>img{max-width:none;max-height:none;width:auto;height:auto;margin:0 auto}
.copy-assist-actions{display:flex;align-items:center;gap:6px;flex:none}
.copy-source-help{position:relative;display:inline-flex;align-items:center}
.copy-source-info{display:grid;place-items:center;width:24px;height:24px;padding:4px;color:#788394}
.copy-source-info>span{display:grid;place-items:center;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;font-size:10px;line-height:1;font-weight:600}
.copy-source-tooltip{position:absolute;right:0;top:calc(100% + 6px);width:max-content;max-width:min(290px,calc(100vw - 80px));padding:8px 10px;border-radius:5px;background:var(--ink);color:#fff;font-size:11px;line-height:1.6;white-space:normal;visibility:hidden;z-index:5}
.copy-source-help:not([data-dismissed="true"]):hover .copy-source-tooltip,.copy-source-help:not([data-dismissed="true"]):focus-within .copy-source-tooltip{visibility:visible}
.copy-source-help::after{content:"";position:absolute;top:100%;right:0;width:100%;height:7px}
.copy-editor-controls{display:flex;align-items:center;gap:8px;margin-bottom:9px;min-height:20px}
.copy-editor-controls select{min-width:0;flex:1;margin:0}
.copy-editor-close{padding:4px;margin-left:auto;flex:none}
.copy-editor-close svg{width:14px;height:14px}
.copy-suggestion{padding:0;border:0;min-width:0;margin:0}
.copy-version{border:1px solid #e0e4eb;border-radius:5px;padding:9px;margin-bottom:10px;cursor:pointer}
.copy-version.selected{border-color:var(--orange)}
.copy-version-heading{display:flex!important;align-items:center;gap:7px!important;margin:0!important;font-size:11px!important;color:#687281!important}
.copy-version-heading input{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin:0;padding:0;border:1.5px solid #c7ced8;border-radius:50%;background:#fff;accent-color:var(--orange);flex:none;cursor:pointer}
.copy-version-heading input:checked{border-color:var(--orange);background-image:radial-gradient(circle,var(--orange) 0 3px,transparent 3.5px)}
.copy-version-heading .copy-language-choice{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;color:#687281;cursor:pointer}
.copy-version-heading .copy-apply-button{margin-left:auto;flex:none;min-height:34px;padding:8px 12px;font-size:12px;font-weight:600;border:1px solid #b83b18;background:#cf421c;color:#fff;opacity:1;cursor:pointer;white-space:nowrap}
.copy-version-heading .copy-apply-button:enabled:hover{background:#b83b18;border-color:#a13214;box-shadow:0 2px 4px #0e05221a}
.copy-version-heading .copy-apply-button:enabled:focus-visible{outline:2px solid #963413;outline-offset:3px;background:#b83b18;border-color:#a13214}
.copy-version-heading .copy-apply-button:disabled{background:#dce1e8;color:#8993a0;border-color:#d2d9e2;opacity:1;cursor:not-allowed;box-shadow:none}
.ai-copy-editor[aria-busy="true"] .copy-apply-button:disabled{cursor:wait}
.copy-version textarea{margin-top:8px!important;cursor:text}
.copy-version .copy-part-label{margin:12px 0 0;font-size:11px;color:#687281}
.copy-version textarea{min-height:64px}
.copy-content .copy-module-label{font-size:10px;font-weight:400;letter-spacing:.7px;color:#929baa}
.copy-content>.ai-copy-editor{margin-top:0}
.copy-confirmed-fields>label{display:block;margin:14px 0 8px;font-size:11px;color:#929baa}
.copy-confirmed-fields>label:first-child{margin-top:0}
.copy-confirmed-fields>textarea:last-child{min-height:70px}
.copy-suggestion-actions{flex-wrap:nowrap;gap:6px;margin-top:8px}
.copy-suggestion-actions>button{white-space:nowrap;flex:none;min-height:32px;display:inline-flex;align-items:center;justify-content:center}
.copy-suggestion-actions .copy-generate-button{margin:0 auto 0 0;padding:8px 10px}
.copy-suggestion-actions .copy-discard-button{font-size:11px;padding:8px 2px}
.copy-suggestion-actions .orange-button{padding:8px 10px}
.ai-copy-editor[aria-busy="true"] .copy-generate-button{cursor:wait}
@media(max-width:420px){.reference-card-select .reference-card-name{height:46px;min-height:46px;padding:7px 8px}}

/* Social output selection and the multi-image canvas. */
.canvas-download{margin-top:9px}
.download-all-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:10px 14px;border:1px solid #d5dae2;border-radius:22px;background:#fff;color:#596575;font-size:12px;line-height:1.2}
.download-all-button:hover:enabled{border-color:#adbac8;background:#f9fafc}
.download-all-button:disabled{cursor:not-allowed}
.download-all-button[aria-busy="true"]{cursor:wait}
.download-all-button svg{width:14px;height:14px}
.canvas-download>.field-hint{text-align:center;margin-top:6px}
.canvas-download>.generation-error{margin:7px 0 0}
.generation-formats{border:0;padding:0;margin:0 0 24px;min-width:0}
.generation-formats>legend{display:flex;align-items:center;gap:4px;position:relative;width:100%;font-size:11px;color:#737f91;padding:0;margin-bottom:8px;letter-spacing:.4px}
.generation-formats .copy-source-help{position:static}
.generation-formats-help .copy-source-tooltip{left:0;right:auto;top:calc(100% + 6px);bottom:auto;max-width:100%;letter-spacing:normal;text-transform:none;text-align:left}
.generation-formats .copy-source-help::after{top:100%;bottom:auto;left:0;right:auto;width:100%;height:7px}
.generation-format-count{font-size:11px;color:#5e6877;margin:0 0 8px}
.social-platform{border:1px solid #dce1e8;border-radius:6px;margin-top:7px;overflow:hidden;background:#ffffff70}
.social-platform>summary{display:flex;align-items:center;gap:10px;padding:11px 12px;cursor:pointer;font-size:12px;font-weight:600;color:#566171;list-style:none}
.social-platform>summary:after{content:'⌄';font-weight:400;font-size:15px;line-height:1;transform:rotate(-90deg)}
.social-platform[open]>summary:after{transform:none}
.social-platform>summary::-webkit-details-marker{display:none}
.social-platform>summary>small{margin-left:auto;color:#8b6470;font-size:10px;font-weight:400}
.social-platform>summary:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
.social-platform>div{padding:0 10px 5px}
.social-size-option{display:flex;align-items:center;gap:9px;padding:9px 2px!important;border-top:1px solid #e5e8ed;font-size:12px!important;color:#596575!important;cursor:pointer}
.social-size-option>input{width:16px;height:16px;flex:none;accent-color:var(--orange)}
.social-size-option>span{display:flex;flex-direction:column;gap:4px;line-height:1.3}
.social-size-option small{font-size:10px;color:#858e9b;font-variant-numeric:tabular-nums}
.social-size-option:has(input:checked){color:#af4b2e!important}
.detail-dialog.multi-output-mode .preview-area{background:#292333;isolation:isolate}
.detail-dialog.multi-output-mode .preview-area:before{display:none}
.detail-dialog.multi-output-mode .preview-top{color:#d5cfdf;font-size:11px;padding:3px 3px 16px;gap:16px;align-items:start}
.detail-dialog.multi-output-mode .preview-bottom{display:flex}
.preview-stage.output-stage{display:block!important;overflow:auto!important;padding:4px 4px 16px!important;min-height:0;align-content:start}
.output-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px;width:100%;align-items:start}
.output-board[data-count="1"]{grid-template-columns:minmax(0,1fr);max-width:640px;margin:auto}
.output-card{background:#fff;border-radius:6px;overflow:hidden;min-width:0;color:#515b69}
.output-card>header{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:13px 14px;border-bottom:1px solid #e8eaf0}
.output-card h2{font-size:12px;font-weight:500;line-height:1.5;color:#4e5969;overflow-wrap:anywhere}
.output-card header p{font-size:10px;color:#8a929d;margin-top:4px;font-variant-numeric:tabular-nums;line-height:1.5}
.output-status{font-size:10px;white-space:nowrap;background:#eef0f4;padding:3px 6px;border-radius:3px;color:#7b6570}
.output-status.ready{color:#4f7662;background:#eef4ef}
.output-art{display:grid;place-items:center;padding:14px;background:#e5e4eb;min-height:110px}
.output-art>button{padding:0;width:100%;position:relative;display:grid;place-items:center;aspect-ratio:var(--output-ratio);background:#f6f8ff}
.output-art img{width:100%;height:100%;object-fit:contain;max-height:460px;aspect-ratio:var(--output-ratio)}
.output-art button>svg{position:absolute;right:8px;bottom:8px;width:25px;height:25px;background:#fffffff0;color:#697486;padding:5px;border-radius:4px}
.output-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;aspect-ratio:var(--output-ratio);min-height:100px;width:100%;font-size:11px;line-height:1.7;text-align:center;color:#737c8a;padding:20px;background:#eef0f4}
.output-placeholder>svg{width:26px;height:26px;color:#a5acb7}
.output-card>footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px}
.output-card .quiet-button,.output-download{font-size:11px;padding:4px 0;color:#727b8a}
.output-download{display:flex;gap:4px;align-items:center;color:#a95537}
.output-download svg{width:14px;height:14px}
.output-stale-note{font-size:12px;color:#f2d7bd;line-height:1.7;padding:16px 2px}
.local-file-mode{margin:0;min-height:100vh;display:grid;place-items:center;padding:24px}
.local-file-mode> :not(#local-file-notice){display:none!important}
.local-file-notice{width:min(100%,560px);padding:40px;background:#fff;border-radius:12px;text-align:left;color:#586372}
.local-file-notice>img{width:125px;height:auto;display:block;margin-bottom:32px}
.local-file-notice h1{font-size:25px;font-weight:400;line-height:1.4}
.local-file-notice p{font-size:14px;line-height:1.8;color:#657184;margin:16px 0 24px}
.local-file-notice a:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.output-viewer footer .orange-button{padding:10px 18px;font-size:12px;display:block}
@media(max-width:760px){.detail-dialog.multi-output-mode .preview-area{height:300px!important}.output-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.output-card>header{padding:9px;gap:6px;flex-wrap:wrap}.output-art{padding:8px}.output-card h2{font-size:10px}.output-card header p{font-size:9px}.output-card>footer{padding:8px;flex-wrap:wrap;gap:6px}.output-card .quiet-button,.output-download{font-size:10px}.output-placeholder{padding:10px;font-size:10px}}
@media(max-width:420px){.detail-dialog.multi-output-mode .preview-area{height:270px!important}.output-board{gap:9px}.output-status{font-size:9px}.output-card h2{font-size:10px}.detail-dialog.multi-output-mode .preview-top{font-size:10px;padding-bottom:10px}.output-viewer footer{flex-wrap:wrap}}

/* Every output uses the same preview frame; the image keeps its own ratio. */
.output-card>header{height:88px;min-height:88px;overflow:hidden;flex-wrap:nowrap}
.output-card>header>div{min-width:0}
.output-card h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.output-art{height:clamp(210px,35dvh,430px);min-height:0}
.output-art>button{position:relative;height:100%;min-height:0;aspect-ratio:auto}
.output-art img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain}
.output-placeholder{height:100%;min-height:0;aspect-ratio:auto;overflow:auto}
.output-card>footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);height:54px;min-height:54px;gap:8px;padding:8px 12px;flex-wrap:nowrap}
.output-card>footer>button{justify-self:start}
.output-card>footer>.output-download{justify-self:end;white-space:nowrap}
.output-edit-slot{justify-self:center}
.output-card .image-edit-entry{background:#eef0f4;color:#4d596a;border-radius:18px;min-height:32px;padding:7px 10px;white-space:nowrap}
.output-card .image-edit-entry:hover{background:#e3e6ec}
.generation-progress-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.generation-progress-meta #generation-phase{min-width:0;overflow-wrap:anywhere;line-height:1.55}
.generation-progress-meta #generation-elapsed{white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.55}
.generation-model{text-align:right;font-size:10px;line-height:1.6;color:#758092;margin-top:7px}
.single-output-result{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;height:100%;min-height:0}
.single-output-image{position:relative;display:block;min-height:0;flex:1;width:100%;padding:0}
.single-output-image img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.single-output-result>.image-edit-entry{flex:none;background:#fff;color:#586475;border-radius:18px;padding:8px 18px;font-size:12px}
.preview-stage.preview-actual-size .single-output-result{width:max-content;height:auto;min-width:100%}
.preview-stage.preview-actual-size .single-output-image{width:auto;flex:none}
.preview-stage.preview-actual-size .single-output-image img{position:static;width:auto;height:auto;max-width:none;max-height:none}
.output-viewer footer .image-edit-entry{background:#fff;border-radius:18px;padding:10px 18px;color:#586475}

.image-edit-dialog{position:fixed;inset:0;margin:auto;width:min(1200px,calc(100vw - 48px));height:calc(100dvh - 48px);max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:12px;background:var(--bg);color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.image-edit-dialog::backdrop{background:#141519c9}
.image-edit-dialog[open]{display:flex;flex-direction:column}
.image-edit-heading{padding:14px 20px;display:flex;align-items:center;gap:16px;flex:0 0 auto;border-bottom:1px solid var(--line)}
.image-edit-title-group{flex:1;min-width:0}
.image-edit-heading h1{font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.image-edit-heading p{font-size:11px;color:#667284;margin-top:3px;line-height:1.5}
.image-edit-heading .round-button{flex:none;color:#697486}
.image-edit-toolbar{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.image-edit-toolbar select{min-width:84px;max-width:130px;border:1px solid #d6dde7;background:#fff;border-radius:6px;padding:8px 26px 8px 10px;color:#4d596a;font-size:12px;line-height:1.4}
.image-edit-toolbar .orange-button{padding:9px 13px;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:12px;min-height:34px}
.image-edit-toolbar .orange-button svg{width:14px;height:14px}
.annotation-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 10px;background:#fff;border:1px solid #d6dde7;border-radius:6px;font-size:12px;white-space:nowrap;color:#667284}
.annotation-toggle svg{width:17px;height:17px}
.annotation-toggle[aria-pressed="true"]{background:#fff0e9;border-color:var(--orange);color:#b54f2b}
.image-edit-annotation-tools{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap;min-height:25px;color:#6a7788;font-size:11px}
.image-edit-annotation-tools>p{flex:1;min-width:180px;line-height:1.6}
.image-edit-annotation-tools .quiet-button{padding:5px 7px;font-size:11px}
.annotation-region-list{display:flex;gap:4px}
.annotation-region-list button{width:24px;height:24px;border-radius:50%;background:#fff;color:#a95535;font-size:11px;border:1px solid #e4c8bc}
.annotation-region-list button[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:#fff}
.image-edit-scroll{display:flex;flex-direction:column;gap:12px;flex:1 1 0;min-height:0;overflow:hidden;padding:16px 20px 12px}
.image-edit-preview{position:relative;flex:1 1 0;min-height:0;height:auto;background:#e8e9ee;border-radius:6px}
.image-edit-preview img{position:absolute;inset:12px 12px 58px;width:calc(100% - 24px);height:calc(100% - 70px);min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.image-edit-annotation-action{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;justify-content:center}
.image-edit-annotations{position:absolute;display:block;overflow:visible;pointer-events:none;fill:none;stroke:none;touch-action:none}
.image-edit-annotations.active{pointer-events:auto;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m3 17-1 5 5-1L21 7l-4-4Z' fill='white' stroke='%23a95536' stroke-width='1.5'/%3E%3Cpath d='m14 6 4 4M3 17l4 4' fill='none' stroke='%23a95536' stroke-width='1.5'/%3E%3C/svg%3E") 2 22,crosshair}
.image-edit-annotations:focus{outline:none}
.image-edit-annotations:focus-visible{outline:2px solid #ff653866;outline-offset:3px}
.image-edit-annotations ellipse{fill:#ff65380d;stroke:var(--orange);stroke-width:2;vector-effect:non-scaling-stroke}
.image-edit-annotations .active-region ellipse{stroke-width:3}
.image-edit-annotations .pencil-stroke{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.image-edit-annotations .pencil-stroke.closed{fill:#ff653808}
.image-edit-annotations .active-region .pencil-stroke{stroke-width:3}
.image-edit-annotations circle{fill:var(--orange);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.image-edit-annotations text{fill:#fff;stroke:none;font-family:Arial,sans-serif;font-weight:600;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.image-edit-annotations.active [data-region-index]{cursor:inherit}
.image-edit-region-note{display:block;font-size:10px;margin-bottom:3px;color:#a55a3b}
.toast{inset:auto auto 24px 50%;width:max-content;max-width:90vw;margin:0;border:0}
.work-save-error{font-size:11px;line-height:1.7;color:#a95536;margin:8px 0 12px}
.work-save-error .quiet-button{color:#a95536;text-decoration:underline}
.image-edit-chat-scroll{flex:0 1 auto;min-height:0;max-height:17dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;width:min(760px,100%);align-self:center}
.image-edit-messages{list-style:none;margin:0;padding:0 2px;display:flex;flex-direction:column;gap:12px}
.image-edit-message{max-width:85%;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.image-edit-message>span{display:block;color:#6c7788;font-size:10px;margin-bottom:3px}
.image-edit-message p{white-space:pre-wrap}
.image-edit-message.user{align-self:flex-end;background:#fff;padding:9px 13px;border-radius:12px 12px 3px 12px;color:#4b5768}
.image-edit-message.assistant{align-self:flex-start;padding:2px 0;color:#4b5768}
.image-edit-message.pending{opacity:.75}
.image-edit-bottom{flex:0 0 auto;width:min(760px,calc(100% - 40px));margin:0 auto;padding:0 0 14px;background:var(--bg)}
.image-edit-progress{padding:0 2px 10px;font-size:11px;color:#586475}
.image-edit-progress>div:first-child{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:7px;line-height:1.5}
#image-edit-phase{min-width:0;overflow-wrap:anywhere;max-height:34px;overflow:auto}
#image-edit-percent{white-space:nowrap;font-variant-numeric:tabular-nums}
.image-edit-progress .quiet-button{padding:8px 0 0;font-size:11px;color:#a95536}
.image-edit-bottom>.generation-error{margin:0 0 8px;font-size:11px;line-height:1.6;max-height:38px;overflow:auto}
.image-edit-composer{display:flex;align-items:flex-end;gap:12px;padding:10px 12px 10px 18px;border:1px solid #cfd5df;border-radius:24px;background:#fff;box-shadow:0 2px 8px #00000008}
.image-edit-composer:focus-within{border-color:#c7866e;outline:2px solid #ff653866;outline-offset:0}
.image-edit-composer textarea{flex:1;min-width:0;min-height:46px;max-height:104px;width:100%;resize:vertical;border:0;background:transparent;padding:3px 0;color:#4d596a;line-height:1.55;font-size:14px;outline-offset:4px}
.image-edit-composer textarea:focus-visible{outline:none}
.image-edit-composer textarea::placeholder{color:#8993a2}
.image-edit-composer>button{flex:none;width:36px;height:36px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center}
.image-edit-composer>button svg{width:19px;height:19px}
.image-edit-composer>button:disabled{background:#aab1bc;opacity:1;cursor:default}
.image-edit-dialog button:disabled{cursor:not-allowed}
.image-edit-meta{display:flex;justify-content:space-between;gap:12px;margin:7px 2px 0;color:#687487;font-size:10px;line-height:1.5}
.image-edit-meta>span{flex:none;text-align:right;white-space:nowrap}
.qr-selection{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid #dde2ea;border-radius:6px}
.qr-selection>img,.qr-missing-image{width:64px;height:64px;flex:none;object-fit:contain;background:#fff}
.qr-missing-image{display:grid;place-items:center;color:#9aa4b2;border:1px dashed #d2d8e2}
.qr-selection>div{min-width:0}
.qr-selection strong{display:block;font-size:12px;font-weight:500;color:#596678;overflow-wrap:anywhere;line-height:1.5}
.qr-selection-actions{display:flex;gap:16px;margin-top:8px}
.qr-selection-actions button{padding:3px 0;font-size:11px;color:#a45638;text-decoration:underline;text-underline-offset:3px}
.qr-selection-actions button:last-child{color:#727d8e}
.qr-code-dialog{width:min(700px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:10px;background:var(--bg);color:var(--ink);overflow:hidden}
.qr-code-dialog::backdrop{background:#141519c9}
.qr-code-dialog[open]{display:flex;flex-direction:column}
.qr-code-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;gap:18px;flex:none}
.qr-code-heading h1{font-size:21px;font-weight:400;line-height:1.5}
.qr-code-heading p{font-size:12px;color:#6e7a8b;margin-top:5px;line-height:1.6}
.qr-code-heading .round-button{flex:none}
.qr-code-scroll{padding:0 24px 24px;overflow:auto;min-height:0}
.qr-code-scroll fieldset{border:0;margin:0;padding:0}
.qr-code-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.qr-code-option{position:relative;display:flex;flex-direction:column;gap:12px;padding:12px;background:#fff;border:1px solid #dce1e9;border-radius:6px;cursor:pointer;min-width:0}
.qr-code-option.selected{border:2px solid var(--orange);padding:11px}
.qr-code-option>input{width:16px;height:16px;position:absolute;right:10px;top:10px;accent-color:var(--orange)}
.qr-code-option>img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff}
.qr-code-name{font-size:12px;color:#5e6b7d;text-align:center;line-height:1.6;overflow-wrap:anywhere}
.qr-code-check{display:none;align-items:center;justify-content:center;gap:3px;font-size:10px;color:#b94c29}
.qr-code-check svg{width:13px;height:13px}
.qr-code-option.selected .qr-code-check{display:flex}
.qr-code-option:focus-within{outline:2px solid var(--orange);outline-offset:3px}
.qr-code-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line);flex:none}
.qr-code-footer>p{font-size:11px;color:#657285;line-height:1.6}
.qr-code-footer>div{display:flex;align-items:center;gap:14px;flex:none}
.qr-code-footer .quiet-button{font-size:12px;color:#657285;padding:8px 0}
.qr-code-footer .orange-button{display:flex;align-items:center;gap:7px;font-size:12px;padding:10px 15px;white-space:nowrap}
.qr-code-footer .orange-button svg{width:14px;height:14px}
.composition-trigger{display:flex;align-items:center;gap:12px;width:100%;padding:10px 13px;background:#fff;border:1px solid transparent;border-radius:5px;text-align:left;color:#556174;font-size:13px;min-height:56px}
.composition-trigger>span:first-child{flex:1;min-width:0}
.composition-thumbnail{width:48px;height:36px;flex:none;stroke-width:1.1;color:#83909f;fill:none;stroke:currentColor}
.composition-trigger .composition-thumbnail{width:44px;height:33px}
.composition-chevron{width:8px;height:8px;border-bottom:1.5px solid #8b96a5;border-right:1.5px solid #8b96a5;transform:rotate(45deg);margin:-3px 2px 0 1px;flex:none}
.composition-dialog{width:min(440px,calc(100vw - 28px));max-width:none;max-height:min(840px,calc(100dvh - 40px));padding:0;border:0;border-radius:10px;background:var(--bg);color:var(--ink);overflow:hidden}
.composition-dialog::backdrop{background:#141519c9}
.composition-dialog[open]{display:flex;flex-direction:column}
.composition-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;flex:none}
.composition-dialog h1{font-size:20px;font-weight:400;line-height:1.5}
.composition-dialog header p{font-size:11px;color:#6e7a8b;line-height:1.6;margin-top:4px}
.composition-dialog .round-button{flex:none}
.composition-options-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 14px 14px;scrollbar-width:thin}
.composition-options-scroll fieldset{border:0;padding:0;margin:0}
.composition-option{position:relative;display:flex;align-items:center;gap:12px;min-height:53px;padding:8px 12px;border-radius:5px;cursor:pointer;color:#626f80}
.composition-option+.composition-option{margin-top:2px}
.composition-option:hover{background:#ffffffa6}
.composition-option.selected{background:#fff0e9;color:#a85030}
.composition-option>input{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0}
.composition-option:focus-within{outline:2px solid var(--orange);outline-offset:-2px}
.composition-choice-check{width:17px;height:17px;border:1px solid #c9d1dc;border-radius:50%;display:grid;place-items:center;flex:none}
.composition-choice-check svg{display:none;width:12px;height:12px;stroke-width:2}
.composition-option.selected .composition-choice-check{border-color:var(--orange);background:var(--orange);color:#fff}
.composition-option.selected .composition-choice-check svg{display:block}
.composition-choice-name{flex:1;font-size:13px;line-height:1.5;min-width:0}
.composition-option.selected .composition-thumbnail{color:#b66a49}
.composition-dialog>footer{border-top:1px solid var(--line);padding:14px 20px 18px;flex:none}
.composition-dialog footer p{font-size:11px;line-height:1.7;color:#6b788a;min-height:37px;margin-bottom:12px}
.composition-dialog footer .orange-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-size:12px;padding:11px 16px}
.composition-dialog footer .orange-button svg{width:14px;height:14px}
.copy-main-input{position:relative;background:#fff;border-radius:3px;overflow:hidden}
.copy-main-input>textarea{display:block;min-height:150px}
.copy-main-input:has(.copy-assist-actions)>textarea{padding-bottom:44px}
.copy-main-input:focus-within{outline:2px solid #ff653866;outline-offset:2px}
.copy-main-input>textarea:focus-visible{outline:none}
.copy-main-input>.copy-assist-actions{position:absolute;top:0;left:0;right:auto}
.copy-main-input .ai-edit-button{min-height:28px;background:#f2f3f6;color:#a95a3c;padding:6px 11px;font-size:11px}
.copy-assist-mirror{position:absolute;top:0;left:0;box-sizing:border-box;visibility:hidden;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word}
@media(max-width:600px){
 .output-board{grid-template-columns:minmax(0,1fr)}
 .output-art{height:clamp(210px,34dvh,350px)}
 .image-edit-dialog{width:calc(100vw - 24px);height:calc(100dvh - 32px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border-radius:10px}
 .image-edit-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 14px}
 .image-edit-heading .round-button{grid-column:2;grid-row:1}
 .image-edit-toolbar{grid-column:1/-1;grid-row:2;gap:9px}
 .image-edit-toolbar .orange-button{margin-left:auto}
 .image-edit-toolbar select{padding-top:7px;padding-bottom:7px}
 .image-edit-scroll{padding:10px 12px;gap:9px}
 .image-edit-preview img{inset:8px 8px 54px;width:calc(100% - 16px);height:calc(100% - 62px)}
 .image-edit-annotation-action{bottom:8px}
 .image-edit-bottom{width:calc(100% - 24px);padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .image-edit-composer{padding:8px 10px 8px 14px;gap:8px}
 .image-edit-composer textarea{font-size:13px}
 .image-edit-meta{flex-wrap:wrap;gap:3px}
 .image-edit-meta>span{text-align:left}
 .qr-code-heading{padding:18px 16px}
 .qr-code-scroll{padding:0 16px 18px}
 .qr-code-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .qr-code-footer{padding:14px 16px;flex-wrap:wrap}
 .qr-code-footer>div{margin-left:auto}
}

@media(max-height:600px){
 .image-edit-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .image-edit-heading{padding-top:8px;padding-bottom:8px}
 .image-edit-heading p{display:none}
 .image-edit-heading h1{font-size:14px}
 .image-edit-scroll{padding-top:8px;padding-bottom:8px;gap:8px}
 .image-edit-chat-scroll{max-height:14dvh}
 .image-edit-composer{padding-top:7px;padding-bottom:7px}
 .image-edit-composer textarea{max-height:64px;min-height:40px;font-size:12px}
 .image-edit-bottom{padding-bottom:8px}
 .image-edit-meta{font-size:9px;margin-top:5px}
}
@media(max-width:360px){.image-edit-heading h1{font-size:14px}.image-edit-heading p{font-size:10px}}
@media(max-height:380px){
 .image-edit-heading{padding:6px 12px;gap:6px}
 .image-edit-scroll{padding-top:6px;padding-bottom:6px;gap:6px}
 .image-edit-chat-scroll{max-height:10dvh}
 .image-edit-bottom{max-height:35dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 3px 6px}
 .image-edit-composer{margin:2px 1px}
}

/* Keep text and dropdown chevrons equally inset from the control edges. */
select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:var(--select-chevron,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m1 4 5 5 5-5' fill='none' stroke='%23778395' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));background-repeat:no-repeat;background-position:right var(--select-inset,12px) center;background-size:12px 12px;padding-left:var(--select-inset,12px);padding-right:calc(var(--select-inset,12px) + 24px)}
select.content-filter-more,select.more-types{--select-inset:10px}
select.more-types.selected{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m1 4 5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media(forced-colors:active){select:not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none}}

.visual-style-modes + .visual-style-trigger{margin-top:10px}

.copy-mode-heading{position:relative;margin-bottom:14px}
.copy-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;width:100%}
.copy-mode-tabs>[role="tab"]{position:relative;flex:1;min-width:0;padding:20px 6px;border:0;color:#929aa7;font-size:12px;line-height:1.5;white-space:nowrap}
.copy-mode-tabs>[data-copy-mode="ai"]{padding-right:38px}
.copy-mode-tabs>[role="tab"][aria-selected="true"]{color:#c37f60}
.copy-mode-tabs>[role="tab"][aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:5px;right:5px;height:2px;background:var(--orange)}
.copy-mode-tabs>[role="tab"]:hover{color:#c37f60}
.copy-mode-tabs>[role="tab"]:disabled{opacity:.55;cursor:default}
.copy-mode-tabs>[role="tab"]:focus-visible{outline:2px solid #a95a3c;outline-offset:4px;border-radius:2px}
.copy-mode-help{position:absolute;left:calc((100% - 12px)/4 + 4px);top:17px}
.copy-mode-help .copy-source-tooltip{left:0;right:auto;max-width:min(260px,calc(100vw - 100px))}
@media(max-width:640px){.copy-mode-tabs{gap:7px}.copy-mode-tabs>[role="tab"]{padding:12px 3px;font-size:11px}.copy-mode-tabs>[data-copy-mode="ai"]{padding-right:35px}.copy-mode-help{left:calc((100% - 7px)/4 + 3.5px);top:8px}}
@media(forced-colors:active){.copy-version-heading input{appearance:auto;-webkit-appearance:auto;background-image:none;accent-color:auto}.copy-mode-tabs>[role="tab"][aria-selected="true"]{color:Highlight}}
.automatic-copy-status{padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:6px;color:#535d6b;font-size:12px;line-height:1.7}
.automatic-copy-status strong{display:block;font-size:13px;font-weight:500;color:#9b482d}
.automatic-copy-status p{margin-top:4px}
