:root {
  --report-bg: #080b0f;
  --report-surface: #11161b;
  --report-surface-raised: #161d24;
  --report-surface-inset: #0c1116;
  --report-border: #2a3540;
  --report-border-strong: #40505d;
  --report-text: #eef2f6;
  --report-muted: #8e9ba8;
  --report-subtle: #64727e;
  --report-primary: #6082b6;
  --report-primary-soft-text: #8fa8c9;
  --report-primary-soft: rgba(96, 130, 182, 0.16);
  --report-verified: #6fd1b5;
  --report-verified-soft: rgba(111, 209, 181, 0.14);
  --report-warning: #d19a45;
  --report-warning-soft: rgba(209, 154, 69, 0.14);
  --report-critical: #d96b82;
  --report-critical-soft: rgba(217, 107, 130, 0.14);
  --report-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  --report-font-display: 'Archivo', 'Arial', sans-serif;
  --report-font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
  --report-font-mono: 'IBM Plex Mono', Consolas, monospace;
  --report-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --report-radius-sm: 2px;
  --report-radius-md: 4px;
  --report-space-1: 4px;
  --report-space-2: 8px;
  --report-space-3: 12px;
  --report-space-4: 16px;
  --report-space-5: 24px;
  --report-space-6: 32px;
  --report-space-7: 48px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body.reports-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-top: var(--site-nav-height, 64px);
  background: var(--report-bg);
  color: var(--report-text);
  font-family: var(--report-font-body);
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.reports-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.22;
  background-image: linear-gradient(rgba(96, 130, 182, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 130, 182, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--report-font-display);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 0.95;
}

h1 {
  max-width: 15ch;
  font-size: clamp(42px, 5.4vw, 76px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(25px, 2.1vw, 34px);
}

h3 {
  font-size: 24px;
}

.mono {
  font-family: var(--report-font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

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

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

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

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

.skip-link {
  position: fixed;
  top: var(--report-space-3);
  left: var(--report-space-3);
  z-index: 100;
  padding: 10px 14px;
  color: var(--report-bg);
  background: var(--report-verified);
  border-radius: var(--report-radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--report-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select):focus-visible {
  outline: 2px solid var(--report-verified);
  outline-offset: 3px;
}

.reports-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 52px;
  border-bottom: 1px solid var(--report-border);
  background: rgba(8, 11, 15, 0.96);
  backdrop-filter: blur(12px);
}

.reports-header__inner {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: var(--report-space-5);
  align-items: center;
  width: min(100% - 32px, 1480px);
  min-height: 52px;
  margin: 0 auto;
}

.brand-lockup,
.reports-public-nav a,
.reports-breadcrumb,
.header-status,
.panel-kicker,
.eyebrow,
.metric-label,
.metric-note,
.leaderboard-head,
.table-meta,
.sort-button,
.field-group label,
.gate-facts dt,
.class-summary span,
.morphology-grid span {
  font-family: var(--report-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.105em;
}

.brand-lockup {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--report-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--report-primary);
  background: var(--report-primary-soft);
}

.brand-accent {
  color: var(--report-primary);
}

.reports-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--report-subtle);
  font-size: 10px;
  white-space: nowrap;
}

.reports-breadcrumb strong {
  color: var(--report-text);
  font-weight: 500;
}

.header-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--report-muted);
  font-size: 10px;
  white-space: nowrap;
}

.header-status strong {
  color: var(--report-text);
  font-weight: 600;
}

.account-state {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 180px;
  color: var(--report-verified);
}

.account-state i {
  font-size: 10px;
}

.account-state strong {
  overflow: hidden;
  color: var(--report-verified);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-status__divider {
  width: 1px;
  height: 14px;
  background: var(--report-border);
}

.reports-public-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.reports-public-nav a {
  color: var(--report-muted);
  font-size: 10px;
  text-decoration: none;
  transition: color 180ms ease;
}

.reports-public-nav a:hover,
.reports-public-nav a.is-active {
  color: var(--report-text);
}

.reports-public-nav .reports-login-link,
.reports-public-nav .reports-account-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  color: var(--report-text);
  border: 1px solid var(--report-border-strong);
  border-radius: var(--report-radius-sm);
}

