:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #69768c;
  --line: #e4e9f2;
  --line-strong: #d5ddea;
  --nav: #0d1729;
  --nav-soft: #152238;
  --accent: #4268f4;
  --accent-strong: #3457d5;
  --accent-soft: #edf2ff;
  --green: #12855d;
  --green-soft: #e6f7f0;
  --red: #c53d4a;
  --red-soft: #fdecef;
  --amber: #a76b08;
  --amber-soft: #fff5df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 38px rgba(23, 37, 65, 0.07);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.align-right { text-align: right !important; }

/* ---------- login ---------- */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 15%, rgba(79, 124, 255, 0.34), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(58, 202, 176, 0.2), transparent 30%),
    linear-gradient(145deg, #0a1222 0%, #111d35 58%, #0b1528 100%);
}

.login-card {
  width: min(430px, 100%);
  padding: 38px 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(145deg, #5b86ff, #3056d8);
  box-shadow: 0 10px 24px rgba(66, 104, 244, 0.35);
}

.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }

.login-heading { margin: 22px 0 26px; }
.login-heading h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.5px; }
.login-heading p { margin: 0; color: var(--muted); }
.login-card form { display: grid; gap: 16px; }
.login-hint { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-hint code { padding: 1px 5px; border-radius: 5px; background: #eef2fa; color: #40557d; }

/* ---------- app shell ---------- */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  color: #dbe5f7;
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 112, 255, 0.2), transparent 40%),
    var(--nav);
}

