:root {
  --ink-deep: #112037;
  --ink: #20314a;
  --muted: #68758a;
  --line: rgba(31, 48, 73, 0.11);
  --paper: rgba(255, 255, 255, 0.76);
  --canvas: #f4f1ec;
  --violet: #7564d8;
  --violet-soft: #ebe7ff;
  --healthy: #36b894;
  --healthy-soft: #dff5ed;
  --warning: #d7902f;
  --warning-soft: #faedd7;
  --critical: #c85f69;
  --critical-soft: #fae4e6;
  --unknown: #9aa4b5;
  --shadow: 0 24px 60px rgba(32, 49, 74, 0.09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.atmosphere { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 74% 4%, rgba(117, 100, 216, .17), transparent 29rem), radial-gradient(circle at 22% 88%, rgba(54, 184, 148, .10), transparent 28rem), linear-gradient(145deg, #f8f6f2, #efedf2); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(249, 248, 246, .7); backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; color: var(--ink-deep); text-decoration: none; }
.brand b { display: block; letter-spacing: .08em; font-size: 13px; }
.brand small, .sidebar-foot small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #8373e4, #5e4fc4); color: white; font-weight: 800; font-size: 23px; box-shadow: 0 12px 25px rgba(117,100,216,.28); }
.brand-mark.small { width: 37px; height: 37px; border-radius: 12px; font-size: 17px; }
nav { display: grid; gap: 5px; }
.nav-item { width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; color: #536177; transition: .18s ease; }
.nav-item span { display: inline-grid; width: 25px; font-size: 16px; }
.nav-item:hover { background: rgba(255,255,255,.7); color: var(--ink-deep); }
.nav-item.active { color: #5949bd; background: var(--violet-soft); font-weight: 650; }
.sidebar-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--healthy); box-shadow: 0 0 0 5px rgba(54,184,148,.12); }
main { min-width: 0; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(248,247,244,.48); backdrop-filter: blur(18px); }
.eyebrow { margin: 0 0 7px; color: #7a8495; font-size: 10px; letter-spacing: .16em; font-weight: 750; }
h1, h2, p { margin-top: 0; }
.topbar h1 { margin: 0; color: var(--ink-deep); font-size: 24px; letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.updated { color: var(--muted); font-size: 12px; margin-right: 6px; }
.icon-button, .avatar { border: 1px solid var(--line); background: rgba(255,255,255,.7); cursor: pointer; }
.icon-button { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.avatar { width: 39px; height: 39px; border-radius: 50%; color: white; background: var(--ink-deep); font-size: 11px; font-weight: 700; }
.content { width: min(1450px, 100%); margin: 0 auto; padding: 34px clamp(24px, 4vw, 56px) 70px; }
.verdict { min-height: 168px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; padding: 34px 38px; border: 1px solid rgba(117,100,216,.15); border-radius: 24px; background: linear-gradient(120deg, rgba(255,255,255,.9), rgba(243,239,255,.78)); box-shadow: var(--shadow); }
.verdict::after { content: ""; position: absolute; right: -80px; top: -130px; width: 310px; height: 310px; border-radius: 50%; background: rgba(117,100,216,.08); }
.verdict h2 { margin-bottom: 9px; color: var(--ink-deep); font-size: clamp(29px, 4vw, 48px); letter-spacing: -.055em; }
.verdict p:last-child { margin: 0; color: var(--muted); }
.verdict-orb { position: relative; z-index: 1; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; border: 19px solid var(--unknown); box-shadow: 0 0 0 13px rgba(154,164,181,.11); }
.verdict-orb.healthy { border-color: var(--healthy); box-shadow: 0 0 0 13px rgba(54,184,148,.11); }
.verdict-orb.warning { border-color: var(--warning); box-shadow: 0 0 0 13px rgba(215,144,47,.12); }
.verdict-orb.critical { border-color: var(--critical); box-shadow: 0 0 0 13px rgba(200,95,105,.12); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 30px; }
.metrics article { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.metrics strong { display: block; color: var(--ink-deep); font-size: 23px; letter-spacing: -.04em; }
.metrics small { color: var(--muted); }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.metric-icon.healthy { color: #168568; background: var(--healthy-soft); }
.metric-icon.warning { color: #a66b1d; background: var(--warning-soft); }
.metric-icon.unknown { color: #6e7888; background: #e9ecf1; }
.metric-icon.neutral { color: #5e4fc4; background: var(--violet-soft); }
.workspace, .panel { padding: 26px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: 0 12px 40px rgba(32,49,74,.045); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head.compact { align-items: center; }
.section-head h2, .panel h2 { margin: 0; color: var(--ink-deep); font-size: 19px; letter-spacing: -.03em; }
.legend { display: flex; gap: 15px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--unknown); }
.dot.healthy { background: var(--healthy); }.dot.warning { background: var(--warning); }.dot.critical { background: var(--critical); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-height: 151px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); transition: .18s ease; }
.resource-card:hover { transform: translateY(-2px); border-color: rgba(117,100,216,.28); box-shadow: 0 12px 26px rgba(32,49,74,.07); }
.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-identity { display: flex; gap: 11px; align-items: center; min-width: 0; }
.resource-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 37px; border-radius: 12px; color: #5d50b4; background: var(--violet-soft); font-size: 11px; font-weight: 800; }
.resource-card h3 { overflow: hidden; margin: 0 0 3px; color: var(--ink-deep); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.resource-card .category { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.status { display: inline-flex; gap: 6px; align-items: center; padding: 5px 8px; border-radius: 999px; color: #6d7788; background: #edf0f4; font-size: 10px; font-weight: 700; }
.status.healthy { color: #167c63; background: var(--healthy-soft); }.status.warning { color: #9b631c; background: var(--warning-soft); }.status.critical { color: #a3424c; background: var(--critical-soft); }
.resource-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 11px; }
.resource-meta a { color: #5d50b4; text-decoration: none; font-weight: 650; }
.empty { display: grid; gap: 6px; padding: 34px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.lower-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.quiet { color: var(--healthy); font-size: 11px; font-weight: 700; }
.timeline { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; align-items: start; gap: 11px; }
.timeline b { display: block; margin-bottom: 4px; color: var(--ink-deep); font-size: 13px; }
.timeline small { color: var(--muted); }
.event-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.focus-panel { background: linear-gradient(145deg, rgba(32,49,74,.96), rgba(54,47,102,.94)); color: white; }
.focus-panel .eyebrow { color: #bbb4ea; }.focus-panel h2 { color: white; line-height: 1.35; }
.quick-links { display: grid; gap: 8px; margin-top: 22px; }
.quick-links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #ece9ff; text-decoration: none; font-size: 12px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(440px, 100%); padding: 44px; border: 1px solid rgba(255,255,255,.65); border-radius: 28px; background: rgba(255,255,255,.76); box-shadow: var(--shadow); backdrop-filter: blur(26px); }
.auth-card .brand-mark { margin-bottom: 32px; }.auth-card h1 { margin-bottom: 13px; color: var(--ink-deep); font-size: 36px; letter-spacing: -.055em; }.muted, .auth-note { color: var(--muted); line-height: 1.55; }
.primary { width: 100%; margin-top: 18px; padding: 13px 18px; border: 0; border-radius: 13px; color: white; background: var(--ink-deep); cursor: pointer; font-weight: 700; }
.auth-note { margin: 15px 0 0; font-size: 11px; text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 380px; padding: 13px 16px; border-radius: 12px; color: white; background: var(--ink-deep); box-shadow: var(--shadow); font-size: 12px; }

@media (max-width: 1080px) { .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .shell { display: block; }.sidebar { position: static; width: auto; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { padding-bottom: 15px; } nav { display: flex; overflow-x: auto; }.nav-item { width: auto; flex: 0 0 auto; }.sidebar-foot { display: none; }.topbar { padding: 20px; }.updated { display: none; }.content { padding: 20px 16px 50px; }.verdict { min-height: 150px; padding: 26px; }.verdict-orb { width: 50px; height: 50px; flex-basis: 50px; border-width: 14px; }.resource-grid, .lower-grid { grid-template-columns: 1fr; }.section-head { align-items: start; flex-direction: column; }.legend { flex-wrap: wrap; } }
@media (max-width: 470px) { .metrics { grid-template-columns: 1fr; }.resource-grid { grid-template-columns: 1fr; }.auth-card { padding: 32px 25px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

