:root {
  color-scheme: dark;
  --ink: #05090c;
  --panel: #081116;
  --panel-strong: #0b171d;
  --line: #17323b;
  --line-bright: #2ac5de;
  --cyan: #43d7ee;
  --cyan-soft: #9cecf7;
  --amber: #e6a344;
  --text: #e6f2f4;
  --muted: #7f9ba3;
  --max-width: 1500px;
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--cyan);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  width: min(100%, var(--max-width));
  min-height: 82px;
  margin: 0 auto;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0.08em;
}

.brand img {
  display: block;
  border: 1px solid var(--line-bright);
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.61rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a:hover,
.nav-identity:hover,
.footer-links a:hover,
.footer-links button:hover,
.text-link:hover,
.build-detail a:hover {
  color: var(--cyan);
}

.nav-download {
  border: 1px solid var(--line-bright);
  color: var(--cyan-soft);
  padding: 11px 15px;
}

.nav-identity,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan-soft);
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.site-header nav a[aria-current="page"] {
  color: var(--cyan-soft);
}

main,
footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(70px, 8vw, 130px) clamp(30px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  color: var(--cyan-soft);
  font-size: 0.69rem;
  letter-spacing: 0.09em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(67, 215, 238, 0.12);
  animation: signal-pulse 2.4s steps(2, end) infinite;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

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

h1,
h2 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 720;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 6.7vw, 7.4rem);
  line-height: 0.88;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 36px;
  color: #adc1c7;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.03rem, 1.35vw, 1.3rem);
  line-height: 1.65;
}

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

.button {
  min-height: 51px;
  padding: 15px 21px;
  border: 1px solid #32515b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-soft);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.button:hover {
  border-color: var(--cyan);
  color: white;
  background: #0c2027;
}

.button-primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #001014;
  font-weight: 700;
}

.button-primary:hover {
  background: #9cecf7;
  color: #001014;
}

.button-quiet {
  background: transparent;
}

