:root{--bg: #0f172a;--surface: #1e293b;--surface2: #334155;--text: #f8fafc;--muted: #94a3b8;--accent: #38bdf8;--accent-dim: #0ea5e9;--ok: #4ade80;--warn: #fbbf24;--danger: #f87171;--radius: 12px;--nav-h: 64px;--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}button,input,textarea,select{font:inherit}.app-shell{min-height:100%;padding-bottom:calc(var(--nav-h) + var(--safe-bottom))}.page{max-width:640px;margin:0 auto;padding:1rem 1rem 2rem}.page-header{margin-bottom:1.25rem}.page-header h1{font-size:1.5rem;font-weight:700;margin:0 0 .25rem}.page-header p{margin:0;color:var(--muted);font-size:.9rem}.card{background:var(--surface);border:1px solid var(--surface2);border-radius:var(--radius);padding:1rem;margin-bottom:.75rem}.card-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.card h3{margin:0 0 .25rem;font-size:1rem}.muted{color:var(--muted);font-size:.85rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border:none;border-radius:10px;padding:.65rem 1rem;background:var(--accent);color:#0f172a;font-weight:600;cursor:pointer}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:var(--surface2);color:var(--text)}.btn.danger{background:var(--danger);color:#0f172a}.btn.block{width:100%}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem}.field input,.field textarea{background:var(--bg);border:1px solid var(--surface2);border-radius:10px;padding:.75rem;color:var(--text)}.status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.status-dot.online{background:var(--ok);box-shadow:0 0 8px var(--ok)}.status-dot.offline{background:var(--muted)}.badge{display:inline-block;font-size:.75rem;padding:.15rem .5rem;border-radius:999px;background:var(--surface2);color:var(--muted)}.badge.ok{background:#4ade8026;color:var(--ok)}.badge.warn{background:#fbbf2426;color:var(--warn)}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:#0f172af2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--surface2);display:flex;justify-content:space-around;align-items:center;z-index:100}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:.15rem;color:var(--muted);font-size:.7rem;padding:.35rem .5rem;min-width:56px}.bottom-nav a.active{color:var(--accent)}.bottom-nav .icon{font-size:1.25rem;line-height:1}.landing{min-height:100%;display:flex;flex-direction:column}.landing-hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding:2rem 1.5rem;max-width:640px;margin:0 auto}.landing-hero h1{font-size:2rem;line-height:1.15;margin:0 0 1rem}.landing-hero p{color:var(--muted);line-height:1.5;margin:0 0 1.5rem}.landing-actions{display:flex;flex-direction:column;gap:.75rem}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.stat{background:var(--bg);border-radius:10px;padding:.75rem}.stat .label{font-size:.75rem;color:var(--muted)}.stat .value{font-size:1.1rem;font-weight:600}.token-box{background:var(--bg);border-radius:10px;padding:.75rem;font-family:ui-monospace,monospace;font-size:.75rem;word-break:break-all;margin:.5rem 0}.token-box.inline{display:inline;padding:.2rem .4rem;font-size:.8rem}.install-card h3{margin:0 0 .25rem;font-size:1.05rem}.install-section{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--surface2)}.install-section h4{margin:0 0 .35rem;font-size:.95rem}.helper{line-height:1.45;margin:.35rem 0 .75rem}.tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin:.75rem 0}.tab{border:1px solid var(--surface2);background:var(--bg);color:var(--muted);border-radius:999px;padding:.35rem .75rem;font-size:.8rem;cursor:pointer}.tab.active{background:var(--surface2);color:var(--text);border-color:var(--accent)}.tab-panel{margin-top:.5rem}.tab-panel code,.helper code{font-family:ui-monospace,monospace;font-size:.85em}.dev-panel{border-left:3px solid var(--warn);padding-left:.75rem}.badge.pulse{animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.55}}.connected-summary{margin-top:.75rem}.install-page h1{margin:.25rem 0 .5rem}.dev-details{margin-top:1rem;border:1px solid var(--surface2);border-radius:10px;padding:.75rem}.dev-details summary{cursor:pointer;color:var(--muted);font-size:.9rem}.dev-banner{background:#fbbf241a;border-radius:8px;padding:.65rem .75rem;margin:.75rem 0 0;font-size:.85rem}.section-title{font-size:1rem;margin:1.25rem 0 .5rem}.link-row{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172abf;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:200}.modal{width:100%;max-width:420px;margin:0}.danger-zone{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--surface2)}.danger-zone h2{font-size:1rem;margin:0 0 .35rem;color:var(--danger)}.toast{background:#4ade801f;border:1px solid rgba(74,222,128,.35);color:var(--ok);border-radius:10px;padding:.65rem .85rem;margin-bottom:.75rem;font-size:.9rem}.device-card-link{display:block;color:inherit;flex:1;min-width:0}@media (min-width: 768px){.bottom-nav{max-width:640px;left:50%;transform:translate(-50%);border-radius:var(--radius) var(--radius) 0 0}}
