:root {
  --ink: #17201f;
  --muted: #66706c;
  --paper: #f4f6f2;
  --panel: #ffffff;
  --line: #d8ded7;
  --graphite: #111615;
  --teal: #1d9a96;
  --teal-dark: #126b68;
  --amber: #d99b28;
  --coral: #c95c3f;
  --leaf: #657d4f;
  --shadow: 0 22px 60px rgba(22, 32, 31, 0.14);
  --formula-font: "STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman", "Noto Serif KR", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(244, 246, 242, 0.9);
  border-bottom: 1px solid rgba(216, 222, 215, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--amber) 0 3px, transparent 4px),
    conic-gradient(from 20deg, transparent 0 22%, rgba(29, 154, 150, 0.35) 22% 34%, transparent 34% 58%, rgba(201, 92, 63, 0.35) 58% 70%, transparent 70%);
}

.brand-mascot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid rgba(29, 154, 150, 0.62);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 42, 43, 0.12);
  object-fit: cover;
  object-position: 50% 45%;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: #34403d;
  font-size: 0.95rem;
  font-weight: 700;
}

.top-nav a {
  position: relative;
  white-space: nowrap;
}

.top-nav a::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.top-nav .nas-link,
.top-nav .printer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(29, 154, 150, 0.45);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 42, 43, 0.08);
  color: #0f615e;
}

.top-nav .nas-link::after {
  display: none;
}

.top-nav .printer-link {
  border-color: rgba(217, 155, 40, 0.55);
  color: #7b4e05;
}

.top-nav .printer-link::after {
  display: none;
}

.top-nav .nas-link:hover,
.top-nav .nas-link:focus-visible,
.top-nav .printer-link:hover,
.top-nav .printer-link:focus-visible {
  border-color: rgba(201, 92, 63, 0.65);
  color: var(--coral);
}

.hero {
  position: relative;
  min-height: min(760px, 82svh);
  overflow: hidden;
  background: var(--graphite);
  color: #f7fbf8;
  isolation: isolate;
}

.hero-image,
.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1.05) contrast(1.04);
  z-index: -3;
}

.hero-canvas {
  z-index: -1;
  pointer-events: none;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 22, 21, 0.92) 0%, rgba(17, 22, 21, 0.72) 42%, rgba(17, 22, 21, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 22, 21, 0.94) 0%, rgba(17, 22, 21, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: clamp(78px, 11vw, 128px) 0 148px clamp(18px, 8vw, 104px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: keep-all;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  font-weight: 900;
}

.hero-copy {
  width: min(670px, 100%);
  margin: 24px 0 0;
  color: rgba(247, 251, 248, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.72;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.primary-link {
  background: var(--amber);
  color: #1f1710;
}

.secondary-link {
  border-color: rgba(247, 251, 248, 0.36);
  color: #f7fbf8;
}

.primary-link:hover,
.secondary-link:hover,
.filter-button:hover,
.mode-button:hover {
  transform: translateY(-1px);
}

.mascot-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 460px);
  margin-top: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(247, 251, 248, 0.18);
  border-radius: 999px;
  background: rgba(17, 22, 21, 0.42);
  color: rgba(247, 251, 248, 0.88);
  backdrop-filter: blur(12px);
  font-size: 0.94rem;
  font-weight: 800;
}

.mascot-callout img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid rgba(217, 155, 40, 0.72);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 45%;
}

.lab-mascot-callout {
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  width: min(520px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid rgba(247, 251, 248, 0.22);
  border-radius: 8px;
  background: rgba(17, 22, 21, 0.48);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid rgba(247, 251, 248, 0.16);
}

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

.metric-value {
  display: block;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
}

.metric-label {
  display: block;
  margin-top: 5px;
  color: rgba(247, 251, 248, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.intro-section,
.tech-section,
.deep-section,
.game-section,
.route-section,
.operators-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 96px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(18px, 5vw, 62px);
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.lab-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
}

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

.principle {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(217, 155, 40, 0.16), transparent 38%);
}

.principle-index {
  display: block;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.mascot-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(29, 154, 150, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 242, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(29, 154, 150, 0.15), transparent 42%);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.07);
}

.mascot-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: 50% 18%;
}

.mascot-strip div {
  padding: clamp(22px, 4vw, 38px);
}

.mascot-strip h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.mascot-strip p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.principle h3 {
  margin-top: 28px;
  font-size: 1.55rem;
}

.principle p,
.tech-card p,
.lab-copy p,
.route-step p {
  color: var(--muted);
}

.filter-bar,
.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.filter-bar {
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button,
.mode-button {
  position: relative;
  min-height: 38px;
  padding: 0 26px 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3a4542;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.filter-button.is-active,
.mode-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.filter-button::after {
  content: attr(data-count);
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(20, 32, 29, 0.09);
  color: currentColor;
  font-size: 0.66rem;
  line-height: 16px;
}

.filter-button.is-active::after {
  background: rgba(255, 255, 255, 0.18);
}

.filter-summary {
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

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

.tech-card {
  display: flex;
  min-height: 372px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(23, 32, 31, 0.03);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease,
    opacity 200ms ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 154, 150, 0.42);
  box-shadow: var(--shadow);
}

.tech-card.is-hidden {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-topline span,
.metric-label,
.operator-tag,
.profile-pill,
.sdr-mini-label {
  white-space: nowrap;
}

.tech-card h3 {
  margin-top: 18px;
  font-size: 1.42rem;
}

.formula {
  display: grid;
  place-items: center;
  min-height: 104px;
  margin: 20px 0 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(29, 154, 150, 0.09), rgba(217, 155, 40, 0.12)),
    #fbfcf8;
}

.formula-code {
  justify-content: center;
  place-items: center;
}

.formula > code,
.formula-text code,
.appendix-formula code {
  font-family: var(--formula-font);
}

.formula > code {
  display: block;
  max-width: 100%;
  justify-self: center;
  overflow: hidden;
  color: #14201d;
  font-size: var(--fit-font-size, clamp(0.82rem, 1vw, 0.98rem));
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
  text-overflow: clip;
  transform-origin: center center;
}

math {
  max-width: 100%;
  justify-self: center;
  color: #14201d;
  overflow: hidden;
  font-family: var(--formula-font);
  font-size: var(--fit-font-size, clamp(1rem, 1.35vw, 1.24rem));
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  text-align: center;
}

.formula-text {
  margin: -6px 0 14px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
}

.formula-text code {
  color: var(--teal-dark);
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tech-card p {
  margin: 0;
  font-size: 0.98rem;
}

.deep-section {
  padding-top: clamp(52px, 8vw, 88px);
}

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

.connection-card {
  min-width: 0;
  min-height: 282px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(201, 92, 63, 0.12), transparent 42%);
}

.connection-card span,
.profile-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 154, 150, 0.1);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.connection-card h3 {
  margin-top: 20px;
  font-size: 1.22rem;
}

.connection-card p {
  color: var(--muted);
}

.research-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(29, 154, 150, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.96), rgba(27, 45, 42, 0.94)),
    var(--graphite);
  color: #f7fbf8;
}