.reports-public-nav .reports-account-link {
  color: var(--report-verified);
  border-color: rgba(111, 209, 181, 0.32);
}

.reports-public-nav .reports-account-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--report-subtle);
}

.status-dot--verified {
  background: var(--report-verified);
  box-shadow: 0 0 0 3px var(--report-verified-soft);
}

.status-dot--warning {
  background: var(--report-warning);
  box-shadow: 0 0 0 3px var(--report-warning-soft);
}

.reports-session-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 6px clamp(14px, 4vw, 56px);
  color: var(--report-muted);
  background: var(--report-surface-inset);
  border-bottom: 1px solid var(--report-border);
  font-family: var(--report-font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-session-strip__label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: auto;
  color: var(--report-text);
}

.reports-session-strip strong {
  color: var(--report-verified);
}

.reports-workspace {
  display: block;
  min-height: calc(100vh - var(--site-nav-height, 64px));
}

.reports-main {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.reports-main--console {
  padding: var(--report-space-7) clamp(20px, 4vw, 56px) 30px;
}

.report-intro {
  display: flex;
  gap: var(--report-space-6);
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--report-border);
}

.eyebrow,
.panel-kicker,
.metric-label,
.metric-note,
.field-group label,
.gate-facts dt,
.class-summary span,
.morphology-grid span {
  color: var(--report-muted);
  font-size: 9px;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--report-primary);
}

.report-intro .lede,
.gate-copy .lede {
  max-width: 760px;
  margin-top: 15px;
  color: var(--report-muted);
  font-size: 14px;
  line-height: 1.7;
}

.intro-actions,
.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--report-text);
  background: transparent;
  border: 1px solid var(--report-border-strong);
  border-radius: var(--report-radius-sm);
  font-family: var(--report-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms var(--report-ease);
}

.button:hover {
  border-color: var(--report-primary);
  background: var(--report-primary-soft);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  color: var(--report-bg);
  background: var(--report-verified);
  border-color: var(--report-verified);
}

.button--primary:hover {
  color: var(--report-bg);
  background: #91e0c3;
  border-color: #91e0c3;
}

.button--quiet {
  color: var(--report-muted);
}

.button--wide {
  width: 100%;
}

.button--compact {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 9px;
}

.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
  border: 1px solid var(--report-border);
  background: var(--report-surface);
}

.metric-cell {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px 20px;
  border-right: 1px solid var(--report-border);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-value {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.metric-value--primary {
  color: var(--report-primary);
}

.metric-note {
  color: var(--report-subtle);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.console-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.console-grid--overview {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
}

.console-grid--work {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.35fr);
}

.work-panel,
.gate-panel {
  min-width: 0;
  border: 1px solid var(--report-border);
  background: var(--report-surface);
}

.work-panel {
  padding: 20px;
}

.work-panel:hover {
  border-color: var(--report-border-strong);
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--report-border);
}

.panel-kicker {
  margin-bottom: 7px;
  color: var(--report-primary);
}

.panel-copy {
  max-width: 630px;
  margin-top: 9px;
  color: var(--report-muted);
  font-size: 12px;
  line-height: 1.6;
}

.live-label,
.panel-count {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--report-verified);
  border: 1px solid rgba(111, 209, 181, 0.28);
  font-family: var(--report-font-mono);
  font-size: 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-count {
  color: var(--report-muted);
  border-color: var(--report-border);
}

.signal-list {
  display: grid;
  gap: 18px;
  padding: 20px 0 18px;
}

.signal-row {
  display: grid;
  gap: 8px;
}

.signal-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--report-muted);
  font-size: 12px;
}

