:root {
  color-scheme: dark;
  --bg: #091019;
  --sidebar: #0c141f;
  --panel: #101a27;
  --border: #202d3c;
  --text: #eaf1f8;
  --muted: #8493a6;
  --blue: #2b8cff;
  --green: #28d39b;
  --red: #ff5d68;
  --amber: #f6ad43;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; padding: 28px 18px 20px; background: var(--sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; font-size: 19px; font-weight: 720; letter-spacing: -.3px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: linear-gradient(145deg, #1785ff, #7757ff); box-shadow: 0 8px 24px #267eff42; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 13px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 550; }
nav a span { width: 19px; font-size: 19px; text-align: center; }
nav a small { margin-left: auto; padding: 2px 6px; border-radius: 4px; background: #1c2937; color: #758599; font-size: 9px; text-transform: uppercase; }
nav a:hover, nav a.active { color: #fff; background: #162435; }
nav a.active { box-shadow: inset 3px 0 var(--blue); }
.sidebar-bottom { margin-top: auto; }
.collector-state { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: #101b28; }
.collector-state i, .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #28d39b1d, 0 0 10px #28d39b88; }
.collector-state div { display: grid; }.collector-state strong { font-size: 12px; }.collector-state span { color: var(--muted); font-size: 10px; }
.sidebar-bottom > p { margin: 14px 4px 0; color: #546274; font-size: 11px; }
main { min-height: 100vh; margin-left: 238px; padding: 38px 42px; }
header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 31px; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.7px; }.subtitle { margin: 5px 0 0; color: var(--muted); }
.header-actions { display: flex; gap: 10px; align-items: center; }.live { display: flex; align-items: center; gap: 8px; padding: 8px 13px; color: #b8c5d3; border: 1px solid var(--border); border-radius: 8px; background: #0f1925; font-size: 12px; }
button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; color: #a9b6c5; background: #0f1925; font-size: 18px; cursor: pointer; } button:hover { color: white; border-color: #3a4c60; } button:disabled { cursor: wait; opacity: .65; }
.user-badge { padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; color: #b8c5d3; background: #0f1925; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metrics article { display: flex; gap: 14px; min-height: 112px; padding: 21px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(135deg, #111c29, #0e1722); box-shadow: 0 10px 30px #00000015; }
.metric-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; font-size: 19px; font-weight: bold; }
.metric-icon.blue { color: #5ea8ff; background: #2085ff1b; }.metric-icon.red { color: #ff737d; background: #ff5d6819; }.metric-icon.green { color: #39dda9; background: #28d39b19; }.metric-icon.amber { color: #f8bb62; background: #f6ad4319; }
.metrics article > div:last-child { display: grid; }.metrics span { color: #7f8fa3; font-size: 9px; font-weight: 750; letter-spacing: .85px; }.metrics strong { margin-top: 2px; font-size: 25px; letter-spacing: -.5px; }.metrics small { color: #657487; font-size: 10px; }
.panel { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--border); }
h2 { margin: 0; font-size: 15px; }.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.filters { display: flex; gap: 8px; }.search { display: flex; align-items: center; gap: 7px; width: 238px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: #0b141f; color: #77879a; }
input, select { color: #b7c3d0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; } input { width: 100%; } select { min-width: 154px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: #0b141f; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th { height: 38px; color: #637286; background: #0d1722; font-size: 9px; text-align: left; letter-spacing: .8px; } th, td { padding: 0 16px; } tbody tr { height: 58px; border-top: 1px solid #1b2836; } tbody tr:hover { background: #142130; } td { color: #b6c2cf; font-size: 11px; white-space: nowrap; } td.message { max-width: 390px; overflow: hidden; color: #d5dee7; text-overflow: ellipsis; }.mono { color: #8495a8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.severity { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 750; text-transform: uppercase; }.severity::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.sev-0,.sev-1,.sev-2,.sev-3 { color: #ff737d; background: #ff5d6815; }.sev-4 { color: #f8bb62; background: #f6ad4315; }.sev-5,.sev-6 { color: #55a6ff; background: #2b8cff15; }.sev-7,.sev-null { color: #95a4b5; background: #95a4b511; }
.transport { padding: 3px 6px; border: 1px solid #2b3a4b; border-radius: 4px; color: #7f91a5; font-size: 9px; text-transform: uppercase; }.empty { height: 180px; color: var(--muted); text-align: center; }
.panel-foot { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); color: #667588; background: #0d1722; font-size: 10px; }
.users-panel { margin-top: 20px; }
.user-form { display: grid; grid-template-columns: 1fr 1fr 160px auto; gap: 12px; align-items: end; padding: 20px; border-bottom: 1px solid var(--border); }
.user-form label, .login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.user-form input, .user-form select, .login-form input { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: #0b141f; }
button.primary { width: auto; min-width: 125px; padding: 0 18px; color: white; border-color: #217ce5; background: linear-gradient(135deg, #167ef5, #5b5ce2); font-size: 12px; font-weight: 700; }
.form-message { min-height: 20px; margin: 10px 20px; color: var(--green); font-size: 12px; }.form-message.error { color: var(--red); }
.user-action { width: auto; height: 30px; padding: 0 9px; font-size: 10px; }
.login-page { min-height: 100vh; background: radial-gradient(circle at 50% 20%, #132a45, var(--bg) 50%); }
.login-shell { display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 15px; background: #101a27; box-shadow: 0 25px 80px #0008; }
.login-brand { padding: 0 0 30px; }.login-card h1 { margin-top: 0; }.login-card .subtitle { margin-bottom: 28px; }
.login-form { display: grid; gap: 16px; }.login-form button { min-height: 42px; margin-top: 4px; }
@media (max-width: 1050px) { .metrics { grid-template-columns: repeat(2, 1fr); }.panel-head { align-items: flex-start; gap: 15px; flex-direction: column; }.filters { width: 100%; }.search { flex: 1; }.user-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .sidebar { position: static; width: auto; height: auto; padding: 18px; }.sidebar nav, .sidebar-bottom { display: none; }.brand { padding: 0; } main { margin: 0; padding: 24px 18px; }.metrics { grid-template-columns: 1fr; }.filters { flex-direction: column; }.search, select { width: 100%; min-height: 36px; } }
