:root {
    color-scheme: dark;
    --bg: #0b1118;
    --panel: #121b26;
    --panel-2: #172331;
    --text: #edf4fb;
    --muted: #8fa4b8;
    --line: #263646;
    --accent: #e6a64d;
    --accent-2: #f4c477;
    --danger: #ef8b8b;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 12% 0%, #1b2c3d 0, var(--bg) 42rem); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
.topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 24px clamp(20px, 5vw, 72px); }
.page { margin: 0 auto; max-width: 1280px; padding: 42px clamp(20px, 5vw, 72px) 72px; }
.hero, .panel { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px #0003; }
.hero { align-items: end; display: flex; gap: 24px; justify-content: space-between; padding: clamp(24px, 5vw, 52px); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); letter-spacing: -.04em; margin-bottom: 10px; }
p { color: var(--muted); max-width: 720px; }
.eyebrow { color: var(--accent-2); font-size: .72rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 9px; }
.badge, .source { border: 1px solid #956b32; border-radius: 999px; color: var(--accent-2); display: inline-flex; font-size: .75rem; padding: 4px 10px; }
button, .logout, .oidc-button { background: var(--accent); border: 0; border-radius: 10px; color: #1b140b; cursor: pointer; font: inherit; font-weight: 800; padding: 11px 16px; text-decoration: none; }
button:hover, .logout:hover { background: var(--accent-2); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat span, small, .muted { color: var(--muted); display: block; }
.stat strong { display: block; font-size: 1.6rem; margin-top: 5px; }
.panel { overflow: hidden; }
.panel-head { align-items: end; display: flex; justify-content: space-between; padding: 25px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-top: 1px solid var(--line); padding: 14px 18px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td small { margin-top: 3px; }
.auth-page { align-items: center; display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; max-width: 420px; padding: 34px; width: 100%; }
label { color: var(--muted); display: block; font-size: .85rem; margin: 22px 0 7px; }
input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font: inherit; padding: 12px; width: 100%; }
.auth-card button { margin-top: 20px; width: 100%; }
.oidc-button { display: block; text-align: center; width: 100%; }
.separator { align-items: center; color: var(--muted); display: flex; gap: 12px; margin: 24px 0 8px; }
.separator::before, .separator::after { background: var(--line); content: ""; flex: 1; height: 1px; }
.alert { border-radius: 9px; margin: 15px 0; padding: 10px 12px; }
.error { background: #54282d; color: #ffd7d7; }
@media (max-width: 720px) {
    .topbar, .hero, .panel-head { align-items: flex-start; flex-direction: column; }
    .hero button { width: 100%; }
    .stats { grid-template-columns: 1fr; }
}