.button:disabled,
.text-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.build-detail {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-art {
  position: relative;
  min-height: 690px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #081014;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(67, 215, 238, 0.18);
  box-shadow: inset 0 0 120px rgba(0, 7, 10, 0.72);
  pointer-events: none;
}

.hero-art figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 15px 17px;
  border: 1px solid rgba(67, 215, 238, 0.48);
  background: rgba(3, 10, 13, 0.88);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.hero-art figcaption span {
  color: var(--cyan-soft);
}

.hero-art figcaption strong {
  color: #c9d7da;
  font-weight: 500;
}

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

.telemetry div {
  min-height: 128px;
  padding: 27px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 5px 17px;
  border-right: 1px solid var(--line);
}

.telemetry div:last-child {
  border-right: 0;
}

.telemetry span {
  grid-row: 1 / span 2;
  color: var(--amber);
  font-size: 0.65rem;
}

.telemetry strong {
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telemetry small {
  color: var(--muted);
  font-size: 0.67rem;
}

.live-service strong {
  color: var(--cyan-soft);
}

.library-gateway {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(70px, 8vw, 116px) clamp(30px, 6vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(112deg, rgba(8, 17, 22, 0.98) 0 46%, rgba(5, 9, 12, 0.9) 74%),
    radial-gradient(circle at 82% 38%, rgba(43, 197, 222, 0.11), transparent 34%);
}

.library-gateway::before,
.library-hero::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(67, 215, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 215, 238, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.library-gateway-copy,
.library-gateway-index,
.library-hero > * {
  position: relative;
  z-index: 1;
}

.library-gateway-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 0.96;
}

.library-gateway-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 30px;
  color: #9fb5bb;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.library-gateway-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: 1px;
  padding: 1px;
  background: var(--line);
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.library-gateway-index a {
  min-height: 150px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(5, 11, 14, 0.97);
  transition: background 160ms ease, color 160ms ease;
}

.library-gateway-index a:hover {
  background: #0c1a20;
  color: var(--text);
}

.library-gateway-index span,
.library-directory span {
  margin-bottom: auto;
  color: var(--amber);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.library-gateway-index strong,
.library-directory strong {
  color: var(--cyan-soft);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.18rem;
}

.library-gateway-index small,
.library-directory small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.library-page {
  background: var(--ink);
}

.library-hero {
  position: relative;
  min-height: 470px;
  padding: clamp(76px, 9vw, 138px) clamp(30px, 6vw, 90px) clamp(64px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(560px, 1.15fr);
  align-items: end;
  gap: clamp(48px, 8vw, 130px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgba(67, 215, 238, 0.12), transparent 33%),
    linear-gradient(128deg, #081116, #05090c 68%);
}

.library-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.88;
}

.library-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: #a9bec4;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.72;
}

.library-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.library-directory a {
  min-height: 116px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  background: rgba(5, 10, 13, 0.95);
  transition: background 160ms ease;
}

.library-directory a:hover {
  background: #0d1c22;
}

.operative-archive,
.field-manual,
.caravan {
  padding: clamp(80px, 9vw, 140px) clamp(30px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

.operative-archive {
  background: var(--panel);
}

.archive-heading,
.caravan-heading {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.8fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: end;
  margin-bottom: 50px;
}

.archive-heading h2,
.caravan-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.95;
}

.archive-heading > p,
.caravan-heading > p {
  margin-bottom: 0;
  color: #9ab1b7;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.archive-toolbar {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #050c10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr) minmax(140px, auto);
  gap: 14px;
}

.archive-toolbar label,
.identity-dialog label {
  display: grid;
  gap: 8px;
}

.archive-toolbar label > span,
.identity-dialog label > span,
.authority-endpoint > span,
.archive-count > span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.archive-toolbar input,
.archive-toolbar select,
.identity-dialog input {
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #28505b;
  border-radius: 0;
  outline: 0;
  background: #061015;
  color: var(--text);
}

.archive-toolbar input:focus,
.archive-toolbar select:focus,
.identity-dialog input:focus {
  border-color: var(--cyan);
}

.archive-count {
  padding: 8px 13px;
  border-left: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 7px;
}

.archive-count strong {
  color: var(--cyan-soft);
  font-size: 1rem;
}

.inline-status {
  min-height: 18px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

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

.operator-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #050c10;
  display: flex;
  flex-direction: column;
  transition: border-color 140ms ease, transform 140ms ease;
}

.operator-card:hover {
  border-color: #2a7587;
  transform: translateY(-2px);
}

.operator-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #071217;
}

.operator-media::after,
.roster-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(67, 215, 238, 0.13);
  box-shadow: inset 0 0 42px rgba(0, 4, 6, 0.76);
  pointer-events: none;
}

.operator-media img,
.roster-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.07) brightness(0.86);
}

.operator-index {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(67, 215, 238, 0.45);
  background: rgba(3, 10, 13, 0.88);
  color: var(--cyan-soft);
  font-size: 0.62rem;
}

.operator-body {
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.operator-identity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.operator-role,
.roster-title span:first-child {
  color: var(--cyan);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-identity h3 {
  margin: 5px 0 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.28rem;
}

.difficulty-chip,
.selected-chip,
.status-chip {
  align-self: flex-start;
  padding: 5px 7px;
  border: 1px solid #31505a;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}

.operator-playstyle {
  margin: 15px 0 9px;
  color: var(--amber);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-summary {
  margin-bottom: 18px;
  color: #829ba2;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
}

.operator-key-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operator-key-stats > div {
  padding: 10px 6px;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.operator-key-stats > div:last-child {
  border-right: 0;
}

.operator-key-stats span {
  color: var(--muted);
  font-size: 0.52rem;
}

.operator-key-stats strong {
  color: var(--cyan-soft);
  font-size: 0.82rem;
}

.operator-actions {
  padding-top: 15px;
  display: grid;
  gap: 11px;
}

.operator-actions .text-link {
  font-size: 0.65rem;
}

.compare-button,
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.compare-button:hover,
.compare-button[aria-pressed="true"],
.text-button:hover {
  color: var(--cyan);
}

.comparison {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid #28505b;
  background: #040a0d;
}

.comparison-heading,
.subsection-heading,
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.comparison-heading h3,
.subsection-heading h3,
.dashboard-header h3,
.caravan-locked h3 {
  margin-bottom: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.7rem;
}

.comparison-scroll {
  margin-top: 22px;
  overflow-x: auto;
}

.comparison table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.comparison th,
.comparison td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.comparison thead th {
  color: var(--cyan-soft);
  background: #09161b;
}

.comparison tbody th {
  color: var(--muted);
  font-weight: 500;
}

.field-manual {
  background:
    linear-gradient(180deg, rgba(10, 27, 34, 0.42), transparent 430px),
    #03090c;
}

.manual-heading {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.8fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
}

.manual-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.95;
}

.manual-heading > p {
  margin-bottom: 0;
  color: #9ab1b7;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.manual-overview {
  min-height: 315px;
  margin-bottom: 34px;
  border: 1px solid #28505b;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.45fr);
}

.manual-field-record {
  position: relative;
  min-height: 315px;
  margin: 0;
  overflow: hidden;
}

.manual-field-record::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(3, 9, 12, 0.08), rgba(3, 9, 12, 0.72));
  pointer-events: none;
}

.manual-field-record img {
  width: 100%;
  height: 100%;
  min-height: 315px;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.66);
}

.manual-field-record figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: grid;
  gap: 8px;
  text-align: right;
}

.manual-field-record figcaption span {
  color: var(--cyan);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.manual-field-record figcaption strong {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
}

.manual-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #28505b;
}

.manual-counts > div {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 9px;
}

.manual-counts > div:nth-child(2n) {
  border-right: 0;
}

.manual-counts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.manual-counts span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-counts strong {
  color: var(--cyan-soft);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
}

.manual-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  border: 1px solid #28505b;
}

