:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121922;
  --panel-2: #17202b;
  --line: #2a3644;
  --text: #e6edf3;
  --muted: #95a7b8;
  --accent: #48a6ff;
  --ok: #7ee787;
  --warn: #f5c451;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
}
a { color: inherit; overflow-wrap: anywhere; }
.shell { min-height: 100vh; max-width: 100%; overflow-x: hidden; }
.topbar {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: #101720;
  max-width: 100%;
}
.badge-row, .card-meta, .static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  min-height: 26px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.side-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #0e141b;
}
.nav-link {
  display: block;
  max-width: 100%;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 10px;
  margin-bottom: 6px;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nav-link:hover { border-color: var(--line); background: var(--panel); }
main { padding: 24px; min-width: 0; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h1 { font-size: 32px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 10px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p, li, .subtitle, .muted, .metric, .static-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.subtitle, .muted { color: var(--muted); }
.hero, .section, .report-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  max-width: 100%;
  min-width: 0;
}
.hero { padding: 22px; margin-bottom: 18px; }
.section { padding: 18px; margin-bottom: 18px; }
.section-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}
.report-card { padding: 16px; background: var(--panel-2); }
.metric { color: var(--accent); }
ul { color: var(--muted); padding-left: 18px; }
.static-label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--text);
  background: #111a24;
  font-size: 12px;
  line-height: 1.35;
}
.static-label.disabled { color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 20px 24px 32px; color: var(--muted); }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .topbar { padding: 20px 16px 16px; }
  h1 { font-size: 26px; line-height: 1.12; }
  h2 { font-size: 19px; line-height: 1.2; }
  h3 { font-size: 15px; line-height: 1.25; }
  main { padding: 16px; }
  .hero, .section { padding: 16px; margin-bottom: 14px; }
  .side-nav {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }
  .side-nav::before {
    content: "Navigation";
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .nav-link { padding: 8px 9px; margin-bottom: 5px; }
  .badge-row, .card-meta, .static-actions { gap: 6px; }
  .badge, .static-label { white-space: normal; }
  .card-grid, .section-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding: 18px 16px 28px; }
}
