:root{color-scheme:light;--ink:#263e4f;--muted:#637b8b;--accent:#557b96;--border:rgba(100,130,149,.18);--panel:rgba(255,255,255,.94);font-family:Inter,"Segoe UI",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#edf2f6;color:var(--ink)}button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;cursor:pointer}button:disabled{opacity:.38;cursor:wait}button,canvas{outline:none}button:focus-visible,canvas:focus-visible{outline:3px solid #5796bd;outline-offset:4px}button svg,svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
#viewer{position:fixed;inset:0;height:100%;height:100dvh;isolation:isolate}.scene-background{position:absolute;inset:0;background:radial-gradient(ellipse at 52% 43%,#fbfcfc 0%,#edf2f6 63%,#e4edf3 100%)}#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}#scene[data-mode=pan]{cursor:move}
.topbar{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:28px 36px;pointer-events:none}.brand{display:flex;align-items:center;gap:13px}.brand>div{display:grid;gap:5px}.brand strong{font-size:20px;font-weight:650;letter-spacing:-.5px}.brand>div>span{font-size:9px;letter-spacing:2.1px;color:var(--muted);font-weight:650}.brand-mark{width:41px;height:41px;position:relative;display:block;transform:rotate(-6deg)}.brand-mark i{position:absolute;width:17px;height:17px;border-radius:3px;background:#6687a0}.brand-mark i:nth-child(1){top:1px;left:1px;background:#a5bbcb}.brand-mark i:nth-child(2){right:1px;top:1px}.brand-mark i:nth-child(3){left:1px;bottom:1px}.brand-mark i:nth-child(4){right:1px;bottom:1px;background:#c4d4de}.top-actions{display:flex;align-items:center;gap:17px;pointer-events:auto}.live-label{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.15px;color:var(--muted)}.live-label i{width:6px;height:6px;border-radius:50%;background:#72978b}.icon-button{border:0;border-radius:13px;background:transparent;width:46px;height:46px;display:grid;place-items:center;transition:background .15s,color .15s}.icon-button:hover{background:#e9f0f5}.help-toggle{background:rgba(255,255,255,.8);border:1px solid var(--border)}.icon-button[aria-pressed=true]{background:#e1edf5;color:#366385}
.introduction{position:absolute;top:140px;left:38px;pointer-events:none}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#7b95a8;display:flex;align-items:center;gap:8px}.eyebrow>span{width:19px;height:1px;background:#86a0b2}h1{font-size:clamp(27px,2.7vw,39px);font-weight:450;letter-spacing:-1.6px;line-height:1.12;margin:17px 0 15px}h1>span{color:#709bb7}.introduction>p{font-size:12px;color:var(--muted);letter-spacing:.15px;margin:0}
.view-tools{position:absolute;right:28px;top:50%;transform:translateY(-50%);padding:5px;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:0 6px 22px #3650690b}.tool-divider{height:1px;background:var(--border);margin:5px 9px}.bottom-bar{position:absolute;bottom:24px;bottom:max(24px,env(safe-area-inset-bottom));left:36px;right:36px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.interaction{position:absolute;left:50%;transform:translateX(-50%);text-align:center;pointer-events:auto}.mode-control{display:flex;gap:4px;padding:5px;background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:0 5px 20px #29405708}.mode-control button{border:0;background:transparent;border-radius:13px;min-width:130px;height:47px;display:flex;gap:10px;align-items:center;justify-content:center;font-size:13px;font-weight:550;color:#6e8390}.mode-control button[aria-pressed=true]{background:#e9f0f5;color:#365b76}.mode-control button:hover{background:#f0f5f8}.gesture-hint{font-size:10px;white-space:nowrap;color:#7a909f;margin:12px 0 0;letter-spacing:.1px}.gesture-hint span,.map-note span{margin:0 5px;color:#a4b6c2}.map-note{font-size:10px;color:#8296a4;margin-bottom:12px}
.loading-card,.error-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.97);padding:28px 32px;border:1px solid var(--border);border-radius:22px;box-shadow:0 12px 60px #30495b10;max-width:calc(100% - 48px);text-align:center}.loading-card{position:fixed;z-index:10000;display:grid;justify-items:center;gap:13px;min-width:260px}.loading-card strong{font-size:15px;font-weight:550}.loading-card>span:last-child{font-size:12px;color:var(--muted)}.spinner{width:27px;height:27px;border:2px solid #dde7ef;border-top-color:#6a8ea9;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-card{width:380px;z-index:5}.error-card h2{font-size:23px;font-weight:500}.error-card p{font-size:14px;line-height:1.65;color:var(--muted)}.error-card .eyebrow{justify-content:center;font-size:8px;letter-spacing:1.1px}.primary-button{display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:#54778f;color:#fff;border-radius:12px;padding:14px 20px;font-size:13px;font-weight:550;min-height:47px;width:100%}.primary-button:hover{background:#44677f}.notice{position:absolute;bottom:133px;left:50%;transform:translateX(-50%);font-size:11px;color:#627c8c;background:#fff;padding:10px 15px;border-radius:12px;max-width:calc(100% - 36px);text-align:center}body:not([data-editor]) .notice,body[data-editor=live] .notice{display:none!important}
.modal-backdrop{position:fixed;inset:0;z-index:10;background:#273e4f35;display:grid;place-items:center;padding:22px}.help-card{position:relative;background:#fbfcfd;border-radius:25px;padding:35px;max-width:450px;width:100%;box-shadow:0 18px 90px #263e4f25;max-height:calc(100dvh - 40px);overflow:auto}.close-button{position:absolute;right:12px;top:12px}.help-card h2{font-weight:450;letter-spacing:-.8px;font-size:28px;margin:17px 0 27px}.help-row{display:flex;gap:16px;margin:23px 0}.help-row>svg{width:23px;height:23px;flex-shrink:0;fill:none;stroke:#6689a2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.help-row strong{font-size:13px;font-weight:650}.help-row p,.keyboard-help{font-size:12px;line-height:1.65;color:#718694;margin:5px 0 0}.keyboard-help{padding:14px 0;border-top:1px solid var(--border);margin-top:22px}.help-card>.primary-button{margin-top:12px}
.credits-toggle{position:fixed;z-index:7;right:0;bottom:0;max-width:100%;min-height:22px;margin:0;padding:3px max(11px,env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) 11px;border:0;border-top:1px solid rgba(255,255,255,.3);border-left:1px solid rgba(255,255,255,.2);border-radius:3px 0 0;background:rgba(23,35,43,.82);color:#f4f7f8;font-size:10px;line-height:15px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 -1px 8px rgba(8,18,25,.14);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.credits-toggle:hover{background:rgba(23,35,43,.95);text-decoration:underline}.credits-toggle:focus-visible{outline-color:#fff;outline-offset:-3px}.credits-modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:16px;background:rgba(27,45,58,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.credits-card{position:relative;width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:34px;background:#fbfcfd;border:1px solid var(--border);border-radius:24px;box-shadow:0 24px 100px rgba(16,34,47,.3)}.credits-close{position:absolute;right:10px;top:10px}.credits-kicker{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#7892a4}.credits-card h2{margin:12px 44px 27px 0;font-size:28px;line-height:1.12;font-weight:450;letter-spacing:-.8px}.credits-list{display:grid;gap:11px}.credits-list p{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;margin:0;padding:15px 16px;border:1px solid var(--border);border-radius:14px;background:#f2f6f8}.credits-list span{font-size:11px;line-height:1.45;color:var(--muted)}.credits-list strong{font-size:12px;font-weight:650;text-align:right;white-space:nowrap}
.modal-backdrop{position:fixed;inset:0;z-index:10;background:#273e4f35;display:grid;place-items:center;padding:22px}.help-card{position:relative;background:#fbfcfd;border-radius:25px;padding:35px;max-width:450px;width:100%;box-shadow:0 18px 90px #263e4f25;max-height:calc(100dvh - 40px);overflow:auto}.close-button{position:absolute;right:12px;top:12px}.help-card h2{font-weight:450;letter-spacing:-.8px;font-size:28px;margin:17px 0 27px}.help-row{display:flex;gap:16px;margin:23px 0}.help-row>svg{width:23px;height:23px;flex-shrink:0;fill:none;stroke:#6689a2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.help-row strong{font-size:13px;font-weight:650}.help-row p,.keyboard-help{font-size:12px;line-height:1.65;color:#718694;margin:5px 0 0}.keyboard-help{padding:14px 0;border-top:1px solid var(--border);margin-top:22px}.help-card>.primary-button{margin-top:12px}
@media(max-width:900px){.introduction{top:113px;left:25px}h1{font-size:28px}.topbar{padding:23px 25px}.bottom-bar{left:24px;right:24px}.map-note{display:none}.view-tools{right:18px}.interaction{bottom:0}.bottom-bar{height:95px;pointer-events:none}}
@media(max-width:600px){.topbar{padding:19px 20px;padding-top:max(19px,env(safe-area-inset-top))}.brand{gap:10px}.brand-mark{width:33px;height:33px}.brand-mark i{width:14px;height:14px}.brand strong{font-size:18px}.brand>div>span{font-size:8px;letter-spacing:1.5px}.top-actions{gap:10px}.live-label{font-size:10px}.help-toggle{width:40px;height:40px}.introduction{top:98px;left:22px}.eyebrow{font-size:8px;letter-spacing:1.7px}h1{font-size:24px;line-height:1.14;margin:12px 0 9px;letter-spacing:-.9px}.introduction>p{font-size:10px}.view-tools{top:auto;bottom:181px;right:14px;transform:none;border-radius:16px;padding:3px}.icon-button{width:42px;height:43px}.view-tools .icon-button{min-height:43px}.bottom-bar{bottom:max(18px,env(safe-area-inset-bottom));left:18px;right:18px;height:93px}.mode-control{padding:5px;border-radius:17px}.mode-control button{min-width:137px;height:48px;font-size:13px}.gesture-hint{font-size:9px;margin-top:12px}.help-card{padding:29px 25px}.help-card h2{font-size:26px}.keyboard-help{display:none}}
@media(max-width:600px){body:not([data-editor]) .bottom-bar{bottom:max(24px,env(safe-area-inset-bottom))}.credits-toggle{left:0;right:0;border-left:0;border-radius:0;text-align:center}.credits-card{padding:28px 20px 21px}.credits-card h2{font-size:25px;margin-bottom:22px}.credits-list p{grid-template-columns:1fr;gap:5px;padding:13px 14px}.credits-list strong{text-align:left;white-space:normal}}
@media(max-height:550px) and (orientation:landscape){.introduction{display:none}.topbar{padding:12px 20px}.view-tools{top:50%;bottom:auto;transform:translateY(-50%);right:15px}.bottom-bar{bottom:10px}.mode-control button{height:40px}.gesture-hint{display:none}.help-card{max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}}
/* Contrast palette: cool slate backdrop, sage terrain and pastel circulation. */
body{background:#526575}
.scene-background{background:radial-gradient(ellipse at 52% 43%,#899ba7 0%,#657b8b 62%,#495e70 100%)}


.freecam-toggle{position:absolute;top:max(20px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));min-height:44px;padding:10px 16px;background:var(--panel);border:1px solid var(--border);border-radius:14px;font-size:12px;font-weight:550}
.freecam-toggle:hover{background:#e9f0f5}.freecam-toggle[aria-pressed=true]{background:#dcecf7;color:#365b76}
.freecam-hint{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;width:max-content;max-width:calc(100% - 48px);margin:0;padding:14px 20px;border-radius:14px;background:var(--panel);border:1px solid var(--border);font-size:12px;line-height:1.6;pointer-events:none}.freecam-hint strong{font-weight:600}.freecam-hint span{color:var(--muted)}
.freecam-active .view-tools,.freecam-active .bottom-bar,.freecam-active .freecam-toggle{visibility:hidden}.freecam-active #scene{outline:none}
@media(hover:none),(pointer:coarse){.freecam-toggle,.freecam-hint{display:none}}
.editor-panel{position:absolute;right:20px;top:20px;bottom:20px;width:330px;display:flex;flex-direction:column;gap:14px;padding:22px;background:rgba(249,252,254,.96);border:1px solid var(--border);border-radius:20px;box-shadow:0 12px 40px #182d4430;overflow:auto}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.editor-kicker{font-size:9px;letter-spacing:1.8px;color:var(--muted)}.editor-heading h1{font-size:23px;letter-spacing:-.6px;margin:7px 0 0}.editor-heading a{color:#3d6987;font-size:12px;text-decoration:none;white-space:nowrap}.editor-help,.editor-footnote{font-size:12px;line-height:1.65;color:var(--muted);margin:0}.editor-footnote{font-size:11px}
#camera-form{display:grid;gap:10px}#camera-form label{font-size:12px;font-weight:600}#camera-name{min-width:0;width:100%;padding:12px;border:1px solid #b9cbd7;border-radius:10px;background:white;color:var(--ink);font:inherit;font-size:13px}#camera-name:focus{outline:2px solid #5796bd;outline-offset:2px}#camera-save{font-size:12px}#editor-status{font-size:12px;line-height:1.6;margin:0;min-height:38px;color:#3d6987;overflow-wrap:anywhere}#editor-status[data-error=true]{color:#a23636}
.editor-list-heading{display:flex;align-items:center;justify-content:space-between}.editor-list-heading h2{font-size:14px;margin:0}.editor-list-heading h2 span{margin-left:5px;color:var(--muted);font-weight:400}.editor-panel button:not(.primary-button){border:1px solid var(--border);border-radius:9px;background:#eaf1f6;padding:9px 11px;font-size:11px}.editor-panel button:not(.primary-button):hover{background:#dceaf3}#camera-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}#camera-list li{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px;border:1px solid var(--border);border-radius:12px;background:#fff}#camera-list li span{font-size:12px;overflow-wrap:anywhere;min-width:0}#camera-list li button{flex-shrink:0}.editor-empty{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 10px}
body[data-editor=camera] #viewer{right:370px}body[data-editor=camera] .view-tools{right:390px}body[data-editor=camera] .bottom-bar{right:400px}.freecam-active .editor-panel{visibility:hidden}.freecam-view .view-tools,.freecam-view .mode-control{visibility:hidden}body[data-editor=camera] .freecam-hint{left:calc((100% - 370px)/2);max-width:calc(100% - 410px);font-size:11px}
@media(max-width:850px){body[data-editor=camera] #viewer{right:0;bottom:45%;height:55%}body[data-editor=camera] .editor-panel{left:12px;right:12px;top:57%;bottom:12px;width:auto;padding:16px}body[data-editor=camera] .view-tools{right:15px;top:28%;bottom:auto}body[data-editor=camera] .bottom-bar{display:none}body[data-editor=camera] .freecam-hint{left:50%;bottom:47%;max-width:calc(100% - 30px)}.editor-heading h1{font-size:20px}}

.editor-panel{gap:12px}.editor-panel .editor-heading h1{margin:0}.editor-panel #editor-status{min-height:0}.editor-panel #editor-status:empty{display:none}
#camera-building{width:100%;padding:11px;border:1px solid #b9cbd7;border-radius:10px;background:white;color:var(--ink);font:inherit;font-size:13px}#camera-dirty{font-size:10px;color:#a46b26;font-weight:400;margin-left:6px}
#camera-palette{display:flex;gap:12px;padding:4px 1px}.editor-panel #camera-palette button{width:37px;height:37px;border-radius:50%;background:var(--swatch);border:3px solid #fff;box-shadow:0 0 0 1px #bfcdd5;padding:0}.editor-panel #camera-palette button[aria-pressed=true]{box-shadow:0 0 0 2px #314e63}.editor-panel #camera-palette button:hover{background:var(--swatch);transform:scale(1.06)}
.point-actions{display:flex;gap:8px;align-items:stretch}.point-actions .primary-button{flex:1;padding:12px 8px}.point-actions #camera-capture{white-space:nowrap;padding:10px;font-size:11px}
#camera-list{overflow:auto;min-height:95px;align-content:start;flex:1}#camera-list li{padding:3px;gap:2px}#camera-list li.selected{border-color:#648ca8;background:#e8f1f7}#camera-list li .point-open{flex:1;min-width:0;text-align:left;display:flex;align-items:center;gap:9px;background:transparent;border:0;padding:10px}#camera-list li .point-open i{width:8px;height:8px;border-radius:50%;flex-shrink:0}#camera-list li .point-delete{border:0;background:transparent;font-size:21px;line-height:1;color:#8395a0;padding:8px 10px}#camera-list li .point-delete:hover{color:#ae3939;background:#f9e5e5}#camera-list li.editor-empty{font-size:12px;padding:12px}
.field-label{font-size:12px;font-weight:600}.building-selection{display:flex;align-items:center;gap:8px;border:1px solid #b9cbd7;border-radius:10px;background:#fff;padding:4px 6px 4px 12px;min-height:43px}.building-selection #camera-building{border:0;background:none;padding:0;flex:1;min-width:0;font-size:12px;color:var(--muted)}.editor-panel #camera-building-clear{border:0;background:transparent;font-size:20px;padding:3px 9px}.editor-panel #camera-building-clear:hover{background:#f9e5e5;color:#ae3939}#scene.building-hover{cursor:pointer}#scene.building-hover:active{cursor:grabbing}
.editor-tabs{display:flex;gap:8px}.editor-tabs button{flex:1}.editor-tabs button[aria-pressed=true]{background:#cddfeb!important;border-color:#7499b4!important}.editor-section{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}.editor-section>button,.editor-section>div,.editor-section>form{flex-shrink:0}#door-panel input{width:100%;min-width:0;border:1px solid #b9cbd7;border-radius:8px;background:#fff;padding:9px;font:inherit;font-size:12px;color:var(--ink)}#door-panel label,#door-building{font-size:12px}.door-sizes{display:flex;gap:12px}.door-sizes label{flex:1;min-width:0;display:grid;gap:5px}#door-status{font-size:12px;margin:0;color:#426c84}#door-status:empty{display:none}#door-status[data-error=true]{color:#a23636}#door-list{list-style:none;display:grid;align-content:start;gap:6px;padding:0;margin:0;overflow:auto;min-height:70px;flex:1}#door-list li{display:flex;border:1px solid var(--border);border-radius:9px}#door-list li.selected{border-color:#ec8b43;background:#fff2d7}#door-list li button:first-child{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}#door-list li button{background:transparent;border:0}#scene.door-placement{cursor:crosshair}
/* GPS reference-point calibration tool. */
body[data-editor=gps] #viewer{right:370px}
body[data-editor=gps] .view-tools{right:390px}
body[data-editor=gps] .bottom-bar{right:400px}
.gps-panel{z-index:4}
.gps-panel h2{font-size:14px;margin:0}
.gps-panel input{width:100%;min-width:0;border:1px solid #b9cbd7;border-radius:9px;background:#fff;padding:10px;font:inherit;font-size:12px;color:var(--ink)}
.gps-panel label{font-size:12px;font-weight:600}
.gps-live-card,.gps-add-card,.gps-calibration-card{display:grid;gap:9px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}
.gps-live-card p,.gps-calibration-card p{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}
#gps-status[data-error=true],#gps-save-status[data-error=true]{color:#a23636}
.gps-fix-dot{width:9px;height:9px;border-radius:50%;background:#b6c1c8;box-shadow:0 0 0 3px #edf1f3}
.gps-fix-dot[data-active=true]{background:#2f9d70;box-shadow:0 0 0 3px #d8f0e6}
.gps-coordinates{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:0}
.gps-coordinates div{min-width:0}.gps-coordinates dt{font-size:9px;color:var(--muted)}.gps-coordinates dd{margin:3px 0 0;font-size:10px;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.gps-add-card h2{margin-bottom:2px}.gps-add-card .primary-button{min-height:42px;padding:10px;font-size:11px}
.gps-warning{padding:10px;border-radius:9px;background:#fff0d5;color:#80591e;font-size:11px;line-height:1.5}
#gps-calibration-state{font-size:10px;color:#6f8492}#gps-calibration-state[data-state=calibrated]{color:#247552}
#gps-current-map{padding-top:7px;border-top:1px solid var(--border)}
.gps-osm-link{display:block;padding:9px 10px;border-radius:8px;background:#e7f0f5;color:#365f77;text-align:center;text-decoration:none;font-size:10px;font-weight:600}
#gps-list{list-style:none;display:grid;align-content:start;gap:6px;padding:0;margin:0;overflow:auto;min-height:70px;flex:1}
#gps-list li{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:9px;background:#fff;padding:4px}
#gps-list li>div{display:grid;gap:3px;flex:1;min-width:0;padding:6px}#gps-list li strong{font-size:11px;overflow-wrap:anywhere}#gps-list li span{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums}
#gps-list li>button{border:0;background:transparent;font-size:20px;color:#8797a1;padding:7px 10px}#gps-list li>button:hover{color:#ae3939;background:#f9e5e5}
#gps-list li.editor-empty{padding:12px;font-size:12px;color:var(--muted)}
#gps-save-status{min-height:16px;margin:0;font-size:11px;line-height:1.45;color:#426c84}
#gps-map-markers{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.gps-map-pin{position:absolute;left:0;top:0;will-change:transform;filter:drop-shadow(0 2px 3px #15263255)}
.gps-reference-pin{display:grid;place-items:center;width:25px;height:25px;border:2px solid #fff;border-radius:50% 50% 50% 0;background:#ef8b3f;color:#fff;font-size:10px;font-weight:700;transform-origin:bottom center}
.gps-reference-pin:after{content:"";position:absolute;inset:-7px;border-radius:50%;border:1px solid #ef8b3f66}
.gps-current-pin{display:flex;align-items:center;gap:7px}.gps-current-pin i{display:block;width:19px;height:19px;border:4px solid #fff;border-radius:50%;background:#1687d9;box-shadow:0 0 0 2px #1687d966}.gps-current-pin b{padding:4px 7px;border-radius:7px;background:#fff;color:#24516e;font-size:10px;white-space:nowrap}
#scene.gps-placement{cursor:crosshair}#scene.gps-placement:active{cursor:crosshair}
.editor-footnote a{color:#3d6987}
@media(max-width:850px){body[data-editor=gps] #viewer{right:0;bottom:47%;height:53%}body[data-editor=gps] .editor-panel{left:12px;right:12px;top:55%;bottom:12px;width:auto;padding:16px}body[data-editor=gps] .view-tools{right:15px;top:27%;bottom:auto}body[data-editor=gps] .bottom-bar{display:none}.gps-panel{overflow:auto}.gps-live-card,.gps-add-card,.gps-calibration-card{padding:10px}}
/* Public live-location marker. */
.location-toggle{position:absolute;z-index:8;left:max(20px,env(safe-area-inset-left));top:max(20px,env(safe-area-inset-top));background:var(--panel);border:1px solid var(--border);box-shadow:0 5px 20px #233c4d20;color:inherit;text-decoration:none}
.location-toggle.is-active{background:#dceef8;color:#176b9f}.location-toggle.is-waiting svg{animation:spin 1s linear infinite}
.location-toggle.is-awake:after{content:"";position:absolute;right:5px;bottom:5px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#2f9d70;box-shadow:0 0 0 1px #2f9d7066}
@media(max-width:600px){.location-toggle{left:max(14px,env(safe-area-inset-left));top:max(14px,env(safe-area-inset-top));width:43px;height:43px}}

.scene-background:after{content:"";position:absolute;inset:0;background:#07121c;opacity:var(--editor-focus-shade,0)}

/* Protected live-location dashboard and profile editor. */
.presence-panel{position:absolute;z-index:6;right:18px;top:18px;bottom:18px;width:360px;display:flex;flex-direction:column;gap:18px;padding:22px;background:rgba(249,252,254,.97);border:1px solid var(--border);border-radius:21px;box-shadow:0 12px 45px #182d4433;overflow:auto}.presence-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.presence-panel-heading span{font-size:9px;letter-spacing:1.8px;color:var(--muted)}.presence-panel-heading h1{font-size:24px;letter-spacing:-.7px;margin:4px 0 0}.presence-panel-heading a,.mobile-test-link{font-size:11px;color:#3d6987;text-decoration:none;padding:7px 0}.presence-help{font-size:11px;line-height:1.55;color:var(--muted);margin:0}.presence-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.presence-section-heading h2{font-size:13px;margin:0}.presence-section-heading span{font-size:10px;color:#6d8391;background:#e8f0f5;border-radius:10px;padding:3px 7px}.presence-users{display:grid;gap:7px}.presence-users>p{font-size:11px;color:var(--muted);margin:0}.presence-user{display:flex;align-items:center;gap:10px;padding:9px;background:#fff;border:1px solid var(--border);border-radius:12px}.presence-avatar{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;overflow:hidden;background:var(--profile-color,#7792a4);color:#fff;border:2px solid #fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--profile-color,#7792a4) 35%,transparent)}.presence-avatar img{width:100%;height:100%;object-fit:cover}.presence-avatar span{font-size:10px;font-weight:700}.presence-user>div:last-child{display:grid;gap:3px;min-width:0}.presence-user strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.presence-user small{font-size:9px;color:var(--muted)}.presence-profiles{display:grid;gap:9px}.profile-form{display:grid;gap:9px;padding:11px;border:1px solid var(--border);border-radius:13px;background:#fff}.profile-form-head{display:flex;align-items:center;gap:10px;--profile-color:#7792a4}.profile-form-head strong{font-size:11px}.profile-form label{display:grid;gap:4px;font-size:9px;color:#647c8b;font-weight:600}.profile-form label small{font-weight:400}.profile-form input{min-width:0;width:100%;padding:8px;border:1px solid #bdccd5;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.profile-fields{display:grid;grid-template-columns:80px 1fr;gap:8px}.profile-form input[type=color]{height:34px;padding:3px}.profile-form input[type=file]{padding:6px;font-size:9px}.profile-form .remove-photo{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:6px}.profile-form .remove-photo input{width:auto}.profile-form button{border:0;border-radius:9px;background:#54778f;color:#fff;padding:9px;font-size:10px}.profile-status{font-size:10px;color:#3d6987;margin:0}.profile-status[data-error=true]{color:#a23636}.mobile-test-link{display:block;text-align:center;padding:11px;border:1px solid #b9cbd7;border-radius:10px;background:#fff}body[data-editor=live] #viewer{right:396px}body[data-editor=live] .view-tools{right:416px}body[data-editor=live] .bottom-bar{right:416px}
@media(max-width:850px){body[data-editor=live]{overflow:auto}body[data-editor=live] #viewer{right:0;bottom:auto;height:48dvh}body[data-editor=live] .presence-panel{position:absolute;left:10px;right:10px;top:49dvh;bottom:auto;width:auto;max-height:none;margin-bottom:10px;padding:17px}body[data-editor=live] .view-tools{right:12px;top:24dvh}body[data-editor=live] .bottom-bar{display:none}}
