/* KAUKA Atelier: focused four-step design studio. */
:root{--cream:#f7f2e9;--ink:#382c27;--line:#ddcfc2;--accent:#9b394d}
body{background:var(--cream)}
.site-head{height:76px;padding:0 4%;border-bottom-color:#382c2720;background:transparent}
.edition{letter-spacing:.25em;font-size:9px}.edition b{border-color:#382c2733;border-radius:3px}
.pill{background:#fffaf2;border-color:#d6c6b6;min-height:44px}
main{max-width:1600px;padding:42px 4% 80px}
.intro{margin-bottom:36px;align-items:center}.intro .eyebrow{letter-spacing:.22em;color:#986553;font-size:10px;margin-bottom:18px}
.intro h1{font-size:clamp(48px,5.9vw,86px);letter-spacing:-.065em}.intro h1 em{color:#9b394d}
.intro>p{font-size:14px;line-height:1.8;border-left:1px solid #d9c8b8;padding-left:24px;max-width:330px}
.studio{grid-template-columns:minmax(0,1.16fr) minmax(370px,.84fr);gap:30px;align-items:start}
.preview-column{top:18px;padding:0;position:sticky}
.preview{background:radial-gradient(ellipse at 48% 25%,#f9edda 0%,#ead5b7 63%,#ddbe9c 100%);border:1px solid #d4b99a;border-radius:160px 160px 24px 24px;padding:28px 28px 20px;box-shadow:inset 0 0 70px #fff7e929}
.preview-top{padding:6px 32px 0;font-size:10px}.preview-top>span{letter-spacing:.08em}.preview-top i{background:#858757}
.canvas-wrap{height:min(61vh,650px);min-height:380px;margin:8px 0}
.watermark{font-size:clamp(70px,10vw,145px);letter-spacing:-.07em;color:#9d765714;top:40%}
.view-tabs{width:210px;margin:0 auto 14px;background:#e7dfd2;border-radius:99px;padding:4px}
.view-tabs button{border-radius:99px;min-height:36px;padding:8px 18px;font-size:11px}
.view-tabs button[aria-pressed=true]{background:var(--ink);color:#fff8ee;box-shadow:none}
.preview-bottom{border-top:1px solid #8a664c30;padding-top:14px;letter-spacing:.09em;min-height:35px;align-items:center}
.preview-bottom strong{font-size:9px;max-width:72%}.preview-bottom>span{font-size:8px}
.preview-tools{padding:7px 8px 0}.preview-tools .text-button{font-size:11px}
.preview-note{padding-inline:8px;font-size:10px;max-width:520px;line-height:1.5}
.reference-link{padding:13px 8px;font-size:11px}
.options{border:1px solid #e0d3c6;border-radius:24px;background:#fffaf3;padding:26px;box-shadow:0 16px 55px #65412307;min-height:560px}
.editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.editor-head .eyebrow{margin:0;font-size:9px;letter-spacing:.17em}.editor-head>span:last-child{font-size:10px;color:#92745d;font-variant-numeric:tabular-nums}
.design-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:0 0 24px;border-bottom:1px solid #e9ddd0;margin-bottom:24px}
.design-steps button{display:flex;gap:8px;align-items:center;justify-content:center;border:0;background:#f0e8dc;border-radius:10px;padding:13px 4px;font-size:11px;min-height:44px;transition:background .2s,color .2s}
.design-steps button span{font-size:9px;opacity:.6}.design-steps button[aria-current]{background:#382c27;color:#fff7e9}
fieldset{border:0;padding:0;margin:0 0 24px}legend{font-size:29px;letter-spacing:-.04em;margin-bottom:12px}legend>span{display:none}
.options .hint{font-size:11px;color:#947a65;line-height:1.65;margin:0 0 18px}
.options h3{font-weight:500;font-size:12px;letter-spacing:.01em;margin:20px 0 12px}
.segments:not(.view-tabs){border-radius:12px;background:#eee4d7;padding:4px;margin-bottom:16px}.segments button{min-height:42px;font-size:12px;border-radius:9px}
.model-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice{border-color:#e6d9ca;background:#fffaf3;padding:7px;border-radius:13px;transition:transform .18s,border-color .18s,box-shadow .18s}
.choice:hover{border-color:#ad7e6a;transform:translateY(-2px)}.choice:has(input:checked){border-color:#9b394d;background:#fff6f1;box-shadow:0 0 0 1px #9b394d}
.choice:has(input:checked)::after{content:'✓';position:absolute;top:9px;right:9px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:#9b394d;color:white}
.model-choice .choice-art{height:88px;border-radius:8px;background:radial-gradient(ellipse,#e6d6c0,#d7c4aa)}
.choice-name{font-size:10px;line-height:1.4;margin-top:8px;padding:0 2px 3px;min-height:28px;display:grid;place-items:center}
.swatches{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.swatch .choice-art{height:108px;border-radius:8px}.trim-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}.trim-swatches .choice-art{height:70px}
.selected-choice{font-size:12px;background:#f2e9dd;border-left:2px solid #9b394d;padding:11px 12px;border-radius:0 8px 8px 0;margin-bottom:16px}
.step-navigation{display:flex;gap:15px;align-items:center;border-top:1px solid #e8dacc;padding-top:18px;margin-top:10px}.step-navigation .primary{flex:1}.step-navigation>.text-button{min-width:48px;min-height:44px;text-decoration:none;font-size:12px}.step-navigation>.text-button:disabled{cursor:default;opacity:.3}
.primary{background:#9b394d;border-radius:12px;min-height:52px;font-size:13px;box-shadow:0 6px 16px #9b394d12}.primary:hover{background:#7e2c3c}
.sizes{gap:10px}.size{flex:1}.size span{width:100%;height:58px;border-radius:12px}.size:has(:checked) span{background:#9b394d;border-color:#9b394d}
.summary{background:#f1e7d9;padding:20px;border-radius:14px;margin-bottom:18px}.summary .price{font-size:10px}#selection{font-size:12px;line-height:1.8}.demo-note{font-size:10px}
.reference-intro{max-width:none;margin-top:70px;padding-top:32px}.reference-intro h2{font-size:42px;letter-spacing:-.04em}.reference-intro>p{max-width:610px}
@media(max-width:1050px) and (min-width:801px){.studio{gap:20px;grid-template-columns:1fr 1fr}.options{padding:20px}.preview{padding-inline:18px}.preview-top{padding-inline:12px}}
@media(max-width:800px){
.site-head{height:64px;padding:0 18px}.edition{font-size:8px;letter-spacing:.06em}.site-head .pill{font-size:10px;min-height:38px}
main{padding:24px 14px 45px}.intro{margin:0 4px 25px}.intro .eyebrow{font-size:8px;letter-spacing:.14em;margin-bottom:10px}.intro h1{font-size:48px}.intro>p{font-size:11px;border:0;padding:0;line-height:1.6;margin-top:13px;max-width:none}
.studio{grid-template-columns:1fr;gap:15px}.preview-column{top:0;background:var(--cream);padding:6px 0 0;z-index:3}.preview{border-radius:65px 65px 16px 16px;padding:9px 13px 11px}.preview-top{padding:0 8px;font-size:8px}.preview-top .text-button{font-size:10px;padding:5px 0}.canvas-wrap{height:31dvh;min-height:220px;max-height:330px;margin:0}.watermark{font-size:85px}.preview-bottom{padding-top:7px;min-height:27px}.preview-bottom strong{font-size:8px;line-height:1.4}.preview-bottom>span{font-size:7px;letter-spacing:0}
.view-tabs{width:180px;margin-bottom:7px;padding:3px}.view-tabs button{min-height:31px;font-size:10px;padding:5px 14px}.preview-tools{padding:0 5px;margin:0}.preview-tools .text-button{min-height:30px;font-size:10px}.preview-note{display:none}.reference-link{padding:6px 5px 9px;font-size:9px;min-height:30px}
.options{padding:18px 14px;border-radius:18px;min-height:0}.editor-head{margin-bottom:15px}.design-steps{gap:5px;padding-bottom:18px;margin-bottom:20px}.design-steps button{padding:11px 2px;font-size:11px;gap:5px}.design-steps button span{font-size:8px}
legend{font-size:28px}.model-choice .choice-art{height:78px}.choice{padding:6px}.choice-name{font-size:9px;min-height:27px}.model-options{gap:7px}.swatch .choice-art{height:105px}.trim-swatches .choice-art{height:57px}.options .hint{font-size:10px}.options h3{margin-top:18px}.segments button{font-size:11px}.step-navigation{position:sticky;bottom:0;background:#fffaf3;padding:12px 0 2px;z-index:2}.reference-intro{margin-top:40px}.reference-intro h2{font-size:33px}
}
@media(max-height:650px) and (max-width:800px){.preview-column{position:static}.canvas-wrap{height:300px;max-height:none}}
@media(prefers-reduced-motion:reduce){.choice,.design-steps button{transition:none}.choice:hover{transform:none}}

.options{scroll-margin-top:20px}@media(max-width:800px){.options{scroll-margin-top:calc(31dvh + 185px)}}@media(max-height:650px) and (max-width:800px){.options{scroll-margin-top:16px}}
@media(max-width:800px){.step-navigation{position:static}}

/* Live atelier: part-aware editing and reversible combinations. */
.preview{border-radius:36px;background:radial-gradient(ellipse at 48% 30%,#fff4e2,#ead5b7 75%);box-shadow:0 24px 70px #7053370c,inset 0 0 70px #fff7e929}
.preview-edit{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #9c74562b}
.preview-edit>span{font-size:10px;letter-spacing:.07em;color:#80634e}.preview-edit>div{display:flex;background:#fffaf28c;border-radius:99px;padding:3px;gap:3px}
.preview-edit button{border:0;border-radius:99px;background:transparent;padding:9px 18px;min-height:36px;font-size:11px}.preview-edit button[aria-pressed=true]{background:#9b394d;color:white;box-shadow:0 3px 10px #9b394d22}
.preview-top{padding-inline:4px}.preview[data-busy=true] .preview-top i{animation:atelier-pulse .8s ease-in-out infinite}.preview[data-busy=true]{border-color:#bc8d74}
.design-history{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:12px 2px 5px;min-height:43px}.design-history button{border:0;background:transparent;min-height:32px;font-size:10px;padding:5px;color:var(--ink);white-space:nowrap}.design-history button:disabled{opacity:.3;cursor:default}#design-status{text-align:center;font-size:10px;color:#8a6755;line-height:1.5}
.reset-design{border:0;background:transparent;font-size:10px;color:#8a6755;min-height:32px;padding:5px 8px;text-decoration:underline;text-underline-offset:3px}
.choice{overflow:hidden}.choice:active{transform:scale(.975)}.choice:has(input:checked){background:#fff4f0;box-shadow:0 0 0 1px #9b394d,0 7px 18px #9b394d10}.swatch .choice-art{height:130px}.trim-swatches .choice-art{height:78px}.choice-name{font-size:11px;min-height:32px}.model-choice .choice-art{height:100px}
.design-steps button{position:relative}.design-steps button[data-complete=true]:not([aria-current])::after{content:'';position:absolute;right:7px;top:7px;width:4px;height:4px;border-radius:50%;background:#7b8665}.design-steps button[aria-current]{background:#9b394d}
button:focus-visible{outline:3px solid #2f719c;outline-offset:3px}.segments button,.preview-edit button{transition:background .2s,color .2s,box-shadow .2s}
@keyframes atelier-pulse{50%{box-shadow:0 0 0 5px #85875720;opacity:.5}}
@media(max-width:800px){.preview{border-radius:24px;padding:12px}.preview-edit{margin-bottom:5px;padding-bottom:7px}.preview-edit>span{font-size:9px}.preview-edit button{min-height:30px;padding:6px 14px;font-size:10px}.canvas-wrap{height:32dvh;min-height:225px;max-height:330px}.design-history{padding-top:5px;min-height:32px}.design-history button,#design-status{font-size:9px}.preview-tools{margin-top:0}.reset-design{min-height:26px;font-size:9px}.reference-link{font-size:9px}.swatch .choice-art{height:115px}.trim-swatches .choice-art{height:66px}.model-choice .choice-art{height:82px}.choice-name{font-size:10px}.options{scroll-margin-top:calc(32dvh + 235px)}.intro>p{display:none}.intro{margin-bottom:20px}.preview-column{position:static}.options{scroll-margin-top:16px}}
@media(prefers-reduced-motion:reduce){.preview-top i{animation:none!important}.segments button,.preview-edit button{transition:none}.choice:active{transform:none}}
@media(max-width:800px) and (min-height:651px){.preview-column{position:sticky;top:0}.options{scroll-margin-top:calc(32dvh + 220px)}}
/* Keep the canvas and editing controls together within the screen. */
.preview{padding:16px 22px}.preview-edit{gap:8px;margin-bottom:6px;padding-bottom:9px}.preview-edit .view-tabs{margin:0;width:185px;flex:none;padding:3px}.preview-edit .view-tabs button{padding:7px 12px;min-height:32px}.preview-edit>span{font-size:9px;text-align:center}.preview-edit>div:last-child{flex:none}.preview-edit .view-tabs button[aria-pressed=true]{background:#382c27;color:#fff8ee}
.canvas-wrap{height:calc(100dvh - 300px);min-height:300px;max-height:560px;margin:0}.preview-top{padding-top:0}.preview-top .text-button{min-height:26px;padding:4px 0}
.design-history{min-height:32px;padding:5px 2px 0}.preview-tools{align-items:center;gap:12px;margin:0;padding:0 5px}.preview-tools .reference-link{width:auto;min-height:32px;border:0;padding:5px 0;font-size:10px}.preview-tools .reference-link span{display:none}.preview-tools .text-button{min-height:32px}.preview-note{display:none}.preview-note.reference-pending{display:block}.reset-design{display:block;margin:-14px 0 12px auto}#top-model-heading,#bottom-model-section{scroll-margin-top:20px}
@media(max-width:1050px){.preview-edit>span{display:none}.preview-edit .view-tabs{width:165px}.preview-edit button{padding-inline:12px}}
@media(max-width:800px){.preview{padding:10px 12px}.preview-edit .view-tabs{width:160px}.preview-edit .view-tabs button{min-height:30px;padding:6px 10px}.preview-edit>div:last-child button{padding-inline:11px}.canvas-wrap{height:29dvh;min-height:220px;max-height:320px}.preview-tools{gap:7px}.preview-tools .reference-link{font-size:9px}.preview-tools .reference-link{max-width:43%;text-align:right}.options,#top-model-heading,#bottom-model-section{scroll-margin-top:calc(29dvh + 170px)}}
@media(max-height:650px) and (max-width:800px){.options,#top-model-heading,#bottom-model-section{scroll-margin-top:16px}}
@media(max-width:800px) and (min-height:651px){.choice,.size{scroll-margin-top:calc(29dvh + 190px)}}
@media(max-width:800px) and (min-height:651px){
.design-steps{position:sticky;top:var(--studio-preview-height,440px);z-index:4;background:#fffaf3;padding:8px 0 10px;box-shadow:0 -8px 0 #fffaf3;margin-bottom:18px}
.options,#top-model-heading,#bottom-model-section{scroll-margin-top:var(--studio-preview-height,440px)}
.choice,.size{scroll-margin-top:calc(var(--studio-preview-height,440px) + 80px)}
}
/* More garment area with the complete bows and shared piece scale retained. */
.canvas-wrap{height:calc(100dvh - 180px);min-height:380px;max-height:690px}
@media(max-width:800px){.canvas-wrap{height:42dvh;min-height:320px;max-height:460px}}

.rear-cuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rear-cuts .size span{width:100%;min-width:0;padding:14px 10px;font-size:13px}
