:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1e2c40;
  background: #f5f7fa;
  font-synthesis: none;
  --ink: #1e2c40;
  --muted: #64738a;
  --line: #e4e9f0;
  --accent: #4966c9;
  --soft: #eef2fd;
  --danger: #bd4b4b;
  --amber: #b17b24;
  --green: #168772;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #8ba2f4;
  outline-offset: 3px;
}
button,
select {
  min-height: 42px;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  background: #f4f6fb;
  border-color: #c6d0e1;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover {
  background: #3b55b0;
}
button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.4px;
  padding: 0 7px;
}
.brand-icon {
  display: grid;
  place-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #253a56;
  color: #fff;
  font-size: 21px;
  letter-spacing: -2px;
  font-weight: 650;
  padding-right: 4px;
}
.brand-icon span {
  position: absolute;
  right: 3px;
  top: 0;
  font-size: 13px;
  color: #a9d9e0;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 600;
}
.nav-caption {
  margin: 44px 12px 13px;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #8491a4;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  color: #637187;
  white-space: nowrap;
}
.sidebar nav a:hover {
  background: #f7f8fb;
  color: var(--ink);
}
.sidebar nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 650;
}
.nav-icon {
  font-size: 21px;
  line-height: 18px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 9px 0;
  font-size: 10px;
  color: var(--muted);
}
.sidebar-bottom strong {
  font-size: 11px;
  font-weight: 600;
  color: #495970;
}
.sidebar-bottom p {
  margin: 8px 0;
  line-height: 1.5;
}
.status-dot {
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: #3b9e7a;
  margin-right: 6px;
}
.muted {
  color: var(--muted);
}
main {
  margin-left: 224px;
  padding: 0 38px;
  max-width: 1660px;
}
.topline {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.slash {
  margin: 0 12px;
  color: #b4bdca;
}
.text-link {
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.35px;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  font-weight: 650;
}
p {
  line-height: 1.7;
}
header.page-heading {
  padding: 34px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: #748299;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.badge {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  color: #627189;
  background: #f8fafc;
  white-space: nowrap;
}
.badge.blue {
  background: #eef2fd;
  border-color: #e2e8fb;
  color: #536fb8;
}
.badge.green {
  background: #eef8f3;
  border-color: #d9ece2;
  color: #2e7d5c;
}
.badge.amber {
  background: #fff7e9;
  border-color: #f1dfbd;
  color: #926724;
}
.badge.red {
  background: #fdf1f1;
  border-color: #f1d9d9;
  color: #a64b4b;
}
.heading-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 26px;
  padding: 22px 0;
}
.stat {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-bottom: 9px;
}
.stat-value {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stat-sub {
  font-size: 10px;
  color: #8290a4;
  margin-top: 6px;
  display: block;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  margin-bottom: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.full-card {
  margin-bottom: 22px;
}
.insight-card {
  background: #f0f3fa;
  border: 1px solid #e0e7f3;
  border-radius: var(--radius);
  padding: 25px;
  min-width: 0;
}
.insight-card h2 {
  font-size: 16px;
}
.insight-item {
  padding: 19px 0;
  border-bottom: 1px solid #dde4ef;
}
.insight-item:last-of-type {
  border: 0;
}
.insight-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}
.insight-item p {
  font-size: 12px;
  color: #65748c;
  margin: 6px 0 0;
  line-height: 1.65;
}
.insight-index {
  font:
    10px ui-monospace,
    monospace;
  color: #8a99b0;
  display: block;
  margin-bottom: 5px;
}
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.controls label,
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
  min-width: 0;
}
.controls select {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 30px 8px 11px;
  font-size: 12px;
  max-width: 100%;
  width: 100%;
}
.controls .grow {
  flex: 1;
  min-width: 155px;
}
.control-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 12px;
}
.segmented {
  display: inline-flex;
  background: #f1f4f8;
  padding: 3px;
  border-radius: 7px;
  gap: 2px;
  max-width: 100%;
}
.segmented button {
  border: 0;
  background: none;
  font-size: 11px;
  min-height: 33px;
  padding: 7px 11px;
  color: var(--muted);
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px #1d2d4912;
  color: var(--ink);
}
.check-control {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  min-height: 38px;
}
.check-control input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.load-control {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.load-control label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.load-control input {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
  margin: 0;
}
.load-value {
  font-size: 12px;
  font-weight: 650;
  min-width: 72px;
  text-align: right;
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 14px 0 12px;
}
.bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.backend-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.backend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--series);
}
.metric-number {
  font:
    600 18px ui-sans-serif,
    system-ui;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.metric-number small {
  font:
    11px ui-sans-serif,
    system-ui;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 3px;
}
.bar-track {
  height: 10px;
  border-radius: 3px;
  background: #f1f4f8;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--series);
  border-radius: 3px;
  min-width: 2px;
}
.bar-fill.empty {
  min-width: 0;
  width: 0;
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  font-size: 10px;
  color: #77869a;
  line-height: 1.6;
}
.row-detail {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 10px;
  min-height: 30px;
  padding: 3px 0;
}
.row-detail:hover {
  background: transparent;
  text-decoration: underline;
}
.outcome-bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: #edf0f5;
  margin-top: 5px;
}
.outcome-bar span {
  min-width: 0;
}
.chart-note {
  font-size: 10px;
  color: #7a8799;
  line-height: 1.7;
  margin: 12px 0 0;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-svg text {
  font:
    10px ui-sans-serif,
    system-ui;
  fill: #7b899c;
}
.chart-svg .chart-point {
  cursor: pointer;
}
.chart-svg .chart-point:hover {
  stroke-width: 4px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  height: 3px;
  width: 15px;
  display: inline-block;
  background: var(--series);
  border-radius: 2px;
}
.section-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 15px;
}
.section-caption h2 {
  font-size: 17px;
}
.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.finding {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.finding .eyebrow {
  font-size: 9px;
}
.finding p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.notice {
  padding: 12px 15px;
  border-left: 3px solid #a5b7e5;
  background: #f4f7fd;
  font-size: 11px;
  color: #596b87;
  line-height: 1.8;
  margin: 18px 0 0;
  border-radius: 0 5px 5px 0;
}
.notice.amber {
  background: #fff9ee;
  border-color: #dcba79;
  color: #886a3c;
}
.notice.red {
  background: #fdf3f3;
  border-color: #d99595;
  color: #995a5a;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-weight: 550;
  background: #f8fafc;
  color: #768397;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  text-align: left;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfe;
}
td strong {
  font-weight: 600;
}
.error-text {
  color: var(--danger);
}
.good-text {
  color: var(--green);
}
.nowrap {
  white-space: nowrap;
}
.filter-panel {
  margin-bottom: 22px;
}
.filter-panel .controls > label {
  flex: 1;
  min-width: 150px;
}
.backend-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.backend-filters > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 7px;
}
.backend-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
}
.backend-toggle[aria-pressed="true"] {
  background: #f8faff;
  border-color: #bfcde8;
  color: var(--ink);
}
.backend-toggle[aria-pressed="false"] {
  opacity: 0.5;
}
.case-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.case-summary strong {
  color: var(--ink);
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  font-size: 13px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 15px;
  color: var(--ink);
}
.plain-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.plain-list li:last-child {
  border: 0;
}
.plain-list strong {
  color: var(--ink);
}
.prose p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 10px 0;
}
.prose ul {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
  min-height: 44px;
}
.download-list a:last-child {
  border: 0;
}
.download-list small {
  font-size: 10px;
  color: var(--muted);
}
details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  padding: 12px 0;
}
details p {
  font-size: 12px;
  color: var(--muted);
}
.diagnostic-nav {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 22px;
  padding: 0 0 4px;
}
.diagnostic-nav a {
  padding: 9px 12px;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 18px 0;
}
.metric-card {
  padding: 16px;
  background: #f7f9fc;
  border: 1px solid #e9edf3;
  border-radius: 8px;
}
.metric-card .stat-value {
  font-size: 25px;
}
.metric-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
}
.step-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.step-line {
  display: grid;
  grid-template-columns: 145px 1fr 72px;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}