.research-strip h3,
.research-strip p {
  margin: 0;
}

.research-strip h3 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.research-strip p:not(.eyebrow) {
  margin-top: 12px;
  color: rgba(247, 251, 248, 0.74);
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.resource-download {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(300px, 0.48fr);
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 155, 40, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 242, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(217, 155, 40, 0.15), transparent 42%);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.07);
}

.resource-download h3,
.resource-download p {
  margin: 0;
}

.resource-download h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.resource-download p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
}

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

.resource-link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 154, 150, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.resource-link-list a:hover,
.resource-link-list a:focus-visible {
  border-color: rgba(201, 92, 63, 0.48);
  box-shadow: 0 10px 28px rgba(25, 35, 32, 0.08);
}

.resource-link-list span {
  min-width: 0;
  font-weight: 900;
  word-break: keep-all;
}

.resource-link-list strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--amber);
  color: #1f1710;
  font-size: 0.84rem;
  white-space: nowrap;
}

.math-appendix {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: #fbfcf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.appendix-intro {
  max-width: 920px;
  margin: 0 auto 24px;
  color: var(--muted);
  text-align: center;
}

.appendix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.appendix-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 32, 31, 0.08);
}

.appendix-card.is-wide {
  grid-column: span 2;
}

.appendix-card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
}

.appendix-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.appendix-formula {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f7f2);
}

.appendix-formula code {
  max-width: 100%;
  color: #14201d;
  font-size: var(--fit-font-size, clamp(0.88rem, 1vw, 1.04rem));
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.appendix-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.appendix-list li {
  color: #2c3835;
  font-size: 0.9rem;
  line-height: 1.55;
}

.appendix-list code {
  font-family: var(--formula-font);
  font-style: italic;
  font-weight: 400;
}

.appendix-graph-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.appendix-graph-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f5;
}

.appendix-graph-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
}

.appendix-graph {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: #ffffff;
}

.lab-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 10vw, 104px) clamp(18px, 6vw, 72px);
  background:
    linear-gradient(120deg, rgba(17, 22, 21, 0.96), rgba(29, 45, 41, 0.96)),
    var(--graphite);
  color: #f7fbf8;
}

.lab-copy {
  min-width: 0;
}

.lab-copy p {
  max-width: 550px;
  color: rgba(247, 251, 248, 0.74);
  font-size: 1.04rem;
}

.mode-switch {
  margin-top: 28px;
  border-color: rgba(247, 251, 248, 0.18);
  background: rgba(247, 251, 248, 0.08);
}

.mode-button {
  color: rgba(247, 251, 248, 0.78);
}

.mode-button.is-active {
  background: var(--amber);
  color: #21170c;
}

.signal-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 251, 248, 0.14);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.05);
}

#signalCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 520;
  background:
    linear-gradient(rgba(247, 251, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 251, 248, 0.05) 1px, transparent 1px),
    #111615;
  background-size: 44px 44px;
}

.signal-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px 18px;
  border-top: 1px solid rgba(247, 251, 248, 0.12);
}

.signal-readout span:first-child {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 900;
}

.signal-readout span:last-child {
  color: rgba(247, 251, 248, 0.72);
  text-align: right;
}

.sdr-section {
  padding: clamp(64px, 9vw, 104px) clamp(18px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(248, 250, 246, 0.96), rgba(238, 243, 240, 0.98)),
    var(--paper);
}

