:root {
  --bg: #0a0c0f;
  --bg-2: #0f1318;
  --panel: rgba(16, 22, 30, 0.86);
  --line: rgba(120, 160, 190, 0.12);
  --text: #e7edf3;
  --muted: #a7b1bc;
  --accent: #4cc3ff;
  --accent-2: #7b5cff;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(76,195,255,0.12), transparent 55%),
    radial-gradient(900px 520px at 15% -20%, rgba(123,92,255,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 60% at 50% 15%, #000 38%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 24px 0 64px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 10px;
}

.logo img {
  width: min(260px, 62vw);
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  background: rgba(8, 10, 14, 0.7);
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, rgba(76,195,255,0.92), rgba(123,92,255,0.92));
  color: #020305;
  border: none;
  box-shadow: 0 12px 30px rgba(76,195,255,0.2);
  font-weight: 600;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 12px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.1rem; margin-bottom: 10px; }

.subhead { color: var(--muted); line-height: 1.7; }
.report-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.report-document {
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background:
    radial-gradient(680px 320px at 90% 0%, rgba(76,195,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(12,16,22,0.94), rgba(8,10,14,0.92));
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  overflow: hidden;
}

.report-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.report-header h2 { margin-bottom: 8px; }
.report-header .subhead { margin-top: 0; }

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.report-meta.compact-meta {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px;
}

.report-meta.compact-meta .report-meta-card {
  padding: 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.report-meta.compact-meta .report-label {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.report-meta.compact-meta .report-value {
  margin-top: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.report-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.report-header-actions .btn {
  padding: 10px 16px;
}
.report-meta-card,
.report-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: rgba(8, 12, 18, 0.66);
  padding: 14px 16px;
}

.report-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.report-value { margin-top: 5px; font-weight: 600; }
.report-body { display: grid; gap: 18px; padding: 24px; }
.report-score-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-score-grid.compact .report-score-number { font-size: 1.28rem; }

.report-score-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.72);
  padding: 16px;
}

.report-score-card.primary,
.report-score-card:first-child {
  background: linear-gradient(135deg, rgba(76,195,255,0.18), rgba(123,92,255,0.12));
  border-color: rgba(76,195,255,0.28);
}

.report-score-number { font-size: 2rem; font-weight: 700; margin-top: 6px; }
.report-score-card .subhead { margin-top: 6px; }
.report-section { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; }

.report-section.major,
.report-section.action-tier {
  border-top: 0;
  padding: 22px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(76,195,255,0.16);
}

.report-section.compact {
  border-top: 0;
  padding-top: 0;
}

.report-section.supporting {
  opacity: 0.92;
  font-size: 0.94rem;
}

.report-section.supporting h3,
.report-supporting-heading {
  color: var(--muted);
}

.report-supporting-heading {
  margin-top: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.report-decision-summary {
  display: grid;
  gap: 16px;
  background: linear-gradient(135deg, rgba(76,195,255,0.14), rgba(123,92,255,0.10));
  border-color: rgba(76,195,255,0.24);
}

.report-decision-grid {
  display: grid;
  gap: 16px;
}

.report-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.48);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  line-height: 1.5;
}

.report-context-strip strong { color: var(--text); }
.report-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-list { display: grid; gap: 9px; color: var(--muted); line-height: 1.6; }
.report-list span { display: block; }

.report-action-plan {
  display: grid;
  gap: 14px;
}

.report-action-step {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 13px;
}

.report-action-step p {
  margin: 6px 0 0;
}

.report-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.report-pill {
  border: 1px solid rgba(76,195,255,0.25);
  border-radius: 999px;
  color: #cfefff;
  background: rgba(76,195,255,0.08);
  padding: 6px 10px;
  font-size: 0.82rem;
}

.report-callout {
  border: 1px solid rgba(76,195,255,0.2);
  border-radius: 14px;
  background: rgba(76,195,255,0.08);
  padding: 16px;
}

.report-callout.warning {
  border-color: rgba(255,174,66,0.34);
  background: rgba(255,174,66,0.10);
}

.report-trust-gate {
  border-left: 4px solid rgba(255,174,66,0.85);
  background: rgba(255,174,66,0.10);
  padding: 18px 20px;
  border-radius: 12px;
}

.report-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  margin-top: 14px;
}

.report-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 27px;
  height: 1px;
  background: rgba(76,195,255,0.20);
}

.report-timeline-step {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  background: rgba(10,14,20,0.72);
  border: 1px solid rgba(255,255,255,0.08);
}

.report-step-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(76,195,255,0.16);
  border: 1px solid rgba(76,195,255,0.28);
  color: #cfefff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 5px 8px;
}

.report-review-handoff {
  background: linear-gradient(135deg, rgba(12,16,22,0.96), rgba(8,12,18,0.88));
  border-color: rgba(76,195,255,0.24);
}

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

.report-review-summary > div,
.report-review-why {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: rgba(8, 12, 18, 0.58);
  padding: 14px 16px;
}

.report-review-why { margin-top: 12px; }

.report-table {
  display: grid;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.report-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.4fr 0.8fr;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 12, 18, 0.34);
  border-top: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  font-size: 0.9rem;
}

.report-table-row:first-child { border-top: 0; }
.report-control-breakdown .report-table { opacity: 0.9; }

.report-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.report-details[open] summary { margin-bottom: 12px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.lens-selector-panel {
  margin-top: 20px;
}

.lens-selector-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.lens-selector-row .subhead {
  max-width: 620px;
  margin: 0;
}

.lens-selector-row select {
  min-width: min(100%, 300px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.78);
  color: var(--text);
  padding: 12px 42px 12px 16px;
  font: inherit;
}
.empty-state { margin-top: 20px; }
footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
}

@media (max-width: 920px) {
  header { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .report-header,
  .report-meta,
  .report-meta.compact-meta,
  .report-score-grid,
  .report-two-column,
  .report-three-column,
  .report-review-summary,
  .report-timeline,
  .report-table-row { grid-template-columns: 1fr; }
  .report-timeline::before {
    left: 28px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
  }
  .report-body,
  .report-header,
  .panel { padding: 18px; }
}
