:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #11151d;
  --surface-2: #171c26;
  --line: #282f3c;
  --text: #f4f6f9;
  --muted: #919cac;
  --accent: #ff335f;
  --cyan: #35d6c6;
  --amber: #f4b942;
  --bad: #ff6b75;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% -20%, #202a3b 0, transparent 36rem), var(--bg); color: var(--text); min-height: 100vh; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
main { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 70px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 8px; }
.muted { color: var(--muted); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 10px 0 28px; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ghost, button { border: 1px solid var(--line); color: var(--text); background: var(--surface); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; }
.ghost:hover, button:hover { border-color: #4b5669; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); background: rgba(17,21,29,.82); font-size: .85rem; }
.pill i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.live i { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 12px 14px; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.panel { display: none; gap: 18px; }
.panel.active { display: grid; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric, .surface { background: linear-gradient(145deg, rgba(23,28,38,.93), rgba(15,19,26,.96)); border: 1px solid var(--line); border-radius: var(--radius); }
.metric { min-height: 144px; padding: 20px; position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; right: -24px; bottom: -40px; width: 100px; height: 100px; border-radius: 50%; background: color-mix(in srgb, var(--metric-color, var(--accent)) 12%, transparent); }
.metric-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.metric-value { display: block; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.055em; font-weight: 750; margin: 12px 0 4px; }
.metric-note { color: var(--muted); font-size: .82rem; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.surface { padding: 20px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.section-head .eyebrow { margin-bottom: 5px; }
.detail-list { display: grid; gap: 0; }
.detail { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 13px 0; }
.detail:first-child { border-top: 0; }
.detail span { color: var(--muted); }
.detail strong { text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th { text-align: left; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid rgba(40,47,60,.72); vertical-align: top; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.tag.success, .tag.ok { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }
.tag.failed, .tag.error, .tag.failed_check { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.tag.running { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.activity-list { display: grid; gap: 10px; }
.activity { padding: 13px 14px; border: 1px solid var(--line); background: rgba(9,11,16,.4); border-radius: 12px; }
.activity-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.activity p { margin: 0; color: var(--muted); font-size: .82rem; }
.filters { display: flex; gap: 8px; }
select, input { border: 1px solid var(--line); color: var(--text); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.login-shell { min-height: calc(100vh - 102px); display: grid; place-items: center; }
.login-card { width: min(430px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.login-card label { display: block; font-size: .8rem; color: var(--muted); margin: 24px 0 7px; }
.login-card input { width: 100%; }
.login-card button { width: 100%; background: var(--accent); border-color: var(--accent); font-weight: 700; margin-top: 12px; }
.error { color: var(--bad); min-height: 1.2em; margin: 12px 0 0; font-size: .84rem; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 460px; border: 1px solid var(--bad); background: #241219; color: #ffc6cb; padding: 13px 16px; border-radius: 12px; box-shadow: 0 12px 38px rgba(0,0,0,.35); }
.source-link { color: #9ddcff; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 20px 0; }
@media (max-width: 920px) { .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .split-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { main { width: min(100% - 24px, 1480px); padding-top: 18px; } .topbar { flex-direction: column; } .metric-grid { grid-template-columns: 1fr; } .metric { min-height: 120px; } .image-head { flex-direction: column; } .filters { width: 100%; flex-direction: column; } }

