:root{--blue: #0080c6;--dark: #102437;--line: #dbe5ed;--muted: #667788;--bg: #f4f8fb}*{box-sizing:border-box}body{margin:0;font:15px/1.45 Arial,sans-serif;color:#102437;background:var(--bg)}button,input,textarea{font:inherit}button:not(:disabled):not(.photo-marker){transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease,border-color .12s ease}button:not(:disabled):not(.photo-marker):active{transform:scale(.97);box-shadow:inset 0 1px 4px #10243722}.app-shell{display:grid;grid-template-columns:350px 1fr;min-height:100vh}.sidebar{padding:24px;background:#fff;border-right:1px solid var(--line);overflow:auto}.brand{margin-bottom:16px}.sidebar-tabs{display:flex;gap:6px;margin:0 0 16px}.sidebar-tab{flex:1;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#536473;font-weight:700;cursor:pointer}.sidebar-tab.is-active{border-color:var(--blue);background:#eef9ff;color:#0670aa}.sidebar-panel[hidden]{display:none}.sidebar-panel.is-entering{opacity:0;transform:translate(-8px)}.sidebar-panel{transition:opacity .22s ease,transform .22s ease}.brand>span,.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--blue)}h1{font-size:24px;line-height:1.1;margin:7px 0}h2{font-size:17px;margin:0}.brand p,.selected-card p,.modal-note{color:var(--muted);margin:6px 0}.card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:14px;background:#fff}.selected-card{border-color:#b8ddf1;background:#f2fbff}.selected-card strong{display:block;font-size:18px;margin-top:6px}.primary,.ghost{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--blue);font-weight:700;cursor:pointer}.primary{background:var(--blue);color:#fff;margin-top:10px}.primary:disabled{opacity:.45;cursor:not-allowed}.ghost{color:#23617f;background:#fff;margin-top:8px;border-color:#b9d0de}.ghost.danger{color:#b42318;border-color:#efb5b1}.ghost.danger:hover:not(:disabled){background:#fff5f4}.sidebar-panel>#open-parameters{margin:0 0 16px}.sidebar-panel>.selected-card{margin:0 0 18px}.sidebar-panel>.parts-card{margin:0 0 20px}.section-title{display:flex;align-items:center;justify-content:space-between}.parts-toggle{width:100%;border:0;padding:0;background:transparent;cursor:pointer;text-align:left}.section-heading{display:flex;align-items:center;gap:10px}.section-heading small{font-size:12px;color:var(--muted);font-weight:400}.chevron{color:var(--blue);font-size:22px;line-height:1;transition:transform .2s ease}.parts-card.is-collapsed .chevron{transform:rotate(-90deg)}.parts-card.is-collapsed .parts-list{display:none}.section-title span{font-size:12px;color:var(--muted)}.parts-list{list-style:none;margin:12px 0 0;padding:0}.object-search{display:block;margin-top:12px}.object-search input{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:7px;font:inherit}.objects-list{list-style:none;padding:0;margin:10px 0 0;max-height:275px;overflow-y:auto;scrollbar-gutter:stable}.object-item{display:flex;align-items:stretch;border-top:1px solid #edf1f4}.objects-list .object-main{flex:1;min-width:0;padding:10px 8px 10px 0;border:0;text-align:left;background:#fff;cursor:pointer;color:#18374d}.objects-list .object-main.is-active{color:var(--blue);font-weight:700}.delete-object-item{align-self:center;width:30px;height:30px;border:0;border-radius:6px;background:#fff;color:#b42318;font-size:19px;cursor:pointer}.delete-object-item:hover{background:#fff1f0}.objects-list small{display:block;margin-top:2px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.object-info strong{display:block;font-size:18px;margin-top:6px}.object-info p{margin:6px 0 0;color:var(--muted)}.parts-list button{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;border:0;border-top:1px solid #edf1f4;background:#fff;padding:10px 0;cursor:pointer;color:#18374d}.parts-list button.is-selected{color:#b42318;font-weight:700}.parts-list button.is-selected .badge{color:#d92d20}.badge{color:var(--blue);font-size:12px;font-weight:700}.guide ol{padding-left:20px;margin:10px 0 0;color:var(--muted)}.workspace{min-width:0;display:flex;flex-direction:column}.workspace header{height:86px;padding:18px 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.workspace header h2{margin-top:4px}.legend{font-size:13px;color:var(--muted)}.legend i{display:inline-block;width:11px;height:11px;background:var(--blue);border-radius:50%;margin-right:6px}.scene{position:relative;flex:0 0 auto;height:min(660px,calc(100vh - 118px));min-height:440px;overflow:hidden}.scene canvas{display:block;width:100%;height:100%}.scene-object-address{position:absolute;top:22px;left:24px;z-index:3;max-width:min(420px,calc(100% - 48px));padding:9px 13px;border:1px solid #b9d0de;border-radius:8px;background:#fffffff0;color:#18374d;font-size:14px;font-weight:700;box-shadow:0 4px 14px #1024371f}.loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}.scene-toolbar{position:absolute;right:24px;bottom:22px;display:flex;gap:8px}.scene-toolbar .ghost{width:auto;margin:0;padding:9px 12px;background:#fffffff0}.scene-toolbar .ghost.is-active{color:#fff;background:var(--blue);border-color:var(--blue)}.inside-rotate-controls{display:flex;gap:6px}.inside-rotate-controls[hidden]{display:none}.rotation-button{width:46px;height:46px;padding:4px 0 3px;border:1px solid #b9d0de;border-radius:50%;background:#fffffff0;color:#23617f;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}.rotation-button span{font-size:21px;height:20px}.rotation-button small{margin-top:1px;font-size:10px;font-weight:700}.rotation-button:hover{border-color:var(--blue);color:var(--blue)}.modal{border:0;border-radius:14px;width:min(520px,calc(100vw - 32px));padding:0;box-shadow:0 24px 70px #18374d55}.modal::backdrop{background:#0d233a88}.modal form,.modal>div{padding:22px}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:16px!important}.modal-header h2{margin-top:4px;font-size:21px}.icon{border:0;background:none;font-size:30px;line-height:20px;cursor:pointer;color:#536473}.modal label{display:block;font-weight:700;margin-top:16px}.modal input{width:100%;margin-top:7px;padding:10px;border:1px solid #b9c8d2;border-radius:7px}.modal textarea{width:100%;min-height:86px;margin-top:7px;padding:10px;border:1px solid #b9c8d2;border-radius:7px;resize:vertical}.coordinates-fieldset{border:0;padding:0;margin:16px 0 0}.coordinates-fieldset legend{padding:0;font-weight:700}.coordinates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.coordinates-grid label{margin-top:7px;font-size:12px;color:#536473}.coordinates-grid input{margin-top:4px}@media(max-width:480px){.coordinates-grid{grid-template-columns:1fr}}.camera-capture{display:none;width:100%;margin-top:10px;padding:11px 14px;border:1px solid var(--blue);border-radius:8px;background:#eef9ff;color:#0670aa;font-weight:700;cursor:pointer}@media(max-width:480px){.camera-capture{display:block}}.photo-preview{height:150px;border:1px dashed #abc4d2;border-radius:8px;margin-top:14px;display:grid;place-items:center;color:var(--muted);overflow:hidden;background:#f8fbfd}.photo-preview img{width:100%;height:100%;object-fit:cover}.photo-preview.has-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px}.modal-note{font-size:12px}.gallery-content{padding-top:16px!important}.gallery-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:14px}.gallery-card img{display:block;width:100%;max-height:310px;object-fit:contain;background:#eff4f7}.gallery-card p{padding:10px 12px;margin:0}.photo-details{display:grid;gap:5px;padding:10px 12px;color:#405563;font-size:13px}.photo-details p{padding:0;margin:0}.photo-details strong{color:var(--dark)}.delete-photo{width:100%;margin-top:8px;padding:9px 12px;border:1px solid #efb5b1;border-radius:7px;background:#fff;color:#b42318;font-weight:700;cursor:pointer}.delete-photo:hover{background:#fff5f4}.toast{position:fixed;right:22px;bottom:22px;background:#102437;color:#fff;padding:12px 16px;border-radius:8px;box-shadow:0 8px 24px #10243744}.marker-label{background:var(--blue);color:#fff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:14px;box-shadow:0 2px 8px #10243777;pointer-events:none}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.workspace header{padding:14px 18px;height:auto}.legend{display:none}.scene{height:480px;min-height:0}.scene-object-address{top:14px;left:14px;max-width:calc(100% - 28px)}}#parameters-modal{max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-gutter:stable}.building-kit{margin-top:20px;border:1px solid var(--line);border-radius:10px;background:#fff}.building-kit>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;color:var(--dark);font-weight:700;cursor:pointer;list-style:none;border-radius:10px;background:var(--bg)}.building-kit>summary::-webkit-details-marker{display:none}.building-kit>summary span{color:var(--blue);font-size:20px;transition:transform .15s}.building-kit[open]>summary span{transform:rotate(180deg)}.building-kit>summary:focus-visible,.building-kit button:focus-visible,.building-kit input:focus-visible,.building-kit select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}#building-kit-controls{padding:0 14px 14px}.kit-group{padding:16px 0;border-bottom:1px solid var(--line)}.kit-group h3{margin:0;font-size:16px}.modal .kit-group label{margin-top:12px;font-size:13px}.modal .kit-group select{display:block;width:100%;margin-top:7px;padding:10px 8px;border:1px solid #b9c8d2;border-radius:7px;background:#fff;color:var(--dark);font:inherit}.kit-number{display:flex;align-items:stretch;margin-top:7px;min-width:0}.modal .kit-number input{width:100%;min-width:0;margin:0;border-radius:0;text-align:center;appearance:textfield;-moz-appearance:textfield}.kit-number input::-webkit-inner-spin-button,.kit-number input::-webkit-outer-spin-button{appearance:none;margin:0}.kit-number button{flex:0 0 36px;min-height:40px;padding:0;border:1px solid #b9c8d2;background:var(--bg);color:var(--blue);font-size:20px;cursor:pointer}.kit-number button:first-child{border-radius:7px 0 0 7px;border-right:0}.kit-number button:last-child{border-radius:0 7px 7px 0;border-left:0}.kit-opening{min-width:0;margin:16px 0 0;padding:8px 12px 14px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.kit-opening legend{padding:0 6px;font-size:13px;font-weight:700;color:var(--blue)}.kit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kit-hint{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.kit-error{margin:0 14px 14px;padding:10px;border-radius:7px;background:#fff0ee;color:#a52b20;font-size:13px}@media(max-width:420px){.kit-grid{grid-template-columns:1fr}#building-kit-controls,.kit-opening{padding-inline:10px}}#photo-modal{max-height:calc(100dvh - 32px);overflow-y:auto}.photo-picker{margin-top:16px}.photo-picker-label{font-weight:700}.photo-picker-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.gallery-picker,.photo-picker-actions .camera-capture{flex:1 1 170px;width:auto;margin:0;padding:11px 14px;border:1px solid var(--blue);border-radius:8px;background:#eef9ff;color:#0670aa;font:inherit;font-weight:700;cursor:pointer;min-height:44px}.photo-selection-count{margin:8px 0 0;font-size:12px;color:var(--muted)}.photo-preview.has-photos{height:auto;max-height:360px;overflow-y:auto;align-items:start;place-items:stretch;gap:10px;padding:10px}.photo-upload-item{position:relative;min-width:0;margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.photo-preview .photo-upload-item img{display:block;width:100%;height:100px;object-fit:cover}.photo-upload-item figcaption{padding:6px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--dark);font-size:11px}.remove-upload-photo{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #fff;border-radius:50%;background:#102437dd;color:#fff;font-size:25px;line-height:1;cursor:pointer}.remove-upload-photo:hover{background:#a52b20}.remove-upload-photo:focus-visible,.gallery-picker:focus-visible,.camera-capture:focus-visible{outline:2px solid var(--blue);outline-offset:2px}@media(pointer:coarse){.photo-picker-actions .camera-capture{display:block}}@media(max-width:480px){.photo-preview.has-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.remove-upload-photo{width:44px;height:44px}}.model-hint-touch{display:none}@media(pointer:coarse){.model-hint-mouse{display:none}.model-hint-touch{display:inline}}@media(max-width:850px)and (pointer:coarse){.workspace header{flex-direction:column;align-items:flex-start;gap:6px}.legend{display:block}}.marker-layer{position:absolute;inset:0;pointer-events:none;z-index:2}.photo-marker{position:absolute;width:32px;height:32px;border:2px solid #fff;border-radius:50%;background:#0080c6;color:#fff;font-size:16px;box-shadow:0 2px 9px #10243788;cursor:pointer;pointer-events:auto;transform:translate(-50%,-50%);padding:0}.photo-marker:hover{background:#006aa5;scale:1.1}.photo-marker:active{transform:translate(-50%,-50%) scale(.92);box-shadow:inset 0 1px 4px #10243766}