.sdr-console {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.sdr-controls,
.sdr-visual {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.sdr-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.sdr-controls label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.sdr-controls select,
.sdr-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(188, 198, 190, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.sdr-controls select {
  padding: 0 12px;
}

.sdr-controls input {
  padding: 0 52px 0 12px;
}

.sdr-controls label > input {
  padding: 0 12px;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding: 0 52px 0 12px;
}

.input-unit span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.sdr-control-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.sdr-ai-runtime {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(29, 154, 150, 0.28);
  border-radius: 8px;
  background: rgba(29, 154, 150, 0.08);
}

.sdr-ai-runtime span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sdr-ai-runtime strong {
  color: var(--teal-dark);
  font-size: 0.93rem;
  line-height: 1.35;
}

.sdr-ai-runtime p {
  margin: 0;
  color: #35423f;
  font-size: 0.82rem;
  line-height: 1.48;
}

.sdr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.sdr-primary,
.sdr-secondary {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.sdr-primary {
  border: 0;
  background: var(--teal);
  color: #ffffff;
}

.sdr-secondary {
  border: 1px solid rgba(29, 154, 150, 0.35);
  background: rgba(29, 154, 150, 0.08);
  color: var(--teal-dark);
}

.sdr-primary:disabled,
.sdr-secondary:disabled {
  cursor: wait;
  opacity: 0.58;
}

.sdr-visual {
  display: grid;
  grid-template-rows: auto auto minmax(280px, 1fr) auto auto auto;
  overflow: hidden;
}

.sdr-status {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.sdr-plot,
.sdr-fallback-plot {
  width: 100%;
  min-height: 320px;
  background:
    linear-gradient(rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    #fbfcf8;
  background-size: 42px 42px;
}

.sdr-fallback-plot {
  display: block;
  height: auto;
}

.sdr-demod-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.sdr-demod-panel > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sdr-demod-panel strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.sdr-demod-panel canvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 260;
  border: 1px solid rgba(32, 44, 41, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    #fbfcf8;
  background-size: 34px 34px;
}

.sdr-demod-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sdr-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.sdr-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 242, 0.86);
}

.sdr-state-grid div {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
}

.sdr-state-grid div:last-child {
  border-right: 0;
}

.sdr-readouts div {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

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

.sdr-readouts span,
.sdr-state-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sdr-readouts strong,
.sdr-state-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.95rem;
}

.sdr-ai-note {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(217, 155, 40, 0.1);
  color: #362a18;
  font-size: 0.94rem;
  line-height: 1.65;
}

.sdr-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(244, 247, 242, 0.72);
}

.sdr-mini-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(188, 198, 190, 0.72);
  border-radius: 8px;
  background: #ffffff;
}

.sdr-mini-panel > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sdr-mini-panel strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.sdr-mini-label {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sdr-mini-panel canvas {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 260;
  border: 1px solid rgba(32, 44, 41, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    #fbfcf8;
  background-size: 32px 32px;
}

.sdr-mini-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.sdr-flow span {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.sdr-flow span:not(:last-child)::after {
  position: absolute;
  right: -8px;
  color: var(--coral);
  content: ">";
  font-weight: 900;
}

.sdr-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sdr-guide-card,
.sdr-buying-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.07);
}

.sdr-guide-card {
  padding: 18px;
}

.sdr-guide-card h3,
.sdr-buying-guide h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.sdr-guide-card p,
.sdr-buying-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.sdr-buying-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(260px, 0.45fr);
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
}

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

.sdr-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(29, 154, 150, 0.24);
  border-radius: 8px;
  background: rgba(29, 154, 150, 0.07);
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.sdr-link-list a::after {
  content: "↗";
  color: var(--teal);
}

.radio-radar {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.radio-radar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(29, 154, 150, 0.1), rgba(217, 155, 40, 0.08)),
    #ffffff;
}

.radio-radar-header .eyebrow {
  margin: 0 0 5px;
}

.radio-radar-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.radio-radar-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.radio-radar-status-card {
  display: flex;
  flex: 0 0 min(250px, 34%);
  align-items: center;
  gap: 11px;
  min-width: 210px;
  padding: 11px 13px;
  border: 1px solid rgba(29, 154, 150, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.radio-radar-led {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 2px rgba(29, 154, 150, 0.22);
}

.radio-radar-status-card div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.radio-radar-status-card strong,
.radio-radar-status-card span:not(.radio-radar-led) {
  overflow-wrap: anywhere;
}

.radio-radar-status-card strong {
  color: var(--teal-dark);
  font-size: 0.91rem;
}

.radio-radar-status-card span:not(.radio-radar-led) {
  color: var(--muted);
  font-size: 0.76rem;
}

.radio-radar[data-state="scanning"] .radio-radar-led {
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(217, 155, 40, 0.24);
  animation: radioRadarPulse 1.15s ease-in-out infinite;
}

.radio-radar[data-state="success"] .radio-radar-led {
  background: var(--leaf);
  box-shadow: 0 0 0 2px rgba(101, 125, 79, 0.24);
}

.radio-radar[data-state="error"] .radio-radar-led {
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(201, 92, 63, 0.24);
}

.radio-radar[data-state="error"] .radio-radar-status-card strong {
  color: #8c3825;
}

@keyframes radioRadarPulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.radio-radar-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.31fr) minmax(0, 0.69fr);
  min-width: 0;
}

.radio-radar-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(244, 247, 242, 0.72);
}

.radio-radar-controls form {
  display: grid;
  gap: 12px;
}

.radio-radar-controls label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.radio-radar-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(188, 198, 190, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.radio-radar-controls .sdr-primary {
  width: 100%;
}

.radio-radar-progress {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(--teal);
}

.radio-radar-progress[hidden] {
  display: none;
}

.radio-radar-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.radio-radar-device-grid div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
}

.radio-radar-device-grid div:last-child {
  border-right: 0;
}

.radio-radar-device-grid span,
.radio-radar-device-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.radio-radar-device-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radio-radar-device-grid strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.84rem;
}

.radio-radar-results {
  display: grid;
  align-content: start;
  min-width: 0;
  background: #ffffff;
}

.radio-radar-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
}

.radio-radar-results-heading h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.radio-radar-results-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

.radio-radar-spectrum {
  min-width: 0;
  margin: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(32, 44, 41, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    #fbfcf8;
  background-size: 38px 38px;
}

.radio-radar-plot,
.radio-radar-fallback-plot {
  display: block;
  width: 100%;
  min-height: 270px;
}

.radio-radar-fallback-plot {
  height: auto;
  aspect-ratio: 1000 / 340;
}

.radio-radar-plot[hidden],
.radio-radar-fallback-plot[hidden] {
  display: none;
}

.radio-radar-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.radio-radar-result {
  display: grid;
  grid-template-columns: 34px minmax(118px, 0.72fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(188, 198, 190, 0.72);
  border-radius: 8px;
  background: #ffffff;
}

.radio-radar-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 155, 40, 0.14);
  color: #745011;
  font-size: 0.78rem;
  font-weight: 900;
}

.radio-radar-result-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.radio-radar-result-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.radio-radar-result-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
}

.radio-radar-strength {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.radio-radar-strength span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

.radio-radar-strength-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 154, 150, 0.11);
}