.signal-meta strong {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.signal-track,
.leaderboard-track {
  height: 7px;
  overflow: hidden;
  background: #202a33;
}

.signal-fill,
.leaderboard-track span {
  display: block;
  width: var(--signal-width, 0%);
  height: 100%;
  background: var(--report-primary);
  transform-origin: left center;
  transition: width 800ms var(--report-ease);
}

.signal-fill--primary {
  background: var(--report-primary);
}

.signal-fill--warning,
.signal-fill--high {
  background: var(--report-warning);
}

.signal-fill--critical {
  background: var(--report-critical);
}

.signal-fill--verified,
.signal-fill--medium {
  background: var(--report-verified);
}

.policy-note {
  display: grid;
  gap: 5px;
  padding-top: 16px;
  border-top: 1px solid var(--report-border);
  color: var(--report-muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.segmented-control {
  display: inline-flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--report-border-strong);
}

.segmented-control button {
  min-height: 30px;
  padding: 4px 10px;
  color: var(--report-muted);
  background: transparent;
  border: 0;
  font-family: var(--report-font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.segmented-control button + button {
  border-left: 1px solid var(--report-border-strong);
}

.segmented-control button:hover,
.segmented-control button.is-active {
  color: var(--report-text);
  background: var(--report-primary-soft);
}

.leaderboard-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: 70px minmax(130px, 1fr) 90px 70px;
  gap: 14px;
  align-items: center;
}

.leaderboard-head {
  padding: 18px 0 8px;
  color: var(--report-subtle);
  font-size: 8px;
}

.leaderboard-head span:nth-child(3),
.leaderboard-head span:nth-child(4),
.leaderboard-count,
.leaderboard-share {
  text-align: right;
}

.leaderboard-list {
  display: grid;
}

.leaderboard-row {
  min-height: 42px;
  border-top: 1px solid rgba(42, 53, 64, 0.75);
  font-size: 11px;
}

.leaderboard-row > strong {
  color: var(--report-text);
  font-size: 11px;
}

.leaderboard-track {
  height: 8px;
}

.leaderboard-track span {
  width: var(--leader-width, 0%);
  background: var(--report-primary);
}

.leaderboard-count,
.leaderboard-share {
  color: var(--report-muted);
  font-size: 10px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px auto;
  gap: 9px;
  align-items: end;
  padding: 16px 0;
  border-bottom: 1px solid var(--report-border);
}

.field-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-group label {
  color: var(--report-subtle);
  font-size: 8px;
}

.input-with-icon {
  position: relative;
  min-width: 0;
}

.input-with-icon > i {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--report-subtle);
  pointer-events: none;
  transform: translateY(-50%);
}

input,
select {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--report-text);
  background: var(--report-surface-inset);
  border: 1px solid var(--report-border);
  border-radius: var(--report-radius-sm);
  font-size: 12px;
}

.input-with-icon input {
  padding-left: 31px;
}

input::placeholder {
  color: var(--report-subtle);
}

input:hover,
select:hover {
  border-color: var(--report-border-strong);
}

input:focus,
select:focus {
  border-color: var(--report-primary);
  outline: 2px solid rgba(96, 130, 182, 0.35);
  outline-offset: 1px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--report-muted) 50%), linear-gradient(135deg, var(--report-muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  padding-right: 26px;
}

.domain-feed {
  display: grid;
  max-height: 475px;
  overflow: auto;
  scrollbar-color: var(--report-border-strong) transparent;
  scrollbar-width: thin;
}

.domain-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 30px;
  gap: 10px;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid rgba(42, 53, 64, 0.75);
  transition: background-color 160ms ease, opacity 180ms ease;
}

.domain-row:hover {
  background: var(--report-primary-soft);
}

.domain-index {
  color: var(--report-subtle);
  font-family: var(--report-font-mono);
  font-size: 9px;
}

