:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e1d5;
  --ink: #151714;
  --muted: #66675f;
  --line: #cbc5b8;
  --card: #fbf9f4;
  --blue: #2958ff;
  --blue-dark: #1736a4;
  --orange: #ef5b2a;
  --acid: #d9f152;
  --green: #1f7a4c;
  --black: #111310;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(33, 35, 29, 0.08);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --max: 1320px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 23, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 20, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.safe-mode .sensitive-content {
  display: none !important;
}

body.safe-mode .sensitive-copy::before {
  content: "Hidden in safe mode";
  display: block;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(21, 23, 20, 0.035) 7px, rgba(21, 23, 20, 0.035) 14px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.safe-mode .sensitive-copy > * {
  display: none !important;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.88em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(21, 23, 20, 0.16);
  background: rgba(243, 240, 232, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: -0.03em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
}

.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  transition: right 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  right: 0;
}

.local-badge {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.local-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 76, 0.12);
}

.reading-progress {
  position: fixed;
  z-index: 60;
  top: 71px;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 108px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: 42px 70px;
  min-height: calc(100vh - 72px);
  align-content: center;
  padding-top: 90px;
  padding-bottom: 72px;
}

.eyebrow {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.eyebrow span,
.kicker,
.warning-tag,
.verdict-label,
.micro-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.eyebrow span:first-child {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.hero h1,
.section-heading h2,
.limits-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(62px, 7.5vw, 112px);
}

.hero h1 em {
  color: var(--blue);
  font-weight: 500;
}

.lede {
  max-width: 820px;
  margin: 32px 0 0;
  color: #4e504a;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.lede strong {
  color: var(--ink);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 23, 20, 0.14);
}

.button.primary {
  color: var(--white);
  border-color: var(--black);
  background: var(--black);
}

.button.secondary {
  background: transparent;
}

.verdict-card {
  align-self: end;
  padding: 25px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--acid);
  box-shadow: 12px 12px 0 var(--ink);
}

.verdict-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verdict-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
}

.verdict-score {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 22px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(21, 23, 20, 0.35);
}

.verdict-score span {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 0.76;
  letter-spacing: -0.07em;
}

.verdict-score small {
  color: #404535;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.verdict-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 12px;
}

.verdict-list li {
  display: grid;
  grid-template-columns: 8px 66px 1fr;
  gap: 8px;
  align-items: baseline;
}

.signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.signal.observed { background: var(--green); }
.signal.inferred { background: var(--blue); }
.signal.blocked { background: var(--orange); }

.metric-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  position: relative;
  min-height: 138px;
  padding: 23px;
  border-right: 1px solid var(--line);
}

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

.metric-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 65px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.integrity-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(251, 249, 244, 0.75);
}

.integrity-strip strong,
.integrity-strip code,
.micro-label {
  display: block;
}

.micro-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
}

.integrity-strip strong {
  font-size: 13px;
}

.hash-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.hash-block .micro-label {
  grid-column: 1 / -1;
}

.hash-block code {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.privacy-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--black);
  background: var(--orange);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
}

.privacy-banner h2 {
  margin: 0 0 3px;
  font-size: 14px;
}

.privacy-banner p {
  max-width: 780px;
  margin: 0;
  color: #bbbdb6;
  font-size: 12px;
}

.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.privacy-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 49px;
  height: 26px;
  border: 1px solid #565952;
  border-radius: 999px;
  background: #2e302c;
  transition: background 0.2s;
}

.toggle-track span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
}

.privacy-toggle input:checked + .toggle-track {
  background: var(--green);
}

.privacy-toggle input:checked + .toggle-track span {
  transform: translateX(23px);
}

.privacy-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.privacy-toggle strong,
.privacy-toggle small {
  display: block;
  white-space: nowrap;
}

.privacy-toggle strong {
  font-size: 11px;
}

.privacy-toggle small {
  color: #8e9189;
  font-size: 9px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading.compact {
  margin-bottom: 38px;
}

.kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
}

.kicker.light {
  color: var(--acid);
}

.section-heading h2,
.limits-grid h2 {
  font-size: clamp(48px, 6vw, 82px);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.finding-card {
  position: relative;
  min-height: 280px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 244, 0.45);
}

.finding-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.25s;
}

.finding-card:hover::before {
  transform: scaleX(1);
}