.radio-radar-strength-bar::before {
  display: block;
  width: var(--radio-radar-strength, 0%);
  height: 100%;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.radio-radar-result .sdr-secondary {
  padding: 0 12px;
  white-space: nowrap;
}

.radio-radar-empty {
  padding: 18px;
  border: 1px dashed rgba(188, 198, 190, 0.92);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.radio-radar button:focus-visible,
.radio-radar select:focus-visible {
  outline: 3px solid rgba(29, 154, 150, 0.32);
  outline-offset: 2px;
}

.rf-shadow {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.rf-shadow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 155, 40, 0.14), transparent 28%),
    linear-gradient(115deg, rgba(29, 154, 150, 0.12), rgba(101, 125, 79, 0.08)),
    #ffffff;
}

.rf-shadow-header .eyebrow {
  margin: 0 0 5px;
}

.rf-shadow-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.rf-shadow-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.rf-shadow-status-card {
  display: flex;
  flex: 0 0 min(260px, 36%);
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 11px 13px;
  border: 1px solid rgba(29, 154, 150, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.rf-shadow-status-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 3px;
  background: var(--teal);
  box-shadow: 0 0 0 2px rgba(29, 154, 150, 0.22);
  transform: rotate(45deg);
}

.rf-shadow-status-card div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rf-shadow-status-card strong,
.rf-shadow-status-card span:not(.rf-shadow-status-mark) {
  overflow-wrap: anywhere;
}

.rf-shadow-status-card strong {
  color: var(--teal-dark);
  font-size: 0.91rem;
}

.rf-shadow-status-card span:not(.rf-shadow-status-mark) {
  color: var(--muted);
  font-size: 0.76rem;
}

.rf-shadow[data-state="calibrating"] .rf-shadow-status-mark,
.rf-shadow[data-state="stopping"] .rf-shadow-status-mark {
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(217, 155, 40, 0.26);
  animation: rfShadowStatusPulse 1s ease-in-out infinite;
}

.rf-shadow[data-state="monitoring"] .rf-shadow-status-mark {
  background: var(--leaf);
  box-shadow: 0 0 0 2px rgba(101, 125, 79, 0.25);
}

.rf-shadow[data-state="movement"] .rf-shadow-status-mark,
.rf-shadow[data-state="error"] .rf-shadow-status-mark {
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(201, 92, 63, 0.26);
}

.rf-shadow[data-state="movement"] .rf-shadow-status-mark {
  animation: rfShadowMovementPulse 0.62s ease-out 2;
}

.rf-shadow[data-state="error"] .rf-shadow-status-card strong {
  color: #8c3825;
}

@keyframes rfShadowStatusPulse {
  0%,
  100% {
    opacity: 0.46;
    transform: rotate(45deg) scale(0.78);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.08);
  }
}

@keyframes rfShadowMovementPulse {
  0% {
    transform: rotate(45deg) scale(0.75);
  }
  65% {
    box-shadow: 0 0 0 9px rgba(201, 92, 63, 0.1);
    transform: rotate(45deg) scale(1.2);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

.rf-shadow-body {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
  min-width: 0;
}

.rf-shadow-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(244, 247, 242, 0.74);
}

.rf-shadow-controls form,
.rf-shadow-controls label {
  display: grid;
}

.rf-shadow-controls form {
  gap: 12px;
}

.rf-shadow-controls label {
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.rf-shadow-controls input,
.rf-shadow-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(188, 198, 190, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.rf-shadow-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(188, 198, 190, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.rf-shadow-input-unit input {
  border: 0;
  border-radius: 0;
}

.rf-shadow-input-unit > span {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.rf-shadow-controls .sdr-control-note {
  margin: -4px 0 0;
}

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

.rf-shadow-reset {
  min-height: 42px;
  border: 1px dashed rgba(217, 155, 40, 0.72);
  border-radius: 8px;
  background: rgba(217, 155, 40, 0.08);
  color: #71501a;
  cursor: pointer;
  font-weight: 900;
}

.rf-shadow-reset:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.rf-shadow-calibration {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(217, 155, 40, 0.34);
  border-radius: 8px;
  background: rgba(217, 155, 40, 0.08);
}

.rf-shadow-calibration[hidden] {
  display: none;
}

.rf-shadow-calibration div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6e4b10;
  font-size: 0.76rem;
}

.rf-shadow-calibration progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  accent-color: var(--amber);
}

.rf-shadow-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.rf-shadow-readouts div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rf-shadow-readouts div:nth-child(2n) {
  border-right: 0;
}

.rf-shadow-readouts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.rf-shadow-readouts span,
.rf-shadow-readouts strong {
  display: block;
  overflow-wrap: anywhere;
}

.rf-shadow-readouts span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-shadow-readouts strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.84rem;
}

.rf-shadow-results {
  display: grid;
  align-content: start;
  min-width: 0;
  background: #ffffff;
}

.rf-shadow-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px 12px;
}

.rf-shadow-results-heading h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.rf-shadow-motion {
  display: flex;
  min-width: 150px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(101, 125, 79, 0.28);
  border-radius: 8px;
  background: rgba(101, 125, 79, 0.08);
}

.rf-shadow-motion > span:last-child {
  display: grid;
  gap: 1px;
}

.rf-shadow-motion small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-shadow-motion strong {
  color: #48603a;
  font-size: 0.89rem;
}

.rf-shadow-motion-mark {
  display: flex;
  width: 34px;
  height: 28px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.rf-shadow-motion-mark i {
  display: block;
  width: 5px;
  border-radius: 3px 3px 1px 1px;
  background: var(--leaf);
}

.rf-shadow-motion-mark i:nth-child(1) {
  height: 8px;
}

.rf-shadow-motion-mark i:nth-child(2) {
  height: 15px;
}

.rf-shadow-motion-mark i:nth-child(3) {
  height: 23px;
}

.rf-shadow-motion[data-detected="true"] {
  border-color: rgba(201, 92, 63, 0.42);
  background:
    repeating-linear-gradient(135deg, rgba(201, 92, 63, 0.08) 0 5px, transparent 5px 10px),
    #ffffff;
}

.rf-shadow-motion[data-detected="true"] strong {
  color: #8c3825;
}

.rf-shadow-motion[data-detected="true"] .rf-shadow-motion-mark i {
  background: var(--coral);
  animation: rfShadowBars 0.48s ease-in-out 2 alternate;
}

.rf-shadow-motion[data-detected="true"] .rf-shadow-motion-mark i:nth-child(2) {
  animation-delay: 0.08s;
}

.rf-shadow-motion[data-detected="true"] .rf-shadow-motion-mark i:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rfShadowBars {
  to {
    height: 27px;
    transform: translateY(-2px);
  }
}

.rf-shadow-chart {
  min-width: 0;
  margin: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(32, 44, 41, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 44, 41, 0.045) 1px, transparent 1px),
    #fbfcf8;
  background-size: 38px 38px;
}

.rf-shadow-plot,
.rf-shadow-fallback-plot {
  display: block;
  width: 100%;
  min-height: 280px;
}

.rf-shadow-fallback-plot {
  height: auto;
  aspect-ratio: 1000 / 360;
}

.rf-shadow-plot[hidden],
.rf-shadow-fallback-plot[hidden] {
  display: none;
}

.rf-shadow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 10px 16px 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

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

.rf-shadow-legend i {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--teal);
}

