:root{color-scheme:dark;--bg:#050a10;--ink:#d9ece9;--muted:#7c999c;--faint:#517278;--mint:#83e8d0;--mint2:#54bea9;--border:rgba(117,199,184,.13)}
*{box-sizing:border-box}html,body{padding:0;margin:0;width:100%;min-height:100%;background:#020508;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #7adcc3;outline-offset:2px}button:disabled{opacity:.35;cursor:not-allowed}body{overflow:hidden}.app-shell{position:relative;isolation:isolate;max-width:550px;width:100%;height:100vh;height:100dvh;min-height:550px;margin:0 auto;overflow:hidden;background:radial-gradient(ellipse 90% 66% at 45% 45%,#0a1820 0%,#071017 38%,#050a10 75%,#02050a 100%);box-shadow:0 0 140px #000}
.world,.world canvas,.stars,.world-vignette{position:absolute;inset:0;width:100%;height:100%}.world{z-index:0;touch-action:none;overflow:hidden}.world canvas{display:block}.stars{opacity:.35;background-image:radial-gradient(circle,rgba(174,223,212,.9) .5px,transparent .9px);background-size:51px 59px;background-position:12px 29px;mask-image:linear-gradient(transparent 4%,#000 26%,#000 73%,transparent 96%)}.world-vignette{pointer-events:none;background:linear-gradient(180deg,rgba(3,8,13,.61) 0%,transparent 16%,transparent 78%,rgba(3,8,13,.84) 93%,#03070b 100%),radial-gradient(ellipse 92% 70% at 50% 45%,transparent 54%,rgba(0,0,0,.30) 100%)}
.topbar{position:absolute;z-index:6;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 22px) 22px 0;gap:6px;pointer-events:none}.brand-wrap,.top-actions{pointer-events:auto}.topbar h1{margin:0;white-space:nowrap;font-size:16px;font-weight:750;letter-spacing:.195em;color:#e6f4f0;text-shadow:0 0 20px rgba(152,232,216,.16)}.top-actions{display:flex;align-items:center;gap:8px}.connection{display:inline-flex;align-items:center;gap:6px;font-family:ui-monospace,"SFMono-Regular",monospace;font-size:8px;letter-spacing:.08em;color:#9baeb1;white-space:nowrap}.connection-dot{width:5px;height:5px;flex:none;border-radius:50%;background:#6fdac1;box-shadow:0 0 9px #69d3be}.connection.offline .connection-dot{background:#f2ad74;box-shadow:0 0 8px #e9ab73}.icon-button{border:1px solid rgba(129,181,177,.2);border-radius:50%;background:rgba(16,34,40,.42);color:#a2c7c2;font-size:12px;width:28px;height:28px;backdrop-filter:blur(8px)}
.telemetry-left{position:absolute;z-index:2;top:31%;left:19px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;writing-mode:vertical-rl;font-family:ui-monospace,monospace;letter-spacing:.12em;font-size:9px;color:rgba(155,200,196,.46)}.tiny-index{font-size:8px;white-space:nowrap}.telemetry-line{height:38px;width:1px;background:linear-gradient(transparent,#74bbb0,transparent)}.world-tag{position:absolute;z-index:3;left:50%;top:19%;transform:translateX(-50%);white-space:nowrap;color:rgba(169,213,208,.68);font-family:ui-monospace,monospace;letter-spacing:.23em;font-size:9px;pointer-events:none;transition:opacity .4s}.tag-bracket{color:#588d88;margin:0 7px}.viewport-actions{position:absolute;right:20px;top:26%;z-index:5;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.quiet-button{border:1px solid rgba(132,178,178,.16);background:rgba(10,23,30,.55);backdrop-filter:blur(8px);border-radius:13px;color:#a3ceca;font-size:10px;letter-spacing:.12em;padding:8px 10px;display:inline-flex;align-items:center;gap:6px}.quiet-button.square{width:31px;height:31px;justify-content:center;font-size:16px;padding:0}.view-glyph{font-size:15px;color:#7ddac5}.touch-hint{position:absolute;z-index:3;bottom:calc(env(safe-area-inset-bottom,0px) + 165px);left:50%;transform:translateX(-50%);width:100%;text-align:center;font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.16em;color:rgba(131,186,174,.47);pointer-events:none;animation:hintFade 7s ease-in-out infinite}@keyframes hintFade{0%,100%{opacity:.33}40%,60%{opacity:.85}}
.bottom-bar{position:absolute;bottom:0;left:0;right:0;z-index:6;padding:0 18px calc(env(safe-area-inset-bottom,0px) + 15px);pointer-events:none}.bottom-bar>*{pointer-events:auto}.metrics{display:flex;justify-content:space-around;gap:6px;padding:15px 2px 13px;background:linear-gradient(90deg,transparent,rgba(9,19,27,.47),transparent);border-top:1px solid rgba(105,158,156,.11)}.metric{min-width:51px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}.metric-label{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.08em;color:#6e9695}.metric strong{font-family:ui-monospace,monospace;font-size:17px;font-weight:450;letter-spacing:.04em;color:#dcf9ed;font-variant-numeric:tabular-nums}.metric .status-value{color:#85c9ba;font-size:14px;padding-top:3px}.metric-divider{width:1px;background:linear-gradient(transparent,rgba(146,192,187,.18),transparent)}.action-row{display:flex;gap:10px}.primary-action{height:49px;flex:1;border:1px solid rgba(128,233,205,.42);background:linear-gradient(120deg,rgba(29,98,88,.93),rgba(19,76,76,.89));box-shadow:inset 0 1px rgba(175,255,236,.1),0 0 27px rgba(25,109,98,.13);border-radius:13px;color:#d9fff3;font-size:12px;font-weight:700;letter-spacing:.08em;display:flex;align-items:center;justify-content:space-between;padding:0 15px}.primary-action:active{transform:scale(.993)}.button-mark{font-size:21px;font-weight:300}.right-arrow{font-size:19px;font-weight:300}.secondary-action{width:52px;flex:none;border:1px solid rgba(120,177,169,.23);background:rgba(10,25,33,.88);border-radius:13px;color:#bbddd8;font-size:24px}.bottom-micro{display:flex;justify-content:space-between;padding:11px 2px 0;gap:10px;font-family:ui-monospace,monospace;font-size:9px;color:rgba(116,167,159,.62);letter-spacing:.04em}.fps-hud{white-space:nowrap}
.scrim{position:absolute;inset:0;z-index:8;background:rgba(0,5,9,.58);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.scrim[hidden]{display:none}.sheet{position:absolute;z-index:9;bottom:0;left:0;right:0;max-height:85%;border-radius:23px 23px 0 0;border-top:1px solid rgba(110,213,184,.27);background:linear-gradient(180deg,rgba(11,24,31,.99),rgba(5,13,19,.99));box-shadow:0 -20px 70px #000a;transform:translateY(108%);transition:transform .44s cubic-bezier(.19,.8,.22,1);display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}.sheet.open{transform:translateY(0)}.sheet-handle{width:36px;height:4px;border-radius:3px;background:rgba(164,198,194,.29);margin:10px auto 8px;flex:none}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:0 21px 14px}.sheet-head h2{margin:0;font-size:12px;letter-spacing:.2em;font-weight:700;color:#bdd9d4}.close-button{background:transparent;border:0;color:#9dc0ba;font-size:30px;line-height:1;padding:0 3px}.sheet-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 19px;gap:16px;flex:none}.sheet-tab{background:none;border:0;color:#6f9993;padding:0 0 12px;font-family:ui-monospace,monospace;letter-spacing:.07em;font-size:10px;white-space:nowrap}.sheet-tab.active{color:#a9f8de;border-bottom:2px solid #6adeb9}.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:20px 21px 30px;-webkit-overflow-scrolling:touch}.tab-panel[hidden]{display:none}.section-note{font-size:13px;line-height:1.65;color:#9bbab6;margin:0 0 20px}.sheet form{display:flex;flex-direction:column;gap:9px}.sheet label,.field-caption{font-family:ui-monospace,monospace;color:#a0c7c0;font-size:10px;font-weight:600;letter-spacing:.09em}.optional{font-weight:400;color:#658681}.sheet input,.sheet textarea,.sheet select{width:100%;border:1px solid rgba(122,176,164,.2);background:rgba(12,33,39,.72);border-radius:11px;color:#dcefe8;padding:13px;font-size:14px;outline:none;margin-bottom:11px}.sheet textarea{resize:vertical;min-height:69px}.sheet input:focus,.sheet textarea:focus,.sheet select:focus{border-color:rgba(139,236,211,.65)}.sheet input::placeholder,.sheet textarea::placeholder{color:#64817f}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.setting-row select{width:auto;max-width:70%;margin-bottom:0;padding:9px 12px;font-size:12px}.setting-row strong{font-family:ui-monospace,monospace;font-size:12px;color:#bbd4ce;font-weight:400}.sheet-primary{display:flex;justify-content:space-between;align-items:center;width:100%;border-radius:12px;padding:14px 16px;background:#207e6d;border:1px solid rgba(146,240,203,.3);font-size:12px;letter-spacing:.1em;font-weight:700;color:#e8fff4}.sheet-primary span{font-size:18px}.fineprint{font-size:11px;line-height:1.6;color:#72908b;margin:14px 0 3px}.fineprint code{color:#b7dccb;overflow-wrap:anywhere}.token-row{display:flex;gap:7px}.token-row input{font-family:ui-monospace,monospace;letter-spacing:.035em;font-size:10px;min-width:0}.ghost-button{background:rgba(15,39,45,.72);border:1px solid rgba(139,194,180,.19);border-radius:9px;padding:9px 11px;color:#add8c9;font-family:ui-monospace,monospace;font-size:10px;white-space:nowrap;letter-spacing:.05em}.token-row .ghost-button{height:44px}.result-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;color:#a7dfd0;font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.1em}.result-tools{display:flex;gap:6px}.result-content{display:flex;flex-direction:column;gap:10px}.result-card{border-left:2px solid #478e81;background:rgba(23,46,48,.38);padding:11px 13px;border-radius:0 9px 9px 0}.result-card h3{font-size:12px;margin:0 0 6px;color:#d5f2e6;font-weight:600;line-height:1.4}.result-card p{font-size:12px;line-height:1.55;color:#aac9c1;margin:0}.result-card a{font-size:10px;color:#7fcaad;overflow-wrap:anywhere;text-decoration:none;display:block;margin-top:7px}.activity-heading{margin:21px 0 10px;font-family:ui-monospace,monospace;font-size:10px;color:#78d4bc;letter-spacing:.12em}.activity-log{max-height:190px;overflow:auto;display:flex;flex-direction:column;gap:10px;font-family:ui-monospace,monospace;font-size:11px;color:#9abbad}.log-entry{display:flex;gap:10px;line-height:1.5}.log-time{flex:none;font-size:9px;color:#5e9d88;min-width:32px}.toast{position:absolute;z-index:20;bottom:calc(env(safe-area-inset-bottom,0px) + 167px);left:22px;right:22px;border:1px solid rgba(115,191,166,.26);background:rgba(9,28,34,.95);border-radius:12px;color:#c7eee0;padding:12px;font-size:12px;line-height:1.5;text-align:center;pointer-events:none;opacity:0;transform:translateY(12px);transition:opacity .3s,transform .3s}.toast.show{opacity:1;transform:translateY(0)}
@media(min-width:800px){.app-shell{border-left:1px solid rgba(111,185,181,.12);border-right:1px solid rgba(111,185,181,.12)}}@media(max-width:370px){.topbar h1{font-size:14px;letter-spacing:.15em}.connection{font-size:7px}.topbar{padding-left:17px;padding-right:17px}.sheet-tabs{gap:11px}.sheet-tab{font-size:9px}.primary-action{font-size:11px}.bottom-bar{padding-left:12px;padding-right:12px}.metric-label{font-size:8px}}@media(max-height:675px){.world-tag{top:17%}.viewport-actions{top:22%}.touch-hint{bottom:150px}.bottom-bar{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 7px)}.metrics{padding:9px 2px}.action-row button{height:43px}.bottom-micro{padding-top:7px}}@media(prefers-reduced-motion:reduce){.touch-hint{animation:none}.sheet{transition:none}}

.api-help[hidden]{display:none}.api-help{border:1px solid rgba(242,176,113,.25);border-radius:12px;background:rgba(77,43,28,.2);padding:12px 13px;margin:17px 0 0;color:#e6cbb6}.api-help strong{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.065em;color:#efc59c}.api-help p{font-size:12px;line-height:1.55;margin:9px 0;overflow-wrap:anywhere}.api-help .fineprint{font-size:11px;color:#b6a192}.api-help-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:9px}.api-help-actions a{color:#a7e9cb;font-size:11px;font-family:ui-monospace,monospace;text-decoration:underline;text-underline-offset:3px}
