:root {
    --primary: #6c5ce7;
    --bg: #0f0c29;
    --card: #1e1b4b;
    --text: #f8f9fa;
    --dim: #a0aec0;
    --accent: #00d2ff;
    --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg), #302b63);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 40px;
}
header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.25);
}
header a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.1rem; margin: 0; }
main { padding: 16px; max-width: 720px; margin: 0 auto; }
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.section-title {
    font-size: 0.85rem;
    color: var(--dim);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
label.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
}
label.row:last-child { border-bottom: none; }
input[type="text"] {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 6px;
}
input[type="range"] { width: 120px; }
.hint { font-size: 0.75rem; color: var(--dim); margin-top: 4px; }
button, .btn-block {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
.btn-block { width: 100%; margin-top: 12px; }
button.small { padding: 6px 10px; font-size: 0.8rem; }
button.secondary { background: rgba(255,255,255,0.12); }
.role-item, .pending-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}
.role-item h4 { margin: 0 0 6px; }
.aliases { font-size: 0.8rem; color: var(--dim); }
.badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(0,210,255,0.2);
    color: var(--accent);
}
.badge.warn { background: rgba(251,191,36,0.2); color: var(--warn); }
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    padding: 10px 20px;
    border-radius: 20px;
    display: none;
    z-index: 99;
}
.toast.show { display: block; }
select.voice-select {
    max-width: 220px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 4px 8px;
}