.rf-shadow-legend .is-baseline {
  border-top: 2px dashed var(--amber);
  background: transparent;
}

.rf-shadow-legend .is-threshold {
  border-top: 2px dotted var(--coral);
  background: transparent;
}

.rf-shadow-legend .is-movement {
  width: 9px;
  height: 9px;
  border: 2px solid var(--coral);
  background: transparent;
  transform: rotate(45deg);
}

.rf-shadow-caption {
  margin: 0;
  padding: 10px 16px 15px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rf-shadow button:focus-visible,
.rf-shadow input:focus-visible,
.rf-shadow select:focus-visible {
  outline: 3px solid rgba(29, 154, 150, 0.32);
  outline-offset: 2px;
}

.printer-section {
  padding-top: clamp(58px, 8vw, 92px);
}

.printer-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
  overflow: hidden;
}

.printer-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.94), rgba(28, 51, 48, 0.92)),
    var(--graphite);
  color: #f7fbf8;
}

.printer-diagram span {
  display: grid;
  place-items: center;
  flex: 1 1 118px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(247, 251, 248, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.printer-diagram i {
  flex: 0 0 22px;
  width: 22px;
  height: 2px;
  background: var(--amber);
}

.printer-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
}

.printer-copy h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.printer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.printer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.game-section {
  padding-top: clamp(60px, 9vw, 98px);
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.56fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
  overflow: hidden;
}

.game-visual {
  min-height: 380px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.95), rgba(27, 45, 42, 0.94)),
    var(--graphite);
}

.game-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 332px;
  overflow: hidden;
  border: 1px solid rgba(247, 251, 248, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 251, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 251, 248, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(29, 154, 150, 0.2), transparent 42%);
  background-size: 34px 34px, 34px 34px, auto;
}

.game-map::before,
.game-map::after {
  position: absolute;
  inset: 18% 16%;
  content: "";
  border: 1px solid rgba(217, 155, 40, 0.28);
  border-radius: 50%;
}

.game-map::after {
  inset: 32% 30%;
  border-color: rgba(201, 92, 63, 0.32);
}

.game-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #f7fbf8;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 0 0 8px rgba(247, 251, 248, 0.08);
}

.game-node.is-server {
  left: 50%;
  top: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
}

.node-a {
  left: 12%;
  top: 18%;
}

.node-b {
  right: 12%;
  top: 22%;
}

.node-c {
  left: 18%;
  bottom: 18%;
}

.game-packet {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(29, 154, 150, 0.95);
  animation: gamePacket 3.4s linear infinite;
}

.packet-a {
  left: 18%;
  top: 28%;
}

.packet-b {
  right: 20%;
  top: 34%;
  animation-delay: -1.2s;
}

.packet-c {
  left: 24%;
  bottom: 26%;
  animation-delay: -2.1s;
}

.game-copy {
  padding: clamp(24px, 4vw, 42px);
}

.game-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.game-copy p {
  margin: 0;
  color: var(--muted);
}

.game-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.game-info-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216, 222, 215, 0.9);
  border-radius: 8px;
  background: rgba(244, 247, 242, 0.82);
}

.game-info-list dt {
  color: var(--leaf);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.game-info-list dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-link.light {
  border-color: rgba(29, 154, 150, 0.3);
  color: var(--teal-dark);
}

@keyframes gamePacket {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0.25;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translate(150px, 92px) scale(1.08);
    opacity: 0.08;
  }
}

@keyframes orbitSparkA {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(74px, 48px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes orbitSparkB {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-66px, 58px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes orbitSparkC {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-58px, -82px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes chipPulseA {
  0% {
    transform: translateX(0);
    opacity: 0.25;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(160px);
    opacity: 0.12;
  }
}

@keyframes chipPulseB {
  0% {
    transform: translateX(0);
    opacity: 0.15;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(-160px);
    opacity: 0.12;
  }
}

.route-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-step {
  position: relative;
  min-height: 238px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.route-step::after {
  position: absolute;
  top: 32px;
  right: -13px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--coral);
}

.route-step:last-child::after {
  display: none;
}

.route-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
}

.route-step h3 {
  margin-top: 22px;
  font-size: 1.14rem;
}

.route-step p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.operators-section {
  padding-top: 0;
}

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

.operator-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(29, 154, 150, 0.15), transparent 42%);
}

.operator-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 154, 150, 0.1);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-card h3 {
  margin-top: 22px;
  font-size: 1.18rem;
}

