*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #1a1a2e;--surface: #16213e;--primary: #0f9b8e;--primary-hover: #0d8a7f;--danger: #e94560;--danger-hover: #d13a52;--text: #eaeaea;--text-muted: #8892a4;--success: #2ecc71;--warning: #f39c12;--radius: 12px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}html{font-size:16px;-webkit-text-size-adjust:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100dvh;line-height:1.5}#root{min-height:100dvh}.page{display:flex;flex-direction:column;min-height:100dvh;padding:calc(1.5rem + var(--safe-top)) 1.25rem calc(1.5rem + var(--safe-bottom));max-width:480px;margin:0 auto}.header{text-align:center;margin-bottom:2rem}.header h1{font-size:1.75rem;font-weight:700;letter-spacing:-.02em}.subtitle{color:var(--text-muted);margin-top:.25rem;font-size:.95rem}.label{display:block;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:.5rem}.input{width:100%;padding:.875rem 1rem;font-size:1.125rem;border:2px solid var(--surface);border-radius:var(--radius);background:var(--surface);color:var(--text);outline:none;transition:border-color .2s}.input:focus{border-color:var(--primary)}.btn{display:block;width:100%;padding:1rem;font-size:1.05rem;font-weight:600;border:none;border-radius:var(--radius);cursor:pointer;transition:background .2s,transform .1s;-webkit-tap-highlight-color:transparent}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff;margin-top:1rem}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface);color:var(--text);border:2px solid transparent}.btn-secondary:hover{border-color:var(--primary)}.btn-mute{background:var(--surface);color:var(--text);border:2px solid var(--text-muted)}.btn-mute.muted{border-color:var(--danger);color:var(--danger)}.btn-leave{background:transparent;color:var(--danger);border:2px solid var(--danger);margin-top:.75rem}.btn-leave:hover{background:var(--danger);color:#fff}.home-content{flex:1;display:flex;flex-direction:column;gap:2rem}.presets{margin-top:auto}.preset-buttons{display:flex;gap:.75rem}.preset-buttons .btn{flex:1}.room-content{flex:1;display:flex;flex-direction:column;align-items:center;gap:2rem}.room-info{text-align:center}.room-id{display:block;font-size:2rem;font-weight:700;letter-spacing:.02em;margin-top:.25rem}.status{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.25rem;background:var(--surface);border-radius:999px;font-size:.95rem}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--text-muted);flex-shrink:0}.status-requesting-mic .status-dot,.status-connecting .status-dot{background:var(--warning);animation:pulse 1.5s infinite}.status-waiting .status-dot{background:var(--warning);animation:pulse 2s infinite}.status-connected .status-dot{background:var(--success)}.status-disconnected .status-dot,.status-error .status-dot,.status-room-full .status-dot{background:var(--danger)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.error{color:var(--danger);text-align:center;font-size:.9rem}.mic-section{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin-top:auto}.mic-indicator{display:flex;align-items:flex-end;gap:4px;height:48px}.mic-bar{width:8px;border-radius:4px;background:var(--surface);transition:height .1s,background .2s}.mic-bar:nth-child(1){height:12px}.mic-bar:nth-child(2){height:20px}.mic-bar:nth-child(3){height:32px}.mic-bar:nth-child(4){height:20px}.mic-bar:nth-child(5){height:12px}.mic-bar.active{background:var(--primary)}.mic-bar.active.muted{background:var(--text-muted)}.mic-label{font-size:.85rem;color:var(--text-muted)}.actions{width:100%;margin-top:1rem}.install-prompt{margin-bottom:1.25rem}.install-prompt-content{background:var(--surface);border:2px solid var(--primary);border-radius:var(--radius);padding:1rem}.install-prompt-title{font-weight:600;font-size:.95rem;margin-bottom:.35rem}.install-prompt-text{font-size:.85rem;color:var(--text-muted);margin-bottom:.75rem}.install-steps{text-align:left;font-size:.85rem;color:var(--text-muted);margin:0 0 .75rem 1.1rem;padding:0;line-height:1.5}.install-steps li{margin-bottom:.35rem}.install-prompt-actions{display:flex;gap:.5rem}.btn-sm{padding:.625rem .875rem;font-size:.9rem;width:auto;flex:1}.home-hint{font-size:.85rem;color:var(--text-muted);text-align:center;margin-top:.5rem;margin-bottom:1.5rem}.join-form{margin-top:.5rem}.join-form .btn-secondary{margin-top:.75rem}.room-invite{width:100%;text-align:center;background:var(--surface);border-radius:var(--radius);padding:1.25rem 1rem}.room-invite-title{font-weight:600;font-size:1rem;margin-bottom:.25rem}.room-invite-hint{font-size:.85rem;color:var(--text-muted);margin-bottom:1rem}.qr-code{display:inline-flex;padding:.75rem;background:var(--surface);border:2px solid var(--primary);border-radius:var(--radius);margin-bottom:1rem}.room-link{background:var(--bg);border-radius:8px;padding:.625rem .75rem;margin-bottom:.75rem;overflow:hidden}.room-link-text{font-size:.8rem;color:var(--text-muted);word-break:break-all}.room-invite-actions{display:flex;flex-direction:column;gap:.5rem}.room-invite-actions .btn{margin-top:0}
