.exit-ar-button{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:16px;z-index:1001;display:flex;align-items:center;gap:8px;padding:10px 20px;background:#f4433633;backdrop-filter:blur(10px);border:2px solid #f44336;border-radius:12px;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.exit-ar-button:hover{background:#f443364d;transform:translateY(-1px);box-shadow:0 4px 12px #f443364d}.exit-ar-button:active{transform:translateY(0)}.exit-icon{font-size:18px;line-height:1}.exit-label{text-transform:uppercase;letter-spacing:.5px}.exit-ar-button:focus{outline:none;box-shadow:0 0 0 3px #f4433666}@media (max-width: 768px){.exit-ar-button{padding:8px 16px;font-size:13px}.exit-icon{font-size:16px}}@media (max-width: 480px){.exit-ar-button{padding:6px 12px;font-size:12px;gap:6px}.exit-label{display:none}.exit-icon{font-size:20px}}@media (prefers-reduced-motion: reduce){.exit-ar-button:hover,.exit-ar-button:active{transform:none}}.photo-preview-overlay{position:fixed;inset:0;background-color:#000000d9;display:flex;align-items:center;justify-content:center;z-index:2000;animation:photoPreviewFadeIn .2s ease-out}@keyframes photoPreviewFadeIn{0%{opacity:0}to{opacity:1}}.photo-preview{display:flex;flex-direction:column;align-items:center;max-width:92vw;max-height:88vh}.photo-preview-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:8px 4px}.photo-preview-header h2{margin:0;font-size:18px;font-weight:600;color:#f1f5f9}.photo-preview-close{background:none;border:none;font-size:32px;color:#cbd5e1;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;line-height:1;transition:color .2s}.photo-preview-close:hover{color:#fff}.photo-preview-image{max-width:92vw;max-height:68vh;object-fit:contain;border-radius:12px;box-shadow:0 8px 32px #00000080;background-color:#000}.photo-preview-actions{display:flex;gap:16px;margin-top:16px}.photo-preview-button{padding:12px 28px;font-size:16px;font-weight:600;border:none;border-radius:25px;cursor:pointer;color:#fff;box-shadow:0 4px 6px #0000004d;transition:transform .15s,box-shadow .15s}.photo-preview-button:hover{transform:scale(1.04);box-shadow:0 6px 12px #0006}.photo-preview-button:disabled{opacity:.6;cursor:default;transform:none}.photo-preview-save{background-color:#3b82f6}.photo-preview-share{background-color:#22c55e}.loading-screen{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:1;transition:opacity .5s ease-out}.loading-screen-fade-out{opacity:0}.loading-content{display:flex;flex-direction:column;align-items:center;gap:24px;padding:40px;text-align:center}.loading-spinner{position:relative;width:80px;height:80px}.spinner-ring{position:absolute;width:100%;height:100%;border:3px solid transparent;border-top-color:#00d4ff;border-radius:50%;animation:spin 1.5s cubic-bezier(.5,0,.5,1) infinite}.spinner-ring:nth-child(1){animation-delay:-.45s;border-top-color:#00d4ff}.spinner-ring:nth-child(2){animation-delay:-.3s;border-top-color:#00a8ff;width:70%;height:70%;top:15%;left:15%}.spinner-ring:nth-child(3){animation-delay:-.15s;border-top-color:#08f;width:40%;height:40%;top:30%;left:30%}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-message{color:#fff;font-size:20px;font-weight:600;letter-spacing:.5px}.loading-dots{display:flex;gap:8px}.dot{width:8px;height:8px;background:#00d4ff;border-radius:50%;animation:bounce 1.4s infinite ease-in-out both}.dot:nth-child(1){animation-delay:-.32s}.dot:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.loading-progress{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(280px,72vw)}.loading-progress-track{width:100%;height:8px;background:#ffffff24;border-radius:999px;overflow:hidden}.loading-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#08f,#00d4ff);box-shadow:0 0 10px #00d4ff99;transition:width .25s ease-out;will-change:width}.loading-progress-pct{color:#ffffffd9;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.5px}.loading-progress-fill-error{background:linear-gradient(90deg,#b91c1c,#ef4444);box-shadow:0 0 10px #ef444499}.loading-message-error{color:#fca5a5;font-size:15px;font-weight:500;max-width:min(320px,80vw);line-height:1.4}.loading-hint{color:#fff9;font-size:14px;margin-top:8px;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.6}50%{opacity:1}}@media (max-width: 768px){.loading-content{padding:20px;gap:20px}.loading-spinner{width:60px;height:60px}.loading-message{font-size:18px}.loading-hint{font-size:13px}}@media (prefers-reduced-motion: reduce){.spinner-ring{animation:none;border:3px solid #00d4ff}.dot{animation:none;opacity:1}.loading-hint{animation:none;opacity:.8}.loading-progress-fill{transition:none}}.debug-hud-toggle{position:fixed;bottom:88px;right:16px;z-index:3000;display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:22px;line-height:1;background-color:#0000008c;border:1px solid rgba(255,255,255,.25);border-radius:50%;cursor:pointer;pointer-events:auto;box-shadow:0 2px 8px #00000073}.debug-hud{position:fixed;top:70px;left:20px;z-index:2500;display:flex;flex-direction:column;gap:4px;padding:10px 12px;min-width:200px;max-width:min(92vw,380px);background-color:#000000c7;color:#e2e8f0;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.3;pointer-events:auto;box-shadow:0 4px 12px #0006}.debug-hud-row{display:flex;justify-content:space-between;gap:12px}.debug-hud-row>span:first-child{opacity:.65}.debug-hud-section{margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.15);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.75}.debug-hud-note{display:flex;flex-direction:column;gap:4px;padding-bottom:6px;margin-bottom:2px;border-bottom:1px solid rgba(255,255,255,.15)}.debug-hud-note-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fca5a5}.debug-hud-copy{font:inherit;font-size:11px;color:#e2e8f0;background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:4px;padding:2px 8px;cursor:pointer}.debug-hud-note-body{margin:0;white-space:pre-wrap;word-break:break-word;-webkit-user-select:text;user-select:text;max-height:42vh;overflow:auto;color:#fecaca;font-size:11px;line-height:1.35}.debug-hud-crumbs .debug-hud-note-head{color:#93c5fd}.debug-hud-crumbs-body{color:#cbd5e1;max-height:30vh}:root{--story-green: #5e9e33;--story-green-lt: #86c24e;--story-orange: #f08a1e;--story-ink: #1c1810}.story-overlay{position:fixed;inset:0;z-index:5;pointer-events:none;font-family:"Press Start 2P",ui-monospace,monospace;color:#fff;-webkit-user-select:none;user-select:none}.story-vignette{position:absolute;inset:0;pointer-events:none;transition:background .8s ease}.story-card{position:absolute;left:50%;bottom:13%;transform:translate(-50%);width:min(86vw,460px);padding:18px 18px 20px;background:#14120ed1;border:2px solid rgba(255,255,255,.14);border-radius:14px;text-align:center;pointer-events:auto;backdrop-filter:blur(2px)}.story-card-intro{bottom:auto;top:calc(env(safe-area-inset-top,0px) + 76px);transform:translate(-50%)}.story-kicker{font-size:9px;letter-spacing:1px;color:var(--story-orange);margin-bottom:12px}.story-title{font-size:17px;line-height:1.5;margin:0 0 12px;text-shadow:0 2px 0 rgba(0,0,0,.5)}.story-sub{font-size:9px;line-height:1.9;color:#d8d2c4;margin:0 0 14px}.story-scan{display:inline-flex;align-items:center;gap:10px;font-size:8px;line-height:1.6;color:#cfd8c4;padding:9px 12px;border-radius:999px;background:#00000059}.story-scan.ready{color:#0e0b07;background:var(--story-orange)}.story-scan-ring{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;animation:story-pulse 1.4s ease-in-out infinite}@keyframes story-pulse{0%,to{transform:scale(.7);opacity:.5}50%{transform:scale(1);opacity:1}}.story-era-head{position:absolute;top:calc(env(safe-area-inset-top,0px) + 54px);left:50%;transform:translate(-50%);text-align:center;animation:story-fade-down .5s ease both}.story-year{font-size:26px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.55),0 0 18px rgba(255,210,120,.5)}.story-era-title{margin-top:8px;font-size:10px;letter-spacing:1px;color:var(--story-orange)}@keyframes story-fade-down{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}.story-docent-row{position:absolute;left:12px;right:12px;bottom:96px;display:flex;align-items:flex-end;gap:10px}.story-cube{position:relative;flex:0 0 auto;width:34px;height:38px;margin-bottom:2px;filter:drop-shadow(0 3px 0 rgba(0,0,0,.4));animation:story-bob 3.2s ease-in-out infinite}.story-cube-top,.story-cube-left,.story-cube-right{position:absolute;width:17px;height:17px}.story-cube-top{top:0;left:8px;background:var(--story-green-lt);transform:rotate(45deg) scaleY(.58);transform-origin:center}.story-cube-left{bottom:2px;left:1px;height:21px;background:var(--story-green);transform:skewY(26deg)}.story-cube-right{bottom:2px;right:1px;height:21px;background:#4a7d28;transform:skewY(-26deg)}@keyframes story-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.story-narration{flex:1 1 auto;text-align:left;font-family:inherit;font-size:8.5px;line-height:1.85;color:#fff;text-shadow:1px 1px 0 rgba(0,0,0,.85);background:#14120e47;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:11px 12px;pointer-events:auto;cursor:pointer;backdrop-filter:blur(3px)}.story-caret{color:var(--story-orange);animation:story-blink .8s steps(2) infinite}@keyframes story-blink{50%{opacity:0}}.story-bottom{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 14px);padding:0 14px;pointer-events:auto}.story-timeline{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:12px;padding:8px 10px;background:#14120eb3;border-radius:999px}.story-stop{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:none;cursor:pointer;font-family:inherit}.story-stop-dot{width:11px;height:11px;border-radius:50%;background:#4a4640;border:2px solid #2a2620;transition:all .25s ease}.story-stop.done .story-stop-dot{background:var(--story-green)}.story-stop.active .story-stop-dot{background:var(--story-orange);box-shadow:0 0 10px #f08a1ecc;transform:scale(1.25)}.story-stop-label{font-size:6px;color:#8a8478}.story-stop.active .story-stop-label{color:#fff}.story-nav{display:flex;gap:10px}.story-btn{flex:1;font-family:inherit;font-size:11px;color:#fff;background:var(--story-orange);border:none;border-radius:12px;padding:14px 10px;cursor:pointer;box-shadow:0 3px #0000004d}.story-btn:active{transform:translateY(2px);box-shadow:none}.story-btn:disabled{opacity:.4;cursor:default}.story-btn-ghost{background:#ffffff1a;border:2px solid rgba(255,255,255,.18)}.story-card .story-btn{margin-top:8px;width:100%}.marker-hud{position:fixed;inset:0;z-index:1500;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.marker-hud-readout{align-self:flex-start;margin:118px 0 0 16px;padding:10px 12px;min-width:232px;max-width:min(88vw,340px);display:flex;flex-direction:column;gap:3px;background-color:#000000c7;color:#e2e8f0;border-radius:8px;font-size:12px;line-height:1.3;pointer-events:auto;box-shadow:0 4px 12px #0006}.marker-hud-row{display:flex;justify-content:space-between;gap:12px}.marker-hud-row>span:first-child{opacity:.65}.marker-hud-row>span:last-child{font-variant-numeric:tabular-nums;text-align:right}.marker-hud-ok{color:#86efac}.marker-hud-warn{color:#fcd34d}.marker-hud-controls{align-self:stretch;margin:0 16px 24px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background-color:#000000d1;color:#e2e8f0;border-radius:12px;pointer-events:auto;box-shadow:0 4px 16px #00000080}.marker-hud-slider{display:flex;flex-direction:column;gap:6px;font-size:12px}.marker-hud-slider>span{display:flex;justify-content:space-between;opacity:.8}.marker-hud-slider strong{font-variant-numeric:tabular-nums;opacity:1}.marker-hud-slider input[type=range]{width:100%;height:32px;accent-color:#f08a1e}.marker-hud-slider input[type=range]:disabled{opacity:.4}.marker-hud-buttons{display:flex;gap:8px}.marker-hud-buttons button{flex:1;min-height:44px;font:inherit;font-size:12px;color:#e2e8f0;background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:8px;cursor:pointer}.marker-hud-buttons button:disabled{opacity:.4;cursor:default}.marker-hud-assets{display:flex;flex-wrap:wrap;gap:6px}.marker-hud-assets button{min-width:36px;min-height:36px;font:inherit;font-size:12px;color:#e2e8f0;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;cursor:pointer}.marker-hud-assets button.is-selected{background:#f08a1e;color:#1c1810;border-color:#f08a1e}.marker-hud-save{font-size:11px;opacity:.75}.marker-hud-save-error{color:#fca5a5;opacity:1}.marker-hud-save-saved{color:#86efac}.marker-testbed-start{position:fixed;bottom:20px;left:50%;transform:translate(-50%);z-index:1000;display:flex;flex-direction:column;align-items:center;gap:10px;width:min(92vw,420px)}.marker-testbed-problem{margin:0;padding:10px 12px;background-color:#000000d1;color:#fcd34d;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.4;text-align:left}.marker-testbed-enter{padding:15px 30px;font-family:"Press Start 2P",monospace;font-size:14px;font-weight:700;color:#1c1810;background-color:#f08a1e;border:none;border-radius:14px;cursor:pointer;box-shadow:0 4px 6px #0000004d}.marker-testbed-enter:disabled{background-color:#6b7280;color:#d1d5db;cursor:default}.error-boundary{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;align-items:center;justify-content:center;z-index:10001;padding:20px}.error-boundary-content{max-width:600px;width:100%;background:#ffffff0d;border-radius:20px;padding:40px;text-align:center;box-shadow:0 20px 60px #00000080;backdrop-filter:blur(10px)}.error-icon{font-size:80px;margin-bottom:24px;animation:shake .5s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.error-title{color:#fff;font-size:32px;font-weight:700;margin:0 0 16px;line-height:1.2}.error-message{color:#fffc;font-size:16px;line-height:1.6;margin:0 0 24px}.error-details{margin:24px 0;text-align:left;background:#0000004d;border-radius:12px;overflow:hidden}.error-details-summary{padding:12px 16px;color:#ffffffb3;font-size:14px;cursor:pointer;user-select:none;transition:all .2s}.error-details-summary:hover{background:#ffffff0d;color:#fff}.error-details-content{padding:16px;border-top:1px solid rgba(255,255,255,.1)}.error-name{color:#ff6b6b;font-size:14px;font-weight:600;margin:0 0 12px;word-break:break-word}.error-stack{color:#fff9;font-size:12px;font-family:Courier New,monospace;line-height:1.5;margin:0;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.error-actions{display:flex;gap:12px;justify-content:center;margin-bottom:24px}.error-button{padding:14px 28px;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.error-button-primary{background:linear-gradient(135deg,#00d4ff,#08f);color:#fff}.error-button-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px #00d4ff4d}.error-button-primary:active{transform:translateY(0)}.error-button-secondary{background:#ffffff1a;color:#fff}.error-button-secondary:hover{background:#fff3}.error-button:focus{outline:none;box-shadow:0 0 0 3px #00d4ff4d}.error-help{color:#ffffff80;font-size:14px;line-height:1.5;margin:0}@media (max-width: 768px){.error-boundary-content{padding:32px 24px}.error-icon{font-size:64px}.error-title{font-size:24px}.error-message{font-size:14px}.error-actions{flex-direction:column}.error-button{width:100%;padding:12px 24px;font-size:14px}.error-help,.error-details-summary,.error-name{font-size:13px}.error-stack{font-size:11px}}@media (prefers-reduced-motion: reduce){.error-icon{animation:none}.error-button-primary:hover,.error-button-primary:active{transform:none}}.main-layout{position:relative;width:100%;min-height:100vh;overflow:hidden}.main-layout>*{position:relative}.toast-container{position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:10000;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:90%;width:400px}.toast-item{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#000000e6;border-radius:12px;box-shadow:0 4px 12px #0000004d;color:#fff;font-size:14px;pointer-events:auto;transform:translateY(-100px);opacity:0;transition:all .3s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(10px)}.toast-item.toast-visible{transform:translateY(0);opacity:1}.toast-icon{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;border-radius:50%}.toast-success{border-left:4px solid #4caf50}.toast-success .toast-icon{background:#4caf50;color:#fff}.toast-error{border-left:4px solid #f44336}.toast-error .toast-icon{background:#f44336;color:#fff}.toast-info{border-left:4px solid #2196f3}.toast-info .toast-icon{background:#2196f3;color:#fff}.toast-message{flex:1;line-height:1.4}.toast-close{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:#ffffffb3;font-size:24px;cursor:pointer;border-radius:50%;transition:all .2s;padding:0;line-height:1}.toast-close:hover{background:#ffffff1a;color:#fff}.toast-close:active{transform:scale(.95)}@media (max-width: 768px){.toast-container{width:calc(100% - 40px);max-width:none}.toast-item{padding:14px 16px;font-size:13px}.toast-icon{width:20px;height:20px;font-size:16px}.toast-close{width:28px;height:28px;font-size:20px}}@media (prefers-reduced-motion: reduce){.toast-item{transition:opacity .2s}.toast-item.toast-visible{transform:none}}.instructions-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9998;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease-out}.instructions-overlay.instructions-visible{opacity:1}.instructions-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:#000c;backdrop-filter:blur(8px)}.instructions-content{position:relative;background:linear-gradient(135deg,#1e1e2e,#2a2a3e);border-radius:20px;padding:40px 32px;max-width:500px;width:90%;box-shadow:0 20px 60px #00000080;transform:scale(.9);transition:transform .3s cubic-bezier(.4,0,.2,1)}.instructions-visible .instructions-content{transform:scale(1)}.instructions-close{position:absolute;top:16px;right:16px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border:none;border-radius:50%;color:#fff;font-size:28px;cursor:pointer;transition:all .2s;line-height:1;padding:0}.instructions-close:hover{background:#fff3;transform:rotate(90deg)}.instructions-progress{width:100%;height:4px;background:#ffffff1a;border-radius:2px;overflow:hidden;margin-bottom:24px}.instructions-progress-bar{height:100%;background:linear-gradient(90deg,#00d4ff,#08f);transition:width .3s ease-out;border-radius:2px}.instructions-step-indicator{color:#fff9;font-size:12px;text-transform:uppercase;letter-spacing:1px;margin-bottom:24px;text-align:center}.instructions-step{text-align:center;margin-bottom:32px;animation:slideIn .4s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.instructions-icon{font-size:64px;margin-bottom:20px;animation:bounce 2s ease-in-out infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.instructions-title{color:#fff;font-size:28px;font-weight:700;margin:0 0 16px;line-height:1.2}.instructions-description{color:#fffc;font-size:16px;line-height:1.6;margin:0}.instructions-dots{display:flex;justify-content:center;gap:12px;margin-bottom:32px}.instructions-dot{width:10px;height:10px;border-radius:50%;background:#fff3;border:none;cursor:pointer;transition:all .3s;padding:0}.instructions-dot.active{background:#00d4ff;transform:scale(1.3)}.instructions-dot.completed{background:#00d4ff80}.instructions-dot:hover{background:#fff6}.instructions-actions{display:flex;gap:12px;justify-content:space-between;align-items:center}.instructions-button{padding:14px 24px;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;min-width:100px}.instructions-button-primary{background:linear-gradient(135deg,#00d4ff,#08f);color:#fff;flex:1}.instructions-button-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px #00d4ff4d}.instructions-button-primary:active{transform:translateY(0)}.instructions-button-secondary{background:#ffffff1a;color:#fff}.instructions-button-secondary:hover{background:#fff3}.instructions-button-text{background:transparent;color:#fff9;min-width:auto;padding:14px 16px}.instructions-button-text:hover{color:#fff}@media (max-width: 768px){.instructions-content{padding:32px 24px;width:95%}.instructions-icon{font-size:48px}.instructions-title{font-size:24px}.instructions-description{font-size:14px}.instructions-button{padding:12px 20px;font-size:14px;min-width:80px}.instructions-close{width:36px;height:36px;font-size:24px}}@media (prefers-reduced-motion: reduce){.instructions-content{transition:opacity .2s}.instructions-step,.instructions-icon{animation:none}.instructions-button-primary:hover{transform:none}}.diagnostic-panel{position:fixed;top:12px;left:12px;z-index:3000;background-color:#0f172aeb;color:#f1f5f9;border-radius:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.35;border:1px solid rgba(148,163,184,.25);box-shadow:0 6px 18px #00000073;pointer-events:auto;max-width:calc(100vw - 24px)}.diagnostic-panel-collapsed{display:inline-flex}.diagnostic-panel-expanded{min-width:240px}.diagnostic-header{display:flex;align-items:center;gap:8px;padding:8px 12px;background:transparent;color:inherit;border:0;width:100%;cursor:pointer;font:inherit;text-align:left}.diagnostic-platform{flex:1;font-weight:600;font-size:12px;letter-spacing:.2px}.diagnostic-caret{opacity:.6;font-size:10px}.diagnostic-body{padding:4px 12px 10px;border-top:1px solid rgba(148,163,184,.18);display:flex;flex-direction:column;gap:4px}.diagnostic-row{display:flex;align-items:center;gap:8px;padding:3px 0}.diagnostic-label{flex:1;opacity:.85}.diagnostic-status{font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.4px}.diagnostic-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0;box-shadow:0 0 6px currentColor}.diagnostic-dot-green{background-color:#22c55e;color:#22c55e99}.diagnostic-dot-amber{background-color:#f59e0b;color:#f59e0b99;animation:diagnostic-dot-pulse 1.2s ease-in-out infinite}.diagnostic-dot-red{background-color:#ef4444;color:#ef444499}.diagnostic-dot-gray{background-color:#64748b;color:#64748b66}.diagnostic-status-green{color:#4ade80}.diagnostic-status-amber{color:#fbbf24}.diagnostic-status-red{color:#f87171}.diagnostic-status-gray{color:#94a3b8}@keyframes diagnostic-dot-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)}}.diagnostic-note{padding:7px 9px;background-color:#ef444424;border:1px solid rgba(239,68,68,.45);border-radius:6px;font-size:11px;line-height:1.4;color:#fca5a5}.diagnostic-section{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px;padding-top:6px;border-top:1px solid rgba(148,163,184,.18);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.7}.diagnostic-row-timing{padding:1px 0;font-size:11px}.diagnostic-timing-value{font-variant-numeric:tabular-nums;color:#cbd5e1}.diagnostic-hint{margin-top:8px;padding:6px 8px;background-color:#3b82f61f;border:1px solid rgba(59,130,246,.35);border-radius:6px;font-size:11px;line-height:1.4;color:#bfdbfe}.diagnostic-dismiss{margin-top:8px;padding:4px 8px;background:transparent;color:#94a3b8;border:1px solid rgba(148,163,184,.3);border-radius:6px;cursor:pointer;font:inherit;font-size:11px}.diagnostic-dismiss:hover{color:#f1f5f9;border-color:#94a3b899}.diagnostic-pill-restore{position:fixed;top:12px;left:12px;z-index:3000;width:28px;height:28px;border-radius:50%;background-color:#0f172ad9;color:#94a3b8;border:1px solid rgba(148,163,184,.4);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;font-weight:700;cursor:pointer;pointer-events:auto;box-shadow:0 4px 10px #0006}:root{--color-primary: #6366f1;--color-primary-dark: #4f46e5;--color-secondary: #8b5cf6;--color-success: #10b981;--color-error: #ef4444;--color-warning: #f59e0b;--color-bg: #0f172a;--color-bg-secondary: #1e293b;--color-text: #f1f5f9;--color-text-secondary: #cbd5e1;--color-border: #334155;--spacing-xs: .25rem;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 2rem;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--radius-sm: .25rem;--radius-md: .5rem;--radius-lg: 1rem;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1)}*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden}body{font-family:var(--font-family);background-color:var(--color-bg);color:var(--color-text);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;overscroll-behavior:none}#root{width:100%;height:100%}.app-container{display:flex;flex-direction:column;width:100%;height:100%;padding:var(--spacing-lg);overflow-y:auto}.app-container.loading{justify-content:center;align-items:center}.app-header{text-align:center;margin-bottom:var(--spacing-xl)}.app-header h1{font-size:2rem;font-weight:700;color:var(--color-primary);margin-bottom:var(--spacing-sm)}.app-header p{font-size:1rem;color:var(--color-text-secondary)}.app-main{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}.device-info{background-color:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--spacing-lg)}.device-info h2{font-size:1.25rem;margin-bottom:var(--spacing-md);color:var(--color-primary)}.device-info ul{list-style:none;display:flex;flex-direction:column;gap:var(--spacing-sm)}.device-info li{font-size:.95rem;color:var(--color-text-secondary);padding:var(--spacing-sm);background-color:var(--color-bg);border-radius:var(--radius-sm)}.status-message{background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));border-radius:var(--radius-lg);padding:var(--spacing-lg);text-align:center}.status-message p{font-size:1rem;margin-bottom:var(--spacing-sm)}.status-message p:last-child{margin-bottom:0}.app-footer{text-align:center;padding:var(--spacing-lg) 0;color:var(--color-text-secondary);font-size:.875rem}.loading-spinner{width:48px;height:48px;border:4px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:var(--spacing-md)}@keyframes spin{to{transform:rotate(360deg)}}@media (min-width: 768px){.app-header h1{font-size:2.5rem}.app-main{max-width:800px;margin:0 auto;width:100%}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media (prefers-contrast: high){:root{--color-bg: #000000;--color-text: #ffffff;--color-border: #ffffff}}
