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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
}

#header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #e94560;
}

#status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #333;
}

#status.connected { background: #1b5e20; color: #a5d6a7; }
#status.connecting { background: #e65100; color: #ffcc80; }
#status.error { background: #b71c1c; color: #ef9a9a; }

/* Avatar area */
#avatar-container {
    flex: 1;
    position: relative;
    min-height: 0;
    background: #0f0f23;
}

#avatarVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f0f23;
}

#loading {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #888;
}

/* Controls */
#controls {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: #16213e;
    justify-content: center;
    align-items: center;
}

button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#connectBtn {
    background: #e94560;
    color: white;
}

#connectBtn:hover:not(:disabled) { background: #c62744; }

#micBtn {
    background: #0f3460;
    color: white;
}

#micBtn:hover:not(:disabled) { background: #1a4a8a; }
#micBtn.muted { background: #b71c1c; }

#disconnectBtn {
    background: #333;
    color: #ccc;
}

#disconnectBtn:hover:not(:disabled) { background: #555; }

/* Transcript */
#transcript {
    height: 150px;
    overflow-y: auto;
    padding: 10px 20px;
    background: #0d1117;
    border-top: 1px solid #0f3460;
    font-size: 13px;
    line-height: 1.6;
}

#transcript .msg {
    padding: 2px 0;
}

#transcript .msg.agent { color: #e94560; }
#transcript .msg.user { color: #58a6ff; }
#transcript .msg.system { color: #666; font-style: italic; }

/* Audio element hidden */
#remoteAudio { display: none; }