.domain-value {
  min-width: 0;
  overflow: hidden;
  color: var(--report-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-badge,
.band-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid var(--report-border);
  border-radius: var(--report-radius-sm);
  font-family: var(--report-font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.risk-badge--critical,
.band-badge--extreme {
  color: var(--report-critical);
  background: var(--report-critical-soft);
  border-color: rgba(217, 107, 130, 0.38);
}

.risk-badge--high,
.band-badge--high {
  color: var(--report-warning);
  background: var(--report-warning-soft);
  border-color: rgba(209, 154, 69, 0.38);
}

.risk-badge--medium,
.band-badge--elevated {
  color: var(--report-primary);
  background: var(--report-primary-soft);
  border-color: rgba(96, 130, 182, 0.38);
}

.band-badge--tracked {
  color: var(--report-verified);
  background: var(--report-verified-soft);
  border-color: rgba(111, 209, 181, 0.38);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--report-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--report-radius-sm);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms var(--report-ease);
}

.icon-button:hover,
.icon-button.is-copied {
  color: var(--report-verified);
  border-color: rgba(111, 209, 181, 0.35);
  background: var(--report-verified-soft);
  transform: translateY(-1px);
}

.analysis-panel {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--report-border);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 49px;
  padding: 10px 13px;
  color: var(--report-muted);
  background: transparent;
  border: 0;
  font-family: var(--report-font-mono);
  font-size: 9px;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.tab::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  content: '';
  background: transparent;
  transform: scaleX(0);
  transition: background-color 180ms ease, transform 180ms var(--report-ease);
}

.tab:hover,
.tab.is-active {
  color: var(--report-text);
  background: var(--report-primary-soft);
}

.tab.is-active::after {
  background: var(--report-primary);
  transform: scaleX(1);
}

.tab-panel {
  min-height: 276px;
  padding-top: 20px;
}

.dominance-callout {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--report-border);
}

.dominance-callout strong {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.95;
}

.dominance-callout > span:last-child {
  color: var(--report-muted);
  font-size: 12px;
}

.class-summary,
.morphology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--report-border);
  border-bottom: 1px solid var(--report-border);
}

.class-summary > div,
.morphology-grid > div {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 16px 14px;
  border-right: 1px solid var(--report-border);
}

.class-summary > div:last-child,
.morphology-grid > div:last-child {
  border-right: 0;
}

.class-summary strong,
.morphology-grid strong {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: 19px;
  font-weight: 500;
}

.risk-lanes,
.keyword-grid,
.cluster-list {
  display: grid;
  gap: 13px;
}

.risk-lane {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--report-border);
}

.risk-lane__meta,
.keyword-row > div:first-child,
.cluster-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.risk-lane__meta > strong,
.risk-lane__meta > span:last-child,
.keyword-row > div:first-child > span,
.cluster-row > span:nth-child(2) {
  color: var(--report-muted);
  font-family: var(--report-font-mono);
  font-size: 10px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.example-chip {
  max-width: 100%;
  padding: 4px 6px;
  color: var(--report-muted);
  background: var(--report-surface-inset);
  border: 1px solid var(--report-border);
  border-radius: var(--report-radius-sm);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.cluster-list {
  margin-top: 20px;
}

.cluster-row {
  display: grid;
  grid-template-columns: 78px 48px minmax(0, 1fr);
  min-height: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--report-border);
}

.cluster-row strong {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: 10px;
}

.cluster-row > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--report-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-row {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--report-border);
}

.keyword-row strong {
  color: var(--report-text);
  font-size: 12px;
}

.ledger-panel,
.sample-panel {
  scroll-margin-top: 74px;
}

.ledger-heading {
  align-items: flex-end;
}

.ledger-actions {
  align-items: flex-end;
}

.ledger-actions .field-group {
  width: min(260px, 32vw);
}

.table-meta {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 0 11px;
  color: var(--report-subtle);
  font-size: 8px;
}

.table-wrap {
  max-height: 700px;
  overflow: auto;
  border: 1px solid var(--report-border);
  scrollbar-color: var(--report-border-strong) transparent;
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 12px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--report-surface-raised);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--report-border);
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3) {
  text-align: right;
}

tbody tr {
  transition: background-color 150ms ease, opacity 180ms ease;
}

