:root {
  --paper: #f4f1e9;
  --paper-2: #ece8de;
  --surface: #fffdf7;
  --ink: #16201d;
  --ink-soft: #52605b;
  --line: #d5d2c8;
  --green: #236c57;
  --green-dark: #17493d;
  --green-pale: #dceae4;
  --amber: #d79238;
  --amber-pale: #f5e8d1;
  --night: #14231e;
  --terminal: #0e1714;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 60px rgba(22, 32, 29, 0.08);
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body[data-study-mode="essential"] .technical-only,
body[data-study-mode="technical"] .essential-only {
  display: none !important;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.92em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 680;
}

h1 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  max-width: 800px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 650;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 650;
}

::selection {
  color: var(--white);
  background: var(--green);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.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;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(213, 210, 200, 0.85);
  background: rgba(244, 241, 233, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 9px 9px 3px 9px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.main-nav a[href^="#"]::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.main-nav a[aria-current="location"] {
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(220, 234, 228, 0.96), rgba(240, 246, 242, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(35, 108, 87, 0.16),
    0 7px 20px rgba(35, 108, 87, 0.11);
  transform: translateY(-1px);
}

.main-nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-of-type(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) 0 88px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -200px;
  right: -180px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(35, 108, 87, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(35, 108, 87, 0.025),
    0 0 0 180px rgba(35, 108, 87, 0.018);
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.74fr);
  gap: clamp(56px, 8vw, 112px);
}

.eyebrow,
.kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--green-pale);
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 680;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.quiet:hover {
  background: var(--surface);
}

.copy-feedback {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 650;
}

.metrics {
  display: flex;
  margin: 38px 0 0;
}

.metrics div {
  min-width: 120px;
  padding-right: 28px;
}

.metrics div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.metrics dt {
  font-size: 1.16rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.metrics dd {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.terminal-card {
  position: relative;
  isolation: isolate;
  color: #b9c8c2;
  background: var(--terminal);
  border: 1px solid #263a33;
  border-radius: var(--radius);
  box-shadow:
    18px 18px 0 var(--amber-pale),
    0 30px 90px rgba(14, 23, 20, 0.24);
  transform: rotate(1.2deg);
}

.terminal-card::before {
  display: none;
}

.terminal-bar,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #85958f;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.67rem;
}

.terminal-bar {
  border-bottom: 1px solid #263a33;
}

.terminal-footer {
  border-top: 1px solid #263a33;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  background: #4a5e56;
  border-radius: 50%;
}

.live-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #90c7ad;
}

.live-state i {
  width: 6px;
  height: 6px;
  background: #6cc594;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(108, 197, 148, 0.12);
}

.terminal-body {
  min-height: 330px;
  padding: 36px 30px;
}

.terminal-label {
  margin-bottom: 52px;
  color: #6f807a;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-body pre {
  overflow: auto;
  margin: 0;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  line-height: 1.8;
  white-space: pre-wrap;
}

.terminal-body code span {
  color: #76d5aa;
  font-weight: 700;
}

.cursor-line {
  margin-top: 24px;
  color: var(--amber);
  font-family: monospace;
}

.section {
  padding: clamp(76px, 9vw, 128px) 0;
}

.section-tinted {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(46px, 6vw, 76px);
}

.section-heading > p:last-child,
.heading-note {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 60px;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  margin-bottom: 5px;
}

.isolation-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.isolation-flow {
  display: grid;
  align-items: center;
  padding: clamp(36px, 7vw, 72px);
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
}

.machine {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.machine::before {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(82, 96, 91, 0.22);
  border-radius: 9px;
  content: "";
}

.machine strong {
  z-index: 1;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.machine small,
.machine-label {
  z-index: 1;
}

.machine-label {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.machine small {
  margin-top: 6px;
  color: var(--ink-soft);
}

.virtual-machine {
  background: var(--green-pale);
  border-color: #a8c7bb;
}

.soia-machine {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.soia-machine .machine-label,
.soia-machine small {
  color: #b8d3c9;
}

.flow-arrow {
  color: var(--amber);
  font-size: 1.7rem;
}

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

.boundary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 26px 34px;
}

.boundary > div + div {
  border-left: 1px solid var(--line);
}

.boundary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

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

.boundary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.boundary-icon.safe {
  color: var(--green-dark);
  background: var(--green-pale);
}

.boundary-icon.blocked {
  color: #8e542d;
  background: var(--amber-pale);
}

.study-level-section {
  padding: 0;
}

.study-level {
  display: grid;
  align-items: center;
  padding-block: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.study-level h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.study-level p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.segmented-control {
  display: grid;
  padding: 5px;
  background: #dedbd2;
  border: 1px solid #cfcbc1;
  border-radius: 13px;
  grid-template-columns: repeat(2, 1fr);
}

.segmented-control button {
  min-width: 146px;
  padding: 11px 16px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 680;
}

.segmented-control button small {
  display: block;
  margin-top: 1px;
  font-size: 0.67rem;
  font-weight: 500;
}

.segmented-control button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 9px rgba(22, 32, 29, 0.1);
}

.task-section {
  padding-top: clamp(88px, 11vw, 150px);
  background:
    radial-gradient(circle at 88% 10%, rgba(215, 146, 56, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(245, 232, 209, 0.35), transparent 58%);
}

.task-foundation-grid {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.privilege-card,
.address-space-card {
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privilege-card h3,
.address-space-card h3,
.scheduler-card h3,
.syscall-card h3,
.task-proof h3 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.privilege-card > div:first-child > p:last-child,
.address-space-card > p:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.ring-stack {
  display: grid;
  margin-top: 28px;
  padding: 12px;
  text-align: center;
  color: var(--white);
  background: var(--night);
  border-radius: var(--radius);
  gap: 8px;
}

.ring-stack > div {
  display: grid;
  min-height: 82px;
  padding: 13px;
  border-radius: 10px;
  place-content: center;
}

.ring-stack small {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ring-stack strong {
  font-size: 0.9rem;
}

.ring-stack span {
  font-size: 0.62rem;
}

.ring-three {
  color: #244f40;
  background: #b9ddcd;
}

.ring-three small,
.ring-three span {
  color: #4e7666;
}

.ring-middle {
  min-height: 54px !important;
  color: #83968f;
  background: #1b3028;
  border: 1px dashed #416055;
}

.ring-zero {
  background: var(--green);
  border: 1px solid #4e8973;
}

.ring-zero small,
.ring-zero span {
  color: #c9e5d9;
}

.address-space-heading,
.scheduler-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.address-space-heading > code,
.scheduler-heading > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--green-dark);
  font-size: 0.64rem;
  background: var(--green-pale);
  border-radius: 999px;
}

.same-address {
  margin: 24px 0 20px;
}

.virtual-address {
  display: grid;
  width: min(100%, 260px);
  min-height: 106px;
  margin-inline: auto;
  padding: 16px;
  text-align: center;
  color: var(--white);
  background: var(--night);
  border-radius: var(--radius-sm);
  place-content: center;
}

.virtual-address small,
.virtual-address span {
  color: #8fa79e;
  font-size: 0.6rem;
}

.virtual-address strong {
  font: 750 1.05rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.address-branches {
  display: flex;
  justify-content: center;
  height: 42px;
  color: var(--amber);
  font-size: 1.25rem;
  gap: 112px;
}

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

.task-address {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  grid-template-columns: auto auto 1fr;
  gap: 4px 8px;
}

.task-address small {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.task-address strong {
  font-size: 0.86rem;
}

.task-address i {
  color: var(--amber);
  font-style: normal;
}

.task-address span {
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.task-address.task-b {
  background: #eef0e8;
}

.scheduler-card {
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: calc(var(--radius) + 4px);
}

.scheduler-heading {
  align-items: end;
  margin-bottom: 28px;
}

.scheduler-heading h3 {
  margin-bottom: 0;
}

.scheduler-heading > span {
  color: #cce5da;
  background: #20382f;
  border: 1px solid #3b5d50;
}

.scheduler-flow,
.syscall-flow {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, 1fr);
  gap: 8px;
}

.scheduler-step,
.syscall-flow > div {
  display: grid;
  min-width: 0;
  min-height: 118px;
  padding: 14px;
  text-align: center;
  background: #1c332a;
  border: 1px solid #36554a;
  border-radius: 9px;
  place-content: center;
}

.scheduler-step.task-running {
  color: var(--night);
  background: #a8d8c3;
  border-color: #a8d8c3;
}

.scheduler-step.timer-step {
  background: #6c4d2b;
  border-color: #966f41;
}

.scheduler-step small,
.scheduler-step span,
.syscall-flow small,
.syscall-flow span {
  color: #90aaa0;
  font-size: 0.57rem;
}

.scheduler-step.task-running small,
.scheduler-step.task-running span {
  color: #3b6653;
}

.scheduler-step.timer-step small,
.scheduler-step.timer-step span {
  color: #e6c99c;
}

.scheduler-step strong,
.syscall-flow strong {
  margin: 5px 0;
  font-size: 0.78rem;
}

.scheduler-flow > i,
.syscall-flow > i {
  display: grid;
  color: var(--amber);
  font-style: normal;
  place-items: center;
}

.context-strip {
  display: grid;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  color: #b7c9c2;
  background: #192c25;
  border: 1px solid #314b42;
  border-radius: var(--radius-sm);
  grid-template-columns: auto 1fr auto 1.35fr auto;
  gap: 16px;
}

.context-strip > span {
  color: #7fa092;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.context-strip > div {
  display: grid;
}

.context-strip strong {
  font-size: 0.75rem;
}

.context-strip small {
  color: #829d92;
  font-size: 0.58rem;
}

.context-strip > i {
  color: var(--amber);
  font-style: normal;
}

.context-strip .context-total {
  padding: 7px 10px;
  color: var(--night);
  background: #9ed3bc;
  border-radius: 999px;
  font: 750 0.67rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.syscall-card {
  display: grid;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.syscall-copy {
  padding: clamp(28px, 4vw, 44px);
}

.syscall-copy > p {
  color: var(--ink-soft);
}

.syscall-contract {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.syscall-contract > div {
  display: grid;
  min-width: 0;
  padding: 13px 8px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.syscall-contract small,
.syscall-contract span {
  color: var(--ink-soft);
  font-size: 0.55rem;
}

.syscall-contract strong {
  color: var(--green);
  font: 750 0.88rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.syscall-flow {
  padding: clamp(24px, 3.5vw, 36px);
  color: var(--white);
  background: var(--night);
  align-content: center;
}

.syscall-flow > div.active {
  color: var(--night);
  background: #a8d8c3;
  border-color: #a8d8c3;
}

.syscall-flow > div.active small,
.syscall-flow > div.active span {
  color: #3b6653;
}

.task-proof {
  display: grid;
  align-items: center;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--amber-pale);
  border: 1px solid #e3c797;
  border-radius: var(--radius);
  grid-template-columns: minmax(210px, 0.8fr) repeat(2, minmax(0, 0.72fr)) auto;
  gap: 14px;
}

.task-proof h3 {
  margin-bottom: 0;
}

.task-proof-counter {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid #dfc79f;
  border-radius: 10px;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
}

.task-proof-counter > span,
.task-proof-counter > i {
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.task-proof-counter > i {
  width: 24px;
  height: 24px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 0.7rem;
}

.task-proof-counter p {
  display: grid;
  min-width: 0;
  margin: 0;
}

.task-proof-counter strong {
  font-size: 0.7rem;
}

.task-proof-counter small {
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.task-proof > .text-link {
  font-size: 0.7rem;
  white-space: nowrap;
}

.memory-section {
  padding-top: clamp(88px, 11vw, 150px);
  background: linear-gradient(180deg, rgba(220, 234, 228, 0.42), transparent 52%);
}

.e820-card {
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 42px);
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: calc(var(--radius) + 4px);
}

.e820-card-heading,
.idt-practical-heading,
.gate-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.e820-card-heading {
  margin-bottom: 28px;
}

.e820-card-heading h3,
.idt-practical-heading h3,
.gate-card-heading h4,
.vector-space-card h4,
.keyboard-trace h4 {
  margin-bottom: 0;
}

.e820-card-heading h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.e820-card-heading > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #bee0d1;
  font: 700 0.68rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  background: #20382f;
  border: 1px solid #3b5d50;
  border-radius: 999px;
}

.e820-range {
  display: grid;
  min-height: 150px;
  grid-template-columns: minmax(185px, 0.24fr) minmax(0, 1fr);
}

.e820-range > div {
  display: grid;
  min-width: 0;
  padding: 26px;
  align-content: center;
}

.e820-range small {
  font: 650 0.68rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.e820-range strong {
  margin: 6px 0 3px;
  font-size: 1.15rem;
}

.e820-range span {
  font-size: 0.76rem;
}

.e820-reserved {
  color: #382718;
  background: #e7b46c;
  border-radius: 11px 0 0 11px;
}

.e820-reserved small,
.e820-reserved span {
  color: #71502b;
}

.e820-usable {
  color: #dff4ea;
  background:
    linear-gradient(90deg, rgba(117, 196, 163, 0.16), transparent 62%),
    #245d4c;
  border: 1px solid #487866;
  border-left: 0;
  border-radius: 0 11px 11px 0;
}

.e820-usable small,
.e820-usable span {
  color: #acd4c3;
}

.e820-note {
  margin: 16px 0 0;
  color: #8da79d;
  font-size: 0.74rem;
}

.memory-pipeline {
  display: grid;
  align-items: stretch;
  margin-bottom: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
  gap: 10px;
}

.memory-pipeline article {
  display: grid;
  min-width: 0;
  min-height: 144px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-content: center;
}

.memory-pipeline article.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.memory-pipeline article > span {
  color: var(--amber);
  font: 700 0.66rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.memory-pipeline article.active > span {
  color: #f4ce93;
}

.memory-pipeline small {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.memory-pipeline article.active small,
.memory-pipeline article.active p {
  color: #cbe5da;
}

.memory-pipeline strong {
  margin: 2px 0;
  font-size: 1rem;
}

.memory-pipeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.memory-pipeline > i {
  display: grid;
  width: 28px;
  color: var(--green);
  font-size: 1rem;
  font-style: normal;
  place-items: center;
}

.memory-concepts,
.idt-details-grid {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.memory-concepts > article {
  min-width: 0;
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.memory-concepts h3 {
  margin-bottom: 26px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.memory-concepts article > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.address-translation {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto minmax(72px, 0.58fr) auto minmax(0, 1fr);
  gap: 9px;
}

.address-translation > div {
  display: grid;
  min-width: 0;
  padding: 16px 10px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  place-content: center;
}

.address-translation .translation-table {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.address-translation small {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.address-translation .translation-table small,
.address-translation .translation-table span {
  color: #c9e4d8;
}

.address-translation strong {
  font-size: 0.9rem;
}

.address-translation code,
.address-translation span {
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.address-translation > i {
  display: grid;
  color: var(--amber);
  font-style: normal;
  place-items: center;
}

.bitmap-grid {
  display: grid;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 9px;
  background: var(--night);
  border-radius: var(--radius-sm);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.bitmap-grid > span {
  display: grid;
  min-height: 35px;
  color: #37705d;
  font: 700 0.7rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  background: #bde2d2;
  border-radius: 5px;
  place-items: center;
}

.bitmap-grid > span.used {
  color: #f4e8d4;
  background: #8c6332;
}

.bitmap-grid > span.reserved {
  color: #6a441a;
  background: #edc483;
}

.bitmap-legend {
  display: flex;
  color: var(--ink-soft);
  font-size: 0.67rem;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.bitmap-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bitmap-legend i {
  width: 9px;
  height: 9px;
  background: #bde2d2;
  border-radius: 3px;
}

.bitmap-legend i.used {
  background: #8c6332;
}

.bitmap-legend i.reserved {
  background: #edc483;
}

.memory-proof {
  display: grid;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: var(--radius);
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.5fr) auto;
  gap: 30px;
}

.memory-proof h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.memory-proof ol {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.memory-proof li {
  display: grid;
  min-width: 0;
  padding: 14px;
  background: #1c322a;
  border: 1px solid #345247;
  border-radius: 9px;
}

.memory-proof li > span {
  display: grid;
  width: 23px;
  height: 23px;
  margin-bottom: 12px;
  color: var(--night);
  background: #9dd6bc;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  place-items: center;
}

.memory-proof li strong {
  font-size: 0.82rem;
}

.memory-proof li small {
  color: #91aaa0;
  font-size: 0.64rem;
}

.memory-proof-result {
  display: flex;
  align-items: center;
  color: #cde9dc;
  font-size: 0.72rem;
  white-space: nowrap;
  gap: 8px;
}

.memory-proof-result span {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--night);
  background: #9dd6bc;
  border-radius: 50%;
  place-items: center;
}

.interrupt-section {
  padding-top: clamp(88px, 11vw, 150px);
}

.interrupt-flow-card {
  display: grid;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 20px;
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: calc(var(--radius) + 4px);
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
  gap: 10px;
}

.interrupt-flow-card > i {
  display: grid;
  width: 34px;
  color: #8fcbb3;
  font-size: 1.2rem;
  font-style: normal;
  place-items: center;
}

.interrupt-node {
  display: grid;
  min-width: 0;
  min-height: 142px;
  padding: 21px;
  background: #192f27;
  border: 1px solid #345348;
  border-radius: var(--radius-sm);
  align-content: center;
}

.interrupt-node small {
  color: #83bba4;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.interrupt-node strong {
  margin: 5px 0;
  font-size: 1.05rem;
}

.interrupt-node span {
  color: #a8bdb5;
  font-size: 0.76rem;
}

.interrupt-node.event-source {
  background: #233b32;
}

.interrupt-node.event-handler {
  color: var(--night);
  background: #a9d7c3;
  border-color: #a9d7c3;
}

.interrupt-node.event-handler small,
.interrupt-node.event-handler span {
  color: #315f4d;
}

.idt-practical {
  margin-bottom: 22px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.idt-practical-heading {
  align-items: end;
  margin-bottom: 30px;
}

.idt-practical-heading h3 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.idtr-badge {
  display: grid;
  flex: 0 0 auto;
  padding: 12px 16px;
  color: #cfe8dc;
  background: var(--night);
  border-radius: 10px;
}

.idtr-badge small {
  color: #8ca89d;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.idtr-badge code {
  font-size: 0.74rem;
}

.idt-dictionary {
  display: grid;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
  gap: 8px;
}

.idt-dictionary > div {
  display: grid;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  align-content: center;
}

.idt-dictionary > div > span {
  color: var(--green);
  font: 750 0.68rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.idt-dictionary strong {
  margin: 4px 0;
  font-size: 0.87rem;
}

.idt-dictionary small {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.idt-dictionary > i,
.vector-calculation > i {
  display: grid;
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.vector-calculation {
  display: grid;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 16px;
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: var(--radius);
  grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, 1fr);
  gap: 7px;
}

.vector-step {
  display: grid;
  min-width: 0;
  min-height: 112px;
  padding: 14px 9px;
  text-align: center;
  background: #1b3028;
  border: 1px solid #344f45;
  border-radius: 9px;
  place-content: center;
}

.vector-step.active {
  color: var(--night);
  background: #a7d7c2;
  border-color: #a7d7c2;
}

.vector-step small,
.vector-step span {
  color: #8fa99e;
  font-size: 0.58rem;
}

.vector-step.active small,
.vector-step.active span {
  color: #386350;
}

.vector-step strong {
  margin: 5px 0;
  font: 750 clamp(0.85rem, 1.15vw, 1.05rem) "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.idt-details-grid {
  margin-bottom: 28px;
}

.gate-card,
.vector-space-card {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gate-card-heading {
  margin-bottom: 22px;
}

.gate-card-heading h4,
.vector-space-card h4,
.keyboard-trace h4 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.gate-card-heading > span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.idt-entry-layout {
  display: grid;
  overflow: hidden;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--night);
  border: 6px solid var(--night);
  border-radius: 10px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.idt-entry-layout > div {
  display: grid;
  min-width: 0;
  min-height: 78px;
  padding: 8px 5px;
  text-align: center;
  background: #245341;
  border-radius: 5px;
  place-content: center;
}

.idt-entry-layout .gate-selector {
  background: #9b713d;
}

.idt-entry-layout .gate-flags {
  background: #735486;
}

.idt-entry-layout .gate-zero {
  background: #3d4c47;
}

.idt-entry-layout .small {
  grid-column: span 1;
}

.idt-entry-layout .large,
.idt-entry-layout .gate-zero {
  grid-column: span 2;
}

.idt-entry-layout strong {
  font-size: 0.63rem;
}

.idt-entry-layout small {
  color: #bed7cc;
  font-size: 0.5rem;
}

.idt-entry-layout .gate-selector small,
.idt-entry-layout .gate-flags small {
  color: #f2dfc6;
}

.gate-card > p,
.vector-space-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.vector-space-card h4 {
  margin-bottom: 22px;
}

.vector-space {
  display: grid;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: 1fr 0.8fr 1.25fr;
}

.vector-space > div {
  display: grid;
  min-width: 0;
  min-height: 116px;
  padding: 15px;
  background: var(--surface);
  align-content: center;
}

.vector-space > div + div {
  border-left: 1px solid var(--line);
}

.vector-space > div.active {
  color: var(--white);
  background: var(--green);
}

.vector-space strong {
  color: var(--amber);
  font: 750 0.95rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.vector-space span {
  font-size: 0.74rem;
  font-weight: 750;
}

.vector-space small {
  color: var(--ink-soft);
  font-size: 0.59rem;
}

.vector-space .active small {
  color: #c8e2d7;
}

.keyboard-trace {
  display: grid;
  align-items: start;
  padding: clamp(24px, 3.5vw, 34px);
  color: var(--white);
  background: var(--night);
  border: 1px solid #29463b;
  border-radius: var(--radius);
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
}

.keyboard-trace ol {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.keyboard-trace li {
  display: grid;
  min-width: 0;
  padding: 13px;
  background: #1c322a;
  border: 1px solid #345247;
  border-radius: 9px;
  grid-template-columns: 24px 1fr;
  gap: 9px;
}

.keyboard-trace li > span {
  display: grid;
  width: 23px;
  height: 23px;
  color: var(--night);
  background: #9dd6bc;
  border-radius: 50%;
  font-size: 0.63rem;
  font-weight: 800;
  place-items: center;
}

.keyboard-trace li p {
  display: grid;
  margin: 0;
}

.keyboard-trace li strong {
  font-size: 0.73rem;
}

.keyboard-trace li small {
  color: #91aaa0;
  font-size: 0.59rem;
}

.idt-reference {
  display: inline-flex;
  margin-top: 24px;
}

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

.event-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.event-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.event-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--green-dark);
  font: 750 0.68rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  background: var(--green-pale);
  border-radius: 999px;
}

.pulse-track {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: var(--night);
  border-radius: var(--radius-sm);
  gap: 0;
}

.pulse-track span {
  position: relative;
  display: block;
  height: 2px;
  background: #42655a;
  flex: 1;
}

.pulse-track span::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px;
  height: 9px;
  background: #86d2b1;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(134, 210, 177, 0.45);
  content: "";
  transform: translateY(-50%);
  animation: interrupt-pulse 1.6s ease-out infinite;
}

.pulse-track span:nth-child(2)::after {
  animation-delay: 0.16s;
}

.pulse-track span:nth-child(3)::after {
  animation-delay: 0.32s;
}

.pulse-track span:nth-child(4)::after {
  animation-delay: 0.48s;
}

.pulse-track span:nth-child(5)::after {
  animation-delay: 0.64s;
}

@keyframes interrupt-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 210, 177, 0.42);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(134, 210, 177, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 210, 177, 0);
  }
}

.counter-demo {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.counter-demo small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.counter-demo strong {
  color: var(--green);
  font: 750 clamp(1.5rem, 3vw, 2.3rem) "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
}

.key-translation {
  display: grid;
  align-items: center;
  min-height: 116px;
  margin-bottom: 24px;
  padding: 20px;
  color: var(--white);
  background: var(--night);
  border-radius: var(--radius-sm);
  grid-template-columns: 56px auto minmax(70px, 1fr) auto 56px;
  gap: 14px;
}

.key-translation kbd,
.key-translation strong {
  display: grid;
  height: 56px;
  font: 750 1.45rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  border-radius: 9px;
  place-items: center;
}

.key-translation kbd {
  color: var(--night);
  background: #f1e5cf;
  border: 1px solid #e5cda5;
  box-shadow: 0 4px 0 #cdb58c;
}

.key-translation strong {
  color: var(--night);
  background: #9cd5bb;
}

.key-translation code {
  padding: 9px;
  text-align: center;
  color: #bbd3c8;
  background: #21372f;
  border-radius: 7px;
}

.key-translation i {
  color: #80b9a1;
  font-style: normal;
}

.event-card > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.interrupt-boundary {
  display: grid;
  align-items: center;
  padding: 22px 26px;
  background: var(--amber-pale);
  border: 1px solid #e5c998;
  border-radius: var(--radius);
  grid-template-columns: 42px 1fr;
  gap: 18px;
}

.interrupt-boundary > span {
  display: grid;
  width: 42px;
  height: 42px;
  color: #7a4b19;
  font-size: 1.2rem;
  font-weight: 800;
  background: #efce95;
  border-radius: 50%;
  place-items: center;
}

.interrupt-boundary p {
  margin: 0;
  color: #694d2e;
}

.boot-steps {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
}

.boot-steps li {
  position: relative;
  min-width: 0;
  padding: 34px 24px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.boot-steps li + li {
  border-left: 1px solid var(--line);
}

.boot-steps li::after {
  position: absolute;
  z-index: 2;
  top: 55px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
}

.boot-steps li:last-child::after {
  display: none;
}

.boot-steps li.current {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #9ca6a2;
  font-family: monospace;
  font-size: 0.68rem;
}

.current .step-number {
  color: #9fc2b5;
}

.step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  place-items: center;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.current .step-icon {
  color: var(--green-dark);
  background: #cce4da;
  border-color: #cce4da;
}

.step-meta {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current .step-meta {
  color: #9fd2be;
}

.boot-steps h3 {
  margin-bottom: 13px;
  font-size: 1.2rem;
}

.boot-steps p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.boot-steps .current p:last-child {
  color: #c3d8d0;
}

.sector-card {
  padding: clamp(26px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.architecture-card {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 56px;
  color: var(--white);
  background: var(--night);
  border: 1px solid #2c4139;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.architecture-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns:
    minmax(0, 0.95fr) 52px
    minmax(0, 1.2fr) 52px
    minmax(0, 0.9fr);
}

.architecture-panel {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid #365047;
  border-radius: 14px;
}

.architecture-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.architecture-panel-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  border-radius: 50%;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.architecture-panel-heading small {
  display: block;
  margin-bottom: 2px;
  color: #8da59c;
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.architecture-panel-heading h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.architecture-panel > p {
  margin-bottom: 18px;
  color: #adc1b9;
  font-size: 0.8rem;
}

.architecture-panel code {
  color: #f4d7a9;
}

.storage-bar {
  display: grid;
  min-height: 172px;
  grid-template-columns: minmax(80px, 1.1fr) minmax(100px, 2fr) minmax(92px, 1.5fr);
}

.storage-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 12px 10px;
  flex-direction: column;
}

.storage-stage small {
  color: #b5ccc3;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storage-stage strong {
  margin-block: 4px;
  font-size: clamp(0.84rem, 1.2vw, 0.98rem);
  white-space: nowrap;
}

.storage-stage span {
  color: #d0dfda;
  font-family: monospace;
  font-size: 0.66rem;
}

.storage-stage-one {
  background: #27735d;
  border-radius: 10px 0 0 0;
}

.storage-stage-two {
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      #1c332b,
      #1c332b calc(25% - 1px),
      #355047 25%
  );
  border: 1px solid #3b584e;
  border-left: 0;
  border-radius: 0 10px 0 0;
  grid-column: 2 / 4;
}

.storage-stage-kernel {
  grid-column: 1 / 3;
  background: #253b33;
  border: 1px solid #4a655b;
  border-top: 0;
  border-radius: 0 0 0 10px;
}

.storage-stage-filesystem {
  color: var(--night);
  background: var(--amber);
  border: 1px solid #e9b35e;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 10px 0;
  grid-column: 3;
  grid-row: 2;
}

.storage-stage-filesystem small,
.storage-stage-filesystem span {
  color: #59370e;
}

.architecture-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid #31473f;
  font-size: 0.72rem !important;
}

.architecture-note > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--green-pale);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 850;
}

.ram-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ram-map > div {
  display: flex;
  min-width: 0;
  padding: 10px 11px;
  background: #1a3028;
  border: 1px solid #345047;
  border-radius: 8px;
  flex-direction: column;
}

.ram-map code {
  font-size: 0.67rem;
}

.ram-map span {
  overflow: hidden;
  color: #d4e2dc;
  font-size: 0.72rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.architecture-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #88a197;
  flex-direction: column;
}

.architecture-arrow small {
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.architecture-arrow span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 850;
}

.cpu-mode-flow {
  display: grid;
  gap: 7px;
}

.cpu-mode-flow > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: #1a3028;
  border: 1px solid #345047;
  border-radius: 8px;
}

.cpu-mode-flow strong {
  font-size: 0.86rem;
}

.cpu-mode-flow small {
  color: #91a99f;
  font-size: 0.65rem;
}

.cpu-mode-flow i {
  height: 13px;
  color: #789086;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 13px;
  text-align: center;
}

.cpu-mode-flow .active {
  color: var(--night);
  background: var(--green-pale);
  border-color: var(--green-pale);
}

.cpu-mode-flow .active small {
  color: #3e5c51;
}

.architecture-summary {
  display: grid;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #365047;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.architecture-summary > span {
  padding: 5px 9px;
  color: #654112;
  background: var(--amber-pale);
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.architecture-summary p {
  margin: 0;
  color: #adc1b9;
  font-size: 0.82rem;
}

.architecture-summary strong {
  color: var(--white);
}

.subsection-label {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.byte-explainer {
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.byte-heading {
  display: grid;
  align-items: end;
  margin-bottom: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 48px;
}

.byte-heading h3 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.byte-heading > p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.byte-visual {
  display: grid;
  align-items: stretch;
  overflow: hidden;
  grid-template-columns: 160px 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.byte-label {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px 24px;
  color: var(--white);
  background: var(--green-dark);
}

.byte-label strong {
  font-size: 1.2rem;
}

.byte-label span {
  color: #add0c3;
  font-family: monospace;
  font-size: 0.75rem;
}

.bit-row {
  display: grid;
  padding: 10px;
  background: var(--paper);
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.bit-row span {
  display: grid;
  min-width: 0;
  min-height: 66px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid #bdd5cb;
  border-radius: 7px;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 750;
}

.bit-row span:nth-child(2n) {
  color: #7a4b14;
  background: var(--amber-pale);
  border-color: #e2c18c;
}

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

.conversion-grid > div {
  display: flex;
  min-height: 116px;
  justify-content: center;
  flex-direction: column;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.conversion-grid strong {
  font-size: 1.22rem;
}

.conversion-grid span {
  color: var(--green);
  font-family: monospace;
  font-size: 0.82rem;
}

.conversion-grid small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.encoding-strip {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.encoding-strip p {
  display: grid;
  align-items: center;
  margin: 0;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
}

.encoding-strip strong {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 7px;
  font-size: 1.15rem;
}

.encoding-strip span {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.encoding-strip small {
  color: var(--green);
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.byte-note {
  display: grid;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  color: #714817;
  background: var(--amber-pale);
  border: 1px solid #e2c28e;
  border-radius: 10px;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.byte-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 800;
}

.byte-note p {
  margin: 0;
  font-size: 0.84rem;
}

.assembly-translation {
  display: grid;
  align-items: center;
  margin-top: 24px;
  padding-top: 30px;
  grid-template-columns: minmax(240px, 0.7fr) minmax(380px, 1.3fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.assembly-translation > div:first-child > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.instruction-bytes {
  overflow: hidden;
  color: #c8d8d2;
  background: var(--terminal);
  border: 1px solid #2d423a;
  border-radius: 10px;
}

.instruction-bytes p {
  display: grid;
  align-items: center;
  margin: 0;
  padding: 13px 16px;
  grid-template-columns: minmax(130px, 1fr) auto minmax(100px, 0.7fr) 62px;
  gap: 12px;
}

.instruction-bytes p + p {
  border-top: 1px solid #293d36;
}

.instruction-bytes p > span {
  color: var(--amber);
}

.instruction-bytes p code:nth-of-type(2) {
  color: #79d7ad;
}

.instruction-bytes small {
  color: #81958e;
  font-family: monospace;
  font-size: 0.64rem;
  text-align: right;
}

.sector-scale {
  display: grid;
  margin: 0 2px 7px;
  color: var(--ink-soft);
  font-family: monospace;
  font-size: 0.68rem;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
}

.sector-map {
  display: grid;
  min-height: 130px;
  grid-template-columns: minmax(240px, 3fr) minmax(90px, 0.9fr) 96px;
}

.sector-map > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-block: 1px solid;
}

.sector-code {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  border-left: 1px solid var(--green);
  border-radius: 10px 0 0 10px;
}

.sector-code span {
  font-size: 1.1rem;
  font-weight: 700;
}

.sector-code small {
  color: #c9e0d7;
}

.sector-padding {
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(
      135deg,
      #ebe8df,
      #ebe8df 8px,
      #e2dfd6 8px,
      #e2dfd6 16px
    );
  border-color: #ccc8bd;
}

.sector-signature {
  display: grid !important;
  color: var(--ink);
  background: var(--amber-pale);
  border-color: var(--amber);
  border-right: 1px solid var(--amber);
  border-radius: 0 10px 10px 0;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  grid-template-columns: repeat(2, 1fr);
}

.sector-signature span {
  display: grid;
  height: 100%;
  place-items: center;
}

.sector-signature span + span {
  border-left: 1px solid rgba(215, 146, 56, 0.45);
}

.sector-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 24px;
}

.sector-legend p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

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

.sector-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend-code {
  background: var(--green);
}

.legend-padding {
  background: #d1cec5;
}

.legend-signature {
  background: var(--amber);
}

.explanation-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lesson-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.lesson-card .card-index {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #b2b6b1;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.lesson-card > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.code-lab {
  display: grid;
  overflow: hidden;
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: minmax(300px, 0.8fr) minmax(400px, 1.2fr);
}

.code-copy {
  padding: clamp(34px, 5vw, 62px);
}

.decision-list {
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.decision-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.decision-list li + li {
  margin-top: 22px;
}

.decision-list span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 750;
}

.decision-list p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.code-window {
  min-width: 0;
  color: #b8c7c1;
  background: var(--terminal);
}

.code-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  color: #7f918a;
  border-bottom: 1px solid #293b35;
  font-family: monospace;
  font-size: 0.7rem;
}

.code-window pre {
  overflow: auto;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  font-size: 0.82rem;
  line-height: 1.75;
}

.comment {
  color: #70847c;
}

.directive {
  color: #dfa35b;
}

.label {
  color: #77d4aa;
}

.instruction {
  color: #d4b4e8;
}

.binary-section {
  overflow: hidden;
}

.binary-basics {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.binary-basics article {
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.binary-basics h3 {
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.binary-basics article > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.hex-to-bits {
  display: grid;
  align-items: center;
  margin-bottom: 24px;
  grid-template-columns: 1fr auto 1fr auto 1.35fr;
  gap: 8px;
}

.hex-to-bits > div {
  display: grid;
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hex-to-bits > div.result {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.hex-to-bits small,
.binary-file-summary small {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hex-to-bits .result small {
  color: #cce5da;
}

.hex-to-bits strong {
  font-size: 1.5rem;
}

.hex-to-bits span {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.hex-to-bits > i {
  color: var(--amber);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
}

.format-hex-line,
.ndisasm-line {
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  color: #e5efe9;
  background: var(--terminal);
  border-radius: var(--radius-sm);
}

.format-hex-line {
  grid-template-columns: 0.8fr 1.65fr 0.8fr;
}

.ndisasm-line {
  grid-template-columns: 1fr 0.7fr 0.8fr;
}

.format-hex-line code,
.ndisasm-line code {
  overflow: hidden;
  padding: 15px 10px;
  font-size: clamp(0.58rem, 0.7vw, 0.72rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-hex-line code + code,
.ndisasm-line code + code {
  border-left: 1px solid #33473f;
}

.decoder-labels {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.decoder-labels p {
  display: grid;
  margin: 0;
  grid-template-columns: 22px 1fr;
  column-gap: 6px;
}

.decoder-labels span {
  display: grid;
  width: 22px;
  height: 22px;
  color: var(--white);
  font-size: 0.7rem;
  background: var(--green);
  border-radius: 50%;
  place-items: center;
  grid-row: 1 / 3;
}

.decoder-labels strong {
  font-size: 0.72rem;
}

.decoder-labels small {
  color: var(--ink-soft);
  font-size: 0.61rem;
  line-height: 1.3;
}

.decoder-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.binary-lab {
  padding: clamp(22px, 4vw, 42px);
  color: var(--white);
  background: var(--night);
  border: 1px solid #2b463c;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 70px rgba(20, 35, 30, 0.16);
}

.binary-lab-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 28px;
}

.binary-lab .kicker {
  color: #90cbb4;
}

.binary-lab h3 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
}

.binary-file-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.binary-file-tabs button,
.hex-panel-toolbar button {
  color: #c8d7d1;
  background: #1d332b;
  border: 1px solid #385348;
  cursor: pointer;
}

.binary-file-tabs button {
  padding: 8px 11px;
  font: 700 0.69rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  border-radius: 999px;
}

.binary-file-tabs button[aria-selected="true"] {
  color: var(--night);
  background: #9cd3bc;
  border-color: #9cd3bc;
}

.binary-file-summary {
  display: grid;
  margin-bottom: 20px;
  background: #192d26;
  border: 1px solid #334c42;
  border-radius: var(--radius-sm);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.binary-file-summary > div {
  display: grid;
  min-width: 0;
  padding: 16px 18px;
}

.binary-file-summary > div + div {
  border-left: 1px solid #334c42;
}

.binary-file-summary small {
  color: #84ad9d;
}

.binary-file-summary strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binary-workspace {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 18px;
}

.hex-panel,
.byte-inspector {
  min-width: 0;
  background: #0f1c18;
  border: 1px solid #30483f;
  border-radius: var(--radius);
}

.hex-panel {
  overflow: hidden;
}

.hex-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 15px;
  border-bottom: 1px solid #30483f;
  gap: 12px;
}

.hex-panel-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hex-panel-toolbar button {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  place-items: center;
}

.hex-panel-toolbar button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hex-panel-toolbar span {
  min-width: 154px;
  text-align: center;
  font: 700 0.72rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.hex-panel-toolbar small {
  color: #84a095;
}

.hex-scroll {
  overflow-x: auto;
  padding: 15px;
  scrollbar-color: #4c6d60 #162820;
}

.hex-columns,
.hex-row {
  display: grid;
  align-items: center;
  min-width: 745px;
  grid-template-columns: 66px 1fr 142px;
  gap: 10px;
}

.hex-columns {
  padding: 0 6px 8px;
  color: #718b81;
  font: 700 0.62rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hex-columns span:nth-child(2) {
  text-align: center;
}

.hex-row {
  min-height: 33px;
  padding: 3px 6px;
  border-top: 1px solid rgba(70, 98, 87, 0.25);
}

.hex-offset,
.hex-ascii {
  color: #7f9b90;
  font: 0.7rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.hex-ascii {
  overflow: hidden;
  padding-left: 10px;
  color: #b7c9c1;
  border-left: 1px solid #2c4139;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hex-bytes {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
}

.hex-byte {
  min-width: 0;
  padding: 4px 1px;
  color: #d3dfda;
  font: 0.68rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.hex-byte:hover {
  background: #284137;
}

.hex-byte.byte-text {
  color: #9ed9bd;
  background: rgba(46, 121, 92, 0.17);
}

.hex-byte.byte-padding {
  color: #71877e;
  background: rgba(113, 135, 126, 0.08);
}

.hex-byte.byte-signature {
  color: #fff1d4;
  background: rgba(215, 146, 56, 0.35);
}

.hex-byte.selected {
  color: var(--night);
  background: var(--amber);
  border-color: #ffd08d;
  box-shadow: 0 0 0 2px rgba(215, 146, 56, 0.22);
}

.byte-inspector {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.selected-byte-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.selected-byte-heading strong {
  color: #ffd18e;
  font: 700 clamp(2.7rem, 5vw, 4.6rem)/0.9 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.selected-byte-heading span {
  padding: 5px 9px;
  color: #b8cdc4;
  font-size: 0.66rem;
  background: #1b3028;
  border-radius: 999px;
}

.selected-byte-bits {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.selected-byte-bits span {
  display: grid;
  min-height: 36px;
  color: #cbe0d7;
  font: 700 0.75rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  background: #1b3028;
  border: 1px solid #365146;
  border-radius: 5px;
  place-items: center;
}

.byte-inspector dl {
  margin: 0;
}

.byte-inspector dl > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #2a4138;
  gap: 16px;
}

.byte-inspector dt {
  color: #829d92;
  font-size: 0.72rem;
}

.byte-inspector dd {
  margin: 0;
  text-align: right;
  font: 0.72rem "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.selected-byte-explanation {
  margin: 18px 0 0;
  padding: 15px;
  color: #c6d6cf;
  font-size: 0.78rem;
  background: #192d26;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
}

.binary-legend {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 10px 22px;
}

.binary-legend span {
  display: flex;
  align-items: center;
  color: #92a9a0;
  font-size: 0.69rem;
  gap: 7px;
}

.binary-legend i {
  width: 10px;
  height: 10px;
  background: #d3dfda;
  border-radius: 3px;
}

.binary-legend .legend-binary-text {
  background: #64b88f;
}

.binary-legend .legend-binary-padding {
  background: #62766e;
}

.binary-legend .legend-binary-signature {
  background: var(--amber);
}

.binary-data-error {
  margin: 20px 0 0;
  padding: 14px;
  color: #ffd9a0;
  background: #4a2c1d;
  border-radius: var(--radius-sm);
}

.section-dark {
  color: var(--white);
  background: var(--night);
}

.proof-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(54px, 9vw, 110px);
}

.section-dark .kicker {
  color: #90cbb4;
}

.section-dark h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
}

.section-dark p {
  color: #b6c7c0;
}

.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #c8ddd5;
  background: #1e332c;
  border: 1px solid #304c42;
  border-radius: 100px;
  font-size: 0.7rem;
}

.proof-tags i {
  width: 6px;
  height: 6px;
  background: #6cca9b;
  border-radius: 50%;
}

.test-command {
  overflow: hidden;
  background: #0d1713;
  border: 1px solid #314840;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.test-command > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  color: #84978f;
  border-bottom: 1px solid #293c35;
  font-family: monospace;
  font-size: 0.68rem;
}

.icon-copy {
  padding: 5px 8px;
  color: #bdd2c9;
  background: #1c3029;
  border: 1px solid #354d44;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.66rem;
}

.test-command pre {
  overflow: auto;
  margin: 0;
  padding: clamp(26px, 5vw, 46px);
  color: #9fceb9;
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  line-height: 1.85;
}

.roadmap {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.roadmap li {
  position: relative;
  display: grid;
  min-height: 112px;
  align-items: center;
  padding: 23px;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap li > span {
  color: #929c98;
  font-family: monospace;
  font-size: 0.7rem;
}

.roadmap li strong,
.roadmap li small {
  display: block;
}

.roadmap li strong {
  font-size: 0.94rem;
}

.roadmap li small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.roadmap li i {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap li.done {
  background: var(--green-pale);
}

.roadmap li.done i {
  color: var(--green-dark);
  background: #c6ddd3;
}

.roadmap li.next {
  box-shadow: inset 0 0 0 2px var(--amber);
}

.roadmap li.next i {
  color: #7e4d16;
  background: var(--amber-pale);
}

.roadmap li.milestone-step {
  background: var(--amber-pale);
  box-shadow: inset 0 0 0 2px var(--amber);
}

.roadmap li.milestone-step i {
  color: #704717;
  background: #efd29f;
}

.roadmap li.key-milestone {
  min-height: 142px;
  box-shadow: inset 0 4px 0 var(--amber);
}

.roadmap li.key-milestone.done {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 60%),
    var(--green-pale);
}

.roadmap li.key-milestone.next,
.roadmap li.key-milestone.milestone-step {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 60%),
    var(--amber-pale);
  box-shadow:
    inset 0 0 0 2px var(--amber),
    inset 0 5px 0 var(--amber);
}

.roadmap-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  margin-top: 10px;
  align-items: center;
  color: #704717;
  background: rgba(240, 188, 105, 0.24);
  border: 1px solid rgba(164, 101, 28, 0.28);
  border-radius: 100px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.roadmap li.key-milestone.done .roadmap-badge {
  color: var(--green-dark);
  background: rgba(45, 126, 99, 0.12);
  border-color: rgba(45, 126, 99, 0.24);
}

.roadmap li.ai-step {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.roadmap li.ai-step span,
.roadmap li.ai-step small {
  color: #aecdc1;
}

.development-card {
  padding: clamp(28px, 5vw, 48px);
  margin-top: 48px;
  color: #d9e5df;
  background: #101816;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.development-card-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  gap: 28px;
}

.development-card-heading h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.development-card-heading > p {
  margin: 0;
  color: #9eb2aa;
  font-size: 0.82rem;
}

.development-flow {
  display: grid;
  margin-top: 32px;
  align-items: stretch;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
}

.development-flow > span {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  justify-content: center;
  background: #17231f;
  border: 1px solid #334c42;
  border-radius: 9px;
  flex-direction: column;
}

.development-flow > span:nth-of-type(2),
.development-flow > span:nth-of-type(4) {
  background: #2f7d68;
  border-color: #2f7d68;
}

.development-flow small {
  color: #74c9ad;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.development-flow strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.development-flow > i {
  display: grid;
  place-items: center;
  color: #e3a443;
  font-style: normal;
}

.development-notes {
  display: grid;
  margin-top: 24px;
  border: 1px solid #334c42;
  border-radius: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.development-notes p {
  padding: 18px;
  margin: 0;
  color: #9eb2aa;
  font-size: 0.72rem;
}

.development-notes p + p {
  border-left: 1px solid #334c42;
}

.development-notes strong {
  color: #d9e5df;
}

.development-card > .text-link {
  margin-top: 24px;
  color: #74c9ad;
}

.ai-boundary {
  display: grid;
  align-items: center;
  margin-top: 48px;
  padding: clamp(32px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 32px;
}

.ai-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid #b4d0c4;
  border-radius: 20px 20px 5px 20px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.ai-boundary h3 {
  font-size: 1.55rem;
}

.ai-boundary p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stack-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-mini span {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.72rem;
  text-align: center;
}

.stack-mini span:nth-child(2) {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.glossary-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.35fr);
  gap: clamp(60px, 10vw, 130px);
}

.glossary-intro {
  position: sticky;
  top: 120px;
}

.glossary-intro p {
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.glossary-list {
  border-top: 1px solid var(--line);
}

.glossary-list details {
  border-bottom: 1px solid var(--line);
}

.glossary-list summary {
  display: grid;
  align-items: center;
  padding: 24px 4px;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 670;
  list-style: none;
  grid-template-columns: 44px 1fr;
}

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

.glossary-list summary::after {
  grid-row: 1;
  grid-column: 3;
  color: var(--green);
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
}

.glossary-list details[open] summary::after {
  content: "−";
}

.glossary-list summary span {
  color: #929d98;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.glossary-list details > div {
  padding: 0 48px 24px;
}

.glossary-list p {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.sources-section {
  background: var(--surface);
}

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

.source-links a {
  position: relative;
  display: flex;
  min-height: 150px;
  justify-content: space-between;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-links a:hover {
  background: var(--paper);
}

.source-links span {
  color: #929d98;
  font-family: monospace;
  font-size: 0.68rem;
}

.source-links strong {
  max-width: 130px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.source-links i {
  position: absolute;
  top: 19px;
  right: 20px;
  color: var(--green);
  font-style: normal;
}

.sources-drawer {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.sources-drawer > summary {
  display: grid;
  min-height: 82px;
  padding: 18px 22px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
}

.sources-drawer > summary::-webkit-details-marker {
  display: none;
}

.sources-drawer > summary span {
  padding: 7px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font: 700 0.68rem monospace;
}

.sources-drawer > summary strong {
  font-size: 0.92rem;
}

.sources-drawer > summary i {
  color: var(--green);
  font-style: normal;
  transition: transform 180ms ease;
}

.sources-drawer[open] > summary i {
  transform: rotate(180deg);
}

.sources-drawer .source-links {
  border-left: 0;
}

.site-footer {
  color: #b7c8c0;
  background: #0e1915;
}

.site-footer .shell {
  display: grid;
  min-height: 180px;
  align-items: center;
  grid-template-columns: 1fr auto auto;
  gap: 44px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  color: var(--ink);
  background: #b9d6ca;
}

.footer-brand small {
  color: #8ca099;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: #8ca099;
  font-size: 0.75rem;
}

.site-footer a {
  text-underline-offset: 4px;
}

/* Marco 11: framebuffer, primitivas e primeira janela */

.graphics-stage-section {
  background:
    linear-gradient(135deg, rgba(34, 94, 139, 0.08), transparent 46%),
    var(--paper-2);
}

.graphics-overview-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.soia-gui-preview {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  color: #d9e5df;
  background: #101816;
  border: 8px solid var(--night);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.soia-gui-topbar {
  display: flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #d9e5df;
  background: #17231f;
  font: 700 0.72rem monospace;
}

.soia-gui-topbar span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.soia-gui-desktop {
  display: grid;
  min-height: 0;
  padding: clamp(18px, 4vw, 34px);
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%),
    #101816;
}

.soia-gui-window {
  width: min(100%, 540px);
  overflow: hidden;
  background: #0a0f0d;
  border: 5px solid #e9e5da;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.3);
}

.soia-gui-title {
  display: flex;
  min-height: 34px;
  padding-left: 11px;
  align-items: center;
  justify-content: space-between;
  color: #d9e5df;
  background: #2f7d68;
  font: 700 0.72rem monospace;
}

.soia-gui-title span {
  display: grid;
  width: 34px;
  align-self: stretch;
  place-items: center;
  color: #ffffff;
  background: #c85c54;
}

.soia-gui-window pre {
  min-height: 260px;
  padding: 20px;
  margin: 0;
  overflow: hidden;
  color: #d9e5df;
  background: #0a0f0d;
  font: 0.7rem/1.55 monospace;
  white-space: pre-wrap;
}

.soia-gui-window i {
  color: #e3a443;
  font-style: normal;
  animation: terminal-blink 1s steps(1) infinite;
}

.graphics-explanation {
  display: flex;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
}

.graphics-explanation h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.graphics-explanation > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.graphics-facts {
  display: grid;
  padding: 0;
  margin: auto 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graphics-facts > div {
  display: flex;
  min-width: 0;
  padding: 16px;
  flex-direction: column;
}

.graphics-facts > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.graphics-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.graphics-facts dt {
  color: var(--green);
  font: 800 0.82rem monospace;
}

.graphics-facts dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.graphics-flow {
  display: grid;
  margin-top: 24px;
  align-items: stretch;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
}

.graphics-flow > div {
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 15px;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
}

.graphics-flow > div:nth-of-type(2),
.graphics-flow > div:nth-of-type(4) {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.graphics-flow small {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graphics-flow > div:nth-of-type(2) small,
.graphics-flow > div:nth-of-type(4) small,
.graphics-flow > div:nth-of-type(2) span,
.graphics-flow > div:nth-of-type(4) span {
  color: #c8e0d6;
}

.graphics-flow strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
}

.graphics-flow span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.graphics-flow > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.graphics-boundary {
  display: grid;
  overflow: hidden;
  margin-top: 24px;
  background: var(--night);
  border-radius: var(--radius);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.graphics-boundary > div {
  display: grid;
  padding: 24px;
  align-items: start;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.graphics-boundary > div + div {
  border-left: 1px solid #334c42;
}

.graphics-boundary > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.graphics-boundary p {
  margin: 0;
  color: #9eb2aa;
  font-size: 0.76rem;
}

.graphics-boundary strong {
  color: #ffffff;
}

.graphics-boundary .text-link {
  padding: 17px 24px;
  color: #b9d6ca;
  border-top: 1px solid #334c42;
  grid-column: 1 / -1;
}

/* Marco 10: terminal e shell em ring 3 */

.terminal-stage-section {
  background:
    radial-gradient(circle at 84% 14%, rgba(45, 126, 99, 0.09), transparent 28%),
    var(--paper);
}

.terminal-learning-grid,
.terminal-proof-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
}

.terminal-flow-card,
.soia-shell-demo,
.terminal-proof-grid > article {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
}

.terminal-flow-card,
.terminal-proof-grid > article {
  background: var(--surface);
  border: 1px solid var(--line);
}

.terminal-flow-card h3,
.syscall-stage-heading h3,
.terminal-proof-grid h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.terminal-flow {
  display: grid;
  margin-top: 30px;
  align-items: stretch;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
}

.terminal-flow > div {
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
}

.terminal-flow > div:nth-of-type(3) {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.terminal-flow small {
  color: var(--green);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-flow > div:nth-of-type(3) small,
.terminal-flow > div:nth-of-type(3) span {
  color: #c8e0d6;
}

.terminal-flow strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
}

.terminal-flow span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.terminal-flow > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.soia-shell-demo {
  overflow: hidden;
  color: #d8ebe3;
  background: var(--night);
  box-shadow: var(--shadow);
}

.soia-shell-demo > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.soia-shell-demo > div span {
  width: 8px;
  height: 8px;
  background: #5b7169;
  border-radius: 50%;
}

.soia-shell-demo > div span:first-child {
  background: var(--amber);
}

.soia-shell-demo > div small {
  margin-left: auto;
  color: #8fa69d;
  font: 0.6rem monospace;
}

.soia-shell-demo pre {
  margin: 56px 0 0;
  white-space: pre-wrap;
}

.soia-shell-demo code {
  color: #c8e0d6;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  line-height: 1.9;
}

.soia-shell-demo b {
  color: #f0bc69;
  font-weight: 700;
}

.soia-shell-demo i {
  color: var(--white);
  font-style: normal;
  animation: terminal-blink 1s steps(1) infinite;
}

.terminal-parts {
  display: grid;
  margin-top: 24px;
  background: var(--night);
  border-radius: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.terminal-parts > div {
  display: grid;
  min-width: 0;
  padding: 20px 24px;
  grid-template-columns: auto 1fr;
  gap: 1px 12px;
}

.terminal-parts > div + div {
  border-left: 1px solid #334c42;
}

.terminal-parts span {
  color: var(--amber);
  font: 800 0.66rem monospace;
  grid-row: 1 / 3;
}

.terminal-parts strong {
  color: var(--white);
  font-size: 0.82rem;
}

.terminal-parts small {
  overflow: hidden;
  color: #8fa69d;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.syscall-stage-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.syscall-stage-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.syscall-service-grid {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.syscall-service-grid > div {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 22px;
  justify-content: center;
  flex-direction: column;
}

.syscall-service-grid > div:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}

.syscall-service-grid > div:nth-child(n + 5) {
  border-top: 1px solid var(--line);
}

.syscall-service-grid span {
  color: var(--green);
  font: 800 0.65rem monospace;
}

.syscall-service-grid strong {
  margin-top: auto;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
}

.syscall-service-grid small {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.pointer-guard {
  display: flex;
  padding: 20px 24px;
  margin-top: 24px;
  align-items: center;
  background: #e3eee9;
  border: 1px solid #bed3c9;
  border-radius: 12px;
  gap: 14px;
}

.pointer-guard > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.pointer-guard p {
  margin: 0;
  font-size: 0.8rem;
}

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

.command-grid article {
  min-width: 0;
  min-height: 174px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.command-grid code {
  display: inline-block;
  padding: 5px 8px;
  margin-bottom: 26px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-size: 0.68rem;
}

.command-grid strong {
  display: block;
  font-size: 0.9rem;
}

.command-grid p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.terminal-proof-grid > article:first-child {
  color: #d8ebe3;
  background: var(--night);
  border-color: var(--night);
}

.terminal-proof-grid > article:first-child h3 {
  color: var(--white);
}

.terminal-proof-grid > article:first-child > p:not(.kicker) {
  color: #a7bbb3;
}

.terminal-proof-grid pre {
  padding: 20px;
  margin: 26px 0 0;
  overflow: auto;
  background: #091b15;
  border: 1px solid #315044;
  border-radius: 10px;
  white-space: pre-wrap;
}

.terminal-proof-grid code {
  color: #b9d6ca;
  font-size: 0.7rem;
}

.terminal-limit-card ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.terminal-limit-card li {
  padding: 10px 0 10px 22px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.terminal-limit-card li::before {
  margin-left: -22px;
  margin-right: 10px;
  color: var(--amber-strong);
  content: "—";
}

.terminal-reference {
  margin-top: 24px;
}

/* Marco 9: disco, SOIAFS1 e VFS */

.storage-section {
  background: var(--paper);
}

.compact-selector.storage-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-selector.terminal-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.storage-layer-flow {
  display: grid;
  align-items: stretch;
  margin-bottom: 24px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
}

.storage-layer-flow > div {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 18px;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-direction: column;
}

.storage-layer-flow > div:nth-of-type(2) {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.storage-layer-flow > div:nth-of-type(2) small,
.storage-layer-flow > div:nth-of-type(2) span {
  color: #c8e0d6;
}

.storage-layer-flow small {
  color: var(--green);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storage-layer-flow strong {
  overflow: hidden;
  font-size: clamp(0.78rem, 1.35vw, 1rem);
  text-overflow: ellipsis;
}

.storage-layer-flow span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.storage-layer-flow > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.disk-layout-card {
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 24px;
  color: #e6f0eb;
  background: var(--night);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.disk-layout-heading {
  display: flex;
  margin-bottom: 32px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.disk-layout-heading h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.disk-layout-heading > p {
  display: flex;
  margin: 0;
  flex-direction: column;
  text-align: right;
}

.disk-layout-heading > p strong {
  color: #f0bc69;
  font-family: monospace;
}

.disk-layout-heading > p span {
  color: #8fa69d;
  font-size: 0.66rem;
}

.disk-lba-ruler,
.disk-sector-track {
  display: grid;
  grid-template-columns:
    minmax(54px, 1fr)
    minmax(110px, 5fr)
    minmax(230px, 32fr)
    repeat(2, minmax(58px, 1fr))
    minmax(100px, 48fr);
}

.disk-lba-ruler {
  margin-bottom: 8px;
  color: #82a095;
  font: 0.6rem monospace;
}

.disk-lba-ruler span {
  padding-left: 7px;
}

.disk-sector-track > span {
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 12px 9px;
  justify-content: center;
  border-block: 1px solid #416157;
  border-right: 1px solid #416157;
  flex-direction: column;
}

.disk-sector-track > span:first-child {
  border-left: 1px solid #416157;
  border-radius: 10px 0 0 10px;
}

.disk-sector-track > span:last-child {
  border-radius: 0 10px 10px 0;
}

.disk-sector-track small {
  color: #9cb2aa;
  font-size: 0.55rem;
}

.disk-sector-track strong {
  overflow: hidden;
  color: var(--white);
  font-size: clamp(0.62rem, 1vw, 0.82rem);
  text-overflow: ellipsis;
}

.disk-boot,
.disk-loader {
  background: #21372f;
}

.disk-kernel {
  background: #285747;
}

.disk-super,
.disk-directory {
  background: #8c5d20;
}

.disk-file {
  background: var(--amber);
}

.disk-file strong,
.disk-file small {
  color: var(--night);
}

.disk-layout-legend {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.disk-layout-legend span {
  display: flex;
  align-items: center;
  color: #95aaa2;
  font-size: 0.66rem;
  gap: 7px;
}

.disk-layout-legend i {
  width: 9px;
  height: 9px;
  background: #21372f;
  border: 1px solid #617c71;
  border-radius: 2px;
}

.disk-layout-legend span:nth-child(2) i {
  background: #285747;
}

.disk-layout-legend span:nth-child(3) i {
  background: var(--amber);
  border-color: var(--amber);
}

.transport-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.transport-heading {
  display: grid;
  margin-bottom: 28px;
  align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 32px;
}

.transport-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.transport-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.transport-comparison {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  gap: 18px;
}

.transport-side {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.transport-side-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 12px;
}

.transport-side-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green);
  border-radius: 10px;
  font-size: 1.15rem;
  place-items: center;
}

.ram-side .transport-side-heading > span {
  color: var(--night);
  background: var(--amber);
}

.transport-side-heading small {
  color: var(--green);
  font: 750 0.59rem monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.transport-side-heading h4 {
  margin: 2px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sector-overflow {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr auto 0.8fr auto 1fr;
  gap: 7px;
}

.sector-overflow > i {
  display: grid;
  color: var(--amber-strong);
  font-style: normal;
  font-weight: 900;
  place-items: center;
}

.sector-stack {
  display: grid;
  min-width: 0;
  min-height: 116px;
  padding: 13px 10px;
  align-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sector-stack span {
  display: flex;
  flex-direction: column;
}

.sector-stack strong {
  color: var(--green);
  font: 800 1.32rem monospace;
}

.sector-stack small {
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.sector-stack code {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.59rem;
}

.overflow-capacity {
  background: var(--amber-pale);
  border-color: #e5c999;
}

.overflow-capacity strong {
  color: #9a641e;
}

.current-capacity {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.current-capacity strong {
  color: var(--white);
}

.current-capacity small,
.current-capacity code {
  color: #c8e0d6;
}

.transport-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.65;
}

.unload-arrow {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-direction: column;
  text-align: center;
  gap: 4px;
}

.unload-arrow span {
  color: var(--green);
  font: 750 0.59rem monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unload-arrow strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.unload-arrow i {
  display: grid;
  width: 34px;
  height: 34px;
  margin-block: 6px;
  color: var(--night);
  background: var(--amber);
  border-radius: 50%;
  font-style: normal;
  place-items: center;
}

.unload-arrow small {
  max-width: 76px;
  font-size: 0.58rem;
}

.ram-unload {
  padding: 17px;
  background: var(--night);
  border-radius: 11px;
}

.ram-address-labels,
.ram-unload > p {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ram-address-labels code {
  color: #e7f1ec;
  font-size: 0.67rem;
}

.ram-address-track {
  display: grid;
  overflow: hidden;
  min-height: 74px;
  margin-block: 9px;
  border: 1px solid #45655a;
  border-radius: 9px;
  grid-template-columns: 19fr 1fr;
}

.ram-address-track span {
  display: grid;
  min-width: 0;
  padding: 8px;
  place-items: center;
}

.old-ram-range {
  color: #d4e8df;
  background: #245341;
}

.new-ram-range {
  color: var(--night);
  background: var(--amber);
}

.ram-address-track small {
  font-size: 0.57rem;
  white-space: nowrap;
}

.new-ram-range small {
  writing-mode: vertical-rl;
}

.ram-unload > p {
  color: #91aaa0;
  font-size: 0.55rem;
}

.ram-unload > p span {
  text-align: center;
}

.transport-summary {
  display: flex;
  margin-top: 18px;
  padding: 16px 18px;
  align-items: center;
  background: var(--green-soft);
  border-radius: 10px;
  gap: 16px;
}

.transport-summary span {
  flex: 0 0 auto;
  color: var(--green);
  font: 750 0.62rem monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transport-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

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

.filesystem-concepts,
.ata-vfs-grid {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.superblock-card,
.directory-card,
.ata-card,
.vfs-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filesystem-card-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 14px;
}

.filesystem-card-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 10px 10px 3px 10px;
  font-family: Georgia, serif;
  font-weight: 800;
}

.directory-card .filesystem-card-heading > span {
  color: var(--night);
  background: var(--amber);
}

.filesystem-card-heading small {
  color: var(--green);
  font: 0.62rem monospace;
}

.filesystem-card-heading h3 {
  margin: 2px 0 0;
}

.superblock-card > p,
.directory-card > p,
.ata-card > p,
.vfs-card > p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.superblock-card dl {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.superblock-card dl > div {
  display: grid;
  padding: 9px 12px;
  align-items: center;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
}

.superblock-card dl > div + div {
  border-top: 1px solid var(--line);
}

.superblock-card dt {
  color: var(--green);
}

.superblock-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.superblock-card dl strong {
  overflow-wrap: anywhere;
  font: 700 0.69rem monospace;
}

.directory-entry {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: 1.35fr repeat(3, 1fr);
}

.directory-entry span {
  display: flex;
  min-width: 0;
  padding: 12px;
  flex-direction: column;
}

.directory-entry span + span {
  border-left: 1px solid var(--line);
}

.directory-entry small {
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.directory-entry strong {
  overflow: hidden;
  font: 700 0.68rem monospace;
  text-overflow: ellipsis;
}

.lba-equation {
  display: grid;
  margin-top: 18px;
  align-items: stretch;
  grid-template-columns: 1fr auto 1fr auto 1.25fr;
  gap: 8px;
}

.lba-equation > span {
  display: flex;
  padding: 10px;
  align-items: center;
  background: var(--paper-2);
  border-radius: 8px;
  flex-direction: column;
}

.lba-equation > span.result {
  color: var(--white);
  background: var(--green);
}

.lba-equation small {
  color: var(--ink-soft);
  font-size: 0.57rem;
}

.lba-equation .result small {
  color: #c8e0d6;
}

.lba-equation strong {
  font-family: monospace;
}

.lba-equation > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.ata-card {
  color: #e4eee9;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.ata-card h3 {
  color: var(--white);
}

.ata-card > p {
  color: #b9d6ca;
}

.ata-transfer {
  display: grid;
  margin-top: 24px;
  align-items: stretch;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 7px;
}

.ata-transfer span {
  display: flex;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 214, 202, 0.22);
  border-radius: 8px;
  flex-direction: column;
  text-align: center;
}

.ata-transfer small {
  color: #90bdaa;
  font-size: 0.56rem;
}

.ata-transfer strong {
  color: var(--white);
  font: 700 0.69rem monospace;
}

.ata-transfer i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.vfs-card pre {
  overflow: auto;
  padding: 20px;
  margin: 24px 0 0;
  color: #b9d6ca;
  background: var(--night);
  border-radius: 10px;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  line-height: 1.9;
}

.storage-proof-card {
  display: grid;
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 24px;
  align-items: center;
  color: #dceae4;
  background: var(--night);
  border-radius: var(--radius);
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px 56px;
}

.storage-proof-card h3 {
  color: var(--white);
}

.storage-proof-card > div > p:last-child {
  margin-bottom: 0;
  color: #9eb2aa;
  font-size: 0.8rem;
}

.storage-proof-card ol {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.storage-proof-card li {
  display: flex;
  min-width: 0;
  padding: 14px 10px;
  background: #1c3129;
  border: 1px solid #345047;
  border-radius: 9px;
  flex-direction: column;
}

.storage-proof-card li > span {
  display: grid;
  width: 23px;
  height: 23px;
  margin-bottom: 17px;
  place-items: center;
  color: var(--night);
  background: #b9d6ca;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
}

.storage-proof-card li strong {
  font-size: 0.76rem;
}

.storage-proof-card li small {
  overflow: hidden;
  color: #8fa69d;
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-proof-card blockquote {
  padding: 15px 18px;
  margin: 0;
  color: #f2c47d;
  background: #0d1915;
  border-left: 3px solid var(--amber);
  border-radius: 0 9px 9px 0;
  grid-column: 1 / -1;
  font: 700 0.78rem monospace;
}

.storage-boundary {
  display: grid;
  padding: 18px 20px;
  align-items: center;
  background: var(--amber-pale);
  border: 1px solid #e6cda7;
  border-radius: 12px;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
}

.storage-boundary > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.storage-boundary p {
  margin: 0;
  color: #614b2c;
  font-size: 0.77rem;
}

.storage-boundary .text-link {
  color: #614b2c;
  white-space: nowrap;
}

/* Fundamentos: ver → manipular → prever → conferir → aplicar */

.fundamentals-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 108, 87, 0.1), transparent 28rem),
    var(--paper-2);
  border-block: 1px solid var(--line);
}

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

.learning-loop {
  display: grid;
  align-items: center;
  padding: 14px;
  margin-bottom: 28px;
  color: #dceae4;
  background: var(--night);
  border-radius: 14px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
}

.learning-loop > span {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 30px 1fr;
  column-gap: 9px;
}

.learning-loop i {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--night);
  background: #b9d6ca;
  border-radius: 50%;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.learning-loop strong {
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.2;
}

.learning-loop small {
  overflow: hidden;
  color: #8fa69d;
  font-size: 0.64rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-loop > b {
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 500;
}

.knowledge-map {
  display: grid;
  align-items: stretch;
  margin-bottom: 54px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 6px;
}

.knowledge-map a {
  display: flex;
  min-width: 0;
  min-height: 104px;
  padding: 15px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.knowledge-map a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.knowledge-map a.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.knowledge-map a.active span,
.knowledge-map a.active small {
  color: #c8e0d6;
}

.knowledge-map a span {
  color: var(--green);
  font-family: monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.knowledge-map a strong {
  margin-top: auto;
  font-size: 1rem;
  line-height: 1.15;
}

.knowledge-map a small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-map > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.foundation-card {
  display: grid;
  padding: clamp(24px, 4vw, 48px);
  margin-top: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 48px rgba(22, 32, 29, 0.055);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 68px);
}

[data-study-panel][hidden] {
  display: none;
}

.compact-selector {
  display: grid;
  padding: 8px;
  margin-bottom: 24px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.core-index-section {
  padding-block: clamp(54px, 7vw, 88px);
  background: var(--surface);
}

.core-index-section .section-heading {
  margin-bottom: 30px;
}

.core-topic-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.core-index-note {
  max-width: 790px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.concept-bridge {
  display: grid;
  margin-top: 24px;
  padding: 18px 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.concept-bridge > span {
  color: var(--green);
  font: 750 0.66rem monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.concept-bridge p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

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

.architecture-references {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.architecture-references p {
  display: grid;
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 16px 18px;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
}

.architecture-references p + p {
  border-left: 1px solid var(--line);
}

.architecture-references span {
  color: #929d98;
  font: 650 0.66rem monospace;
}

.architecture-references strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.architecture-references a {
  grid-column: 2;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
}

.compact-selector button {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 12px 14px;
  align-items: flex-start;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  flex-direction: column;
  text-align: left;
}

.compact-selector button:hover {
  background: var(--paper);
  border-color: var(--line);
}

.compact-selector button.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.compact-selector button > span {
  color: var(--green);
  font: 800 0.61rem monospace;
}

.compact-selector button.active > span,
.compact-selector button.active small {
  color: #c8e0d6;
}

.compact-selector button strong {
  margin-top: auto;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-selector button small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

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

.foundation-copy {
  position: sticky;
  top: 104px;
}

.foundation-copy > p:not(.kicker) {
  color: var(--ink-soft);
}

.concept-distinction {
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-template-columns: 1fr;
}

.concept-distinction span {
  display: flex;
  padding: 12px 14px;
  flex-direction: column;
}

.concept-distinction span + span {
  border-top: 1px solid var(--line);
}

.concept-distinction strong {
  font-size: 0.78rem;
}

.concept-distinction small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.bit-playground,
.nibble-playground,
.address-calculator {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  color: #e5efe9;
  background: var(--night);
  border-radius: 15px;
}

.playground-heading,
.calculator-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.playground-heading > div:first-child,
.calculator-heading > div:first-child {
  display: flex;
  flex-direction: column;
}

.playground-heading small,
.calculator-heading small {
  color: #8fa69d;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.playground-heading strong,
.calculator-heading strong {
  color: var(--white);
  font-size: 1.05rem;
}

.byte-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.byte-presets button,
.nibble-grid button {
  color: #b9cec5;
  background: #1e332b;
  border: 1px solid #345047;
  border-radius: 7px;
  cursor: pointer;
  font-family: monospace;
}

.byte-presets button {
  padding: 5px 8px;
  font-size: 0.7rem;
}

.byte-presets button:hover,
.nibble-grid button:hover {
  color: var(--white);
  border-color: #72b79e;
}

.bit-position-labels,
.interactive-bit-row,
.bit-weight-labels {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(3px, 0.8vw, 8px);
}

.bit-position-labels,
.bit-weight-labels {
  color: #8fa69d;
  font-family: monospace;
  font-size: clamp(0.56rem, 1vw, 0.68rem);
  text-align: center;
}

.bit-position-labels {
  margin-bottom: 6px;
}

.bit-weight-labels {
  margin-top: 7px;
}

.bit-toggle {
  display: grid;
  aspect-ratio: 0.82;
  min-width: 0;
  place-items: center;
  color: #789087;
  background: #0d1915;
  border: 1px solid #345047;
  border-radius: 9px;
  cursor: pointer;
  font-family: monospace;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.bit-toggle:hover {
  transform: translateY(-2px);
}

.bit-toggle.active {
  color: var(--white);
  background: var(--green);
  border-color: #58a78b;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.byte-readout {
  display: grid;
  margin-top: 24px;
  border: 1px solid #345047;
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.byte-readout > div {
  min-width: 0;
  padding: 13px;
}

.byte-readout > div + div {
  border-left: 1px solid #345047;
}

.byte-readout small,
.nibble-readout small {
  display: block;
  color: #8fa69d;
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.byte-readout output {
  display: block;
  overflow: hidden;
  color: #f0bc69;
  font-family: monospace;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 800;
  text-overflow: ellipsis;
}

.byte-equation {
  padding: 11px 13px;
  margin: 14px 0 0;
  color: #9bb0a7;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  font-size: 0.74rem;
}

.byte-equation strong {
  color: #dceae4;
  font-family: monospace;
}

.playground-note {
  margin: 15px 0 0;
  color: #8fa69d;
  font-size: 0.72rem;
}

.hex-foundation {
  align-items: stretch;
}

.hex-sequence {
  display: flex;
  margin: 25px 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.hex-sequence code {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
}

.hex-sequence code.next {
  color: var(--white);
  background: var(--green);
}

.hex-sequence i {
  color: var(--amber);
  font-size: 0.64rem;
  font-style: normal;
}

.hex-limit {
  display: flex;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-direction: column;
}

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

.hex-limit span {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.nibble-playground {
  display: flex;
  flex-direction: column;
}

#nibble-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  border-radius: 9px;
  font-family: monospace;
  font-size: 1.45rem;
  font-weight: 900;
}

.nibble-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.nibble-grid button {
  aspect-ratio: 1;
  min-width: 0;
  font-size: 0.8rem;
}

.nibble-grid button.active {
  color: var(--night);
  background: #b9d6ca;
  border-color: #b9d6ca;
  font-weight: 900;
}

.nibble-readout {
  display: grid;
  padding: 15px;
  margin-top: 14px;
  background: #0d1915;
  border-radius: 9px;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nibble-readout output {
  color: #f0bc69;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
}

.two-nibbles {
  display: flex;
  margin-top: auto;
  padding-top: 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.two-nibbles span {
  display: flex;
  padding: 10px 14px;
  background: #1e332b;
  border-radius: 8px;
  flex-direction: column;
  text-align: center;
}

.two-nibbles small {
  color: #8fa69d;
}

.two-nibbles > b {
  color: #8fa69d;
}

.two-nibbles > strong {
  color: #f0bc69;
  font-family: monospace;
}

.address-foundation,
.boot-foundation,
.cpu-foundation {
  grid-template-rows: auto auto;
}

.address-dictionary {
  display: grid;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.address-dictionary div {
  display: grid;
  padding: 11px 13px;
  grid-template-columns: 68px 1fr;
  gap: 10px;
}

.address-dictionary div + div {
  border-top: 1px solid var(--line);
}

.address-dictionary dt {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.address-dictionary dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.calculator-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  border-radius: 50%;
  font-size: 1.2rem;
}

.calculator-fields {
  display: grid;
  margin-bottom: 22px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
}

.calculator-fields label,
.address-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.calculator-fields label > span:first-child,
.address-result > span {
  margin-bottom: 5px;
  color: #8fa69d;
  font-size: 0.62rem;
}

.calculator-fields > i {
  padding-bottom: 10px;
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
}

.hex-input {
  display: flex;
  height: 44px;
  align-items: center;
  background: #0d1915;
  border: 1px solid #345047;
  border-radius: 8px;
}

.hex-input:focus-within {
  border-color: var(--amber);
}

.hex-input b {
  padding-left: 10px;
  color: #789087;
  font-family: monospace;
}

.hex-input input {
  width: 100%;
  min-width: 0;
  padding: 9px 8px 9px 1px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: monospace;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.address-result output {
  display: flex;
  height: 44px;
  align-items: center;
  padding: 0 10px;
  color: #f0bc69;
  background: #0d1915;
  border: 1px solid #345047;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.address-calculator .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.calculator-feedback {
  margin: 14px 0 0;
  color: #9bb0a7;
  font-size: 0.7rem;
}

.calculator-feedback.error {
  color: #ffba9b;
}

.memory-street {
  min-width: 0;
  padding: 20px 24px 26px;
  color: var(--ink);
  background: var(--amber-pale);
  border: 1px solid #e6cda7;
  border-radius: 13px;
  grid-column: 1 / -1;
}

.street-label {
  display: flex;
  margin-bottom: 22px;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.street-label span {
  font-size: 0.8rem;
  font-weight: 800;
}

.street-label small {
  color: #7c6544;
  font-size: 0.65rem;
}

.street-track {
  position: relative;
  display: grid;
  padding-top: 12px;
  grid-template-columns: auto minmax(130px, 1fr) auto;
}

.street-track::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #bd8a43;
  content: "";
}

.street-track > span {
  position: relative;
  display: flex;
  flex-direction: column;
}

.street-track > span::before {
  position: absolute;
  top: -17px;
  width: 11px;
  height: 11px;
  background: var(--surface);
  border: 3px solid #bd8a43;
  border-radius: 50%;
  content: "";
}

.street-base::before {
  left: 0;
}

.street-destination {
  align-items: flex-end;
}

.street-destination::before {
  right: 0;
}

.street-distance {
  align-items: center;
}

.street-distance::before {
  display: none;
}

.street-track i {
  color: #7c6544;
  font-size: 0.6rem;
  font-style: normal;
  text-transform: uppercase;
}

.street-track strong {
  font-family: monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.88rem);
}

.boot-sector-map {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  color: #e5efe9;
  background: var(--night);
  border-radius: 15px;
}

.boot-ruler,
.boot-bytes {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 68px 68px;
}

.boot-ruler {
  margin-bottom: 7px;
  color: #8fa69d;
  font-family: monospace;
  font-size: 0.59rem;
}

.boot-ruler span:nth-child(2) {
  justify-self: end;
}

.boot-ruler span:nth-child(3),
.boot-ruler span:nth-child(4) {
  justify-self: center;
}

.boot-bytes > span {
  display: flex;
  min-height: 118px;
  padding: 15px;
  justify-content: center;
  flex-direction: column;
}

.boot-content {
  background: #1f3a31;
  border: 1px solid #3d6255;
  border-radius: 10px 0 0 10px;
}

.boot-signature {
  align-items: center;
  color: var(--night);
  background: var(--amber);
  border-block: 1px solid #efb45f;
  border-right: 1px solid #c07719;
  text-align: center;
}

.boot-signature:last-child {
  border-radius: 0 10px 10px 0;
}

.boot-bytes strong {
  font-family: monospace;
}

.boot-content strong {
  color: var(--white);
}

.boot-signature strong {
  font-size: 1.25rem;
}

.boot-bytes small {
  color: #94ada3;
  font-size: 0.62rem;
}

.boot-signature small {
  color: #5a3a13;
}

.boot-addresses {
  display: flex;
  margin-top: 14px;
  justify-content: space-between;
  gap: 18px;
}

.boot-addresses span {
  display: flex;
  flex-direction: column;
}

.boot-addresses small {
  color: #8fa69d;
  font-size: 0.61rem;
  text-transform: uppercase;
}

.boot-addresses code {
  color: #f0bc69;
  font-weight: 800;
}

.boot-addresses strong {
  font-weight: 400;
  white-space: nowrap;
}

.boot-meaning {
  display: grid;
  padding: 18px 20px;
  align-items: center;
  background: var(--amber-pale);
  border: 1px solid #e6cda7;
  border-radius: 12px;
  grid-column: 1 / -1;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
}

.boot-meaning > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.boot-meaning p {
  margin: 0;
  color: #614b2c;
  font-size: 0.77rem;
}

.boot-meaning a {
  color: #614b2c;
  font-size: 0.72rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

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

.cpu-clarifications > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cpu-clarifications .analogy-card {
  color: #e5efe9;
  background: var(--green-dark);
  border-color: var(--green-dark);
  grid-column: 1 / -1;
}

.cpu-clarifications small {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cpu-clarifications .analogy-card small {
  color: #90bdaa;
}

.cpu-clarifications strong {
  display: block;
  line-height: 1.3;
}

.cpu-clarifications p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.cpu-clarifications .analogy-card p {
  color: #b9d6ca;
}

.interpretation-flow {
  display: grid;
  padding: 20px;
  align-items: stretch;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-column: 1 / -1;
  grid-template-columns: auto auto repeat(3, 1fr);
  gap: 10px;
}

.interpretation-flow > code {
  display: grid;
  padding: 12px;
  place-items: center;
  color: var(--white);
  background: var(--night);
  border-radius: 8px;
  font-weight: 800;
}

.interpretation-flow > i {
  display: grid;
  place-items: center;
  color: var(--amber);
  font-style: normal;
}

.interpretation-flow > span {
  display: flex;
  min-width: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
}

.interpretation-flow small {
  color: var(--ink-soft);
  font-size: 0.6rem;
}

.interpretation-flow strong {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

.foundation-next {
  display: grid;
  padding: clamp(25px, 4vw, 42px);
  margin-top: 24px;
  align-items: center;
  color: #dceae4;
  background: var(--night);
  border-radius: var(--radius);
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
}

.foundation-next h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.foundation-next p:not(.kicker) {
  max-width: 660px;
  margin-bottom: 0;
  color: #9bb0a7;
}

.foundation-next .text-link {
  color: #b9d6ca;
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .terminal-card {
    width: min(100%, 620px);
    max-width: 100%;
    transform: none;
  }

  .terminal-learning-grid,
  .terminal-proof-grid {
    grid-template-columns: 1fr;
  }

  .graphics-overview-grid {
    grid-template-columns: 1fr;
  }

  .graphics-explanation {
    min-height: 360px;
  }

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

  .split-heading {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .knowledge-map {
    grid-template-columns: repeat(3, 1fr);
  }

  .knowledge-map > i {
    display: none;
  }

  .foundation-card {
    grid-template-columns: 1fr;
  }

  .foundation-copy {
    position: static;
  }

  .memory-street,
  .boot-meaning,
  .interpretation-flow {
    grid-column: auto;
  }

  .storage-proof-card {
    grid-template-columns: 1fr;
  }

  .transport-heading,
  .transport-comparison {
    grid-template-columns: 1fr;
  }

  .unload-arrow {
    min-height: 96px;
  }

  .unload-arrow i {
    transform: rotate(90deg);
  }

  .unload-arrow small {
    max-width: none;
  }

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

  .flow-arrow {
    transform: rotate(90deg);
  }

  .task-foundation-grid {
    grid-template-columns: 1fr;
  }

  .scheduler-flow,
  .syscall-flow {
    grid-template-columns: 1fr;
  }

  .scheduler-flow > i,
  .syscall-flow > i {
    min-height: 24px;
    transform: rotate(90deg);
  }

  .scheduler-step,
  .syscall-flow > div {
    min-height: 94px;
  }

  .syscall-card {
    grid-template-columns: 1fr;
  }

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

  .task-proof > div:first-child,
  .task-proof > .text-link {
    grid-column: 1 / -1;
  }

  .task-proof > .text-link {
    white-space: normal;
  }

  .memory-pipeline {
    grid-template-columns: 1fr;
  }

  .memory-pipeline > i {
    width: auto;
    height: 30px;
    transform: rotate(90deg);
  }

  .memory-pipeline article {
    min-height: 112px;
  }

  .memory-proof {
    grid-template-columns: 1fr;
  }

  .memory-proof-result {
    white-space: normal;
  }

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

  .interrupt-flow-card > i {
    width: auto;
    height: 34px;
    transform: rotate(90deg);
  }

  .interrupt-node {
    min-height: 112px;
  }

  .idt-dictionary,
  .vector-calculation {
    grid-template-columns: 1fr;
  }

  .idt-dictionary > i,
  .vector-calculation > i {
    min-height: 24px;
    transform: rotate(90deg);
  }

  .vector-step {
    min-height: 94px;
  }

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

  .keyboard-trace {
    grid-template-columns: 1fr;
  }

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

  .boot-steps li:nth-child(3) {
    border-left: 0;
  }

  .boot-steps li::after {
    display: none;
  }

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

  .architecture-arrow {
    min-height: 66px;
  }

  .architecture-arrow span {
    transform: rotate(90deg);
  }

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

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

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

  .binary-conversion-card {
    grid-column: 1 / -1;
  }

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

  .binary-file-tabs {
    justify-content: flex-start;
  }

  .binary-workspace {
    grid-template-columns: 1fr;
  }

  .byte-inspector {
    position: static;
  }

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

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

  .ai-boundary {
    grid-template-columns: auto 1fr;
  }

  .stack-mini {
    grid-column: 1 / -1;
  }

  .source-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 74px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .main-nav a[href^="#"]::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 5px;
    width: 3px;
    height: 22px;
    transform: translateY(-50%) scaleY(0.35);
  }

  .main-nav a[aria-current="location"] {
    padding-left: 16px;
    transform: none;
  }

  .main-nav a[aria-current="location"]::after {
    transform: translateY(-50%) scaleY(1);
  }

  .hero {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics div {
    min-width: 0;
    padding-right: 12px;
  }

  .metrics div + div {
    padding-left: 12px;
  }

  .terminal-card::before {
    display: none;
  }

  .terminal-body {
    min-height: 280px;
    padding: 28px 20px;
  }

  .terminal-label {
    margin-bottom: 38px;
  }

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

  .boundary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .study-level {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .soia-gui-preview {
    min-height: 0;
  }

  .soia-gui-desktop {
    min-height: 0;
  }

  .soia-gui-window pre {
    min-height: 210px;
  }

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

  .graphics-flow > i {
    height: 16px;
    transform: rotate(90deg);
  }

  .graphics-flow > div {
    min-height: 88px;
  }

  .graphics-boundary {
    grid-template-columns: 1fr;
  }

  .graphics-boundary > div + div {
    border-top: 1px solid #334c42;
    border-left: 0;
  }

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

  .development-card-heading,
  .development-flow,
  .development-notes {
    grid-template-columns: 1fr;
  }

  .development-flow > i {
    height: 16px;
    transform: rotate(90deg);
  }

  .development-flow > span {
    min-height: 78px;
  }

  .development-notes p + p {
    border-top: 1px solid #334c42;
    border-left: 0;
  }

  .compact-selector.storage-selector,
  .compact-selector.terminal-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-selector button {
    min-height: 76px;
  }

  .concept-bridge {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .architecture-references {
    grid-template-columns: 1fr;
  }

  .architecture-references p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .terminal-flow > i {
    height: 16px;
    transform: rotate(90deg);
  }

  .terminal-flow > div {
    min-height: 88px;
  }

  .terminal-parts {
    grid-template-columns: 1fr;
  }

  .terminal-parts > div + div {
    border-top: 1px solid #334c42;
    border-left: 0;
  }

  .syscall-stage-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .syscall-service-grid > div:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .syscall-service-grid > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .syscall-service-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

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

  .storage-layer-flow > i {
    height: 18px;
    transform: rotate(90deg);
  }

  .storage-layer-flow > div {
    min-height: 96px;
  }

  .disk-lba-ruler {
    display: none;
  }

  .disk-sector-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .disk-sector-track > span {
    min-height: 94px;
    border: 1px solid #416157;
    border-radius: 0;
  }

  .disk-sector-track > span:first-child {
    border-radius: 9px 0 0 0;
  }

  .disk-sector-track > span:nth-child(3) {
    border-radius: 0 9px 0 0;
  }

  .disk-sector-track > span:nth-child(4) {
    border-radius: 0 0 0 9px;
  }

  .disk-sector-track > span:last-child {
    border-radius: 0 0 9px 0;
  }

  .filesystem-concepts,
  .ata-vfs-grid {
    grid-template-columns: 1fr;
  }

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

  .directory-entry span + span {
    border-left: 0;
  }

  .directory-entry span:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .directory-entry span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .storage-proof-card ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-boundary {
    align-items: flex-start;
    grid-template-columns: 34px 1fr;
  }

  .storage-boundary .text-link {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .learning-loop {
    grid-template-columns: 1fr;
  }

  .learning-loop > b {
    height: 12px;
    transform: rotate(90deg);
    justify-self: center;
  }

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

  .disk-layout-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .disk-layout-heading > p {
    text-align: left;
  }

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

  .disk-sector-track > span:first-child,
  .disk-sector-track > span:nth-child(3),
  .disk-sector-track > span:nth-child(4),
  .disk-sector-track > span:last-child {
    border-radius: 0;
  }

  .disk-sector-track > span:first-child {
    border-radius: 9px 0 0 0;
  }

  .disk-sector-track > span:nth-child(2) {
    border-radius: 0 9px 0 0;
  }

  .disk-sector-track > span:nth-child(5) {
    border-radius: 0 0 0 9px;
  }

  .disk-sector-track > span:last-child {
    border-radius: 0 0 9px 0;
  }

  .directory-entry {
    grid-template-columns: 1fr;
  }

  .directory-entry span:nth-child(even) {
    border-left: 0;
  }

  .directory-entry span + span {
    border-top: 1px solid var(--line);
  }

  .lba-equation,
  .ata-transfer {
    grid-template-columns: 1fr;
  }

  .lba-equation > i,
  .ata-transfer > i {
    height: 17px;
  }

  .ata-transfer > i {
    transform: rotate(90deg);
  }

  .storage-proof-card ol {
    grid-template-columns: 1fr;
  }

  .foundation-card {
    padding: 22px;
    gap: 26px;
  }

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

  .byte-readout > div + div {
    border-left: 0;
  }

  .byte-readout > div:nth-child(even) {
    border-left: 1px solid #345047;
  }

  .byte-readout > div:nth-child(n + 3) {
    border-top: 1px solid #345047;
  }

  .calculator-fields {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .calculator-fields > i {
    height: 16px;
    padding: 0;
    line-height: 16px;
    text-align: center;
  }

  .street-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .boot-ruler {
    display: none;
  }

  .boot-bytes {
    grid-template-columns: minmax(100px, 1fr) 54px 54px;
  }

  .boot-bytes > span {
    min-height: 100px;
    padding: 10px;
  }

  .boot-signature small {
    font-size: 0.52rem;
  }

  .boot-addresses,
  .boot-meaning {
    align-items: flex-start;
    flex-direction: column;
  }

  .boot-meaning {
    display: flex;
  }

  .cpu-clarifications {
    grid-template-columns: 1fr;
  }

  .cpu-clarifications .analogy-card {
    grid-column: auto;
  }

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

  .interpretation-flow > i {
    height: 18px;
    transform: rotate(90deg);
  }

  .foundation-next {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .foundation-next .button {
    width: 100%;
  }

  .address-space-heading,
  .scheduler-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .context-strip > span {
    grid-column: 1 / -1;
  }

  .context-strip .context-total {
    width: max-content;
    grid-column: 1 / -1;
  }

  .e820-card-heading,
  .idt-practical-heading {
    align-items: start;
    flex-direction: column;
  }

  .memory-concepts {
    grid-template-columns: 1fr;
  }

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

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

  .event-card-heading {
    align-items: flex-start;
  }

  .segmented-control button {
    min-width: 0;
  }

  .boot-steps {
    grid-template-columns: 1fr;
  }

  .boot-steps li + li,
  .boot-steps li:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .sector-scale {
    gap: 9px;
  }

  .architecture-summary {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .architecture-summary > span {
    width: max-content;
  }

  .byte-heading,
  .assembly-translation {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .byte-visual {
    grid-template-columns: 110px 1fr;
  }

  .bit-row {
    gap: 4px;
  }

  .bit-row span {
    min-height: 52px;
  }

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

  .sector-map {
    min-height: 100px;
    grid-template-columns: minmax(130px, 3fr) minmax(54px, 0.8fr) 62px;
  }

  .sector-code span {
    font-size: 0.86rem;
  }

  .sector-code small,
  .sector-padding span {
    font-size: 0.65rem;
  }

  .sector-signature {
    font-size: 0.78rem;
  }

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

  .binary-basics {
    grid-template-columns: 1fr;
  }

  .binary-conversion-card {
    grid-column: auto;
  }

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

  .binary-file-summary > div:nth-child(3) {
    border-top: 1px solid #334c42;
    border-left: 0;
  }

  .binary-file-summary > div:nth-child(4) {
    border-top: 1px solid #334c42;
  }

  .binary-lab {
    padding: 20px;
  }

  .hex-panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-card {
    min-height: 0;
  }

  .proof-grid {
    gap: 42px;
  }

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

  .ai-boundary {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .stack-mini {
    grid-column: auto;
  }

  .glossary-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .glossary-intro {
    position: static;
  }

  .source-links {
    grid-template-columns: 1fr;
  }

  .source-links a {
    min-height: 112px;
  }

  .site-footer .shell {
    align-items: start;
    padding-block: 46px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 440px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .sector-overflow {
    grid-template-columns: 1fr;
  }

  .sector-overflow > i {
    min-height: 18px;
  }

  .sector-stack {
    min-height: 102px;
  }

  .transport-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .soia-gui-preview {
    min-height: 0;
    border-width: 5px;
  }

  .soia-gui-desktop {
    min-height: 270px;
    padding: 13px;
  }

  .soia-gui-window {
    border-width: 4px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  }

  .soia-gui-window pre {
    min-height: 188px;
    padding: 13px;
    font-size: 0.58rem;
  }

  .graphics-explanation {
    min-height: 0;
    padding: 22px;
  }

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

  .graphics-facts > div:nth-child(even) {
    border-left: 0;
  }

  .graphics-facts > div + div {
    border-top: 1px solid var(--line);
  }

  .knowledge-map {
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-map a {
    min-height: 92px;
  }

  .playground-heading {
    flex-direction: column;
  }

  .byte-presets {
    justify-content: flex-start;
  }

  .bit-playground,
  .nibble-playground,
  .address-calculator,
  .boot-sector-map {
    padding: 16px;
  }

  .bit-toggle {
    border-radius: 6px;
  }

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

  .two-nibbles {
    flex-wrap: wrap;
  }

  .street-track {
    grid-template-columns: auto 1fr auto;
  }

  .street-distance strong {
    font-size: 0.55rem;
  }

  .boot-addresses {
    flex-direction: column;
  }

  .boot-meaning {
    padding: 16px;
  }

  .boot-meaning > span {
    flex: 0 0 auto;
  }

  .brand small {
    display: none;
  }

  .architecture-card {
    padding: 18px;
  }

  .storage-bar,
  .ram-map {
    grid-template-columns: 1fr;
  }

  .storage-stage-one {
    border-radius: 10px 10px 0 0;
  }

  .storage-stage-two {
    border-top: 0;
    border-left: 1px solid #3b584e;
    border-radius: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .storage-stage-kernel {
    border-radius: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .storage-stage-filesystem {
    border-left: 1px solid #e9b35e;
    border-radius: 0 0 10px 10px;
    grid-column: auto;
    grid-row: auto;
  }

  h1 {
    font-size: clamp(2.65rem, 13.5vw, 3.7rem);
  }

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

  .button {
    width: 100%;
  }

  .metrics dt {
    font-size: 1rem;
  }

  .metrics dd {
    font-size: 0.65rem;
  }

  .terminal-bar > span:nth-child(2) {
    display: none;
  }

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

  .boundary > div {
    padding: 24px;
  }

  .privilege-card,
  .address-space-card,
  .scheduler-card,
  .syscall-copy,
  .syscall-flow,
  .task-proof {
    padding: 22px;
  }

  .task-addresses,
  .syscall-contract,
  .task-proof {
    grid-template-columns: 1fr;
  }

  .address-branches {
    height: 36px;
    gap: 64px;
  }

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

  .context-strip > i {
    transform: rotate(90deg);
  }

  .task-proof > div:first-child,
  .task-proof > .text-link {
    grid-column: auto;
  }

  .e820-card,
  .idt-practical {
    padding: 22px;
  }

  .e820-range {
    grid-template-columns: 1fr;
  }

  .e820-reserved {
    border-radius: 10px 10px 0 0;
  }

  .e820-usable {
    border-top: 0;
    border-left: 1px solid #487866;
    border-radius: 0 0 10px 10px;
  }

  .address-translation {
    grid-template-columns: 1fr;
  }

  .address-translation > i {
    min-height: 22px;
    transform: rotate(90deg);
  }

  .memory-proof ol,
  .keyboard-trace ol {
    grid-template-columns: 1fr;
  }

  .interrupt-flow-card {
    padding: 12px;
  }

  .interrupt-node {
    padding: 18px;
  }

  .gate-card-heading {
    flex-direction: column;
  }

  .idt-entry-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .idt-entry-layout .small,
  .idt-entry-layout .large,
  .idt-entry-layout .gate-zero {
    grid-column: span 2;
  }

  .vector-space {
    grid-template-columns: 1fr;
  }

  .vector-space > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .event-card {
    padding: 22px;
  }

  .counter-demo {
    align-items: flex-start;
    flex-direction: column;
  }

  .key-translation {
    padding: 14px;
    grid-template-columns: 48px auto minmax(62px, 1fr) auto 48px;
    gap: 8px;
  }

  .key-translation kbd,
  .key-translation strong {
    height: 48px;
  }

  .interrupt-boundary {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .sector-card {
    padding-inline: 16px;
  }

  .byte-explainer {
    padding-inline: 16px;
  }

  .byte-visual {
    grid-template-columns: 1fr;
  }

  .byte-label {
    align-items: baseline;
    justify-content: space-between;
    flex-direction: row;
  }

  .bit-row {
    padding: 8px;
    gap: 3px;
  }

  .bit-row span {
    min-height: 44px;
    font-size: 0.82rem;
  }

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

  .conversion-grid > div {
    min-height: 88px;
  }

  .instruction-bytes p {
    align-items: start;
    padding: 14px;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }

  .instruction-bytes p > span {
    display: none;
  }

  .instruction-bytes p code:nth-of-type(2) {
    grid-row: 2;
    grid-column: 1;
  }

  .instruction-bytes small {
    grid-row: 2;
    grid-column: 2;
  }

  .sector-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .test-command pre {
    font-size: 0.67rem;
  }

  .hex-to-bits {
    grid-template-columns: 1fr;
  }

  .hex-to-bits > i {
    transform: rotate(90deg);
  }

  .decoder-labels {
    grid-template-columns: 1fr;
  }

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

  .binary-file-summary > div + div,
  .binary-file-summary > div:nth-child(3) {
    border-top: 1px solid #334c42;
    border-left: 0;
  }

  .binary-file-summary > div:nth-child(4) {
    border-left: 0;
  }

  .selected-byte-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .glossary-list details > div {
    padding-left: 4px;
  }
}

.c-language-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(215, 146, 56, 0.11), transparent 30%),
    var(--surface);
}

.language-identity {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid #b9d2c7;
  border-radius: var(--radius);
  background: var(--green-pale);
}

.language-identity > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: var(--green);
  font: 700 2rem/1 "Cascadia Code", Consolas, monospace;
}

.language-identity p {
  margin: 0;
  color: var(--green-dark);
}

.c-language-grid,
.c-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.c-language-grid article,
.c-usage-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.c-language-grid article.featured {
  color: var(--white);
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.c-language-grid small,
.c-usage-grid span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.c-language-grid .featured small {
  color: #a8dec9;
}

.c-language-grid h3 {
  margin: 12px 0 8px;
}

.c-language-grid p {
  color: var(--ink-soft);
}

.c-language-grid .featured p {
  color: #d8e9e2;
}

.c-language-grid code {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-pale);
}

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

.c-compile-flow div {
  display: flex;
  min-height: 132px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.c-compile-flow small,
.c-compile-flow span {
  color: var(--ink-soft);
}

.c-compile-flow i {
  align-self: center;
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
}

.c-path-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: var(--amber-pale);
}

.c-memory-map {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid #2e483e;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--night);
}

.c-memory-map > div {
  display: flex;
  min-height: 170px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #416054;
}

.c-memory-map > div:last-child {
  border-right: 0;
}

.c-memory-map .rx {
  background: #1c5b49;
}

.c-memory-map .rw {
  background: #74572e;
}

.c-memory-map .stack {
  background: #263e35;
}

.c-memory-map small,
.c-memory-map span {
  color: #c8d9d2;
}

.c-memory-notes {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.c-memory-notes p {
  display: flex;
  margin: 0;
  padding: 14px 16px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.c-memory-notes span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.c-usage-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.c-usage-grid article {
  min-height: 170px;
}

.c-usage-grid strong {
  display: block;
  margin: 10px 0 6px;
}

.c-usage-grid p {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .c-language-grid,
  .c-usage-grid,
  .c-memory-notes {
    grid-template-columns: 1fr 1fr;
  }

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

  .c-compile-flow i {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .language-identity {
    grid-template-columns: 1fr;
  }

  .c-language-grid,
  .c-usage-grid,
  .c-memory-notes,
  .c-memory-map {
    grid-template-columns: 1fr;
  }

  .c-memory-map > div {
    min-height: 128px;
    border-right: 0;
    border-bottom: 1px solid #416054;
  }
}

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

/* Playground interativo --------------------------------------------------- */

.main-nav .playground-nav-link {
  color: #f8fbf9;
  background: var(--green);
}

.main-nav .playground-nav-link:hover {
  color: #ffffff;
  background: var(--green-dark);
}

.playground-section {
  position: relative;
  overflow: hidden;
  color: #e9f1ed;
  background:
    radial-gradient(circle at 12% 8%, rgba(65, 139, 111, 0.18), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(215, 146, 56, 0.1), transparent 25%),
    #0b1411;
}

.playground-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.09;
  pointer-events: none;
  background-image: radial-gradient(#8db4a4 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.playground-section > .shell {
  position: relative;
  z-index: 1;
}

.playground-heading .kicker {
  color: #82d1b4;
}

.playground-heading .kicker::before {
  background: #82d1b4;
}

.playground-heading h2 {
  color: #f6faf8;
}

.playground-heading > p {
  color: #9db0a8;
}

.playground-app {
  overflow: hidden;
  border: 1px solid #33483f;
  border-radius: 24px;
  background: #101b17;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.32);
}

.playground-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid #33483f;
  background: #15231e;
}

.playground-brand,
.playground-brand > div,
.playground-session {
  display: flex;
  align-items: center;
}

.playground-brand {
  min-width: 0;
  gap: 12px;
}

.playground-brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #0d1814;
  background: #74c9ad;
  border-radius: 9px 9px 3px 9px;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.playground-brand > div {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.2;
}

.playground-brand strong {
  color: #f4f8f6;
  letter-spacing: 0.01em;
}

.playground-brand small {
  margin-top: 4px;
  color: #82968e;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.66rem;
}

.playground-session {
  justify-content: flex-end;
  gap: 10px;
  color: #91a69d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
}

.playground-session > span {
  padding: 7px 10px;
  border: 1px solid #385146;
  border-radius: 999px;
  white-space: nowrap;
}

.playground-session-state {
  color: #9fe0c6;
  background: rgba(43, 108, 83, 0.16);
}

.playground-session-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #63d6a9;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99, 214, 169, 0.75);
}

.playground-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: 258px minmax(0, 1fr);
}

.playground-sidebar {
  display: flex;
  min-width: 0;
  padding: 20px 14px 16px;
  border-right: 1px solid #2d4038;
  background: #111d19;
  flex-direction: column;
}

.playground-sidebar-label {
  margin: 0;
  color: #dbe7e2;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playground-sidebar-hint {
  margin: 6px 4px 16px 0;
  color: #778c83;
  font-size: 0.72rem;
  line-height: 1.5;
}

.playground-tabs {
  display: grid;
  gap: 5px;
}

.playground-tabs button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  padding: 9px;
  color: #8fa39a;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 9px;
}

.playground-tabs button:hover {
  color: #e7f0ec;
  background: #172721;
}

.playground-tabs button.active {
  color: #e9f6f0;
  background: #1a2d26;
  border-color: #3f6556;
  box-shadow: inset 3px 0 #74c9ad;
}

.playground-tab-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #719084;
  background: #0c1713;
  border: 1px solid #30463d;
  border-radius: 8px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
}

.playground-tabs button.active .playground-tab-icon {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
}

.playground-tabs button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.playground-tabs button strong {
  overflow: hidden;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-tabs button small {
  overflow: hidden;
  margin-top: 4px;
  color: #70857c;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-tabs button > i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #102019;
  background: #64cda5;
  border-radius: 50%;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6);
}

.playground-tabs button.completed > i {
  opacity: 1;
  transform: scale(1);
}

.playground-coverage {
  display: grid;
  margin-top: auto;
  padding-top: 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.playground-coverage span {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 8px 5px;
  color: #6f847b;
  background: #0d1814;
  border: 1px solid #283b33;
  border-radius: 8px;
  text-align: center;
  flex-direction: column;
  font-size: 0.56rem;
  line-height: 1.25;
}

.playground-coverage strong {
  color: #b7c9c1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
}

.playground-workbench {
  min-width: 0;
  background:
    linear-gradient(rgba(15, 26, 22, 0.96), rgba(15, 26, 22, 0.96)),
    radial-gradient(#335347 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.playground-workbench-head {
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #2d4038;
}

.playground-workbench-head > div {
  min-width: 0;
}

.playground-workbench-head p {
  margin-bottom: 4px;
  color: #7f958b;
  font-size: 0.76rem;
}

.playground-workbench-head > div > p:first-child {
  color: #78bea4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.playground-workbench-head h3 {
  margin-bottom: 7px;
  color: #f4f8f6;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.playground-reality-badge {
  padding: 7px 10px;
  color: #e4bc78;
  background: rgba(215, 146, 56, 0.08);
  border: 1px solid rgba(215, 146, 56, 0.3);
  border-radius: 999px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
  white-space: nowrap;
}

.playground-panel {
  min-width: 0;
  min-height: 600px;
  padding: 24px;
  outline-offset: -4px;
}

.playground-controls {
  display: grid;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid #2d4038;
  background: #13201b;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}

.playground-controls button {
  min-height: 40px;
  padding: 8px 13px;
  color: #aebfb8;
  background: #172721;
  border: 1px solid #395047;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.playground-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.playground-controls .playground-control-button:first-child {
  justify-self: start;
}

.playground-controls .playground-control-button.primary {
  justify-self: end;
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
}

.playground-reset-button {
  color: #7f958b !important;
  background: transparent !important;
  border-color: transparent !important;
}

.playground-lab-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.play-card {
  min-width: 0;
  padding: 18px;
  color: #bdcbc5;
  background: rgba(21, 35, 30, 0.94);
  border: 1px solid #33483f;
  border-radius: 15px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.play-card h4 {
  margin: 2px 0 0;
  color: #edf4f1;
  font-size: 1.02rem;
  line-height: 1.2;
}

.play-card > small,
.play-card-heading small {
  color: #6f867c;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.play-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.play-card-heading > div {
  min-width: 0;
}

.play-card-heading > span,
.play-card-heading > output {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #84bca6;
  background: #0f1a16;
  border: 1px solid #30463d;
  border-radius: 7px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.6rem;
  white-space: nowrap;
}

.play-explanation {
  margin: 14px 0 0;
  color: #91a59c;
  font-size: 0.73rem;
  line-height: 1.55;
}

.play-reality-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #869a91;
  background: rgba(11, 20, 17, 0.75);
  border-left: 3px solid #d79238;
  border-radius: 0 8px 8px 0;
  font-size: 0.68rem;
}

.play-reality-note strong {
  color: #e1b974;
}

.play-mini-button,
.play-action-button {
  min-height: 36px;
  padding: 7px 11px;
  color: #9ad7c0;
  background: #193127;
  border: 1px solid #3e6d5c;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.play-action-button {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
}

.play-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

/* Sinais */

.signals-lab {
  grid-template-columns: minmax(0, 1.18fr) minmax(230px, 0.82fr);
}

.signal-scope-card {
  grid-column: 1 / -1;
}

.signal-bits {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.signal-bit {
  display: flex;
  min-width: 0;
  aspect-ratio: 0.86;
  align-items: center;
  justify-content: center;
  color: #647a70;
  background: #0d1814;
  border: 1px solid #30463d;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
}

.signal-bit span {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
}

.signal-bit small {
  margin-top: 3px;
  color: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.5rem;
}

.signal-bit.active {
  color: #0d1b15;
  background: #74c9ad;
  border-color: #74c9ad;
  box-shadow: 0 0 18px rgba(116, 201, 173, 0.2);
}

.signal-presets {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-presets button,
.boot-inline-controls button,
.event-controls button,
.scheduler-actions button,
.code-inline-controls button {
  padding: 6px 9px;
  color: #8fa39a;
  background: #0e1a16;
  border: 1px solid #30463d;
  border-radius: 7px;
  cursor: pointer;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.61rem;
}

.signal-values {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signal-values div {
  padding: 10px;
  background: #0d1814;
  border: 1px solid #2c4138;
  border-radius: 9px;
}

.signal-values dt,
.allocation-math dt {
  color: #6f847b;
  font-size: 0.58rem;
}

.signal-values dd,
.allocation-math dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: #dfe9e5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.91rem;
  text-overflow: ellipsis;
}

.signal-scope {
  display: grid;
  min-width: 0;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
}

.signal-voltage {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.signal-voltage > span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.signal-voltage > span.high {
  background: #64d6a8;
  box-shadow: 0 0 16px #64d6a8;
}

.signal-voltage > span.low {
  background: #db6c62;
  box-shadow: 0 0 12px rgba(219, 108, 98, 0.65);
}

.signal-voltage div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.signal-voltage small {
  color: #6f847b;
  font-size: 0.58rem;
}

.signal-voltage strong {
  color: #dbe7e2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
}

.signal-wave {
  display: grid;
  min-width: 0;
  height: 74px;
  align-items: end;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
}

.signal-wave > span {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}

.signal-wave i {
  width: 100%;
  min-height: 5px;
  background: #db6c62;
  border-top: 2px solid #ed8178;
  transition: height 180ms ease;
}

.signal-wave .high i {
  height: 62px;
  background: rgba(100, 214, 168, 0.22);
  border-color: #64d6a8;
}

.signal-wave .low i {
  height: 8px;
}

.signal-wave .current i {
  box-shadow: 0 0 0 2px #e3a443, 0 0 16px rgba(227, 164, 67, 0.5);
}

.signal-wave small {
  position: absolute;
  bottom: -17px;
  color: #647a70;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.5rem;
}

.signal-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  grid-column: 1 / -1;
}

.signal-clock p {
  margin: 0;
  color: #788e84;
  font-size: 0.68rem;
}

.signal-clock strong {
  color: #e3b46b;
  font-family: "Cascadia Code", Consolas, monospace;
}

.signal-scope-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.signal-speed-selector {
  display: flex;
  padding: 3px;
  background: #0a1511;
  border: 1px solid #2d4339;
  border-radius: 9px;
  gap: 3px;
}

.signal-speed-selector button {
  min-height: 30px;
  padding: 5px 9px;
  color: #748a80;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 750;
}

.signal-speed-selector button.active {
  color: #102019;
  background: #74c9ad;
  box-shadow: 0 4px 12px rgba(116, 201, 173, 0.14);
}

.signal-playback-meter {
  display: grid;
  min-width: 0;
  margin-top: 4px;
  padding: 12px;
  background: #0a1511;
  border: 1px solid #2d4339;
  border-radius: 10px;
  grid-column: 1 / -1;
  gap: 10px;
}

.signal-rate-rail {
  position: relative;
  overflow: hidden;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, #193128 0 7%, #0e1d17 7% 8%);
  border: 1px solid #315044;
  border-radius: 999px;
}

.signal-rate-rail i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24%;
  width: 24%;
  background: linear-gradient(90deg, transparent, #74c9ad 60%, #e3a443);
  border-radius: inherit;
}

.signal-rate-rail span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(116, 201, 173, 0.13), transparent);
  opacity: 0;
}

.signal-playback-meter.slow-speed.is-running .signal-rate-rail i {
  animation: signal-rate-sweep 6.8s steps(8, end) infinite;
}

.signal-playback-meter.real-speed.is-running .signal-rate-rail i {
  animation: signal-rate-sweep 160ms linear infinite;
}

.signal-playback-meter.real-speed.is-running .signal-rate-rail span {
  opacity: 1;
}

@keyframes signal-rate-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(520%); }
}

.signal-playback-stats {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.signal-playback-stats > div {
  min-width: 0;
  padding: 8px 9px;
  background: #0e1d17;
  border-radius: 7px;
}

.signal-playback-stats dt {
  color: #667d72;
  font-size: 0.5rem;
  text-transform: uppercase;
}

.signal-playback-stats dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: #dfe9e5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-playback-meter.real-speed .signal-playback-stats dd {
  color: #74c9ad;
}

.signal-playback-meter > p {
  margin: 0;
  color: #73897f;
  font-size: 0.61rem;
  line-height: 1.5;
}

.signal-timing-card {
  grid-column: 1 / -1;
}

.signal-scale-selector {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.signal-scale-selector button {
  min-height: 38px;
  padding: 8px 10px;
  color: #80968c;
  background: #0d1814;
  border: 1px solid #2c4138;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 750;
}

.signal-scale-selector button.active {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
  box-shadow: 0 0 16px rgba(116, 201, 173, 0.16);
}

.signal-timing-readout {
  display: grid;
  margin: 0 0 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.signal-timing-readout > div {
  min-width: 0;
  padding: 11px;
  background: #0d1814;
  border: 1px solid #2c4138;
  border-radius: 9px;
}

.signal-timing-readout dt {
  color: #6f847b;
  font-size: 0.56rem;
  text-transform: uppercase;
}

.signal-timing-readout dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: #dfe9e5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.uart-frame-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 20px 0 9px;
  gap: 16px;
}

.uart-frame-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.uart-frame-heading small {
  color: #74c9ad;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uart-frame-heading strong {
  color: #e1ebe7;
  font-size: 0.78rem;
}

.uart-frame-heading code {
  color: #96ada3;
  font-size: 0.6rem;
  white-space: nowrap;
}

.uart-frame {
  overflow-x: auto;
  max-width: 100%;
  padding: 8px;
  background: #0a1511;
  border: 1px solid #2d4339;
  border-radius: 10px;
  scrollbar-color: #416458 #0a1511;
}

.uart-frame-track {
  display: grid;
  min-width: 560px;
  grid-template-columns: repeat(10, minmax(46px, 1fr));
  gap: 4px;
}

.uart-frame-cell {
  display: grid;
  min-height: 58px;
  padding: 7px 5px;
  place-content: center;
  text-align: center;
  background: #11211a;
  border: 1px solid #30483e;
  border-radius: 7px;
}

.uart-frame-cell small {
  color: #70877d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.5rem;
}

.uart-frame-cell strong {
  color: #dce7e2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
}

.uart-frame-cell.start {
  background: rgba(217, 108, 95, 0.13);
  border-color: #8b5149;
}

.uart-frame-cell.stop {
  background: rgba(116, 201, 173, 0.13);
  border-color: #4f806d;
}

.uart-frame-cell.data.high {
  background: rgba(116, 201, 173, 0.18);
  border-color: #5a907b;
}

.uart-frame-cell.data.low strong {
  color: #db8178;
}

.uart-order-note {
  margin: 7px 0 0;
  color: #758b81;
  font-size: 0.64rem;
}

.uart-order-note strong,
.uart-order-note code {
  color: #e2b269;
}

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

.signal-transport-grid article {
  min-width: 0;
  padding: 13px;
  background: #0d1814;
  border: 1px solid #2c4138;
  border-radius: 9px;
}

.signal-transport-grid small {
  display: block;
  color: #74c9ad;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 750;
  text-transform: uppercase;
}

.signal-transport-grid strong {
  display: block;
  margin-top: 3px;
  color: #e0eae6;
  font-size: 0.72rem;
}

.signal-transport-grid p {
  margin: 6px 0 0;
  color: #788e84;
  font-size: 0.62rem;
  line-height: 1.5;
}

/* Boot */

.boot-timeline {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.boot-timeline button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: #63796f;
  background: #101c17;
  border: 1px solid #2e433a;
  border-radius: 9px;
  cursor: pointer;
  flex-direction: column;
}

.boot-timeline button::after {
  position: absolute;
  right: -6px;
  z-index: 2;
  width: 7px;
  height: 1px;
  content: "";
  background: #3b5449;
}

.boot-timeline button:last-child::after {
  display: none;
}

.boot-timeline button.active {
  color: #0e1915;
  background: #74c9ad;
  border-color: #74c9ad;
}

.boot-timeline button.visited:not(.active) {
  color: #9dc7b7;
  background: #172821;
}

.boot-timeline span {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.boot-timeline small {
  color: inherit;
  font-size: 0.51rem;
}

.boot-stage-grid {
  grid-template-columns: 190px minmax(0, 1fr);
}

.boot-actor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.boot-actor-card h4 {
  margin-top: 5px;
}

.boot-actor-card p {
  margin: 5px 0 0;
  color: #73887f;
  font-size: 0.68rem;
}

.boot-mode-orbit {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid #477363;
  border-radius: 50%;
}

.boot-mode-orbit::before,
.boot-mode-orbit::after {
  position: absolute;
  content: "";
  border: 1px dashed #35574a;
  border-radius: 50%;
  inset: 9px;
}

.boot-mode-orbit::after {
  inset: 20px;
}

.boot-mode-orbit > span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  color: #0e1915;
  background: #74c9ad;
  border-radius: 50%;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(116, 201, 173, 0.25);
}

.boot-mode-orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #e2a752;
  border-radius: 50%;
}

.boot-mode-orbit i:nth-of-type(1) { top: 6px; left: 48px; }
.boot-mode-orbit i:nth-of-type(2) { right: 14px; bottom: 19px; }
.boot-mode-orbit i:nth-of-type(3) { bottom: 15px; left: 18px; }

.boot-route {
  display: grid;
  align-items: stretch;
  margin-bottom: 12px;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
}

.boot-route div {
  display: flex;
  min-width: 0;
  min-height: 70px;
  justify-content: center;
  padding: 11px;
  background: #0e1915;
  border: 1px solid #30463d;
  border-radius: 9px;
  flex-direction: column;
}

.boot-route div:last-child {
  border-color: #477363;
  background: #14271f;
}

.boot-route small {
  color: #698077;
  font-size: 0.56rem;
}

.boot-route strong {
  overflow: hidden;
  color: #d9e5e0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

.boot-route > span {
  display: grid;
  place-items: center;
  color: #6e9c89;
}

.boot-checks {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.boot-checks span {
  padding: 5px 7px;
  color: #859b91;
  background: #0e1915;
  border: 1px solid #2e433a;
  border-radius: 7px;
  font-size: 0.6rem;
}

.boot-checks i {
  margin-right: 5px;
  color: #64cda5;
  font-style: normal;
}

.boot-register-card {
  grid-column: 1 / -1;
}

.boot-mode-registers {
  display: grid;
  margin-top: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.boot-mode-registers span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #677c73;
  background: #0e1915;
  border: 1px solid #2e433a;
  border-radius: 8px;
  gap: 8px;
}

.boot-mode-registers span.on {
  color: #a8dcc9;
  border-color: #416b5b;
  box-shadow: inset 2px 0 #64cda5;
}

.boot-mode-registers i {
  overflow: hidden;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
  font-style: normal;
  text-overflow: ellipsis;
}

.boot-mode-registers strong {
  color: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
}

.boot-inline-controls,
.code-inline-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.boot-inline-controls button:disabled,
.code-inline-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* Disco e RAM */

.memory-lab {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.memory-control-card {
  grid-row: span 2;
}

.memory-control-card input[type="range"] {
  width: 100%;
  height: 7px;
  margin: 5px 0 18px;
  accent-color: #74c9ad;
}

.memory-profile-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.memory-profile-control button {
  display: flex;
  min-width: 0;
  padding: 10px;
  color: #71867d;
  text-align: left;
  background: #0e1915;
  border: 1px solid #2f443b;
  border-radius: 9px;
  cursor: pointer;
  flex-direction: column;
}

.memory-profile-control button.active {
  color: #b8dfd0;
  background: #172b23;
  border-color: #4c806c;
  box-shadow: inset 3px 0 #74c9ad;
}

.memory-profile-control strong {
  color: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
}

.memory-profile-control small {
  margin-top: 3px;
  color: #6d8279;
  font-size: 0.58rem;
}

.memory-profile-stats {
  display: grid;
  margin: 14px 0 0;
  gap: 5px;
}

.memory-profile-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #283b33;
  gap: 15px;
}

.memory-profile-stats dt {
  color: #70867c;
  font-size: 0.64rem;
}

.memory-profile-stats dd {
  margin: 0;
  color: #b9cbc3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.65rem;
}

.allocation-track {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  gap: 5px;
}

.allocation-track > span:not(.allocation-more) {
  position: relative;
  display: grid;
  min-width: 22px;
  flex: 1 1 0;
  overflow: hidden;
  place-items: center;
  color: #d9e7e1;
  background: #0c1713;
  border: 1px solid #456e5e;
  border-radius: 7px;
}

.allocation-track > span:not(.allocation-more) i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--fill);
  background: rgba(95, 194, 155, 0.46);
}

.ram-track > span:not(.allocation-more) {
  border-color: #75614b;
}

.ram-track > span:not(.allocation-more) i {
  background: rgba(215, 146, 56, 0.42);
}

.allocation-track small {
  position: relative;
  z-index: 1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.54rem;
}

.allocation-more {
  display: grid;
  min-width: 38px;
  place-items: center;
  color: #7d9389;
  background: #0e1915;
  border-radius: 7px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
}

.allocation-math {
  display: grid;
  margin: 13px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.allocation-math div {
  min-width: 0;
  padding: 7px;
  background: #0e1915;
  border-radius: 7px;
}

.allocation-math dd {
  font-size: 0.65rem;
}

/* Eventos e IDT */

.event-selector {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.event-selector button {
  display: grid;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  padding: 9px 11px;
  color: #758b81;
  text-align: left;
  background: #111e19;
  border: 1px solid #30463d;
  border-radius: 10px;
  cursor: pointer;
  grid-template-columns: 35px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
}

.event-selector button.active {
  color: #bce2d3;
  background: #193026;
  border-color: #4c806c;
}

.event-selector button > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #9dc9b8;
  background: #0d1814;
  border-radius: 8px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 800;
  grid-row: 1 / 3;
}

.event-selector strong {
  font-size: 0.73rem;
}

.event-selector small {
  color: #6f847b;
  font-size: 0.57rem;
}

.event-keyboard-capture {
  position: relative;
  display: grid;
  margin-bottom: 14px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29, 58, 47, 0.96), rgba(12, 27, 21, 0.98)),
    radial-gradient(circle at 88% 20%, rgba(116, 201, 173, 0.16), transparent 34%);
  border: 1px solid #4b7967;
  border-radius: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
  gap: 12px;
}

.event-keyboard-capture::before {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(116, 201, 173, 0.14);
  border-radius: 50%;
  inset: -105px -85px auto auto;
}

.event-keyboard-capture.key-received {
  animation: event-keyboard-received 420ms ease-out;
}

.event-keyboard-intro {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.event-keyboard-intro small {
  color: #73b79d;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-keyboard-intro h4 {
  margin: 4px 0 0;
  color: #d8eee5;
  font-size: 0.83rem;
}

.event-keyboard-intro p {
  max-width: 570px;
  margin: 5px 0 0;
  color: #87a297;
  font-size: 0.61rem;
  line-height: 1.45;
}

.event-keyboard-intro kbd {
  display: grid;
  min-width: 66px;
  height: 60px;
  padding: 0 10px;
  overflow: hidden;
  place-items: center;
  color: #102019;
  background: #82d4b7;
  border: 0;
  border-bottom: 5px solid #3f8069;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(4, 14, 10, 0.28);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-keyboard-capture.key-received kbd {
  animation: event-key-press 260ms ease-out;
}

.event-keyboard-input {
  display: flex;
  min-width: 0;
  justify-content: center;
  padding: 10px;
  color: #89a398;
  background: rgba(7, 18, 14, 0.58);
  border: 1px solid #345548;
  border-radius: 9px;
  flex-direction: column;
  gap: 6px;
}

.event-keyboard-input span {
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-keyboard-input input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: #d9eee6;
  background: #09150f;
  border: 1px solid #416a59;
  border-radius: 7px;
  outline: none;
  font: 650 0.67rem/1.2 "Cascadia Code", Consolas, monospace;
}

.event-keyboard-input input::placeholder {
  color: #617a6f;
  opacity: 1;
}

.event-keyboard-input input:focus {
  border-color: #82d4b7;
  box-shadow: 0 0 0 3px rgba(130, 212, 183, 0.14);
}

.event-keyboard-readout {
  display: grid;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 137, 118, 0.34);
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.event-keyboard-readout div {
  display: flex;
  min-width: 0;
  padding: 8px 9px;
  background: rgba(7, 18, 14, 0.54);
  border-radius: 7px;
  flex-direction: column;
  gap: 3px;
}

.event-keyboard-readout dt {
  color: #638074;
  font-size: 0.49rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-keyboard-readout dd {
  margin: 0;
  overflow: hidden;
  color: #a9dbc8;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-keyboard-feedback {
  margin: 0;
  color: #7f9b90;
  font-size: 0.58rem;
  line-height: 1.4;
  grid-column: 1 / -1;
}

@keyframes event-keyboard-received {
  0% { border-color: #b8f2dd; box-shadow: 0 0 0 rgba(116, 201, 173, 0); }
  45% { box-shadow: 0 0 28px rgba(116, 201, 173, 0.22); }
  100% { border-color: #4b7967; box-shadow: 0 0 0 rgba(116, 201, 173, 0); }
}

@keyframes event-key-press {
  0% { transform: translateY(0); border-bottom-width: 5px; }
  48% { transform: translateY(4px); border-bottom-width: 1px; }
  100% { transform: translateY(0); border-bottom-width: 5px; }
}

.event-grid-lab {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
}

.event-trace {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 5px;
}

.event-trace li {
  display: grid;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  padding: 7px 9px;
  color: #647a70;
  background: #0e1915;
  border: 1px solid #293d34;
  border-radius: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
}

.event-trace li.visited {
  color: #86aa9b;
}

.event-trace li.active {
  color: #c5e8da;
  background: #193027;
  border-color: #4c806c;
  box-shadow: inset 3px 0 #74c9ad;
}

.event-trace li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: inherit;
  background: #14231d;
  border: 1px solid #344c41;
  border-radius: 50%;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
}

.event-trace li div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-trace strong {
  font-size: 0.7rem;
}

.event-trace small {
  color: #6f847b;
  font-size: 0.59rem;
  line-height: 1.35;
}

.event-controls {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
}

.event-controls .play-action-button {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
  font-family: inherit;
}

.idt-equation,
.lba-equation {
  display: grid;
  align-items: center;
  margin-top: 15px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr);
  gap: 5px;
}

.idt-equation > span,
.lba-equation > span {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #8da098;
  background: #0d1814;
  border: 1px solid #2d4239;
  border-radius: 8px;
  text-align: center;
  flex-direction: column;
}

.idt-equation > span.result,
.lba-equation > span.result {
  color: #9ed9c2;
  background: #172b23;
  border-color: #477664;
}

.idt-equation i,
.lba-equation small {
  color: #6a8076;
  font-size: 0.52rem;
  font-style: normal;
}

.idt-equation strong,
.lba-equation strong {
  color: inherit;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
}

.idt-equation > b,
.lba-equation > b {
  color: #657b71;
  font-size: 0.72rem;
}

.idt-table-visual {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.idt-table-visual span {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: #52675e;
  background: #0d1814;
  border: 1px solid #283b33;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.55rem;
}

.idt-table-visual span.active {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
  box-shadow: 0 0 15px rgba(116, 201, 173, 0.22);
}

/* Rings e tarefas */

.tasks-lab {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
}

.focus-card {
  grid-column: 1 / -1;
}

.ring-visual {
  position: relative;
  display: grid;
  width: 178px;
  height: 178px;
  margin: 22px auto 10px;
  place-items: center;
}

.play-ring-three {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #79c6aa;
  border: 2px dashed #57947e;
  border-radius: 50%;
  inset: 0;
}

.play-ring-three span {
  padding: 2px 6px;
  background: #15231e;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.56rem;
  transform: translateY(-7px);
}

.play-ring-zero {
  position: relative;
  z-index: 2;
  display: flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  color: #2d1713;
  background: #d96c5f;
  border-radius: 50%;
  flex-direction: column;
  box-shadow: 0 0 25px rgba(217, 108, 95, 0.24);
}

.play-ring-zero strong {
  font-size: 0.78rem;
}

.play-ring-zero small {
  font-size: 0.55rem;
}

.ring-visual > i {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: 17px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #16231e;
  background: #e3a443;
  border: 3px solid #15231e;
  border-radius: 50%;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.task-cpu-line {
  display: grid;
  align-items: center;
  margin-bottom: 9px;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
}

.task-cpu-line span {
  height: 1px;
  background: #355045;
}

.task-cpu-line strong {
  padding: 5px 8px;
  color: #102019;
  background: #74c9ad;
  border-radius: 999px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
}

.task-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.task-cards article {
  display: flex;
  min-width: 0;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  padding: 10px 7px;
  color: #61766d;
  background: #0d1814;
  border: 1px solid #2b4037;
  border-radius: 9px;
  text-align: center;
  flex-direction: column;
}

.task-cards article.running {
  color: #c4e7d9;
  background: #192e25;
  border-color: #5a957e;
  box-shadow: 0 0 18px rgba(116, 201, 173, 0.12);
}

.task-cards article.focused {
  outline: 2px solid #d79238;
  outline-offset: -4px;
}

.task-cards article > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  place-items: center;
  color: #102019;
  border-radius: 50%;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.task-cards article > span.cyan { background: #74c9ad; }
.task-cards article > span.violet { background: #a99be5; }
.task-cards article > span.amber { background: #e3a443; }

.task-cards strong {
  font-size: 0.66rem;
}

.task-cards small {
  overflow: hidden;
  width: 100%;
  margin-top: 3px;
  color: #63786f;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-cards i {
  margin-top: 7px;
  color: inherit;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.scheduler-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.scheduler-actions p {
  margin: 0;
  color: #6d8279;
  font-size: 0.59rem;
  text-align: right;
}

.scheduler-actions strong {
  color: #abc9bd;
  font-family: "Cascadia Code", Consolas, monospace;
}

.focus-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.focus-buttons button {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 8px;
  color: #6f847b;
  background: #0e1915;
  border: 1px solid #2d4239;
  border-radius: 8px;
  cursor: pointer;
  gap: 7px;
}

.focus-buttons button.active {
  color: #e2c28c;
  background: #2b271c;
  border-color: #806138;
}

.focus-buttons strong {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
  background: #15231e;
  border-radius: 6px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
}

.focus-buttons span {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-card > p {
  margin: 10px 0;
  color: #748980;
  font-size: 0.65rem;
}

.focus-card > p strong {
  color: #c2d5cd;
}

.syscall-picker {
  display: grid;
  align-items: center;
  margin-top: 10px;
  color: #758a81;
  font-size: 0.61rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.syscall-picker select {
  min-width: 0;
  padding: 8px 9px;
  color: #b6c8c0;
  background: #0e1915;
  border: 1px solid #344b41;
  border-radius: 8px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
}

.focus-card > .play-action-button {
  width: 100%;
  margin-top: 8px;
}

.task-syscall-message {
  min-height: 38px;
  padding: 9px;
  color: #91b7a8 !important;
  background: #0e1915;
  border-radius: 7px;
  font-family: "Cascadia Code", Consolas, monospace;
  line-height: 1.4;
}

/* Arquivos */

.image-map-card {
  margin-bottom: 14px;
}

.image-map {
  display: flex;
  min-width: 0;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid #354c42;
  border-radius: 10px;
}

.image-map > span {
  display: flex;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  color: #14211c;
  flex-basis: calc(var(--sectors) * 1%);
  flex-grow: var(--sectors);
  flex-direction: column;
  text-align: center;
}

.image-map > span + span {
  border-left: 2px solid #102019;
}

.image-map .stage1 { background: #e6b563; }
.image-map .stage2 { background: #93bda9; }
.image-map .kernel { background: #65ad93; }
.image-map .filesystem { background: #3f8069; color: #eef7f3; }

.image-map strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
}

.image-map small {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.52rem;
  font-weight: 750;
  text-overflow: ellipsis;
}

.image-map-legend {
  display: grid;
  margin-top: 5px;
  color: #667c72;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.52rem;
  grid-template-columns: 1fr 5fr 32fr 77fr;
  gap: 2px;
}

.image-map-legend span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.files-grid {
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
}

.directory-list {
  display: grid;
  gap: 5px;
}

.directory-list button {
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 7px 8px;
  color: #71867d;
  text-align: left;
  background: #0e1915;
  border: 1px solid #293d34;
  border-radius: 8px;
  cursor: pointer;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
}

.directory-list button.active {
  color: #b9e1d1;
  background: #172c23;
  border-color: #477664;
  box-shadow: inset 3px 0 #74c9ad;
}

.directory-list button > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #8cb8a7;
  background: #14231d;
  border-radius: 6px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 800;
}

.directory-list button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.directory-list strong {
  overflow: hidden;
  font-size: 0.65rem;
  text-overflow: ellipsis;
}

.directory-list small {
  color: #657b71;
  font-size: 0.53rem;
}

.directory-list i {
  color: #83978e;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.52rem;
  font-style: normal;
}

.file-route {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr) 17px minmax(0, 1fr) 17px minmax(0, 1fr);
}

.file-route > div {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  color: #778c83;
  background: #0e1915;
  border: 1px solid #2d4239;
  border-radius: 8px;
  text-align: center;
  flex-direction: column;
}

.file-route > i {
  display: grid;
  place-items: center;
  color: #688278;
  font-style: normal;
}

.file-route span {
  color: #588874;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.48rem;
}

.file-route strong {
  color: #b9cbc3;
  font-size: 0.61rem;
}

.file-route small {
  color: #667c72;
  font-size: 0.5rem;
  line-height: 1.3;
}

.lba-equation {
  margin-top: 13px;
}

.file-warning {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #d5a49d;
  background: rgba(114, 45, 39, 0.22);
  border: 1px solid rgba(219, 108, 98, 0.35);
  border-radius: 8px;
  font-size: 0.62rem;
}

/* C e ELF */

.code-candidate-selector {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.code-candidate-selector button {
  display: flex;
  min-width: 0;
  padding: 9px 11px;
  color: #71867d;
  text-align: left;
  background: #111e19;
  border: 1px solid #30463d;
  border-radius: 9px;
  cursor: pointer;
  flex-direction: column;
}

.code-candidate-selector button.active {
  color: #b9dfd0;
  background: #193027;
  border-color: #4b7f6b;
}

.code-candidate-selector button.active.warning {
  color: #e1aaa2;
  background: rgba(102, 42, 37, 0.24);
  border-color: #87544d;
}

.code-candidate-selector strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
}

.code-candidate-selector small {
  color: #687d74;
  font-size: 0.55rem;
}

.code-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.code-pipeline button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  color: #63786f;
  background: #0e1915;
  border: 1px solid #2b4037;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  flex-direction: column;
}

.code-pipeline button.active {
  color: #c3e8d9;
  background: #193027;
  border-color: #4e826e;
  box-shadow: inset 0 -3px #74c9ad;
}

.code-pipeline button.visited:not(.active) {
  color: #87a79a;
  background: #14231d;
}

.code-pipeline span {
  display: grid;
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  place-items: center;
  color: inherit;
  background: #15251f;
  border-radius: 50%;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.49rem;
}

.code-pipeline small {
  color: #61776d;
  font-size: 0.48rem;
}

.code-pipeline strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.59rem;
  text-overflow: ellipsis;
}

.code-stage-detail {
  display: grid;
  min-height: 112px;
  align-items: center;
  margin-top: 11px;
  padding: 15px;
  color: #90a69c;
  background: #0e1915;
  border: 1px solid #2f453b;
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 15px;
}

.code-stage-detail.rejected {
  color: #ce9992;
  background: rgba(94, 39, 35, 0.22);
  border-color: #754942;
}

.code-stage-detail small {
  color: #719084;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.54rem;
}

.code-stage-detail h4 {
  margin: 3px 0 5px;
}

.code-stage-detail p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.5;
}

.code-stage-detail > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #102019;
  background: #74c9ad;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
}

.code-stage-detail.rejected > span {
  color: #2a1512;
  background: #db6c62;
}

.code-inline-controls .play-action-button {
  color: #102019;
  background: #74c9ad;
  border-color: #74c9ad;
  font-family: inherit;
}

.elf-memory-grid {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
}

.elf-segments {
  display: grid;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid #334b40;
  border-radius: 9px;
  grid-template-columns: 2fr 1fr 1fr;
}

.elf-segments > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 9px;
  text-align: center;
  flex-direction: column;
}

.elf-segments > div + div {
  border-left: 1px solid #334b40;
}

.elf-segments .rx { background: rgba(73, 142, 115, 0.25); }
.elf-segments .rw { background: rgba(215, 146, 56, 0.16); }
.elf-segments .stack { background: rgba(150, 123, 194, 0.17); }

.elf-segments span {
  padding: 3px 5px;
  color: #c6ded4;
  background: #0e1915;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.49rem;
}

.elf-segments strong {
  margin-top: 5px;
  color: #bccdc6;
  font-size: 0.58rem;
}

.elf-segments small {
  color: #71867d;
  font-size: 0.5rem;
}

.wx-card {
  text-align: center;
}

.wx-rule {
  display: grid;
  align-items: center;
  justify-content: center;
  margin: 14px auto;
  grid-template-columns: 48px auto 48px;
  gap: 8px;
}

.wx-rule span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #102019;
  background: #74c9ad;
  border-radius: 10px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 1rem;
  font-weight: 900;
}

.wx-rule span:last-of-type {
  background: #e3a443;
}

.wx-rule b {
  color: #778c83;
  font-size: 0.6rem;
}

.wx-rule i {
  color: #d9958c;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 750;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

/* Tela, aplicativos e monitor */

.app-facts {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.app-facts > span {
  display: flex;
  min-width: 0;
  padding: 8px 10px;
  color: #72877e;
  background: #111e19;
  border: 1px solid #30463d;
  border-radius: 8px;
  flex-direction: column;
}

.app-facts small {
  font-size: 0.53rem;
  text-transform: uppercase;
}

.app-facts strong {
  overflow: hidden;
  color: #b7cbc2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soia-desktop-simulator {
  overflow: hidden;
  background: #07100d;
  border: 6px solid #263b32;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.soia-sim-topbar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  color: #d9e6e0;
  background: #17231f;
  font-size: 0.58rem;
}

.soia-sim-topbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.soia-sim-topbar span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #14211c;
  background: #74c9ad;
  border-radius: 5px;
  font-family: Georgia, serif;
  font-weight: 900;
}

.soia-sim-topbar small {
  color: #70867c;
  font-family: "Cascadia Code", Consolas, monospace;
}

.soia-sim-desktop {
  display: grid;
  min-height: 360px;
  padding: 24px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(17, 42, 33, 0.96), rgba(8, 22, 17, 0.98)),
    radial-gradient(#74c9ad 0.7px, transparent 0.7px);
  background-size: auto, 18px 18px;
}

.soia-app-window {
  width: min(100%, 630px);
  min-height: 265px;
  overflow: hidden;
  color: #17221e;
  background: #e9e5da;
  border: 1px solid #719085;
  border-radius: 8px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.24);
}

.soia-window-title {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  color: #e6f1ec;
  background: #2f7d68;
  font-size: 0.61rem;
}

.soia-window-title small {
  color: #c0d8cf;
  font-family: "Cascadia Code", Consolas, monospace;
}

.terminal-window {
  color: #d9e5df;
  background: #0a0f0d;
}

.terminal-window pre {
  min-height: 178px;
  margin: 0;
  padding: 15px;
  overflow: auto;
  color: #d9e5df;
  font-size: 0.66rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.terminal-window pre span {
  color: #74c9ad;
}

.terminal-window pre i {
  color: #e3a443;
  font-style: normal;
}

.terminal-command-buttons {
  display: flex;
  padding: 8px;
  overflow-x: auto;
  border-top: 1px solid #2d3c36;
  gap: 5px;
}

.terminal-command-buttons button {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #81958d;
  background: #14201c;
  border: 1px solid #31463d;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.52rem;
}

.terminal-command-buttons button.active {
  color: #17211d;
  background: #74c9ad;
  border-color: #74c9ad;
}

.notepad-window textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 14px;
  color: #1d2925;
  background: #f0ede4;
  border: 0;
  outline-offset: -4px;
  resize: vertical;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.notepad-window > p {
  margin: 0;
  padding: 7px 10px;
  color: #596a63;
  background: #dcd8ce;
  font-size: 0.55rem;
}

.monitor-window {
  color: #dce8e3;
  background: #09110e;
}

.monitor-metrics {
  display: grid;
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.monitor-metrics > div {
  display: grid;
  min-width: 0;
  padding: 9px;
  background: #111c18;
  border: 1px solid #2a3e35;
  border-radius: 7px;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
}

.monitor-metrics span {
  color: #789086;
  font-size: 0.57rem;
}

.monitor-metrics strong {
  color: #d8e6e0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.62rem;
}

.monitor-metrics i {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: #26382f;
  border-radius: 999px;
  grid-column: 1 / -1;
}

.monitor-metrics i::after {
  display: block;
  width: var(--value);
  height: 100%;
  content: "";
  background: #74c9ad;
  border-radius: inherit;
}

.monitor-metrics small {
  color: #556a61;
  font-size: 0.48rem;
  grid-column: 1 / -1;
}

.monitor-window > button {
  display: block;
  margin: 0 auto 12px;
  padding: 6px 9px;
  color: #14211c;
  background: #e3a443;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.57rem;
  font-weight: 800;
}

.soia-app-switcher {
  display: grid;
  padding: 7px;
  background: #111d19;
  border-top: 1px solid #2c4037;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.soia-app-switcher button {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 7px;
  color: #72877e;
  background: #0c1612;
  border: 1px solid #2b4037;
  border-radius: 7px;
  cursor: pointer;
  gap: 6px;
}

.soia-app-switcher button.active {
  color: #dce9e3;
  background: #1c3329;
  border-color: #4a7d69;
}

.soia-app-switcher span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #14211c;
  background: #74c9ad;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 900;
}

.soia-app-switcher strong {
  overflow: hidden;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-explanation-grid {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apps-explanation-grid .play-card {
  padding: 14px;
}

.apps-explanation-grid h4 {
  margin: 4px 0 7px;
  font-size: 0.86rem;
}

.apps-explanation-grid p {
  margin: 0;
  color: #7d9188;
  font-size: 0.62rem;
  line-height: 1.5;
}

.network-lab,
.network-route-card {
  min-width: 0;
}

.network-route-card {
  margin-top: 12px;
}

.network-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.network-pipeline button,
.network-pipeline > div {
  display: grid;
  min-width: 0;
  min-height: 74px;
  padding: 9px;
  color: #748b81;
  text-align: left;
  background: #0d1814;
  border: 1px solid #2b4037;
  border-radius: 9px;
  cursor: pointer;
  gap: 3px;
}

.network-pipeline button:hover,
.network-pipeline button.visited,
.network-pipeline > div.visited {
  border-color: #487363;
}

.network-pipeline button.active,
.network-pipeline > div.active {
  color: #dceae4;
  background: #18372d;
  border-color: #74c9ad;
  box-shadow: inset 0 0 0 1px rgba(116, 201, 173, 0.22);
}

.network-pipeline button > span,
.network-pipeline > div > span {
  color: #74c9ad;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
}

.network-pipeline button > small,
.network-pipeline > div > small {
  overflow: hidden;
  font-size: 0.53rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-pipeline button > strong,
.network-pipeline > div > strong {
  overflow: hidden;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-stage-detail {
  min-height: 116px;
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(18, 45, 36, 0.95), rgba(12, 25, 20, 0.96));
  border: 1px solid #35584b;
  border-radius: 11px;
}

.network-stage-detail > small {
  color: #74c9ad;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-stage-detail h4 {
  margin: 5px 0 8px;
}

.network-stage-detail p {
  margin: 0;
  color: #9cb0a7;
  font-size: 0.7rem;
  line-height: 1.55;
}

.persistence-lab textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  margin: 12px 0;
  padding: 14px;
  color: #dce8e3;
  background: #09110e;
  border: 1px solid #31463d;
  border-radius: 8px;
  resize: vertical;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.persistence-lab textarea:disabled {
  color: #a9bbb3;
  opacity: 1;
}

.persistence-proof {
  margin-top: 16px;
  padding: 12px;
  color: #b7c8c0;
  background: #0d1814;
  border-left: 3px solid #74c9ad;
}

.network-explanation-grid {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.network-explanation-grid .play-card {
  padding: 14px;
}

.network-explanation-grid h4 {
  margin: 4px 0 7px;
  font-size: 0.84rem;
}

.network-explanation-grid p {
  margin: 0;
  color: #7d9188;
  font-size: 0.62rem;
  line-height: 1.5;
}

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

.playground-truth-grid article {
  display: grid;
  min-width: 0;
  padding: 14px;
  color: #80958c;
  background: rgba(20, 34, 29, 0.7);
  border: 1px solid #2d4038;
  border-radius: 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.playground-truth-grid article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #9bd1bd;
  background: #172721;
  border-radius: 8px;
}

.playground-truth-grid strong {
  color: #c8d8d1;
  font-size: 0.7rem;
}

.playground-truth-grid p {
  margin: 2px 0 0;
  font-size: 0.62rem;
  line-height: 1.5;
}

.playground-noscript {
  margin-top: 12px;
  padding: 12px;
  color: #d9b879;
  background: #2b2519;
  border: 1px solid #66502d;
  border-radius: 9px;
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding-inline: 8px;
    font-size: 0.8rem;
  }

  .playground-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .playground-sidebar {
    padding-inline: 10px;
  }

  .playground-panel {
    padding: 18px;
  }

  .file-route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .file-route > i {
    display: none;
  }
}

@media (max-width: 760px) {
  .main-nav .playground-nav-link {
    color: #f8fbf9;
    background: var(--green);
  }

  .playground-section {
    padding-block: 74px;
  }

  .playground-topbar {
    min-height: 64px;
    padding: 11px 12px;
  }

  .playground-session-state {
    display: none;
  }

  .playground-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .playground-sidebar {
    padding: 13px 12px 12px;
    border-right: 0;
    border-bottom: 1px solid #2d4038;
  }

  .playground-sidebar > div:first-child {
    display: none;
  }

  .playground-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .playground-tabs button {
    min-height: 54px;
    padding: 7px;
    grid-template-columns: 29px minmax(0, 1fr) 15px;
    gap: 6px;
  }

  .playground-tab-icon {
    width: 28px;
    height: 28px;
  }

  .playground-tabs button strong {
    font-size: 0.67rem;
  }

  .playground-tabs button small {
    font-size: 0.55rem;
  }

  .playground-coverage {
    display: none;
  }

  .playground-workbench-head {
    min-height: 0;
    padding: 18px 16px 14px;
  }

  .playground-reality-badge {
    display: none;
  }

  .playground-panel {
    min-height: 0;
    padding: 14px;
  }

  .playground-controls {
    padding: 10px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playground-controls .playground-control-button {
    width: 100%;
    justify-self: stretch !important;
  }

  .playground-reset-button {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .playground-lab-grid,
  .signals-lab,
  .boot-stage-grid,
  .memory-lab,
  .event-grid-lab,
  .tasks-lab,
  .files-grid,
  .elf-memory-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .network-pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-scope-card,
  .boot-register-card,
  .focus-card,
  .memory-control-card {
    grid-column: auto;
    grid-row: auto;
  }

  .signal-bit {
    min-height: 51px;
    aspect-ratio: auto;
  }

  .signal-scope {
    grid-template-columns: minmax(0, 1fr);
  }

  .signal-clock {
    grid-column: auto;
  }

  .signal-scope-actions {
    align-items: stretch;
  }

  .signal-scale-selector,
  .signal-timing-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uart-frame-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .uart-frame-heading code {
    white-space: normal;
  }

  .signal-transport-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .boot-timeline,
  .code-pipeline {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(74px, 1fr));
  }

  .boot-actor-card {
    min-height: 215px;
  }

  .memory-control-card {
    order: -1;
  }

  .event-keyboard-capture {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-keyboard-readout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .task-cards article {
    min-height: 106px;
  }

  .image-map > span {
    min-width: 28px;
  }

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

  .soia-sim-desktop {
    min-height: 330px;
    padding: 14px;
  }

  .apps-explanation-grid,
  .playground-truth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .signal-scope-actions {
    width: 100%;
    flex-direction: column;
  }

  .signal-speed-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-speed-selector + .play-mini-button {
    width: 100%;
  }

  .signal-playback-stats dd {
    font-size: 0.59rem;
  }

  .uart-frame-track {
    min-width: 0;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 2px;
  }

  .uart-frame-cell {
    min-height: 49px;
    padding: 4px 1px;
  }

  .uart-frame-cell small {
    font-size: 0.42rem;
  }

  .uart-frame-cell strong {
    font-size: 0.74rem;
  }

  .playground-heading h2 {
    font-size: 2.15rem;
  }

  .playground-app {
    margin-inline: -2px;
    border-radius: 17px;
  }

  .playground-brand small {
    display: none;
  }

  .playground-session > span {
    padding: 6px 8px;
    font-size: 0.57rem;
  }

  .playground-workbench-head h3 {
    font-size: 1.4rem;
  }

  .play-card {
    padding: 14px;
  }

  .play-card-heading {
    gap: 8px;
  }

  .play-card-heading > span {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .signal-bits {
    gap: 4px;
  }

  .signal-bit {
    min-height: 47px;
    border-radius: 7px;
  }

  .signal-bit span {
    font-size: 0.9rem;
  }

  .signal-clock,
  .scheduler-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduler-actions p {
    text-align: left;
  }

  .boot-route {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .boot-route > span {
    transform: rotate(90deg);
  }

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

  .allocation-track {
    min-height: 50px;
  }

  .allocation-track > span:not(.allocation-more):nth-child(n + 8) {
    display: none;
  }

  .event-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-selector button {
    min-height: 54px;
  }

  .event-keyboard-capture {
    padding: 12px;
  }

  .event-keyboard-intro {
    align-items: start;
  }

  .event-keyboard-intro kbd {
    min-width: 54px;
    height: 52px;
  }

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

  .event-keyboard-readout div:last-child {
    grid-column: 1 / -1;
  }

  .idt-equation,
  .lba-equation {
    grid-template-columns: minmax(0, 1fr);
  }

  .idt-equation > b,
  .lba-equation > b {
    text-align: center;
  }

  .task-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-cards article {
    min-height: 88px;
  }

  .focus-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .syscall-picker {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .image-map {
    min-height: 65px;
  }

  .image-map .stage1,
  .image-map .stage2 {
    min-width: 34px;
  }

  .image-map small {
    writing-mode: vertical-rl;
  }

  .image-map-legend {
    display: none;
  }

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

  .code-candidate-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-stage-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-stage-detail > span {
    width: 38px;
    height: 38px;
  }

  .elf-segments {
    grid-template-columns: minmax(0, 1fr);
  }

  .elf-segments > div + div {
    border-top: 1px solid #334b40;
    border-left: 0;
  }

  .soia-desktop-simulator {
    border-width: 4px;
  }

  .soia-sim-desktop {
    min-height: 315px;
    padding: 9px;
  }

  .soia-app-window {
    min-height: 280px;
  }

  .monitor-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .soia-app-switcher button {
    flex-direction: column;
    gap: 3px;
  }

  .soia-app-switcher strong {
    font-size: 0.53rem;
  }
}
