:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1120;--surface:#131c2e;--surface-2:#1c2740;--border:#2a3652;--text:#f1f5f9;--text-muted:#94a3b8;--partial:#7c8aa3;--accent:#38bdf8;--ok:#22c55e;--warn:#f59e0b;--danger:#ef4444;--radius:14px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);overscroll-behavior:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border-radius:var(--radius);-webkit-tap-highlight-color:transparent;border:none}button:disabled{opacity:.5;cursor:default}.primary{background:var(--accent);color:#04131d;padding:14px 18px;font-weight:600}.secondary{background:var(--surface-2);padding:14px 18px}.danger{border:1px solid var(--danger);color:var(--danger);background:0 0;width:100%;margin-top:24px;padding:12px 16px}.icon-button{background:0 0;place-items:center;width:44px;height:44px;font-size:22px;display:grid}.hint{color:var(--text-muted);margin:4px 0 8px;font-size:14px}.error{color:var(--danger)}.login{min-height:100%;padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));place-items:center;display:grid}.login-card{flex-direction:column;gap:12px;width:100%;max-width:380px;display:flex}.login-card h1{margin:0 0 12px;font-size:26px}.login-card input{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;font-size:18px}.app{flex-direction:column;max-width:720px;height:100%;margin:0 auto;display:flex}.status-bar{padding:calc(8px + var(--safe-top)) 12px 8px 16px;background:var(--surface);border-bottom:1px solid var(--border);grid-template-columns:auto 1fr;grid-auto-columns:auto;grid-auto-flow:column;align-items:center;gap:12px;font-size:15px;display:grid}.connection{white-space:nowrap;align-items:center;gap:8px;display:flex}.dot{background:var(--text-muted);border-radius:50%;width:10px;height:10px}.connection-listening .dot{background:var(--ok);box-shadow:0 0 8px var(--ok)}.connection-starting .dot,.connection-reconnecting .dot,.connection-stopping .dot{background:var(--warn);animation:1s infinite alternate pulse}@keyframes pulse{to{opacity:.3}}.meter{background:var(--surface-2);border-radius:4px;min-width:40px;height:8px;overflow:hidden}.meter-fill{background:var(--accent);height:100%;transition:width 90ms linear}.stats{font-variant-numeric:tabular-nums;color:var(--text-muted);flex-direction:column;align-items:flex-end;font-size:13px;line-height:1.25;display:flex}.banner{border-radius:10px;margin:8px 12px 0;padding:10px 12px;font-size:15px}.banner.warn{color:#fcd34d;background:#f59e0b26}.banner.error{color:#fca5a5;background:#ef444426}.banner.info{background:var(--surface-2);color:var(--text-muted)}.transcript-wrap{flex:1;min-height:0;position:relative}.transcript{-webkit-overflow-scrolling:touch;height:100%;padding:16px;overflow-y:auto}.transcript p{overflow-wrap:anywhere;margin:0 0 .6em}.transcript .final{color:var(--text)}.transcript .partial{color:var(--partial)}.transcript .empty{color:var(--text-muted);text-align:center;margin-top:30%;font-size:18px}.jump{background:var(--surface-2);border:1px solid var(--border);padding:8px 14px;font-size:14px;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.controls{padding:12px 16px calc(12px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--border);gap:12px;display:flex}.main-button{flex:1;min-height:64px;font-size:22px;font-weight:700}.main-button.start{background:var(--accent);color:#04131d}.main-button.stop{background:var(--danger);color:#fff}.sheet-backdrop{z-index:10;background:#0000008c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:520px;max-height:88%;padding:8px 16px calc(20px + var(--safe-bottom));border-radius:18px 18px 0 0;overflow-y:auto}.sheet-header{justify-content:space-between;align-items:center;display:flex}.sheet h2{margin:0;font-size:20px}.sheet h3{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin:20px 0 6px;font-size:13px}.toggle,.field{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;min-height:48px;display:flex}.toggle input{width:22px;height:22px;accent-color:var(--accent)}.field select,.field input{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;width:96px;padding:6px 8px}.tabs{gap:4px;padding:8px 12px 0;display:flex}.tabs button{color:var(--text-muted);background:0 0;border-bottom:2px solid #0000;border-radius:10px 10px 0 0;flex:1;padding:8px}.tabs button.active{color:var(--text);border-bottom-color:var(--accent)}.active-suggestion{flex-shrink:0;max-height:48%;padding:8px 12px 0;overflow-y:auto}.suggestion{background:var(--surface-2);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:var(--radius);padding:10px 12px 12px}.suggestion.deep{border-left-color:#a78bfa}.suggestion.compact{margin-bottom:12px}.suggestion-header{align-items:center;gap:8px;display:flex}.topic{color:var(--accent);background:#38bdf826;border-radius:999px;padding:2px 8px;font-size:13px;font-weight:600}.suggestion.deep .topic{color:#c4b5fd;background:#a78bfa26}.meta{color:var(--text-muted);text-align:right;flex:1;font-size:12px}.icon-button.small{width:32px;height:32px;font-size:16px}.suggestion-question{color:var(--text-muted);margin:6px 0 4px;font-size:15px}.suggestion-body p{margin:0 0 .4em}.suggestion-body .bullet{text-indent:-.8em;padding-left:1em}.suggestion-body .bullet:before{content:"• ";color:var(--accent)}.suggestion-body pre{background:var(--bg);white-space:pre;border-radius:8px;padding:8px;font-size:.75em;overflow-x:auto}.thinking{color:var(--text-muted);animation:.8s infinite alternate pulse}.cursor{background:var(--accent);vertical-align:text-bottom;width:.5em;height:1em;animation:.6s infinite alternate pulse;display:inline-block}.suggestion-actions{justify-content:flex-end;margin-top:8px;display:flex}.suggestion-actions button{padding:8px 14px}.history{flex:1;min-height:0;padding:12px;overflow-y:auto}.history .empty{color:var(--text-muted);text-align:center;margin-top:20%}.suggest-now{font-weight:600}.wake{color:#fcd34d;font-size:16px}.wake-failed{color:var(--warn)}.suggest-now{flex-direction:column;align-items:center;line-height:1.2;display:flex}.suggest-window{color:var(--text-muted);font-size:12px;font-weight:400}.billing{flex-direction:column;gap:10px;display:flex}.billing-card{background:var(--surface-2);border-radius:12px;padding:10px 12px}.billing-card header{justify-content:space-between;align-items:center;display:flex}.billing-main{margin:6px 0 2px}.billing .low{color:var(--warn)}.billing .field{border-bottom:none;min-height:40px}button.link{color:var(--accent);background:0 0;padding:4px 0;font-size:14px}
