:root {
  color-scheme: dark;
  --bg: #0b111a;
  --panel: #121a28;
  --panel-soft: #172233;
  --text: #f4f1ea;
  --muted: #aab3c2;
  --line: #2a374a;
  --gold: #dfbd69;
  --cyan: #48c6d9;
  --green: #86d28f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 10%, rgba(72, 198, 217, 0.09), transparent 26%), var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

button,
a {
  font: inherit;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0c1420;
  color: var(--gold);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 44px);
  background: rgba(11, 17, 26, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

main {
  display: grid;
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 22px clamp(14px, 4vw, 34px) 48px;
}

.source-link,
.doc-links a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.source-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-grid article,
.panel {
  min-width: 0;
  background: rgba(18, 26, 40, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-grid article {
  min-height: 94px;
  padding: 16px;
}

.metric {
  display: block;
  color: var(--gold);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.panel {
  padding: 20px;
}

.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.verdict p,
.notes p,
.section-title p {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.ok {
  background: rgba(134, 210, 143, 0.18);
  color: var(--green);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: #10141d;
  font-weight: 850;
}

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

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

.shot {
  display: grid;
  overflow: hidden;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: zoom-in;
  text-align: left;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0c1420;
}

.shot span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.coverage-table {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td:first-child {
  font-weight: 850;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.viewer {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.viewer::backdrop {
  background: rgba(2, 5, 10, 0.78);
}

.viewer h2 {
  margin-right: 42px;
}

.viewer img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #0c1420;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .summary-grid,
  .verdict,
  .evidence-grid,
  .evidence-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .source-link,
  .topbar > * {
    max-width: 100%;
    min-width: 0;
  }
}