tbody tr:hover {
  background: var(--report-primary-soft);
}

tbody th {
  color: var(--report-text);
  font-weight: 600;
}

tbody td {
  color: var(--report-text);
}

.sort-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  color: var(--report-muted);
  background: none;
  border: 0;
  font-size: 8px;
}

.sort-button:hover,
.sort-button[aria-sort='ascending'],
.sort-button[aria-sort='descending'] {
  color: var(--report-text);
}

.sort-button span {
  color: var(--report-primary);
  font-size: 11px;
}

.empty-state {
  padding: 22px 0;
  color: var(--report-muted);
  font-size: 12px;
}

.sample-panel {
  margin-top: 20px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 18px;
}

.sample-domain {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border-bottom: 1px solid var(--report-border);
}

.sample-domain > i {
  color: var(--report-primary);
  font-size: 11px;
}

.sample-domain > span {
  min-width: 0;
  overflow: hidden;
  color: var(--report-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 18px 0 4px;
  color: var(--report-subtle);
  border-top: 1px solid var(--report-border);
  font-family: var(--report-font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.reports-footer strong,
.reports-footer a {
  color: var(--report-verified);
}

.reports-footer a {
  text-decoration: none;
}

.reports-footer a:hover {
  color: var(--report-text);
}

.reports-protection {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.reports-protection__inner {
  padding: 22px;
  border: 1px solid var(--report-border);
  background: var(--report-surface);
}

.reports-protection__intro {
  display: grid;
  gap: 10px;
  max-width: 720px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--report-border);
}

.reports-protection__intro h2 {
  max-width: 18ch;
}

.reports-protection__intro p,
.reports-protection__lanes p,
.reports-protection__footer p {
  color: var(--report-muted);
  font-size: 12px;
  line-height: 1.65;
}

.reports-protection__lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--report-border);
}

.reports-protection__lanes article {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 176px;
  padding: 20px 18px 20px 0;
  border-right: 1px solid var(--report-border);
}

.reports-protection__lanes article + article {
  padding-left: 18px;
}

.reports-protection__lanes article:last-child {
  padding-right: 0;
  border-right: 0;
}

.reports-protection__lanes h3 {
  color: var(--report-text);
  font-family: var(--report-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.reports-protection__lanes strong {
  color: var(--report-text);
  font-family: var(--report-font-mono);
}

.reports-protection__footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}

.reports-protection__footer p {
  max-width: 760px;
}

.gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: center;
  width: min(100%, 1180px);
  min-height: calc(100vh - var(--site-nav-height, 64px) - 34px);
  margin: 0 auto;
  padding: 56px 24px;
}

.reports-main--gate {
  padding: 0 24px;
}

.gate-copy {
  max-width: 700px;
}

.gate-copy .eyebrow {
  color: var(--report-warning);
}

.gate-policy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  max-width: 600px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--report-border);
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--report-warning);
  border: 1px solid rgba(209, 154, 69, 0.38);
  border-radius: var(--report-radius-sm);
  background: var(--report-warning-soft);
}

.gate-policy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.gate-policy p {
  color: var(--report-muted);
  font-size: 12px;
}

.gate-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin-top: 28px;
  border-top: 1px solid var(--report-border);
  border-bottom: 1px solid var(--report-border);
}

.gate-facts > div {
  display: grid;
  gap: 7px;
  padding: 14px 14px 14px 0;
  border-right: 1px solid var(--report-border);
}

.gate-facts > div + div {
  padding-left: 14px;
}

.gate-facts > div:last-child {
  border-right: 0;
}

.gate-facts dd {
  color: var(--report-text);
  font-family: var(--report-font-mono);
  font-size: 11px;
}

.gate-panel {
  padding: 28px;
  box-shadow: var(--report-shadow);
}

.gate-panel h2 {
  margin-bottom: 12px;
}

.gate-panel .panel-copy {
  margin-bottom: 22px;
}

.inline-alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--report-border);
  border-radius: var(--report-radius-sm);
  font-size: 12px;
}

