:root{font:14px/1.5 'Segoe UI',system-ui,sans-serif;color:#22334b;background:#f5f7fa;--teal:#087f8c;--muted:#7d8c9f;--line:#dfe7f0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #37b7bd80;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:15px}h3{font-size:12px;margin-bottom:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:26px 15px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;font-size:16px;font-weight:800;margin:0 6px 39px;white-space:nowrap}.brand-mark{position:relative;width:25px;height:30px;flex-shrink:0}.brand-mark i{position:absolute;width:24px;height:12px;border-radius:4px;transform:skewY(-25deg);background:#32c4cd;top:0}.brand-mark i:nth-child(2){top:8px;background:#61a4e5}.brand-mark i:nth-child(3){top:16px;background:#7755d8}.nav-label{font-size:9px;letter-spacing:1.8px;color:#8390a4;margin:0 10px 12px;font-weight:650}.nav-item{display:flex;align-items:center;gap:10px;padding:13px 10px;border-radius:9px;font-size:11px;color:#708098;margin-bottom:5px}.nav-item>span:first-child{font-size:23px;width:23px;text-align:center}.nav-item svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.3;flex-shrink:0}.nav-item small{display:block;font-size:9px;margin-top:3px;font-weight:400;color:#8194a6}.nav-item:hover{background:#f5f8fa}.nav-item.active{background:#e6f5f3;color:#087f8c;font-weight:650}.divider{height:1px;background:var(--line);margin:24px 0}.history-heading{display:flex;align-items:center;justify-content:space-between}.history-heading .nav-label{margin-bottom:0}.project-list{overflow:auto;min-height:0;margin-top:12px}.history-entry{padding:5px 0;display:grid;grid-template-columns:minmax(0,1fr) 25px;border-radius:8px}.history-entry.active{background:#f0f5f9}.history-open{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:6px;text-align:left;min-width:0;color:#22334b;cursor:pointer}.history-open img{width:34px;height:43px;object-fit:contain;background:#f3f6f9;border-radius:4px}.history-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.history-open small{display:block;font-size:8px;color:var(--muted);margin-top:4px}.history-menu{grid-column:1/-1;display:flex;gap:5px;padding:5px}.history-menu button{flex:1;border:1px solid var(--line);padding:6px;border-radius:6px;background:white;font-size:10px}.history-menu button:last-child{color:#b1495d}main{margin-left:224px}header{min-height:72px;border-bottom:1px solid var(--line);background:white;padding:15px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-size:11px;color:#7d8ea4}.breadcrumb span{margin:0 13px;color:#bcc7d4}.top-actions{display:flex;align-items:center;gap:8px}.button{border:1px solid transparent;border-radius:8px;background:var(--teal);color:white;padding:10px 15px;font-size:11px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:38px}.button:hover:not(:disabled){filter:brightness(.96)}.button.secondary{border-color:#d6e1ed;color:#284760;background:white}.button.compact{padding:6px 10px;min-height:30px;font-size:10px}.button.full{width:100%}.icon{border:0;background:transparent;border-radius:6px;color:#758ca2;width:28px;min-height:30px;font-size:20px;padding:0}.icon:hover{background:#edf4f7}.page-heading{padding:27px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:30px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--teal);font-weight:750;margin-bottom:9px}h1{font-size:27px;letter-spacing:-.7px;line-height:1.25}.page-heading p{font-size:12px;color:var(--muted);margin-top:9px}.banner{width:460px;max-width:46%;flex-shrink:0;border:1px solid #ddeae9;border-radius:15px;padding:10px 14px;background:linear-gradient(110deg,#f0faf7,#f7f4fd)}.banner-top{display:flex;justify-content:space-between;font-size:8px;color:#658a93;letter-spacing:1px}.banner-top span:last-child{letter-spacing:0;color:#94a1b3}.banner>svg{width:100%;height:73px;margin-top:4px;overflow:visible}.banner ol{margin:0;padding:0;list-style:none;display:flex;justify-content:space-around;gap:10px;font-size:10px;color:#36596a}.banner b{display:inline-grid;place-items:center;width:18px;height:18px;background:#e0efee;color:var(--teal);border-radius:5px;margin-right:4px}.steps{display:flex;align-items:center;gap:13px;margin:0 28px 23px;color:#97a6b7;font-size:10px}.steps i{width:35px;height:1px;background:#d5e0eb}.steps .current{color:var(--teal);font-weight:650}.workbench{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;padding:0 28px 35px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px #22354c02}.settings{padding:23px;align-self:start}.settings h2{font-size:16px}.settings .subtle{color:#97a7b8;font-size:8px;margin:6px 0 24px;letter-spacing:1.3px}label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#61768e}input,select{min-width:0;max-width:100%;border:1px solid #d4e0ed;background:#fff;border-radius:7px;padding:10px;color:#263f5b;width:100%;font-size:12px}input:disabled{background:#f4f7f9}.upload-zone{width:100%;margin:18px 0 12px;padding:23px 9px;min-height:170px;border:1px dashed #a4d6dd;border-radius:8px;background:#f6fbfb;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#37576a}.upload-zone:hover,.upload-zone.dragover{background:#e9f8f5;border-color:var(--teal)}.upload-symbol{font-size:32px;color:var(--teal);line-height:1.2}.upload-zone strong{font-size:12px}.upload-zone span:not(.upload-symbol),.upload-zone small{color:#8ea0b4;font-size:9px}.muted{color:var(--muted);font-size:10px}.source-info{font-size:10px;line-height:1.7;margin-top:12px}.dimensions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lock{border:1px solid var(--line);border-radius:6px;background:#f9fbfc;font-size:10px;color:#547187;padding:8px;margin:10px 0 15px}.primary-action{margin-top:12px;justify-content:space-between}.footnote{font-size:9px;line-height:1.7;margin-top:10px}.workspace{min-width:0}.workspace-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px;min-height:32px}.workspace-toolbar h2{font-size:12px}.zoom-controls{display:flex;align-items:center;gap:5px}.zoom-controls output{font-size:10px;color:#7f91a7;min-width:36px;text-align:center}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:15px}.preview{overflow:hidden;min-width:0}.preview-heading{height:43px;display:flex;justify-content:space-between;gap:6px;align-items:center;border-bottom:1px solid #e8edf3;padding:0 13px;font-size:10px}.preview-heading strong{display:flex;align-items:center;gap:6px;white-space:nowrap}.preview-heading i{width:6px;height:6px;border-radius:50%;background:#b1bfd0}.preview-heading i.teal{background:#21ad9e}.preview-heading>span{font-size:7px;letter-spacing:1px;color:#94a6bc}.image-stage{height:460px;position:relative;overflow:hidden;display:grid;place-items:center;background:#f8fafc;touch-action:none;user-select:none}.checker{background-color:white;background-image:conic-gradient(#eff3f6 25%,transparent 0 50%,#eff3f6 0 75%,transparent 0);background-size:16px 16px}.art-plane{position:absolute;transform-origin:center;display:flex;align-items:center;justify-content:center;pointer-events:none}.art-plane img{width:100%;height:100%;object-fit:contain}.empty{position:absolute;text-align:center;max-width:230px;padding:20px;pointer-events:none;color:#8da0b4}.empty strong{display:block;font-size:12px;color:#67829c;margin-top:16px}.empty p{font-size:11px;line-height:1.8;margin-top:8px}.empty-symbol{font-size:48px;color:#b3c6d6;line-height:1}.empty svg{width:72px;height:72px}.preview-footer{padding:10px 12px;border-top:1px solid #e9eef4;font-size:8px;min-height:35px;color:#8e9fb3}.view-switch{display:flex;gap:2px}.view-switch button{font-size:9px;border:0;background:transparent;color:#8699ac;border-radius:5px;padding:5px}.view-switch button[aria-pressed=true]{color:var(--teal);background:#edf8f6}.job-status{background:#e7f5f2;border:1px solid #c5e7df;border-radius:9px;padding:13px 15px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#176875}.job-status.error{background:#fff6f5;border-color:#f1d5cf;color:#a34a40}.job-status.busy:before{content:'';width:14px;height:14px;border:2px solid #a2d7d5;border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}.job-status span{flex:1}@keyframes spin{to{transform:rotate(360deg)}}.review{margin-top:15px;padding:21px;display:flex;align-items:center;justify-content:space-between;gap:15px}.review h2{font-size:16px}.review p{font-size:11px;color:var(--muted);margin-top:6px}.tip{margin-top:16px;padding:17px 20px;background:#eef7f7;border:1px solid #dcebed;border-radius:10px;display:flex;gap:14px;font-size:10px;color:#8298ab;line-height:1.8}.tip>span{font-size:22px;color:var(--teal)}.tip strong{color:#426679}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:50;background:#22334b;color:white;border-radius:10px;padding:12px 20px;font-size:12px;max-width:90vw;box-shadow:0 5px 25px #1e293b30}dialog{width:min(720px,92vw);max-height:85vh;border:1px solid var(--line);border-radius:16px;padding:25px;color:#22334b}dialog::backdrop{background:#23304f70;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.artwork-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.artwork-item{border:1px solid var(--line);background:white;border-radius:9px;padding:10px;text-align:left;color:#35506a;cursor:pointer}.artwork-item:hover{border-color:var(--teal)}.artwork-item img{width:100%;height:160px;object-fit:contain;background:#f6f8fa}.artwork-item span{display:block;font-size:12px;margin-top:7px}.artwork-item small{font-size:10px;color:#8a9bb0}.mobile-history{display:none}
@media(min-width:1700px){.image-stage{height:540px}.page-heading{padding-top:32px;padding-bottom:25px}}
@media(max-width:1250px){.sidebar{width:195px;padding:24px 12px}.brand{font-size:14px;gap:8px}main{margin-left:195px}.page-heading{flex-wrap:wrap}.banner{max-width:100%;width:440px;margin-left:auto}.workbench{grid-template-columns:235px minmax(0,1fr);gap:17px;padding-left:20px;padding-right:20px}.settings{padding:18px}.preview-heading{padding:0 8px}.image-stage{height:370px}.top-actions #saveStatus{display:none}.comparison{gap:10px}.breadcrumb{font-size:10px}.top-actions{gap:5px}.top-actions .button{padding:8px 10px}}
@media(max-width:950px){.sidebar{width:68px;padding:24px 9px}.brand{margin:0 10px 35px;font-size:0;gap:0}.nav-label,.nav-item>span,.sidebar>.divider,.history-heading,.project-list{display:none}.nav-item>span:first-child{display:block}.nav-item{padding:12px;justify-content:center}.nav-item svg{width:22px}.nav-item{font-size:0}main{margin-left:68px}.mobile-history{display:flex;gap:10px;align-items:center;margin:0 20px 18px}.mobile-history label{white-space:nowrap}.mobile-history select{max-width:300px}.page-heading h1{font-size:25px}.workbench{grid-template-columns:1fr}.settings{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings h2,.settings>.subtle,.settings>.divider,.settings>h3,.settings>.footnote,.settings>.source-info{grid-column:1/-1}.settings .subtle{margin-bottom:0}.settings>.divider{margin:0}.upload-zone{margin:0;grid-row:4/7;grid-column:1;min-height:160px}.settings>label{grid-column:1/-1}.settings .primary-action{margin:0}.settings .lock{margin:0}.image-stage{height:420px}.banner{margin-left:0}.settings>h3{margin-bottom:0}}
@media(max-width:640px){.sidebar{display:none}main{margin:0}header{padding:12px 15px;min-height:62px}.breadcrumb{display:none}.top-actions{width:100%;justify-content:space-between}.top-actions .button{font-size:10px;padding:8px 10px}.page-heading{padding:22px 16px 16px;gap:18px}h1{font-size:24px!important}.page-heading p{font-size:11px}.banner{width:100%;padding:10px}.banner ol{font-size:9px;gap:3px}.banner svg{height:67px}.steps{margin:0 16px 18px;gap:7px;font-size:9px}.steps i{width:15px}.workbench{padding:0 16px 25px;gap:18px}.settings{padding:18px}.settings .upload-zone{padding:15px 5px}.settings .button{font-size:10px}.dimensions{gap:6px}.dimensions label{font-size:10px}.dimensions input{padding:8px}.comparison{grid-template-columns:1fr}.image-stage{height:340px}.preview-heading{padding:0 13px}.mobile-history{margin:0 16px 16px}.review{padding:17px;flex-wrap:wrap}.artwork-list{grid-template-columns:1fr 1fr}.artwork-item img{height:130px}.tip{padding:14px}.workspace-toolbar h2{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zoom-controls{gap:1px}.workspace-toolbar{gap:4px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.settings-column{min-width:0}.refine-panel{margin-top:17px;padding:20px}.refine-heading{display:flex;flex-direction:column;gap:6px}.refine-heading span{font-size:10px;color:#7e92a7}.edit-history{display:flex;gap:6px;margin:15px 0}.edit-history button{flex:1}.refine-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:20px}.refine-tabs button{border:1px solid #dfe7f0;border-radius:7px;background:#fff;color:#61788e;font-size:10px;padding:9px 5px;text-align:left}.refine-tabs button.active{border-color:#84c5c9;background:#e9f7f5;color:#087f8c}.refine-tabs small{color:#8ca1b1}.tool-pane h3{font-size:13px}.tool-pane p{line-height:1.8;margin-bottom:13px}.tool-pane label{margin:12px 0 8px}.tool-pane .button{margin-top:8px;font-size:10px}.tool-pane input[type=color]{height:42px;padding:4px}.tool-pane .checkbox{flex-direction:row;align-items:center;gap:8px;line-height:1.7}.tool-pane input[type=checkbox]{width:15px}.palette-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;max-height:240px;overflow:auto;padding:5px 2px;margin:10px 0}.palette-swatches button{border:2px solid white;box-shadow:0 0 0 1px #d4dfe7;width:24px;height:24px;border-radius:50%;padding:0}.palette-swatches button.selected{box-shadow:0 0 0 2px #078a95}.restore-vector{font-size:10px;margin-top:20px}.button.danger{color:#b14b59}.editor-surface{position:absolute;inset:0;pointer-events:auto}.editor-surface>svg{width:100%;height:100%;overflow:visible}.editor-surface [data-region-id]{cursor:pointer}.editor-surface [data-selected]{filter:drop-shadow(0 0 2px #00aabb) drop-shadow(0 0 1px #00aabb)}.editor-surface.outline [data-region-id]{fill:none!important;stroke:#087f8c!important;stroke-width:1!important;vector-effect:non-scaling-stroke!important}.export-note{line-height:1.8;margin:15px 0}.export-working{cursor:progress}#downloadDialog{width:min(440px,92vw)}
@media(max-width:950px){.settings-column{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}.refine-panel{margin-top:0}.palette-swatches{grid-template-columns:repeat(auto-fill,26px)}.refine-tabs{grid-template-columns:repeat(5,1fr)}}
@media(max-width:640px){.refine-tabs{grid-template-columns:repeat(3,1fr)}.refine-panel{padding:18px}}
.comparison.vector-only{grid-template-columns:minmax(0,1fr)}.comparison.vector-only>.preview:first-child{display:none}.comparison.vector-only .image-stage{height:570px}.view-switch{white-space:nowrap}
@media(max-width:640px){.comparison.vector-only .image-stage{height:370px}}
/* Keep refinement beside the artwork; source settings remain available below. */
.settings-column:has(#refinePanel:not([hidden])){display:flex;flex-direction:column;gap:17px}.settings-column:has(#refinePanel:not([hidden]))>.settings{order:1;width:100%}.refine-panel{order:0;position:sticky;top:16px;margin-top:0;max-height:calc(100vh - 32px);display:flex;flex-direction:column;min-height:0}.refine-heading,.edit-history,.refine-tabs,.restore-vector{flex-shrink:0}.tool-pane{overflow-y:auto;min-height:0;padding:0 3px 3px}.tool-pane input[type=range]{accent-color:#087f8c}.editor-surface>svg{isolation:isolate}
@media(max-width:950px){.refine-panel{position:relative;top:auto;max-height:680px}.settings-column:has(#refinePanel:not([hidden]))>.settings{order:0}.settings-column:has(#refinePanel:not([hidden]))>.refine-panel{order:1}}

/* Collapsible project and artwork history, shared visual pattern across modules. */
.history-section{position:relative;min-width:0;flex-shrink:0}
.history-accordion{min-width:0;flex:0 1 auto;margin:0 0 14px;overflow:visible}
.history-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:10px 7px;color:#74849b;font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;cursor:pointer;list-style:none;border-radius:7px;user-select:none}
.history-accordion>summary::-webkit-details-marker{display:none}
.history-accordion>summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s;flex-shrink:0;margin-right:3px}
.history-accordion[open]>summary::after{transform:rotate(45deg)}
.history-accordion>summary:hover{background:#eff7f7;color:#07818e}
.history-accordion>summary:focus-visible{outline:2px solid #07818e;outline-offset:2px}
.history-section .history-accordion>summary{padding-right:39px}
.history-new{position:absolute;right:2px;top:3px;width:30px;height:30px;margin:0}
.history-accordion-body{min-width:0;max-height:30vh;overflow-y:auto;overflow-x:hidden;padding-top:5px;scrollbar-width:thin}
.history-accordion:not([open])>.history-accordion-body{display:none!important}
.history-accordion .project-list,.history-accordion .studio-artwork-list,.history-accordion #savedProjectsList{max-height:none!important;overflow:visible!important;margin:0;min-width:0;flex:none}
.history-accordion .history-entry{min-width:0;max-width:100%}
.history-accordion .history-open{min-width:0;max-width:100%}
@media(max-width:950px){.history-section,.history-accordion{display:none!important}}
