:root {
  --canvas: #f1f4f2;
  --surface: #ffffff;
  --surface-muted: #f7f9f8;
  --surface-raised: #eef3f0;
  --ink: #17231e;
  --ink-soft: #405049;
  --muted: #6e7d76;
  --line: #dbe3df;
  --line-strong: #c8d4ce;
  --brand: #176b55;
  --brand-strong: #0f503f;
  --brand-deep: #153f33;
  --brand-soft: #e7f3ee;
  --blue: #2d7093;
  --warning: #a96b18;
  --warning-soft: #fff4dc;
  --critical: #b43d36;
  --critical-soft: #fcecea;
  --shadow-sm: 0 1px 2px rgb(18 38 30 / 5%), 0 8px 22px rgb(18 38 30 / 3%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgb(23 107 85 / 6%), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a,
input,
select,
summary {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  box-shadow: 0 0 0 3px rgb(23 107 85 / 20%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 4px 18px rgb(11 34 26 / 16%);
}

.topbar-inner {
  display: flex;
  width: min(100%, 1560px);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 12px clamp(18px, 3vw, 36px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 11px;
  background: #1f775f;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
}

.brand > div {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.environment-badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  background: rgb(255 255 255 / 7%);
  color: #d0ddd8;
}

.connection-value {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.connection-value > span {
  color: #91aa9f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.connection-value code {
  overflow: hidden;
  color: #dce7e3;
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-separator {
  width: 1px;
  height: 27px;
  flex: 0 0 auto;
  background: rgb(255 255 255 / 12%);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #71d6aa;
  box-shadow: 0 0 0 3px rgb(113 214 170 / 13%);
}

.environment-badge.is-offline .status-dot {
  background: #ee8982;
  box-shadow: 0 0 0 3px rgb(238 137 130 / 13%);
}

.page {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 20px clamp(14px, 2vw, 30px) 48px;
}

.alert {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.alert-error {
  border-color: #edb8b4;
  background: var(--critical-soft);
  color: #812b27;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  max-height: calc(100vh - 112px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 18px 13px;
}

.sidebar-heading h2,
.section-heading h2,
.table-heading h2 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.count-badge,
.section-count {
  display: inline-flex;
  min-width: 28px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.section-count.is-critical {
  background: var(--critical-soft);
  color: var(--critical);
}

.run-list {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding: 0 10px 12px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.run-link {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.run-link:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.run-link.is-active {
  border-color: #b8d5ca;
  background: var(--brand-soft);
}

.run-link.is-active::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  content: "";
}

.run-link-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.run-link-heading strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-meta,
.run-link code {
  color: var(--muted);
  font-size: 11px;
}

.run-link code,
.run-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.run-stats {
  display: flex;
  gap: 6px;
}

.run-stats span {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgb(23 35 30 / 5%);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.run-stats span.is-valid {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.run-stats span.is-invalid {
  background: var(--critical-soft);
  color: var(--critical);
}

.sidebar-empty {
  margin: 0 18px 18px;
  color: var(--muted);
}

.details-panel summary::-webkit-details-marker {
  display: none;
}

.field {
  display: grid;
  gap: 5px;
}

label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:hover,
select:hover {
  border-color: #aebeb6;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(23 107 85 / 10%);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #a9bbb2;
  background: var(--surface-muted);
}

.workspace {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.report-overview {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
}

.report-overview::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
  content: "";
}

.report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.report-heading h1 {
  margin: 5px 0 5px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.report-heading p {
  margin: 0;
  color: var(--muted);
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.report-meta > span {
  display: grid;
  gap: 1px;
  min-width: 74px;
  padding: 10px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.report-meta > span:first-child {
  border-left: 0;
}

.report-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.report-meta .is-critical,
.report-meta .is-critical strong {
  background: var(--critical-soft);
  color: var(--critical);
}

.report-meta .is-valid,
.report-meta .is-valid strong {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filter-reset {
  align-self: center;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.filter-reset:hover {
  text-decoration: underline;
}

.run-id {
  display: block;
  margin-top: 13px;
  overflow: hidden;
  color: #829088;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
}

.section-heading p,
.table-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  padding: 0 24px 16px;
  color: var(--muted);
  font-size: 10px;
}

.legend-item {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-title strong {
  color: var(--ink-soft);
  font-size: 10px;
}

.legend-item > small {
  display: block;
  padding-left: 16px;
  font-size: 9px;
  line-height: 1.3;
}

.legend i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.legend i.is-grouped {
  outline: 1px dashed var(--ink-soft);
  outline-offset: 2px;
}

.legend i.is-anomaly {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--critical-soft);
}

.bucket-healthy {
  background: #39916f;
}

.bucket-warning {
  background: #d49130;
}

.bucket-critical {
  background: #c64e45;
}

.distribution-table {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.distribution-header,
.distribution-row {
  display: grid;
  min-width: 960px;
  grid-template-columns: minmax(170px, 1fr) 88px 100px minmax(310px, 2fr) 145px;
  align-items: center;
  gap: 16px;
}

.distribution-header {
  padding: 10px 24px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.distribution-header small {
  float: right;
  color: #94a099;
  font-size: 9px;
  letter-spacing: 0;
}

.distribution-list {
  display: grid;
}

.distribution-row {
  position: relative;
  min-height: 86px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 140ms ease;
}

.distribution-row:first-child {
  border-top: 0;
}

.distribution-row:hover {
  background: #fbfcfb;
}

.distribution-row::before {
  position: absolute;
  inset: 20px auto 20px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.distribution-row:hover::before {
  background: var(--brand);
}

.dep-name,
.metric-value,
.row-status {
  display: grid;
  gap: 2px;
}

.dep-name strong,
.metric-value strong {
  font-size: 13px;
}

.dep-name small,
.metric-value small,
.row-status small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-status .bucket-validation.is-valid {
  color: var(--brand);
  font-weight: 800;
}

.row-status .bucket-validation.is-invalid {
  color: var(--critical);
  font-weight: 800;
}

.align-right {
  text-align: right;
}

.dist-bars {
  display: flex;
  height: 48px;
  align-items: end;
  gap: 2px;
  padding: 4px 5px 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(to top, transparent 49%, rgb(23 35 30 / 5%) 50%, transparent 51%),
    var(--surface-muted);
}

.dist-bin {
  height: var(--bar-height);
  min-width: 2px;
  flex: var(--bar-weight) 1 0;
  border-radius: 2px 2px 1px 1px;
  opacity: .9;
  transition: filter 120ms ease, opacity 120ms ease;
}

.dist-bin:hover {
  z-index: 1;
  filter: saturate(1.2);
  opacity: 1;
}

.dist-bin.is-grouped {
  outline: 1px dashed rgb(23 35 30 / 58%);
  outline-offset: 1px;
}

.status-badge,
.mini-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge {
  min-width: 64px;
  padding: 4px 9px;
}

.mini-badge {
  padding: 3px 7px;
  background: var(--surface-raised);
  color: var(--ink-soft);
}

.mini-badge.is-healthy {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.mini-badge.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.mini-badge.is-healthy::before,
.mini-badge.is-warning::before,
.mini-badge.is-critical::before {
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  content: "";
}

.mini-badge.is-healthy::before {
  background: #39916f;
}

.mini-badge.is-warning::before {
  background: #d49130;
}

.mini-badge.is-critical::before {
  background: #c64e45;
}

.mini-badge.is-grouped {
  border: 1px dashed var(--ink-soft);
  background: var(--surface);
}

.status-badge.is-healthy {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.status-badge.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.is-critical,
.mini-badge.is-critical {
  background: var(--critical-soft);
  color: var(--critical);
}

.inline-empty {
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.success-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 24px 24px;
  padding: 15px 16px;
  border: 1px solid #c7ded4;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.success-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

.success-state > div {
  display: grid;
  gap: 2px;
}

.success-state span:last-child {
  color: var(--ink-soft);
  font-size: 11px;
}

.anomaly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}

.anomaly-card {
  padding: 15px;
  border: 1px solid #efd2cf;
  border-radius: var(--radius-md);
  background: #fffafa;
}

.anomaly-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.anomaly-card h3 {
  margin: 13px 0 3px;
  font-size: 15px;
}

.anomaly-dep-reference {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.anomaly-card p {
  min-height: 32px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.anomaly-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.anomaly-card dl div {
  display: grid;
  gap: 2px;
}

.anomaly-card dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.anomaly-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.details-panel {
  overflow: hidden;
}

.details-panel > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.details-panel > details > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.details-panel > details > summary strong {
  font-size: 15px;
}

.details-action {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.details-panel details[open] .details-action {
  background: var(--brand-soft);
}

.details-content {
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}

.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 12px;
}

.table-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.table-heading-spaced {
  margin-top: 8px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 11px;
}

.wide-table {
  min-width: 1220px;
}

.wide-table .column-group-start {
  border-left: 2px solid var(--line-strong);
}

.wide-table thead .column-groups th {
  padding-block: 7px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  text-align: center;
}

.wide-table thead .column-groups th[rowspan] {
  text-align: left;
  vertical-align: middle;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfb;
}

.table-muted {
  color: var(--muted);
}

.table-dep {
  display: grid;
  gap: 1px;
}

.table-dep small {
  color: var(--muted);
  font-size: 9px;
}

.bucket-count-badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.bucket-count-badge.is-valid {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.bucket-count-badge.is-invalid {
  background: var(--critical-soft);
  color: var(--critical);
}

.percentage-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.bucket-status-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.delta-cell {
  display: inline-grid;
  width: 100%;
  min-width: 78px;
  gap: 4px;
}

.delta-track {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-raised);
}

.delta-track > i {
  display: block;
  width: var(--delta-width);
  height: 100%;
  border-radius: inherit;
}

.delta-track .is-negative {
  margin-left: auto;
}

.delta-track .is-healthy {
  background: #39916f;
}

.delta-track .is-warning {
  background: #d49130;
}

.delta-track .is-critical {
  background: #c64e45;
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 850;
  letter-spacing: .05em;
}

.empty-state h1 {
  margin: 18px 0 5px;
  font-size: 24px;
}

.empty-state p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .report-heading {
    display: grid;
  }

  .report-meta {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .page {
    padding-top: 14px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .run-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .run-link {
    width: 230px;
    flex: 0 0 auto;
  }

  .filter-bar {
    grid-template-columns: minmax(190px, 1fr) 110px auto;
  }

  .filter-reset {
    grid-column: 1 / -1;
  }

  .anomaly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 64px;
    padding-inline: 14px;
  }

  .connection-separator,
  .connection-value:first-of-type {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .environment-badge {
    max-width: 44%;
  }

  .page {
    padding-inline: 10px;
  }

  .report-overview {
    padding: 20px 18px;
  }

  .report-meta {
    grid-template-columns: 1fr 1fr;
  }

  .report-meta > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .report-meta > span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar .button,
  .filter-reset {
    grid-column: 1 / -1;
  }

  .section-heading {
    padding: 20px 18px 14px;
  }

  .legend {
    padding-inline: 18px;
  }

  .anomaly-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .success-state {
    margin: 0 18px 18px;
  }

  .details-panel > details > summary {
    padding-inline: 18px;
  }

  .details-content {
    padding: 0 18px 18px;
  }

  .alert {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
