:root {
  --paper: #07110e;
  --surface: #0b1713;
  --surface-strong: #0e1d18;
  --ink: #e8f0eb;
  --muted: #8b9a91;
  --dim: #53615a;
  --line: rgba(191, 218, 202, 0.15);
  --line-strong: rgba(191, 218, 202, 0.28);
  --teal: #b8f45c;
  --teal-soft: rgba(184, 244, 92, 0.08);
  --coral: #fb8d54;
  --coral-soft: rgba(251, 141, 84, 0.1);
  --amber: #f4c95d;
  --amber-soft: rgba(244, 201, 93, 0.09);
  --blue: #75e3b7;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 82% 4%, rgba(117, 227, 183, 0.07), transparent 26%),
    linear-gradient(rgba(186, 217, 200, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 217, 200, 0.025) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  font-family: "Space Grotesk Variable", sans-serif;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button,
select {
  font: inherit;
}

button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 244, 92, 0.25);
  outline-offset: 2px;
}

.layout {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 178px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.masthead-copy {
  min-width: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.brand-mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--teal);
  border-radius: 50%;
}

.brand-mark i:nth-child(1) { top: 8px; left: 1px; }
.brand-mark i:nth-child(2) { top: 1px; right: 1px; }
.brand-mark i:nth-child(3) { right: 2px; bottom: 1px; }

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 6px;
  width: 13px;
  height: 1px;
  content: "";
  background: var(--teal);
  transform-origin: left;
}

.brand-mark::before { top: 10px; transform: rotate(-32deg); }
.brand-mark::after { top: 13px; transform: rotate(31deg); }
}

.masthead h1 {
  margin: 4px 0 2px;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.05;
}

.eyebrow,
.section-kicker,
.direction {
  display: block;
  margin: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--teal);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.edition {
  padding-bottom: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.campaign-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}

.campaign-control {
  min-width: 0;
}

.campaign-control label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  padding: 8px 14px;
  color: #0a130f;
  font-weight: 700;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 0;
  cursor: pointer;
}

button:hover {
  background: #cdfb85;
  border-color: #cdfb85;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.view[hidden] {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 0;
  margin-top: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
}

