.spatial-ar-start{position:absolute;z-index:40;left:14px;top:58px;min-height:40px;border:1px solid rgb(255 255 255 / 22%);border-radius:13px;padding:9px 12px;background:rgb(10 22 28 / 78%);color:#fff;font-size:10px;font-weight:900;box-shadow:0 8px 26px rgb(0 0 0 / 20%);backdrop-filter:blur(14px)}
.spatial-ar-start.supported{box-shadow:inset 0 0 0 1px rgb(61 153 104 / 55%),0 8px 26px rgb(0 0 0 / 20%)}
.spatial-ar-start.active{background:rgb(232 72 63 / 88%);border-color:rgb(255 255 255 / 35%)}
.spatial-ar-start:disabled{opacity:.45}
.spatial-surface-status{position:absolute;z-index:39;left:14px;top:106px;display:grid;gap:2px;max-width:245px;padding:8px 10px;border:1px solid rgb(255 255 255 / 14%);border-radius:12px;background:rgb(8 17 22 / 68%);color:#fff;pointer-events:none;backdrop-filter:blur(12px);box-shadow:0 8px 24px rgb(0 0 0 / 15%)}
.spatial-surface-status b{font-size:9px;letter-spacing:.05em}.spatial-surface-status span{font-size:8px;color:#d6e0e2;line-height:1.3}
.spatial-surface-status[data-mode="ready"] b,.spatial-surface-status[data-mode="anchored"] b{color:#85e0aa}.spatial-surface-status[data-mode="scanning"] b{color:#f2bf45}.spatial-surface-status[data-mode="error"] b,.spatial-surface-status[data-mode="unsupported"] b{color:#ff8d86}
.spatial-surface-guide{position:absolute;z-index:17;left:50%;top:46%;width:min(48vw,235px);aspect-ratio:4/3;translate:-50% -50%;display:none;border:2px solid rgb(242 191 69 / 88%);border-radius:24px;pointer-events:none;box-shadow:0 0 0 999px rgb(8 17 22 / 3%),0 0 26px rgb(242 191 69 / 22%)}
.spatial-surface-guide.visible{display:block;animation:spatialGuidePulse 1.4s ease-in-out infinite}.spatial-surface-guide[data-surface="wall"]{border-color:#ff625b}.spatial-surface-guide[data-surface="floor"]{border-color:#54d78a}.spatial-surface-guide[data-surface="ceiling"]{border-color:#6697f2}
.spatial-surface-guide::after{content:"SURFACE";position:absolute;left:50%;bottom:-28px;translate:-50% 0;padding:5px 8px;border-radius:999px;background:rgb(8 17 22 / 78%);color:#fff;font-size:8px;font-weight:900;letter-spacing:.07em;white-space:nowrap}
.spatial-surface-guide[data-surface="wall"]::after{content:"MUR"}.spatial-surface-guide[data-surface="floor"]::after{content:"SOL"}.spatial-surface-guide[data-surface="ceiling"]::after{content:"PLAFOND"}.spatial-surface-guide[data-surface="inclined"]::after{content:"SURFACE INCLINÉE"}
.spatial-xr-canvas{position:fixed;width:1px;height:1px;opacity:0;pointer-events:none}
#arScreen:xr-overlay{width:100vw;height:100vh;min-height:100vh;padding:0;background:transparent!important;overflow:hidden}
#arScreen:xr-overlay .camera-stage{width:100vw;height:100vh!important;min-height:100vh!important;max-height:none!important;background:transparent!important;border-radius:0!important}
#arScreen:xr-overlay #camera,#arScreen:xr-overlay .camera-fallback{display:none!important}
#arScreen:xr-overlay .camera-stage::before{background:linear-gradient(180deg,rgb(5 12 16 / 16%),transparent 20%,transparent 70%,rgb(5 12 16 / 24%))}
#arScreen:xr-overlay .surface-label{display:none}
#arScreen:xr-overlay .spatial-ar-start{top:max(14px,env(safe-area-inset-top));left:14px}
#arScreen:xr-overlay .spatial-surface-status{top:calc(max(14px,env(safe-area-inset-top)) + 48px)}
#arScreen:xr-overlay .ar-side-rail{top:48%}
#arScreen:xr-overlay .ar-distance-control{bottom:max(92px,calc(env(safe-area-inset-bottom) + 86px))}
#arScreen:xr-overlay .ar-record-button{bottom:max(18px,env(safe-area-inset-bottom))}
@keyframes spatialGuidePulse{50%{scale:1.025;box-shadow:0 0 0 999px rgb(8 17 22 / 3%),0 0 36px rgb(242 191 69 / 34%)}}
