:root{--bg: #050b10;--panel: #0b151d;--panel-2: #101c25;--border: #243641;--text: #f3f7f9;--muted: #8fa0aa;--accent: #09aef2;--accent-soft: rgba(9, 174, 242, .15);--danger: #ff7474;color-scheme:dark;font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-size:14px}button,input,select{font:inherit}button{color:inherit}.app{height:100%;min-width:1060px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 65% 0%,#10202c 0,var(--bg) 36%)}.toolbar{height:72px;flex:0 0 auto;display:grid;grid-template-columns:minmax(290px,1fr) auto minmax(330px,1fr);align-items:center;padding:0 22px;border-bottom:1px solid #17252e;background:#040a0ff5;z-index:10}.toolbar-brand{display:flex;align-items:center;gap:12px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;color:var(--accent);border:4px solid var(--accent);border-radius:8px 2px;font-size:22px;font-weight:900;transform:skew(-6deg);text-shadow:0 0 16px rgba(9,174,242,.6)}.toolbar-brand h1{margin:0;font-size:21px;letter-spacing:-.6px}.toolbar-brand h1 span{font-weight:350}.toolbar-brand p{margin:3px 0 0;color:#9aa8af;font-size:11px;font-style:italic}.workflow-steps{display:flex;align-items:center}.workflow-step{display:flex;align-items:center;color:#8a969c}.workflow-step:not(:last-child):after{content:"";width:clamp(28px,3vw,52px);height:2px;margin:0 12px;background:#31404a}.workflow-step.complete:not(:last-child):after,.workflow-step.active:not(:last-child):after{background:linear-gradient(90deg,var(--accent),#12648a)}.workflow-step span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1px solid #40515d;font-size:13px;font-style:normal}.workflow-step em{margin-left:8px;font-size:12px;font-style:normal;color:#c7d0d5}.workflow-step.active span,.workflow-step.complete span{border-color:var(--accent);color:#fff;box-shadow:0 0 14px #09aef247}.workflow-step.complete span{background:var(--accent);color:#031018}.toolbar-actions{margin-left:auto;display:flex;align-items:center;gap:7px}button{min-height:36px;padding:7px 13px;cursor:pointer;border:1px solid var(--border);border-radius:7px;background:#111e27;transition:.16s ease}button:hover:not(:disabled){border-color:#3e6e83;background:#162731}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.38;cursor:not-allowed}button.primary{background:linear-gradient(180deg,#12adf2,#087ac6);border-color:#28bdfc;font-weight:700}.icon-button{width:35px;padding:0;background:transparent;border-color:transparent;font-size:23px}.project-button{background:transparent;border-color:transparent;padding-inline:8px}.profile{display:flex;gap:9px;align-items:center;margin-left:9px;padding-left:14px;border-left:1px solid #2a3942}.profile>span:last-child{display:flex;flex-direction:column;font-size:11px}.profile small{color:var(--muted);margin-top:2px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#76513c,#263b4d);font-size:10px;font-weight:800;border:2px solid #344753}.app-body{display:flex;flex:1;min-height:0;gap:10px;padding:10px}.canvas-area{position:relative;display:flex;flex:1;min-width:0;min-height:0;overflow:hidden;border-radius:12px;border:1px solid #283842;background:#101820;box-shadow:0 12px 35px #00000047}.canvas-container{position:relative;flex:1;min-width:0;min-height:0;touch-action:none;background:repeating-conic-gradient(#121c24 0,#121c24 25%,#0f171d 0,#0f171d 50%) 0 0 / 24px 24px}.viewport-controls{position:absolute;bottom:93px;right:12px;z-index:4;display:flex;gap:3px;padding:4px;border:1px solid #2d424e;border-radius:9px;background:#0a151de6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.viewport-controls button{min-width:38px;min-height:38px;padding:4px 8px;border-color:transparent;background:transparent}.viewport-controls button:nth-child(2){min-width:54px;color:#c6d5dc;font-size:11px}.side-panel{width:326px;flex:0 0 326px;overflow-y:auto;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin;scrollbar-color:#29414f transparent}.control-card{padding:14px;border:1px solid var(--border);border-radius:11px;background:linear-gradient(145deg,#101d26fa,#081219fa)}.panel-heading{display:flex;justify-content:space-between;margin:0 0 13px;color:#f4f7f8;font-size:15px;text-transform:none;letter-spacing:0}.panel-heading span{color:#c4d0d5}.panel-hint{color:var(--muted);font-size:11px;margin:-4px 0 10px}.surface-card{padding:10px}.surface-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.surface-heading .panel-heading{margin:0;gap:6px}.surface-heading .panel-heading span{min-width:20px;padding:1px 6px;border-radius:10px;background:#1a2c37;color:#b9c8cf;font-size:11px;text-align:center}.surface-heading button{min-height:30px;padding:4px 9px;color:var(--accent)}.surface-list{display:grid;gap:5px}.surface-item{display:grid;grid-template-columns:1fr 32px 32px 32px;align-items:center;border:1px solid transparent;border-radius:8px;background:#0b171f}.surface-item.active{border-color:#09aef294;background:var(--accent-soft)}.surface-select{min-width:0;min-height:48px;display:flex;align-items:center;gap:9px;padding:7px 9px;border:0;background:transparent;text-align:left}.surface-select:hover:not(:disabled),.surface-icon:hover:not(:disabled){background:#ffffff09}.surface-select>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.surface-select strong,.surface-select small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.surface-select strong{font-size:12px}.surface-select small{margin-top:3px;color:var(--muted);font-size:10px}.surface-swatch{width:9px;height:28px;flex:0 0 auto;border-radius:5px;background:var(--accent);box-shadow:0 0 9px #09aef259}.surface-icon{min-height:32px;padding:0;border:0;background:transparent}.smart-selection-card .panel-heading span{padding:2px 6px;border:1px solid rgba(9,174,242,.35);border-radius:8px;color:var(--accent);font-size:8px;letter-spacing:.08em}.smart-selection-actions{display:grid}.smart-selection-actions.three{grid-template-columns:1.15fr 1fr 1fr;gap:5px}.smart-selection-actions button{padding-inline:7px;font-size:10px}.smart-selection-active{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;margin-bottom:10px;padding:8px;border:1px solid rgba(9,174,242,.45);border-radius:8px;background:var(--accent-soft)}.smart-selection-active>span:nth-child(2){display:flex;min-width:0;flex-direction:column}.smart-selection-active strong{font-size:12px}.smart-selection-active small{margin-top:2px;overflow:hidden;color:#a9bac3;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.smart-selection-active button{min-height:32px;padding:4px 7px;font-size:10px}.wand-pulse{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--accent);box-shadow:0 0 #09aef273;animation:wand-pulse 1.5s infinite}@keyframes wand-pulse{70%{box-shadow:0 0 0 9px #09aef200}to{box-shadow:0 0 #09aef200}}.smart-preview{margin-bottom:10px;padding:9px;border:1px solid rgba(9,174,242,.45);border-radius:8px;background:var(--accent-soft)}.smart-preview-status{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.smart-preview-status strong{font-size:12px}.smart-preview-status span{color:#a9bac3;font-size:9px;font-variant-numeric:tabular-nums}.smart-preview .panel-hint{margin:6px 0 8px}.smart-preview-warning{margin:6px 0 0;padding:5px 7px;border-radius:6px;color:#ffd7a6;background:#ff9f4324;font-size:9px}.smart-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.smart-preview-actions button{min-height:32px;padding:4px 7px;font-size:10px}.wand-tolerance{display:grid;grid-template-columns:62px 24px 1fr 24px 28px;align-items:center;gap:6px;margin-top:11px;color:#d1d9dd;font-size:10px}.wand-tolerance output{text-align:right;font-variant-numeric:tabular-nums}.tolerance-step{min-height:22px;padding:0;border-radius:6px;font-size:12px;line-height:1}.tolerance-hint kbd{padding:1px 4px;border:1px solid rgba(255,255,255,.18);border-radius:4px;background:#ffffff0f;font-size:8px}.tolerance-hint{display:block;margin-top:5px;color:#6f838e;font-size:9px}.canvas-container.smart-selecting{box-shadow:inset 0 0 0 2px #09aef2b8}.canvas-container.smart-selecting:after{content:"✦ Tap a wall, floor, or object";position:absolute;left:50%;top:14px;z-index:3;transform:translate(-50%);padding:7px 11px;border:1px solid rgba(9,174,242,.5);border-radius:16px;color:#fff;background:#05141de0;font-size:10px;font-weight:700;pointer-events:none}.canvas-container.smart-previewing:after{content:"✦ Adjust tolerance, then Apply"}.object-guard-card .panel-heading span{padding:2px 6px;border:1px solid rgba(239,124,255,.4);border-radius:8px;color:#ef7cff;font-size:8px;letter-spacing:.08em}.object-detect-button{width:100%;color:#f0b8f8;border-color:#ef7cff59;background:#8834991f}.object-sensitivity{display:grid;grid-template-columns:65px 1fr 28px;align-items:center;gap:7px;margin-top:11px;color:#d1d9dd;font-size:10px}.object-sensitivity output{text-align:right;font-variant-numeric:tabular-nums}.object-suggestions{padding:9px;border:1px solid rgba(239,124,255,.42);border-radius:8px;background:#8834991a}.object-suggestions>div:first-child{display:grid;grid-template-columns:28px 1fr;align-items:center}.object-suggestions>div:first-child>span{grid-row:1 / 3;color:#ef7cff;font-size:20px}.object-suggestions strong{font-size:12px}.object-suggestions small{color:#bd9ec2;font-size:9px}.suggestion-list{display:grid;gap:3px;max-height:112px;margin-top:8px;overflow-y:auto}.suggestion-list label{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:5px;padding:4px 5px;border-radius:5px;background:#050b104d;font-size:10px}.suggestion-list input{accent-color:#ef7cff}.suggestion-actions{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:9px}.suggestion-actions button{min-height:34px;padding:5px 8px;font-size:10px}.mask-card .panel-heading{align-items:center}.mask-card .panel-heading span{font-size:10px;font-weight:500;color:var(--muted)}.mask-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.mask-actions button{padding-inline:8px;font-size:11px}.mask-actions button.include{color:#62e1af;border-color:#43d49e80;background:#43d49e1f}.mask-actions button.exclude{color:#ff9c86;border-color:#ff8d738c;background:#ff8d731f}.mask-region-list{display:grid;gap:4px;max-height:168px;overflow-y:auto}.mask-region-list button{min-height:34px;display:flex;align-items:center;gap:8px;padding:5px 8px;border-color:transparent;background:#0b171f;font-size:11px;text-align:left}.mask-region-list button.selected{border-color:#416477;background:#132630}.mask-dot{width:9px;height:9px;flex:0 0 auto;border-radius:50%}.mask-dot.primary{background:#22d3ee}.mask-dot.include{background:#43d49e}.mask-dot.exclude{background:#ff8d73}.mask-card>.text-button{width:100%;margin-top:5px}.perspective-card .panel-heading span{padding:2px 7px;border-radius:8px;background:#182832;color:var(--muted);font-size:8px;letter-spacing:.08em}.perspective-card .panel-heading span.enabled{background:#facc1524;color:#facc15}.perspective-enable{width:100%}.perspective-actions{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:5px}.perspective-actions button{padding-inline:6px;font-size:10px}.perspective-actions button.active{color:#facc15;border-color:#facc1580;background:#facc151a}.perspective-hint{display:block;margin-top:8px;color:#d4bd65;font-size:9px;line-height:1.4}.texture-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.texture-card{position:relative;display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:8px;background:transparent;border:2px solid transparent;min-height:0}.texture-card:hover:not(:disabled){transform:translateY(-1px);background:transparent}.texture-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px #09aef221}.texture-thumb{width:100%;aspect-ratio:1.08;object-fit:cover;display:block;border-radius:5px}.texture-name{padding:5px 2px 2px;width:100%;font-size:11px;text-align:center;color:#d6dde1}.texture-check{position:absolute;top:5px;right:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:900;box-shadow:0 2px 6px #0006}.control-row{margin:0 0 12px}.control-row label{display:grid;grid-template-columns:112px 1fr 58px;align-items:center;gap:8px;font-size:11px;color:#d1d9dd}.control-row label:before{content:"◇";color:#b9c7cd;font-size:16px}.control-row label>span{grid-column:1;grid-row:1;padding-left:24px}.control-row input{grid-column:2;grid-row:1;min-width:0}.control-row output{grid-column:3;grid-row:1;padding:5px 6px;border:1px solid #334651;border-radius:5px;color:#e7edf0;text-align:center;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:3px;accent-color:var(--accent)}select{width:100%;padding:7px 8px;color:var(--text);background:#111f28;border:1px solid #334651;border-radius:6px}.text-button{min-height:30px;padding:4px 0;border:0;background:transparent;font-size:11px}.danger{color:var(--danger)}.selection-actions{padding:0 4px 8px;display:flex;gap:7px}.selection-actions .panel-heading{display:none}.canvas-toolbar{position:absolute;left:50%;bottom:18px;transform:translate(-50%);display:flex;align-items:stretch;padding:8px;gap:3px;border:1px solid #2d424e;border-radius:13px;background:#0a151df0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 12px 32px #00000073;z-index:5}.canvas-toolbar button{min-width:74px;min-height:55px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border-color:transparent;background:transparent;font-size:10px;white-space:nowrap}.canvas-toolbar button span{font-size:21px;line-height:1}.canvas-toolbar button.active{color:var(--accent);background:var(--accent-soft);border-color:#09aef261}.canvas-toolbar button.add-region.active{color:#62e1af;background:#43d49e1f;border-color:#43d49e73}.canvas-toolbar button.protect-region.active{color:#ff9c86;background:#ff8d731f;border-color:#ff8d7380}.canvas-toolbar button.primary{color:#fff;background:linear-gradient(180deg,#0daef2,#087dc5);border-color:#32befa}.canvas-toolbar i{width:1px;margin:7px 6px;background:#2d414d}.compare-badge{position:absolute;left:18px;bottom:93px;padding:7px 11px;border-radius:5px;background:#081117d9;border:1px solid #334650;font-size:10px;font-weight:800;letter-spacing:.04em}.floating-help{position:absolute;left:50%;top:16px;transform:translate(-50%);max-width:560px;padding:10px 14px;z-index:4;background:#081219f0;border:1px solid #30444f;border-radius:9px;box-shadow:0 8px 25px #00000052;text-align:center}.floating-help p{margin:0 0 8px;font-size:12px}.floating-help-actions{display:flex;justify-content:center;gap:7px}kbd{padding:1px 5px;border-radius:4px;background:#182832;border:1px solid #3a4b55}.upload-panel{flex:1;margin:22px;display:grid;place-items:center;border:1px dashed #35505f;border-radius:13px;background:radial-gradient(circle,rgba(9,174,242,.06),transparent 55%)}.upload-panel.drag-over{border-color:var(--accent);background-color:#09aef20f}.upload-inner{max-width:430px;padding:32px;text-align:center}.upload-icon{font-size:42px;margin:0 0 10px;filter:grayscale(1)}.upload-inner h2{margin:0 0 8px;font-size:24px}.upload-inner p{margin:0 0 18px;color:var(--muted)}.upload-actions{display:flex;justify-content:center;gap:9px}.upload-actions button{min-width:145px}.upload-actions .demo-button{box-shadow:0 7px 20px #09aef233}.upload-actions .demo-button span{margin-right:5px}.upload-inner .demo-note{margin:10px 0 0;color:#6f838e;font-size:10px;letter-spacing:.02em}.upload-steps{margin:26px auto 0;padding-left:23px;color:var(--muted);text-align:left;line-height:1.9}.present-mode{padding:0;gap:0}.present-mode .canvas-area{border:0;border-radius:0}.present-mode .side-panel{display:none}.present-mode .canvas-toolbar{opacity:.18;transition:opacity .2s}.present-mode .canvas-toolbar:hover,.present-mode .canvas-toolbar:focus-within{opacity:1}.error-banner{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;background:#6b2020;color:#ffd3d3;z-index:20}.error-banner button{border:0;background:transparent;min-height:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (max-height: 760px){.toolbar{height:62px}.control-card{padding:11px}.texture-thumb{aspect-ratio:1.3}.control-row{margin-bottom:8px}}@media (max-width: 900px){html,body,#root{min-height:100%;height:auto}body{overscroll-behavior-y:none}.app{min-width:0;width:100%;height:auto;min-height:100dvh;overflow:visible}.toolbar{position:sticky;top:0;height:auto;min-height:112px;grid-template-columns:1fr auto;grid-template-rows:58px 44px;padding:0 10px 8px;gap:0 8px}.toolbar-brand{gap:8px}.brand-mark{width:32px;height:32px;border-width:3px;font-size:18px}.toolbar-brand h1{font-size:18px}.toolbar-brand p{display:none}.toolbar-actions{gap:2px}.toolbar-actions .profile{display:none}.toolbar-actions .project-button{width:42px;padding:0;font-size:0}.toolbar-actions .project-button span{font-size:21px}.toolbar-actions .icon-button{width:42px;min-height:44px}.workflow-steps{grid-column:1 / -1;justify-content:center;min-width:0}.workflow-step{min-width:0}.workflow-step:not(:last-child):after{width:clamp(10px,5vw,28px);margin:0 5px}.workflow-step span{width:28px;height:28px;font-size:11px}.workflow-step em{margin-left:4px;font-size:10px}button{min-height:44px}.app-body{flex-direction:column;min-height:auto;gap:8px;padding:8px}.canvas-area{flex:0 0 auto;width:100%;height:54dvh;min-height:390px;border-radius:10px}.side-panel{width:100%;flex:none;overflow:visible;gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.control-card{border-radius:10px}.surface-heading button,.surface-icon{min-height:44px}.surface-item{grid-template-columns:1fr 44px 44px 44px}.surface-select{min-height:56px}.smart-selection-actions button,.object-detect-button,.suggestion-actions button,.perspective-actions button,.perspective-enable{min-height:48px}.smart-selection-active button{min-height:44px}.smart-preview-actions button{min-height:46px}.tolerance-step{min-height:34px}.canvas-container.smart-selecting:after{top:62px;max-width:calc(100% - 24px);white-space:nowrap}.texture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.texture-card{min-height:88px}.texture-thumb{aspect-ratio:1.35}.control-row{margin-bottom:17px}input[type=range]{height:6px}.canvas-toolbar{left:8px;right:8px;bottom:8px;transform:none;justify-content:flex-start;max-width:none;padding:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.canvas-toolbar::-webkit-scrollbar{display:none}.canvas-toolbar button{min-width:68px;min-height:54px;padding:5px 7px}.canvas-toolbar i{flex:0 0 1px}.viewport-controls{top:auto;bottom:76px;right:8px}.viewport-controls button{min-width:44px;min-height:44px}.floating-help{top:62px;width:calc(100% - 24px);max-width:none;padding:8px}.floating-help p{font-size:11px}.floating-help kbd{display:none}.floating-help-actions{flex-wrap:wrap}.floating-help-actions button{flex:1;min-width:90px}.compare-badge{left:10px;bottom:76px}.upload-panel{margin:8px;min-height:calc(100dvh - 138px)}.upload-inner{width:100%;padding:24px 18px}.upload-actions{flex-direction:column}.upload-actions button{width:100%;min-height:50px}.present-mode{min-height:calc(100dvh - 112px);padding:0}.present-mode .canvas-area{height:calc(100dvh - 112px);min-height:0}}@media (max-width: 430px){.workflow-step em{display:none}.workflow-step:not(:last-child):after{width:clamp(24px,12vw,44px)}.canvas-area{height:52dvh;min-height:350px}.control-row label{grid-template-columns:104px 1fr 56px}.control-row label>span{padding-left:20px}.surface-heading .panel-heading{font-size:14px}}@media (max-width: 900px) and (orientation: landscape){.toolbar{position:relative;min-height:60px;grid-template-rows:60px}.workflow-steps{display:none}.app-body{flex-direction:row}.canvas-area{width:auto;flex:1 1 auto;height:calc(100dvh - 76px);min-height:300px}.side-panel{width:310px;flex:0 0 310px;max-height:calc(100dvh - 76px);overflow-y:auto}}