.operator-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 30px 18px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.cso-page {
  background:
    linear-gradient(180deg, #eef3f0 0%, #f7f8f3 48%, #eef2ec 100%);
}

.profile-page,
.rtl-page {
  background:
    linear-gradient(180deg, #eef3f0 0%, #f8faf6 50%, #edf2ef 100%);
}

.cso-hero {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 6vw, 72px);
}

.cso-hero-grid,
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(280px, 0.48fr);
  gap: 18px;
  align-items: stretch;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cso-hero-copy,
.profile-hero-copy {
  min-height: 520px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(216, 222, 215, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(217, 155, 40, 0.2), transparent 38%);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.cso-hero-copy h1,
.profile-hero-copy h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.cso-hero-copy p,
.profile-hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.72;
}

.cso-hero-copy .game-actions,
.profile-hero-copy .game-actions {
  margin-top: 32px;
}

.cso-hero-visual,
.profile-hero-visual {
  min-height: 520px;
}

.profile-hero-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.96), rgba(25, 43, 40, 0.94)),
    var(--graphite);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.research-orbit,
.rtl-chip-visual {
  position: relative;
  width: min(460px, calc(100% - 48px));
  aspect-ratio: 1;
}

.research-orbit {
  display: grid;
  place-items: center;
}

.research-orbit::before {
  position: absolute;
  inset: 9%;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 155, 40, 0.2), transparent 18%),
    radial-gradient(circle at 30% 24%, rgba(29, 154, 150, 0.22), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(201, 92, 63, 0.2), transparent 26%);
}

.orbit-core {
  position: relative;
  z-index: 3;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(247, 251, 248, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 155, 40, 0.96), rgba(29, 154, 150, 0.78));
  color: #111615;
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow:
    0 0 0 12px rgba(247, 251, 248, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.24);
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(247, 251, 248, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 74%;
  height: 42%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.ring-b {
  width: 54%;
  height: 86%;
  transform: translate(-50%, -50%) rotate(24deg);
}

.ring-c {
  width: 88%;
  height: 88%;
  border-color: rgba(217, 155, 40, 0.2);
}

.orbit-topic {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 74px;
  min-height: 38px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(247, 251, 248, 0.2);
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.92);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.topic-a {
  left: 8%;
  top: 18%;
}

.topic-b {
  right: 8%;
  top: 22%;
}

.topic-c {
  right: 12%;
  bottom: 20%;
}

.topic-d {
  left: 14%;
  bottom: 16%;
}

.topic-e {
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
}

.orbit-spark,
.signal-pulse {
  position: absolute;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(217, 155, 40, 0.95);
}

.spark-a {
  left: 30%;
  top: 38%;
  animation: orbitSparkA 4.6s linear infinite;
}

.spark-b {
  right: 28%;
  top: 42%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(29, 154, 150, 0.95);
  animation: orbitSparkB 5.2s linear infinite;
}

.spark-c {
  left: 48%;
  bottom: 24%;
  background: var(--coral);
  box-shadow: 0 0 18px rgba(201, 92, 63, 0.9);
  animation: orbitSparkC 5.8s linear infinite;
}

.rtl-chip-visual {
  display: grid;
  place-items: center;
}

.rtl-chip-visual::before {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgba(247, 251, 248, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 251, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 251, 248, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

.chip-body {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(240px, 62%);
  height: min(190px, 48%);
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(247, 251, 248, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, #1b2523, #111615);
  color: #f7fbf8;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 26px 70px rgba(0, 0, 0, 0.36);
}

.chip-body span {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 950;
}

.chip-body small {
  color: rgba(247, 251, 248, 0.66);
  font-size: 0.82rem;
  font-weight: 850;
}

.rf-port,
.usb-port {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 70px;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #111615;
  font-weight: 950;
}

.rf-port {
  left: 2%;
  top: 50%;
  background: var(--amber);
  transform: translateY(-50%);
}

.usb-port {
  right: 2%;
  top: 50%;
  background: #f7fbf8;
  transform: translateY(-50%);
}

.chip-pin {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.28);
}

.pin-a {
  left: 18%;
  top: 34%;
}

.pin-b {
  left: 18%;
  bottom: 34%;
}

.pin-c {
  right: 18%;
  top: 34%;
}

.pin-d {
  right: 18%;
  bottom: 34%;
}

.signal-trace {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 155, 40, 0.2), rgba(29, 154, 150, 0.8), rgba(247, 251, 248, 0.22));
}

.trace-a {
  left: 14%;
  right: 14%;
  top: 50%;
}

.trace-b {
  left: 30%;
  right: 30%;
  top: 28%;
  transform: rotate(90deg);
}

.pulse-a {
  left: 17%;
  top: calc(50% - 5px);
  animation: chipPulseA 2.4s linear infinite;
}

.pulse-b {
  right: 18%;
  top: calc(50% - 5px);
  background: var(--teal);
  box-shadow: 0 0 18px rgba(29, 154, 150, 0.95);
  animation: chipPulseB 2.4s linear infinite;
}

.cso-section,
.profile-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.server-board,
.cso-flow {
  display: grid;
  gap: 14px;
}

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

.server-board article,
.cso-flow article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(25, 35, 32, 0.06);
}

.server-board span,
.cso-flow span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 154, 150, 0.1);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.server-board strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.server-board p,
.cso-flow p,
.download-card p {
  color: var(--muted);
}

.cso-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cso-flow h3 {
  margin-top: 20px;
  font-size: 1.14rem;
}

.cso-flow p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(29, 154, 150, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 242, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(29, 154, 150, 0.16), transparent 42%);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.08);
}

.download-card h2,
.download-card p {
  margin: 0;
}

.download-card h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.download-card p {
  max-width: 760px;
  margin-top: 12px;
}

.profile-card-grid,
.rtl-card-grid,
.tool-grid {
  display: grid;
  gap: 14px;
}

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

