:root {
    color-scheme: dark;
    --primary: #a3e635;
    --primary-soft: rgba(163, 230, 53, 0.15);
    --border: rgba(163, 230, 53, 0.25);
    --danger: #ef4444;
    --text-secondary: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #0a0c0e, #101316 55%, #0e1013 100%);
    min-height: 100vh;
}
h1 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin: 0; }
h2 { font-size: 0.95rem; font-weight: 500; margin: 1.25rem 0 0.5rem; opacity: 0.9; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.controls { display: flex; gap: 0.5rem; }
select, button { font: inherit; color: inherit; background: var(--primary-soft); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.8rem; }
button { cursor: pointer; }
.kpis { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.kpi { padding: 0.75rem 1rem; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--border); min-width: 150px; }
.kpi .v { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; color: var(--primary); }
.kpi .l { font-size: 0.8rem; opacity: 0.75; }
.chart svg { width: 100%; height: 220px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; margin-top: 0.5rem; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.35rem; background: var(--c); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
td, th { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
a { color: var(--primary); }
.note { font-size: 0.75rem; opacity: 0.6; margin-top: 1.25rem; line-height: 1.5; }
.status { padding: 0.6rem 0.8rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.85rem; background: rgba(59, 130, 246, 0.15); }
.status.danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand img { height: 44px; }
.brand span { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--primary); }
.account { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); }
main.card, .login { max-width: 1200px; margin: 0 auto; }
.login { max-width: 380px; margin-top: 8vh; display: flex; flex-direction: column; gap: 0.75rem; }
.login form { display: flex; flex-direction: column; gap: 0.5rem; }
input { font: inherit; color: inherit; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.8rem; }
button.primary { background: var(--primary); color: #0a0c0e; font-weight: 600; border: 0; }
.muted { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }
.small { font-size: 0.8rem; }
[hidden] { display: none !important; }
button.twitch { background: #9146ff; color: #fff; font-weight: 600; border: 0; }