.finding-card[data-level="limit"]::before { background: var(--orange); }
.finding-card[data-level="caution"]::before { background: #b48b00; }
.finding-card[data-level="inferred"]::before { background: var(--blue); }

.finding-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finding-card h3 {
  max-width: 330px;
  margin: 52px 0 15px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.finding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-summary-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

.chart-card,
.source-warning {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
}

.chart-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.turn-strip {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 5px;
  align-items: end;
  height: 120px;
  margin: 28px 0 18px;
}

.turn-bar {
  position: relative;
  height: 42%;
  border-radius: 5px 5px 2px 2px;
  background: #d1ccc1;
  transition: height 0.2s, background 0.2s;
}

.turn-bar.search {
  height: 100%;
  background: var(--blue);
}

.turn-bar::after {
  content: attr(data-turn);
  position: absolute;
  left: 50%;
  bottom: -19px;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 10px;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.search { background: var(--blue); }
.legend-dot.no-search { background: #d1ccc1; }

.source-warning {
  color: var(--white);
  background: var(--blue);
}

.warning-tag {
  display: inline-block;
  padding: 5px 7px;
  color: var(--black);
  border-radius: 4px;
  background: var(--acid);
  font-size: 8px;
}

.source-warning h3 {
  max-width: 500px;
  margin: 35px 0 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.source-warning p {
  margin: 0;
  color: #cdd7ff;
  font-size: 12px;
}

.search-turns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.search-turn-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 249, 244, 0.7);
}

.search-turn-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.search-stats {
  display: flex;
  gap: 14px;
  margin: 8px 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.query-list,
.result-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.query-list li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #50524b;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
}

.result-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.result-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--card);
}

.cite-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-family: var(--mono);
  font-size: 8px;
}

