:root{--bg-primary: #0a0a0f;--bg-secondary: #12121a;--bg-tertiary: #1a1a25;--text-primary: #ffffff;--text-secondary: #a0a0b0;--text-muted: #606070;--accent: #6366f1;--accent-hover: #818cf8;--success: #22c55e;--warning: #eab308;--error: #ef4444;--border: #2a2a3a}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:var(--bg-primary);color:var(--text-primary);min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}.code-input-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;text-align:center}.code-input-container{background:var(--bg-secondary);border:1px solid var(--border);border-radius:16px;padding:2.5rem;max-width:420px;width:100%}.code-input-container h1{font-size:2.5rem;margin-bottom:.25rem;color:var(--accent)}.code-input-container .subtitle{color:var(--text-muted);margin-bottom:2rem;font-size:.9rem}.code-form{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}.code-form label{font-weight:500;color:var(--text-primary);text-align:left}.code-form .hint{font-size:.8rem;color:var(--text-muted);text-align:left;margin-bottom:.5rem}.code-form code{background:var(--bg-tertiary);padding:.2rem .5rem;border-radius:4px;font-size:.8rem;color:var(--accent)}.code-input-field{background:var(--bg-primary);border:2px solid var(--border);border-radius:12px;padding:1rem 1.5rem;font-size:2rem;font-weight:700;letter-spacing:.5rem;text-align:center;color:var(--text-primary);font-family:monospace;text-transform:uppercase;transition:border-color .2s}.code-input-field:focus{outline:none;border-color:var(--accent)}.code-input-field::placeholder{color:var(--text-muted);letter-spacing:.5rem}.code-input-field:disabled{opacity:.6;cursor:not-allowed}.connect-button{background:var(--accent);border:none;border-radius:10px;padding:1rem;font-size:1rem;font-weight:600;color:#fff;cursor:pointer;transition:background .2s;margin-top:.5rem}.connect-button:hover:not(:disabled){background:var(--accent-hover)}.connect-button:disabled{opacity:.5;cursor:not-allowed}.auth-error{background:#ef44441a;border:1px solid var(--error);color:var(--error);padding:.75rem;border-radius:8px;font-size:.875rem;margin-top:.5rem}.instructions{text-align:left;background:var(--bg-tertiary);border-radius:10px;padding:1.25rem}.instructions h3{font-size:.875rem;color:var(--text-secondary);margin-bottom:.75rem}.instructions ol{margin:0;padding-left:1.25rem}.instructions li{color:var(--text-muted);font-size:.85rem;margin-bottom:.5rem;line-height:1.4}.instructions li:last-child{margin-bottom:0}.instructions code{background:var(--bg-primary);padding:.15rem .4rem;border-radius:4px;font-size:.8rem;color:var(--accent)}.voice-room{display:flex;flex-direction:column;min-height:100vh}.voice-room-header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:1.5rem;text-align:center}.voice-room-header h1{font-size:1.75rem;color:var(--accent);margin-bottom:.25rem}.voice-room-header .subtitle{color:var(--text-muted);font-size:.875rem}.voice-room-main{flex:1;padding:1.5rem;max-width:600px;margin:0 auto;width:100%}.voice-room-footer{background:var(--bg-secondary);border-top:1px solid var(--border);padding:1rem;text-align:center}.status-display{background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.status-section{margin-bottom:1.5rem}.status-section:last-child{margin-bottom:0}.status-section h3{font-size:.875rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:.75rem}.status-row{display:flex;gap:1rem}.status-indicator{display:flex;align-items:center;gap:.5rem;flex:1;background:var(--bg-tertiary);padding:.75rem;border-radius:8px}.status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.status-green{background:var(--success)}.status-yellow{background:var(--warning)}.status-red{background:var(--error)}.status-gray{background:var(--text-muted)}.status-text{display:flex;flex-direction:column}.status-label{font-size:.75rem;color:var(--text-muted)}.status-value{font-size:.875rem;font-weight:500}.error-message{background:#ef44441a;border:1px solid var(--error);color:var(--error);padding:.75rem;border-radius:8px;margin-top:1rem;font-size:.875rem}.position-info{display:flex;gap:1rem;background:var(--bg-tertiary);padding:.75rem;border-radius:8px;font-family:monospace;font-size:.875rem}.position-info span{color:var(--text-secondary)}.no-peers{color:var(--text-muted);text-align:center;padding:1rem;font-style:italic}.peer-list{display:flex;flex-direction:column;gap:.5rem}.peer-status{display:flex;align-items:center;gap:.75rem;background:var(--bg-tertiary);padding:.75rem;border-radius:8px}.peer-status.muted{opacity:.6}.peer-info{flex:1;display:flex;justify-content:space-between;align-items:center;min-width:0}.peer-name{display:flex;align-items:center;gap:.5rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muted-icon{color:var(--error);flex-shrink:0}.peer-distance{color:var(--text-muted);font-size:.75rem;flex-shrink:0}.volume-bar-container{width:60px;height:6px;background:var(--bg-primary);border-radius:3px;overflow:hidden;flex-shrink:0}.volume-bar{height:100%;background:var(--accent);transition:width .1s ease}.volume-text{width:40px;text-align:right;font-size:.75rem;color:var(--text-muted);flex-shrink:0}.controls-section{background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.mic-controls{display:flex;align-items:center;gap:.5rem}.mic-button{display:flex;align-items:center;gap:.5rem;background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary);padding:.75rem 1.25rem;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.mic-button:hover{background:var(--bg-primary);border-color:var(--accent)}.mic-button.active{background:var(--accent);border-color:var(--accent)}.mic-button.active:hover{background:var(--accent-hover)}.mic-button.muted{color:var(--error)}.device-selector{position:relative}.device-button{display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-secondary);width:36px;height:36px;border-radius:8px;cursor:pointer;transition:all .2s}.device-button:hover{background:var(--bg-primary);border-color:var(--accent);color:var(--text-primary)}.device-dropdown{position:absolute;bottom:100%;left:0;background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:.5rem;margin-bottom:.5rem;min-width:250px;box-shadow:0 4px 20px #0000004d;z-index:100}.device-dropdown-header{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:.5rem;border-bottom:1px solid var(--border);margin-bottom:.5rem}.device-option{display:block;width:100%;text-align:left;background:transparent;border:none;color:var(--text-secondary);padding:.75rem;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.device-option:hover{background:var(--bg-tertiary);color:var(--text-primary)}.device-option.selected{background:var(--accent);color:var(--text-primary)}.audio-level{flex:1;height:6px;background:var(--bg-primary);border-radius:3px;overflow:hidden;max-width:100px}.audio-level-bar{height:100%;background:var(--success);transition:width .05s ease}.leave-button{background:transparent;border:1px solid var(--error);color:var(--error);padding:.75rem 2rem;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.leave-button:hover{background:var(--error);color:var(--text-primary)}.debug-info{margin-top:1.5rem}.debug-info details{background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;overflow:hidden}.debug-info summary{padding:.75rem 1rem;cursor:pointer;color:var(--text-muted);font-size:.875rem}.debug-info summary:hover{background:var(--bg-tertiary)}.debug-info pre{padding:1rem;font-family:monospace;font-size:.75rem;color:var(--text-secondary);background:var(--bg-primary);overflow-x:auto}@media (max-width: 480px){.voice-room-main{padding:1rem}.status-row{flex-direction:column}.peer-status{flex-wrap:wrap}.peer-info{width:100%}.volume-bar-container{flex:1}}