.rtl-card-grid,
.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-card,
.rtl-card,
.tool-card,
.signal-chain-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(25, 35, 32, 0.06);
}

.profile-card h3,
.rtl-card h3,
.tool-card h3,
.signal-chain-card h3 {
  margin-top: 18px;
  font-size: 1.16rem;
}

.profile-card p,
.rtl-card p,
.tool-card p,
.signal-chain-card p,
.profile-note p {
  color: var(--muted);
}

.signal-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.signal-chain-card {
  position: relative;
  min-height: 166px;
}

.signal-chain-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  color: var(--coral);
  content: ">";
  font-weight: 950;
  transform: translateY(-50%);
}

.profile-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 155, 40, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 242, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(217, 155, 40, 0.16), transparent 42%);
}

.profile-note h2,
.profile-note p {
  margin: 0;
}

.profile-note p {
  margin-top: 12px;
}

.lab-page {
  background:
    linear-gradient(180deg, rgba(244, 246, 242, 0.9), rgba(244, 246, 242, 1) 560px),
    var(--paper);
}

.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  min-height: min(720px, 78svh);
  padding: clamp(72px, 10vw, 118px) clamp(18px, 7vw, 96px) clamp(48px, 7vw, 78px);
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.95), rgba(31, 55, 50, 0.92)),
    var(--graphite);
  color: #f7fbf8;
}

.lab-hero h1 {
  max-width: none;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.lab-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(247, 251, 248, 0.84);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

.lab-orbit {
  position: relative;
  aspect-ratio: 1;
  min-height: 360px;
  border: 1px solid rgba(247, 251, 248, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 196, 182, 0.22), transparent 28%),
    radial-gradient(circle at 35% 25%, rgba(217, 155, 40, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.05);
}

.lab-orbit::before,
.lab-orbit::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(247, 251, 248, 0.14);
  border-radius: 50%;
}

.lab-orbit::after {
  inset: 28%;
}

.orbit-core,
.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: 0;
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  background: var(--teal);
  color: #042522;
  transform: translate(-50%, -50%);
}

.orbit-node {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(247, 251, 248, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbf8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.node-nas {
  top: 8%;
  left: 48%;
}

.node-ai {
  top: 28%;
  right: 7%;
}

.node-sdr {
  right: 14%;
  bottom: 14%;
}

.node-printer {
  bottom: 12%;
  left: 16%;
}

.node-cso {
  top: 30%;
  left: 6%;
}

.lab-section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 84px) 0;
}

.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.lab-toolbar span {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.lab-status-card,
.atlas-card,
.workshop-card,
.assistant-panel,
.experiment-log,
.cso-lab-board,
.knowledge-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(25, 35, 32, 0.07);
}

.lab-status-card {
  position: relative;
  min-height: 174px;
  padding: 18px;
  overflow: hidden;
}

.lab-status-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: var(--amber);
}

.lab-status-card.is-ok::before {
  background: var(--teal);
}

.lab-status-card.is-warn::before {
  background: var(--amber);
}

.lab-status-card.is-down::before {
  background: var(--coral);
}

.lab-status-card span,
.atlas-card span,
.cso-lab-board span {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab-status-card strong {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.lab-status-card p,
.atlas-card p,
.workshop-card p,
.cso-lab-board p,
.assistant-answer,
.experiment-log li {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.assistant-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(280px, 0.34fr) minmax(0, 0.3fr);
  gap: 16px;
  padding: 18px;
}

.assistant-prompts {
  display: grid;
  gap: 10px;
}

.assistant-prompts button,
.knowledge-result button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(29, 154, 150, 0.22);
  border-radius: 8px;
  background: rgba(29, 154, 150, 0.08);
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.assistant-prompts button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.assistant-custom,
.experiment-log form,
.knowledge-search {
  display: grid;
  gap: 10px;
}

.assistant-custom label,
.knowledge-search label,
.experiment-log label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.assistant-custom textarea,
.experiment-log textarea,
.knowledge-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
}

.assistant-custom textarea,
.experiment-log textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.assistant-answer {
  min-height: 210px;
  padding: 16px;
  border-radius: 8px;
  background: #f6f8f3;
  white-space: pre-wrap;
}

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

.atlas-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.atlas-card h3,
.workshop-card h3,
.cso-lab-board strong,
.knowledge-result h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.atlas-card canvas {
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 222, 215, 0.88);
  border-radius: 8px;
  background: #fbfcf8;
}

.experiment-log {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 0.55fr);
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
}

.experiment-log h3 {
  margin: 0 0 10px;
}

.experiment-log ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experiment-log li {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8f3;
}

.workshop-card {
  min-height: 176px;
  padding: 18px;
}

.workshop-card h3 {
  margin: 0 0 10px;
}

.lab-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.cso-lab-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.cso-lab-board div {
  min-height: 200px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.cso-lab-board div:last-child {
  border-right: 0;
}

.cso-lab-board strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.knowledge-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(260px, 0.38fr);
  gap: 18px;
  padding: 18px;
}

.knowledge-search {
  grid-column: 1 / -1;
}

.knowledge-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.knowledge-search input {
  min-height: 44px;
  padding: 0 12px;
}

.knowledge-results {
  display: grid;
  gap: 10px;
}

.knowledge-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.knowledge-result span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.knowledge-result code {
  display: block;
  overflow-wrap: anywhere;
  color: #17201f;
  font-family: var(--formula-font);
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  font-style: italic;
}

.knowledge-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-resource-links {
  align-self: start;
}

.chatbot-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(29, 154, 150, 0.42);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.chatbot-widget.is-open .chatbot-toggle {
  display: none;
}

.chatbot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(29, 154, 150, 0.14);
}

.chatbot-panel {
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(17, 22, 21, 0.22);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--graphite);
  color: #ffffff;
}

.chatbot-header p,
.chatbot-header h2 {
  margin: 0;
}

