#tourRoot{position:fixed;inset:0;z-index:1000;height:100%;height:100dvh;background:#e4edf3;color:#17344c;font:15px/1.4 system-ui,sans-serif;isolation:isolate}#tourRoot *{box-sizing:border-box}#tourRoot [hidden]{display:none!important}#tourRoot button,#tourRoot input,#tourRoot textarea,#tourRoot select{font:inherit}#tourRoot button{cursor:pointer;min-height:44px;border:0;border-radius:14px;background:#fff;color:#17344c;padding:10px 14px;box-shadow:0 3px 14px #18394b1c}#tourRoot button:disabled{opacity:.5}#tourRoot button:focus-visible{outline:3px solid #2488dd;outline-offset:2px}.tour-scene,.tour-targets{position:absolute;inset:0}.tour-scene canvas{display:block;width:100%;height:100%}.tour-targets{pointer-events:none}#tourRoot .tour-waypoint,#tourRoot .tour-defect-marker{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px;border-radius:50%;padding:4px;background:#ffffffd9;border:2px solid #2479bc;box-shadow:0 0 0 5px #fff2;font-weight:750}#tourRoot .tour-defect-marker{color:white;border:2px solid #fff;min-width:40px;min-height:40px}.tour-defect-marker.highlight{outline:5px solid #f3ce46}.tour-top{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;align-items:start;gap:7px}.tour-top .tour-icon{width:44px;flex:0 0 44px;font-size:25px;padding:2px!important}.tour-place{flex:1;text-align:left;min-width:0;padding:7px 11px!important;background:#fffc!important}.tour-place b,.tour-place span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tour-place b{font-size:14px}.tour-place span{font-size:11px;color:#587186}.tour-sync{position:absolute;top:calc(max(10px,env(safe-area-inset-top)) + 60px);right:max(10px,env(safe-area-inset-right));font-size:11px!important;padding:4px 10px!important;min-height:30px!important;border-radius:20px!important;background:#edf8f0e8!important}.tour-sync.pending{background:#fff1cfed!important}.tour-notice{position:absolute;top:calc(max(10px,env(safe-area-inset-top)) + 100px);left:16px;right:16px;max-width:500px;margin:auto;text-align:center;font-size:12px;background:#183749c9;color:#fff;padding:9px 13px;border-radius:14px;pointer-events:none}.tour-add{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));width:62px;height:62px!important;font-size:34px!important;color:white!important;background:#1869bd!important;border-radius:50%!important}.tour-add.text{font-size:14px!important}.tour-map-preview{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:calc(20px + env(safe-area-inset-bottom));width:144px;height:85px;padding:5px!important;text-align:left;overflow:hidden;background:#ffffffea!important}.tour-map-preview span{font-size:10px;display:block;padding-left:4px}.tour-map-preview svg{width:100%;height:62px}.tour-unavailable{position:absolute;left:24px;right:24px;top:33%;max-width:400px;margin:auto}.tour-unavailable h2{font-size:20px;margin:0 0 8px}.tour-unavailable p{font-size:14px}.tour-sheet{position:absolute;inset:auto 0 0;max-height:calc(100% - 75px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain;background:#f8fbfd;border-radius:22px 22px 0 0;padding:0 18px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -12px 45px #18374933;z-index:6}.tour-sheet-head{position:sticky;top:0;background:#f8fbfd;display:flex;align-items:center;justify-content:space-between;z-index:8;padding:5px 0}.tour-sheet-head button{box-shadow:none!important;font-size:25px!important;width:44px;padding:3px!important}.tour-sheet label{display:block;margin:12px 0;font-size:13px;font-weight:650}.tour-sheet textarea,.tour-sheet input,.tour-sheet select{display:block;width:100%;margin-top:6px;border:1px solid #c3d1dc;border-radius:10px;padding:11px;background:white;color:#17344c;font-size:16px!important;min-height:44px}.tour-sheet textarea{resize:vertical}.tour-actions{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}.tour-actions button{flex:1}.tour-help{font-size:12px;color:#5b7282;margin:12px 0}.tour-primary{width:100%;background:#1769bd!important;color:#fff!important;font-weight:700!important}.tour-capture-code{font-size:12px;margin:5px 0 12px}.tour-photo-list{display:flex;gap:8px;overflow-x:auto;margin:10px 0}.tour-photo-list img{height:100px;max-width:180px;border-radius:10px;object-fit:cover}.tour-photo{position:relative;flex:none}.tour-photo button{position:absolute;top:0;right:0;width:44px;padding:2px!important;font-size:24px!important;background:#fff9!important;box-shadow:none!important}.tour-map-large{position:relative;width:100%;aspect-ratio:21/8;margin:25px 0 12px}.tour-map-large svg{width:100%;height:100%;display:block}.tour-map-point{position:absolute;transform:translate(-50%,-50%);border:2px solid #226fb4!important;min-width:44px;min-height:44px;padding:0!important;box-shadow:none!important;border-radius:50%!important;background:#f7fbffe8!important;font-size:12px!important;font-weight:700!important}.tour-map-point.here{background:#1c6ebc!important;color:white!important}.tour-map-point small{position:absolute;right:-6px;top:-9px;border-radius:12px;color:#fff;background:#cb3540;padding:2px 5px;min-width:18px}.tour-filters{display:flex;gap:6px;overflow-x:auto;padding:7px 0}.tour-filters button{white-space:nowrap;box-shadow:none!important;border:1px solid #d3dfe8!important;font-size:12px!important}.tour-filters button.on{background:#1d6db8!important;color:white!important}.tour-defects button,.tour-levels button{display:block;width:100%;text-align:left;margin:8px 0}.tour-defects b,.tour-defects span,.tour-defects small,.tour-levels small{display:block}.tour-defects span{max-height:3em;overflow:hidden;font-size:14px}.tour-defects small,.tour-levels small{font-size:11px;color:#667f90;margin-top:4px}.tour-levels button{box-shadow:none!important;border-bottom:1px solid #dce5eb!important}.tour-sheet summary{font-size:12px;padding:8px 0;cursor:pointer}body.tourOpen{overflow:hidden}#bTour{background:#e6f1fc;border-color:#7ea9cd;font-weight:650}
@media(min-width:700px){.tour-sheet{left:50%;transform:translateX(-50%);width:620px;max-height:85%}.tour-top{right:auto;width:430px}.tour-sync{top:max(14px,env(safe-area-inset-top));right:16px}.tour-notice{top:86px}.tour-map-preview{width:210px;height:115px}.tour-map-preview svg{height:90px}}
@media(max-width:350px){.tour-top{gap:5px}.tour-place b{font-size:12px}.tour-place span{font-size:10px}.tour-sheet{padding-left:12px;padding-right:12px}.tour-map-preview{width:125px;height:78px}.tour-map-preview svg{height:56px}.tour-map-large{margin:28px -2px 15px;width:calc(100% + 4px)}.tour-map-point{min-width:44px!important;min-height:44px!important;font-size:11px!important}.tour-notice{font-size:11px}.tour-add{width:58px;height:58px!important}}
@media(max-height:500px) and (min-width:500px){.tour-notice{top:75px;max-width:45%;left:auto;right:12px}.tour-sync{top:12px;right:14px}.tour-top{width:370px;right:auto}.tour-sheet{left:auto;right:0;transform:none;width:48%;max-height:100%;border-radius:18px 0 0 18px}.tour-map-preview{width:130px;height:75px;bottom:12px}.tour-add{bottom:12px}.tour-map-large{margin:25px 0}.tour-unavailable{top:35%;max-width:300px;right:auto}.tour-unavailable h2{font-size:16px}}

