:root {
  color-scheme: dark;
  --ink: #090e0f;
  --ink-2: #0d1314;
  --surface: #111819;
  --surface-2: #151d1d;
  --paper: #f3f0e8;
  --paper-soft: #ddd9d0;
  --muted: #9aa39f;
  --faint: #65706c;
  --line: rgba(243, 240, 232, 0.12);
  --line-strong: rgba(243, 240, 232, 0.22);
  --mint: #9fc9b8;
  --mint-bright: #cce9dd;
  --amber: #dda25e;
  --blue: #91b5d2;
  --danger: #ce8580;
  --display: "EB Garamond", Georgia, serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --page: min(1320px, calc(100vw - 64px));
  --header-height: 76px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(159, 201, 184, 0.07), transparent 30rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transition: top 0.2s ease;
}

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

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  border-bottom: 1px solid rgba(243, 240, 232, 0.08);
  background: rgba(9, 14, 15, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  position: relative;
  width: 23px;
  height: 23px;
  border: 1.5px solid var(--mint);
  border-radius: 7px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--mint);
  opacity: 0.72;
}

.brand-mark::before {
  left: 7px;
  transform: rotate(8deg);
}

.brand-mark::after {
  right: 7px;
  transform: rotate(-8deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.brand-kicker {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.primary-nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-button,
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-button {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(243, 240, 232, 0.07);
  color: var(--paper);
}

.header-search {
  position: relative;
  width: min(100%, 380px);
  justify-self: end;
}

.header-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 10px 13px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(243, 240, 232, 0.035);
  color: var(--paper);
  font-size: 13px;
}

.header-search input::placeholder {
  color: var(--faint);
}

.text-button {
  padding: 8px 9px;
  font-size: 12px;
}

.text-button:hover {
  color: var(--mint);
}

.avatar {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(159, 201, 184, 0.1);
  color: var(--mint-bright);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.avatar:hover,
.avatar.active {
  border-color: var(--mint);
  box-shadow: 0 0 20px rgba(159, 201, 184, 0.14);
}

.sync-state {
  min-width: 48px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.sync-state.error {
  color: var(--danger);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: white;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(243, 240, 232, 0.06);
  color: var(--paper);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(243, 240, 232, 0.1);
}

.button.mint {
  background: var(--mint-bright);
}

.button.amber {
  background: var(--amber);
}

.button.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 11px;
}

.button.wide {
  width: 100%;
}

.button[disabled] {
  transform: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.page {
  width: var(--page);
  margin: 0 auto;
  padding: 42px 0 88px;
  animation: page-in 0.42s var(--ease);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.eyebrow {
  display: block;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow.amber {
  color: var(--amber);
}

.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.page-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.meta-line {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  align-items: stretch;
  gap: 52px;
  min-height: 590px;
}

.hero-copy {
  align-self: center;
  padding: 40px 0 54px 32px;
}

.hero-copy .display-title {
  max-width: 670px;
  margin-top: 24px;
}

.hero-copy .lede {
  margin: 28px 0 0;
}

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

.hero-note {
  margin-top: 21px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
}

.hero-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-left: 1px solid rgba(243, 240, 232, 0.06);
  background:
    radial-gradient(circle at 72% 22%, rgba(221, 162, 94, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(159, 201, 184, 0.04), transparent 60%);
}

.hero-map svg {
  position: absolute;
  inset: 5% -5% 0 0;
  width: 105%;
  height: 94%;
}

.map-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 14, 15, 0.8);
  backdrop-filter: blur(10px);
}

.map-label strong {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.map-label span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.map-label.base {
  left: 7%;
  bottom: 8%;
}

.map-label.operator {
  left: 33%;
  top: 46%;
}

.map-label.engineer {
  left: 54%;
  top: 27%;
  border-color: rgba(221, 162, 94, 0.4);
}

.map-label.researcher {
  right: 5%;
  top: 7%;
}

.hero-map-caption {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.continue-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  margin: 0 0 54px;
  border: 1px solid var(--line);
  background: var(--line);
}

.continue-main,
.continue-glance {
  min-height: 170px;
  padding: 24px 26px;
  background: var(--ink-2);
}

.continue-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.continue-main h2 {
  margin: 8px 0 5px;
  font-family: var(--display);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}

.continue-glance h3 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
}

.continue-glance p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.progress-track {
  width: 100%;
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(243, 240, 232, 0.08);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 12px 0 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.fact {
  min-height: 92px;
  padding: 18px 22px;
  background: var(--ink);
}

.fact strong {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
}

.fact span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}

.shelf-section + .shelf-section {
  margin-top: 70px;
}

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

.section-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
}

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

.unit-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.unit-card:hover .unit-art {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.unit-art {
  position: relative;
  aspect-ratio: 1.45;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(159, 201, 184, 0.08), transparent 65%),
    var(--surface);
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s ease;
}

.unit-art::before,
.unit-art::after {
  content: "";
  position: absolute;
}

.unit-art::before {
  left: -10%;
  right: -10%;
  bottom: -20%;
  height: 70%;
  border: 1px solid rgba(159, 201, 184, 0.24);
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
}

.unit-art::after {
  left: 8%;
  right: 8%;
  bottom: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}

.unit-art[data-kind="cluster"] {
  background:
    radial-gradient(circle at 70% 24%, rgba(221, 162, 94, 0.16), transparent 24%),
    linear-gradient(140deg, #161714, #0d1413 67%);
}

.unit-art[data-kind="watch"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(145, 181, 210, 0.16), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(145, 181, 210, 0.055) 22px 23px),
    #10171b;
}

.unit-art-code {
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  white-space: pre;
}

.unit-art-symbol {
  position: absolute;
  right: 17px;
  bottom: 13px;
  color: rgba(243, 240, 232, 0.16);
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
}

.unit-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.unit-card-meta .lab {
  color: var(--mint);
}

.unit-card-meta .cluster {
  color: var(--amber);
}

.unit-card-meta .watch {
  color: var(--blue);
}

.unit-card h3 {
  margin: 8px 0 5px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.route-card {
  position: relative;
  display: block;
  min-height: 290px;
  padding: 28px;
  overflow: hidden;
  border: 0;
  background: var(--ink-2);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.route-card::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -44%;
  height: 77%;
  border: 1px solid rgba(243, 240, 232, 0.08);
  border-radius: 50% 50% 0 0;
  transition: border-color 0.2s ease;
}

.route-card:hover {
  background: var(--surface);
}

.route-card:hover::after {
  border-color: rgba(159, 201, 184, 0.32);
}

.route-card.featured::after {
  border-color: rgba(221, 162, 94, 0.3);
}

.route-card h3 {
  max-width: 320px;
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.route-card p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.route-card .route-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: var(--mint);
  font-size: 20px;
}

.route-card.featured .route-arrow {
  color: var(--amber);
}

.empty-results {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.route-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 430px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.breadcrumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.route-hero .page-title {
  max-width: 540px;
}

.route-hero .lede {
  margin-top: 20px;
}

.route-graphic {
  position: relative;
  height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 28%, rgba(221, 162, 94, 0.13), transparent 27%),
    var(--ink-2);
}

.route-graphic svg {
  width: 100%;
  height: 100%;
}

.route-graphic-copy {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-family: var(--mono);
}

.route-graphic-copy strong {
  display: block;
  color: var(--amber);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.route-graphic-copy span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 8.5px;
}

.route-itinerary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 80px;
  padding-top: 70px;
}

.itinerary-list {
  position: relative;
}

.itinerary-list::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 34px;
  left: 20px;
  width: 1px;
  background: var(--line);
}

.itinerary-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  align-items: center;
  padding: 0 0 22px;
}

.itinerary-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.itinerary-item.current .itinerary-dot {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 26px rgba(221, 162, 94, 0.16);
}

.itinerary-item.stamped .itinerary-dot {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

.itinerary-copy {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding: 17px 19px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.itinerary-copy:hover {
  background: rgba(243, 240, 232, 0.025);
}

.itinerary-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.itinerary-copy p {
  margin: 5px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
}

.itinerary-copy .open-label {
  flex: none;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
}

.route-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.route-aside h3 {
  margin: 12px 0 9px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
}

.route-aside p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.aside-list {
  display: grid;
  gap: 11px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.aside-list span::before {
  content: "↗";
  margin-right: 9px;
  color: var(--mint);
}

.tree-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.tree-head .lede {
  margin: 14px 0 0;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.legend span:nth-child(2)::before {
  background: var(--amber);
}

.legend span:nth-child(3)::before {
  background: var(--blue);
}

.tree-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 340px;
  gap: 18px;
}

.tree-canvas {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 48% 22%, rgba(159, 201, 184, 0.065), transparent 34%),
    linear-gradient(rgba(243, 240, 232, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.018) 1px, transparent 1px),
    var(--ink-2);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.tree-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tree-node {
  position: absolute;
  z-index: 2;
  max-width: 140px;
  padding: 8px 11px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 19, 20, 0.94);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.tree-node:hover {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1.07);
  border-color: var(--line-strong);
  color: var(--paper);
}

.tree-node.path {
  border-color: var(--mint);
  color: var(--paper);
}

.tree-node.path.cluster {
  border-color: var(--amber);
}

.tree-node.future {
  border-color: rgba(145, 181, 210, 0.7);
  color: var(--blue);
}

.tree-node.goal {
  border-color: var(--amber);
  border-radius: 6px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(221, 162, 94, 0.2);
}

.tree-node.done::before {
  content: "✓ ";
  color: var(--mint);
}

.tree-node.goal.done::before {
  color: var(--ink);
}

.tree-axis-note {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.path-panel {
  display: flex;
  min-height: 690px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.path-panel h2 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.path-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.path-rows {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.path-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
}

.path-row .index {
  color: var(--amber);
}

.path-row.done .index {
  color: var(--mint);
}

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

.path-row small {
  color: var(--faint);
}

.path-summary,
.future-panel {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.7;
}

.future-panel {
  margin-top: auto;
}

.future-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.future-list button {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8.5px;
  cursor: pointer;
}

.pricing-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
  padding: 56px 0 70px;
}

.pricing-intro .lede {
  margin: 0 0 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.price-card {
  display: flex;
  min-height: 490px;
  flex-direction: column;
  padding: 29px;
  background: var(--ink-2);
}

.price-card.featured {
  background:
    radial-gradient(circle at 84% 8%, rgba(221, 162, 94, 0.13), transparent 30%),
    var(--ink-2);
}

.price {
  margin-top: 27px;
  font-family: var(--display);
  font-size: 68px;
  letter-spacing: -0.045em;
  line-height: 0.8;
}

.price small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
}

.trial-note {
  min-height: 20px;
  margin-top: 11px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
}

.price-card p {
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.price-features {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
}

.price-features span::before {
  content: "✓";
  margin-right: 9px;
  color: var(--mint);
}

.price-card .button {
  margin-top: auto;
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 26px;
}

.pricing-notes p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.pricing-notes strong {
  color: var(--paper-soft);
  font-weight: 500;
}

.session-breadcrumbs {
  margin-bottom: 22px;
}

.session-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 54px;
  min-width: 0;
}

.step-rail {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.step-rail-title {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.step-list {
  display: grid;
  max-width: 100%;
  gap: 7px;
}

.step-button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

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

.step-button.active {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.step-button.done:not(.active) {
  color: var(--mint);
}

.step-index {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
}

.tier-guide {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
}

.session-stage {
  min-width: 0;
}

.session-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(39px, 4vw, 57px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.stage-card {
  min-height: 440px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.stage-card h2 {
  max-width: 750px;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 65px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.stage-card > p {
  max-width: 720px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.source-focus {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint) !important;
  font-family: var(--mono);
  font-size: 9px !important;
}

.source-focus strong {
  color: var(--mint);
  font-weight: 600;
}

.session-pager {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.session-pager .button {
  max-width: 48%;
  height: auto;
  min-height: 42px;
  text-align: left;
}

.content-error {
  max-width: 780px;
  margin: 8vh auto;
}

.media-frame {
  position: relative;
  display: grid;
  min-height: 350px;
  margin-top: 24px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 55% 50%, rgba(145, 181, 210, 0.13), transparent 27%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(145, 181, 210, 0.035) 54px 55px),
    #0b1113;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(145, 181, 210, 0.13);
  transform: rotate(-4deg);
}

.media-play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(9, 14, 15, 0.72);
  color: var(--paper);
  font-size: 23px;
  text-decoration: none;
}

.media-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 27px;
}

.quiz-option {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(243, 240, 232, 0.025);
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: var(--mint);
}

.quiz-option.correct {
  border-color: var(--mint);
  background: rgba(159, 201, 184, 0.08);
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background: rgba(206, 133, 128, 0.07);
}

.feedback {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
}

.feedback.good {
  color: var(--mint);
}

.terminal {
  margin-top: 26px;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  background: #070b0c;
  color: #9ba7a1;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.terminal .prompt {
  color: var(--mint);
}

.terminal .result {
  color: var(--paper-soft);
}

.terminal .running {
  color: var(--amber);
  animation: pulse 1.2s ease-in-out infinite;
}

.terminal .passed {
  color: var(--mint-bright);
}

.terminal .failed {
  color: var(--danger);
}

.lab-editor-label {
  display: block;
  margin-top: 25px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-editor {
  display: block;
  width: 100%;
  min-height: 220px;
  margin-top: 8px;
  resize: vertical;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #070b0c;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.lab-editor:focus {
  border-color: var(--mint);
}

.lab-editor:disabled {
  color: var(--faint);
}

.check-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.check-results > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}

.check-results > div.passed {
  border-color: rgba(159, 201, 184, 0.22);
  color: var(--mint);
}

.check-results > div.failed {
  border-color: rgba(206, 133, 128, 0.25);
  color: var(--danger);
}

.check-results strong,
.check-results small {
  display: block;
}

.check-results strong {
  color: var(--paper-soft);
  font-weight: 500;
}

.check-results small {
  margin-top: 4px;
  color: inherit;
  font-size: inherit;
}

.execution-panel {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(221, 162, 94, 0.24);
  background:
    linear-gradient(135deg, rgba(221, 162, 94, 0.065), transparent 46%),
    #0a1011;
}

.execution-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--amber);
}

.execution-panel.succeeded {
  border-color: rgba(159, 201, 184, 0.3);
  background:
    linear-gradient(135deg, rgba(159, 201, 184, 0.07), transparent 46%),
    #0a1011;
}

.execution-panel.succeeded::before {
  background: var(--mint);
}

.execution-panel.failed,
.execution-panel.cancelled,
.execution-panel.timed-out {
  border-color: rgba(206, 133, 128, 0.3);
}

.execution-panel.failed::before,
.execution-panel.cancelled::before,
.execution-panel.timed-out::before {
  background: var(--danger);
}

.execution-panel.active::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(221, 162, 94, 0.14);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

.execution-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.execution-panel h3 {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--paper-soft);
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 500;
  line-height: 1.08;
}

.execution-panel > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.execution-panel code {
  color: var(--mint);
  font-family: var(--mono);
}

.job-chip {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.execution-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.execution-facts > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.execution-facts dt,
.execution-facts dd {
  margin: 0;
  font-family: var(--mono);
}

.execution-facts dt {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.execution-facts dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--paper-soft);
  font-size: 9px;
}

.execution-output {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #06090a;
}

.execution-output > span {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.execution-output.error > span,
.execution-error {
  color: var(--danger) !important;
}

.execution-output pre {
  max-height: 210px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

.lock-card {
  display: grid;
  min-height: 440px;
  place-items: center;
  border: 1px solid rgba(221, 162, 94, 0.28);
  background:
    radial-gradient(circle at 50% 45%, rgba(221, 162, 94, 0.08), transparent 35%),
    var(--ink-2);
  text-align: center;
}

.lock-card-inner {
  max-width: 580px;
  padding: 38px;
}

.lock-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--mono);
}

.lock-card h2 {
  margin: 24px 0 12px;
  font-family: var(--display);
  font-size: 43px;
  font-weight: 500;
  line-height: 0.95;
}

.lock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.lock-card .stage-actions {
  justify-content: center;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 90px;
  padding-top: 62px;
}

.assessment-main {
  max-width: 750px;
}

.question-progress {
  display: flex;
  gap: 7px;
  margin: 25px 0 46px;
}

.question-progress span {
  width: 42px;
  height: 3px;
  background: rgba(243, 240, 232, 0.1);
}

.question-progress span.active,
.question-progress span.done {
  background: var(--mint);
}

.question-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.assessment-options {
  display: grid;
  gap: 9px;
  margin-top: 37px;
}

.assessment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-soft);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.assessment-option:hover {
  border-color: var(--mint);
  background: rgba(159, 201, 184, 0.04);
}

.assessment-option span:last-child {
  color: var(--mint);
}

.assessment-aside {
  align-self: start;
  padding: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.assessment-aside strong {
  color: var(--paper-soft);
  font-weight: 500;
}

.result-stamps {
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-stamps p {
  margin: 9px 0 0;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
}

.record-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: end;
  padding: 55px 0 65px;
  border-bottom: 1px solid var(--line);
}

.record-intro .lede {
  margin: 0;
}

.record-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 70px;
  padding-top: 55px;
}

.record-list {
  display: grid;
}

.record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 110px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.record-row:first-child {
  border-top: 1px solid var(--line);
}

.record-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.record-row p {
  margin: 6px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.6;
}

.record-state {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.record-state.done {
  color: var(--mint);
}

.record-state.current {
  color: var(--amber);
}

.certificate-card {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(159, 201, 184, 0.08), transparent 40%),
    var(--ink-2);
}

.certificate-card h2 {
  margin: 80px 0 9px;
  font-family: var(--display);
  font-size: 35px;
  font-weight: 500;
  line-height: 0.95;
}

.certificate-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.certificate-seal {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  font-family: var(--display);
  font-size: 27px;
}

.provision-page {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 100px);
  place-items: center;
}

.provision-card {
  width: min(620px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.provision-card h1 {
  margin: 18px 0 30px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 500;
}

.provision-steps {
  display: grid;
  gap: 15px;
}

.provision-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.provision-step.active {
  color: var(--amber);
}

.provision-step.done {
  color: var(--mint);
}

.account-intro {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: end;
  padding: 42px 0 55px;
  border-bottom: 1px solid var(--line);
}

.account-intro .lede {
  margin: 0;
}

.account-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  padding-top: 44px;
}

.account-summary {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(159, 201, 184, 0.09), transparent 15rem),
    var(--ink-2);
}

.account-monogram {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: rgba(159, 201, 184, 0.08);
  color: var(--mint-bright);
  font-family: var(--mono);
  font-size: 15px;
}

.account-summary h2 {
  margin: 10px 0 22px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.05;
}

.account-summary dl {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
}

.account-summary dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
}

.account-summary dt {
  color: var(--faint);
}

.account-summary dd {
  margin: 0;
  color: var(--paper-soft);
  text-align: right;
}

.account-sections {
  display: grid;
  gap: 20px;
}

.account-section {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.account-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.account-section-head h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
}

.account-section-head p,
.empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-form label,
.delete-form label {
  display: grid;
  gap: 8px;
}

.account-form label > span,
.delete-form label > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.account-form .full {
  grid-column: 1 / -1;
}

.account-form input,
.account-form textarea,
.delete-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(243, 240, 232, 0.035);
  color: var(--paper);
  font-size: 13px;
}

.account-form textarea {
  min-height: 96px;
  resize: vertical;
}

.account-form-actions,
.account-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.device-list {
  display: grid;
  margin-bottom: 18px;
}

.device-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.device-row:last-child {
  border-bottom: 1px solid var(--line);
}

.device-icon {
  color: var(--mint);
  font-size: 10px;
}

.device-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}

