/* Studio identity, with the editing workspace kept intact. */
header{background:#062c35!important;gap:16px;position:relative;z-index:30;color:#fff}.editor-brand{display:block;flex:none}.editor-brand img{display:block;width:240px;height:48px;object-fit:cover}.account-tools{margin-left:auto}header #studioAccount,header .back-link{color:#f7fbfa}header #saveAccount{background:#18b5c0;color:#042c34;border-color:#18b5c0}header .account-tools #openExport{background:transparent;border-color:#ffffff38;color:#fff}header #accountDesigns{max-width:145px}.studio-menu summary{padding:0}.studio-menu nav{max-height:calc(100dvh - 100px);overflow-y:auto}
.studio-menu{position:relative;flex:none}.studio-menu summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;border-radius:5px;list-style:none;color:#f7fbfa}.studio-menu summary::-webkit-details-marker{display:none}.studio-menu summary:hover,.studio-menu[open] summary{background:#ffffff12}.studio-menu summary svg{width:24px;height:24px}.studio-menu nav{position:absolute;z-index:50;top:calc(100% + 14px);left:0;display:flex;flex-direction:column;width:260px;padding:10px;background:#062c35;border:1px solid #ffffff24;border-radius:6px;box-shadow:0 12px 30px #00151b44}.studio-menu nav a{display:flex;align-items:center;min-height:44px;padding:10px 14px;color:#f7fbfa;font-size:13px;text-decoration:none;border-radius:3px}.studio-menu nav a:hover,.studio-menu nav a:focus-visible{background:#ffffff12;color:#62d4df}.studio-menu nav a:last-child{border-top:1px solid #ffffff24;margin-top:6px;border-radius:0}
:root{--cyan:#10a8b5;--workspace:#f0f4f3;--soft:#f0f4f3;--surface:#fff;--ink:#082b33;--muted:#526f74;--line:#dce8e8}h1,h2{font-family:'Outfit',sans-serif}.tool-rail .tabs button[aria-selected=true]{background:#dcecee;border-color:#a3d8dc;color:#08616b}
:root[data-tomy-theme=dark]{--workspace:#383a40;--surface:#2b2d31;--soft:#383a40;--ink:#f2f3f5;--muted:#b5bac1;--line:#3f4147}:root[data-tomy-theme=dark] .preview-column{background:#383a40}
html[data-product=polera] .canvas-shell,html[data-product=poleron] .canvas-shell{width:min(30%,calc((100dvh - 300px) * .30));isolation:isolate;filter:none}
html[data-product=polera] .canvas-shell:before,html[data-product=poleron] .canvas-shell:before{content:'';position:absolute;width:272.73%;height:238.9%;left:-86.36%;top:-75.08%;background:center/100% 100% no-repeat url('polera-silhouette.svg');z-index:-1;pointer-events:none;filter:drop-shadow(0 12px 14px #00151b33)}
html[data-product=poleron] .canvas-shell:before{background-image:url('poleron-silhouette.svg')}
html[data-product=polera] #canvas,html[data-product=poleron] #canvas{border-radius:0;outline:1px dashed #7c9da588;outline-offset:2px}
html[data-product=polera] #emptyHint,html[data-product=poleron] #emptyHint{padding:5px;gap:6px}html[data-product=polera] #emptyHint>svg,html[data-product=poleron] #emptyHint>svg,html[data-product=polera] #emptyHint>span,html[data-product=poleron] #emptyHint>span{display:none}html[data-product=polera] #emptyHint strong,html[data-product=poleron] #emptyHint strong{font-size:12px}html[data-product=polera] #emptyHint button,html[data-product=poleron] #emptyHint button{font-size:10px;padding:6px;min-height:32px}html[data-product=polera] .desk,html[data-product=poleron] .desk{padding-block:20px 50px}
@media(max-width:900px){.editor-brand img{width:180px;height:42px}header{gap:10px}}
@media(max-width:600px){.editor-brand img{width:130px;height:38px}header{gap:5px;padding-inline:8px}.studio-menu summary{width:34px;height:38px}header #accountDesigns{display:none}header .back-link{display:none}header .account-tools{gap:3px}.studio-menu nav{width:min(260px,calc(100vw - 20px))}html[data-product=polera] .canvas-shell,html[data-product=poleron] .canvas-shell{width:min(30%,calc((100dvh - 270px) * .27))}html[data-product=polera] #emptyHint strong,html[data-product=poleron] #emptyHint strong{display:none}html[data-product=polera] #emptyHint button .ui-icon,html[data-product=poleron] #emptyHint button .ui-icon{display:none}}

.editor-brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;white-space:nowrap;flex-shrink:0}.editor-brand img.studio-mark{width:36px;height:36px;object-fit:contain}.editor-brand .studio-wordmark{font:700 24px/1 'Outfit',sans-serif;letter-spacing:-.04em;color:#fff}.editor-brand .studio-wordmark>span{color:#10b8c5;font-size:inherit;font-weight:inherit;letter-spacing:-.03em}
@media(max-width:600px){.editor-brand{gap:6px}.editor-brand img.studio-mark{width:25px;height:25px}.editor-brand .studio-wordmark{font-size:17px}}
@media(max-width:370px){.editor-brand .studio-wordmark{font-size:15px}.editor-brand img.studio-mark{width:22px;height:22px}.editor-brand{gap:4px}}

html[data-product=polera] .canvas-shell:before{background-image:url('polera-black.webp');width:272.73%;height:238.9%;background-size:100% 100%}html[data-product=polera][data-garment-color=white] .canvas-shell:before{background-image:url('polera-white.webp')}html[data-product=polera] #canvas{background:transparent}html[data-product=polera][data-garment-color=white] #emptyHint{color:#082b33}html[data-product=polera] .format-label{font-size:12px}#garmentColor{min-height:34px;padding:7px;font-size:12px;min-width:100px}

/* Framed Studio controls; leave artwork, handles and canvas geometry untouched. */
:root{--studio-frame:#062c35;--studio-glass:#fff;--studio-shadow:#062c35;--studio-grid:rgba(6,91,106,.055)}
:root[data-tomy-theme=dark]{--workspace:#24282d;--surface:#30363c;--soft:#363f47;--ink:#f4f8f9;--muted:#bdcbd0;--line:#4c6169;--studio-frame:#597780;--studio-glass:#2c333a;--studio-grid:rgba(133,206,220,.045)}
.preview-column,:root[data-tomy-theme=dark] .preview-column{background-color:var(--workspace);background-image:linear-gradient(var(--studio-grid) 1px,transparent 1px),linear-gradient(90deg,var(--studio-grid) 1px,transparent 1px);background-size:24px 24px}
.controls-column,.tool-rail{background:var(--studio-glass);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--studio-frame)}
header #saveAccount,header .account-tools #openExport,.controls-column .primary,
:root[data-tomy-theme=dark] .controls-column .primary{
 background:#10a8b5;color:#062c35;border:2px solid #062c35;border-radius:9px;box-shadow:2px 3px 0 #062c35;
}
.controls-column button:not(.primary):not(.danger):not(.reset):not(.transform-handle):not([data-color]),
.controls-column .import-project{border-radius:9px;border:1px solid var(--studio-frame);background:var(--surface);color:var(--ink)}
.tool-rail .tabs button[aria-selected=true],:root[data-tomy-theme=dark] .tool-rail .tabs button[aria-selected=true]{background:#10a8b5;color:#062c35;border:2px solid #062c35;box-shadow:2px 3px 0 #062c35}
.controls-column .font-card[aria-pressed=true],.controls-column .layer[aria-pressed=true]{background:var(--soft);border:2px solid #10a8b5;color:var(--ink)}
.upload-zone{border:2px dashed var(--studio-frame);border-radius:12px;background:var(--soft)}
.preview-modes{border:1px solid var(--studio-frame);border-radius:10px}
.preview-modes button[aria-pressed=true]{background:var(--surface);color:var(--ink);border:1px solid var(--studio-frame);border-radius:7px}
header #saveAccount:active,header .account-tools #openExport:active,.controls-column .primary:active{box-shadow:none}
