:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172c39;background:#f7f9fa;font-synthesis:none;font-size:14px;--blue:#174a63;--muted:#73838e;--line:#e3e9ed}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #68b4db;outline-offset:3px}button{transition:background .18s,box-shadow .18s}button:hover{filter:brightness(.97)}.app-header{height:86px;display:flex;align-items:center;gap:26px;background:#fff;border-bottom:1px solid var(--line);padding:0 30px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;min-width:300px}.brand img{width:48px;height:52px;object-fit:contain}.brand strong{display:block;font-size:22px;letter-spacing:-.8px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px;letter-spacing:.3px}.prototype{display:flex;align-items:center;gap:8px;color:#75848d;font-size:12px}.prototype i,.stage-footer i{display:inline-block;width:6px;height:6px;background:#d0a85b;border-radius:50%}.header-actions{margin-left:auto;display:flex;gap:10px}.button{border:0;border-radius:9px;min-height:42px;padding:0 18px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:22px}.primary{background:var(--blue);color:white}.subtle{background:#f3f6f8;color:#314c5c}.workspace{display:grid;grid-template-columns:326px 1fr;height:calc(100dvh - 86px);min-height:520px}.sidebar{padding:28px 26px 22px;background:#fff;border-right:1px solid var(--line);overflow:auto}.step-label{display:flex;align-items:center;gap:9px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#607a89;font-weight:700}.step-label>span{background:#ecf4f7;color:#285b74;border-radius:6px;padding:6px}h1{font-size:25px;letter-spacing:-.8px;margin:20px 0 8px;font-weight:650}.intro{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 22px}.field{margin-bottom:18px}.field label{font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.field label>span{color:#90a4af;font-size:10px;border:1px solid #e4ebef;border-radius:4px;padding:2px 5px}.number-field{display:flex;align-items:center;border:1px solid #d9e3e8;border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #142b3910}.number-field:focus-within{border-color:#4d92b3;box-shadow:0 0 0 3px #e9f3f8}.number-field input{width:100%;border:0;background:transparent;font-size:21px;font-weight:600;color:#203d4c;padding:11px 13px;outline:none;appearance:textfield;-moz-appearance:textfield}.number-field input::-webkit-inner-spin-button{appearance:none}.number-field>span{color:#8497a2;font-size:12px;padding:0 14px}.error{font-size:11px;color:#a33434;margin:5px 0 0;line-height:1.5;min-height:0}.error:empty{display:none}.field:has([aria-invalid=true]) .number-field{border-color:#bc6060}.update-room{width:100%;margin-top:2px;justify-content:space-between;min-height:44px}.next-step{margin-top:24px;display:flex;gap:12px;align-items:center;color:#a0adb5}.next-step>span{border:1px solid var(--line);border-radius:6px;padding:7px;font-size:11px}.next-step strong{display:block;font-size:11px;font-weight:500}.next-step small{display:block;margin-top:4px;font-size:10px;color:#aab7bf}.stage{position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#f7f9f9 0%,#edf1f2 70%,#e9eef0 100%)}#scene{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}.stage-top{position:absolute;left:28px;right:28px;top:25px;display:flex;align-items:center;justify-content:flex-end;z-index:2;pointer-events:none}.room-summary{color:#7c929e;font-size:12px;font-variant-numeric:tabular-nums}.camera-tools{position:absolute;left:50%;transform:translateX(-50%);bottom:93px;display:flex;align-items:center;gap:10px;z-index:2;white-space:nowrap}.fit-button{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #dce5e9;box-shadow:0 4px 20px #1d405514;border-radius:10px;min-height:45px;padding:0 15px;font-size:12px;font-weight:600;color:#234b61}.fit-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}kbd{border:1px solid #e2e8ed;border-radius:4px;min-width:18px;line-height:18px;font-size:10px;color:#9aabb5;font-family:inherit}.zoom-buttons{display:flex;border:1px solid #dce5e9;background:white;border-radius:10px;overflow:hidden;box-shadow:0 4px 20px #1d405510}.zoom-buttons button{width:42px;height:43px;border:0;background:#fff;font-size:22px;color:#285670;font-weight:300}.zoom-buttons button+button{border-left:1px solid var(--line)}.view-options{position:absolute;bottom:56px;left:28px;display:flex;gap:24px;color:#7c929e;z-index:2;font-size:10px}.view-options label{display:flex;align-items:center;gap:5px}.view-options input{accent-color:#285670;width:12px;height:12px}.stage-footer{position:absolute;bottom:0;left:0;right:0;min-height:37px;padding:0 28px;border-top:1px solid #dce5e9;display:flex;align-items:center;justify-content:space-between;color:#8d9fa9;font-size:10px}.stage-footer span{display:flex;align-items:center;gap:7px}.stage-footer i{background:#73a08a}.stage-footer p{margin:0}.dimension{position:absolute;transform:translate(-50%,-50%);pointer-events:none;background:#ffffffed;border:1px solid #dce6eb;border-radius:6px;padding:5px 9px;color:#4c7186;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:0 2px 5px #173d5010}.dimension#dim-width{background:#174a63;color:#fff;border-color:#174a63}.scene-error{position:absolute;top:40%;left:10%;right:10%;background:white;border:1px solid #e5c0b8;border-radius:12px;padding:25px;z-index:5;color:#943e36}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);background:#183e51;color:#fff;padding:13px 22px;border-radius:9px;box-shadow:0 5px 25px #193f4d30;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90%;text-align:center;font-size:13px}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.workspace{grid-template-columns:360px 1fr}.sidebar{padding:34px}.app-header{height:92px}.workspace{height:calc(100dvh - 92px)}}
@media(max-width:1000px){.prototype{display:none}.brand{min-width:250px}.stage-footer p{display:none}.view-options{gap:10px;left:20px}.stage-top{left:20px;right:20px}.workspace{grid-template-columns:300px 1fr}.sidebar{padding:25px 22px}}
@media(max-width:700px){.app-header{height:72px;padding:0 16px;gap:5px}.brand{min-width:0;gap:8px}.brand img{width:36px;height:42px}.brand strong{font-size:19px}.brand small{font-size:9px}.header-actions{gap:5px}.header-actions .subtle{font-size:0;width:36px;padding:0}.header-actions .subtle:after{content:'↥';font-size:20px}.header-actions .primary{font-size:11px;padding:0 12px;gap:7px;min-height:36px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0}.sidebar{order:2;padding:22px;overflow:visible;border-right:0}.stage{order:1;height:58dvh;min-height:400px}.stage-top{top:16px;left:16px;right:16px}.room-summary{font-size:10px}.camera-tools{bottom:73px}.view-options{bottom:42px;font-size:9px;left:16px;right:12px;justify-content:space-between;gap:5px}.stage-footer{padding:0 16px;min-height:30px}.dimension{font-size:10px;padding:4px 6px}.sidebar h1{margin-top:16px}.next-step{margin-bottom:10px}.stage .fit-button{padding:0 12px;min-height:40px}.zoom-buttons button{height:38px;width:37px}.field{margin-bottom:16px}}