.manual-tabs button {
  min-height: 50px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #050c10;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-tabs button:last-child {
  border-right: 0;
}

.manual-tabs button:hover,
.manual-tabs button[aria-selected="true"] {
  background: #092028;
  color: var(--cyan-soft);
}

.manual-tabs button[aria-selected="true"] {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.manual-toolbar {
  margin: 12px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #050c10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr) minmax(140px, auto);
  gap: 14px;
}

.manual-toolbar label {
  display: grid;
  gap: 8px;
}

.manual-toolbar label > span,
.manual-visible-count > span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.manual-toolbar input,
.manual-toolbar select {
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #28505b;
  border-radius: 0;
  outline: 0;
  background: #061015;
  color: var(--text);
}

.manual-toolbar input:focus,
.manual-toolbar select:focus {
  border-color: var(--cyan);
}

.manual-visible-count {
  padding: 8px 13px;
  border-left: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 7px;
}

.manual-visible-count strong {
  color: var(--cyan-soft);
  font-size: 1rem;
}

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

.manual-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #050c10;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

.manual-card:hover {
  border-color: #33899b;
  transform: translateY(-2px);
}

.manual-card-media {
  position: relative;
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 117, 137, 0.13), transparent 60%),
    #03090c;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.manual-card-media::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-right: 1px solid rgba(67, 215, 238, 0.45);
  border-bottom: 1px solid rgba(67, 215, 238, 0.45);
  content: "";
}

.manual-card-media img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: contain;
}

