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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    color: #0f172a;
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.voice-wave.active {
    opacity: 1;
    transform: translateY(0);
}

.voice-wave span {
    display: block;
    width: 7px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    animation: wave 1s ease-in-out infinite;
    transform-origin: bottom;
}

.voice-wave span:nth-child(2) {
    animation-delay: 0.15s;
}

.voice-wave span:nth-child(3) {
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(4) {
    animation-delay: 0.45s;
}

.agent-card {
    width: min(100%, 520px);
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.1);
}

h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    color: #1d4ed8;
}

.subtitle {
    color: #64748b;
    margin-bottom: 22px;
}

.controls {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 0.95rem;
    font-weight: 600;
}

select,
button {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    font-size: 1rem;
}

select {
    background: #f8fbff;
    color: #0f172a;
}

button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
}

button:hover {
    transform: translateY(-1px);
}

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

.status-panel {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.status-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 1.4s infinite;
}

.status-panel.is-speaking .indicator {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
}

#status-message {
    color: #475569;
    font-size: 0.95rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}