:root{font-family:IBM Plex Sans,Segoe UI,sans-serif;line-height:1.4;font-weight:400;color:#19140f;background:#f4efe6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%}body{margin:0;background:#f4efe6}body.embed-mode{background:transparent}button,input,select{font:inherit}.editor-app{--accent: #c2410c;--panel-bg: #fff8ee;--app-bg: #f4efe6;min-height:100vh;padding:1rem;color:#221b16;background:radial-gradient(circle at 10% 0%,rgba(194,65,12,.08),transparent 42%),radial-gradient(circle at 100% 10%,rgba(14,116,144,.08),transparent 36%),var(--app-bg)}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.eyebrow{margin:0 0 .2rem;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#6b5a4e}.topbar h1{margin:0;font-size:clamp(1.1rem,2vw,1.55rem);line-height:1.1}.topbar-right{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}.badge{border:1px solid #ddcfbe;border-radius:999px;padding:.3rem .7rem;font-size:.78rem;background:#fffaf2}.badge.is-embed{border-color:#c2410c59;background:#c2410c14;color:#9a3412}.cta{border:1px solid transparent;border-radius:10px;background:var(--accent);color:#fff;padding:.58rem .9rem;font-weight:600;cursor:pointer}.cta:hover{filter:brightness(.96)}.app-grid{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr) minmax(250px,320px);gap:1rem;align-items:start}.panel{border:1px solid #e5d8c8;border-radius:16px;padding:.8rem;background:linear-gradient(180deg,rgba(255,255,255,.8),var(--panel-bg));box-shadow:0 6px 20px #25190e0d}.panel-section+.panel-section{margin-top:.8rem;padding-top:.8rem;border-top:1px dashed #e5d8c8}.panel-section h2{margin:0 0 .45rem;font-size:.96rem}.muted{margin:0;color:#6a5a4f;font-size:.86rem}.muted.compact+.muted.compact{margin-top:.35rem}.field{display:grid;gap:.3rem;margin-top:.6rem}.field>span{font-size:.82rem;color:#5f5248}.field input,.field select{width:100%;border:1px solid #dbcab8;border-radius:10px;padding:.5rem .65rem;background:#fffefb;color:#241d18}.field input[type=color]{padding:.2rem;height:2.3rem}.field input[type=range]{padding:0}.row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.row button,.panel button:not(.cta):not(.layer-title):not(.stage-el){border:1px solid #d8c7b5;border-radius:10px;background:#fff;color:#221b16;padding:.48rem .7rem;cursor:pointer}.row button:hover,.panel button:not(.cta):not(.layer-title):not(.stage-el):hover{border-color:#c9b39b}.layers{display:grid;gap:.45rem;margin-top:.4rem}.layer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.45rem;border:1px solid #e4d6c7;border-radius:10px;padding:.3rem;background:#fffdf9}.layer.selected{border-color:#c2410c73;box-shadow:inset 0 0 0 1px #c2410c1f}.layer-title{text-align:left;border:none;background:transparent;cursor:pointer;padding:.25rem .35rem;border-radius:8px}.layer-title:hover{background:#00000009}.layer-actions{display:flex;gap:.25rem}.layer-actions button{min-width:2rem;padding:.35rem .4rem}.stage-panel{display:grid;gap:.8rem}.tabs{display:flex;flex-wrap:wrap;gap:.4rem}.tabs button{border:1px solid #d8c7b5;border-radius:999px;padding:.45rem .8rem;background:#ffffffd9;cursor:pointer}.tabs button.active{border-color:#c2410c66;background:#c2410c14;color:#9a3412}.stage-shell{border:1px solid #e5d8c8;border-radius:18px;padding:.8rem;background:linear-gradient(180deg,#ffffffb8,#ffffff80);box-shadow:inset 0 0 0 1px #ffffff80}.stage{position:relative;width:100%;max-width:820px;margin:0 auto;aspect-ratio:720 / 520;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#ffffffd9,#f3eee6cc),repeating-linear-gradient(90deg,rgba(31,41,55,.03),rgba(31,41,55,.03) 1px,transparent 1px,transparent 24px),repeating-linear-gradient(0deg,rgba(31,41,55,.03),rgba(31,41,55,.03) 1px,transparent 1px,transparent 24px);border:1px solid rgba(146,126,106,.32)}.garment{position:absolute;inset:0;width:100%;height:100%}.garment svg{display:block;width:100%;height:100%}.safe-label{position:absolute;top:20%;left:50%;transform:translate(-50%);padding:.2rem .45rem;border-radius:999px;background:#ffffffe6;border:1px solid rgba(15,23,42,.18);color:#334155;font-size:.72rem;z-index:8;pointer-events:none}.konva-host{position:absolute;inset:0;z-index:6}.konva-stage{width:100%;height:100%}.stage-el{position:absolute;display:block;padding:0;border:none;background:transparent;cursor:pointer}.stage-el.selected:after{content:"";position:absolute;inset:0;border:2px dashed var(--accent);border-radius:8px;background:#c2410c0d;pointer-events:none}.chip{display:grid;place-items:center;width:100%;height:100%;border-radius:8px;padding:.25rem .4rem}.chip-text{border:1px dashed rgba(15,23,42,.18);background:#ffffff8c;line-height:1.1;font-weight:600}.chip-image{border:1px solid rgba(15,23,42,.18);background:linear-gradient(45deg,rgba(203,213,225,.55) 25%,transparent 25%) 0 0 / 10px 10px,linear-gradient(-45deg,rgba(203,213,225,.55) 25%,transparent 25%) 0 0 / 10px 10px,#fff;color:#0f172a;font-weight:700;letter-spacing:.06em}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}@media(max-width:1180px){.app-grid{grid-template-columns:1fr}.topbar{flex-direction:column}.topbar-right{justify-content:flex-start}}@media(max-width:640px){.editor-app{padding:.7rem}.stage-shell{padding:.45rem}.tabs button{flex:1 1 calc(50% - .4rem)}.two-cols{grid-template-columns:1fr}.row{flex-direction:column}.row button{width:100%}}
