.live-ar{position:fixed;inset:0;z-index:1000000;width:100%;height:100dvh;margin:0;overflow:hidden;isolation:isolate;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:#fff;color-scheme:dark;background:#172b2a}
.live-ar *{box-sizing:border-box}.live-ar [hidden]{display:none!important}.live-ar button{font:inherit;color:inherit;letter-spacing:normal;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.live-ar button:disabled{opacity:.3;cursor:default}.live-ar button:focus-visible,.live-ar input:focus-visible,.live-ar [role=slider]:focus-visible,.live-ar summary:focus-visible{outline:3px solid #c8f4ed;outline-offset:3px}
.live-ar svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.live-ar .glass{background:linear-gradient(135deg,#ffffff20,#ffffff08),#20242172;border:1px solid #ffffff3d;box-shadow:inset 0 1px 0 #ffffff2b,inset 0 -1px 0 #0000000d,0 12px 36px #00000024;backdrop-filter:blur(28px) saturate(1.2);-webkit-backdrop-filter:blur(28px) saturate(1.2)}
.live-ar #live-ar-ar-host,.live-ar #live-ar-camera{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.live-ar #live-ar-ar-host .gum-focus-layer{display:none}
/* The SDK writes inline dimensions; the camera must still fill its host. */
.live-ar #live-ar-camera{display:block;width:100%!important;height:100%!important;max-width:none;max-height:none}
.live-ar header{position:absolute;z-index:4;inset:calc(env(safe-area-inset-top) + 16px) max(20px,env(safe-area-inset-right)) auto max(20px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}.live-ar header>*{pointer-events:auto}.live-ar .icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center}.live-ar #live-ar-fullscreen{margin-left:auto}
.live-ar .context{position:absolute;z-index:5;left:max(20px,env(safe-area-inset-left));top:calc(env(safe-area-inset-top) + 78px);width:44px;border-radius:23px;overflow:hidden}.live-ar .context summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;cursor:pointer}.live-ar .context summary::-webkit-details-marker{display:none}.live-ar .context .info-symbol{width:20px;height:20px}.live-ar .context:not([open]) .context-heading,.live-ar .context:not([open]) .disclosure{display:none}.live-ar .context[open]{width:min(240px,calc(100% - 88px));max-height:55dvh;overflow:auto}.live-ar .context[open] summary{padding:14px;justify-content:flex-start}.live-ar .context-heading{min-width:0;flex:1;display:grid;gap:7px}.live-ar .context-scenario{font-size:.75rem;line-height:1.4;color:#fffd}.live-ar .context strong{font-size:1rem;font-weight:500;line-height:1.35}.live-ar .disclosure{width:16px;height:16px;opacity:.75;transform:rotate(90deg)}.live-ar .context p{margin:0;padding:0 18px 20px;font-size:.875rem;line-height:1.6;color:#fffffff0}.live-ar .gesture-help{border-top:1px solid #ffffff26;padding-top:12px!important}
/* A quiet chapter ruler at the left of the scene. Its 48px hit area stays usable. */
.live-ar .scene-selector{position:absolute;z-index:3;left:max(16px,env(safe-area-inset-left));top:50%;transform:translateY(-50%);width:48px;user-select:none;-webkit-user-select:none;text-shadow:0 1px 5px #000,0 0 16px #0008}
.live-ar .scene-caption{position:absolute;bottom:calc(100% + 10px);left:8px;width:min(158px,40vw);pointer-events:none;display:grid;gap:5px}.live-ar #live-ar-counter{font-size:.75rem;font-variant-numeric:tabular-nums;color:#fffd}.live-ar #live-ar-chapter-name{font-size:.875rem;font-weight:500;line-height:1.35;text-wrap:balance}
.live-ar .scene-scrubber{position:relative;width:48px;height:clamp(150px,29dvh,248px);touch-action:none;cursor:ns-resize;--scene-position:0%;border-radius:24px;background:linear-gradient(90deg,#0000000a,transparent);-webkit-tap-highlight-color:transparent}
.live-ar .scene-ticks{position:absolute;inset:14px 0;display:flex;flex-direction:column;justify-content:space-between;align-items:center;pointer-events:none}.live-ar .scene-ticks i{display:block;width:10px;height:1px;background:#ffffff9c;box-shadow:0 1px 3px #0008}.live-ar .scene-ticks i:nth-child(3n+1),.live-ar .scene-ticks i:last-child{width:18px;background:#ffffffd9}
.live-ar .scene-thumb{position:absolute;left:8px;top:calc(14px + (100% - 28px)*var(--scene-fraction,0));width:32px;height:13px;transform:translateY(-50%);border:2px solid #fff;border-radius:10px;background:#ffffff16;box-shadow:0 1px 5px #0008,inset 0 0 4px #0003;pointer-events:none;transition:top .18s ease,scale .12s ease}.live-ar .scene-scrubber[data-dragging=true] .scene-thumb{scale:1.12;transition:top .08s ease,scale .12s ease}
/* The bottom dock contains only the three playback controls. */
.live-ar footer{position:absolute;z-index:4;bottom:calc(env(safe-area-inset-bottom) + 18px);left:50%;transform:translateX(-50%);width:min(228px,calc(100% - 40px))}.live-ar .player{border-radius:32px;padding:5px 9px}.live-ar .transport{margin:0;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:7px;padding:0;touch-action:pan-y;user-select:none;--drag:0px}.live-ar .transport button{border:0;background:none;min-height:44px;border-radius:24px;display:grid;place-items:center;transition:background .18s,scale .18s}.live-ar .transport button:hover:not(:disabled){background:#ffffff20}.live-ar .transport button:active:not(:disabled){scale:.93;background:#ffffff30}.live-ar .transport #live-ar-play{background:#ffffff2b;color:#fff;box-shadow:inset 0 1px 0 #ffffff24;transform:translateX(var(--drag))}.live-ar .transport svg{width:20px;height:20px}.live-ar .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.live-ar .status{position:absolute;z-index:4;left:50%;bottom:calc(env(safe-area-inset-bottom) + 100px);transform:translateX(-50%);border-radius:20px;padding:9px 14px;width:max-content;max-width:calc(100% - 60px);text-align:center;font-size:.875rem;line-height:1.4;pointer-events:none}
.live-ar .loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;background:#172b2a;text-align:center;padding:60px 28px}.live-ar .loading>span{width:28px;height:28px;border-radius:50%;border:2px solid #ffffff35;border-top-color:#fff;animation:ar-loading 1s linear infinite}.live-ar .loading p{font-size:1rem;line-height:1.5;max-width:360px}.live-ar .loading button{padding:14px 26px;border-radius:28px}.live-ar[data-placed=true] .player{animation:ar-arrive .4s ease-out}
@media(max-height:550px){.live-ar header{top:calc(env(safe-area-inset-top) + 8px)}.live-ar .context{top:68px}.live-ar .context[open]{max-height:calc(100dvh - 90px)}.live-ar .scene-selector{top:57%}.live-ar .scene-caption{bottom:calc(100% + 6px);left:48px;width:180px}.live-ar .scene-scrubber{height:150px}.live-ar footer{bottom:calc(env(safe-area-inset-bottom) + 8px)}}
@media(prefers-reduced-transparency:reduce){.live-ar .glass{background:#293b35}}@media(prefers-reduced-motion:reduce){.live-ar *{transition:none!important;animation:none!important}}@media(prefers-contrast:more){.live-ar .glass{background:#182721ed;border-color:#fff}.live-ar .scene-selector{background:#182721ed;border-radius:24px}}
body.spatial-open{overflow:hidden;overscroll-behavior:none}@keyframes ar-loading{to{transform:rotate(360deg)}}@keyframes ar-arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}

/* A single compact dock: the current step and three explicit controls. */
.live-ar .step-caption{display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 5px 10px;text-align:center}
.live-ar .step-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-ar footer{width:min(280px,calc(100% - 40px))}
.live-ar .player{border-radius:26px;padding:5px 9px 8px}
.live-ar .status{bottom:calc(env(safe-area-inset-bottom) + 132px)}

/* Treatment picker sits with playback, within the AR thumb zone. */
.live-ar footer{width:min(370px,calc(100% - 24px))}
.live-ar .player{padding:8px;border-radius:28px}
.live-ar .treatment-switcher{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px;border:1px solid #ffffff2e;border-radius:22px;background:#ffffff0b;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;--switch-offset:0px}
.live-ar .treatment-switcher::before{content:'';position:absolute;z-index:0;inset:4px auto 4px 4px;width:calc((100% - 8px)/3);border-radius:17px;background:#d5ece4;box-shadow:0 3px 12px #0002;transform:translate3d(var(--switch-offset),0,0);transition:transform .56s cubic-bezier(.16,1,.3,1)}
.live-ar .treatment-switcher[data-dragging=true]::before{transition:none}
.live-ar .treatment-switcher button{position:relative;z-index:1;min-width:0;min-height:42px;padding:5px 3px;border:0;border-radius:17px;background:transparent;color:#ffffffed;font-size:11px;line-height:1.15;text-align:center;white-space:nowrap;transition:color .25s,scale .4s cubic-bezier(.16,1,.3,1)}
.live-ar .treatment-switcher button[aria-checked=true]{color:#183d36;font-weight:600;scale:1.025}
.live-ar .step-caption{padding:7px 5px 8px}
.live-ar .status{bottom:calc(env(safe-area-inset-bottom) + 180px)}
@media(max-height:550px){.live-ar .treatment-switcher button{min-height:36px;font-size:10px}.live-ar .step-caption{padding:4px 5px 6px}.live-ar .status{bottom:calc(env(safe-area-inset-bottom) + 158px)}}

/* Separate chapter title, spatial player and treatment picker. */
.live-ar footer{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(370px,calc(100% - 28px))}
.live-ar .step-caption{display:flex;align-items:baseline;justify-content:center;gap:9px;width:100%;padding:0 10px 2px;text-align:center;color:#fff;text-shadow:0 1px 8px #000b;pointer-events:none}
.live-ar .step-caption span{font-size:12px;font-variant-numeric:tabular-nums;color:#ffffffd9}
.live-ar .step-caption strong{max-width:75%;font-size:15px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-ar .player{width:min(300px,100%);padding:4px 10px 2px;border-radius:27px;background:linear-gradient(145deg,#ffffff32,#ffffff0a),#252c2b70;border-color:#ffffff4a;box-shadow:inset 0 1px 0 #ffffff35,0 10px 28px #0003;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4)}
.live-ar .transport{gap:10px}
.live-ar .transport button{min-height:44px;border-radius:24px}
.live-ar .transport #live-ar-play{background:#e3f2ee;color:#173b35;box-shadow:0 2px 10px #0002,inset 0 1px 0 #fff}
.live-ar .transport #live-ar-play:active:not(:disabled){background:#cce8df}
.live-ar .transport svg{width:19px;height:19px}
.live-ar .player-progress{height:44px;padding:0 8px 2px;display:flex;align-items:center}
.live-ar .player-progress input{appearance:none;-webkit-appearance:none;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;touch-action:pan-x;--step-progress:0%}
.live-ar .player-progress input::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,#d8eee8 0 var(--step-progress),#ffffff70 var(--step-progress) 100%)}
.live-ar .player-progress input::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border:1px solid #fff;border-radius:50%;background:#e9f5f1;box-shadow:0 1px 5px #0005}
.live-ar .player-progress input::-moz-range-track{height:3px;border-radius:3px;background:#ffffff70}
.live-ar .player-progress input::-moz-range-progress{height:3px;border-radius:3px;background:#d8eee8}
.live-ar .player-progress input::-moz-range-thumb{width:10px;height:10px;border:1px solid #fff;border-radius:50%;background:#e9f5f1;box-shadow:0 1px 5px #0005}
.live-ar .player:has(#live-ar-play:disabled) .player-progress{opacity:.45}
.live-ar .player{display:flex;align-items:center;gap:6px;width:min(260px,100%);padding:4px 8px;border-radius:27px;white-space:nowrap}
.live-ar .transport{flex:0 0 auto;width:auto;grid-template-columns:repeat(3,44px);gap:4px;white-space:nowrap}
.live-ar .transport button{width:44px;min-width:44px;min-height:44px;padding:0}
.live-ar .player-progress{flex:1 1 auto;min-width:42px;height:44px;padding:0 3px;overflow:hidden}
.live-ar .player-progress input{display:block;width:100%;min-width:36px;max-width:100%;height:44px}
.live-ar .player + .treatment-switcher{margin-top:8px}
.live-ar .coaching{position:absolute;z-index:3;left:50%;top:calc(50% - 56px);transform:translate(-50%,-50%);width:min(270px,calc(100% - 76px));padding:12px 16px 14px;border-radius:24px;text-align:center;pointer-events:none;background:linear-gradient(145deg,#ffffff34,#ffffff10),#25302b7a;border-color:#ffffff55;box-shadow:inset 0 1px 0 #ffffff35,0 12px 32px #0003;backdrop-filter:blur(24px) saturate(1.35);-webkit-backdrop-filter:blur(24px) saturate(1.35)}
.live-ar .coaching-illustration{display:block;width:180px;height:112px;max-width:100%;margin:0 auto 4px;overflow:visible}
.live-ar .coaching-frame{fill:#ffffff08;stroke:#ffffffd9;stroke-width:1.5}
.live-ar .coaching-sweep{fill:none;stroke:#ffffffb8;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:3 6}
.live-ar .coaching-dot{fill:#e3f2ee}
.live-ar .coaching-phone{fill:#e3f2ee;stroke:#fff;stroke-width:1.3;filter:drop-shadow(0 2px 4px #0005);transform-box:fill-box;transform-origin:center;animation:ar-coach-sweep 2.4s cubic-bezier(.45,0,.55,1) infinite}
.live-ar .coaching-phone path{fill:none;stroke:#52746d;stroke-width:1.2;stroke-linecap:round}
.live-ar .coaching-title{margin:2px 0 3px;font-size:14px;font-weight:600;line-height:1.3}
.live-ar .coaching-detail{margin:0;color:#ffffffdc;font-size:12px;line-height:1.4}
@keyframes ar-coach-sweep{0%,100%{transform:translateX(-34px) rotate(-9deg)}50%{transform:translateX(34px) rotate(9deg)}}
@media(max-height:550px){.live-ar .player + .treatment-switcher{margin-top:5px}.live-ar .coaching{top:calc(50% - 28px);padding:8px 12px 10px}.live-ar .coaching-illustration{width:145px;height:88px}.live-ar .coaching-detail{font-size:11px}}
@media(prefers-reduced-motion:reduce){.live-ar .coaching-phone{animation:none;transform:translateX(0)}}
.live-ar .treatment-switcher{width:100%;padding:4px;border:1px solid #ffffff50;border-radius:25px;background:linear-gradient(145deg,#ffffff2a,#ffffff08),#252c2b72;box-shadow:inset 0 1px 0 #ffffff30,0 10px 28px #0003;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4)}
.live-ar .treatment-switcher::before{inset:4px auto 4px 4px;border-radius:20px;background:#d8eee8;box-shadow:0 2px 10px #0002}
.live-ar .treatment-switcher button{min-height:48px;font-size:13px;letter-spacing:.005em}
.live-ar .status{bottom:calc(env(safe-area-inset-bottom) + 222px)}
@media(max-height:550px){.live-ar footer{gap:5px}.live-ar .treatment-switcher button{min-height:40px;font-size:12px}.live-ar .player{padding-bottom:0}.live-ar .step-caption strong{font-size:13px}.live-ar .status{bottom:calc(env(safe-area-inset-bottom) + 188px)}}
@media(prefers-reduced-transparency:reduce){.live-ar .player,.live-ar .treatment-switcher{background:#293b35}}
@media(prefers-contrast:more){.live-ar .player,.live-ar .treatment-switcher{background:#182721ed;border-color:#fff}}
