.inline-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.activity .registry-note {
  display: block;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.sovereignty {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: end;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sovereignty h2,
.agent-systems h2 {
  max-width: 900px;
  margin: 12px 0 17px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.sovereignty p,
.agent-copy > p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.sovereignty-points span {
  min-height: 74px;
  padding: 19px 14px 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font: 850 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
}

.sovereignty-points span:nth-child(even) {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.explorer-choice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  cursor: pointer;
}

.explorer-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.explorer-choice strong,
.explorer-choice small {
  display: block;
}

.explorer-choice strong {
  font-size: 13px;
}

.explorer-choice small,
.explorer-choice-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.explorer-choice small {
  margin-top: 4px;
}

.explorer-choice-status {
  margin: 8px 0 0;
}

.research-frontier,
.news-pulse,
.network-poll,
.agent-systems {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.research-frontier > h2,
.news-head h2,
.poll-copy h2 {
  max-width: 980px;
  margin: 12px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.frontier-intro,
.poll-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.frontier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 8px;
  border-top: 1px solid var(--line);
}

.frontier-grid article {
  min-height: 205px;
  padding: 28px 30px 28px 0;
  border-bottom: 1px solid var(--line);
}

.frontier-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.frontier-grid article > span,
.news-meta,
.poll-meta {
  color: var(--muted);
  font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frontier-grid h3 {
  margin: 13px 0 10px;
  font-size: 22px;
}

.frontier-grid p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.news-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.news-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-card {
  display: flex;
  min-width: 0;
  min-height: 166px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.news-card.featured {
  min-height: 245px;
  padding: 30px 30px 27px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.news-card.featured + .news-card.featured {
  padding-right: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.news-card h3 {
  margin: 18px 0 24px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.news-card.featured h3 {
  max-width: 520px;
  font-size: clamp(23px, 3vw, 34px);
}

.news-summary {
  max-width: 540px;
  margin: -9px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.news-live-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.news-live-head > div {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.news-live-head strong {
  color: var(--text);
  font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
}

.news-latest .news-card {
  min-height: 144px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.news-latest .news-card h3 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(18px, 2.4vw, 27px);
}

.news-open {
  margin-top: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.news-more {
  position: relative;
  padding-top: 4px;
}

.news-more summary {
  padding: 20px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.news-more summary::-webkit-details-marker {
  display: none;
}

.news-more summary span {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  transition: transform 160ms ease;
}

.news-more[open] summary span {
  transform: rotate(180deg);
}

.news-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 34%);
  grid-auto-flow: column;
  gap: 12px;
  padding: 6px 0 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.news-rail .news-card {
  scroll-snap-align: start;
}

.news-rail-controls {
  position: absolute;
  top: 11px;
  right: 0;
  display: flex;
  gap: 7px;
}

.news-rail-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.news-rail-controls button:hover,
.news-rail-controls button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.news-loading {
  grid-column: 1 / -1;
  padding: 36px 0;
  color: var(--muted);
}

.poll-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.poll-meta strong {
  color: var(--accent);
}

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

.poll-options.network-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poll-option {
  position: relative;
  min-height: 98px;
  padding: 22px 20px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.poll-option + .poll-option {
  border-left: 1px solid var(--line);
}

.poll-option:hover,
.poll-option.selected {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.poll-name {
  font-size: 17px;
  font-weight: 850;
}

.poll-choice {
  position: absolute;
  top: 23px;
  right: 20px;
  color: var(--muted);
  font: 800 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.poll-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}

.poll-foot a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.feature-options .poll-option:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.feature-options .poll-option:nth-child(3n + 1) {
  border-left: 0;
}

.poll-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--poll);
  height: 2px;
  background: var(--accent);
}

.poll-note {
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.developer-terminal {
  width: 100%;
  margin: 26px 0;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #294235;
  border-radius: 14px;
  background: #101612;
  color: #dcffe6;
  font: 600 13px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.developer-terminal span {
  color: #55f58a;
}

.agent-systems {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: 72px;
  align-items: center;
}

.agent-note {
  margin-top: 20px !important;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 12px !important;
}

.agent-console {
  display: grid;
  padding: 26px;
  border: 1px solid #294235;
  background: #101612;
  color: #dcffe6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.agent-console span {
  color: #55f58a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.agent-console strong {
  margin-top: 7px;
  font-size: 13px;
}

.agent-console i {
  margin: 12px 0;
  color: #7d9184;
  font-style: normal;
}

@media (max-width: 820px) {
  .hero {
    left: 50%;
    width: 100vw;
    min-height: 70vh;
    margin-top: 0;
    margin-left: -50vw;
    padding: 96px 20px 76px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero .hero-content {
    width: 100%;
  }

  .hero .nasa-credit {
    right: 20px;
    bottom: 15px;
    left: auto;
    max-width: 78%;
    text-align: right;
  }

  .frontier-grid,
  .news-featured,
  .poll-options,
  .poll-options.network-options {
    grid-template-columns: 1fr;
  }

  .sovereignty,
  .agent-systems {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .frontier-grid article,
  .frontier-grid article:nth-child(even),
  .news-card.featured,
  .news-card.featured + .news-card.featured {
    min-height: auto;
    padding: 25px 0;
    border-left: 0;
  }

  .news-card.featured + .news-card.featured,
  .poll-option + .poll-option {
    border-top: 1px solid var(--line);
  }

  .poll-option + .poll-option {
    border-left: 0;
  }

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

  .poll-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .news-rail {
    grid-auto-columns: 86%;
  }
}

@media (max-width: 520px) {
  .research-frontier,
  .news-pulse,
  .network-poll,
  .agent-systems,
  .sovereignty {
    padding: 60px 0;
  }

  .news-rail-controls {
    position: static;
    justify-content: flex-end;
    margin: -8px 0 8px;
  }
}

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