.result-title {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-domain {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.result-domain.unverified {
  color: #8d6100;
}

.claim-audit {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 30px;
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.claim-audit-heading h3 {
  margin: 28px 0 14px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.claim-audit-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.claim-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.claim-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 92px minmax(0, 1.3fr);
  gap: 14px;
  align-items: start;
  padding: 13px;
  background: var(--card);
}

.claim-row strong {
  font-size: 10px;
  line-height: 1.35;
}

.claim-row p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.claim-verdict {
  display: inline-block;
  width: fit-content;
  padding: 5px 6px;
  border-radius: 4px;
  color: var(--white);
  background: var(--orange);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.claim-verdict.supported { background: var(--green); }
.claim-verdict.unobservable { background: var(--black); }
.claim-verdict.conflated { background: #9a6900; }

.session-section {
  border-top: 1px solid var(--line);
}

.session-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.search-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.search-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 88, 255, 0.11);
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-button,
.evidence-tab {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible,
.evidence-tab.active,
.evidence-tab:hover,
.evidence-tab:focus-visible {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.result-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.phase-rail {
  display: grid;
  grid-template-columns: 2fr 1fr 6fr 7fr;
  gap: 4px;
  margin: 0 0 34px;
}

.phase-block {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  background: #d7d1c5;
  font-family: var(--mono);
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-block:nth-child(1) { color: var(--white); background: var(--blue); }
.phase-block:nth-child(2) { color: var(--white); background: var(--orange); }
.phase-block:nth-child(3) { background: #dcd6ca; }
.phase-block:nth-child(4) { color: var(--white); background: var(--black); }

.turn-list {
  display: grid;
  gap: 10px;
}

.turn-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 249, 244, 0.75);
  overflow: hidden;
}

.turn-card[hidden] {
  display: none;
}

.turn-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 17px 8px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: rgba(21, 23, 20, 0.025);
  font-family: var(--mono);
  font-size: 9px;
}

.turn-index strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.turn-search-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1ccc1;
}

.turn-search-mark.active {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(41, 88, 255, 0.12);
}

.turn-body {
  min-width: 0;
}

.turn-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.turn-summary::-webkit-details-marker { display: none; }

.turn-title {
  min-width: 0;
}

.turn-title strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-title span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.turn-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.turn-badge {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.turn-badge.search {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.turn-badge.sensitive {
  color: #8a3b1e;
  border-color: rgba(239, 91, 42, 0.35);
  background: rgba(239, 91, 42, 0.08);
}

.turn-details {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-top: 1px solid var(--line);
}

.message-panel {
  min-width: 0;
  padding: 22px;
}

.message-panel + .message-panel {
  border-left: 1px solid var(--line);
  background: rgba(41, 88, 255, 0.025);
}

.message-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.message-copy {
  max-height: 430px;
  margin: 0;
  overflow: auto;
  color: #3f413c;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.protocol-section {
  color: var(--white);
  background: transparent;
}

.protocol-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  z-index: -1;
  margin-top: -108px;
  background: var(--black);
}

.protocol-section {
  position: relative;
}

.protocol-section .kicker { color: var(--acid); }
.protocol-section .section-heading > p { color: #adafa8; }

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.flow-node {
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: 22px;
  border: 1px solid #3d403a;
  border-radius: var(--radius);
  background: #191b18;
  overflow: hidden;
}

.flow-node::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.flow-node.crypto { border-color: rgba(217, 241, 82, 0.55); }
.flow-node.server { border-color: rgba(41, 88, 255, 0.8); }
.flow-node.stream { border-color: rgba(239, 91, 42, 0.8); }

.node-index,
.node-owner {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.node-index { color: var(--acid); }
.node-owner { float: right; color: #777a73; }

.flow-node h3 {
  margin: 72px 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.flow-node code {
  display: block;
  overflow: hidden;
  color: #aebcff;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-node p {
  margin: 15px 0 0;
  color: #8d9088;
  font-size: 11px;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #71746d;
  font-size: 22px;
}

.flow-arrow span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.protocol-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.code-card,
.patch-card {
  border: 1px solid #3d403a;
  border-radius: var(--radius);
  background: #191b18;
  overflow: hidden;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  color: #868980;
  border-bottom: 1px solid #3d403a;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.code-card pre {
  min-height: 245px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #cbd4ff;
  font-size: 11px;
  line-height: 1.7;
}

.patch-card {
  padding: 26px;
}

.patch-card h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.patch-card dl {
  margin: 0;
}

.patch-card dl div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #343731;
}

.patch-card dt,
.patch-card dd { margin: 0; }
.patch-card dd { color: #a8aaa3; font-size: 11px; }
.patch-card p { color: #74776f; font-size: 11px; }

.crypto-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.crypto-card {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.crypto-card .crypto-type {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.crypto-card[data-kind="encrypted"] .crypto-type { background: var(--orange); }
.crypto-card[data-kind="opaque"] .crypto-type { background: var(--black); }
.crypto-card[data-kind="transport"] .crypto-type { color: var(--ink); background: var(--acid); }

.crypto-card h3 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.crypto-card p {
  color: var(--muted);
  font-size: 12px;
}

.crypto-fact {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 22px;
}

.host-list {
  display: grid;
  gap: 8px;
}

.host-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(180px, 1fr) 70px 90px;
  gap: 14px;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 249, 244, 0.7);
}

.host-name strong,
.host-name small {
  display: block;
}

.host-name strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.host-bar-track {
  height: 7px;
  border-radius: 99px;
  background: var(--paper-deep);
  overflow: hidden;
}

.host-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.host-row:first-child .host-bar { background: var(--orange); }

.host-count,
.host-bytes {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.network-note {
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--black);
}

.note-number {
  display: block;
  color: var(--acid);
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.network-note h3 {
  margin: 26px 0 14px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.05;
}

.network-note code {
  color: #9eafff;
}

.network-note p {
  color: #93968e;
  font-size: 11px;
}

.network-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.network-fact {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 249, 244, 0.72);
}

.network-fact strong,
.network-fact span {
  display: block;
}

.settings-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 24px;
  margin-top: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.settings-intro h3 {
  margin: 8px 0 13px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.settings-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.feature-flag {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.model-configs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.model-card {
  position: relative;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.model-card.default {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.model-card .model-type {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.model-card.default .model-type,
.model-card.default p,
.model-card.default .model-capability {
  color: #cdd7ff;
  border-color: rgba(255, 255, 255, 0.25);
}

.model-card h4 {
  margin: 34px 0 9px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.model-card p {
  min-height: 50px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.model-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}

.model-capability {
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.network-fact strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.network-fact span {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-transform: uppercase;
}

.data-disclosure {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.data-disclosure summary {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.data-disclosure summary span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.data-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.coverage-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.coverage-stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.coverage-stat:last-child { border-right: 0; }

.coverage-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.coverage-stat span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.bundle-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 34px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 249, 244, 0.72);
}

.bundle-story-heading h3 {
  margin: 8px 0 13px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.bundle-story-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.bundle-timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.bundle-stage {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.6fr) minmax(0, 1.4fr) auto;
  gap: 13px;
  align-items: center;
  padding: 11px 12px;
  background: var(--card);
}

.bundle-stage-index,
.bundle-stage-time,
.bundle-stage-count {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.bundle-stage-index {
  color: var(--blue);
}

.bundle-stage strong {
  display: block;
  font-size: 11px;
}

.bundle-stage small,
.bundle-stage-time,
.bundle-stage-count {
  color: var(--muted);
}

.bundle-stage small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
}

.image-evidence {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(239, 91, 42, 0.4);
  border-radius: var(--radius);
  background: rgba(239, 91, 42, 0.05);
}

.image-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: left bottom;
  border-radius: 10px;
  background: var(--black);
}

.image-preview img.thumbnail {
  width: 70px;
  max-height: 150px;
}

.image-copy h3 {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.image-copy p {
  color: var(--muted);
  font-size: 12px;
}

.image-facts {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.image-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 15px;
  padding: 10px;
  background: var(--card);
  font-size: 10px;
}

.image-facts dt,
.image-facts dd { margin: 0; }
.image-facts dt { color: var(--muted); font-family: var(--mono); text-transform: uppercase; }
.image-facts dd { overflow-wrap: anywhere; }

.evidence-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.evidence-pane {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.evidence-pane.active { display: block; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: rgba(21, 23, 20, 0.025);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(41, 88, 255, 0.025); }

.file-link {
  font-weight: 700;
  text-decoration-color: rgba(41, 88, 255, 0.4);
  text-underline-offset: 3px;
}

.table-hash {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-note {
  margin: 0;
  padding: 13px 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.provenance-note {
  padding: 14px 16px;
  color: #675346;
  border-bottom: 1px solid rgba(239, 91, 42, 0.28);
  background: rgba(239, 91, 42, 0.07);
  font-size: 10px;
}

.provenance-note code {
  font-weight: 700;
}

.limits-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 100px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--blue);
}

.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.limits-grid ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.limits-grid li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.limits-grid li > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
}

.limits-grid li strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.limits-grid li p {
  margin: 7px 0 0;
  color: #c6d1ff;
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--black);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong { font-size: 12px; }
.site-footer span { margin-top: 4px; color: #868980; font-size: 9px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: #b7b9b2;
  font-family: var(--mono);
  font-size: 9px;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav { display: none; }

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

  .verdict-card {
    max-width: 560px;
  }

  .findings-grid,
  .crypto-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-diagram {
    grid-template-columns: 1fr 1fr;
  }

  .flow-arrow { display: none; }

  .host-row {
    grid-template-columns: minmax(180px, 0.8fr) minmax(120px, 1fr) 55px;
  }

  .host-bytes { display: none; }
}

@media (max-width: 820px) {
  .section {
    width: min(calc(100% - 30px), var(--max));
    padding: 78px 0;
  }

  .hero {
    padding-top: 64px;
  }

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

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

  .privacy-banner {
    width: min(calc(100% - 30px), var(--max));
    grid-template-columns: auto minmax(0, 1fr);
  }

  .privacy-toggle {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid #393c36;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .findings-grid,
  .search-summary-grid,
  .search-turns,
  .claim-audit,
  .protocol-detail-grid,
  .network-layout,
  .bundle-story,
  .image-evidence,
  .limits-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-panel {
    grid-template-columns: 1fr;
  }

  .session-controls {
    grid-template-columns: 1fr;
  }

  .filter-group {
    overflow-x: auto;
  }

  .turn-details {
    grid-template-columns: 1fr;
  }

  .message-panel + .message-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .coverage-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-stat:nth-child(2) { border-right: 0; }
  .coverage-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .limits-section {
    padding: 78px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 62px;
    padding: 8px 14px;
  }

  .reading-progress { top: 61px; }
  .local-badge { display: none; }

  .hero h1 {
    font-size: 54px;
  }

  .integrity-strip {
    grid-template-columns: 1fr;
  }

  .hash-block {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .verdict-card {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .findings-grid,
  .crypto-matrix,
  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .flow-node { min-height: 220px; }
  .turn-strip { gap: 3px; }

  .turn-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .turn-summary {
    grid-template-columns: 1fr;
  }

  .turn-badges { justify-content: flex-start; }
  .phase-rail { display: none; }

  .claim-row {
    grid-template-columns: 1fr auto;
  }

  .claim-row p {
    grid-column: 1 / -1;
  }

  .host-row {
    grid-template-columns: 1fr 55px;
  }

  .model-configs {
    grid-template-columns: 1fr;
  }

  .host-bar-track,
  .host-bytes { display: none; }

  .coverage-panel { grid-template-columns: 1fr; }
  .coverage-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .coverage-stat:last-child { border-bottom: 0; }

  .bundle-stage {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .bundle-stage-time {
    display: none;
  }
}

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

/* Public build: withheld-content panels replace redacted message text. */
.message-withheld {
  border: 1px dashed var(--rule, #cbd2dd);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: rgba(148, 163, 184, 0.08);
}

.message-withheld strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-muted, #5b6472);
}

.message-withheld p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted, #5b6472);
}

.image-copy-wide {
  grid-column: 1 / -1;
  max-width: 68ch;
}
