:root{--blue:#1565ed;--navy:#18375b;--muted:#657e9d;--line:#d8e4f4;--bg:#f1f6fc;--shadow:0 8px 28px #284f7810}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font:15px/1.5 Inter,Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button,.button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--navy);padding:10px 13px;cursor:pointer;min-height:42px;font-weight:600;text-decoration:none}button:hover,.button:hover{border-color:#87b3fa;background:#f0f6ff}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8ebcff;outline-offset:2px}button.primary,.button.primary,button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white}button:disabled{opacity:.45;cursor:not-allowed}.wd-header{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1440px)/2));gap:20px}.wd-header .brand{font-size:25px;font-weight:900;color:var(--blue);text-decoration:none;letter-spacing:-1px}.wd-header nav{display:flex;gap:22px}.wd-header nav a{color:var(--navy);text-decoration:none}.wd-shell{max-width:1440px;margin:auto;padding:24px}.crumb{font-size:13px;color:var(--muted);margin-bottom:16px}.crumb a{color:var(--muted)}h1{font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-1px;margin:0 0 8px}h2{font-size:23px;line-height:1.25;letter-spacing:-.4px}h3{font-size:17px;margin:12px 0}.intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.intro p{font-size:18px;margin:0;color:var(--muted)}.actions,.view-tabs,.tools{display:flex;flex-wrap:wrap;gap:7px}.muted,.hint{color:var(--muted);font-size:13px}.workspace{display:grid;grid-template-columns:305px minmax(0,1fr);gap:16px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);min-width:0}.settings{padding:12px}.settings details{border-bottom:1px solid var(--line)}.settings summary{font-weight:700;cursor:pointer;padding:14px 4px;list-style-position:inside}.settings details>div{padding:0 4px 15px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fields .wide{grid-column:1/-1}label{font-size:13px;color:#4e6583;display:block;margin-bottom:7px}input:not([type=checkbox]),select{width:100%;border:1px solid #cddbef;background:#fff;color:var(--navy);padding:9px;border-radius:7px;margin-top:5px;min-height:40px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle;accent-color:var(--blue)}.module-card{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:8px;margin-bottom:6px;cursor:pointer;width:100%;text-align:left}.module-card.active{border-color:var(--blue);background:#ecf4ff}.module-icon{width:30px;height:40px;border:3px solid #a17d53;background:repeating-linear-gradient(to bottom,transparent 0,transparent 10px,#a17d53 11px,#a17d53 13px);flex-shrink:0}.module-card span:last-child{display:flex;flex-direction:column}.module-card small{font-size:11px;font-weight:400;color:var(--muted)}.add-section{width:100%;margin-top:10px}.module-edit{padding-top:10px;border-top:1px solid var(--line);margin-top:12px}.right{min-width:0}.model-top{padding:10px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);flex-wrap:wrap}.view-tabs{gap:0;background:#f0f5fc;padding:3px;border-radius:8px}.view-tabs button{border:0;background:transparent;padding:8px 15px}.view-tabs button[aria-pressed=true]{background:white;color:var(--blue);box-shadow:0 2px 4px #173c6c12}.model-space{position:relative;overflow:hidden;border-radius:0 0 12px 12px}.scene{height:490px;touch-action:pan-y;background:#eef3fa}.scene canvas{display:block;width:100%;height:100%}.drawing{height:490px;overflow:auto}.drawing svg{width:100%;height:100%;min-height:310px;display:block}.drawing [data-module]{cursor:grab}.scene-controls{position:absolute;top:12px;right:12px;display:flex;gap:6px}.scene-controls button{background:#ffffffed;box-shadow:0 3px 12px #18375b12}.metrics{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px;background:#f7faff;border-top:1px solid var(--line);font-size:13px}.metrics strong{color:var(--blue)}.below-model{padding:10px 15px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bill{margin-top:16px;scroll-margin-top:20px}.section-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;gap:10px;flex-wrap:wrap}.section-head h2{margin:0}.table-scroll{max-height:540px;overflow:auto;overscroll-behavior-x:contain;border-top:1px solid var(--line)}table{border-collapse:separate;border-spacing:0;width:100%;min-width:720px;font-size:13px}th{position:sticky;top:0;background:#edf3fc;color:#22476f;text-align:left;border-bottom:1px solid #bbd0eb;z-index:2;padding:11px 12px}td{border-bottom:1px solid var(--line);padding:8px 12px;vertical-align:top}tr:nth-child(even) td{background:#f8fbff}td:first-child{min-width:210px}td small{display:block;max-width:310px;font-size:11px;color:var(--muted)}td input{min-width:90px;max-width:130px;text-align:right}td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.bill-total{padding:16px;background:#f4f8ff;border-radius:0 0 13px 13px;display:flex;justify-content:space-between;gap:16px}.bill-total strong{font-size:23px;color:var(--blue)}.notices{margin:12px 0}.notices details{border:1px solid #ead4ad;background:#fffaf1;border-radius:9px;padding:10px 14px;font-size:13px}.notices summary{cursor:pointer;font-weight:bold}.notices li{margin:7px 0}.error{background:#fff0ed;color:#8a301e;border:1px solid #ffc3b4;padding:14px;border-radius:10px;margin:12px 0}.status{min-height:22px;font-size:13px;color:#356592}.preset-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.preset-list button{text-align:left;padding:16px}.preset-list small{display:block;font-weight:400;color:var(--muted);margin-top:5px}.presets{margin:20px 0;padding:16px}.presets summary{font-size:18px;font-weight:bold;cursor:pointer}.presets[open] summary{margin-bottom:16px}.swatches{display:flex;gap:7px;flex-wrap:wrap}.swatch{width:35px;min-height:35px;border-radius:50%;border:3px solid white;outline:1px solid var(--line);padding:0}.swatch[aria-pressed=true]{outline:2px solid var(--blue)}.content{max-width:1120px;margin:50px auto 0;line-height:1.75}.content section{margin:35px 0}.feature-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center}.feature-grid img{width:100%;border-radius:15px;height:auto}.content a{color:#145ccc}.faq details{padding:15px 0;border-bottom:1px solid var(--line)}.faq summary{font-weight:700;cursor:pointer}.article-links{display:grid;grid-template-columns:1fr 1fr;gap:16px}.article-links a{background:white;border:1px solid var(--line);padding:20px;border-radius:13px;text-decoration:none}.article-links img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px}.footer{padding:30px 0 80px;color:var(--muted);font-size:13px}.mobile-bar{display:none}.sheet-nav{display:flex;gap:8px;align-items:center}.sheet-nav select{max-width:280px;margin:0}.sheet-note{padding:12px;font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;max-width:500px;width:calc(100% - 30px);padding:26px;color:var(--navy)}dialog::backdrop{background:#102b4a80}.tour-step{color:var(--blue);font-weight:bold}dialog .actions{margin-top:22px}#smetroomTelegramWidget,#smetroomGlobalMenuButton{display:none!important}[hidden]{display:none!important}.model-panel.fullscreen{position:fixed;inset:10px;z-index:100000;display:flex;flex-direction:column}.model-panel.fullscreen .model-space{flex:1}.model-panel.fullscreen .scene,.model-panel.fullscreen .drawing{height:100%}.model-panel.fullscreen .metrics{flex-shrink:0}.dim-error{opacity:.35;pointer-events:none}
.status:empty{display:none}
.insights{margin:16px 0}.capacity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0 16px 16px}.capacity-grid>div{padding:13px;border-radius:10px;background:#f2f7fe}.capacity-grid strong{display:block;color:var(--blue);font-size:23px}.capacity-grid span{display:block;color:var(--muted);font-size:12px}.budget-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 16px}.budget-result{padding:10px 16px;color:#23705b}.budget-result.over{color:#a23f24;background:#fff4ed}.insights meter{display:block;width:calc(100% - 32px);height:15px;margin:0 16px 12px}.cost-groups{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 16px}.cost-groups>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:7px 0;font-size:12px}.cost-groups strong{white-space:nowrap}.insights .hint,.insights .tools{margin:12px 16px}.clearance-warning{font-size:12px;color:#8e402d;background:#fff3ed;padding:10px;margin:12px 16px;border-radius:8px}.visual-tools{width:100%;border-top:1px solid var(--line);padding-top:8px}.visual-tools summary{cursor:pointer;padding:8px 0;font-weight:600}.visual-options{display:grid;gap:8px;padding:12px 0}.visual-options>label{max-width:440px}.visual-options input[type=range]{padding:0;border:0;min-height:28px;height:28px;accent-color:var(--blue);margin:0}.visual-options .tools button{font-size:12px}.compare-scroll{overflow:auto;max-height:65vh;border:1px solid var(--line);margin:16px 0}.compare-scroll table{min-width:640px}.compare-scroll td,.compare-scroll th{min-width:160px}.compare-scroll tbody th{position:sticky;left:0;top:auto;z-index:1}.compare-scroll thead th:first-child{left:0;z-index:3}.compare-scroll td button{display:block;width:100%;margin-bottom:7px}#variants-dialog{max-width:1100px;width:calc(100% - 30px);padding:20px}#variants-dialog .section-head{padding:0}#custom-levels{margin:12px 0}#custom-levels summary{font-size:13px}#insight-body:empty{min-height:50px}.model-panel.invalid .scene,.model-panel.invalid .drawing{opacity:.4}
.insights #insight-body>.error{margin:16px}
@media(max-width:700px){.insights{order:2;width:100%;margin:0}.workspace .bill{order:3}.workspace .notices{order:4}.capacity-grid{grid-template-columns:1fr 1fr;padding:0 12px 12px;gap:8px}.capacity-grid strong{font-size:21px}.cost-groups{grid-template-columns:1fr}.budget-controls{gap:10px}.insights .section-head h2{font-size:19px}.visual-options .tools button{flex:1 0 30%}#variants-dialog{padding:14px}.compare-scroll tbody th{min-width:110px;max-width:110px;font-size:12px}}
.drawing [data-module],.drawing [data-module] rect,.drawing [data-module] text{touch-action:none;user-select:none}
@media(max-width:900px){.wd-shell{padding:16px}.workspace{grid-template-columns:265px minmax(0,1fr)}.scene,.drawing{height:430px}.wd-header nav a:nth-child(n+2){display:none}.intro{align-items:flex-start}.intro .actions{justify-content:flex-end}.preset-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.wd-header{height:60px;padding:0 16px}.wd-header .brand{font-size:22px}.wd-shell{padding:14px}.intro{display:block}.intro p{font-size:15px}.intro .actions{justify-content:flex-start;margin-top:15px}.intro button{font-size:12px;padding:8px 10px}.crumb{font-size:11px}.workspace{display:flex;flex-direction:column;gap:12px}.right{display:contents}.model-panel{order:0;width:100%}.settings{order:1;width:100%}.bill{order:2;width:100%;margin:0}.notices{order:3;width:100%}.settings details{border-bottom:1px solid var(--line)}.scene,.drawing{height:360px}.model-top{padding:7px;gap:6px}.view-tabs{width:100%;justify-content:space-between}.view-tabs button{padding:8px 12px;font-size:13px}.model-top>.tools{display:none}.metrics{font-size:12px;gap:12px}.model-panel .hint{font-size:11px}.section-head{padding:14px 12px}.section-head h2{font-size:20px}.table-scroll{max-height:470px}.bill-total{display:block}.bill-total strong{display:block;margin-top:8px}.fields{grid-template-columns:1fr 1fr}.presets{padding:13px}.preset-list button{font-size:13px;padding:10px}.content{margin-top:25px}.feature-grid,.article-links{grid-template-columns:1fr}.content h2{font-size:24px}.mobile-bar{position:fixed;bottom:0;left:0;right:0;background:#fffefc;z-index:99;display:flex;align-items:center;justify-content:space-between;padding:9px 14px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line);box-shadow:0 -2px 15px #1d416018}.mobile-bar a{padding:9px 16px}.mobile-bar span{font-size:12px}.mobile-bar strong{display:block;color:var(--blue);font-size:16px}.content{padding-bottom:40px}.sheet-nav{width:100%}.below-model button{font-size:12px}.model-panel.fullscreen{inset:5px 5px 78px}.model-panel.fullscreen .scene,.model-panel.fullscreen .drawing{height:100%}}
