:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --danger: #dc3545;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #333;
    --border: #ddd;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding: 20px;
}

.container { max-width: 720px; margin: 0 auto; }
header { text-align: center; margin-bottom: 24px; }
header h1 { font-size: 1.8rem; margin-bottom: 6px; }
header p { color: #666; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.status {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e9ecef;
    display: inline-block;
}
.status.connected { background: #d4edda; color: #155724; }
.status.error { background: #f8d7da; color: #721c24; }

.controls { display: flex; gap: 10px; margin-bottom: 14px; }

.btn {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform .1s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 8px 14px; font-size: .9rem; background: #e9ecef; color: var(--text); margin: 4px; }
.btn.small:hover { background: #dde2e6; }

.mic-indicator { display: flex; align-items: center; gap: 8px; color: #666; }
.mic-indicator.active { color: var(--primary); font-weight: 600; }

.transcript, .logs {
    max-height: 260px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: .95rem;
}
.transcript .line { margin-bottom: 8px; }
.transcript .agent { color: var(--primary); font-weight: 600; }
.transcript .user { color: #444; }
.transcript .system { color: #888; font-style: italic; font-size: .85rem; }

.logs .log-line {
    font-family: ui-monospace, monospace;
    font-size: .85rem;
    color: #555;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

.shortcuts { text-align: center; }

@media (max-width: 480px) {
    .controls { flex-direction: column; }
    .btn { width: 100%; }
}