.device-row p {
  margin: 4px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
}

.danger-text,
.eyebrow.danger {
  color: var(--danger);
}

.danger-zone {
  border-color: rgba(206, 133, 128, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(206, 133, 128, 0.07), transparent 18rem),
    var(--ink-2);
}

.danger-button {
  border-color: rgba(206, 133, 128, 0.45);
  background: rgba(206, 133, 128, 0.1);
  color: #efb0ab;
}

.danger-button:hover {
  border-color: var(--danger);
  background: rgba(206, 133, 128, 0.17);
}

.delete-form {
  display: grid;
  gap: 15px;
}

.delete-form strong {
  color: var(--paper);
}

.account-notice {
  margin-top: 22px;
  padding: 12px 15px;
  border: 1px solid rgba(159, 201, 184, 0.34);
  background: rgba(159, 201, 184, 0.08);
  color: var(--mint-bright);
  font-family: var(--mono);
  font-size: 9px;
}

.account-notice.error {
  border-color: rgba(206, 133, 128, 0.4);
  background: rgba(206, 133, 128, 0.08);
  color: #efb0ab;
}

.account-locked {
  max-width: 760px;
  margin: 9vh auto;
  padding: 46px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  text-align: center;
}

.account-locked h1 {
  margin: 16px 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 500;
  line-height: 0.95;
}