@media(min-width:701px){.camera-tools{left:auto;right:28px;transform:none;bottom:78px}}

.wall-actions{position:absolute;inset:0;pointer-events:none;z-index:2}
.wall-actions button{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border:1px solid #c5d6df;border-radius:8px;background:#fffffff5;color:#28566d;box-shadow:0 2px 8px #173d5020;pointer-events:auto;display:grid;place-items:center;padding:0}
.wall-actions button[hidden]{display:none}.wall-actions button:disabled{cursor:wait;opacity:.6}
.wall-actions .wall-absent{border-style:dashed;background:#edf5f9;color:#174a63}
.wall-action-icon{font-size:22px;line-height:1;font-weight:400}
.wall-action-label{display:none;position:absolute;bottom:36px;left:50%;transform:translateX(-50%);padding:6px 9px;border-radius:6px;background:#174a63;color:white;white-space:nowrap;font-size:11px;font-weight:400;pointer-events:none}
.wall-actions button:hover .wall-action-label,.wall-actions button:focus-visible .wall-action-label{display:block}

.item-dimensions-button[aria-pressed=true]{background:#174a63;color:#fff;border-color:#174a63}
.item-dimensions-key{position:absolute;top:54px;right:28px;padding:6px 9px;background:#ffffffd9;border:1px solid #dce5e9;border-radius:6px;color:#4c7186;font-size:10px;pointer-events:none;z-index:2}
@media(max-width:700px){.camera-tools{gap:6px}.stage .item-dimensions-button{gap:6px;padding:0 9px}.item-dimensions-key{top:40px;right:16px;font-size:9px}}

@media(max-width:380px){.camera-tools .fit-button{font-size:10px;gap:5px;padding:0 8px}.camera-tools kbd{display:none}.zoom-buttons button{width:32px}}

.snapshot-button{gap:8px}.snapshot-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}.snapshot-button:disabled{opacity:.5;cursor:wait}
@media(max-width:700px){.header-actions .snapshot-button{padding:0;min-height:36px;display:grid;place-items:center}.snapshot-button span{display:none}.header-actions .snapshot-button:after{content:none}}
@media(max-width:480px){.brand small{display:none}.brand strong{font-size:18px}}
@media(max-width:380px){.header-actions .primary{font-size:0;gap:0;min-width:64px;padding:0 9px}.header-actions .primary:before{content:'Проект';font-size:11px}.brand strong{font-size:16px}}

@media(min-width:701px) and (max-width:1000px){.header-actions .snapshot-button{width:42px;padding:0;justify-content:center}.header-actions .snapshot-button span{display:none}}

:root{--blue:#1c69a8}.brand{flex-direction:column;align-items:flex-start;gap:1px}.brand img{width:180px;height:34px}.brand small{font-size:10px;margin:0}@media(max-width:1000px){.brand{min-width:200px}}@media(max-width:700px){.brand{min-width:0}.brand img{width:130px;height:26px}}@media(max-width:380px){.brand img{width:115px}}