.inline-alert--error {
  color: var(--report-critical);
  border-color: rgba(217, 107, 130, 0.38);
  background: var(--report-critical-soft);
}

.account-banner {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 12px;
  margin-bottom: 16px;
  color: var(--report-verified);
  border: 1px solid rgba(111, 209, 181, 0.28);
  border-radius: var(--report-radius-sm);
  background: var(--report-verified-soft);
  font-size: 11px;
  line-height: 1.5;
}

.account-banner i {
  flex: 0 0 auto;
  margin-top: 2px;
}

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

.gate-form {
  display: grid;
  gap: 14px;
}

.turnstile-frame {
  display: grid;
  gap: 12px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--report-border);
  background: var(--report-surface-inset);
}

.turnstile-slot {
  min-height: 65px;
}

.form-status {
  min-height: 20px;
  color: var(--report-muted);
  font-size: 11px;
}

.form-status.is-success {
  color: var(--report-verified);
}

.form-status.is-warning {
  color: var(--report-warning);
}

.form-status.is-error {
  color: var(--report-critical);
}

.report-reveal {
  opacity: 1;
  transform: none;
}

.js .report-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--report-ease), transform 500ms var(--report-ease);
}

.js .report-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes reports-protection-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes reports-protection-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--report-verified-soft); }
  50% { box-shadow: 0 0 0 6px rgba(111, 209, 181, 0.04); }
}

@media (max-width: 1180px) {
  .reports-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .reports-public-nav {
    display: none;
  }

  .reports-breadcrumb {
    justify-self: center;
  }

  .console-grid--overview,
  .console-grid--work {
    grid-template-columns: minmax(0, 1fr);
  }
}


@media (max-width: 820px) {
  .reports-header__inner {
    width: min(100% - 24px, 1480px);
    gap: 12px;
  }

  .header-status {
    font-size: 9px;
  }

  .header-status__divider,
  .header-status > span:nth-of-type(n + 4) {
    display: none;
  }

  .header-status > span.account-state {
    display: inline-flex;
    max-width: 112px;
  }

  .header-status > span.account-state strong {
    max-width: 82px;
  }

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

  .metric-cell:nth-child(2) {
    border-right: 0;
  }

  .metric-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--report-border);
  }

  .filter-toolbar {
    grid-template-columns: minmax(0, 1fr) 110px 110px;
  }

  .filter-toolbar .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .reports-protection__lanes {
    grid-template-columns: 1fr;
  }

  .reports-protection__lanes article,
  .reports-protection__lanes article + article,
  .reports-protection__lanes article:last-child {
    min-height: 0;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--report-border);
  }

  .reports-protection__lanes article:last-child {
    border-bottom: 0;
  }

  .reports-protection__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gate-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }
}

