* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.status {
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status.disconnected { color: #666; }
.status.connecting { color: #f0a500; }
.status.connected { color: #4caf50; }

.avatar-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #7b68ee;
    transition: all 0.3s;
}

.avatar.speaking {
    border-color: #7b68ee;
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.3);
}

.avatar.listening {
    border-color: #4caf50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

#visualizer {
    opacity: 0;
    transition: opacity 0.3s;
}
#visualizer.active {
    opacity: 1;
}

.agent-message {
    min-height: 2rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #aaa;
    font-style: italic;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.talk-btn {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 2px solid #333;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.talk-btn:hover:not(:disabled) {
    border-color: #7b68ee;
    background: #16213e;
}

.talk-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.talk-btn.active {
    border-color: #f44336;
    background: #2a0a0a;
}

.mute-btn {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 2px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mute-btn:hover {
    border-color: #7b68ee;
    background: #16213e;
}

.mute-btn.muted {
    border-color: #f44336;
    background: #2a0a0a;
}

.transcript {
    margin-top: 2rem;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.transcript .user {
    color: #888;
    margin-bottom: 0.3rem;
}
.transcript .user::before {
    content: "Ты: ";
    color: #666;
}
.transcript .user.pending {
    opacity: 0.5;
    font-style: italic;
}

.transcript .assistant {
    color: #c8c8ff;
    margin-bottom: 0.5rem;
}
.transcript .assistant::before {
    content: "Claire: ";
    color: #7b68ee;
}
.transcript .assistant.pending {
    opacity: 0.5;
    font-style: italic;
}
