/* 3D Design Studio */
.studio-page .site-footer{margin-top:0}
.studio{display:grid;grid-template-columns:360px minmax(0,1fr);height:calc(100vh - 110px);min-height:600px;background:#F3EEE7;border-top:1px solid var(--line)}
.st-panel{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.st-head{padding:1.1rem 1.25rem .6rem}
.st-head h1{font-size:1.6rem;margin:0 0 .2rem}
.st-head p{font-size:.86rem;color:var(--muted);margin:0}
.st-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem;padding:.4rem .75rem;border-bottom:1px solid var(--line)}
.st-tabs button{background:none;border:0;border-radius:10px;padding:.5rem .2rem;display:flex;flex-direction:column;align-items:center;gap:.15rem;color:var(--muted);font-size:.74rem;font-weight:600}
.st-tabs button i{font-size:1.15rem}
.st-tabs button:hover{background:var(--sand);color:var(--ink)}
.st-tabs button.on{background:var(--peach);color:var(--orange-d)}
.st-body{flex:1;overflow-y:auto;padding:.4rem 1.25rem 1.5rem}
.st-pane h2{font-family:var(--font-body);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--ink);margin:1.25rem 0 .6rem}
.st-pane h2 small{text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)}
.st-note{font-size:.8rem;color:var(--muted);line-height:1.5;margin:.6rem 0 0}
.st-styles{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.st-style{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:.7rem .6rem .75rem;text-align:left;display:flex;flex-direction:column;gap:.1rem;transition:border-color .15s,box-shadow .15s}
.st-style svg{width:54px;height:48px;fill:none;stroke:#8A7F78;stroke-width:2;stroke-linejoin:round;margin-bottom:.25rem}
.st-style svg .lid{stroke:var(--orange)}
.st-style b{font-size:.86rem}.st-style small{font-size:.72rem;color:var(--muted);line-height:1.35}
.st-style:hover{border-color:#D9C9B8}
.st-style[aria-pressed="true"]{border-color:var(--orange-d);box-shadow:0 0 0 3px rgba(229,112,37,.15)}
.st-style[aria-pressed="true"] svg{stroke:var(--orange-d)}
.st-dims{display:grid;grid-template-columns:repeat(3,1fr) 72px;gap:.45rem}
.st-dims label{display:flex;flex-direction:column;gap:.2rem;font-size:.72rem;font-weight:600;color:var(--muted)}
.st-dims input,.st-dims select,.st-panel select{height:42px;border:1px solid #DCD2C7;border-radius:10px;padding:0 .6rem;font-size:.95rem;width:100%;background:#fff;color:var(--ink)}
.st-dims input:focus,.st-panel select:focus{outline:2px solid rgba(229,112,37,.35);border-color:var(--orange)}
.st-presets{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}
.st-presets button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.25rem .7rem;font-size:.76rem;font-weight:600;color:var(--ink2)}
.st-presets button:hover{border-color:var(--orange-d);color:var(--orange-d)}
.st-swatches{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}
.st-swatches button{display:flex;align-items:center;gap:.55rem;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:.5rem .6rem;font-size:.82rem;font-weight:600;text-align:left}
.st-swatches span{width:26px;height:26px;border-radius:8px;border:1px solid rgba(0,0,0,.12);flex:none}
.st-swatches button[aria-pressed="true"],.st-seg button.on{border-color:var(--orange-d);box-shadow:0 0 0 3px rgba(229,112,37,.15)}
.st-seg{display:flex;gap:.35rem}
.st-seg button{flex:1;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:.5rem .4rem;font-weight:600;font-size:.84rem;color:var(--ink)}
.st-seg.sm button{padding:.3rem .5rem;font-size:.78rem;flex:none}
.st-colors{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.st-colors button{width:30px;height:30px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.15);padding:0}
.st-colors button.on{box-shadow:0 0 0 2px var(--orange-d)}
.st-colors button.none{background:repeating-linear-gradient(45deg,#fff 0 4px,#eee 4px 8px);position:relative}
.st-colors label{width:30px;height:30px;border-radius:50%;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.15);background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);cursor:pointer}
.st-colors label input{position:absolute;inset:0;opacity:0;cursor:pointer}
.st-faces{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}
.st-faces button{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:.45rem .3rem;font-size:.8rem;font-weight:600;position:relative}
.st-faces button.on{border-color:var(--orange-d);background:var(--peach);color:var(--orange-d)}
.st-faces button.has::after{content:'';position:absolute;top:5px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--orange)}
.st-add{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}
.st-add button,.st-upload{border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:.55rem .3rem;display:flex;flex-direction:column;align-items:center;gap:.2rem;font-size:.76rem;font-weight:600;color:var(--ink);cursor:pointer;margin:0}
.st-add i{font-size:1.15rem;color:var(--orange-d)}
.st-add button:hover,.st-upload:hover{border-color:var(--orange-d)}
.st-upload{grid-column:span 2}
.st-row{display:flex;gap:.6rem;align-items:center;margin-bottom:.5rem;flex-wrap:wrap}
.st-color-in{display:flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600}
.st-color-in input{width:38px;height:32px;border:1px solid var(--line);border-radius:8px;padding:2px;background:#fff}
.st-range{display:flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;flex:1}
.st-range input{flex:1;accent-color:var(--orange-d)}
.st-props{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:.2rem .85rem .85rem;margin-top:1rem}
.st-props h2{margin-top:.8rem}
.st-actions{display:flex;flex-wrap:wrap;gap:.3rem}
.st-actions button{width:38px;height:36px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink)}
.st-actions button:hover{border-color:var(--orange-d);color:var(--orange-d)}
.st-actions .danger:hover,.st-link.danger{color:#B42318}
.st-link{background:none;border:0;padding:.2rem 0;font-weight:600;font-size:.84rem;color:var(--orange-d)}
.st-check{display:flex;gap:.5rem;align-items:center;font-size:.84rem;margin-top:.35rem}
.st-summary{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem;margin:1rem 0;font-size:.88rem}
.st-summary dl{display:grid;grid-template-columns:auto 1fr;gap:.25rem .9rem;margin:0}.st-summary dt{color:var(--muted);font-weight:500}.st-summary dd{margin:0;font-weight:600}
/* stage */
.st-stage{display:grid;grid-template-rows:minmax(0,1fr);min-height:0;min-width:0}
.studio.editing .st-stage{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.st-view{position:relative;min-height:0;min-width:0}
.st-3d{position:absolute;inset:0;cursor:grab}.st-3d:active{cursor:grabbing}
.st-3d canvas{display:block;width:100%!important;height:100%!important;outline:none}
.st-loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:.75rem;align-items:center;justify-content:center;color:var(--muted);font-weight:600;pointer-events:none}
.st-toolbar{position:absolute;left:50%;bottom:1rem;transform:translateX(-50%);display:flex;align-items:center;gap:.6rem;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:14px;padding:.4rem .55rem;box-shadow:0 8px 24px rgba(35,31,32,.1);max-width:calc(100% - 1.5rem);flex-wrap:wrap;justify-content:center}
.st-toolbar .st-seg button{border-width:1px}
.st-open{display:flex;align-items:center;gap:.35rem;color:var(--muted);margin:0}.st-open input{width:110px;accent-color:var(--orange-d)}
.st-icon{width:36px;height:34px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center}
.st-icon[aria-pressed="true"]{background:var(--peach);border-color:var(--orange-d);color:var(--orange-d)}
.st-dimtag{position:absolute;top:.9rem;left:.9rem;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:10px;padding:.35rem .7rem;font-size:.82rem;font-weight:600;color:var(--ink2)}
.st-editor{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:.8rem 1rem 1rem;min-height:0;min-width:0}
.st-editor-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}.st-editor-head b{font-size:1rem}.st-editor-head span{font-size:.8rem;color:var(--muted)}
.st-canvas-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#F5F1EB 0 25%,#FBF8F4 0 50%) 0 0/20px 20px;border-radius:12px;padding:1rem;overflow:hidden}
.st-canvas-box{position:relative;box-shadow:0 10px 30px rgba(35,31,32,.18);outline:1px dashed rgba(200,95,26,.6);outline-offset:-1px}
.st-canvas-box .window-guide{position:absolute;z-index:4;pointer-events:none;border:2px dashed #1F4E79;background:rgba(220,235,248,.45);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#1F4E79;font-weight:700;font-size:.8rem;letter-spacing:.04em}
.st-canvas-box .shape-guide{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
.shape-guide path{fill:rgba(35,31,32,.38)}.shape-guide line{stroke:#1F4E79;stroke-width:.5;stroke-dasharray:2 1.5;vector-effect:non-scaling-stroke}
.st-group{margin-top:.9rem}
.st-style .tag{display:inline-block;font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#146C2E;background:#DDF3E4;border-radius:999px;padding:.05rem .45rem;margin-left:.3rem;vertical-align:middle}
.st-canvas-box .guide{position:absolute;background:#E57025;pointer-events:none;z-index:5}
.st-canvas-box .guide.v{top:0;bottom:0;left:50%;width:1px}.st-canvas-box .guide.h{left:0;right:0;top:50%;height:1px}
@media(max-width:1199px){.studio{grid-template-columns:320px minmax(0,1fr)}.studio.editing .st-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.st-editor{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:767px){
  .studio{display:flex;flex-direction:column-reverse;height:auto}
  .st-stage{height:62vh;min-height:380px}
  .studio.editing .st-stage{height:auto;grid-template-rows:55vh 60vh}
  .st-panel{border-right:0}
  .st-body{overflow:visible}
  .st-open input{width:80px}
}
