:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121a2f;
  --panel-2: #17213a;
  --line: #26324f;
  --text: #e7ecf7;
  --muted: #8d9ab5;
  --accent: #6ea8fe;
  --ok: #42d392;
  --warn: #f0b45a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 75% -10%, #1b2a52 0%, var(--bg) 55%);
  color: var(--text);
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 29, .82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6ea8fe, #8b5cf6);
  font-weight: 800; color: #08101f; letter-spacing: -.5px;
}
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #22304f; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
}
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; }
.sidebar { padding: 28px 18px; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); }
.nav-item {
  display: block; padding: 9px 12px; margin-bottom: 4px;
  color: var(--muted); text-decoration: none; border-radius: 8px;
}
.nav-item:hover { color: var(--text); background: #17213a; }
.nav-item.active { color: var(--text); background: #1b2642; }
.side-note { margin-top: 28px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #10182b; }
.side-note-title { font-weight: 650; margin-bottom: 6px; }
.side-note p { margin: 0; color: var(--muted); font-size: 12px; }
.content { padding: 28px 32px 48px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
h1 { font-size: 24px; margin: 0 0 5px; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
p { margin: 0; }
.btn {
  appearance: none; border: 1px solid #35528c; color: #dbe8ff;
  background: #1b2b4d; border-radius: 8px; padding: 9px 14px;
  font: inherit; cursor: pointer;
}
.btn:hover { background: #223762; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.card { background: linear-gradient(180deg, var(--panel), #0f1729); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: 26px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.02em; }
.stat-foot { font-size: 12px; }
.stat-foot.ok, .ok { color: var(--ok); }
.stat-foot.warn, .warn { color: var(--warn); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 500; border-top: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); }
.pill-ok { color: var(--ok); border-color: rgba(66, 211, 146, .35); background: rgba(66, 211, 146, .08); }
.pill-warn { color: var(--warn); border-color: rgba(240, 180, 90, .35); background: rgba(240, 180, 90, .08); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plain li:first-child { border-top: 0; }
.notice { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 14px; border-color: rgba(240, 180, 90, .28); }
.notice p { color: var(--muted); margin-top: 5px; }
.footer { max-width: 1280px; margin: 0 auto; padding: 18px 32px 28px; color: #61708e; font-size: 12px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .content { padding: 20px 16px 36px; }
  .grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}
