:root {
  color-scheme: dark;
  --bg: #080a09;
  --panel: #111713;
  --panel-strong: #172119;
  --line: #2a382f;
  --text: #f4f2e8;
  --muted: #aeb6ac;
  --soft: #d4d0bd;
  --green: #76e4a2;
  --amber: #f0b35a;
  --cyan: #71d7dc;
  --red: #ff7a6c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(14, 21, 17, 0.94), rgba(8, 10, 9, 1) 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 92px);
}

body.install-gate-active {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.install-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 78% 16%, rgba(113, 215, 220, 0.13), transparent 30%),
    radial-gradient(circle at 16% 82%, rgba(240, 179, 90, 0.14), transparent 34%),
    rgba(5, 7, 6, 0.94);
  backdrop-filter: blur(18px);
}

.install-gate.is-hidden {
  display: none;
}

.install-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 0.9fr);
  gap: 28px;
  width: min(1040px, 100%);
  min-width: 0;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(244, 242, 232, 0.12);
  border-radius: 8px;
  background: rgba(15, 21, 17, 0.96);
  box-shadow: var(--shadow);
}

.install-visual {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(244, 242, 232, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(244, 242, 232, 0.035) 0 1px, transparent 1px 46px),
    #070a08;
}

.install-phone {
  position: relative;
  z-index: 1;
  display: grid;
  width: 210px;
  height: 380px;
  gap: 12px;
  align-content: end;
  padding: 20px;
  border: 8px solid #222d26;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(118, 228, 162, 0.12), rgba(13, 18, 16, 0.96)),
    #0b100d;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

.install-phone::before {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 70px;
  height: 8px;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
  background: #2d3a32;
}

.install-phone span {
  display: block;
  height: 54px;
  border-radius: 8px;
  background: rgba(244, 242, 232, 0.08);
}

.install-phone span:first-child {
  height: 126px;
  background:
    radial-gradient(circle at 50% 54%, rgba(118, 228, 162, 0.85), rgba(47, 131, 107, 0.45) 44%, transparent 45%),
    linear-gradient(135deg, rgba(113, 215, 220, 0.13), rgba(240, 179, 90, 0.12));
}

.install-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(118, 228, 162, 0.42);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.54);
}

.install-orbit::after {
  position: absolute;
  top: 28px;
  right: 54px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "";
  background: var(--amber);
}

.install-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 16px 8px;
}

.install-copy h1 {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: 3.15rem;
  overflow-wrap: anywhere;
}

.install-lede {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.install-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 520px;
}

.install-button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #08100b;
  background: var(--green);
  font-weight: 900;
}

.install-button:hover {
  background: var(--cyan);
}

