:root {
  --ink: #0b0b0b;
  --paper: #f4f2ea;
  --white: #fff;
  --blue: #1747e8;
  --yellow: #f4ca28;
  --mint: #b9e5d1;
  --line: 1.5px solid var(--ink);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.topbar {
  min-height: 72px;
  padding: 0 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border: var(--line);
  font-weight: 900;
}
.brand strong, nav {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
nav { display: flex; gap: 22px; }
nav a:hover { color: var(--blue); }
.heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 430px;
  border-bottom: var(--line);
}
.heading > div { padding: 56px 4vw; }
.heading > div:first-child {
  background: var(--mint);
  border-right: var(--line);
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  margin: 48px 0 0;
  font-size: clamp(54px, 7vw, 108px);
  line-height: 0.86;
}
.boundary {
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: var(--yellow);
}
.boundary strong { font-size: 25px; }
.boundary p { max-width: 560px; margin: 18px 0 0; line-height: 1.5; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--blue);
  border-bottom: var(--line);
}
.metrics div {
  min-height: 130px;
  padding: 22px;
  border-right: 1px solid var(--white);
}
.metrics div:last-child { border-right: 0; }
.metrics span { display: block; font-size: 36px; font-weight: 900; }
.metrics small {
  display: block;
  margin-top: 34px;
  font-weight: 800;
  text-transform: uppercase;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.32fr) 1fr;
  min-height: 720px;
}
.workspace aside { background: var(--white); border-right: var(--line); }
.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--line);
}
.controls button {
  min-height: 52px;
  border: 0;
  border-right: var(--line);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.controls button:last-child { border-right: 0; }
.controls button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}
.report-list { max-height: 820px; overflow-y: auto; }
.report-row {
  width: 100%;
  min-height: 82px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  text-align: left;
  border: 0;
  border-bottom: var(--line);
  background: var(--white);
  cursor: pointer;
}
.report-row span { font-weight: 900; }
.report-row strong, .report-row small { text-transform: uppercase; }
.report-row small { grid-column: 1 / -1; color: #555; }
.report-row[aria-current="true"] { background: var(--yellow); }
.viewer { min-width: 0; padding: 42px 4vw 70px; }
.viewer-head { display: flex; justify-content: space-between; gap: 24px; }
h2 {
  max-width: 900px;
  margin: 16px 0;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
}
.state {
  align-self: start;
  padding: 10px 12px;
  border: var(--line);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}
.state[data-state="HUMAN_MERGED"] {
  color: var(--white);
  background: var(--blue);
}
.summary { max-width: 980px; font-size: 18px; line-height: 1.5; }
.metadata {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  border: var(--line);
  background: var(--white);
}
.metadata div { min-width: 0; padding: 14px; border-right: var(--line); }
.metadata div:last-child { border-right: 0; }
.metadata dt { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.metadata dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.report-content {
  max-height: 820px;
  margin: 22px 0 0;
  padding: 24px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e9f1ff;
  background: #111;
  border: var(--line);
  font: 14px/1.55 Consolas, "Courier New", monospace;
}
footer {
  min-height: 80px;
  padding: 24px 3vw;
  display: flex;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .topbar { align-items: flex-start; padding-block: 12px; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .heading, .workspace { grid-template-columns: 1fr; }
  .heading > div:first-child, .workspace aside {
    border-right: 0;
    border-bottom: var(--line);
  }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n + 2) { border-bottom: 1px solid var(--white); }
  .viewer-head { display: block; }
  .state { display: inline-block; }
}
