:root{--accent:#5b7ef5;--accent-strong:#3d5ccc;--accent-soft:#e7ecfe;--bg:#f1f3f7;--surface:#fff;--surface-2:#f7f8fb;--border:#e2e6ee;--text:#21242b;--text-muted:#6b7280;--danger:#d94848;--success:#23b862;--radius:10px;--radius-sm:7px;--shadow:0 8px 28px #171e371f;--font:"Segoe UI", system-ui, -apple-system, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);color:var(--text);background:var(--bg);font-size:13.5px;overflow:hidden}button{font-family:inherit;font-size:inherit;cursor:pointer}input,select{font-family:inherit;font-size:inherit;color:inherit}a{color:var(--accent-strong)}.app{flex-direction:column;height:100%;display:flex}#gl{z-index:0;display:block;position:fixed;inset:0}.view{z-index:1;flex:1;min-height:0;position:relative}.view.hidden{display:none}.muted{color:var(--text-muted)}.small{font-size:12px}.error{color:var(--danger)}.topbar{z-index:5;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:20px;height:52px;padding:0 16px;display:flex;position:relative}.brand{color:var(--accent-strong);align-items:center;gap:8px;font-size:15px;font-weight:650;display:flex}.brand .tagline{color:var(--text-muted);margin-left:4px;font-size:12px;font-weight:400}.tabs{gap:4px;display:flex}.tab{color:var(--text-muted);background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;padding:7px 14px;display:flex}.tab.active{background:var(--accent-soft);color:var(--accent-strong);border-color:#cdd8fb}.topbar-right{align-items:center;gap:8px;margin-left:auto;display:flex}.save-status{color:var(--text-muted);font-size:12px}.status-dot{background:#b6bcc7;border-radius:50%;width:9px;height:9px}.status-dot.online{background:var(--success)}.status-dot.offline{background:var(--danger)}.status-label{color:var(--text-muted);text-transform:capitalize;font-size:12px}.editor{grid-template-columns:300px 1fr 250px;height:100%;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);z-index:2;flex-direction:column;gap:14px;padding:12px;display:flex;position:relative;overflow-y:auto}.sidebar.right{border-right:none;border-left:1px solid var(--border)}.side-section{flex-direction:column;gap:8px;display:flex}.side-section.grow{flex:1}.side-head{justify-content:space-between;align-items:center;display:flex}.side-head h2{text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);margin:0;font-size:12px}.workspace{flex-direction:column;gap:12px;min-width:0;padding:12px;display:flex;position:relative}.viewport-panel{border:1px solid var(--border);border-radius:var(--radius);background:0 0;flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.persp-panel{min-height:0;position:relative}.dock{flex:0 0 210px;gap:12px;min-height:0;display:flex}.dock-panel{flex:0 0 340px;min-width:0}.dock.hidden,.dock-panel.hidden{display:none}.point-cloud-canvas-wrap{background:#1a1c22;flex:1;min-height:0;position:relative}.point-cloud-canvas-wrap canvas{width:100%;height:100%;display:block}.point-cloud-status{color:#cfd3da;pointer-events:none;justify-content:center;align-items:center;font-size:12.5px;display:flex;position:absolute;inset:0}.material-picker{z-index:7;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:340px;box-shadow:var(--shadow);flex-direction:column;display:flex;position:absolute;top:12px;right:12px;overflow:hidden}.material-picker-body{flex-direction:column;gap:8px;padding:10px;display:flex}.crop-stage{border-radius:var(--radius-sm);cursor:crosshair;align-self:center;max-width:100%;display:inline-block;position:relative;overflow:hidden}.crop-stage img{-webkit-user-select:none;user-select:none;max-width:100%;max-height:280px;display:block}.crop-rect{border:2px solid var(--accent);pointer-events:none;background:#5b7ef538;position:absolute}.color-swatch-grid{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.color-swatch{aspect-ratio:1;border:1px solid var(--border);border-radius:6px;width:100%;padding:0;position:relative;overflow:hidden}.color-swatch.active{outline:2px solid var(--accent);outline-offset:1px}.color-swatch-custom input[type=color]{cursor:pointer;opacity:0;border:none;width:calc(100% + 8px);height:calc(100% + 8px);padding:0;position:absolute;inset:-4px}.bbox-panel{z-index:6;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:280px;max-height:calc(100% - 24px);box-shadow:var(--shadow);flex-direction:column;display:flex;position:absolute;top:12px;right:12px;overflow:hidden}.bbox-panel-bulk{border-bottom:1px solid var(--border);align-items:center;gap:6px;padding:6px 10px;display:flex}.bbox-panel-bulk .muted{margin-left:auto}.bbox-panel-body{flex-direction:column;gap:4px;padding:8px 10px;display:flex;overflow-y:auto}.bbox-class-group{border-bottom:1px solid var(--border);margin-bottom:4px;padding-bottom:4px}.bbox-class-group:last-child{border-bottom:none;margin-bottom:0}.bbox-row{cursor:pointer;align-items:center;gap:8px;padding:2px 0;display:flex}.bbox-class-row{text-transform:capitalize;justify-content:space-between;font-size:12.5px;font-weight:600}.bbox-class-name{flex:1}.bbox-instance-row{padding-left:20px}.bbox-conf{font-variant-numeric:tabular-nums;margin-left:auto}.bbox-panel-tabs{border-bottom:1px solid var(--border);padding:6px 10px}.bbox-panel-note{border-bottom:1px solid var(--border);margin:0;padding:6px 10px}.bbox-panel-tabs .segmented,.bbox-panel-bulk .segmented,.bbox-panel-tabs .segmented button,.bbox-panel-bulk .segmented button{flex:1}.bbox-swatch{border:1px solid #00000040;border-radius:2px;flex:none;width:10px;height:10px}.bbox-seg-row{text-transform:capitalize;cursor:default;font-size:12px}.panel-head{background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-height:40px;padding:6px 10px;display:flex}.panel-title{font-size:12.5px;font-weight:600}.panel-actions{align-items:center;gap:8px;display:flex}.panel-foot{background:var(--surface);border-top:1px solid var(--border);align-items:center;gap:8px;padding:5px 10px;display:flex}.viewport-slot{flex:1;min-height:0;display:flex;position:relative}.viewport{touch-action:none;background:0 0;flex:1;min-height:0;position:relative}.viewport[data-view=top]{cursor:crosshair}.viewport[data-view=persp]{cursor:grab}.dist-badge{z-index:5;color:#fff;white-space:nowrap;pointer-events:none;box-shadow:var(--shadow);background:#21242bdd;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:600;position:absolute;transform:translate(-50%,-50%)}.workspace-empty{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:340px;height:fit-content;box-shadow:var(--shadow);text-align:center;color:var(--text-muted);z-index:3;flex-direction:column;align-items:center;gap:6px;margin:auto;padding:26px;display:flex;position:absolute;inset:0}.workspace-empty h3{color:var(--text);margin:6px 0 0}.workspace-empty p{margin:0}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.tool-group{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);gap:2px;padding:2px;display:flex}.tool-btn{color:var(--text-muted);background:0 0;border:none;border-radius:5px;align-items:center;gap:5px;padding:5px 8px;display:flex}.tool-btn:hover:not(:disabled){color:var(--text);background:#eceff5}.tool-btn.active{background:var(--accent);color:#fff}.tool-btn:disabled{opacity:.4;cursor:default}.tool-btn.danger:hover:not(:disabled){color:var(--danger);background:#fdeaea}.switch{color:var(--text-muted);-webkit-user-select:none;user-select:none;align-items:center;gap:5px;display:flex}.switch input{accent-color:var(--accent)}.btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);justify-content:center;align-items:center;gap:7px;padding:8px 12px;text-decoration:none;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-2);border-color:#c9d2e4}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn.primary:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.btn.danger{color:var(--danger)}.btn.danger:hover:not(:disabled){background:#fdeaea;border-color:#f2c5c5}.btn.ghost{color:var(--text-muted);background:0 0;border-color:#0000}.btn.ghost:hover:not(:disabled){background:var(--surface-2);color:var(--text);border-color:#0000}.btn.sm{padding:4px 8px;font-size:12px}.btn.full{width:100%}.icon-btn{width:26px;height:26px;color:var(--text-muted);background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn.active{background:var(--accent-soft);color:var(--accent-strong)}.slider-inline{color:var(--text-muted);align-items:center;gap:5px;font-size:11.5px;display:flex}.slider-inline input[type=range]{width:74px;accent-color:var(--accent)}.slider-inline select{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);padding:2px 4px;font-size:11.5px}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);border-radius:999px;padding:3px 10px;font-size:12px}.chip.active{background:var(--accent-soft);color:var(--accent-strong);border-color:#cdd8fb;font-weight:600}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px;display:flex}.segmented button{color:var(--text-muted);text-transform:capitalize;background:0 0;border:none;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:4px;padding:5px 4px;font-size:12.5px;display:flex}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 3px #0000001f}.current-project{background:var(--accent-soft);border-radius:var(--radius-sm);align-items:center;gap:6px;padding:6px 8px;display:flex}.current-project .name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.current-project input{border:1px solid var(--border);border-radius:5px;flex:1;padding:4px 6px}.project-list{flex-direction:column;gap:6px;max-height:240px;display:flex;overflow-y:auto}.project-card{text-align:left;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);align-items:center;gap:9px;padding:6px;display:flex}.project-card:hover{background:var(--surface-2);border-color:#c9d2e4}.project-card.active{border-color:var(--accent);background:var(--accent-soft)}.project-card img,.thumb-fallback{object-fit:cover;background:var(--surface-2);width:52px;height:40px;color:var(--text-muted);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.project-card .meta{flex-direction:column;min-width:0;display:flex}.project-card .name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.upload-zone{border-radius:var(--radius);text-align:center;color:var(--text-muted);cursor:pointer;background:var(--surface-2);border:1.5px dashed #c4cbda;flex-direction:column;align-items:center;gap:6px;padding:18px 12px;display:flex}.upload-zone:hover,.upload-zone.drag{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}.upload-zone p{margin:0;font-size:12.5px}.thumb-grid{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.thumb{aspect-ratio:1;border-radius:6px;position:relative;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb.active{outline:2px solid var(--accent,#3b6cf6);outline-offset:-2px}.thumb-x{color:#fff;background:#14161ea6;border:none;border-radius:50%;justify-content:center;align-items:center;width:17px;height:17px;padding:0;display:flex;position:absolute;top:2px;right:2px}.group-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);align-items:center;gap:6px;margin-top:4px;font-size:11px;font-weight:600;display:flex}.search-row{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-muted);align-items:center;gap:6px;padding:5px 8px;display:flex}.search-row input{background:0 0;border:none;outline:none;flex:1}.cat-tabs{flex-wrap:wrap;gap:4px;display:flex}.library-grid{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.lib-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-muted);flex-direction:column;align-items:center;gap:4px;padding:7px 3px;font-size:11px;display:flex}.lib-card:hover{border-color:var(--accent);color:var(--accent-strong)}.lib-card .swatch{aspect-ratio:1.35;opacity:.85;border-radius:5px;justify-content:center;align-items:center;width:100%;display:flex}.lib-card .swatch-shape{background:#ffffff59;border:1.5px solid #ffffffb3}.lib-card img{aspect-ratio:1.35;object-fit:cover;border-radius:5px;width:100%}.scanned-list{flex-direction:column;gap:3px;display:flex}.scanned-item{text-align:left;color:var(--text);background:0 0;border:none;border-radius:6px;align-items:center;gap:7px;padding:5px 7px;display:flex}.scanned-item:hover{background:var(--surface-2)}.inspector{flex-direction:column;gap:12px;display:flex}.inspector h3{margin:0;font-size:14px}.inspector.empty p{line-height:1.9}.field-group{flex-direction:column;gap:6px;display:flex}.field-group.actions{gap:4px;margin-top:4px}.field-group.actions .btn{justify-content:flex-start}.field-row{align-items:center;gap:8px;display:flex}.field-row>span:first-child{width:30px;color:var(--text-muted);font-size:12px}.field-row.big input{width:90px;font-size:16px}.numfield{flex:1;align-items:center;gap:4px;display:flex}.numfield input,.field-row input[type=number],.seed-input{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:100%;max-width:110px;padding:5px 7px}.numfield input:focus,.field-row input:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}.suffix{color:var(--text-muted);font-size:11.5px}.capture{background:var(--bg);grid-template-columns:1fr 350px;height:100%;display:grid}.capture-left{justify-content:center;align-items:center;min-width:0;padding:18px;display:flex}.capture-drop{border-radius:var(--radius);background:var(--surface);color:var(--text-muted);text-align:center;cursor:pointer;border:2px dashed #c4cbda;flex-direction:column;align-items:center;gap:8px;max-width:460px;padding:60px 70px;display:flex}.capture-drop:hover{border-color:var(--accent);color:var(--accent-strong)}.capture-drop h3{color:var(--text);margin:4px 0 0}.capture-drop p{margin:0}.point-editor{flex-direction:column;align-items:center;gap:8px;max-width:100%;max-height:100%;display:flex}.point-canvas-wrap{max-width:100%;display:inline-block;position:relative}.point-canvas-wrap img{border-radius:var(--radius);-webkit-user-select:none;user-select:none;max-width:100%;max-height:calc(100vh - 160px);display:block}.point-overlay{cursor:crosshair;width:100%;height:100%;position:absolute;inset:0}.seg-badge{color:#fff;background:#14161eb3;border-radius:999px;padding:4px 10px;font-size:11.5px;position:absolute;top:10px;left:10px}.capture-side{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;gap:16px;padding:12px;display:flex;overflow-y:auto}.preview-viewport{border-radius:var(--radius-sm);border:1px solid var(--border);background:#eef1f6;height:220px;overflow:hidden}.overlay{z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#181c2873;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.overlay-card{background:var(--surface);box-shadow:var(--shadow);text-align:center;border-radius:14px;width:420px;max-width:92vw;padding:26px 30px}.overlay-card h3{margin:12px 0 4px}.overlay-card p{margin:4px 0}.overlay-progress{background:var(--border);border-radius:3px;height:6px;margin:8px 0 4px;overflow:hidden}.overlay-progress>div{background:var(--accent);height:100%;transition:width .3s}.overlay-card.dialog{text-align:left}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.preset-row{flex-wrap:wrap;gap:5px;margin:10px 0;display:flex}.export-dialog{width:500px}.export-formats{flex-direction:column;gap:6px;margin:12px 0;display:flex}.export-format{cursor:pointer;border:1px solid var(--border);border-radius:var(--radius-sm);align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.export-format:hover{background:var(--surface-2)}.export-format.active{background:var(--accent-soft);border-color:#cdd8fb}.export-format input{accent-color:var(--accent);margin-top:3px}.export-format-text{flex-direction:column;gap:2px;display:flex}.export-format-title{align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.export-format-title .muted{font-size:12px;font-weight:400}.export-badge{color:var(--accent-strong);background:var(--surface);border:1px solid #cdd8fb;border-radius:999px;padding:0 7px;font-size:10.5px;font-weight:600}.export-options{flex-wrap:wrap;align-items:center;gap:14px;margin:4px 0 6px;display:flex}.spinner{border:3px solid var(--accent-soft);border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;margin:0 auto;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.stages{text-align:left;margin:12px 0 4px;padding:0;list-style:none}.stages li{color:var(--text-muted);padding:4px 0 4px 24px;font-size:12.5px;position:relative}.stages li:before{content:"";background:var(--border);border-radius:50%;width:8px;height:8px;position:absolute;top:9px;left:6px}.stages li.done{color:var(--success)}.stages li.done:before{background:var(--success)}.stages li.current{color:var(--text);font-weight:600}.stages li.current:before{background:var(--accent);animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.6;transform:scale(1.5)}}.toasts{z-index:60;flex-direction:column;gap:8px;max-width:380px;display:flex;position:fixed;bottom:16px;right:16px}.toast{color:#f2f4f8;box-shadow:var(--shadow);background:#23262f;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.toast.error{color:#ffd9dc;background:#46151b}.toast.success{color:#c9f3da;background:#0f3d24}.toast .icon-btn{color:inherit;opacity:.7}.toast .icon-btn:hover{background:#ffffff1f}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#c9cfdc padding-box content-box;border:2px solid #0000;border-radius:5px}::-webkit-scrollbar-track{background:0 0}.home{z-index:10;background:var(--bg);min-height:100%;padding:40px clamp(20px,6vw,80px);position:relative;overflow-y:auto}.home-head{max-width:1100px;margin:0 auto 28px}.brand.big{font-size:24px}.home-head .tagline{color:var(--text-muted);margin:8px 0 0;font-size:15px}.home-head-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.home-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;max-width:1100px;margin:0 auto;display:grid}.home-card{text-align:left;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;align-items:stretch;gap:4px;padding:10px;display:flex;box-shadow:0 1px 2px #171e370a}.home-card:hover{border-color:var(--accent);box-shadow:var(--shadow);transform:translateY(-1px)}.home-card-wrap{display:flex;position:relative}.home-card-wrap>.home-card{flex:1;min-width:0}.home-card-delete{opacity:0;background:#ffffffeb;transition:opacity .12s;position:absolute;top:14px;right:14px;box-shadow:0 1px 3px #171e372e}.home-card-wrap:hover .home-card-delete,.home-card-delete:focus-visible{opacity:1}.home-card-delete:hover{color:#c0392b}@media (hover:none){.home-card-delete{opacity:1}}.home-card img,.home-thumb-fallback{aspect-ratio:4/3;border-radius:var(--radius-sm);object-fit:cover;background:var(--surface-2);width:100%;color:var(--text-muted);justify-content:center;align-items:center;margin-bottom:4px;display:flex}.home-card-name{text-overflow:ellipsis;white-space:nowrap;font-weight:650;overflow:hidden}.home-card.new{text-align:center;color:var(--accent-strong);background:var(--surface-2);border-style:dashed;justify-content:center;align-items:center;gap:8px;min-height:190px}.home-card.new:hover{background:var(--accent-soft)}.home-btn{margin-right:2px}.lib-card{cursor:pointer}.lib-card.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}.lib-card .swatch{background:var(--surface-2);color:var(--text-muted)}button.photo-thumb{cursor:pointer;background:0 0;border:none;padding:0}button.photo-thumb:hover{outline:2px solid var(--accent);outline-offset:0}.overlay.lightbox{cursor:zoom-out;z-index:70;background:#0c0e16db;padding:32px}.lightbox-nav{z-index:71;color:#fff;background:#ffffff24;border:none;border-radius:50%;justify-content:center;align-items:center;width:46px;height:46px;display:flex;position:fixed;top:50%;transform:translateY(-50%)}.lightbox-nav:hover{background:#ffffff47}.lightbox-nav.prev{left:20px}.lightbox-nav.next{right:20px}.lightbox-counter{z-index:71;color:#fff;pointer-events:none;background:#0006;border-radius:999px;padding:3px 10px;font-size:12.5px;position:fixed;bottom:18px;left:50%;transform:translate(-50%)}.overlay.lightbox img{object-fit:contain;max-width:94vw;max-height:92vh;box-shadow:var(--shadow);cursor:default;border-radius:8px}.lightbox-close{z-index:71;color:#fff;background:#ffffff24;border:none;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;display:flex;position:fixed;top:18px;right:20px}.lightbox-close:hover{background:#ffffff47}.live-progress{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:300px;max-width:calc(100% - 24px);box-shadow:var(--shadow);padding:12px 14px;position:absolute;top:60px;left:22px}.live-progress-head{align-items:center;gap:8px;display:flex}.live-progress-head strong{flex:1}.live-progress .stages{margin:8px 0 6px}.live-progress p{margin:0}.spinner.sm{border-width:2px;width:16px;height:16px;margin:0}.field-block{flex-direction:column;gap:5px;margin:4px 0 12px;display:flex}.field-label{font-size:12.5px;font-weight:600}.room-sources{flex-direction:column;gap:2px;margin-top:6px;line-height:1.35;display:flex}.capture-source{flex-direction:column;align-items:center;gap:12px;width:100%;height:100%;min-height:0;display:flex}.capture-tabs{align-self:center}.capture-pano{flex-direction:column;flex:1;justify-content:center;gap:8px;width:100%;min-height:0;display:flex}.capture-pano>p{text-align:center}.pano-toolbar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.pano-view{border-radius:var(--radius);cursor:crosshair;background:#111;flex:1;min-height:320px;position:relative;overflow:hidden}.pano-view canvas{touch-action:none;width:100%;height:100%;display:block}.pano-view.busy{cursor:progress}.pano-marker{pointer-events:none;border:2px solid #fff;border-radius:50%;width:18px;height:18px;margin:-9px 0 0 -9px;display:none;position:absolute;box-shadow:0 0 0 2px #209ceee6}.capture-photos{flex:1;width:100%;min-height:0;overflow:auto}.capture-photo-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.capture-photo-grid .thumb{aspect-ratio:4/3}.capture-photo-grid .seg-badge{position:absolute;bottom:6px;left:6px}.capture-source>.capture-drop{margin:auto 0}.capture-tabs button,.pano-toolbar .segmented button{white-space:nowrap}.plan-dialog{width:min(1200px,96vw);max-width:96vw;padding:16px 18px}.plan-head{justify-content:space-between;align-items:center;display:flex}.plan-head h3{margin:0}.plan-body{gap:16px;min-height:0;margin-top:10px;display:flex}.plan-preview{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);flex:1;justify-content:center;align-items:center;min-width:0;max-height:78vh;padding:12px;display:flex;overflow:auto}.plan-sheet{background:#fff;width:100%;line-height:0;box-shadow:0 2px 10px #0000001f}.plan-sheet svg{width:100%;height:auto;display:block}.plan-options{flex-direction:column;flex-shrink:0;gap:8px;width:250px;display:flex}.plan-field{color:var(--text-muted);flex-direction:column;flex:1;gap:3px;min-width:0;font-size:11.5px;display:flex}.plan-field input,.plan-field select,.plan-field textarea{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);box-sizing:border-box;width:100%;padding:4px 6px;font-family:inherit;font-size:12.5px}.plan-field textarea{resize:vertical}.plan-row{gap:8px;display:flex}.plan-checks{flex-direction:column;gap:4px;margin:2px 0;display:flex}.plan-actions{gap:8px;margin-top:4px;display:flex}.plan-actions .btn{align-items:center;gap:5px;display:inline-flex}@media (width<=800px){.plan-body{flex-direction:column}.plan-options{width:auto}}.login-screen{z-index:1000;background:var(--bg);place-items:center;padding:16px;display:grid;position:fixed;inset:0}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:340px;box-shadow:var(--shadow);flex-direction:column;gap:14px;padding:28px 24px;display:flex}.login-hint{color:var(--text-muted);margin:-4px 0 4px;font-size:14px}.login-field{color:var(--text-muted);flex-direction:column;gap:5px;font-size:13px;display:flex}.login-field input{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px 11px;font-size:15px}.login-field input:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}.login-error{color:var(--danger);margin:0;font-size:13px}.login-card .btn.full{padding:10px;font-size:14px}.user-badge{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.user-badge-name{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.home-head-actions .user-badge{margin-left:auto}
