:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1410;
  color: #e9eee8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #b7deb5; outline-offset: 3px; }

.shell { max-width: 1240px; margin: 0 auto; padding: 24px 34px 20px; }
.topbar, .header-right, .brand, .actions, .panel-heading, .section-heading, .health-state, .health-footer, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar { gap: 24px; padding-bottom: 19px; border-bottom: 1px solid #29362b; }
.brand { justify-content: flex-start; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #b7d1b3; color: #172419; font-weight: 850; font-size: 19px; }
.brand-muted { color: #87a48a; }
.header-right { justify-content: flex-end; gap: 24px; }
.version, .micro-label, .eyebrow, .metric-label, .footer { font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.version { color: #829787; }
.version span { padding: 0 5px; color: #4d6453; }
.nav-link { border: 1px solid #465a49; border-radius: 8px; padding: 10px 14px; color: #e0ece0; font-size: 12px; font-weight: 650; }
.nav-link:hover, .button.secondary:hover { background: #223027; }

.overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .86fr); align-items: end; gap: 32px; padding: 36px 0 30px; }
.eyebrow { margin: 0; color: #a9cdaa; display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 20px; height: 1px; background: #a9cdaa; }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.058em; margin: 17px 0 14px; font-weight: 750; }
h1 span { color: #9fbea1; }
.intro { color: #a9b8a9; font-size: 13px; line-height: 1.75; max-width: 570px; margin: 0; }
.actions { justify-content: flex-start; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 11px 15px; }
.button.primary { background: #dce8db; color: #17231a; }
.button.primary:hover { background: #b8d4b6; }
.button.secondary { border: 1px solid #3c5140; color: #d5e2d4; }

.health-panel, .metric, .detail-panel { background: #181f19; border: 1px solid #2f3e32; border-radius: 12px; }
.health-panel { min-height: 171px; padding: 20px; }
.panel-heading { gap: 10px; }
.micro-label { color: #91ab93; }
.refresh { width: 29px; height: 29px; border-radius: 7px; border: 1px solid #415444; background: transparent; color: #c1d2bf; font-size: 20px; line-height: 1; cursor: pointer; }
.refresh:hover:not(:disabled) { background: #2b392e; }
.refresh:disabled { opacity: .5; cursor: wait; }
.health-state { justify-content: flex-start; gap: 11px; margin-top: 22px; }
.health-state strong { font-size: 17px; letter-spacing: -.02em; }
.status-indicator { display: block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #99d19a; box-shadow: 0 0 14px #99d19a77; }
.status-indicator.is-loading { background: #d4b878; box-shadow: none; }
.status-indicator.is-error { background: #f19b8f; box-shadow: none; }
.health-description { font-size: 11px; color: #a4b6a6; margin: 8px 0 22px 20px; }
.health-footer { border-top: 1px solid #324035; padding-top: 11px; gap: 10px; flex-wrap: wrap; font-size: 10px; color: #829887; }
.separator { padding: 0 4px; color: #5c7560; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 16px 17px 15px; min-width: 0; }
.metric-label { color: #9fb5a1; letter-spacing: .07em; }
.metric-value { display: block; font-size: 35px; font-weight: 700; line-height: 1.05; letter-spacing: -.055em; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.metric-help { color: #8ca18f; font-size: 10px; line-height: 1.5; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.detail-panel { padding: 18px 20px 14px; min-width: 0; }
.section-heading { gap: 10px; padding-bottom: 13px; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.035em; font-weight: 700; }
.module-row { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-top: 1px solid #303e32; }
.module-code { flex-shrink: 0; color: #68846d; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.module-content { flex: 1; min-width: 0; }
.module-content strong { font-size: 12px; font-weight: 650; }
.module-content p { margin: 4px 0 0; font-size: 10px; color: #8fa392; line-height: 1.4; }
.chip { font-size: 10px; border-radius: 5px; padding: 5px 7px; flex-shrink: 0; }
.chip.enabled { background: #263d2c; color: #b0d4b1; }
.chip.planned { background: #323329; color: #d5c19b; }
.endpoint-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #303e32; min-height: 41px; }
.method { min-width: 35px; color: #a4cfaa; font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.method.write { color: #e0c48e; }
.endpoint-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; color: #cedacf; }
.endpoint-row a { color: #a6c9aa; font-size: 16px; }
.endpoint-row a:hover { color: #eff7ec; }
.endpoint-note { font-size: 10px; color: #839786; }
.stack { border-top: 1px solid #303e32; margin-top: 1px; padding-top: 13px; color: #a0b1a0; font-size: 10px; line-height: 1.6; }
.stack span { color: #9cbc9c; font-size: 10px; font-weight: 800; letter-spacing: .07em; margin-right: 9px; }
.stack b { color: #57705c; padding: 0 3px; font-weight: normal; }
.footer { font-weight: 500; letter-spacing: 0; color: #7d927f; border-top: 1px solid #29362b; margin-top: 24px; padding: 17px 0 0; gap: 20px; font-size: 10px; }
.footer span:first-child { white-space: nowrap; letter-spacing: .12em; font-weight: 750; }

@media (max-width: 870px) {
  .overview { grid-template-columns: 1fr; align-items: stretch; gap: 20px; padding-top: 30px; }
  .health-panel { min-height: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { padding: 18px 16px; }
  .topbar { gap: 10px; }
  .version { display: none; }
  .nav-link { font-size: 11px; padding: 9px; }
  h1 { font-size: 38px; }
  .metric { padding: 14px; }
  .metric-label { font-size: 9px; }
  .metric-help { font-size: 10px; }
  .detail-panel { padding: 16px; }
  .module-row { gap: 9px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
