/* A single large canvas. Objects above, one selected tool below. */
#overlay.home-world-edge .cw-edge>.cw-atelier-new{gap:8px;padding-bottom:8px!important;background:linear-gradient(160deg,#4e354b,#251b30)}
.cw-atelier-objects{display:flex;gap:6px;padding:0 12px;flex:none}
.home-world .chaya-world .cw-atelier-objects>button{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:5px 7px;border:1px solid #c39bb65c;border-radius:12px;background:#241b304d;color:#d4b3ca;font:900 11px var(--menu-heading)}
.cw-atelier-objects img{width:28px;height:31px;object-fit:contain}
.home-world .chaya-world .cw-atelier-objects>button[aria-pressed=true]{background:#e8c3d8;color:#36233a;border-color:#f8ddeb;box-shadow:none}
#overlay.home-world-edge .cw-edge .cw-atelier-stage{position:relative;display:flex;flex-direction:column;min-height:120px;flex:1 1 0;margin:0 10px;overflow:hidden;border:1px solid #cfa8c34d;border-radius:18px;background:radial-gradient(ellipse at 50% 45%,#9f7a9461,transparent 73%),#3b2c44}
.cw-atelier-stage:before{content:'';position:absolute;inset:10%;border:1px solid #e0c2d30d;border-radius:50%;pointer-events:none}
.cw-atelier-canvas{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;padding:40px 9px 44px;box-sizing:border-box}
.cw-atelier-canvas>svg{display:block;flex:1;min-height:0;height:100%;width:100%;max-height:none;touch-action:manipulation}
.cw-atelier-canvas>[data-cw-stage]{cursor:crosshair}
.cw-atelier-view{position:absolute;z-index:2;top:8px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:3px;background:#271b31c9;border:1px solid #cf9fb85c;border-radius:24px;white-space:nowrap}
.home-world .chaya-world .cw-atelier-view>button{min-height:30px;padding:5px 11px;border:0;border-radius:20px;background:transparent;color:#d1afc7;font:900 9px var(--menu-heading);letter-spacing:.5px}
.home-world .chaya-world .cw-atelier-view>button[aria-pressed=true]{background:#d9b3ce;color:#362338}
.cw-atelier-history{display:flex;align-items:center;gap:5px;position:absolute;z-index:2;bottom:4px;left:8px;right:8px}
.home-world .chaya-world .cw-atelier-history>button{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border:1px solid #cfabc13b;border-radius:50%;background:#291f34b8;color:#f1d5e5;font:24px/1 Arial,sans-serif;flex:none}
.cw-atelier-history>span{flex:1;min-width:0;text-align:center;font:9px/1.3 Arial,sans-serif;color:#d6bacb;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.cw-atelier-history button:disabled{opacity:.3}
.cw-atelier-dock{flex:none;min-height:0;margin:0 10px;background:#21192d;border:1px solid #caa0ba4d;border-radius:15px;overflow:hidden}
.cw-atelier-tool-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border-bottom:1px solid #9e779439}
.home-world .chaya-world .cw-atelier-tool-tabs>button{min-width:0;min-height:38px;border:0;border-radius:9px;background:none;color:#bda0b8;font:900 11px var(--menu-heading);letter-spacing:.6px;padding:5px}
.home-world .chaya-world .cw-atelier-tool-tabs>button[aria-pressed=true]{background:#b98da630;color:#ffe0ef;box-shadow:inset 0 -2px #e8bad5}
.cw-atelier-tool-panel{padding:9px 10px;min-width:0;box-sizing:border-box}
.cw-atelier-colors{display:flex;flex-direction:column;gap:5px}
.cw-atelier-colors>small{font:10px Arial,sans-serif;color:#bfa4b7;text-align:center}
#overlay.home-world-edge .cw-edge .cw-atelier-new .cw-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:0;margin:0;width:100%;min-width:0}
#overlay.home-world-edge .cw-edge .cw-atelier-new .cw-swatches>button{height:35px;min-height:35px;min-width:0;padding:0;border-radius:50%;border:2px solid transparent;background:var(--swatch);box-shadow:inset 0 0 0 1px #ffffff30}
#overlay.home-world-edge .cw-edge .cw-atelier-new .cw-swatches>button[aria-pressed=true]{border-color:#fff2f8;box-shadow:0 0 0 2px #b080a5}
.cw-atelier-stones{display:grid;grid-template-columns:1fr auto;gap:9px 7px;align-items:center;min-width:0}
.cw-atelier-stone-row{display:contents}
.cw-atelier-stone-row>.cw-swatches{grid-column:1/-1;grid-row:1}
.cw-atelier-shapes{display:flex;gap:3px;grid-column:1;grid-row:2}
.home-world .chaya-world .cw-atelier-shapes>button{width:32px;min-width:0;height:40px;min-height:40px;border:1px solid #b895b04d;border-radius:9px;background:#ffffff05;color:#e6c8da;font:21px Georgia,serif;padding:0}
.home-world .chaya-world .cw-atelier-shapes>button[aria-pressed=true]{border-color:#e8c0d9;background:#d6aac737;color:#ffe4f1}
.cw-atelier-presets{display:flex;gap:3px;grid-column:2;grid-row:2;min-width:0}
.cw-atelier-presets>small{display:none}
.home-world .chaya-world .cw-atelier-presets>button{min-height:40px;padding:5px 7px;background:#d4b4c50b;border:1px solid #b995ae44;border-radius:9px;color:#dcbfd1;font:900 10px var(--menu-heading)}
.cw-atelier-initials>label{font:900 8px var(--menu-heading);letter-spacing:1px;color:#c7a7bd}
.cw-atelier-initials>div{display:flex;gap:7px;margin:5px 0}
.cw-atelier-initials input{flex:1;width:0;min-width:0;min-height:40px;border:1px solid #bb97b374;border-radius:9px;background:#39283d;color:#ffe2f0;text-align:center;font:900 20px var(--menu-heading);letter-spacing:3px}
.home-world .chaya-world .cw-atelier-initials button{min-height:40px;padding:7px 14px;border:1px solid #d4a6c1;border-radius:9px;background:#dab5cc;color:#322036;font:900 11px var(--menu-heading)}
.cw-atelier-initials small{display:block;font:9px/1.3 Arial,sans-serif;color:#b79caf}
.cw-atelier-save{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.home-world .chaya-world .cw-atelier-save>button{min-height:43px;padding:8px;border:1px solid #b790ab77;border-radius:10px;background:#452e46;color:#f8deec;font:900 11px var(--menu-heading)}
.home-world .chaya-world .cw-atelier-save>button:first-child{background:#e8c2d7;color:#39233a;border-color:#f9ddec}
.cw-atelier-save>small{grid-column:1/-1;font:9px/1.4 Arial,sans-serif;text-align:center;color:#b89daf}
@media(max-width:360px){.cw-atelier-objects{padding:0 9px}.cw-atelier-objects img{width:23px}.home-world .chaya-world .cw-atelier-objects>button{font-size:10px;gap:4px}.cw-atelier-tool-panel{padding:8px}.home-world .chaya-world .cw-atelier-shapes>button{width:29px}.home-world .chaya-world .cw-atelier-presets>button{padding:5px;font-size:9px}.cw-atelier-history>span{font-size:8px}}
@media(max-height:580px){#overlay.home-world-edge .cw-edge>.cw-atelier-new{gap:5px}.home-world .chaya-world .cw-atelier-objects>button{min-height:39px}.cw-atelier-objects img{height:26px}.cw-atelier-tool-panel{padding-top:7px;padding-bottom:7px}#overlay.home-world-edge .cw-edge .cw-atelier-new .cw-swatches>button{height:29px;min-height:29px}.home-world .chaya-world .cw-atelier-tool-tabs>button{min-height:33px}.cw-atelier-history>span{display:none}.cw-atelier-history{justify-content:center}}
@media(max-height:450px){#overlay.home-world-edge .cw-edge>.cw-atelier-new{overflow-y:auto}.cw-atelier-stage{flex:1 0 210px!important}}

/* V103: OG LU is part of the studio, with a synchronized fitting beside the canvas. */
.cw-atelier-host{position:absolute;z-index:1;left:-3%;bottom:44px;top:43px;width:46%;display:flex;align-items:flex-end;justify-content:center;pointer-events:none;filter:drop-shadow(0 6px 9px #1b102a40)}
.cw-atelier-host>svg{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.cw-atelier-stage:not(.is-tryon) .cw-atelier-canvas{position:relative;z-index:1;align-self:flex-end;width:73%;padding-left:0;padding-right:8px}
.cw-atelier-stage:not(.is-tryon) .cw-atelier-canvas>svg{filter:drop-shadow(0 6px 8px #24162c3b)}
.cw-atelier-stage.is-tryon .cw-atelier-host{left:0;top:41px;bottom:44px;width:100%}
.cw-atelier-stage .cw-atelier-canvas[hidden]{display:none!important}
.cw-atelier-view,.cw-atelier-history{z-index:3}
@media(min-width:700px){.cw-atelier-host{left:1%;width:43%}.cw-atelier-stage:not(.is-tryon) .cw-atelier-canvas{width:67%;padding-right:24px}}

/* V104: leave room around the portrait, including hair and shoulders. */
.cw-atelier-host{left:1%;width:44%}
.cw-atelier-stage.is-tryon .cw-atelier-host{left:2%;width:96%;top:45px;bottom:47px}