#tourRoot .tour-primary{position:sticky;bottom:8px;z-index:9;box-shadow:0 0 0 7px #f8fbfd,0 3px 14px #18394b35}

.tour-auto-place{padding:12px 14px;background:#eaf1f6;border-radius:12px;font-size:13px;margin:12px 0}.tour-auto-place b,.tour-auto-place span{display:block}.tour-auto-place span{margin-top:4px;color:#4d6578}#tourRoot #tFallbackCapture{display:block;background:#1769bd;color:#fff;margin-top:12px;width:100%}

.tour-map-tools{display:flex;gap:8px;margin:10px 0}.tour-map-tools button{flex:1;font-size:12px!important}.tour-map-stage{position:relative;height:clamp(210px,43dvh,410px);width:100%;overflow:hidden;touch-action:none;background:#edf3f8;border-radius:14px}.tour-map-stage svg,.tour-map-points{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.tour-map-stage .tour-map-point{pointer-events:none}.tour-map-stage .tour-map-point:focus-visible{pointer-events:auto}.tour-map-stage svg{display:block}.tour-map-stage .tour-map-point.here{pointer-events:none}.tour-sheet:has(#tFloorMap){padding-bottom:max(10px,env(safe-area-inset-bottom))}@media(max-height:500px) and (min-width:500px){.tour-map-stage{height:150px}}

#tourRoot .tour-arrow{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);width:62px;height:60px;display:grid;place-items:center;background:transparent;border:0;border-radius:14px;box-shadow:none;padding:4px;color:#fff;filter:drop-shadow(0 1px 2px #28495f)}
.tour-chevron{position:relative;display:block;width:16px;height:16px;border-top:3px solid currentColor;border-left:3px solid currentColor;transform:translateY(6px) rotate(45deg);pointer-events:none}
.tour-chevron:after{content:'';position:absolute;top:-9px;left:-9px;width:16px;height:16px;border-top:3px solid currentColor;border-left:3px solid currentColor}
.tour-room-labels{position:absolute;inset:0;pointer-events:none}.tour-room-labels span{position:absolute;transform:translate(-50%,-50%);font-size:11px;white-space:nowrap;color:#17344c;background:#f8fbfde8;border-radius:4px;padding:1px 3px}
@media(max-height:500px) and (min-width:500px){.tour-map-stage{height:clamp(120px,38dvh,200px)}}

#tourRoot .tour-forward{left:auto;top:auto;right:max(24px,env(safe-area-inset-right));bottom:calc(28px + env(safe-area-inset-bottom));transform:none;width:64px;height:64px;z-index:2;touch-action:none}
#tourRoot .tour-forward:disabled{opacity:.22}
@media(max-height:500px){#tourRoot .tour-forward{bottom:calc(14px + env(safe-area-inset-bottom));right:max(20px,env(safe-area-inset-right))}}

@media(max-height:650px) and (max-width:500px){.tour-map-stage{height:clamp(140px,35dvh,210px)}}

#tourRoot .tour-targets{touch-action:none}

/* One site palette; quick capture layout and fields unchanged. */
#tourRoot{color:var(--fg);font-family:var(--sans)}
#tourRoot button{color:var(--fg);background:var(--panel);border-radius:8px}
#tourRoot .tour-primary,#tourRoot #tFallbackCapture{background:var(--accent)!important;color:var(--accent-fg)!important}
#tourRoot .tour-sheet,#tourRoot .tour-sheet-head{background:var(--bg)}
#tourRoot .tour-sheet input,#tourRoot .tour-sheet textarea,#tourRoot .tour-sheet select{background:var(--panel);color:var(--fg);border-color:var(--line);border-radius:8px}
#tourRoot .tour-help,#tourRoot .tour-defects small{color:var(--muted)}
#tourRoot .tour-filters button.on{background:var(--accent)!important;color:var(--accent-fg)!important}
#tourRoot .tour-forward{background:transparent;color:white;border:0}
#tourRoot .tour-primary{box-shadow:0 0 0 7px var(--bg),var(--shadow)}