.install-button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.install-actions p {
  min-height: 1.4rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.install-actions p.is-emphasized {
  color: var(--cyan);
}

.install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.install-steps span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(244, 242, 232, 0.1);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.app-shell {
  width: min(1540px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(244, 242, 232, 0.1);
  border-radius: 8px;
  background: rgba(12, 17, 14, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(118, 228, 162, 0.38);
  border-radius: 8px;
  background: #142017;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-mark circle {
  fill: rgba(240, 179, 90, 0.22);
  stroke: var(--amber);
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  max-width: 42vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-tabs {
  display: inline-flex;
  max-width: min(100%, 760px);
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(244, 242, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  scrollbar-width: none;
}

.top-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 0 0 auto;
  min-width: 98px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--soft);
  background: transparent;
}

.tab-button.is-active {
  color: #08100b;
  background: var(--green);
}

.icon-button,
.week-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(244, 242, 232, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: #151d18;
}

.icon-button:hover,
.week-button:hover {
  border-color: rgba(118, 228, 162, 0.45);
  color: var(--green);
}

.icon-button:disabled,
.week-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.icon-button svg,
.week-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

main {
  min-height: calc(100vh - 104px);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.news-pane,
.reader-pane,
.orbit-stage,
.control-pane {
  border: 1px solid rgba(244, 242, 232, 0.1);
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.9);
  box-shadow: var(--shadow);
}

.news-pane,
.orbit-stage,
.control-pane {
  min-width: 0;
  padding: 18px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 3.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.compact h1 {
  font-size: 2.35rem;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(113, 215, 220, 0.25);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(113, 215, 220, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.week-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.038);
}

.week-slider-wrap {
  min-width: 0;
}

input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--green);
}

.week-copy {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.week-copy strong {
  color: var(--text);
}

.week-copy span {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-panel,
.insight-panel,
.sim-panel {
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 228, 162, 0.055), rgba(113, 215, 220, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.archive-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  margin-bottom: 14px;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.archive-toolbar > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.archive-toolbar strong {
  font-size: 1rem;
}

.archive-toolbar span,
.week-jump span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.calendar-weekdays span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(244, 242, 232, 0.08);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(5, 7, 6, 0.44);
  font-size: 0.86rem;
  font-weight: 800;
}

.calendar-day:hover:not(:disabled) {
  border-color: rgba(118, 228, 162, 0.45);
  color: var(--green);
}

.calendar-day:disabled {
  cursor: default;
  opacity: 0.28;
}

.calendar-day.is-outside-month {
  color: rgba(212, 208, 189, 0.46);
}

.calendar-day.is-selected-week {
  border-color: rgba(118, 228, 162, 0.55);
  background: rgba(118, 228, 162, 0.14);
  color: var(--text);
}

.calendar-day.is-week-start {
  box-shadow: inset 3px 0 0 var(--green);
}

.calendar-day.is-today::after {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--amber);
}

.week-jump {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.ghost-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(244, 242, 232, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: #151d18;
  font-size: 0.84rem;
  font-weight: 800;
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(240, 179, 90, 0.48);
  color: var(--amber);
}

.ghost-button:disabled {
  cursor: default;
  opacity: 0.45;
}

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

.insight-panel,
.sim-panel {
  min-width: 0;
  padding: 12px;
}

.insight-panel span,
.sim-panel span,
.burn-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-panel strong,
.sim-panel strong {
  display: block;
  margin: 6px 0 5px;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-panel p,
.sim-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.topic-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.topic-filter::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(244, 242, 232, 0.12);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 900;
}

.topic-chip.is-active {
  border-color: transparent;
  color: #08100b;
  background: var(--green);
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 12px;
  margin: 14px 0;
}

.field,
.range-field {
  display: grid;
  gap: 7px;
}

.field span,
.range-field span,
.sim-stats span,
.burn-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(244, 242, 232, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: #0d120f;
  outline: none;
}

.field input:focus,
.field select:focus,
.tab-button:focus-visible,
.icon-button:focus-visible,
.week-button:focus-visible,
.ghost-button:focus-visible,
.calendar-day:focus-visible,
.topic-chip:focus-visible,
.article-card:focus-visible,
.primary-link:focus-visible,
.preset-grid button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.loading-bar {
  height: 3px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
}

.loading-bar::before {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--amber), var(--cyan));
  animation: loadbar 1s infinite ease-in-out;
}

.loading-bar.is-loading {
  opacity: 1;
}

@keyframes loadbar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}

.status-line {
  min-height: 1.25rem;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 132px;
  padding: 10px;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.article-card:hover,
.article-card.is-selected {
  border-color: rgba(118, 228, 162, 0.45);
  background: rgba(118, 228, 162, 0.08);
}

.article-thumb {
  align-self: stretch;
  min-height: 112px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(118, 228, 162, 0.24), rgba(240, 179, 90, 0.16)),
    #111713;
  background-position: center;
  background-size: cover;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.77rem;
}

.source-tag {
  max-width: 180px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: #09110c;
  background: var(--amber);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card h2 {
  display: -webkit-box;
  margin-bottom: 7px;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reader-pane {
  position: sticky;
  top: 98px;
  min-height: calc(100vh - 122px);
  overflow: hidden;
}

.reader-empty {
  display: grid;
  min-height: calc(100vh - 122px);
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.reader-empty p {
  margin: 12px 0 0;
}

.reader-orbit {
  position: relative;
  display: block;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(118, 228, 162, 0.4);
  border-radius: 50%;
}

.reader-orbit::before,
.reader-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.reader-orbit::before {
  inset: 38px;
  background: rgba(240, 179, 90, 0.42);
}

.reader-orbit::after {
  top: 12px;
  right: 14px;
  width: 14px;
  height: 14px;
  background: var(--green);
}

.reader-article {
  display: grid;
  min-height: calc(100vh - 122px);
  grid-template-rows: minmax(250px, 40vh) auto;
}

.reader-article.is-hidden,
.reader-empty.is-hidden {
  display: none;
}

.reader-image {
  background:
    linear-gradient(135deg, rgba(118, 228, 162, 0.16), rgba(240, 179, 90, 0.2)),
    #111713;
  background-position: center;
  background-size: cover;
}

.reader-body {
  padding: 22px;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.reader-body h2 {
  margin-bottom: 12px;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.reader-body p {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

.reader-authors {
  min-height: 1.2rem;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #08100b;
  background: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.sim-layout,
.satellite-layout,
.planet-layout,
.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 18px;
}

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

#orbitCanvas,
#satelliteCanvas,
#planetCanvas,
#signalCanvas {
  display: block;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 1.45;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background: #050706;
}

#satelliteCanvas,
#signalCanvas {
  aspect-ratio: 1.78;
  min-height: 320px;
}

#planetCanvas {
  aspect-ratio: 1.32;
}

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

.sim-stats div,
.burn-card {
  padding: 12px;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sim-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
}

.sim-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.control-pane {
  display: grid;
  align-content: start;
  gap: 16px;
}

.control-group {
  display: grid;
  gap: 17px;
}

.range-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-field strong {
  color: var(--text);
  font-size: 0.82rem;
}

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

.preset-grid button {
  min-height: 44px;
  border: 1px solid rgba(244, 242, 232, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: #151d18;
  font-weight: 800;
}

.preset-grid button:hover {
  border-color: rgba(240, 179, 90, 0.5);
  color: var(--amber);
}

.burn-card strong {
  display: block;
  margin: 7px 0;
  font-size: 2rem;
  line-height: 1;
}

.burn-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.burn-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.burn-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(244, 242, 232, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.burn-list dt,
.burn-list dd {
  margin: 0;
}

.burn-list dd {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-button {
  width: 100%;
}

.feed-panel,
.signal-message,
.object-stack {
  margin-top: 12px;
  border: 1px solid rgba(244, 242, 232, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.feed-panel {
  overflow: hidden;
}

.feed-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(244, 242, 232, 0.08);
}

.feed-header span,
.object-stack small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feed-header strong {
  color: var(--cyan);
}

.feed-list {
  display: grid;
  max-height: 220px;
  overflow: auto;
}

.feed-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(244, 242, 232, 0.06);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-item strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-stack {
  display: grid;
  overflow: hidden;
}

.object-stack div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(244, 242, 232, 0.07);
}

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

.object-stack strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-stack small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.object-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(118, 228, 162, 0.58);
}

.object-dot.polar {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(113, 215, 220, 0.58);
}

.object-dot.relay {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(240, 179, 90, 0.58);
}

.signal-message {
  min-height: 62px;
  padding: 16px;
  color: var(--soft);
  font-weight: 800;
  line-height: 1.45;
}

.empty-card {
  padding: 26px 18px;
  border: 1px dashed rgba(244, 242, 232, 0.18);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .install-card {
    grid-template-columns: 1fr;
  }

  .install-visual {
    min-height: 300px;
  }

  .install-phone {
    width: 156px;
    height: 260px;
    border-radius: 28px;
  }

  .install-orbit {
    width: 270px;
    height: 270px;
  }

  .news-layout,
  .sim-layout,
  .satellite-layout,
  .planet-layout,
  .signal-layout {
    grid-template-columns: 1fr;
  }

  .reader-pane {
    position: static;
    min-height: auto;
  }

  .reader-empty,
  .reader-article {
    min-height: auto;
  }

  .reader-article {
    grid-template-rows: 250px auto;
  }
}

@media (max-width: 720px) {
  .install-gate {
    align-items: start;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .install-card {
    max-height: calc(100vh - 20px);
    gap: 16px;
    padding: 14px;
  }

  .install-visual {
    min-height: 210px;
  }

  .install-phone {
    width: 122px;
    height: 192px;
    gap: 8px;
    padding: 14px;
    border-width: 6px;
    border-radius: 24px;
  }

  .install-phone span {
    height: 34px;
  }

  .install-phone span:first-child {
    height: 70px;
  }

  .install-orbit {
    width: 220px;
    height: 220px;
  }

  .install-copy {
    padding: 4px 0 0;
  }

  .install-copy h1 {
    font-size: 2.3rem;
  }

  .install-lede {
    font-size: 1rem;
  }

  .install-steps {
    display: grid;
  }

  .install-steps span {
    width: fit-content;
  }

  .app-shell {
    padding: max(10px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }

  .news-pane,
  .orbit-stage,
  .control-pane {
    padding: 10px;
  }

  .news-layout,
  .sim-layout,
  .satellite-layout,
  .planet-layout,
  .signal-layout {
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar > .icon-button {
    display: none;
  }

  .top-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: inline-flex;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    overflow-x: auto;
  }

  .tab-button {
    width: auto;
    min-width: 96px;
    padding: 0 10px;
  }

  .filters,
  .sim-stats,
  .insight-grid,
  .sim-panels {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  h1 {
    font-size: 2.45rem;
  }

  .compact h1 {
    font-size: 2.05rem;
  }

  .reader-body h2 {
    font-size: 1.85rem;
  }

  .article-card {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 118px;
  }

  .article-thumb {
    min-height: 98px;
  }

  .archive-panel {
    width: 100%;
    max-width: 100%;
    padding: 8px;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(7, 32px);
    justify-content: space-between;
    gap: 0;
    width: min(326px, calc(100vw - 64px));
    max-width: min(326px, calc(100vw - 64px));
  }

  .calendar-day {
    width: 32px;
    min-height: 32px;
    border-radius: 6px;
    font-size: 0.72rem;
  }

  .week-jump {
    grid-template-columns: 1fr 1fr;
  }

  .week-jump .week-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .week-jump .ghost-button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .week-button {
    width: 42px;
    height: 42px;
  }

  .week-copy {
    display: grid;
    gap: 2px;
  }

  .week-copy span {
    text-align: left;
  }

  #orbitCanvas,
  #satelliteCanvas,
  #planetCanvas,
  #signalCanvas {
    min-height: 300px;
    aspect-ratio: 1;
  }
}

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