.manual-card-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(67, 215, 238, 0.45);
  background: rgba(3, 9, 12, 0.86);
  color: var(--cyan-soft);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-card-glyph {
  color: rgba(67, 215, 238, 0.72);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.manual-card-body {
  min-height: 290px;
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.manual-card-category {
  color: var(--amber);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-card h3 {
  margin: 8px 0 12px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.28rem;
  line-height: 1.1;
}

.manual-card-body > p {
  margin-bottom: 18px;
  color: #829ba2;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
}

.manual-card-facts {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.manual-card-facts > div {
  min-height: 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.57rem;
}

.manual-card-facts span {
  color: var(--muted);
  text-transform: uppercase;
}

.manual-card-facts strong {
  overflow: hidden;
  color: #bdd0d4;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.manual-card .text-link {
  margin-top: 17px;
  font-size: 0.63rem;
}

.manual-dialog {
  width: min(calc(100% - 32px), 1120px);
}

.manual-detail-hero {
  min-height: 410px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(430px, 1.22fr);
}

.manual-detail-media {
  min-height: 410px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(35, 151, 176, 0.16), transparent 58%),
    #03090c;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.manual-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 510px;
  display: block;
  object-fit: contain;
}

.manual-detail-glyph {
  color: rgba(67, 215, 238, 0.76);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 9rem;
  font-weight: 800;
}

.manual-detail-copy {
  padding: clamp(46px, 7vw, 84px);
  align-self: center;
}

.manual-detail-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 0.92;
}

.manual-detail-summary,
.manual-detail-usage {
  color: #9eb4ba;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
}

.manual-detail-summary {
  font-size: 1rem;
}

.manual-detail-usage {
  padding-left: 15px;
  border-left: 2px solid var(--amber);
  color: #c9ac7f;
  font-size: 0.87rem;
}

.manual-formula {
  margin: 22px 0;
  padding: 17px;
  border: 1px solid #28505b;
  background: #03090c;
  display: block;
  color: var(--cyan-soft);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: normal;
}

.manual-share {
  margin-top: 12px;
  color: var(--cyan-soft);
}

.manual-detail-body {
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.manual-detail-section,
.manual-detail-body > .detail-list {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: #050c10;
}

.manual-detail-section h3,
.manual-detail-body > .detail-list h3 {
  margin-bottom: 18px;
  color: var(--cyan-soft);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-detail-table {
  border-top: 1px solid var(--line);
}

.manual-detail-row {
  min-height: 39px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.62rem;
}

.manual-detail-row span {
  color: var(--muted);
  text-transform: capitalize;
}

.manual-detail-row strong {
  color: #c8dadd;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.manual-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-chip {
  padding: 8px 10px;
  border: 1px solid #31505a;
  color: #a9c2c8;
  font-size: 0.59rem;
  text-transform: capitalize;
}

a.manual-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.manual-detail-footnote {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.caravan {
  background: #050b0f;
}

.caravan-locked {
  min-height: 230px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #28505b;
  background: var(--panel);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(25px, 5vw, 60px);
}

.caravan-locked p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.identity-mark {
  width: 72px;
  height: 72px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(67, 215, 238, 0.08);
}

.identity-mark span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan);
}

.caravan-dashboard {
  border: 1px solid #28505b;
  background: var(--panel);
}

.dashboard-header {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.dashboard-header h3 {
  margin-top: 11px;
  font-size: 2.1rem;
}

.dashboard-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.status-ready,
.selected-chip {
  border-color: rgba(67, 215, 238, 0.65);
  color: var(--cyan-soft);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-actions .button {
  min-height: 42px;
  padding: 11px 15px;
}

.danger {
  color: #ef7566;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric-card {
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 7px;
}

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

.metric-card > span,
.metric-card small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--cyan-soft);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
}

.dashboard-columns > section,
.operation-channel {
  padding: 28px;
}

.operation-channel {
  min-width: 0;
  align-self: start;
  border-left: 1px solid var(--line);
}

.backend-list {
  max-height: clamp(320px, 52vh, 620px);
  padding: 0 9px 2px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(67, 215, 238, 0.58) rgba(12, 31, 38, 0.72);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.backend-list:focus-visible {
  outline: 1px solid rgba(67, 215, 238, 0.72);
  outline-offset: 5px;
}

.backend-list::-webkit-scrollbar {
  width: 7px;
}

.backend-list::-webkit-scrollbar-track {
  background: rgba(12, 31, 38, 0.72);
}

.backend-list::-webkit-scrollbar-thumb {
  border: 1px solid rgba(5, 12, 16, 0.9);
  background: linear-gradient(180deg, rgba(67, 215, 238, 0.72), rgba(45, 116, 132, 0.68));
}

.subsection-heading {
  margin-bottom: 20px;
}

.subsection-heading > span {
  color: var(--muted);
  font-size: 0.62rem;
}

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

.roster-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #050c10;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.roster-card.selected {
  border-color: var(--cyan);
}

.roster-media {
  position: relative;
  min-height: 150px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.roster-status {
  position: absolute;
  z-index: 1;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 5px;
  background: rgba(3, 10, 13, 0.9);
  color: var(--cyan-soft);
  font-size: 0.52rem;
  text-align: center;
  text-transform: uppercase;
}

.roster-body {
  min-width: 0;
  padding: 15px;
}

.roster-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.roster-title h4,
.backend-card h4 {
  margin: 5px 0 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
}

.roster-loadout,
.backend-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.roster-loadout > div,
.backend-details > div {
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.57rem;
}

.roster-loadout span,
.backend-details span {
  color: var(--muted);
}

.roster-loadout strong,
.backend-details strong {
  overflow: hidden;
  color: #bdd0d4;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-history {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.54rem;
}

.backend-card,
.backend-empty {
  margin-bottom: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #050c10;
}

.backend-list > :last-child {
  margin-bottom: 0;
}

.backend-card h4 {
  margin-top: 12px;
}

.backend-empty strong {
  color: var(--amber);
  font-size: 0.65rem;
}

.backend-empty p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}

.terminal-dialog {
  width: min(calc(100% - 32px), 1040px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: #061015;
  color: var(--text);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.72);
}

.terminal-dialog::backdrop {
  background: rgba(0, 4, 6, 0.84);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 12px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px 0;
  border: 1px solid #31505a;
  background: #071318;
  color: var(--cyan-soft);
  cursor: pointer;
  font-size: 1.35rem;
}

.operative-detail-hero {
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  border-bottom: 1px solid var(--line);
}

.operative-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid var(--line);
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
}

.operative-detail-hero > div {
  padding: clamp(45px, 7vw, 80px);
  align-self: center;
}

.operative-detail-hero h2,
.identity-dialog h2 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
}

.detail-role {
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-summary {
  margin-bottom: 0;
  color: #9eb4ba;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.operative-detail-body {
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 50px;
}

.operative-detail-body h3 {
  margin-bottom: 18px;
  color: var(--cyan-soft);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-row {
  min-height: 36px;
  display: grid;
  grid-template-columns: 95px 1fr 42px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.63rem;
}

.stat-row > span {
  color: var(--muted);
}

.stat-row strong {
  color: var(--cyan-soft);
  text-align: right;
}

.stat-meter {
  width: 100%;
  height: 6px;
  border: 0;
  background: #13252b;
}

.stat-meter::-webkit-meter-bar {
  border: 0;
  border-radius: 0;
  background: #13252b;
}

.stat-meter::-webkit-meter-optimum-value {
  background: var(--cyan);
}

.stat-meter::-moz-meter-bar {
  background: var(--cyan);
}

.equipment-line {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.65rem;
}

.equipment-line span {
  color: var(--muted);
}

.equipment-line strong {
  font-weight: 500;
  text-align: right;
}

.detail-abilities,
.detail-profile-grid,
.detail-footnote {
  grid-column: 1 / -1;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.ability-chip {
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #050b0f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ability-chip:hover {
  border-color: var(--cyan);
  background: #082028;
}

.ability-chip span {
  width: 24px;
  height: 24px;
  border: 1px solid var(--cyan);
  display: grid;
  place-items: center;
  color: var(--cyan-soft);
  font-size: 0.58rem;
}

.ability-chip strong {
  font-size: 0.61rem;
  font-weight: 500;
}

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

.detail-list {
  padding: 22px;
  border: 1px solid var(--line);
}

.detail-list ul {
  margin: 0;
  padding-left: 18px;
  color: #93aab0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
}

.detail-list.positive {
  border-top-color: var(--cyan);
}

.detail-list.negative {
  border-top-color: var(--amber);
}

.detail-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.identity-dialog {
  width: min(calc(100% - 32px), 680px);
  padding: clamp(30px, 6vw, 58px);
}

.dialog-kicker {
  padding-right: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.identity-dialog h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

.identity-symbol {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9px #061015;
  background: var(--cyan);
}

.auth-tabs {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-tabs button {
  min-height: 50px;
  border: 1px solid #28505b;
  background: #050b0f;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-tabs button + button {
  border-left: 0;
}

.auth-tabs button[aria-selected="true"] {
  border-color: var(--cyan);
  background: #092028;
  color: var(--cyan-soft);
}

#identity-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.auth-prompt {
  margin-bottom: 0;
  color: var(--cyan-soft);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.authority-endpoint {
  padding: 12px 14px;
  border: 1px solid var(--line);
  display: grid;
  gap: 7px;
}

.authority-endpoint strong {
  overflow-wrap: anywhere;
  color: #aac2c8;
  font-size: 0.67rem;
  font-weight: 500;
}

.auth-status {
  min-height: 18px;
  margin: 0;
  color: var(--amber);
  font-size: 0.65rem;
}

.auth-submit {
  width: 100%;
}

.auth-security {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.55;
}

.field-notes {
  padding: clamp(80px, 9vw, 150px) clamp(30px, 6vw, 90px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(60px, 9vw, 150px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: 40px;
}

.section-heading h2,
.release-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  line-height: 0.98;
}

.section-heading > p:last-child,
.release-copy p {
  color: #9ab1b7;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.system-list article {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 26px;
}

.system-index {
  color: var(--cyan);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.system-list h3 {
  margin-bottom: 10px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.45rem;
}

.system-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.release-panel {
  padding: clamp(70px, 8vw, 120px) clamp(30px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 9vw, 150px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.release-copy {
  align-self: end;
  max-width: 620px;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer {
  min-height: 150px;
  padding: 38px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

footer > div:first-child {
  display: grid;
  gap: 8px;
}

footer strong {
  color: #adc1c7;
}

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

.error-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 9, 12, 0.98) 0%, rgba(3, 9, 12, 0.9) 58%, rgba(3, 9, 12, 0.76) 100%),
    url("/assets/ash-world.jpg") center / cover fixed;
}

.error-nav {
  width: min(100%, var(--max-width));
  min-height: 82px;
  margin: 0 auto;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(3, 9, 12, 0.86);
}

.error-nav .brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-bright);
  display: block;
  background: url("/assets/echo-mark.jpg") center / cover;
}

.error-version {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-shell {
  min-height: calc(100vh - 82px);
  padding: clamp(36px, 7vw, 110px) 30px;
  display: grid;
  align-items: center;
}

.error-terminal {
  position: relative;
  width: min(880px, 100%);
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line-bright);
  background: rgba(4, 13, 17, 0.95);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.error-terminal::before,
.error-terminal::after {
  position: absolute;
  width: 68px;
  height: 68px;
  border-color: var(--amber);
  content: "";
  pointer-events: none;
}

.error-terminal::before {
  top: 14px;
  right: 14px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.error-terminal::after {
  bottom: 14px;
  left: 14px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.error-scan {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 5px,
    rgba(67, 215, 238, 0.08) 6px
  );
  pointer-events: none;
}

.error-terminal .eyebrow {
  position: relative;
  margin-bottom: 26px;
  color: var(--amber);
}

.error-code {
  position: relative;
  margin: 0;
  color: rgba(67, 215, 238, 0.13);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(7rem, 20vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.7;
}

.error-terminal h1 {
  position: relative;
  max-width: 760px;
  margin: -0.08em 0 22px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.error-summary,
.error-guidance {
  position: relative;
  max-width: 690px;
  color: #b6cbd1;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

.error-summary {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.error-guidance {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.error-actions {
  position: relative;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-actions .button {
  min-height: 46px;
}

.error-diagnostic {
  position: relative;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.error-diagnostic strong {
  color: var(--cyan-soft);
  font-weight: 400;
}

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

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .archive-heading,
  .manual-heading,
  .caravan-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .operation-channel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .backend-list {
    max-height: min(52vh, 520px);
  }

  .operative-detail-hero {
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  }

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

  .manual-detail-hero {
    grid-template-columns: minmax(290px, 0.78fr) minmax(360px, 1.22fr);
  }

  .section-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 13px 18px;
  }

  .error-nav {
    min-height: 72px;
    padding: 12px 18px;
  }

  .error-nav .brand-mark {
    width: 40px;
    height: 40px;
  }

  .error-nav .brand small,
  .error-version {
    display: none;
  }

  .error-shell {
    min-height: calc(100vh - 72px);
    padding: 24px 14px;
  }

  .error-terminal {
    padding: 34px 22px 38px;
  }

  .error-code {
    font-size: clamp(6rem, 36vw, 9rem);
  }

  .error-terminal h1 {
    margin-top: -0.02em;
  }

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

  .error-actions .button {
    justify-content: center;
  }

  .error-diagnostic {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand small,
  .site-header nav a:not(.nav-download) {
    display: none;
  }

  .site-header nav {
    gap: 0;
  }

  .hero-copy {
    padding: 70px 20px 62px;
  }

  .signal-line {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-art figcaption {
    right: 15px;
    bottom: 15px;
    left: 15px;
    flex-direction: column;
    gap: 7px;
  }

  .telemetry,
  .release-panel,
  .operator-grid,
  .archive-toolbar,
  .manual-overview,
  .manual-toolbar,
  .manual-grid,
  .operative-detail-hero,
  .manual-detail-hero,
  .operative-detail-body,
  .manual-detail-body,
  .detail-profile-grid,
  .caravan-locked,
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .telemetry div {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .telemetry div:last-child {
    border-bottom: 0;
  }

  .field-notes,
  .release-panel,
  .library-gateway,
  .library-hero,
  .operative-archive,
  .field-manual,
  .caravan {
    padding-right: 20px;
    padding-left: 20px;
  }

  .library-gateway-index,
  .library-directory {
    grid-template-columns: 1fr;
  }

  .library-gateway-index a {
    min-height: 112px;
  }

  .archive-toolbar {
    padding: 14px;
  }

  .manual-tabs {
    grid-template-columns: repeat(4, 145px);
    overflow-x: auto;
  }

  .manual-overview {
    min-height: 0;
  }

  .manual-counts {
    min-height: 220px;
    border-top: 1px solid #28505b;
    border-left: 0;
  }

  .manual-toolbar {
    padding: 14px;
  }

  .manual-visible-count {
    min-height: 58px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .manual-card:hover {
    transform: none;
  }

  .manual-detail-media {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .manual-detail-media img {
    max-height: 420px;
  }

  .manual-detail-copy {
    padding: 36px 22px;
  }

  .manual-detail-footnote {
    grid-column: 1;
  }

  .archive-count {
    min-height: 58px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .operator-card:hover {
    transform: none;
  }

  .comparison {
    padding: 17px;
  }

  .caravan-locked {
    justify-items: start;
  }

  .dashboard-header,
  .comparison-heading {
    flex-direction: column;
  }

  .dashboard-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

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

  .metric-card {
    border-bottom: 1px solid var(--line);
  }

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

  .metric-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .dashboard-columns > section,
  .operation-channel,
  .dashboard-header {
    padding: 20px;
  }

  .backend-list {
    max-height: min(48vh, 420px);
  }

  .operative-detail-hero img {
    aspect-ratio: 1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .operative-detail-hero > div {
    padding: 34px 22px;
  }

  .operative-detail-body {
    gap: 30px;
  }

  .detail-abilities,
  .detail-profile-grid,
  .detail-footnote {
    grid-column: 1;
  }

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

  .identity-dialog {
    padding: 28px 20px;
  }

  .dialog-kicker {
    align-items: flex-start;
  }

  .system-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 20px;
  }

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

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

  .live-dot {
    animation: none;
  }

  .button,
  .operator-card,
  .manual-card {
    transition: none;
  }
}

@media (max-width: 430px) {
  .nav-download {
    display: none;
  }

  .brand strong {
    font-size: 0.73rem;
  }

  .dashboard-metrics,
  .ability-grid,
  .manual-counts {
    grid-template-columns: 1fr;
  }

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

  .metric-card:last-child {
    border-bottom: 0;
  }

  .manual-counts > div,
  .manual-counts > div:nth-child(2n),
  .manual-counts > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .manual-counts > div:last-child {
    border-bottom: 0;
  }

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