.account-locked p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.8;
}

.information-page {
  max-width: min(100% - 64px, 980px);
}

.information-hero {
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--line);
}

.information-hero .page-title {
  max-width: 850px;
}

.information-hero .lede {
  margin-top: 24px;
}

.information-sections {
  display: grid;
}

.information-sections article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 25px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
}

.information-sections h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
}

.information-sections p {
  max-width: 730px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(159, 201, 184, 0.4);
  border-radius: 999px;
  background: var(--mint-bright);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.25s var(--ease);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 45px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 500px;
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.7;
}

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

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

.footer-links button:hover {
  color: var(--mint);
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 8, 0.86);
  backdrop-filter: blur(12px);
}

.field-pass-card {
  position: relative;
  width: min(100%, 620px);
  padding: 38px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 92% 8%, rgba(221, 162, 94, 0.08), transparent 20rem),
    var(--surface);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.field-pass-card h2 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.field-pass-card > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.field-pass-form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.field-pass-form label:not(.terms-check) {
  display: grid;
  gap: 7px;
}

.field-pass-form label > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.field-pass-form input:not([type="checkbox"]),
.field-pass-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(243, 240, 232, 0.035);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
}

.field-pass-form textarea {
  min-height: 88px;
  resize: vertical;
}

.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
}