.category-tab {
  width: auto;
  min-width: 160px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.category-tab:hover,
.category-tab.active {
  color: var(--teal);
  background: transparent;
  border-color: var(--teal);
}

.category-overview[hidden] {
  display: none;
}

.category-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.category-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.category-summary:last-child {
  border-right: 0;
}

.category-summary strong {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
}

.category-summary p,
.category-summary small {
  margin: 0;
  color: var(--muted);
}

.category-summary p {
  color: var(--ink);
  font-size: 16px;
}

.category-summary small {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 10px;
}

.category-open {
  grid-column: 1 / -1;
  width: max-content;
  min-width: 0;
  min-height: 36px;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 12px;
}

.agentic-overview {
  margin-top: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.agentic-overview-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agentic-overview-kpi {
  display: flex;
  min-width: 0;
  min-height: 176px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.agentic-overview-kpi:last-child {
  border-right: 0;
}

.agentic-overview-kpi span,
.agentic-overview-kpi small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.agentic-overview-kpi strong {
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  color: var(--teal);
  font-size: 22px;
  line-height: 1.3;
}

.agentic-overview-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.agentic-overview-coverage {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  border-top: 1px solid var(--line);
}

.agentic-control {
  max-width: 640px;
  padding: 18px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.masthead-actions .edition {
  padding: 0;
}

.masthead-actions button {
  min-width: 106px;
}

.history-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: end;
  padding: 40px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.history-heading h2 {
  margin: 5px 0 0;
  font-size: 32px;
}

.history-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.history-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 0;
}

.history-kpi {
  display: flex;
  min-width: 0;
  min-height: 176px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.history-kpi:last-child {
  border-right: 0;
}

.history-kpi span,
.history-kpi small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.history-kpi strong {
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.3;
}

.kpi-comparison {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  border-top: 1px solid var(--line);
}

.kpi-comparison b {
  color: var(--ink);
  font-weight: 600;
}

#history-comparison-notice {
  margin-top: 14px;
  border-radius: 6px;
}

.history-chart-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.history-chart-panel {
  grid-column: span 2;
  min-width: 0;
  padding: 18px 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-chart-panel-wide {
  grid-column: span 3;
}

.history-chart-panel:nth-child(2),
.history-chart-panel:last-child {
  border-right: 0;
}

.history-chart-panel:nth-child(n + 3) {
  border-bottom: 0;
}

.history-chart-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.history-chart-frame {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 300px;
  overflow: hidden;
}

.history-chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.campaign-history-table {
  min-width: 920px;
}

.campaign-history-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.campaign-history-table td code {
  font-family: var(--mono);
  font-size: 10px;
}

.campaign-history-table td:last-child {
  width: 58px;
  padding: 8px;
}

.icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}

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

.secondary-button:hover {
  color: #0a130f;
}

.notice {
  margin-top: 20px;
  padding: 16px;
  color: #ffc0a1;
  background: var(--coral-soft);
  border: 1px solid rgba(251, 141, 84, 0.45);
  border-radius: 0;
}

.campaign-summary {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr);
  gap: 28px;
  align-items: center;
  min-height: 126px;
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 0;
}

.campaign-summary:empty {
  display: none;
}

.campaign-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.campaign-identity strong {
  overflow-wrap: anywhere;
  font-size: 22px;
}

.campaign-identity > span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.campaign-facts,
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.campaign-facts > div {
  min-width: 0;
  padding: 6px 16px;
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.gate,
.status {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 0;
}

.gate.ready,
.status.ok {
  color: var(--teal);
  background: rgba(184, 244, 92, 0.07);
}

.gate.review,
.status.degraded,
.status.skipped {
  color: var(--amber);
  background: var(--amber-soft);
}

.status.failed,
.status.unavailable {
  color: #ffab82;
  background: var(--coral-soft);
}

.section-block {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.section-header {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-strong);
}

.section-header h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.metric-benchmarks {
  display: grid;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(190px, 1.3fr) repeat(3, minmax(150px, 1fr));
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row > div {
  display: flex;
  min-width: 0;
  min-height: 116px;
  padding: 17px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.metric-row > div:last-child {
  border-right: 0;
}

.metric-heading {
  background: #09130f;
}

.metric-heading h3 {
  margin: 6px 0;
  font-size: 18px;
}

.metric-heading > span:last-child,
.metric-stat > span,
.metric-corrobore > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.metric-corrobore {
  background: var(--teal-soft);
}

.metric-corrobore strong,
.metric-stat strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.15;
}

.metric-corrobore strong {
  color: var(--teal);
  font-size: 22px;
}

.metric-corrobore small,
.metric-stat small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: #09130f;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

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

tbody tr:hover {
  background: rgba(117, 227, 183, 0.045);
}

.corrobore-row {
  background: rgba(184, 244, 92, 0.055);
}

.corrobore-row th:first-child {
  box-shadow: inset 5px 0 0 var(--teal);
}

.engine-name,
.table-value {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}

.engine-audit-link {
  width: max-content;
  color: var(--ink);
  text-decoration-color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.engine-audit-link:hover {
  color: var(--teal);
}

.audit-hero,
.observation-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.audit-hero {
  padding: 40px 20px;
  border-bottom: 1px solid var(--line-strong);
}

.audit-hero h2 {
  margin: 6px 0;
  font-size: 38px;
}

.audit-hero p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.audit-section {
  padding-top: 34px;
}

.audit-section > header {
  padding: 0 20px 18px;
}

.audit-section h3 {
  margin: 5px 0 0;
  font-size: 24px;
}

.audit-facts,
.judge-scores {
  display: grid;
  margin: 0;
}

.audit-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.audit-facts > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audit-facts dt,
.judge-scores dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.audit-facts dd,
.judge-scores dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.observation-list {
  display: grid;
  gap: 20px;
}

.observation-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.observation-card > header,
.observation-card > details {
  padding: 20px;
}

.observation-card h3,
.observation-card h4,
.observation-card h5 {
  margin: 5px 0 0;
}

.observation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  border-top: 1px solid var(--line);
}

.observation-grid > section,
.judge-panel {
  min-width: 0;
  padding: 20px;
}

.observation-grid > section:first-child {
  border-right: 1px solid var(--line);
}

.audit-answer,
.judge-rationale {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.audit-fact-list {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.judge-panel {
  border-top: 1px solid var(--line);
  background: var(--teal-soft);
}

.judge-scores {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 16px 0 22px;
}

.judge-scores > div {
  padding-right: 14px;
}

.judge-rationale {
  margin-bottom: 0;
}

.observation-card details {
  border-top: 1px solid var(--line);
}

.observation-card summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
}

.audit-technical pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

tbody th small {
  display: block;
  max-width: 260px;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
}

.rank {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
}

.not-measured {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

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

.chart-grid[hidden] {
  display: none;
}

.comparison-notice {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.chart-panel {
  min-width: 0;
  padding: 18px 20px 20px;
  border-right: 1px solid var(--line);
}

.chart-panel:last-child {
  border-right: 0;
}

.chart-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.chart-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.metadata-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 20px 20px;
}

.metadata-grid > div {
  min-width: 0;
  padding: 16px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}

.metadata-grid dd {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.image-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 0 20px 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.image-list div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.image-list code {
  max-width: 100%;
  padding: 3px 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--surface-strong);
  border-radius: 0;
}

@media (max-width: 1100px) {
  .agentic-overview-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agentic-overview-kpi:nth-child(3) {
    border-right: 0;
  }

  .agentic-overview-kpi:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .history-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-kpi:nth-child(3) {
    border-right: 0;
  }

  .history-kpi:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .metric-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric-heading {
    grid-column: 1 / -1;
    min-height: 76px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .metric-corrobore,
  .metric-stat {
    min-height: 108px !important;
  }
}

@media (max-width: 820px) {
  .layout {
    width: min(100% - 24px, 1440px);
    padding-top: 14px;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .masthead-actions {
    width: 100%;
    margin-top: 14px;
    justify-content: space-between;
  }

  .history-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 28px;
  }

  .history-chart-panel,
  .history-chart-panel-wide {
    grid-column: span 6;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .history-chart-panel:nth-child(n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .history-chart-panel:last-child {
    border-bottom: 0;
  }

  .masthead h1 {
    font-size: 32px;
  }

  .edition {
    margin-top: 12px;
  }

  .campaign-summary {
    grid-template-columns: 1fr;
  }

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

  .campaign-facts > div:nth-child(odd) {
    border-left: 0;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chart-panel:last-child {
    border-bottom: 0;
  }

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

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

  .observation-grid {
    grid-template-columns: 1fr;
  }

  .observation-grid > section:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .judge-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .category-tab {
    width: auto;
    min-width: 0;
    padding-inline: 6px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .category-summaries {
    grid-template-columns: 1fr;
  }

  .category-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-summary:last-child {
    border-bottom: 0;
  }

  .category-open {
    width: 100%;
  }

  .agentic-overview-kpis {
    grid-template-columns: 1fr;
  }

  .agentic-overview-kpi,
  .agentic-overview-kpi:nth-child(3) {
    min-height: 156px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agentic-overview-kpi:nth-child(n + 4) {
    border-top: 0;
  }

  .agentic-overview-kpi:nth-child(5) {
    border-bottom: 0;
  }

  .campaign-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-hero,
  .observation-card > header {
    flex-direction: column;
  }

  .audit-facts {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .masthead-actions button,
  .icon-button {
    width: auto;
  }

  .history-kpis {
    grid-template-columns: 1fr;
  }

  .history-kpi,
  .history-kpi:nth-child(3) {
    min-height: 156px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .history-kpi:last-child {
    border-bottom: 0;
  }

  .history-chart-panel {
    padding-inline: 12px;
  }

  .history-chart-frame {
    height: 280px;
    min-height: 280px;
  }

  .campaign-history-table {
    min-width: 0;
    table-layout: fixed;
  }

  .campaign-history-table th:nth-child(n + 2):nth-child(-n + 5),
  .campaign-history-table td:nth-child(n + 2):nth-child(-n + 5) {
    display: none;
  }

  .campaign-history-table th:first-child,
  .campaign-history-table td:first-child {
    width: auto;
  }

  .campaign-history-table th:last-child,
  .campaign-history-table td:last-child {
    width: 58px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }

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

  .metric-heading {
    grid-column: 1 / -1;
  }

  .metric-row > div {
    min-height: 100px;
    padding: 14px;
  }

  .metric-row > div:nth-child(3),
  .metric-row > div:nth-child(5) {
    border-right: 0;
  }

  .metric-corrobore {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .chart-panel {
    padding-inline: 12px;
  }

  .chart-frame {
    height: 320px;
    min-height: 320px;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .image-list {
    grid-template-columns: 1fr;
  }
}