:root {
  color-scheme: dark;
  --void: #050505;
  --deep: #09090a;
  --panel: #0d0d0f;
  --panel-hover: #131315;
  --paper: #f5f0e6;
  --soft: #d8d3c9;
  --muted: #918a80;
  --faint: #696966;
  --line: rgba(245, 240, 230, .15);
  --line-strong: rgba(245, 240, 230, .42);
  --eth: #9f97ff;
  --eth-soft: rgba(159, 151, 255, .13);
  --eth-line: rgba(159, 151, 255, .55);
  --cyan: #9fd8d0;
  --cyan-soft: rgba(159, 216, 208, .1);
  --signal: #e6b66b;
  --signal-soft: rgba(230, 182, 107, .11);
  --signal-line: rgba(230, 182, 107, .5);
  --good: #b8d4bf;
  --good-soft: rgba(184, 212, 191, .1);
  --warn: #d8b783;
  --warn-soft: rgba(216, 183, 131, .11);
  --bad: #d99180;
  --bad-soft: rgba(217, 145, 128, .1);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --body: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --ui: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: 82rem;
  --prose: 46rem;
  --wide: 64rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5.5rem, 11vw, 9rem);
  --fast: 180ms;
  --normal: 280ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  background: var(--void);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 32% at 75% 5%, rgba(230, 182, 107, .075), transparent 67%),
    radial-gradient(ellipse 62% 30% at 20% 15%, rgba(159, 151, 255, .065), transparent 68%),
    linear-gradient(rgba(245, 240, 230, .018) 1px, transparent 1px) 0 0 / 100% 12rem,
    var(--void);
  font-family: var(--body);
  font-size: clamp(1.04rem, 1.18vw, 1.13rem);
  line-height: 1.92;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .17;
  background-image:
    radial-gradient(circle at 18% 27%, rgba(255, 255, 255, .1) 0 .5px, transparent .8px),
    radial-gradient(circle at 76% 69%, rgba(255, 255, 255, .06) 0 .5px, transparent .75px);
  background-size: 97px 89px, 149px 137px;
}

::selection {
  color: var(--void);
  background: var(--signal);
}

a {
  color: inherit;
  text-decoration-color: var(--signal-line);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  color: inherit;
  font: inherit;
}

code,
kbd {
  padding: .12em .32em;
  border: 1px solid var(--line);
  color: var(--cyan);
  background: rgba(159, 216, 208, .045);
  font-family: var(--mono);
  font-size: .82em;
  overflow-wrap: anywhere;
}

sup {
  font-family: var(--ui);
  font-size: .68em;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--void);
  background: var(--paper);
  font-family: var(--ui);
  font-size: .76rem;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--fast) ease;
}

.skip-link:focus {
  transform: none;
}

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

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--eth), var(--signal), var(--cyan));
  transform-origin: 0 50%;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(100% - 2 * var(--gutter), var(--shell));
  min-height: 5.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
}

.brand {
  flex: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .36em;
  text-decoration: none;
}

.lesson-path {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .13em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.lesson-path strong {
  color: var(--soft);
  font-weight: 500;
}

.noscript-note {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin: 1rem auto 0;
  padding: .85rem 1rem;
  border: 1px solid var(--warn);
  color: var(--soft);
  background: var(--warn-soft);
  font-family: var(--ui);
  font-size: .78rem;
  line-height: 1.6;
}

.hero {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--shell));
  min-height: min(55rem, calc(100svh - 5.1rem));
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(21rem, .86fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -.01em;
  bottom: -.34em;
  z-index: -2;
  content: "∴";
  color: rgba(230, 182, 107, .035);
  font-family: Georgia, serif;
  font-size: clamp(25rem, 50vw, 44rem);
  font-weight: 400;
  line-height: .75;
  pointer-events: none;
}

.hero-kicker,
.eyebrow,
.section-index,
.lab-tag,
.micro-label,
.note-label {
  margin: 0;
  color: var(--signal);
  font-family: var(--ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 9.2em;
  margin: 1.2rem 0 1.8rem;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.7vw, 7.05rem);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: .98;
}