.chatbot-header p {
  color: rgba(247, 251, 248, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-header h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 251, 248, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 310px;
  padding: 14px;
  overflow-y: auto;
  background: #f9faf7;
}

.chatbot-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chatbot-message.is-bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.chatbot-message.is-user {
  align-self: flex-end;
  background: var(--teal-dark);
  color: #ffffff;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chatbot-form textarea {
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

.chatbot-form button {
  min-width: 70px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--amber);
  color: #111615;
  cursor: pointer;
  font-weight: 900;
}

.chatbot-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .section-heading,
  .lab-hero,
  .lab-section,
  .mascot-strip,
  .sdr-console,
  .radio-radar-body,
  .rf-shadow-body,
  .game-feature,
  .cso-hero-grid,
  .profile-hero-grid,
  .research-strip,
  .resource-download,
  .profile-note {
    grid-template-columns: 1fr;
  }

  .radio-radar-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rf-shadow-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-grid,
  .tech-grid,
  .lab-status-grid,
  .atlas-grid,
  .workshop-grid,
  .connection-grid,
  .sdr-chart-grid,
  .sdr-state-grid,
  .profile-card-grid,
  .rtl-card-grid,
  .tool-grid,
  .signal-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appendix-card.is-wide {
    grid-column: auto;
  }

  .appendix-graph-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-list,
  .assistant-panel,
  .experiment-log,
  .cso-lab-board,
  .knowledge-panel,
  .sdr-guide-grid,
  .sdr-buying-guide,
  .sdr-flow,
  .game-info-list,
  .server-board,
  .cso-flow,
  .download-card {
    grid-template-columns: 1fr;
  }

  .sdr-flow span:not(:last-child)::after {
    right: auto;
    bottom: -14px;
    transform: rotate(90deg);
  }

  .signal-chain-card:not(:last-child)::after {
    display: none;
  }

  .lab-hero {
    min-height: auto;
  }

  .lab-orbit {
    width: min(420px, 100%);
    justify-self: center;
  }

  .mascot-strip img {
    max-height: 360px;
  }

  .cso-lab-board div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cso-lab-board div:last-child {
    border-bottom: 0;
  }

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

  .route-step {
    min-height: auto;
  }

  .route-step::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 38px;
    width: 2px;
    height: 14px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
  }

  .top-nav .nas-link,
  .top-nav .printer-link {
    flex: 1 1 100%;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    width: calc(100% - 30px);
    padding: 62px 0 190px 15px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .mascot-callout {
    align-items: flex-start;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .mascot-strip img {
    min-height: 220px;
    max-height: 280px;
  }

  .hero-metrics {
    left: 15px;
    right: 15px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 251, 248, 0.16);
  }

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

  .principle-grid,
  .tech-grid,
  .lab-status-grid,
  .atlas-grid,
  .workshop-grid,
  .assistant-panel,
  .experiment-log,
  .cso-lab-board,
  .knowledge-panel,
  .connection-grid,
  .operator-grid,
    .game-info-list,
    .printer-panel,
    .profile-card-grid,
  .rtl-card-grid,
  .tool-grid,
  .signal-chain {
    grid-template-columns: 1fr;
  }

  .appendix-grid,
  .appendix-graph-row {
    grid-template-columns: 1fr;
  }

  .game-visual {
    min-height: 280px;
  }

  .game-map {
    min-height: 236px;
  }

  .cso-hero-copy,
  .cso-hero-visual,
  .profile-hero-copy,
  .profile-hero-visual {
    min-height: auto;
  }

  .tech-card {
    min-height: auto;
  }

  .filter-bar,
  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .filter-button,
  .mode-button {
    width: 100%;
  }

  .lab-hero {
    padding: 54px 15px 44px;
  }

  .lab-orbit {
    min-height: 300px;
  }

  .orbit-node {
    width: 58px;
    height: 58px;
    font-size: 0.82rem;
  }

  .orbit-core {
    width: 82px;
    height: 82px;
  }

  .knowledge-search div,
  .lab-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .knowledge-search div {
    display: grid;
  }

  .knowledge-search button,
  .lab-toolbar button {
    width: 100%;
  }

  .signal-readout {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-readout span:last-child {
    text-align: left;
  }

  .radio-radar-header,
  .radio-radar-results-heading,
  .rf-shadow-header,
  .rf-shadow-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .radio-radar-status-card {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .rf-shadow-status-card {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .rf-shadow-motion {
    justify-content: flex-start;
  }

  .radio-radar-results-heading p {
    max-width: none;
    text-align: left;
  }

  .radio-radar-device-grid {
    grid-template-columns: 1fr;
  }

  .radio-radar-device-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .radio-radar-device-grid div:last-child {
    border-bottom: 0;
  }

  .radio-radar-result {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .radio-radar-strength,
  .radio-radar-result .sdr-secondary {
    grid-column: 1 / -1;
  }

  .radio-radar-result .sdr-secondary {
    width: 100%;
  }

  .resource-link-list a {
    grid-template-columns: 1fr;
  }

  .resource-link-list strong {
    justify-content: center;
  }

  .sdr-actions,
  .sdr-readouts,
  .sdr-chart-grid,
  .sdr-state-grid {
    grid-template-columns: 1fr;
  }

  .sdr-readouts div,
  .sdr-state-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sdr-readouts div:last-child,
  .sdr-state-grid div:last-child {
    border-bottom: 0;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .chatbot-toggle {
    justify-self: end;
  }

  .chatbot-panel {
    width: 100%;
  }

  .chatbot-messages {
    height: 52svh;
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .rf-shadow-header,
  .rf-shadow-controls {
    padding: 15px;
  }

  .rf-shadow-readouts {
    grid-template-columns: 1fr;
  }

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

  .rf-shadow-readouts div:last-child {
    border-bottom: 0;
  }

  .rf-shadow-chart {
    margin: 0 10px;
  }

  .rf-shadow-plot,
  .rf-shadow-fallback-plot {
    min-height: 230px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
