
:root {
  --bg: #050b16;
  --panel: #0d1d35;
  --panel2: #112947;
  --line: rgba(124, 190, 255, .22);
  --text: #eef6ff;
  --muted: #adc2dd;
  --blue: #3fd9ff;
  --green: #6affbd;
  --warn: #ffd36f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .18), transparent 24rem),
    radial-gradient(circle at top right, rgba(255, 81, 73, .14), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.report-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(124, 190, 255, .14);
  background: rgba(5, 11, 22, .88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3fd9ff, #3b82f6);
  color: #03101f;
  font-weight: 950;
}

.report-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.report-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.report-header nav a:hover,
.report-header nav a.live {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.report-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.report-hero,
.report-section,
.report-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 41, 71, .96), rgba(9, 24, 47, .96));
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}

.report-hero {
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.report-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.report-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions,
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #42d6ff, #27bce9);
  color: #041223;
  text-decoration: none;
  font-weight: 950;
}

.button.ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.published {
  font-size: 13px;
}

.report-section {
  padding: 22px;
  margin: 18px 0;
}

.report-section h2 {
  margin: 0 0 14px;
}

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

.test-card,
.report-card {
  padding: 18px;
}

.test-card {
  border: 1px solid rgba(124, 190, 255, .18);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}

.test-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.test-card h3,
.report-card h3 {
  margin: 0 0 4px;
}

.test-card p,
.report-card p,
.notes {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notes p {
  margin: 0 0 1rem;
}

.badge {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
}

.badge.good {
  color: var(--green);
  background: rgba(106, 255, 189, .10);
}

.badge.warn {
  color: var(--warn);
  background: rgba(255, 211, 111, .10);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.metric-grid div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(3, 13, 28, .55);
  border: 1px solid rgba(124, 190, 255, .13);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 3px;
}

.empty {
  color: var(--muted);
  padding: 18px;
}

@media (max-width: 860px) {
  .report-header {
    align-items: flex-start;
    display: grid;
  }

  .test-grid,
  .report-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}


/* Professional report rendering v1.6.9 */
.section-heading {
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.markdown-report {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

.markdown-report h2,
.markdown-report h3,
.markdown-report h4 {
  margin: 1.6rem 0 .7rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.markdown-report h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(124, 190, 255, .18);
}

.markdown-report h3 {
  font-size: 1.2rem;
}

.markdown-report p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.markdown-report strong {
  color: var(--text);
}

.markdown-report ul {
  margin: .4rem 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.markdown-report li {
  margin: .35rem 0;
}

.markdown-report code {
  padding: .1rem .35rem;
  border-radius: .45rem;
  background: rgba(255,255,255,.08);
  color: #dff7ff;
}

.report-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.45rem;
  border: 1px solid rgba(124, 190, 255, .18);
  border-radius: 18px;
  background: rgba(3, 13, 28, .38);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.report-table th,
.report-table td {
  padding: .82rem .9rem;
  text-align: left;
  border-bottom: 1px solid rgba(124, 190, 255, .12);
  vertical-align: top;
}

.report-table th {
  color: var(--text);
  background: rgba(63, 217, 255, .08);
  font-weight: 950;
}

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

.report-table tr:last-child td {
  border-bottom: 0;
}

.data-snapshot-section {
  background: linear-gradient(180deg, rgba(10, 29, 54, .94), rgba(8, 21, 42, .94));
}

.written-report-section {
  background:
    radial-gradient(circle at top left, rgba(63, 217, 255, .10), transparent 20rem),
    linear-gradient(180deg, rgba(17, 41, 71, .98), rgba(9, 24, 47, .96));
}

.report-hero h1 + p {
  margin-top: 1rem;
}



/* v1.6.9 report cell images */
.report-cells-overview { margin-top: 1.25rem; }
.report-hero-cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.report-hero-cell,
.test-card {
  position: relative;
  overflow: hidden;
}
.report-hero-cell {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,32,56,.92), rgba(10,22,40,.94));
  border: 1px solid rgba(92, 148, 255, .18);
  box-shadow: 0 14px 34px rgba(4, 10, 24, .28);
}
.report-hero-cell-copy h3 {
  margin: 0 0 6px;
}
.report-hero-cell-copy p {
  margin: 0 0 10px;
  opacity: .86;
}
.report-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-hero-chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(78, 136, 255, .12);
  border: 1px solid rgba(109, 159, 255, .2);
  color: #d7ebff;
  font-size: .86rem;
}
.report-cell-image-shell {
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(64, 205, 255, .15), transparent 55%),
    linear-gradient(180deg, rgba(13, 24, 43, .96), rgba(8, 17, 31, .98));
  border: 1px solid rgba(92, 148, 255, .14);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.report-cell-image-shell.main { min-height: 220px; }
.report-cell-image-shell.card {
  width: 92px;
  min-width: 92px;
  min-height: 92px;
  max-width: 92px;
  border-radius: 16px;
}
.report-cell-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 16px 26px rgba(32, 195, 255, .14));
}
.report-cell-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: .84rem;
  color: rgba(214, 230, 255, .7);
}
.report-cell-image-shell.missing .report-cell-image-fallback { display: flex; }
.test-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-card-heading-copy h3 { margin: 0 0 4px; }
.test-card-heading-copy p { margin: 0; opacity: .82; }
@media (max-width: 760px) {
  .report-hero-cell {
    grid-template-columns: 1fr;
  }
  .report-cell-image-shell.main {
    min-height: 180px;
  }
  .test-card-heading {
    align-items: flex-start;
  }
}



/* v1.6.9 report image and header reliability */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(124, 190, 255, .16);
  background: rgba(5, 11, 22, .86);
  backdrop-filter: blur(14px);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #42d6ff, #27bce9);
  color: #041223;
  font-weight: 950;
}
.site-header .brand span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}
.report-cell-image-shell.missing {
  min-height: 0 !important;
  display: none !important;
}
.report-cell-image-shell.missing .report-cell-image-fallback {
  display: none !important;
}