.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 26px; }
.brand strong { display: block; color: #fff; font-size: 15px; letter-spacing: 0.2px; }
.brand span { display: block; color: #8092b1; font-size: 11px; }

.nav { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9eafc8;
  text-align: left;
  transition: 0.16s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
  color: #fff;
  border-color: rgba(112, 145, 255, 0.26);
  background: linear-gradient(90deg, rgba(71, 105, 226, 0.34), rgba(71, 105, 226, 0.12));
  box-shadow: inset 3px 0 0 #6d92ff;
}
.nav-icon {
  width: 21px;
  color: #8297b8;
  font-size: 16px;
  text-align: center;
}
.nav-item.active .nav-icon { color: #9db7ff; }

.sidebar-foot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7488a8;
  font-size: 11px;
}
.health-line { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #9db0ca; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}

.workspace { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 34px 18px;
  border-bottom: 1px solid rgba(220, 227, 239, 0.8);
  background: rgba(243, 246, 251, 0.88);
  backdrop-filter: blur(14px);
}
.page-heading h1 { margin: 0; font-size: 20px; letter-spacing: -0.3px; }
.page-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.endpoint-pill {
  padding: 6px 10px;
  border: 1px solid #dbe4f9;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3c5bc2;
  font-family: var(--mono);
  font-size: 11px;
}

.content { padding: 28px 34px 56px; max-width: 1480px; width: 100%; margin: 0 auto; }
.view { animation: viewIn 0.22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.8fr);
  gap: 26px;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: 20px;
  color: #eaf0ff;
  background:
    radial-gradient(circle at 82% 20%, rgba(108, 140, 255, 0.32), transparent 38%),
    radial-gradient(circle at 5% 110%, rgba(38, 201, 178, 0.16), transparent 42%),
    linear-gradient(120deg, #101c34, #1a2b53 62%, #152342);
  box-shadow: 0 20px 50px rgba(22, 37, 68, 0.18);
}
.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(151, 178, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(151, 178, 255, 0.045), 0 0 0 78px rgba(151, 178, 255, 0.025);
  pointer-events: none;
}
.hero-main { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #8fa9df;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero h2 { margin: 0 0 8px; font-size: clamp(22px, 2.7vw, 31px); line-height: 1.2; letter-spacing: -0.6px; }
.hero p { max-width: 680px; margin: 0; color: #aebbd6; font-size: 13px; }
.copy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 580px;
  margin-top: 22px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(157, 180, 229, 0.22);
  border-radius: 11px;
  background: rgba(6, 12, 25, 0.34);
}
.copy-line code { flex: 1; min-width: 0; overflow: hidden; color: #cfe0ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(160, 184, 235, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7ff;
  font-size: 11px;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding-left: 22px;
  border-left: 1px solid rgba(159, 183, 232, 0.16);
}
.hero-metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #8fa3c8; font-size: 11px; }
.hero-metric strong { display: flex; align-items: center; gap: 7px; color: #f0f5ff; font-size: 13px; font-weight: 600; }

/* ---------- cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.stat-card {
  padding: 19px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 4px 15px rgba(25, 39, 66, 0.025);
}
.stat-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; font-size: 25px; letter-spacing: -0.7px; line-height: 1.25; }
.stat-card small { display: block; margin-top: 4px; color: #8a96a9; font-size: 10.5px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; margin-bottom: 18px; }

.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.overview-split .panel { margin-bottom: 0; }

.usage-list { display: grid; gap: 15px; padding: 0 21px 21px; }
.usage-row { display: grid; gap: 6px; }
.usage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.usage-name { color: var(--ink); font-size: 12px; font-weight: 600; }
.usage-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.usage-meta { overflow: hidden; color: #8b98ab; font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.usage-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #edf1f8; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b7df6, #36b99a); }

.log-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.filter-field { display: grid; gap: 5px; min-width: 150px; }
.filter-field.grow { flex: 1 1 260px; }
.filter-field span { color: #68768c; font-size: 10.5px; font-weight: 500; }
.filter-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 11.5px;
}
.filter-field input:focus { border-color: #7d9af7; box-shadow: 0 0 0 3px rgba(66, 104, 244, 0.1); }
.filter-actions { display: flex; gap: 7px; padding-bottom: 1px; }

.panel {
  min-width: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 21px 14px;
}
.panel-head h3 { margin: 0; font-size: 14px; letter-spacing: -0.1px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.live-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.ranking { padding: 0 21px 19px; display: grid; gap: 13px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.rank-name { overflow: hidden; font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { color: var(--muted); font-size: 11px; }
.rank-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: #eef2f9; }
.rank-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5479f5, #7b6cf2); }

.code-block {
  margin: 0 21px 21px;
  padding: 16px;
  overflow: auto;
  border-radius: 11px;
  background: #0f1a2e;
  color: #c6d7f4;
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
  color: #7b879a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table th:first-child, .data-table td:first-child { padding-left: 21px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 21px; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfe; }
.data-table .mono { font-family: var(--mono); font-size: 11px; }
.cell-main { display: block; color: var(--ink); font-weight: 600; }
.cell-sub { display: block; margin-top: 1px; color: #93a0b4; font-size: 10.5px; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; white-space: nowrap; }

.empty { padding: 30px 20px; color: #8c99ad; font-size: 12px; text-align: center; }

/* ---------- badges / buttons ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.gray { background: #eff2f7; color: #6f7c90; }
.badge.blue { background: var(--accent-soft); color: #3d5bc1; }
.badge.purple { background: #f0edff; color: #6b50cf; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: #3f4d63;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.15s ease;
}
.btn:hover { border-color: #bfcce0; background: #f8faff; }
.btn.primary { border-color: transparent; background: linear-gradient(135deg, #5279f7, #3f61df); color: #fff; box-shadow: 0 6px 16px rgba(66, 104, 244, 0.22); }
.btn.primary:hover { background: linear-gradient(135deg, #456ce9, #3554cc); }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.ghost:hover { background: #fff; }
.btn.danger { border-color: #f1c9ce; background: #fff7f8; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { min-height: 28px; padding: 4px 9px; font-size: 11px; }
.btn.block { width: 100%; min-height: 42px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.danger-text { color: var(--red); }
.icon-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7c89a0;
  font-size: 12px;
}
.icon-action:hover { border-color: var(--line); background: #f7f9fd; color: var(--ink); }

/* ---------- section head / forms ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 17px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -0.3px; }
.section-head p { max-width: 720px; margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.inline-actions { display: flex; align-items: center; gap: 8px; }
.select-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.select-label select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.field { display: grid; gap: 6px; align-content: start; }
.field > span { color: #526076; font-size: 11.5px; font-weight: 500; }
.field small { color: #8d99ac; font-size: 10.5px; line-height: 1.5; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-size: 12.5px;
  transition: 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #7d9af7;
  box-shadow: 0 0 0 3px rgba(66, 104, 244, 0.1);
}
.field textarea { resize: vertical; min-height: 68px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 0 21px 21px; }
.form-grid .span-2 { grid-column: span 2; }
.check-field { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.check-field input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); }
.check-field span { display: grid; gap: 2px; }
.check-field strong { font-size: 12px; }
.check-field small { color: var(--muted); font-size: 10.5px; }
.form-error { min-height: 17px; margin: 0; color: var(--red); font-size: 11.5px; }
.form-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 9px; background: #f7f9fd; color: var(--muted); font-size: 11px; }
.settings-form { display: grid; gap: 0; }
.settings-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 2px 2px 12px; }
.config-path { color: var(--muted); font-size: 11px; }
.config-path code { padding: 2px 6px; border-radius: 5px; background: #e9eef9; color: #455b84; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 34, 0.54);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(6, 15, 32, 0.3);
  animation: modalIn 0.18s ease;
}
.modal.wide { width: min(780px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; flex: none; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 21px 23px 15px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f2f5fa; color: #75839a; font-size: 16px; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 20px 23px; overflow-y: auto; }
.modal-foot { display: flex; flex: none; justify-content: flex-end; gap: 9px; padding: 14px 23px 20px; border-top: 1px solid var(--line); }
.modal-form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.modal-form .form-grid { padding: 0; }
.modal-form .field input, .modal-form .field select, .modal-form .field textarea { background: #fcfdff; }

.result-box { display: grid; gap: 12px; }
.result-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #edf1f7; font-size: 12px; }
.result-line:last-child { border-bottom: 0; }
.result-line span { color: var(--muted); }
.result-line strong { text-align: right; word-break: break-word; }
.result-output { max-height: 220px; overflow: auto; padding: 12px; border-radius: 9px; background: #f7f9fd; color: #47546b; font-family: var(--mono); font-size: 11px; white-space: pre-wrap; }

/* ---------- toast ---------- */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 9px; width: min(380px, calc(100vw - 44px)); }
.toast {
  padding: 12px 14px;
  border: 1px solid #dce4f1;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 33, 60, 0.16);
  color: #354156;
  font-size: 12px;
  animation: toastIn 0.2s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .overview-split { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 0 0; border-top: 1px solid rgba(159, 183, 232, 0.16); border-left: 0; }
  .hero-metric { display: grid; gap: 2px; }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 15px 16px 10px; }
  .brand { padding-bottom: 12px; }
  .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .nav-item { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 10px; text-align: center; }
  .nav-item.active { box-shadow: inset 0 -3px 0 #6d92ff; }
  .nav-icon { width: auto; font-size: 14px; }
  .sidebar-foot { display: none; }
  .topbar { position: static; padding: 18px 20px 15px; }
  .page-heading p { display: none; }
  .content { padding: 20px 20px 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .settings-foot { align-items: flex-start; flex-direction: column; }
  .log-filter-bar { align-items: stretch; flex-direction: column; }
  .filter-field, .filter-field.grow { min-width: 0; }
  .filter-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-actions .endpoint-pill { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 22px; }
  .hero-side { grid-template-columns: 1fr; gap: 9px; }
  .hero-metric { display: flex; justify-content: space-between; }
  .content { padding: 16px 14px 36px; }
  .modal-backdrop { padding: 12px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
}