h1 span {
  display: block;
  max-width: 30rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: clamp(.72rem, 1vw, .92rem);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-deck {
  max-width: 39rem;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  line-height: 1.75;
}

.lesson-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin: 2.8rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .7rem;
  letter-spacing: .08em;
}

.lesson-facts strong {
  display: block;
  margin-bottom: .18rem;
  color: var(--paper);
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
}

.signature-orbit {
  position: relative;
  width: min(100%, 29rem);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--signal-soft) 0 19%, transparent 20%),
    repeating-radial-gradient(circle, transparent 0 14.9%, var(--line) 15% 15.25%, transparent 15.4% 29.8%);
}

.signature-orbit::before,
.signature-orbit::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  background: var(--line);
  transform: translate(-50%, -50%);
}

.signature-orbit::before {
  width: 100%;
  height: 1px;
}

.signature-orbit::after {
  width: 1px;
  height: 100%;
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 9.4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  border: 1px solid var(--signal-line);
  border-radius: 50%;
  background: var(--void);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4rem rgba(230, 182, 107, .08);
}

.orbit-core strong {
  display: block;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.orbit-core span {
  display: block;
  margin-top: .35rem;
  color: var(--signal);
  font-family: var(--ui);
  font-size: .63rem;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.orbit-node {
  position: absolute;
  z-index: 3;
  min-width: 7.7rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, .95);
  text-align: center;
}

.orbit-node b {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
}

.orbit-node span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .61rem;
  line-height: 1.4;
}