.step-line > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sql-label {
  font:
    10px ui-monospace,
    monospace;
}
.heat-value {
  display: inline-block;
  min-width: 62px;
  text-align: right;
  border-radius: 5px;
  padding: 7px 9px;
  background: #eef3fb;
  color: #38568b;
  font-weight: 600;
}
.recovery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.recovery > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.recovery p {
  font-size: 11px;
  margin: 7px 0 0;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 35px;
  font-size: 10px;
  color: #8a96a8;
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
footer > span {
  text-align: right;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  max-width: 780px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  box-shadow: 0 24px 100px #10294a26;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #1b2b464d;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
#case-content {
  padding: 26px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.dialog-heading h2 {
  font-size: 22px;
}
.dialog-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0;
  line-height: 1.7;
}
.close-button {
  font-size: 20px;
  line-height: 18px;
  width: 38px;
  min-height: 38px;
  padding: 5px;
  flex: 0 0 38px;
}
dialog .table-scroll {
  margin: 16px 0;
}
dialog h3 {
  margin: 24px 0 12px;
}
.slow-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}
.slow-item > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.slow-item small {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: block;
  margin-top: 6px;
}
.error-reason {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.7;
  font-size: 11px;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.spinner {
  border: 2px solid #e0e7f1;
  border-top-color: var(--accent);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dot-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
[id] {
  scroll-margin-top: 24px;
}
.source-note {
  font-size: 10px;
  color: #8591a3;
  margin-top: 16px;
  line-height: 1.8;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.stat-link {
  margin-top: 15px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
}
.nowrap-value {
  white-space: nowrap;
}
@media (min-width: 1700px) {
  main {
    margin-right: auto;
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding: 27px 12px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .nav-caption {
    font-size: 8px;
  }
  main {
    margin-left: 200px;
    padding: 0 25px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 16px;
  }
  .card,
  .insight-card {
    padding: 20px;
  }
  .finding-grid {
    gap: 12px;
  }
  .stat {
    padding: 0 18px;
  }
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .insight-card > h2 {
    grid-column: 1/-1;
  }
  .insight-item {
    padding: 0 14px 0 0;
    border-bottom: 0;
    border-right: 1px solid #dde4ef;
  }
  .insight-card > .stat-link {
    grid-column: 1/-1;
    margin: 0;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .finding-grid {
    grid-template-columns: 1fr;
  }
  .finding {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 15px;
  }
  .finding .eyebrow {
    grid-column: 1/-1;
  }
  .finding p {
    margin: 0;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    inset: auto;
    background: #fffffffa;
    padding: 13px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .brand {
    font-size: 16px;
    gap: 9px;
    padding: 0;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
    margin-top: 3px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 15px;
    margin-top: 11px;
    margin-bottom: -1px;
    scrollbar-width: none;
  }
  .sidebar nav a {
    padding: 10px 0 12px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font-size: 11px;
    gap: 5px;
    min-height: 44px;
  }
  .nav-icon {
    font-size: 16px;
    width: 16px;
  }
  .sidebar nav a[aria-current="page"] {
    background: none;
    border-bottom-color: var(--accent);
  }
  main {
    margin-left: 0;
    padding: 0 18px;
  }
  .topline {
    height: 57px;
    font-size: 10px;
  }
  .text-link {
    font-size: 11px;
  }
  .slash {
    margin: 0 7px;
  }
  header.page-heading {
    padding: 25px 0 21px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -0.9px;
    margin-bottom: 9px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.8;
  }
  .heading-tags {
    justify-content: flex-start;
  }
  .stats {
    padding: 18px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 0 18px;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-sub {
    font-size: 9px;
  }
  .card,
  .insight-card {
    padding: 18px;
  }
  .hero-grid,
  .two-col {
    gap: 18px;
    margin-bottom: 18px;
  }
  .card-head {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 16px;
  }
  .card-head p {
    font-size: 11px;
  }
  .controls {
    gap: 10px;
  }
  .controls .grow {
    min-width: 135px;
  }
  .controls select {
    min-height: 44px;
    font-size: 12px;
  }
  .segmented button {
    min-height: 38px;
    padding: 7px 9px;
  }
  .bar-chart {
    gap: 20px;
  }
  .bar-header {
    font-size: 12px;
  }
  .metric-number {
    font-size: 19px;
  }
  .bar-meta {
    font-size: 9px;
    gap: 5px;
  }
  .bar-meta .badge {
    font-size: 8px;
    padding: 2px 4px;
  }
  .check-control {
    font-size: 10px;
  }
  .load-control {
    gap: 10px;
  }
  .load-control label {
    font-size: 10px;
  }
  .insight-card {
    display: block;
  }
  .insight-item {
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid #dde4ef;
  }
  .finding {
    display: block;
  }
  .finding p {
    margin-top: 8px;
  }
  .finding-grid {
    gap: 12px;
  }
  .metric-cards {
    gap: 8px;
  }
  .metric-card {
    padding: 12px;
  }
  .metric-card .stat-value {
    font-size: 21px;
  }
  .stat-label {
    font-size: 10px;
  }
  .metric-card p {
    font-size: 9px;
  }
  .step-line {
    grid-template-columns: 105px 1fr 65px;
    gap: 8px;
    font-size: 10px;
  }
  .sql-label {
    font-size: 9px;
  }
  .recovery {
    gap: 8px;
  }
  .recovery > div {
    padding: 13px;
  }
  .recovery .stat-value {
    font-size: 23px;
  }
  .recovery p {
    font-size: 10px;
  }
  .filter-panel .controls > label {
    min-width: calc(50% - 10px);
  }
  .filter-panel .controls {
    align-items: stretch;
  }
  .filter-panel .controls > label:last-child {
    flex-basis: 100%;
  }
  .backend-filters {
    gap: 6px;
  }
  .backend-toggle {
    font-size: 10px;
  }
  .backend-filters > span {
    width: 100%;
    margin-bottom: 3px;
  }
  .full-card {
    margin-bottom: 18px;
  }
  .chart-svg text {
    font-size: 11px;
  }
  .legend {
    gap: 11px;
    font-size: 9px;
  }
  .chart-note {
    font-size: 10px;
  }
  .source-note {
    font-size: 9px;
  }
  footer {
    font-size: 9px;
    padding-top: 22px;
    line-height: 1.7;
  }
  footer > span {
    max-width: 190px;
  }
  #case-content {
    padding: 19px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  dialog {
    max-height: 88dvh;
  }
  .diagnostic-nav {
    margin-bottom: 18px;
  }
  .notice {
    font-size: 10px;
  }
  .method-grid {
    gap: 18px;
  }
  [id] {
    scroll-margin-top: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.brand {
  font-size: 15.5px;
}
.diagnostic-nav {
  flex-direction: row;
}
@media (max-width: 720px) {
  .brand {
    font-size: 16px;
  }
  .hero-grid .controls > label.grow {
    flex-basis: 100%;
  }
  .filter-panel .controls > label {
    flex-basis: 100%;
    min-width: 100%;
  }
  .row-detail {
    min-height: 40px;
  }
  button.small,
  .backend-toggle {
    min-height: 40px;
  }
}