@media (max-width: 580px) {
  body.reports-page {
    font-size: 13px;
  }


  .reports-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 52px;
  }

  .reports-breadcrumb {
    display: none;
  }

  .reports-session-strip {
    justify-content: flex-start;
    gap: 6px 12px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 8px;
  }

  .reports-session-strip__label {
    width: 100%;
  }

  .reports-protection {
    width: min(100% - 28px, 1480px);
  }

  .reports-protection__inner {
    padding: 15px;
  }

  .header-status {
    justify-self: end;
  }

  .reports-main--console {
    padding: 30px 14px 24px;
  }

  .report-intro,
  .ledger-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-intro {
    gap: 20px;
  }

  .intro-actions,
  .ledger-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .intro-actions .button {
    flex: 1 1 auto;
  }

  h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 0.94;
  }

  .work-panel {
    padding: 15px;
  }

  .leaderboard-head,
  .leaderboard-row {
    grid-template-columns: 48px minmax(70px, 1fr) 72px;
    gap: 8px;
  }

  .leaderboard-head span:nth-child(4),
  .leaderboard-share {
    display: none;
  }

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

  .field-group--search {
    grid-column: 1 / -1;
  }

  .filter-toolbar .button {
    grid-column: auto;
  }

  .domain-row {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 7px;
    min-height: 48px;
  }

  .domain-row .risk-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: -6px;
  }

  .domain-row .copy-domain {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .domain-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

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

  .class-summary > div:nth-child(2),
  .morphology-grid > div:nth-child(2) {
    border-right: 0;
  }

  .class-summary > div:nth-child(-n + 2),
  .morphology-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--report-border);
  }

  .class-summary > div:nth-child(3),
  .morphology-grid > div:nth-child(3) {
    border-right: 1px solid var(--report-border);
  }

  .cluster-row {
    grid-template-columns: 64px 38px minmax(0, 1fr);
  }

  .ledger-actions .field-group {
    width: 100%;
  }

  .ledger-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ledger-actions .button {
    align-self: flex-start;
  }

  .table-meta {
    flex-direction: column;
    gap: 4px;
  }

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

  .reports-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .reports-main--gate {
    padding: 0 14px;
  }

  .gate-layout {
    gap: 34px;
    padding: 44px 0 32px;
  }

  .gate-panel {
    padding: 19px;
  }

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

  .gate-facts > div,
  .gate-facts > div + div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--report-border);
  }

  .gate-facts > div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .report-reveal,
  .js .report-reveal.is-visible,
  .js .reports-protection--console .reports-protection__lanes article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Editorial console polish: keep data surfaces flat, spacious, and legible. */
.metric-ribbon {
  margin: 28px 0 44px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.metric-cell {
  min-height: 132px;
  padding: 24px 24px 24px 0;
  background: transparent;
}

.metric-cell + .metric-cell {
  padding-left: 24px;
}

.console-grid {
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 44px;
}

.work-panel {
  padding: 24px 0 30px;
  border: 0;
  border-top: 1px solid var(--report-border);
  border-bottom: 1px solid var(--report-border);
  border-radius: 0;
  background: transparent;
}

.work-panel:hover {
  border-color: var(--report-border);
}

.console-grid .work-panel {
  border-bottom: 0;
}

.panel-heading {
  padding-bottom: 18px;
}

.panel-kicker,
.eyebrow {
  color: var(--report-primary-soft-text, var(--report-primary));
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(27px, 2.6vw, 40px);
}

h3 {
  font-size: 20px;
}

.report-intro {
  min-height: 256px;
  padding-top: 18px;
}

.report-intro .lede,
.gate-copy .lede {
  max-width: 640px;
  font-size: 15px;
}

.signal-list,
.tabs,
.tab-panel,
.sample-grid,
.table-meta {
  margin-top: 6px;
}

.signal-track,
.leaderboard-track {
  height: 5px;
  background: rgba(96, 130, 182, 0.16);
}

.policy-note {
  margin-top: 4px;
}

.ledger-panel,
.sample-panel {
  border-top: 1px solid var(--report-border);
}

.reports-protection {
  padding-top: 10px;
}

.reports-protection__inner {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--report-border);
  border-radius: var(--report-radius-md);
  background: var(--report-surface);
}

.reports-main--console > .reports-protection--console {
  width: 100%;
  margin: 0 0 clamp(36px, 5vw, 64px);
  padding: 0;
  scroll-margin-top: 84px;
}

.reports-protection--console .reports-protection__inner {
  position: relative;
  isolation: isolate;
}

.reports-protection--console .reports-protection__inner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.4;
  background: linear-gradient(110deg, transparent 0%, rgba(111, 209, 181, 0.06) 46%, transparent 72%);
  transform: translateX(-100%);
}

.js .reports-protection--console.is-visible .reports-protection__inner::after {
  animation: reports-protection-scan 1.4s var(--report-ease) 180ms both;
}

.reports-protection--console .status-dot--verified {
  animation: reports-protection-pulse 2.8s ease-in-out infinite;
}

.js .reports-protection--console .reports-protection__lanes article {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms var(--report-ease), transform 480ms var(--report-ease), background-color 180ms ease;
}