.terms-check input {
  margin-top: 2px;
  accent-color: var(--mint);
}

.terms-check span {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  line-height: 1.55;
}

.modal-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-policy-links .text-button {
  padding: 0;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.modal-note {
  margin: 18px 0 0;
  color: var(--faint) !important;
  font-family: var(--mono);
  font-size: 8px !important;
}

.loading-shell,
.noscript {
  display: grid;
  min-height: 100vh;
  place-content: center;
  text-align: center;
}

.loading-shell p,
.noscript {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 40px, 1040px);
  }

  .header-inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
  }

  .header-search {
    max-width: 260px;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 20px;
  }

  .hero-copy {
    padding-left: 10px;
  }

  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .tree-layout {
    grid-template-columns: 1fr;
  }

  .path-panel {
    min-height: auto;
  }

  .route-itinerary,
  .record-layout {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    position: relative;
    height: auto;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 14px 0;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .header-search {
    display: none;
  }

  .account-actions {
    justify-content: flex-end;
  }

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

  .hero-copy {
    padding: 30px 0 44px;
  }

  .hero-map {
    min-height: 460px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .continue-panel,
  .fact-strip,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .continue-main {
    grid-column: 1 / -1;
  }

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

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

  .route-card {
    min-height: 240px;
  }

  .route-hero,
  .pricing-intro,
  .record-intro,
  .account-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .route-graphic {
    margin-bottom: 30px;
  }

  .route-itinerary,
  .record-layout,
  .assessment-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .route-aside,
  .certificate-card,
  .step-rail,
  .account-summary {
    position: static;
  }

  .tree-layout {
    overflow: auto;
  }

  .tree-canvas {
    min-width: 760px;
  }

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

  .step-rail {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-list {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tier-guide {
    display: none;
  }

  .pricing-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --page: calc(100% - 28px);
  }

  .brand-kicker {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .account-actions .text-button {
    display: none;
  }

  .sync-state {
    display: none;
  }

  .primary-nav {
    gap: 2px;
  }

  .nav-button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .button {
    min-height: 42px;
  }

  .page {
    padding-top: 28px;
    padding-bottom: 66px;
  }

  .display-title {
    font-size: clamp(49px, 16vw, 68px);
    line-height: 0.9;
  }

  .page-title {
    font-size: 54px;
  }

  .hero-map {
    min-height: 380px;
  }

  .map-label {
    padding: 6px 7px;
  }

  .map-label span {
    display: none;
  }

  .continue-panel,
  .fact-strip,
  .unit-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .continue-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact {
    min-height: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }

  .unit-grid {
    gap: 34px;
  }

  .unit-card h3 {
    font-size: 26px;
  }

  .route-hero {
    min-height: auto;
    padding-bottom: 35px;
  }

  .route-graphic {
    height: 280px;
  }

  .route-itinerary {
    padding-top: 45px;
  }

  .itinerary-item {
    gap: 10px;
  }

  .itinerary-copy {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .legend {
    justify-content: flex-start;
  }

  .price-card {
    min-height: 430px;
  }

  .stage-card,
  .lock-card {
    min-height: 0;
  }

  .stage-card {
    padding: 24px 20px;
  }

  .stage-card h2 {
    font-size: 44px;
  }

  .check-results {
    grid-template-columns: 1fr;
  }

  .execution-panel {
    padding: 18px 16px;
  }

  .execution-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .lab-editor {
    min-height: 260px;
    font-size: 11px;
  }

  .media-frame {
    min-height: 260px;
  }

  .session-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .session-pager .button {
    max-width: none;
  }

  .lock-card-inner {
    padding: 34px 22px;
  }

  .assessment-layout {
    gap: 40px;
    padding-top: 35px;
  }

  .question-title {
    font-size: 49px;
  }

  .record-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-section {
    padding: 22px 18px;
  }

  .account-section-head,
  .account-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-form .full {
    grid-column: auto;
  }

  .device-row {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 15px 0;
  }

  .device-row > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .information-page {
    max-width: var(--page);
  }

  .information-sections article {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .certificate-card h2 {
    margin-top: 45px;
  }

  .provision-card {
    padding: 30px 22px;
  }

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

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

  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  .field-pass-card {
    padding: 30px 20px 24px;
  }
}

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