:root {
  color-scheme:light;
  --bg:#f6f5ee;--paper:#fffefa;--ink:#182b24;--forest:#183c30;--deep:#15352a;
  --muted:#59665d;--faint:#e1e3d8;--line:#e5e6da;--lime:#e5eddf;--gold:#f9d77a;
  --soft-shadow:0 4px 20px #213b2a09;
  font-family:"Segoe UI",Inter,system-ui,-apple-system,sans-serif;
  font-synthesis:none;
}
:root[lang=ar] {font-family:Tahoma,"Segoe UI",Arial,sans-serif;}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;min-width:310px}
body:has(dialog[open]){overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.52}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #538557;outline-offset:3px}
a{color:inherit}
img{max-width:100%}
h1,h2,h3,p{margin:0}
small{font-size:12px}
.ico{flex:none;vertical-align:middle}
:root[dir=rtl] .ico-arrow,:root[dir=rtl] .ico-back,:root[dir=rtl] .ico-logout{transform:scaleX(-1)}
.money{white-space:nowrap;font-variant-numeric:tabular-nums;display:inline-block}
.money small{font-size:.7em;letter-spacing:.015em}
.shell{width:min(100% - 76px,1330px);margin-inline:auto}
.skip-link{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:12;transform:translateY(-150%);background:var(--forest);color:white;padding:12px;border-radius:8px}
.skip-link:focus{transform:none}
.loading{display:flex;justify-content:center;gap:12px;margin-block:16vh;font-size:26px;font-weight:800}
.loading span{color:var(--muted)}
.topbar{background:#fbfaf3;border-block-end:1px solid #e3e3d5}
.topbar-inner,.brand-area,.nav-actions{display:flex;align-items:center}
.topbar-inner{min-height:74px;justify-content:space-between;gap:18px}
.brand-area{gap:19px;min-width:0}
.brand-lockup{display:flex;align-items:center;min-width:120px}
.brand-lockup img{display:block;max-height:45px;object-fit:contain;object-position:left center}
:root[dir=rtl] .brand-lockup img{object-position:right center}
.nav-divider{height:27px;width:1px;background:#d8ddcf}
.studio-nav{font-size:10px;font-weight:850;letter-spacing:.14em;color:#495e51;white-space:nowrap}
:root[dir=rtl] .studio-nav,:root[dir=rtl] .eyebrow,:root[dir=rtl] .section-kicker,:root[dir=rtl] .cohort span,:root[dir=rtl] .live-chip{letter-spacing:0}
.nav-actions{gap:14px;flex-shrink:0}
.nav-help,.lang-btn{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#385247;padding:8px 9px;min-height:40px;border-radius:8px;font-weight:650;font-size:13px}
.nav-help:hover,.lang-btn:hover{background:#e8ecdf}
.lang-btn{border:1px solid #e0e5d7;background:#f7f8ef;padding-inline:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2;padding:11px 16px;min-height:42px;border-radius:9px;border:1px solid transparent;background:transparent;color:var(--ink);font-weight:700;font-size:13px;white-space:nowrap;text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s}
.btn:hover:not(:disabled){background:#edf0e4}
.btn.primary,.primary{background:var(--forest);color:#fffdf4;border-color:var(--forest)}
.btn.primary:hover:not(:disabled){background:#285847}
.btn.accent{background:var(--gold);border-color:var(--gold);color:#172b21}
.btn.accent:hover:not(:disabled){background:#ffe298}
.btn.subtle{background:#f6f7ef;border-color:#e1e6d8}
.btn.subtle:hover:not(:disabled){background:#e6edde}
.btn.ghost-light{color:#f5f8ef;border-color:#59806e;background:transparent}
.btn.ghost-light:hover:not(:disabled){background:#ffffff18}
.btn.link-btn{color:#2c5a46;padding-inline:2px;background:transparent}
.btn.link-btn:hover:not(:disabled){background:transparent;text-decoration:underline}
.btn.danger-quiet{color:#8c3838;background:#fcf4f1;border-color:#f5e4df}
.btn.danger-quiet:hover:not(:disabled){background:#f8e5e1}
.btn.danger{color:#fff;background:#933535;border-color:#933535}
.btn.danger:hover:not(:disabled){background:#762929;border-color:#762929}
.btn.compact{min-height:34px;font-size:12px;padding:7px 11px}
.btn.compact .ico{width:15px;height:15px}
.user-btn{background:#e8eee2;border-color:#dce4d7;max-width:238px}
.user-btn span{overflow:hidden;text-overflow:ellipsis}
.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid #e2e7db;border-radius:9px;background:#fffff9;color:#355849;padding:0}
.icon-btn:hover,.icon-btn[aria-pressed=true]{background:#e6edde;border-color:#bccdbd}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:850;letter-spacing:.17em;color:#4c6153}
.eyebrow>span{height:8px;width:8px;border-radius:50%;background:#dcb553;box-shadow:0 0 0 3px #e0bc6033}
.studio-shell{padding-block:31px 19px}
.studio-heading,.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-block-end:23px}
.studio-heading h1,.admin-heading h1{font-size:clamp(44px,5.25vw,76px);font-weight:800;letter-spacing:-.074em;line-height:1.04;margin-block:7px 10px;color:#152e25}
.studio-heading h1 em,.admin-heading h1 em{font-style:normal;color:#a77720}
:root[dir=rtl] h1{letter-spacing:0;font-size:clamp(33px,4.65vw,62px);line-height:1.2}
.studio-heading p,.admin-heading p{font-size:15px;color:#536159;line-height:1.45}
.cohort{display:flex;align-items:center;gap:11px;padding:10px 15px 10px 10px;border:1px solid #dbe2d3;border-radius:12px;background:#eef1e6;max-width:330px;align-self:flex-end}
.cohort-icon,.accent-icon,.stat-glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#dbe8d8;color:#2e5f4b;flex:none}
.cohort>div:last-child{display:grid;gap:2px}
.cohort span{font-size:9px;font-weight:850;color:#5c6b60;letter-spacing:.11em}
.cohort b{font-size:13px;font-weight:800;line-height:1.2}
.cohort small{color:#5a695d;font-size:11px}
.studio-grid{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(340px,1fr);gap:20px;align-items:start}
.preview-card,.customizer-card,.admin-card{background:var(--paper);border:1px solid #e3e5d9;border-radius:17px;box-shadow:var(--soft-shadow);min-width:0}
.preview-card{padding:14px}
.preview-top,.customizer-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.preview-top{padding:2px 1px 12px}
.section-kicker{display:inline-flex;align-items:center;gap:8px;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#4e6658;font-weight:850;white-space:nowrap}
.serial{border-radius:6px;background:#e7eddf;font-size:10px;color:#416350;min-width:25px;height:24px;display:grid;place-items:center;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.live-chip{display:flex;align-items:center;gap:6px;color:#376551;background:#e8efe3;border:1px solid #dce8d9;padding:6px 8px;border-radius:20px;font-size:9px;font-weight:850;letter-spacing:.10em;white-space:nowrap}
.live-chip i,.footer-inner i{width:6px;height:6px;border-radius:50%;background:#53916b;box-shadow:0 0 0 2px #53916b28}
.garment-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block-end:12px}
.product-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.product-btn,.side-btn,.tool-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid transparent;background:transparent;color:#4d6357;font-weight:700;border-radius:8px;padding:8px 10px}
.product-btn{font-size:12px;border-color:#e6e7dd;background:#fbfaf5;min-height:36px}
.product-btn:hover,.side-btn:hover,.tool-tab:hover{background:#eef1e6}
.product-btn.active{border-color:#b5c9b8;background:#e7eee1;color:#244c3a}
.product-btn:disabled{opacity:1}
.garment-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;font-weight:750;color:#51645a}
.garment-size select{border:1px solid #e0e3d7;border-radius:8px;background:#fbfbf4;padding:6px 6px;min-height:35px;font-weight:800;color:#264235}
.viewport{min-width:0;position:relative;isolation:isolate;overflow:hidden;border:1px solid #e2e7d9;border-radius:11px;background:radial-gradient(ellipse at 50% 43%,#f6f7eb 0,#ecf0e3 52%,#e7ecdf 100%);display:grid;place-items:center;min-height:290px}
.viewport::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#62756126 .75px,transparent .85px);background-size:13px 13px;mask-image:radial-gradient(ellipse,#0004 20%,#000 89%);pointer-events:none}
.stage-corner{position:absolute;width:13px;height:13px;border:solid #9eaf9b;border-width:0;z-index:1;opacity:.72;pointer-events:none}
.stage-corner.tl{left:10px;top:10px;border-left-width:1px;border-top-width:1px}
.stage-corner.tr{right:10px;top:10px;border-right-width:1px;border-top-width:1px}
.stage-corner.bl{left:10px;bottom:10px;border-left-width:1px;border-bottom-width:1px}
.stage-corner.br{right:10px;bottom:10px;border-right-width:1px;border-bottom-width:1px}
.view-caption{position:absolute;left:24px;top:20px;display:grid;gap:3px;z-index:2;pointer-events:none}
.view-caption span{font-size:9px;font-weight:800;letter-spacing:.12em;color:#566f60}
.view-caption b{font-size:14px;color:#385448}
.stage-controls{position:absolute;right:23px;top:18px;display:flex;gap:5px;z-index:2}
.stage-controls .icon-btn{width:32px;height:32px;background:#f8f9ef;box-shadow:0 2px 5px #2a41321a}
.garment-canvas{width:min(100%,400px);aspect-ratio:1;display:grid;place-items:center;transition:transform .2s;max-height:54vh}
.garment-canvas svg#garment-svg{width:100%;height:100%;max-height:54vh;overflow:visible;filter:drop-shadow(0 7px 11px #253b2930)}
.garment-canvas.zoomed{transform:scale(1.23)}
.garment-layer{cursor:grab;touch-action:none}
.garment-layer:active{cursor:grabbing}
.view-bar{display:flex;align-items:center;justify-content:space-between;gap:7px;padding-block:12px 11px}
.side-switch{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e8e9de;border-radius:10px;background:#f7f8f1;min-width:0}
.side-btn{font-size:11px;padding:7px 8px;line-height:1.2;min-height:33px}
.side-btn span{font-size:9px;font-weight:850;color:#65776c;letter-spacing:.025em}
.side-btn.active{background:#254b3c;border-color:#254b3c;color:#fffdfa}
.side-btn.active span{color:#f4d78a}
.drag-hint,.lock-note,.studio-note>span,.footer-inner>span{display:inline-flex;align-items:center;gap:6px}
.drag-hint{font-size:10px;color:#63766a;white-space:nowrap}
.locked-strip{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 3px 0;border-block-start:1px solid #ebede4}
.lock-note{font-size:11px;font-weight:650;color:#576c60}
.swatch-stack{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.swatch-stack i{display:inline-block;width:17px;height:17px;flex:none;border-radius:50%;border:1px solid #c6cdbd;background:var(--swatch)}
.customizer-card{overflow:hidden}
.customizer-top{padding:16px 18px 10px}
.customizer-top h2{font-size:26px;font-weight:800;line-height:1.1;letter-spacing:-.045em;margin-block-start:6px}
:root[dir=rtl] .customizer-top h2{letter-spacing:0}
.accent-icon{width:37px;height:37px;background:#f9e8ae;color:#796025}
.tool-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0 18px;padding:4px;border:1px solid #e5e9dc;border-radius:10px;background:#f3f5ec}
.tool-tab{grid-column:span 2;font-size:12px;min-height:38px;padding:5px 4px;white-space:normal;line-height:1.2}
.tool-tab:nth-last-child(-n+2){grid-column:span 3}
.tool-tab svg{flex-shrink:0}
.tool-tab.active{border-color:#d7e4d6;background:#e3eddf;color:#234d39}
.tool-body{padding:12px 18px 13px}
.tool-intro{font-size:12px;color:var(--muted);line-height:1.45;margin-block-end:10px}
.patch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.patch-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:97px;padding:7px 4px 6px;border:1px solid #e6e8db;border-radius:10px;background:#f9f8f0;color:#263c32;transition:background .15s,border-color .15s}
.patch-card:hover{background:#edf1e2;border-color:#b8cbb7}
.patch-plus{position:absolute;inset-block-start:6px;inset-inline-end:6px;color:#51725e;background:#edf1e6;border:1px solid #e4eadb;width:19px;height:19px;border-radius:50%;display:grid;place-items:center}
.patch-card:hover .patch-plus{background:#dbe8d5;border-color:#c6dac5}
.patch-drawing{width:43px;height:43px;display:grid;place-items:center}
.patch-art{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 2px #594a2d35)}
.patch-card b{font-size:11px;font-weight:800;line-height:1.2;text-align:center}
.patch-card small{font-size:10px;color:#607065}
.layer-bar{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 18px;border-block-start:1px solid #eaece3}
.layer-link{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#3b5a4b;font-weight:750;font-size:12px;padding:4px 0;border-radius:3px;text-align:start}
.layer-link:hover{text-decoration:underline}
.layer-link span{background:#e6eee1;padding:1px 6px;font-size:10px;border-radius:6px}
.layer-tip{font-size:10px;color:#65756a}
.quote-panel{background:var(--deep);color:#fff9e9;padding:13px 17px 15px}
.quote-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-end:12px}
.quote-line>div{display:grid;gap:3px}
.quote-line strong{font-size:14px}
.quote-line>div small{font-size:10px;color:#c5d8c9}
.quote-line>b{font-size:27px;line-height:1;letter-spacing:-.04em;font-weight:800;color:#f8d781}
.quote-line>b small{font-size:10px;color:#f7e0a4}
.quote-actions{display:grid;grid-template-columns:1fr 1.34fr;gap:8px}
.quote-actions .btn{padding:9px 7px;min-width:0}
.quote-actions .ico{width:16px;height:16px}
.quote-actions .accent .ico{order:2}
.quote-done{display:flex;gap:8px;align-items:center;border:1px solid #587b69;padding:10px;border-radius:8px;font-weight:650}
.studio-note{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#586b60;font-size:11px;padding:13px 1px 0}
.site-footer{border-block-start:1px solid #e3e6da;margin-block-start:12px;background:#f8f8ef}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:53px;color:#596a60;font-size:11px}
.footer-inner b{color:#335448}
.footer-sep{padding-inline:4px;color:#93a295}
.field{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:0}
.field span{line-height:1.25}
.field :is(input,select,textarea),.admin-form td input[type=number]{width:100%;min-width:0;min-height:39px;border:1px solid #dce4d8;border-radius:8px;padding:8px 10px;background:#fdfdf8;font-size:13px;color:#203c30}
.field textarea{resize:vertical}
.field input[type=color]{padding:4px;cursor:pointer}
.form-grid{display:grid;gap:10px}
.form-grid.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid.cols4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tool-form,.inspector{display:grid;gap:10px}
.tool-form .tool-intro{margin:0}
.tool-actions,.inspect-footer,.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tool-actions{font-size:12px}
.drop-zone{position:relative;display:grid;justify-items:center;align-content:center;gap:8px;min-height:140px;border:1px dashed #9eb6a1;background:#f3f6ed;color:#315644;border-radius:10px;text-align:center;padding:14px;cursor:pointer}
.drop-zone:hover,.drop-zone:focus-within{background:#e9f0e4;border-color:#587e5f}
.drop-zone input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.drop-zone small,.file-meta small{color:#5c6e60;font-size:11px}
.file-proof{height:clamp(144px,28dvh,224px);border:1px solid #e3e8dd;border-radius:9px;overflow:hidden;background:repeating-conic-gradient(#e9ebe2 0% 25%,#f8f9f3 0% 50%) 0/16px 16px}
.modal .file-proof{height:clamp(160px,42dvh,360px)}
.file-proof img{display:block;width:100%;height:100%;object-fit:contain;padding:6px}
.file-meta{display:flex;justify-content:space-between;gap:7px;padding:8px 0;font-size:11px;overflow-wrap:anywhere}
.file-meta small{flex:none}
.verify-art,.toggle-label{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.45}
.verify-art{padding-block-end:8px}
input[type=checkbox]{accent-color:#2e624a;width:16px;height:16px;flex:none;margin:0}
.inspect-title{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:8px}
.inspect-thumb{display:grid;place-items:center;width:39px;height:39px;border-radius:9px;background:#ecf1e6;color:#50735f;overflow:hidden;flex:none}
.inspect-thumb .patch-art,.inspect-thumb img{width:30px;height:30px;object-fit:contain}
.inspect-title>div:nth-child(2){display:grid;gap:3px;min-width:0}
.inspect-title b{font-size:14px;overflow-wrap:anywhere}
.inspect-title small{font-size:9px;letter-spacing:.08em;font-weight:800;color:#557262}
.tier-label{font-size:11px;font-weight:800;color:#4d6257}
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tier{display:grid;justify-items:center;gap:3px;border:1px solid #e2e7da;border-radius:8px;padding:7px 3px;background:#f8f9f0;line-height:1.2}
.tier:hover,.tier.active{background:#e4eee1;border-color:#aac7ad}
.tier b{font-size:11px}
.tier span,.tier small{font-size:10px;color:#466454}
.adjust .field :is(select,input){min-height:35px;padding:6px 7px;font-size:12px}
.edit-text{margin-block-start:3px}
.locked-message{display:grid;justify-items:center;gap:9px;text-align:center;padding:37px 21px;min-height:243px}
.locked-message p{color:var(--muted);font-size:13px;line-height:1.5}
.inline-note{background:#fff4d7;border:1px solid #f1dfaa;border-radius:10px;padding:12px;margin-block-end:14px;color:#715827;display:grid;gap:4px}
.inline-note>div{display:flex;align-items:center;gap:8px}
.inline-note p{padding-inline-start:28px}
.status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;background:#f2f2e8;color:#5b685f;border-radius:20px;white-space:nowrap;font-size:11px;font-weight:700}
.status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.status-submitted,.status-approved{background:#e5efe1;color:#2b684b}
.status-changes{background:#f9ead1;color:#7b521c}
.status-draft{background:#eaf0ee;color:#496459}
.empty-state{min-height:215px;padding:29px 20px;display:grid;justify-items:center;align-content:center;gap:9px;text-align:center;background:#f5f7ee;border:1px dashed #d7e2d3;border-radius:13px;color:#345849}
#main>.empty-state{margin-block:32px}
.empty-state p{max-width:520px;line-height:1.5;color:#576a60}
.empty-small,.muted{color:#617468}
.empty-small{padding:15px 4px;line-height:1.55}
.admin-shell{padding-block:35px 25px}
.admin-heading h1{font-size:clamp(34px,4.7vw,61px)}
.admin-badge{display:flex;gap:7px;align-items:center;padding:9px 12px;border:1px solid #d9e6d7;border-radius:9px;background:#e8eee2;color:#315a47;font-weight:750;white-space:nowrap}
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-block:0 18px}
.stat{background:#fffefa;border:1px solid #e0e5d9;border-radius:13px;padding:13px;display:flex;align-items:center;gap:10px;min-width:0}
.stat>div{display:grid;gap:3px}
.stat b{font-size:24px;line-height:1.05}
.stat span:last-child{color:#4f6257;font-size:12px}
.admin-tabs{display:flex;gap:5px;margin-block-end:11px;border-block-end:1px solid #dfe5d8}
.admin-tab{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid transparent;border-radius:8px 8px 0 0;background:transparent;font-size:13px;font-weight:750;color:#4e6659}
.admin-tab:hover{background:#eff3e8}
.admin-tab.active{background:#e7eee2;border-color:#dce6d9;color:#244e3b}
.admin-card{padding:18px;min-height:255px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-block-end:17px}
.card-head h2{font-size:23px;letter-spacing:-.035em}
.card-head p{margin-block-start:4px;font-size:13px;color:var(--muted);line-height:1.5}
.table-wrap{width:100%;overflow:auto;border:1px solid #e2e8db;border-radius:9px}
table{border-collapse:collapse;width:100%;text-align:start;font-size:13px}
th,td{padding:10px 12px;text-align:start;vertical-align:middle}
th{color:#50695b;background:#f1f5eb;white-space:nowrap;font-size:11px}
td{border-block-start:1px solid #e8ece1;line-height:1.35}
tr:hover td{background:#fcfdf7}
td small,td code{color:#5e7065;font-size:11px}
code{overflow-wrap:anywhere}
.row-actions{display:flex;gap:5px;align-items:center}
.pill{display:inline-block;font-size:11px;line-height:1.2;padding:4px 7px;background:#eeefe8;border-radius:6px;color:#5b675e;white-space:nowrap}
.pill.active{background:#e6eee1;color:#34644d}
.admin-form{display:grid;gap:13px}
.admin-form .table-wrap input{min-width:70px;max-width:150px}
.form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;align-items:center;margin-block-start:8px}
.expected-line{display:flex;align-items:flex-end;gap:10px}
.expected-line .field{width:min(200px,40%)}
.expected-line p{font-size:12px;color:var(--muted);line-height:1.4;padding-block:5px}
.report{display:flex;gap:9px;align-items:flex-start;padding:13px;border-radius:9px;background:#fff2d9;color:#795b28;border:1px solid #f0e2bc}
.report p{margin-block-start:4px;font-size:12px;line-height:1.4}
.report-good{background:#e9f2e5;color:#315e47;border-color:#d6e7d4}
.factory-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-block:13px}
.factory-steps>div{display:grid;gap:6px;padding:11px;border:1px solid #e5ebdf;border-radius:9px;background:#fafbf5}
.factory-steps>div span{color:#6a815f;font-size:11px;font-weight:850}
.factory-steps>div small{line-height:1.45;color:#576f61}
.catalog-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.catalog-item{border:1px solid #e0e6d9;border-radius:11px;overflow:hidden;background:#fbfcf6}
.catalog-visual{height:170px;background:radial-gradient(ellipse,#f4f5eb,#e8eee2);display:grid;place-items:center}
.catalog-visual svg{height:100%;width:100%;max-height:169px;filter:drop-shadow(0 3px 5px #28402c33)}
.catalog-info{padding:11px;display:grid;gap:8px}
.catalog-info>div{display:flex;align-items:center;justify-content:space-between;gap:7px}
.catalog-info h3{font-size:15px}
.catalog-info p{color:#5a6d62;font-size:12px}
.catalog-visibility{padding:0 11px 11px}
.pricing-tiers{max-width:570px}
.modal{border:1px solid #e3e9db;border-radius:16px;width:min(100% - 28px,510px);max-width:none;max-height:min(90vh,930px);padding:0;background:#fffef8;color:var(--ink);box-shadow:0 24px 90px #11241f50}
.modal.wide{width:min(100% - 30px,900px)}
.modal::backdrop{background:#142b26a8;backdrop-filter:blur(3px)}
.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 18px 13px;background:#f6f8ed;border-block-end:1px solid #e6ebdf}
.modal-heading h2{font-size:24px;letter-spacing:-.03em;margin-block-start:5px}
.modal-body{padding:16px 18px 18px}
.dialog-copy{font-size:13px;color:#576960;line-height:1.5;margin-block-end:9px}
.dialog-form{display:grid;gap:10px}
.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-block-start:10px}
.password-line{display:flex;align-items:flex-end;gap:6px}
.password-line .field{flex:1}
.password-line .btn{min-height:39px}
.form-divider{border-block-start:1px solid #e8ebe0;padding-block-start:9px;margin-block-start:4px;display:flex;align-items:center;justify-content:space-between;gap:7px}
.palette-editor,.measure-editor{display:grid;gap:6px}
.palette-editor>div{display:grid;grid-template-columns:74px 1fr 1fr 34px;gap:7px;align-items:flex-end}
.measure-editor>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;align-items:center}
.layer-list{display:grid;gap:7px}
.layer-row{display:grid;grid-template-columns:39px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:7px;border:1px solid #e6ece0;border-radius:8px;background:#fbfcf6;font-size:12px}
.layer-row b{display:block;overflow-wrap:anywhere}
.layer-row small{font-size:10px;color:#577063}
.check-summary{border:1px solid #e1e9dc;border-radius:9px;margin:8px 0;padding:3px 10px;background:#f7f9f1}
.check-summary>div{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px 1px;border-block-end:1px solid #e5ebdf}
.check-summary>div:last-child{border:0}
.check-summary dt{color:#577062;font-size:12px}
.check-summary dd{margin:0;overflow-wrap:anywhere;font-weight:750}
.help-list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.help-list li{display:flex;gap:8px;align-items:flex-start;padding:8px 0}
.help-list li>span{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:7px;background:#e8efe3;color:#38634e;font-size:11px;font-weight:850}
.help-list p{font-size:12px;color:#5d7265;line-height:1.45;margin-block-start:3px}
.review-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;margin-block-end:9px}
.review-meta strong{margin-inline-start:auto}
.review-grid{display:grid;grid-template-columns:repeat(var(--review-columns,4),minmax(0,1fr));gap:6px;margin-block-end:10px}
.review-grid>div{display:grid;justify-items:center;gap:5px;background:#eff3e8;padding:5px;border-radius:8px;font-size:11px}
.review-grid svg{max-width:100%;width:100%;height:auto}
.return-form{margin-block-start:12px}
.toast{display:flex;align-items:center;gap:8px;position:fixed;inset-inline-end:20px;inset-block-end:18px;z-index:10;padding:11px 13px;border-radius:10px;color:#fff9ee;background:#214c3a;box-shadow:0 4px 18px #18362940;max-width:min(calc(100% - 32px),440px);font-size:13px;line-height:1.4}
.toast-error{background:#843b34}
:root:has(dialog[open]) #notice.toast{z-index:12}
.modal-alert:not(:empty),.sign-in-alert:not(:empty){background:#fbeee9;color:#863e32;border:1px solid #f2d9d0;border-radius:8px;padding:9px 10px;margin-block-end:10px;font-size:12px}
@media(min-width:900px) and (max-height:790px){
  .topbar-inner{min-height:66px}
  .studio-shell{padding-block-start:22px}
  .studio-heading{margin-block-end:17px}
  .studio-heading h1{font-size:clamp(44px,4.65vw,64px);margin-block:6px 7px}
  .garment-canvas{width:min(100%,355px);max-height:46vh}
  .garment-canvas svg#garment-svg{max-height:46vh}
  .patch-card{min-height:84px}
  .patch-drawing{width:38px;height:38px}
  .customizer-top{padding-block-start:13px}
}
@media(max-width:1100px){
  .shell{width:calc(100% - 48px)}
  .studio-grid{grid-template-columns:minmax(0,1.46fr) minmax(330px,1fr);gap:14px}
  .drag-hint{display:none}
  .view-bar{justify-content:center}
}
@media(max-width:820px){
  .shell{width:calc(100% - 30px)}
  .topbar-inner{min-height:64px;gap:9px}
  .brand-area{gap:9px}
  .nav-actions{gap:5px}
  .nav-help span,.nav-divider,.studio-nav{display:none}
  .nav-help,.lang-btn{padding-inline:7px}
  .nav-signin{padding-inline:9px;min-height:37px}
  .brand-lockup img{max-height:38px;width:auto}
  .studio-grid{grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr);gap:10px}
  .studio-shell{padding-block-start:22px}
  .studio-heading{margin-block-end:16px}
  .studio-heading h1{font-size:48px}
  .cohort{padding:7px;max-width:220px;gap:6px}
  .cohort-icon{width:31px;height:31px}
  .cohort-icon .ico{width:19px}
  .cohort b{font-size:11px}
  .preview-card{padding:9px}
  .garment-controls{align-items:flex-start}
  .product-btn{padding:5px 6px;min-height:33px}
  .product-btn .ico{width:15px;height:15px}
  .side-btn{font-size:10px;padding-inline:5px}
  .side-btn span{display:none}
  .customizer-top{padding-inline:11px}
  .tool-tabs{margin-inline:11px}
  .tool-body,.layer-bar,.quote-panel{padding-inline:11px}
}
@media(max-width:660px){
  .studio-grid{grid-template-columns:1fr}
  .studio-heading,.admin-heading{display:grid;justify-items:start;gap:13px}
  .studio-heading h1{font-size:47px}
  .studio-heading p{font-size:13px}
  .cohort{max-width:none}
  .cohort>div:last-child{grid-template-columns:auto auto;align-items:center;column-gap:7px}
  .cohort span{grid-column:1/-1}
  .garment-canvas{width:min(100%,335px);max-height:50vh}
  .garment-canvas svg#garment-svg{max-height:50vh}
  .view-caption{left:17px;top:16px}
  .stage-controls{right:16px;top:14px}
  .stage-controls .icon-btn{width:29px;height:29px}
  .view-bar{justify-content:center}
  .side-switch{width:100%;justify-content:space-between}
  .side-btn{flex:1;min-height:34px;white-space:normal}
  .customizer-top{padding-inline:13px}
  .tool-tabs{margin-inline:13px}
  .tool-body,.layer-bar,.quote-panel{padding-inline:13px}
  .studio-note{align-items:flex-start}
  .studio-note>span:nth-child(2){white-space:nowrap}
  .footer-inner{align-items:flex-start;justify-content:center;flex-direction:column;padding-block:8px;gap:3px}
  .admin-stats{gap:5px}
  .stat{padding:7px;gap:4px;flex-direction:column;align-items:flex-start}
  .stat .stat-glyph{width:29px;height:29px;border-radius:7px}
  .stat .stat-glyph .ico{width:16px}
  .stat b{font-size:17px}
  .stat span:last-child{font-size:10px}
  .admin-tab{font-size:11px;padding-inline:6px;min-height:42px}
  .admin-tab .ico{width:15px}
  .admin-card{padding:11px}
  .card-head{flex-wrap:wrap}
  .catalog-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .catalog-visual{height:126px}
  .catalog-visual svg{max-height:126px}
  .catalog-info>div{flex-wrap:wrap}
  .factory-steps{grid-template-columns:1fr}
  .form-grid.cols4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .user-btn{max-width:140px;font-size:12px;padding-inline:8px}
  .user-btn .ico-down{display:none}
}
@media(max-width:370px){
  .shell{width:calc(100% - 22px)}
  .nav-help{display:none}
  .quote-actions .btn{font-size:12px}
  .garment-size>span{display:none}
  .patch-card b{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

