:root{color-scheme:dark;--bg:#090d12;--surface:#151d25;--text:#f3f5f5;--muted:#b3bdc8;--accent:#63e5f5;--line:#ffffff24;--glass-tint:.56;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{min-height:100svh}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button{border:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:active:not(:disabled){filter:brightness(1.12)}a{color:var(--accent)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#app{position:relative;width:100%;max-width:440px;margin:auto;background:var(--bg);min-height:100svh;isolation:isolate;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}.viewport{position:relative;width:100%;overflow:hidden;min-height:calc(100svh - var(--safe-top) - var(--safe-bottom))}.stage{position:relative;width:100%;overflow:hidden;isolation:isolate;background:#090f16}.screen-art{position:absolute;max-width:none;user-select:none;pointer-events:none;display:block}.hotspots{position:absolute;inset:0}.hotspot{position:absolute;border:0;background:transparent;color:transparent;margin:0;padding:0;min-width:44px;min-height:44px;transform:translate(-50%,-50%);border-radius:14px;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}.hotspot:hover{box-shadow:inset 0 0 0 1px #63e5f52e}.hotspot:focus-visible{outline-offset:1px;box-shadow:0 0 0 6px #090d1280}.hotspot.is-selected{box-shadow:inset 0 0 0 2px var(--accent);background:#63e5f513}.hotspot.is-selected:after{content:'✓';position:absolute;top:6px;left:8px;background:var(--accent);color:#071014;border-radius:50%;width:25px;height:25px;text-align:center;font-size:17px;line-height:25px}.hotspot.input-control{color:var(--text);background:#16232e;border:1px solid #70808f80;text-align:left;padding:0 15px;font-size:16px;border-radius:12px;outline-offset:2px}.hotspot.input-control::placeholder{color:#bdc5cd}.show-hotspots .hotspot{outline:1px dashed #63e5f5!important;background:#63e5f51b}.hotspot .visual-label{display:none}
/* Functional layer only. This CSS is a web approximation, not the native iOS renderer. */
.glass{background:rgb(30 41 52 / var(--glass-tint));-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%);border:1px solid #ddecf84a;box-shadow:inset 0 1px 1px #ffffff5c,inset 0 -1px 1px #ffffff16,0 8px 28px #0005;color:#f3f5f5}
.live-controls .hotspot.control-primary,.live-controls .hotspot.control-secondary,.live-controls .hotspot.control-round{color:#f3f5f5;border:1px solid #f0f8ff60;box-shadow:inset 0 1px 2px #ffffff75,inset 0 -1px 2px #ffffff26,0 4px 10px #0003;background:rgb(29 42 53 / .85);-webkit-backdrop-filter:blur(20px) saturate(120%);backdrop-filter:blur(20px) saturate(120%);font-weight:500;font-size:clamp(14px,3.9vw,17px);border-radius:999px;line-height:1.3;padding:6px 14px;gap:8px}
.live-controls .hotspot.control-primary{color:#03191e;background:rgb(99 229 245 / .9);font-weight:600;border-color:#d2fbff;box-shadow:inset 0 2px 4px #fff9,inset 0 -2px 4px #ffffff4d,0 4px 16px #25c8df2b}
.live-controls .hotspot.control-round{padding:0}.live-controls .hotspot:is(.control-primary,.control-secondary) .visual-label{display:inline}.control-round .visual-label{font-size:23px}.control-toggle{background:#53616d;color:white;border-radius:30px;min-height:32px}.control-toggle:before{content:'';position:absolute;width:23px;height:23px;left:4px;border-radius:50%;background:#e7edef;transition:transform .16s ease}.control-toggle[aria-pressed=true]{background:#3cc9d9}.control-toggle[aria-pressed=true]:before{left:calc(100% - 27px)}
.tabbar{position:fixed;z-index:5;bottom:var(--safe-bottom);left:50%;transform:translateX(-50%);width:calc(min(100vw,440px) - 28px);height:48px;border-radius:32px;display:flex;padding:1px 7px;gap:5px}.tabbar button{background:transparent;flex:1;border-radius:28px;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;color:#b5bfca;font-size:10px;line-height:1.3}.tabbar button[aria-current=page]{color:var(--accent);background:#ffffff09}.tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.has-tabs .viewport{padding-bottom:92px}.menu-toggle{position:fixed;z-index:10;right:max(8px,calc((100vw - 440px)/2 + 8px));top:calc(var(--safe-top) + 65px);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:29px;letter-spacing:1px;line-height:1;opacity:.8}.menu-toggle:hover,.menu-toggle:focus-visible{opacity:1}.toast{position:fixed;z-index:20;bottom:calc(var(--safe-bottom) + 94px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(380px,calc(100vw - 32px));border-radius:18px;padding:13px 18px;background:#253541;color:#f3f5f5;border:1px solid #7c909c70;box-shadow:0 12px 36px #0009;font-size:14px;line-height:1.5;text-align:center}.load-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#0c131c}.load-error button{border-radius:24px;background:#243644;padding:12px 25px;min-height:44px}.glass-caption{padding:20px;color:var(--muted);text-align:center;font-size:13px}.glasses-screen .stage{margin-top:18vh}.glasses-screen .viewport{background:#070b0f}
.desktop-panel{display:none}.sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;position:sticky;top:0;background:#151d25;z-index:4;padding:12px 0 16px}.sheet-heading h2{font-size:22px;letter-spacing:-.02em;margin:0;font-weight:650}.close-button{width:44px;height:44px;border-radius:50%;flex-shrink:0;font-size:27px;line-height:1}dialog{color:var(--text);background:#151d25;border:1px solid #ffffff20;width:calc(100% - 16px);max-width:480px;max-height:calc(100dvh - var(--safe-top) - 20px);padding:6px 20px calc(22px + var(--safe-bottom));border-radius:30px 30px 0 0;margin:auto auto 0;box-shadow:0 -15px 50px #0005;overscroll-behavior:contain}dialog::backdrop{background:#0008}body.sheet-open{overflow:hidden}.sheet-copy{font-size:15px;line-height:1.65;color:#c8d1d9}.sheet-copy strong{color:#f3f5f5}.sheet-copy li{margin:10px 0}dialog button:not(.close-button){min-height:44px}dialog .primary{display:block;background:#63e5f5;color:#061a20;border-radius:26px;padding:14px 20px;font-weight:600;width:100%;margin:16px 0 8px}.sheet-row{width:100%;background:#202c37;border:1px solid #ffffff0d;padding:15px 14px;display:flex;align-items:center;text-align:left;justify-content:space-between;gap:12px;margin-top:8px;border-radius:15px;line-height:1.4}.sheet-row small{display:block;font-size:12px;color:#aebcca;margin-top:4px}.sheet-row strong{font-size:16px;font-weight:500}.sheet-row .arrow{color:var(--muted)}.sheet-row.danger{color:#ffb0b6}.sheet-note{font-size:12px;color:#aebbc7;line-height:1.6;margin:17px 2px}.filters{display:flex;gap:8px;margin:14px 0;overflow-x:auto;padding:2px 0 5px}.filters button{white-space:nowrap;border-radius:24px;padding:8px 16px;color:#c9d3dd;background:#24313d;border:1px solid #ffffff20}.filters button[aria-pressed=true]{background:#63e5f5;color:#071c21}.search-field{width:100%;padding:13px 15px;background:#24323f;border:1px solid #ffffff28;color:#f3f5f5;border-radius:15px;min-height:48px;font-size:16px}.screen-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.screen-card{border:1px solid #ffffff17;border-radius:16px;padding:0 0 12px;background:#101720;text-align:left;overflow:hidden;min-width:0}.screen-card img{display:block;width:100%;aspect-ratio:1/1.6;object-fit:cover;object-position:50% 28%;background:#101820}.screen-card.glasses img{aspect-ratio:1.45;object-fit:contain}.screen-card strong,.screen-card small{display:block;padding:0 10px;line-height:1.45}.screen-card strong{font-size:14px;margin-top:8px;font-weight:500}.screen-card small{font-size:11px;color:#a9b7c4;margin-top:4px}.directory-status{font-size:12px;margin:0 0 12px;color:var(--muted)}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #ffffff14;font-size:15px}.setting-row input[type=checkbox]{width:23px;height:23px;accent-color:#63e5f5}.setting-row input[type=range]{width:140px;accent-color:#63e5f5}.setting-row small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.source-preview{width:100%;display:block;border-radius:18px;margin:10px 0}.address{display:block;word-break:break-all;padding:14px;border-radius:14px;background:#09131d;font-size:14px;color:#d7f8fe;user-select:all}.screen-description{background:#101720;border-radius:16px;padding:16px;font-size:15px;line-height:1.8}.screen-description h3{font-size:17px;margin:0 0 8px}.screen-description p{margin:0;color:#cad3dd}.action-list{display:flex;gap:8px;flex-wrap:wrap}.action-list button{background:#263744;border-radius:22px;padding:10px 16px;margin-top:8px;font-size:14px}.form-field{display:grid;gap:8px;font-size:14px;margin:18px 0}.form-field input,.form-field textarea{background:#0c1720;border:1px solid #677f8f80;padding:13px;color:white;border-radius:12px;font:inherit;font-size:16px;min-width:0}.form-field textarea{min-height:100px;resize:vertical}.empty{color:#b7c3cf;padding:30px 0;text-align:center}.cache-progress{width:100%;height:5px;accent-color:#63e5f5}.noscript{position:fixed;inset:auto 10px 20px;background:#263746;padding:20px;border-radius:20px;z-index:50}
body.reduce-transparency .glass,body.reduce-transparency .hotspot.control-secondary,body.reduce-transparency .hotspot.control-round{background:#263440!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-color:#a2b4c2}body.reduce-transparency .hotspot.control-primary{background:#63e5f5!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}body.increase-contrast .glass,body.increase-contrast .hotspot{border-color:#e7faff!important;color:#fff}body.increase-contrast .hotspot.control-primary{color:#001c24}body.increase-contrast .sheet-copy,body.increase-contrast .sheet-note{color:#eef3f6}body.reduce-motion *,body.reduce-motion *:before{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-transparency:reduce){.glass,.live-controls .hotspot.control-secondary,.live-controls .hotspot.control-round{background:#263440!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.live-controls .hotspot.control-primary{background:#63e5f5!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-contrast:more){.glass{background:#172735;border-color:#d6f5ff;color:#fff}.tabbar button{color:#e1edf6}.tabbar button[aria-current=page]{color:#78f1ff}.sheet-copy,.sheet-note{color:#edf2f6}}
@supports not (backdrop-filter:blur(1px)){.glass{background:#263440}.live-controls .hotspot.control-secondary,.live-controls .hotspot.control-round{background:#263440}}
@media(min-width:800px) and (min-height:600px){body{display:flex;align-items:flex-start;justify-content:center;gap:80px;padding:42px 32px;background:#080c11}#app{margin:0;width:440px;min-width:440px;min-height:956px;box-shadow:0 0 0 1px #ffffff1a,0 24px 100px #0009;border-radius:22px;overflow:hidden}.viewport{min-height:956px}.desktop-panel{display:block;width:310px;position:sticky;top:70px;padding-top:58px}.wordmark{font-size:25px;font-weight:650;display:flex;align-items:center;gap:12px;letter-spacing:-1px}.brand-wave{color:var(--accent);font-size:40px;letter-spacing:0;line-height:1}.eyebrow{font-size:10px;letter-spacing:4px;margin:16px 0 52px;color:#9babb8}.desktop-panel h1{font-size:42px;line-height:1.32;letter-spacing:-2px;margin:0}.intro{font-size:16px;line-height:1.85;color:#a8b7c3;margin:22px 0 38px}.desktop-tools{display:flex;flex-direction:column;gap:1px}.panel-button{display:flex;justify-content:space-between;gap:18px;background:transparent;text-align:left;border-top:1px solid #ffffff1d;padding:16px 0;min-height:48px;font-size:14px;color:#dce4ea}.panel-button:hover{color:var(--accent)}.desktop-caption{margin-top:35px;color:#8394a2;font-size:11px;line-height:1.8}.page-counter{font-size:13px;color:#b6c7d2;margin-top:40px}.tabbar{position:sticky;left:auto;bottom:12px;transform:none;margin:-80px 14px 12px;width:412px}.menu-toggle{position:absolute;top:66px;right:8px}.toast{position:fixed;left:calc(50% + 195px)}dialog{margin:auto;border-radius:28px;max-height:90dvh;padding-bottom:26px}.has-tabs .viewport{padding-bottom:92px}}
@media(orientation:landscape) and (max-width:799px){#app{max-width:440px}.tabbar{width:412px}.menu-toggle{right:max(8px,calc((100vw - 440px)/2 + 8px))}}
.control-icon{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.control-round .visual-label{display:flex!important;align-items:center;justify-content:center;max-width:100%;font-size:16px;line-height:1}.hotspot.control-round .control-icon{width:26px;height:26px}.hotspot.memory-checkbox{background:transparent!important;border-radius:50%;min-width:44px;min-height:44px;color:transparent}.hotspot.memory-checkbox:before{width:17px;height:17px;border:1px solid #98abb7;left:50%;top:50%;transform:translate(-50%,-50%);background:#101a23}.hotspot.memory-checkbox.is-selected{box-shadow:none}.hotspot.memory-checkbox.is-selected:before{background:var(--accent);border-color:var(--accent)}.hotspot.memory-checkbox.is-selected:after{width:18px;height:18px;font-size:13px;line-height:18px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%}.utility-hidden{visibility:hidden}

body:not(.live-controls) .control-toggle,body:not(.live-controls) .input-control{background:transparent;color:transparent;border-color:transparent;box-shadow:none}body:not(.live-controls) .control-toggle:before{display:none}body:not(.live-controls) .input-control::placeholder{color:transparent}body:not(.live-controls) .input-control:focus,body:not(.live-controls) .input-control[data-filled=true]{background:#16232e;color:#f3f5f5;border:1px solid #70808f80}body:not(.live-controls) .control-round .visual-label{display:none!important}

.control-toggle{background:transparent;min-height:44px;color:transparent}.control-toggle:before{display:none}.control-toggle[aria-pressed=true]{background:transparent}.switch-track{display:none;position:absolute;left:0;top:50%;width:100%;height:30px;transform:translateY(-50%);border-radius:18px;background:#52606d}.live-controls .switch-track{display:block}.switch-track:after{content:'';position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#f0f3f5}.control-toggle[aria-pressed=true] .switch-track{background:#38bdce}.control-toggle[aria-pressed=true] .switch-track:after{left:calc(100% - 27px)}.live-controls .glasses-screen .hotspot{color:transparent;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0}.glasses-screen .hotspot .visual-label{display:none!important}

.brand-mark{display:block;object-fit:contain;border-radius:10px}

/* A nonmodal companion window floats above the phone without changing its layout. */
.glasses-dock{position:fixed;z-index:15;pointer-events:none}
.glasses-bubble{position:absolute;width:52px;height:52px;padding:10px;border-radius:50%;display:grid;place-items:center;color:var(--accent);pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;background:linear-gradient(145deg,#8eaebb38,#15263288),rgb(24 37 47 / .6);box-shadow:inset 0 1px 2px #ffffffa3,inset 0 -1px 2px #a8e8f638,0 5px 22px #0008}
.glasses-bubble svg{width:30px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;pointer-events:none}
.glasses-bubble[aria-expanded=true]{border-color:#9ceff6b3;background-color:#20414de6}
.glasses-bubble.is-dragging{cursor:grabbing;box-shadow:inset 0 1px 2px #fff9,0 9px 30px #0009;outline:2px solid #63e5f559;outline-offset:2px}
.glasses-panel{position:absolute;width:calc(100% - 16px);max-width:420px;border-radius:26px;overflow:hidden;pointer-events:auto;background:rgb(21 33 43 / .88);box-shadow:inset 0 1px 1px #fff5,0 16px 48px #0009;animation:glasses-reveal .18s ease-out}
.glasses-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:72px;padding:6px 10px 6px 16px}
.glasses-heading>div{min-width:0;display:flex;flex-direction:column;gap:0}
.glasses-eyebrow{font-size:10px;line-height:15px;letter-spacing:1.5px;color:#aec2cb}
.glasses-heading select{font-size:16px;font-weight:600;line-height:22px;min-height:44px;max-width:100%;margin-left:-4px;padding:0 4px;border:0;background:transparent;color:var(--text);border-radius:6px}
.glasses-heading option{background:#172630;color:#fff}
.glasses-collapse{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;background:#b3d6e214;border:1px solid #e0faff20}
.glasses-collapse svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}
.glasses-art{display:block;width:100%;height:auto;aspect-ratio:1672/941;max-height:max(32px,calc(var(--panel-available,400px) - 182px));object-fit:contain;background:#080e13;user-select:none;pointer-events:none}
.glasses-actions{display:flex;gap:8px;padding:10px 12px 0}
.glasses-actions button{min-height:44px;min-width:44px;flex:1;border-radius:24px;padding:8px 10px;background:#d9edf114;color:#f1f7f8;border:1px solid #e2faff30;font-size:14px;line-height:20px}
.glasses-actions .glasses-primary{background:#63e5f5;color:#082026;border-color:#ccfaff7d;font-weight:600}
.glasses-footer{height:48px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 12px}
.glasses-footer button{min-height:44px;background:transparent;color:#b5c8d3;font-size:12px;padding:0 6px}
.glasses-footer button:before{content:'';display:inline-block;width:6px;height:6px;border:1px solid currentColor;border-radius:50%;margin-right:6px}
.glasses-footer button[aria-pressed=true]{color:var(--accent)}
.glasses-footer button[aria-pressed=true]:before{background:currentColor}
.glasses-footer span{font-size:10px;color:#aebfc9;white-space:nowrap}
.glasses-error{font-size:12px;padding:0 12px;color:#f1bec1}
@keyframes glasses-reveal{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}

/* A phone screen is one safe-area viewport, not an image plus extra page padding.
   Keep the source aspect ratio and all hit targets in the same fitted stage. */
:root { --app-height:100dvh; }
/* Installed iOS apps can report a short dynamic viewport on cold launch.
   Use the full layout height here and apply the safe-area padding exactly once. */
:root.standalone { --app-height:100vh; }
@media (display-mode:standalone) { :root { --app-height:100vh; } }
@media (max-width:799px), (max-height:599px) {
  body { min-height:var(--app-height); }
  html.standalone, html.standalone body { height:var(--app-height); overflow:hidden; overscroll-behavior:none; }
  #app {
    --stage-reserve:0px;
    --canvas-height:calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - var(--stage-reserve));
    --canvas-width:min(100%, calc(var(--canvas-height) * var(--stage-aspect)));
    height:var(--app-height);
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  #app.has-tabs, #app.glasses-screen { --stage-reserve:60px; }
  .viewport, .has-tabs .viewport {
    flex:1 1 0;
    min-height:0;
    padding-bottom:0;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .stage {
    width:var(--canvas-width);
    flex:none;
  }
  .tabbar {
    position:relative;
    inset:auto;
    transform:none;
    flex:0 0 48px;
    width:calc(var(--canvas-width) - 28px);
    max-width:calc(100% - 28px);
    margin:12px auto 0;
  }
  .menu-toggle {
    position:absolute;
    right:calc((100% - var(--canvas-width)) / 2 + 8px);
  }
  .glasses-screen .viewport { justify-content:center; }
  .glasses-screen .stage { margin-top:0; }
  .glass-caption { flex:0 0 60px; margin:0; }
  .elastic-screen { --canvas-width:100%!important; }
  .elastic-screen .viewport { overflow-y:auto; overscroll-behavior:contain; overflow-anchor:none; }
  .elastic-screen .stage { width:100%; height:100%; aspect-ratio:auto!important; flex:none; overflow:clip; }
  body.sheet-open .elastic-screen .viewport { overflow:hidden; }
  html.standalone dialog { max-height:calc(var(--app-height) - var(--safe-top) - 20px); }
}
.elastic-scene{position:absolute;left:0;width:100%;overflow:clip;pointer-events:none}
.elastic-scene #scene-crop{position:absolute;top:50%;left:50%;width:100%;overflow:clip;transform-origin:center}
.elastic-scene img{position:absolute;max-width:none;display:block;user-select:none;pointer-events:none}
.elastic-footer{position:absolute;bottom:0;left:0;width:100%;overflow:hidden;pointer-events:none}
.elastic-footer img{position:absolute;max-width:none;display:block;user-select:none;pointer-events:none}