.js .reports-protection--console.is-visible .reports-protection__lanes article {
  opacity: 1;
  transform: none;
}

.js .reports-protection--console.is-visible .reports-protection__lanes article:nth-child(2) {
  transition-delay: 100ms;
}

.js .reports-protection--console.is-visible .reports-protection__lanes article:nth-child(3) {
  transition-delay: 180ms;
}

.reports-protection--console .reports-protection__lanes article:hover {
  background: linear-gradient(90deg, rgba(111, 209, 181, 0.045), transparent 70%);
}

.reports-protection--console .reports-protection__lanes article:hover h3 {
  color: var(--report-verified);
}

.reports-protection__intro {
  max-width: none;
  padding: 28px 28px 24px;
}

.reports-protection__intro h2 {
  max-width: 24ch;
}

.reports-protection__lanes {
  counter-reset: protection-lane;
  padding: 0 28px;
}

.reports-protection__lanes article {
  position: relative;
  min-height: 164px;
  padding: 24px 20px 26px 0;
}

.reports-protection__lanes article::before {
  display: block;
  margin-bottom: 22px;
  color: var(--report-primary-soft-text);
  content: '0' counter(protection-lane);
  counter-increment: protection-lane;
  font-family: var(--report-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.reports-protection__lanes h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.reports-protection__footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--report-border);
}


@media (max-width: 820px) {
  .reports-protection__intro,
  .reports-protection__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .reports-protection__lanes {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 580px) {

  .reports-protection__intro {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .reports-protection__lanes article,
  .reports-protection__lanes article + article,
  .reports-protection__lanes article:last-child {
    min-height: 0;
    padding: 18px 0 20px;
  }

  .reports-protection__lanes article::before {
    margin-bottom: 14px;
  }

  .reports-protection__footer {
    padding-top: 18px;
    padding-bottom: 22px;
  }
}

@media (max-width: 820px) {
  .metric-cell,
  .metric-cell + .metric-cell {
    padding: 20px;
  }
}

@media (max-width: 580px) {
  .metric-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell,
  .metric-cell + .metric-cell {
    min-height: 100px;
    padding: 18px 14px;
    border-right: 1px solid var(--report-border);
    border-bottom: 1px solid var(--report-border);
  }

  .metric-cell:nth-child(2n) {
    border-right: 0;
  }

  .metric-cell:nth-child(n + 3) {
    border-bottom: 0;
  }

  .report-intro {
    min-height: 0;
    padding-top: 4px;
  }

  .work-panel {
    padding-top: 20px;
    padding-bottom: 24px;
  }
}

@media print {
  body.reports-page {
    padding-top: 0;
    color: #111;
    background: #fff;
  }

  body.reports-page::before,
  .site-nav,
  .reports-session-strip,
  .reports-header,
  .intro-actions,
  .filter-toolbar,
  .ledger-actions,
  .icon-button,
  .tabs,
  .segmented-control,
  .reports-footer a {
    display: none !important;
  }

  .reports-workspace {
    display: block;
  }

  .reports-main--console {
    width: 100%;
    padding: 0;
  }

  .report-intro,
  .work-panel,
  .metric-ribbon,
  .gate-panel {
    color: #111;
    border-color: #b7bec6;
    background: #fff;
    box-shadow: none;
  }

  .report-intro {
    padding: 0 0 18px;
  }

  h1,
  h2,
  .metric-value,
  .dominance-callout strong,
  .class-summary strong,
  .morphology-grid strong,
  tbody th,
  tbody td {
    color: #111 !important;
  }

  .muted,
  .metric-note,
  .panel-copy,
  .signal-meta,
  .policy-note,
  .table-meta,
  .sample-domain > span {
    color: #45515c !important;
  }

  .metric-cell,
  .class-summary > div,
  .morphology-grid > div,
  th,
  td,
  .domain-row,
  .sample-domain {
    border-color: #d7dce1;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  table {
    min-width: 0;
  }
}
