/* Room Studio */
body.tpl-studio{background:#11100E}
body.tpl-studio .hdr::before{background:rgba(17,16,14,.86);border-bottom-color:#2b2823}
body.tpl-studio .hdr{color:#EDE7DE}
body.tpl-studio .nav .is-hl{background:#fff;color:var(--ink)!important}
body.tpl-studio .nav>li>a:hover,body.tpl-studio .nav>li>button:hover,body.tpl-studio .ib:hover{background:rgba(255,255,255,.08)}
body.tpl-studio .mega{color:var(--ink)}
.st{--panel:380px;display:grid;grid-template-columns:minmax(0,1fr) var(--panel);grid-template-rows:minmax(0,1fr) auto;height:calc(100vh - var(--hdr));height:calc(100dvh - var(--hdr));background:#11100E;color:#EDE7DE;position:relative}
.st__stage{position:relative;grid-column:1;grid-row:1;display:grid;place-items:center;overflow:hidden;background:radial-gradient(120% 90% at 50% 40%,#25221e,#11100E)}
.st__stage canvas{grid-area:1/1;display:block;border-radius:6px}
.st__ov{pointer-events:none;touch-action:none;z-index:2}
.st__3d{position:absolute;inset:0;z-index:3}
.st__3d canvas{border-radius:0}
.st__hud{position:absolute;z-index:5;display:flex;gap:8px;align-items:center}
.st__hud--tl{left:18px;top:16px}.st__hud--tr{right:18px;top:16px}
.st__room{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:rgba(17,16,14,.62);backdrop-filter:blur(10px);font-size:13.5px;font-weight:500}
.st__pill{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;background:rgba(17,16,14,.62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-size:13.5px;font-weight:500;border:1px solid rgba(255,255,255,.12);transition:background .2s}
.st__pill:hover{background:rgba(17,16,14,.85)}
.st__pill.is-on{background:#fff;color:var(--ink)}
.st__pill svg{width:17px;height:17px}
.st__load{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:rgba(17,16,14,.35);backdrop-filter:blur(2px);font-size:14px}
.st__load i{width:34px;height:34px;border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .8s linear infinite}
.st__empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:30px;gap:8px}
.st__disc{position:absolute;left:18px;bottom:14px;z-index:5;margin:0;display:flex;gap:8px;align-items:center;font-size:12px;color:rgba(237,231,222,.72);max-width:min(560px,70%)}
.st__disc svg{width:15px;height:15px;flex:none}
.st__fail{max-width:460px;text-align:center;display:grid;gap:12px;padding:24px}
.st__panel{grid-column:2;grid-row:1/3;background:#F4F1EC;color:var(--ink);overflow-y:auto;border-left:1px solid #2b2823;display:flex;flex-direction:column}
.st__ph{display:none}
.st__sec{padding:18px 20px;border-bottom:1px solid var(--line)}
.st__lbl{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);font-weight:600;margin:0 0 10px}
.st__src{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
.st__src button{justify-content:center;font-size:12.5px;padding:0 6px;text-align:center;line-height:1.15}
.st [data-show]{display:none;margin-top:14px}
.st[data-src="demo"] [data-show="demo"],.st[data-src="photo"] [data-show="photo"],.st[data-src="3d"] [data-show="3d"],.st:not([data-src]) [data-show="demo"]{display:block}
.st__rooms{grid-template-columns:repeat(4,1fr);gap:8px}
.st[data-src="demo"] .st__rooms,.st:not([data-src]) .st__rooms{display:grid}
.st__rooms button{display:flex;flex-direction:column;gap:5px;font-size:11.5px;font-weight:500;color:var(--ink-2);text-align:left}
.st__rooms span{aspect-ratio:4/3;border-radius:10px;background:var(--paper-3) center/cover;border:2px solid transparent;transition:border-color .2s}
.st__rooms .is-on span{border-color:var(--ink)}
.st__up .btn{margin:0 6px 6px 0}
.st__tool{margin-top:12px;padding:12px;border-radius:var(--r);background:var(--paper-2)}
.st__srch{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:999px;background:var(--card);border:1px solid var(--line-2);margin-bottom:10px}
.st__srch svg{width:18px;height:18px;color:var(--mute)}
.st__srch input{flex:1;border:0;background:transparent;font-size:14.5px;min-width:0;outline:0}
.st__flt{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -20px 12px;padding:0 20px}
.st__flt::-webkit-scrollbar{display:none}
.st__flt .chip{min-height:32px;font-size:13px;padding:0 12px}
.st__slots{margin-bottom:10px}
.st__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:46vh;overflow-y:auto;padding:2px}
.sw{display:flex;flex-direction:column;gap:3px;text-align:left;border-radius:12px;padding:4px;transition:background .2s}
.sw:hover{background:var(--card)}
.sw span{aspect-ratio:1;border-radius:9px;background:var(--paper-3) center/cover;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);position:relative}
.sw b{font-size:11.5px;font-weight:500;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sw small{font-size:10.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw.is-a span{box-shadow:0 0 0 2px var(--ink)}
.sw.is-a span::after,.sw.is-b span::after{content:"A";position:absolute;right:6px;top:6px;width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;font-size:11px;font-weight:600;display:grid;place-items:center}
.sw.is-b span{box-shadow:0 0 0 2px var(--acc)}
.sw.is-b span::after{content:"B";background:var(--acc)}
.st__cols{margin-top:14px}
.st__cols-g{display:flex;flex-wrap:wrap;gap:6px}
.st__cols-g button{width:36px;height:36px;border-radius:50%;background:center/cover;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.st__cols-g button.is-on{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--ink)}
.st__opts{display:grid;gap:16px}
.st__opts .seg button{min-height:34px;font-size:13px;padding:0 12px}
.st__opts .seg button:disabled{opacity:.35;pointer-events:none}
.st__buy{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding:14px 18px;background:#191714;border-top:1px solid #2b2823}
.st__pimg{width:58px;height:58px;border-radius:12px;background:#333 center/cover;flex:none}
.st__pinfo{min-width:0;flex:1}
.st__pinfo .pc__c{color:#9A9288;font-size:11px}
.st__pn{display:block;font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st__pp{font-size:13.5px;color:#CFC7BB}
.st__pp strong{color:#fff;font-weight:500;font-size:15px}
.st__pp .mute,.st__buy .mute{color:#9A9288}
.st__calc{display:flex;align-items:center;gap:12px;flex:1 1 200px;min-width:200px}
.st__area{display:flex;align-items:center;gap:8px;height:44px;padding:0 6px 0 14px;border-radius:999px;background:#2a2723;border:1px solid #3a3631}
.st__area input{width:60px;background:transparent;border:0;color:#fff;font-size:16px;font-weight:500;outline:0}
.st__area span{font-size:12px;color:#9A9288;padding-right:10px;white-space:nowrap}
.st__cres{max-width:230px;line-height:1.4;color:#CFC7BB}
.st__cres b,.st__cres strong{color:#fff;font-weight:500}
.st__acts{display:flex;gap:8px;align-items:center;flex:none;margin-left:auto}
.st__acts .btn--ghost{--c:#EDE7DE;border-color:#3a3631}
.st__acts .btn--ghost:hover{border-color:#EDE7DE;background:rgba(255,255,255,.05)}
.st__acts .ib{color:#EDE7DE}
.st__acts .ib.is-on svg,.st__acts [data-fav].is-on svg{fill:var(--acc);stroke:var(--acc)}
.st__acts [data-sample].is-on{background:#fff;color:var(--ink);border-color:#fff}
.st__more{display:none}
@media (max-width:1180px){.st{--panel:330px}.st__calc .st__cres{max-width:170px}.hide-s{display:none}}
@media (max-width:980px){
  .st__buy{flex-wrap:wrap;gap:10px 14px}
  .st__calc{order:3;flex:1 1 100%}
  .st__acts{order:2}
}
@media (max-width:860px){
  .st{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;height:auto;min-height:calc(100dvh - var(--hdr))}
  .st__stage{grid-column:1;grid-row:1;height:min(64vh,calc(100vw * 1.25));min-height:360px}
  .st__hud--tr{left:12px;right:12px;top:auto;bottom:44px;justify-content:center}
  .st__hud--tr .st__pill span{display:none}
  .st__hud--tr #st-compare span{display:inline}
  .st__hud--tl{left:12px;top:12px}
  .st__disc{left:12px;right:12px;bottom:10px;max-width:none;font-size:11px}
  .st__buy{grid-column:1;grid-row:2;flex-wrap:wrap;padding:14px 16px calc(14px + env(safe-area-inset-bottom));position:sticky;bottom:0;z-index:20}
  .st__pinfo{flex:1 1 60%}
  .st__acts{flex:1 1 100%;order:4}
  .st__acts .btn--acc{flex:1}
  .st__calc{order:3}
  .st__more{display:flex;order:5;flex:1 1 100%;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:999px;border:1px solid #3a3631;color:#EDE7DE;font-size:14px;font-weight:500}
  .st__more svg{width:18px;height:18px}
  .st__panel{position:fixed;left:0;right:0;bottom:0;z-index:95;max-height:84vh;border-radius:22px 22px 0 0;transform:translateY(102%);transition:transform .45s var(--ease);box-shadow:var(--sh-3);border:0}
  .st.is-panel .st__panel{transform:none}
  .st__ph{display:flex;justify-content:space-between;align-items:center;padding:14px 20px 6px;position:sticky;top:0;background:#F4F1EC;z-index:2}
  .st__grid{grid-template-columns:repeat(4,1fr);max-height:none}
  .st__rooms{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:420px){.st__grid{grid-template-columns:repeat(3,1fr)}}
.st__grid>*{min-width:0}
.st__pinfo{flex:1 1 160px;min-width:150px}
.st__pp,.st__pn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st[data-src="3d"] .st__empty,.st[data-src="photo"] .st__empty{display:none!important}
.st__rooms--3d{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.st__r3c{display:grid!important;place-items:center;background:var(--paper-2)!important;color:var(--acc)}
.st__r3c svg{width:22px;height:22px}
.st__r3h{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:10px 12px;border-radius:12px;background:var(--paper-2);font-size:12.5px;line-height:1.45;color:var(--ink-2)}
.st__r3h svg{width:18px;height:18px;flex:none;color:var(--acc);margin-top:1px}
.st__r3h b{font-weight:600}
#st-3d{cursor:grab}#st-3d.is-drag{cursor:grabbing}
.st__pill--ai{background:var(--acc)!important;color:#fff!important;border-color:var(--acc)!important}
.st-aim{position:fixed;inset:0;z-index:120;background:rgba(17,16,14,.6);display:grid;place-items:center;padding:16px;backdrop-filter:blur(4px)}
.st-aim__c{position:relative;width:min(760px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--paper);border-radius:24px;padding:26px}
.st-aim__c h3{margin:0 0 6px;font-weight:500}
.st-aim__x{position:absolute;top:12px;right:12px}
.st-aim__r{margin-top:16px}
.st-aim__ba img{width:100%;border-radius:16px;display:block}
.st-aim__wait{display:flex;align-items:center;gap:12px;padding:30px;border-radius:16px;background:var(--paper-2);font-size:14px}
.st-aim__wait i{width:22px;height:22px;border-radius:50%;border:3px solid var(--line-2);border-top-color:var(--acc);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
body:has(#studio) .aic-fab{display:none}