.orbit-node.intent {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node.digest {
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
}

.orbit-node.signature {
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node.address {
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
}

.orbit-pulse {
  position: absolute;
  inset: 11%;
  border: 1px solid var(--signal-line);
  border-radius: 50%;
  animation: orbit-pulse 4s var(--ease) infinite;
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: .2;
    transform: scale(.94);
  }
  50% {
    opacity: .7;
    transform: scale(1);
  }
}

.thesis {
  width: min(100% - 2 * var(--gutter), var(--shell));
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.thesis-label {
  margin: .5rem 0 0;
  color: var(--signal);
  font-family: var(--ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.thesis > p:last-child {
  max-width: 40em;
  margin: 0;
  font-size: clamp(1.55rem, 2.9vw, 2.6rem);
  line-height: 1.45;
}

.thesis em {
  color: var(--signal);
  font-style: normal;
}

.page-grid {
  width: min(100% - 2 * var(--gutter), var(--shell));
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0 var(--section-gap);
}

.toc {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow: auto;
  scrollbar-width: thin;
  font-family: var(--ui);
}

.toc-title {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.toc li {
  border-bottom: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: .55rem;
  padding: .74rem 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--fast) ease, padding-left var(--fast) ease;
}

.toc a:hover,
.toc a[aria-current="true"] {
  padding-left: .25rem;
  color: var(--paper);
}

.toc a[aria-current="true"] .toc-num {
  color: var(--signal);
}

.toc-num {
  color: var(--faint);
  font-family: var(--mono);
}

.lesson {
  min-width: 0;
}

.chapter {
  width: min(100%, var(--prose));
  margin: 0 0 var(--section-gap);
  scroll-margin-top: 2rem;
}

.chapter:last-child {
  margin-bottom: 0;
}

.chapter > * + * {
  margin-top: 1.5rem;
}

.chapter > .wide,
.chapter > table,
.chapter > .lab,
.chapter > .source-list {
  width: min(var(--wide), calc(100vw - 2 * var(--gutter) - 14rem - clamp(3rem, 7vw, 7rem)));
  max-width: none;
}

.js-ready .chapter {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js-ready .chapter.is-visible {
  opacity: 1;
  transform: none;
}

.chapter-header {
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.chapter-header h2 {
  max-width: 13em;
  margin: .9rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.section-deck {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .85rem;
  line-height: 1.7;
}

.chapter h3 {
  margin-top: 3.4rem;
  margin-bottom: .9rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.chapter h4 {
  font-family: var(--ui);
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.chapter p {
  margin-bottom: 0;
}

.lead {
  color: var(--soft);
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.82;
}

.scope-badge {
  display: inline-flex;
  margin-top: 0 !important;
  padding: .35rem .62rem;
  border: 1px solid var(--signal-line);
  color: var(--signal);
  background: var(--signal-soft);
  font-family: var(--ui);
  font-size: .65rem;
  letter-spacing: .08em;
  line-height: 1.5;
}

.definition,
.note,
.precision,
.warning {
  position: relative;
  margin-top: 2.2rem !important;
  padding: 1.35rem 1.5rem 1.45rem;
  border-left: 2px solid var(--eth);
  background: var(--eth-soft);
}

.note {
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
}

.precision {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}

.warning {
  border-left-color: var(--bad);
  background: var(--bad-soft);
}

.definition p,
.note p,
.precision p,
.warning p {
  margin: .55rem 0 0;
  color: var(--soft);
  line-height: 1.75;
}

.formula {
  margin-top: 2rem !important;
  padding: 1.45rem 1.55rem;
  border: 1px solid var(--line);
  color: var(--paper);
  background:
    linear-gradient(90deg, var(--signal-soft), transparent 68%),
    var(--panel);
  font-family: var(--mono);
  font-size: clamp(.82rem, 1.2vw, .96rem);
  line-height: 1.9;
  overflow-x: auto;
}

.formula b {
  color: var(--signal);
  font-weight: 500;
}

.formula small {
  display: block;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--body);
  font-size: .86rem;
  line-height: 1.75;
  white-space: normal;
}

.learning-grid,
.myth-grid,
.mode-grid,
.risk-grid,
.nonce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.learning-card,
.myth-card,
.mode-card,
.risk-card,
.nonce-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--panel);
}

.learning-card > span,
.myth-card > span,
.mode-card > span,
.risk-card > span,
.nonce-card > span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .08em;
}

.learning-card h3,
.myth-card h3,
.mode-card h3,
.risk-card h3,
.nonce-card h3 {
  margin: .75rem 0 .65rem;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.25;
}

.learning-card p,
.myth-card p,
.mode-card p,
.risk-card p,
.nonce-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
}

.truth-table {
  width: 100%;
  margin-top: 2rem !important;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .9rem;
}

.truth-table caption,
.comparison-table caption {
  padding: 0 0 .8rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .68rem;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

.truth-table th,
.truth-table td,
.comparison-table th,
.comparison-table td {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.truth-table th,
.comparison-table th {
  color: var(--soft);
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.truth-table td,
.comparison-table td {
  color: var(--muted);
  line-height: 1.65;
}

.truth-table .yes {
  color: var(--good);
}

.truth-table .no {
  color: var(--bad);
}

.lab {
  margin-top: 2.4rem !important;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(159, 151, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 151, 255, .025) 1px, transparent 1px),
    var(--panel);
  background-size: 2.5rem 2.5rem;
}

.lab-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.lab-head h3 {
  margin: .45rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.lab-head > p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .72rem;
  line-height: 1.55;
  text-align: right;
}

.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.lab-button {
  min-height: 2.65rem;
  padding: .58rem .85rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--deep);
  font-family: var(--ui);
  font-size: .7rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition:
    color var(--fast) ease,
    border-color var(--fast) ease,
    background var(--fast) ease;
}

.lab-button:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.lab-button[aria-pressed="true"] {
  color: var(--void);
  border-color: var(--signal);
  background: var(--signal);
}

.pipeline-stage {
  min-height: 24rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.pipeline-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: center;
}

.pipeline-panel + .pipeline-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.js-ready .pipeline-panel {
  display: none;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.js-ready .pipeline-panel.is-active {
  display: grid;
  animation: panel-in var(--normal) var(--ease);
}

html:not(.js-ready) .lab-controls,
html:not(.js-ready) .quiz,
html:not(.js-ready) .quiz-score {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(.45rem);
  }
}

.pipeline-copy small {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .68rem;
}

.pipeline-copy h4 {
  margin: .65rem 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.pipeline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.data-card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, .86);
  font-family: var(--mono);
}

.data-card > span {
  display: block;
  margin-bottom: .8rem;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.data-card dl {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.data-card dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}

.data-card dl div:last-child {
  border-bottom: 0;
}

.data-card dt {
  color: var(--faint);
  font-size: .69rem;
}

.data-card dd {
  min-width: 0;
  margin: 0;
  color: var(--cyan);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.data-card .success {
  color: var(--good);
}

.pipeline-status,
.tamper-status,
.prompt-status {
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 5, 5, .72);
  font-family: var(--ui);
  font-size: .74rem;
  line-height: 1.6;
}

.pipeline-status strong,
.tamper-status strong,
.prompt-status strong {
  color: var(--paper);
  font-weight: 600;
}

.key-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.key-node {
  position: relative;
  min-width: 0;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--panel);
}

.key-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -.55rem;
  z-index: 2;
  content: "→";
  width: 1.1rem;
  color: var(--signal);
  background: var(--void);
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1.1rem;
  text-align: center;
  transform: translateY(-50%);
}

.key-node small {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.key-node strong {
  display: block;
  margin: .8rem 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
}

.key-node code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .67rem;
}

.curve-board {
  position: relative;
  min-height: 22rem;
  margin-top: 2.2rem !important;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(245, 240, 230, .22) 1px, transparent 1.4px) 0 0 / 1.5rem 1.5rem,
    linear-gradient(90deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, var(--line) 50%, transparent 50.2%),
    var(--panel);
}

.curve-board::before {
  position: absolute;
  inset: 12% 10%;
  content: "";
  border: 1px dashed var(--eth-line);
  border-radius: 48% 52% 56% 44% / 61% 42% 58% 39%;
  transform: rotate(-12deg);
}

.curve-board::after {
  position: absolute;
  top: 43%;
  left: 33%;
  width: 37%;
  height: 1px;
  content: "";
  background: var(--signal);
  transform: rotate(-24deg);
  transform-origin: left;
  box-shadow: 0 0 1.5rem rgba(230, 182, 107, .4);
}

.curve-point {
  position: absolute;
  z-index: 2;
  width: .78rem;
  aspect-ratio: 1;
  border: 2px solid var(--void);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.curve-point::after {
  position: absolute;
  top: 1rem;
  left: 50%;
  color: var(--paper);
  font-family: var(--mono);
  font-size: .64rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.curve-point.g {
  top: 60%;
  left: 27%;
}

.curve-point.g::after {
  content: "G";
}

.curve-point.q {
  top: 33%;
  left: 67%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.curve-point.q::after {
  content: "Q = dG";
}

.curve-label {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  max-width: 22rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 5, 5, .88);
  font-family: var(--ui);
  font-size: .68rem;
  line-height: 1.55;
}

.math-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.math-card {
  min-width: 0;
  padding: 1.35rem;
  background: var(--panel);
}

.math-card small {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.math-card strong {
  display: block;
  margin: .65rem 0 .5rem;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(.9rem, 1.4vw, 1.08rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.math-card p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

.toy-curve {
  margin-top: 2.2rem !important;
  border: 1px solid var(--signal-line);
  background: var(--signal-soft);
}

.toy-curve summary {
  padding: 1.15rem 1.3rem;
  color: var(--paper);
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.toy-curve[open] summary {
  border-bottom: 1px solid var(--signal-line);
}

.toy-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .8fr);
  gap: 2rem;
  padding: 1.4rem;
}

.toy-steps {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--soft);
}

.toy-steps li + li {
  margin-top: .5rem;
}

.toy-result {
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--void);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.8;
}

.toy-result b {
  color: var(--good);
  font-weight: 500;
}

.nonce-leak {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 2.2rem !important;
}

.nonce-signature {
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.75;
}

.nonce-signature span {
  color: var(--bad);
}

.nonce-bridge {
  color: var(--bad);
  font-family: var(--ui);
  font-size: .66rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.tamper-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .86fr);
  gap: 1px;
  background: var(--line);
}

.signed-envelope,
.verification-screen {
  min-width: 0;
  padding: 1.5rem;
  background: rgba(5, 5, 5, .88);
}

.signed-envelope h4,
.verification-screen h4 {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.envelope-fields {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.envelope-fields div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: .8rem;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.envelope-fields dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .67rem;
}

.envelope-fields dd {
  min-width: 0;
  margin: 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.envelope-fields div.is-changed {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.envelope-fields div.is-changed dd {
  color: var(--bad);
}

.digest-box {
  min-height: 7.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.digest-box small {
  display: block;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.digest-box code {
  display: block;
  margin-top: .7rem;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: none;
  font-size: .72rem;
  line-height: 1.7;
}

.verify-badge {
  display: grid;
  place-items: center;
  min-height: 8rem;
  margin-top: 1rem;
  border: 1px solid var(--good);
  color: var(--good);
  background: var(--good-soft);
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
}

.verify-badge.is-invalid {
  border-color: var(--bad);
  color: var(--bad);
  background: var(--bad-soft);
}

.signature-bytes {
  display: grid;
  grid-template-columns: 32fr 32fr 1fr;
  min-height: 9rem;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.signature-byte {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: var(--panel);
}

.signature-byte:nth-child(1) {
  background: linear-gradient(135deg, var(--eth-soft), var(--panel) 70%);
}

.signature-byte:nth-child(2) {
  background: linear-gradient(135deg, var(--cyan-soft), var(--panel) 70%);
}

.signature-byte:nth-child(3) {
  min-width: 5.5rem;
  background: linear-gradient(135deg, var(--signal-soft), var(--panel) 70%);
}

.signature-byte small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
}

.signature-byte strong {
  display: block;
  margin: .5rem 0;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
}

.signature-byte span {
  color: var(--muted);
  font-family: var(--ui);
  font-size: .66rem;
  line-height: 1.45;
}

.recovery-chain,
.recap-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.recovery-node,
.recap-node {
  position: relative;
  min-width: 0;
  min-height: 9.5rem;
  padding: 1rem;
  background: var(--panel);
}

.recovery-node:not(:last-child)::after,
.recap-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -.55rem;
  z-index: 2;
  content: "→";
  width: 1.1rem;
  color: var(--signal);
  background: var(--void);
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.1rem;
  text-align: center;
  transform: translateY(-50%);
}

.recovery-node small,
.recap-node small {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .6rem;
}

.recovery-node strong,
.recap-node strong {
  display: block;
  margin: .7rem 0 .45rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

.recovery-node span,
.recap-node span {
  display: block;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .65rem;
  line-height: 1.5;
}

.comparison-table {
  width: 100%;
  margin-top: 2.2rem !important;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .86rem;
}

.comparison-table code {
  font-size: .72rem;
}

.sealed-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.6rem !important;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sealed-fields span {
  padding: .45rem .62rem;
  border: 1px solid var(--eth-line);
  color: var(--soft);
  background: var(--eth-soft);
  font-family: var(--mono);
  font-size: .64rem;
}

.sealed-fields span::before {
  content: "◇ ";
  color: var(--eth);
}

.replay-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.replay-layer {
  padding: 1.35rem;
  background: var(--panel);
}

.replay-layer small {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .62rem;
}

.replay-layer h4 {
  margin: .65rem 0 .55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.01em;
}

.replay-layer p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

.mode-card {
  display: flex;
  flex-direction: column;
}

.mode-card ul {
  margin: 1rem 0 0;
  padding: 1rem 0 0 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.65;
}

.mode-card li + li {
  margin-top: .45rem;
}

.prompt-stage {
  display: grid;
  grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr);
  gap: 1px;
  background: var(--line);
}

.wallet-window,
.prompt-analysis {
  min-width: 0;
  padding: 1.5rem;
  background: rgba(5, 5, 5, .9);
}

.wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--ui);
  font-size: .65rem;
}

.wallet-bar b {
  color: var(--paper);
  font-weight: 600;
}

.wallet-content {
  padding-top: 1.1rem;
}

.wallet-content small {
  color: var(--signal);
  font-family: var(--ui);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wallet-content h4 {
  margin: .55rem 0 .85rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.wallet-content p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.wallet-fields {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
}

.wallet-field {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .75rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .65rem;
}

.wallet-field span:first-child {
  color: var(--faint);
}

.wallet-field span:last-child {
  color: var(--soft);
  overflow-wrap: anywhere;
}

.prompt-analysis h4 {
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.inspection-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspection-list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .75rem;
  line-height: 1.55;
}

.inspection-list li::before {
  content: "□";
  color: var(--signal);
  font-family: var(--mono);
}

.inspection-list strong {
  color: var(--soft);
  font-weight: 600;
}

.risk-card.high {
  box-shadow: inset 2px 0 0 var(--bad);
}

.risk-card.medium {
  box-shadow: inset 2px 0 0 var(--signal);
}

.risk-card.low {
  box-shadow: inset 2px 0 0 var(--cyan);
}

.security-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.security-checklist li {
  position: relative;
  min-height: 8.5rem;
  padding: 1.2rem 1.2rem 1.2rem 3.2rem;
  background: var(--panel);
}

.security-checklist li::before {
  position: absolute;
  top: 1.15rem;
  left: 1.1rem;
  content: attr(data-index);
  color: var(--signal);
  font-family: var(--mono);
  font-size: .66rem;
}

.security-checklist strong {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
}

.security-checklist span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.myth-card strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--bad);
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.myth-card p b {
  color: var(--good);
  font-weight: 400;
}

.quiz {
  display: grid;
  gap: 1px;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.quiz-item {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--panel);
}

.quiz-question {
  margin: 0;
  color: var(--soft);
  font-size: 1.03rem;
  line-height: 1.65;
}

.quiz-question strong {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .75rem;
}

.quiz-options {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.quiz-option {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--deep);
  font-family: var(--ui);
  font-size: .74rem;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.quiz-option:hover:not(:disabled) {
  color: var(--paper);
  border-color: var(--line-strong);
}

.quiz-option.is-correct {
  color: var(--good);
  border-color: var(--good);
  background: var(--good-soft);
}

.quiz-option.is-wrong {
  color: var(--bad);
  border-color: var(--bad);
  background: var(--bad-soft);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-feedback {
  min-height: 1.6em;
  margin: .85rem 0 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .72rem;
  line-height: 1.55;
}

.quiz-score {
  margin-top: 1rem !important;
  padding: .9rem 1rem;
  border: 1px solid var(--signal-line);
  color: var(--signal);
  background: var(--signal-soft);
  font-family: var(--ui);
  font-size: .74rem;
  line-height: 1.55;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem !important;
  border: 1px solid var(--line);
  background: var(--line);
}

.glossary div {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
}

.glossary dt {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .7rem;
}

.glossary dd {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.source-list {
  margin: 2rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.source-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.source-item:last-child {
  border-bottom: 0;
}

.source-num {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .66rem;
}

.source-item a {
  display: inline-block;
  color: var(--soft);
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
}

.source-item small {
  display: block;
  margin-top: .32rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.source-meta {
  display: block;
  margin-top: .28rem;
  color: var(--faint);
  font-family: var(--ui);
  font-size: .62rem;
}

.site-footer {
  width: min(100% - 2 * var(--gutter), var(--shell));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--ui);
  font-size: .66rem;
  line-height: 1.5;
}

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

.site-footer a:nth-child(2) {
  text-align: center;
}

.site-footer span {
  text-align: right;
}

@media (max-width: 68rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .signature-orbit {
    width: min(100%, 26rem);
    justify-self: center;
  }

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

  .toc {
    position: static;
    max-height: none;
  }

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

  .toc li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .chapter > .wide,
  .chapter > table,
  .chapter > .lab,
  .chapter > .source-list {
    width: min(var(--wide), calc(100vw - 2 * var(--gutter)));
  }
}

@media (max-width: 48rem) {
  body {
    line-height: 1.82;
  }

  .site-header {
    min-height: 4.6rem;
  }

  .lesson-path {
    font-size: .6rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .thesis {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .learning-grid,
  .myth-grid,
  .mode-grid,
  .risk-grid,
  .nonce-grid,
  .math-grid,
  .glossary,
  .security-checklist {
    grid-template-columns: 1fr;
  }

  .key-map,
  .recovery-chain,
  .recap-chain,
  .replay-layers {
    grid-template-columns: 1fr;
  }

  .key-node:not(:last-child)::after,
  .recovery-node:not(:last-child)::after,
  .recap-node:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -.55rem;
    left: 50%;
    content: "↓";
    transform: translateX(-50%);
  }

  .pipeline-panel,
  .js-ready .pipeline-panel.is-active,
  .tamper-stage,
  .prompt-stage,
  .toy-body {
    grid-template-columns: 1fr;
  }

  .signature-bytes {
    grid-template-columns: 1fr;
  }

  .signature-byte:nth-child(3) {
    min-width: 0;
  }

  .nonce-leak {
    grid-template-columns: 1fr;
  }

  .nonce-bridge {
    padding: .25rem 0;
  }

  .nonce-bridge::before {
    content: "↓ ";
  }

  .lab-head {
    align-items: start;
    flex-direction: column;
  }

  .lab-head > p {
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer a:nth-child(2),
  .site-footer span {
    text-align: left;
  }
}

@media (max-width: 31rem) {
  .brand {
    font-size: .78rem;
    letter-spacing: .28em;
  }

  .lesson-path {
    max-width: 11rem;
  }

  .orbit-node {
    min-width: 6.5rem;
    padding: .6rem;
  }

  .orbit-core {
    width: 8rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .toc li:nth-child(odd) {
    border-right: 0;
  }

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

  .lab-button {
    width: 100%;
  }

  .data-card dl div,
  .envelope-fields div,
  .wallet-field {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .truth-table,
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js-ready .chapter {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .lab-button[aria-pressed="true"],
  .quiz-option.is-correct,
  .quiz-option.is-wrong {
    border: 2px solid ButtonText;
  }

  .orbit-pulse {
    display: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #161616;
    background: #fff;
    font-size: 10.5pt;
  }

  body::before,
  .reading-progress,
  .skip-link,
  .signature-orbit,
  .toc,
  .lab-controls,
  .site-footer a[href="#main"] {
    display: none !important;
  }

  .site-header,
  .hero,
  .thesis,
  .page-grid,
  .site-footer {
    width: 100%;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .page-grid {
    display: block;
    padding-top: 2rem;
  }

  .chapter {
    width: 100%;
    margin-bottom: 3rem;
  }

  .chapter > .wide,
  .chapter > table,
  .chapter > .lab,
  .chapter > .source-list {
    width: 100%;
  }

  .js-ready .chapter {
    opacity: 1;
    transform: none;
  }

  .lab,
  .learning-grid,
  .myth-grid,
  .mode-grid,
  .risk-grid,
  .nonce-grid,
  .math-grid,
  .glossary,
  .source-list,
  .truth-table,
  .comparison-table,
  .key-map,
  .recovery-chain,
  .recap-chain,
  .replay-layers,
  .signature-bytes,
  .definition,
  .note,
  .precision,
  .warning,
  .formula {
    color: #161616;
    border-color: #999;
    background: #fff;
    break-inside: avoid;
  }

  .data-card,
  .signed-envelope,
  .verification-screen,
  .wallet-window,
  .prompt-analysis,
  .digest-box,
  .verify-badge,
  .envelope-fields div,
  .wallet-field,
  .pipeline-status,
  .tamper-status,
  .prompt-status {
    color: #161616;
    border-color: #999;
    background: #fff;
  }

  .pipeline-panel {
    display: grid !important;
    margin-bottom: 1rem;
    border-bottom: 1px solid #bbb;
  }

  a {
    color: #161616;
  }
}
