:root{--red:#df1728;--ink:#232323;--muted:#757575;--line:#e7e7e7;--soft:#f5f5f5;--font:'Noto Sans Georgian',sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:13px/1.6 var(--font);background:#f5f5f5}button,input,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--red);outline-offset:3px}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}h1,h2{line-height:1.5;font-weight:600}[hidden]{display:none!important}.sr-only,.skip{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.skip:focus{z-index:100;width:auto;height:auto;clip-path:none;left:8px;top:8px;background:#fff;padding:10px}.studio-header{display:flex;align-items:center;gap:23px;background:white;border-bottom:1px solid var(--line);padding:9px 30px;min-height:90px}.studio-brand{width:136px;flex-shrink:0}.studio-title{border-left:1px solid var(--line);padding-left:23px}.studio-title span{font-size:12px;color:var(--muted)}.studio-title h1{font-size:19px;margin-top:3px}.back-link{margin-left:auto;font-size:12px;color:var(--muted)}.back-link:hover{color:var(--red)}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid var(--line);padding:12px 17px;background:white;border-radius:4px;font-size:12px;min-height:42px}.button.primary{background:var(--red);border-color:var(--red);color:white}.button.primary:hover{background:#c41726}.studio-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;padding:12px 30px;border-bottom:1px solid var(--line)}.room-switch{display:flex;gap:5px}.room-switch button{display:flex;align-items:center;gap:9px;padding:8px 15px;border-radius:4px;color:var(--muted)}.room-switch [aria-pressed=true]{background:#fff0f2;color:var(--red);font-weight:600}.save-state{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px}.save-state>span:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#7c8e76;margin-right:7px}.save-state button{font-size:12px;padding:7px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;height:calc(100dvh - 153px);min-height:620px;max-height:1100px}.visual-stage{display:flex;flex-direction:column;min-width:0;padding:24px 25px 12px}.stage-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-end;margin-bottom:20px}.eyebrow{font-size:12px;color:var(--red);letter-spacing:.7px}.presets{display:flex;gap:6px;margin-top:9px}.presets button{background:#fff;border:1px solid #ddd;padding:7px 11px;border-radius:4px;font-size:12px}.presets button:hover{border-color:var(--red);color:var(--red)}.variant-control>span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.variant-control>div{display:flex;gap:3px;align-items:center}.variant-control button{font-size:12px;border-radius:4px;padding:6px 12px;background:white;border:1px solid var(--line)}.variant-control [aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.variant-control #copyVariantBtn{background:transparent;border:0;color:var(--muted);padding-inline:9px;font-size:12px}.canvas-wrapper{position:relative;flex:1;min-height:280px;overflow:hidden;background:#e8e4df;border:1px solid #dedbd6;border-radius:5px;isolation:isolate}.canvas-wrapper canvas{position:absolute;display:block}.canvas-wrapper #vdsPhotoCanvas{left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;cursor:crosshair}.canvas-wrapper :is(#threeCanvas,#softwareCanvas){width:100%;height:100%;touch-action:none;cursor:grab}.canvas-wrapper :is(#threeCanvas,#softwareCanvas):active{cursor:grabbing}.render-badge{position:absolute;left:12px;bottom:12px;padding:5px 9px;border-radius:3px;background:#ffffffdf;font-size:12px;color:#555;pointer-events:none;z-index:2}#hotspotsContainer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.hotspot-pin{position:absolute;transform:translate(-50%,-50%);width:27px;height:27px;border-radius:50%;background:#242424cc;border:1.5px solid white;color:white;box-shadow:0 3px 12px #0003;pointer-events:auto;font:600 12px var(--font);display:grid;place-items:center;padding:0;z-index:2}.hotspot-pin.active-pin{background:var(--red);box-shadow:0 0 0 5px #df172826,0 3px 12px #0002}.hotspot-pin:hover{background:var(--red)}.loading-state{position:absolute;inset:0;display:grid;place-items:center;background:#eeeae4;color:#777;font-size:13px;z-index:3}.stage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px;flex-wrap:wrap}.view-switch{display:flex;background:white;border:1px solid var(--line);padding:3px;border-radius:4px}.view-switch button{padding:7px 12px;border-radius:3px;font-size:12px}.view-switch [aria-pressed=true]{background:var(--ink);color:white}.camera-controls{display:flex;gap:3px;flex-wrap:wrap}.camera-controls button{font-size:12px;padding:7px 9px;border:1px solid transparent;border-radius:4px}.camera-controls [aria-pressed=true]{border-color:#d9d9d9;background:white}.camera-controls #toggleDoorsBtn{border-left:1px solid #ddd;border-radius:0;margin-left:3px}.snapshot-button{display:flex;gap:7px;align-items:center;font-size:12px;padding:9px;background:white;border:1px solid var(--line);border-radius:4px}.stage-options{display:flex;align-items:center;gap:19px;margin-top:13px;padding-top:13px;border-top:1px solid #e2e2e2;color:#666;font-size:12px;flex-wrap:wrap}.stage-options label{display:flex;gap:10px;align-items:center}.stage-options select{padding:5px 4px;border:0;background:none;font-size:12px;max-width:140px}.stage-options button{font-size:12px;padding:6px 0}.stage-options [aria-pressed=true]{color:var(--red)}#resetSceneBtn{margin-left:auto}.view-help{font-size:12px;color:#666;margin-top:14px}.studio-disclaimer{font-size:12px;line-height:1.8;color:#858585;margin-top:6px;max-width:810px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 21px;background:#232323;color:white;border:1px solid #555;border-radius:5px;box-shadow:0 5px 20px #0003;z-index:100;font-size:13px;width:max-content;max-width:calc(100% - 30px)}dialog{padding:0;border:0;border-radius:7px;width:min(700px,calc(100% - 32px));max-height:88dvh;box-shadow:0 15px 70px #0004;color:var(--ink)}dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:23px 27px;border-bottom:1px solid var(--line)}.modal-heading h2{font-size:23px;margin-top:6px}.modal-heading p{font-size:12px;color:var(--muted);margin-top:8px}.modal-heading button{font-size:25px;padding:0 5px}.modal-body{padding:20px 27px;overflow:auto;max-height:55dvh}.spec-note{font-size:12px;color:var(--muted);margin-bottom:17px;line-height:1.9}.spec-table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;background:#f5f5f5;font-size:12px;font-weight:500}th,td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}td:first-child{width:38%}td b{display:block;font-size:12px;font-weight:600}td span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.modal-actions{display:flex;align-items:center;gap:10px;padding:17px 27px;background:#fafafa;border-top:1px solid var(--line);flex-wrap:wrap}.textlink{font-size:12px;text-decoration:underline;text-underline-offset:4px;margin-left:auto}.noscript{position:fixed;inset:40% 20%;background:white;padding:25px;z-index:50}
@media(min-width:1600px){.studio-layout{grid-template-columns:minmax(0,1fr) 410px}.visual-stage{padding:30px 35px 18px}}
@media(max-width:1100px){.studio-layout{grid-template-columns:minmax(0,1fr) 325px}.studio-header{padding-inline:20px;gap:17px}.studio-title{padding-left:17px}.studio-title h1{font-size:17px}.visual-stage{padding:20px 17px 12px}.stage-top{align-items:flex-start}.presets{flex-wrap:wrap;gap:5px}.presets button{font-size:12px;padding:6px 8px}.variant-control{flex-shrink:0}.stage-toolbar{justify-content:flex-start;gap:8px}.snapshot-button{margin-left:auto}.camera-controls{order:3;flex-basis:100%;justify-content:space-between}.stage-options{gap:12px}.save-state{gap:10px}}
@media(max-width:800px){.studio-layout{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}.visual-stage{padding:20px 18px 18px}.canvas-wrapper{flex:none;height:clamp(260px,53vw,430px)}.stage-toolbar{justify-content:space-between}.camera-controls{order:0;flex-basis:auto}.stage-options{gap:20px}.view-help{font-size:12px}.studio-title h1{font-size:16px}.studio-header .back-link{font-size:12px}.studio-header{gap:15px;padding:7px 18px;min-height:77px}.studio-brand{width:115px}.studio-title{border:0;padding:0}.studio-title>span{font-size:12px}.studio-header>.button{padding:10px 12px;min-height:38px;font-size:12px}.studio-topbar{padding:9px 18px}.save-state>span{display:none}.room-switch button{font-size:12px}.variant-control>span{font-size:12px}.presets button{font-size:12px}}
@media(max-width:520px){.studio-header{flex-wrap:wrap;gap:0 15px;padding:5px 18px 11px}.studio-brand{width:113px}.studio-title{margin-left:auto;text-align:right}.studio-title h1{font-size:14px}.studio-title>span{font-size:12px}.studio-header>.back-link{margin-left:0;margin-right:auto;font-size:12px;padding:7px 0}.studio-header>.button{padding:9px 12px;font-size:12px;min-height:36px}.studio-topbar{padding:9px 15px;gap:8px}.room-switch{gap:2px}.room-switch button{font-size:12px;padding:8px;gap:5px}.room-switch svg{width:16px;height:16px}.save-state{gap:2px}.save-state button{font-size:12px;padding:5px}.visual-stage{padding:17px 14px 16px}.stage-top{display:block;margin-bottom:14px}.presets{gap:6px;margin-top:9px;justify-content:space-between}.presets button{font-size:12px;padding:7px 10px;flex:1}.variant-control{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.variant-control>span{margin:0;font-size:12px}.variant-control button{padding:5px 12px}.canvas-wrapper{height:265px;min-height:0}.render-badge{font-size:12px;bottom:9px;left:9px;padding:4px 6px}.hotspot-pin{width:24px;height:24px;font-size:12px}.hotspot-pin.active-pin{box-shadow:0 0 0 3px #df172833}.stage-toolbar{gap:9px;margin-top:11px}.view-switch button{font-size:12px;padding:6px 12px}.camera-controls{order:3;flex-basis:100%;justify-content:space-between}.camera-controls button{font-size:12px;padding:7px 7px}.camera-controls #toggleDoorsBtn{margin:0}.snapshot-button{font-size:12px;padding:8px}.stage-options{gap:8px 12px;font-size:12px;margin-top:10px;padding-top:9px}.stage-options label{font-size:12px;gap:6px}.stage-options select{font-size:12px;max-width:115px}.stage-options button{font-size:12px}#resetSceneBtn{margin-left:0}.view-help{font-size:12px;line-height:1.9;margin-top:12px}.studio-disclaimer{font-size:12px}.modal-heading{padding:19px}.modal-heading h2{font-size:20px}.modal-body{padding:17px}.modal-actions{padding:15px 17px;gap:8px}.modal-actions .button{font-size:12px;padding:10px}.textlink{font-size:12px}th,td{font-size:12px;padding:10px 7px}.spec-note{font-size:12px}.toast{font-size:12px;bottom:94px}.studio-disclaimer{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.studio-brand img{width:100%;height:auto}
.mobile-select{display:none}@media(max-width:800px){.mobile-select{display:block;border:1px solid #d9d9d9;border-radius:3px;padding:11px 15px;margin-top:13px;color:var(--red);font-size:12px;background:#fff;text-align:center}#canvasWrapper{scroll-margin-top:12px}}

/* Original manufacturer palettes. */.snapshot-button:disabled{opacity:.45;cursor:wait}

/* Material palette */
@media (min-width:801px) {
  .studio-layout {grid-template-columns:minmax(0,1fr) clamp(360px,34vw,540px);min-height:560px}
  .studio-layout.palette-expanded {grid-template-columns:minmax(0,1fr) clamp(430px,48vw,880px)}
}
.selection-panel {
  --inset:clamp(14px,1.3vw,22px);
  min-width:0;min-height:0;display:flex;flex-direction:column;
  background:#fff;border-left:1px solid var(--line);
}
.surface-picker {
  position:relative;display:grid;grid-template-columns:auto 1fr auto;
  grid-template-rows:13px 18px;column-gap:10px;align-content:center;align-items:center;
  margin:12px var(--inset) 0;padding:7px 12px;min-height:47px;
  background:#f7f5f2;border:1px solid #e4dfd9;border-radius:8px;
}
.surface-picker:focus-within {outline:2px solid var(--red);outline-offset:2px}
.surface-number {
  grid-area:1/1/3/2;display:grid;place-items:center;width:27px;height:27px;
  background:#403b37;border-radius:50%;color:#fff;font-weight:600;
}
.surface-picker label {grid-area:1/2;font-size:12px;line-height:1.3;color:#625c55}
.surface-picker select {
  position:absolute;inset:0;width:100%;height:100%;min-width:0;padding:18px 34px 3px 50px;
  border:0;background:transparent;appearance:none;
  font-size:13px;line-height:1.5;font-weight:600;outline:0;cursor:pointer;
}
.surface-picker svg {grid-area:1/3/3/4;width:16px;pointer-events:none}
.surface-picker label,.surface-picker .surface-number,.surface-picker svg {pointer-events:none}
.decor-section {padding:15px var(--inset) 10px}
.palette-heading,.palette-search-row,.decor-filters {display:flex;align-items:center;gap:8px}
.palette-heading {margin-bottom:10px}
.palette-heading h2 {font-size:18px;letter-spacing:-.35px}
.palette-heading small {color:#6b6660;font-size:12px}
#expandPalette {margin-left:auto;display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid var(--line);border-radius:5px;font-size:12px}
#expandPalette svg {width:14px;height:14px}
#expandPalette[aria-pressed=true] {border-color:#ba9b9a;background:#fff5f5}
.palette-search-row {display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr)}
.decor-search,.palette-search-row select {height:36px;border:1px solid #dcd8d4;border-radius:6px;background:white}
.decor-search {display:flex;align-items:center;gap:6px;padding:0 9px}
.decor-search svg {width:15px;height:15px;color:#736c65}
.decor-search input {font-size:12px;border:0;width:100%;min-width:0;height:100%;background:none;outline:none}
.decor-search:focus-within {outline:2px solid var(--red);outline-offset:1px}
.palette-search-row select {min-width:0;width:100%;padding:0 6px;font-size:12px;cursor:pointer}
.decor-filters {flex-wrap:wrap;gap:5px;margin-top:9px}
.decor-filters button {font-size:12px;padding:4px 10px;min-height:28px;border:1px solid #e4e0dd;border-radius:20px;color:#57524c}
.decor-filters [aria-pressed=true] {background:#302c29;border-color:#302c29;color:white}
.decor-grid {
  overflow:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#cec6be transparent;
  flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,88px),1fr));
  gap:12px 8px;grid-auto-rows:max-content;align-content:start;padding:3px var(--inset) 15px;
}
.decor-card {
  position:relative;display:flex;flex-direction:column;align-items:stretch;padding:0 0 4px;
  min-width:0;border:1px solid #e4e0dc;border-radius:7px;background:white;text-align:left;
}
.decor-card:hover {border-color:#9d8c7e}
.decor-card[aria-pressed=true] {border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
.decor-card[aria-pressed=true]::after {
  content:'✓';position:absolute;right:5px;top:5px;display:grid;place-items:center;
  width:19px;height:19px;border:1px solid white;border-radius:50%;color:white;background:#b51c31;font-size:12px;
}
.decor-preview {display:block;overflow:hidden;border-radius:6px 6px 0 0;background:#eeeae5;height:clamp(49px,6.5vh,72px)}
.decor-preview img {width:100%;height:100%;object-fit:cover}
.decor-card>b,.decor-card>small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
.decor-card>b {margin-top:4px;font-size:12px;line-height:1.45;font-weight:600}
.decor-card>small {font-size:12px;line-height:1.6;color:#625c57}
.decor-empty {grid-column:1/-1;color:#655e58;margin:12px 0}
.decor-empty button {display:block;margin-top:8px;padding:0;text-decoration:underline;color:#a32032}
.selected-decor {
  flex:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;
  min-height:61px;padding:7px var(--inset);background:#302d2b;color:white;
}
.selected-swatch {width:32px;height:32px;border:1px solid #ffffff65;border-radius:5px;background-size:cover}
.selected-decor small,.selected-decor b,.selected-decor>div>span {display:block;line-height:1.45}
.selected-decor small {color:#ded8d1;font-size:12px}
.selected-decor b {font-size:12px;overflow-wrap:anywhere}
.selected-decor>div>span {color:#e9e3de;font-size:12px}
#activeDecorSource {font-size:12px;color:#ffd5d6;text-decoration:underline;text-underline-offset:2px}
.selected-decor button {font-size:12px;color:#fff0ed;padding:6px 8px;border:1px solid #716860;border-radius:5px}
.selected-decor .back-to-view {display:none}
@media (max-width:800px) {
  .selection-panel {border:0;border-top:1px solid var(--line);height:clamp(460px,82svh,840px);scroll-margin-top:8px}
  .decor-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,90px),1fr));overscroll-behavior-y:auto}
  .selected-decor {grid-template-columns:auto minmax(0,1fr) auto;gap:3px 8px}
  .selected-swatch,.selected-decor>div {grid-row:span 2}
  .selected-decor .back-to-view {display:block}
  #expandPalette {display:none}
}
@media (max-width:380px) {
  .selection-panel {--inset:10px}
  .decor-grid {gap:8px 6px}
}

.wall-front-controls{display:flex;gap:8px;margin:14px 20px 0}
.wall-front-controls[hidden]{display:none}
.wall-front-controls button{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;padding:8px 6px;border:1px solid var(--line);background:white;border-radius:5px;font-size:12px;line-height:1.45}
.wall-front-controls i{width:19px;height:19px;flex:none;border-radius:3px;background:#e6e1dc center / cover;box-shadow:inset 0 0 0 1px #0002}
.wall-front-controls [aria-pressed=true]{border-color:var(--red);background:#fff5f6;color:#9a1020}
@media(max-width:660px){.studio-topbar{flex-wrap:wrap}.room-switch{flex-wrap:wrap}.wall-front-controls{margin:13px 15px 0}.room-switch button{min-height:36px}}

/* v49: nested <small> never drops below 11px */
small{font-size:max(12px,.86em)}
