:root {
  color-scheme: dark;
  --ink: #effff8;
  --muted: #9ab8ac;
  --faint: #6f8f82;
  --line: rgba(111, 235, 181, .16);
  --line-strong: rgba(111, 235, 181, .32);
  --panel: rgba(9, 31, 24, .86);
  --panel-solid: #0a2119;
  --green: #6febb6;
  --green-bright: #9affd2;
  --cyan: #69dfe4;
  --violet: #ab8dff;
  --gold: #f2c95e;
  --coral: #ff8592;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body.status-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(27, 108, 83, .52), transparent 33rem),
    radial-gradient(circle at -5% 58%, rgba(15, 77, 63, .3), transparent 37rem),
    #04110d;
}

body.status-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(103, 232, 175, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 175, .055) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

button,
a { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: #04150f;
  border-radius: .7rem;
  background: var(--green-bright);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .35;
}

.ambient-one {
  top: 18rem;
  right: -16rem;
  border: 1px solid rgba(97, 239, 180, .18);
  box-shadow: 0 0 8rem rgba(57, 205, 146, .16);
}

.ambient-two {
  bottom: -17rem;
  left: 7%;
  border: 1px solid rgba(98, 222, 225, .12);
  box-shadow: 0 0 9rem rgba(60, 184, 170, .1);
}

.status-header,
.status-shell,
.status-footer {
  width: min(88rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.status-header {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--ink);
  text-decoration: none;
}

.status-brand > span:last-child {
  display: grid;
  line-height: 1.08;
}

.status-brand strong {
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.status-brand small {
  margin-top: .25rem;
  color: var(--faint);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-beacon {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(121, 244, 193, .66);
  border-radius: 50%;
  box-shadow: 0 0 1.5rem rgba(76, 226, 166, .22);
}

.brand-beacon::before,
.brand-beacon::after,
.brand-beacon span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-beacon::before {
  inset: .3rem;
  border: 1px solid rgba(122, 241, 193, .38);
}

.brand-beacon::after {
  inset: .75rem;
  background: var(--green);
  box-shadow: 0 0 .8rem var(--green);
}

.brand-beacon span {
  inset: -.35rem;
  border: 1px solid rgba(122, 241, 193, .13);
  animation: beacon-pulse 2.8s ease-in-out infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.state-pill,
.refresh-button {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 27, 21, .82);
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .9rem;
  color: #c8ddd5;
  font-size: .82rem;
  font-weight: 820;
  letter-spacing: .01em;
}

.state-dot {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #e9c260;
  background: currentColor;
  box-shadow: 0 0 .7rem currentColor;
}

.state-pill[data-state="online"] .state-dot { color: var(--green); }
.state-pill[data-state="degraded"] .state-dot,
.state-pill[data-state="stale"] .state-dot { color: var(--gold); }
.state-pill[data-state="offline"] .state-dot,
.state-pill[data-state="error"] .state-dot { color: var(--coral); }
.state-pill[data-state="awaiting"] .state-dot { color: #8ca69c; }

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  color: #b8d0c6;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.refresh-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(20, 58, 45, .74);
  transform: translateY(-1px);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: .66;
}

.refresh-button.is-loading svg { animation: refresh-spin .9s linear infinite; }

.status-shell { padding-bottom: 5rem; }

.server-hero {
  position: relative;
  min-height: 30rem;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(20rem, .72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(2.5rem, 7vw, 6.3rem);
  overflow: hidden;
  border: 1px solid rgba(107, 233, 179, .23);
  border-radius: 2.15rem;
  background:
    linear-gradient(112deg, rgba(13, 46, 35, .97), rgba(6, 26, 20, .92)),
    #091d17;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .43), inset 0 1px rgba(221, 255, 239, .06);
}

.server-hero::before {
  content: "";
  position: absolute;
  right: -7%;
  bottom: -90%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(112, 235, 182, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(104, 231, 176, .025),
    0 0 0 8rem rgba(104, 231, 176, .018);
}

.server-hero::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 49%;
  width: 1px;
  height: 150%;
  opacity: .34;
  background: linear-gradient(transparent, rgba(112, 235, 182, .34), transparent);
  rotate: 29deg;
}

.hero-copy,
.population-orbit { position: relative; z-index: 1; }

.hero-copy,
.activity-section,
.metric-grid,
.activity-grid,
.section-heading { min-width: 0; }

.eyebrow {
  margin: 0;
  color: #78e7ba;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: .8rem 0 1.25rem;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.server-description {
  max-width: 44rem;
  min-height: 1.7em;
  margin: 0;
  color: #b0c9bf;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.detail-chip {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: #89aa9d;
  background: rgba(3, 18, 13, .28);
  font-size: .85rem;
}

.detail-chip strong {
  min-width: 0;
  max-width: 14rem;
  overflow: hidden;
  color: #dceee7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-chip svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-icon {
  color: var(--green);
  font-size: 1.3rem;
  line-height: .6;
}

.population-orbit {
  width: min(21rem, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.orbit-ring,
.orbit-ping,
.population-core {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring {
  border: 1px solid rgba(104, 235, 179, .2);
  animation: orbit-breathe 4s ease-in-out infinite;
}

.orbit-ring-one { inset: 32%; }
.orbit-ring-two { inset: 17%; animation-delay: -.9s; }
.orbit-ring-three { inset: 2%; animation-delay: -1.8s; }

.orbit-ring-two::before,
.orbit-ring-three::after {
  content: "";
  position: absolute;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  color: var(--green);
  background: currentColor;
  box-shadow: 0 0 .8rem currentColor;
}

.orbit-ring-two::before { top: 8%; left: 24%; }
.orbit-ring-three::after { right: 5%; bottom: 34%; opacity: .65; }

.orbit-ping {
  inset: 24%;
  border: 1px dashed rgba(105, 234, 181, .2);
  animation: orbit-turn 20s linear infinite;
}

.population-core {
  width: 11rem;
  height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 239, 187, .32);
  background: radial-gradient(circle at 45% 35%, rgba(32, 85, 64, .95), rgba(8, 32, 24, .98) 68%);
  box-shadow: 0 0 3rem rgba(60, 222, 157, .12), inset 0 1px rgba(230, 255, 243, .08);
}

.population-core > span,
.population-core > small {
  color: #8eada1;
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.population-core strong {
  display: flex;
  align-items: baseline;
  margin: .25rem 0;
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: -.08em;
}

.population-core strong small {
  margin-left: .35rem;
  color: #8eada1;
  font-size: 1rem;
  letter-spacing: 0;
}

.status-notice {
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 4rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(230, 193, 92, .2);
  border-radius: 1.2rem;
  background: rgba(58, 47, 19, .22);
}

.notice-signal {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--gold);
  background: currentColor;
  box-shadow: inset 0 0 0 .9rem rgba(7, 28, 21, .92), 0 0 1.4rem color-mix(in srgb, currentColor 32%, transparent);
}

.notice-signal::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .7rem currentColor;
}

.status-notice strong { font-size: .96rem; }

.status-notice p {
  margin: .28rem 0 0;
  color: #96b1a6;
  font-size: .88rem;
  line-height: 1.45;
}

.status-notice[data-tone="online"] {
  border-color: rgba(105, 235, 181, .23);
  background: rgba(43, 121, 88, .15);
}

.status-notice[data-tone="online"] .notice-signal { color: var(--green); }
.status-notice[data-tone="warning"] .notice-signal { color: var(--gold); }

.status-notice[data-tone="offline"],
.status-notice[data-tone="error"] {
  border-color: rgba(255, 128, 143, .22);
  background: rgba(105, 35, 45, .14);
}

.status-notice[data-tone="offline"] .notice-signal,
.status-notice[data-tone="error"] .notice-signal { color: var(--coral); }

.status-notice[data-tone="awaiting"] .notice-signal { color: #8ba69b; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: .35rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 27rem;
  margin: 0;
  color: var(--faint);
  line-height: 1.55;
  text-align: right;
}

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

.metric-card {
  position: relative;
  min-height: 11.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: .9rem 1rem;
  padding: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--panel);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .18), inset 0 1px rgba(229, 255, 243, .035);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: currentColor;
  filter: blur(2.8rem);
  opacity: .065;
}

.metric-cyan { color: var(--cyan); }
.metric-violet { color: var(--violet); }
.metric-gold { color: var(--gold); }
.metric-coral { color: var(--coral); }

.metric-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 36%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.metric-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card div > span {
  display: block;
  color: #91aea2;
  font-size: .8rem;
  font-weight: 780;
}

.metric-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: .25rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card > p {
  grid-column: 1 / -1;
  align-self: end;
  margin: .75rem 0 0;
  color: #718f83;
  font-size: .79rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(19rem, .75fr);
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--panel);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .18), inset 0 1px rgba(229, 255, 243, .035);
}

.panel-heading {
  min-height: 3.6rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading h3 {
  margin: .32rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.chart-summary,
.population-badge {
  flex: 0 0 auto;
  padding: .46rem .7rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: #91b3a5;
  background: rgba(57, 130, 98, .08);
  font-size: .75rem;
  font-weight: 780;
}

.chart-wrap {
  position: relative;
  min-height: 15rem;
  margin-top: 1rem;
}

#population-chart {
  width: 100%;
  height: 15rem;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(107, 233, 179, .11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.history-area { fill: url("#history-fill"); }

.history-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(93, 232, 174, .34));
}

.history-last-point {
  fill: #d9ffed;
  stroke: var(--green);
  stroke-width: 6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px var(--green));
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #718f83;
  text-align: center;
}

.chart-wrap.has-data .chart-empty { display: none; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: .2rem;
  color: #658176;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.population-panel { display: flex; flex-direction: column; }

.population-badge {
  min-width: 2.65rem;
  color: var(--green);
  border-color: rgba(104, 235, 179, .24);
  text-align: center;
}

.capacity-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  color: #a8c2b8;
  font-size: .8rem;
}

.capacity-copy span { color: var(--green); font-weight: 800; }

.capacity-track {
  width: 100%;
  height: .55rem;
  margin-top: .75rem;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(116, 232, 182, .1);
}

.capacity-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(116, 232, 182, .1);
}

.capacity-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, #38c98e, #88f1c2);
  box-shadow: 0 0 1rem rgba(91, 235, 176, .45);
}

.capacity-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #38c98e, #88f1c2);
  box-shadow: 0 0 1rem rgba(91, 235, 176, .45);
}

.privacy-note {
  display: flex;
  align-items: start;
  gap: .7rem;
  margin: auto 0 0;
  padding-top: 2rem;
  color: #759387;
  font-size: .79rem;
  line-height: 1.55;
}

.privacy-note span {
  color: var(--green);
  font-size: 1rem;
}

.status-footer {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(107, 233, 179, .1);
  color: #678278;
  font-size: .78rem;
}

.status-footer a {
  color: #95b8aa;
  font-weight: 750;
  text-decoration: none;
}

.status-footer a:hover { color: var(--green-bright); }

.atlas-callout {
  position: relative;
  min-height: 12rem;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 1rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(104, 235, 181, .24);
  border-radius: 1.35rem;
  color: inherit;
  background:
    radial-gradient(circle at 8% 50%, rgba(57, 201, 145, .18), transparent 15rem),
    linear-gradient(115deg, rgba(13, 48, 36, .96), rgba(7, 27, 21, .94));
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .18), inset 0 1px rgba(229, 255, 243, .04);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.atlas-callout:hover {
  border-color: rgba(105, 239, 185, .52);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .28), inset 0 1px rgba(229, 255, 243, .07);
  transform: translateY(-2px);
}

.atlas-callout-art {
  position: relative;
  width: 8rem;
  height: 8rem;
  display: grid;
  place-items: center;
}

.atlas-callout-art i,
.atlas-callout-art b {
  position: absolute;
  border-radius: 50%;
}

.atlas-callout-art i {
  border: 1px solid rgba(111, 235, 182, .2);
  animation: orbit-breathe 4s ease-in-out infinite;
}

.atlas-callout-art i:nth-child(1) { inset: 0; }
.atlas-callout-art i:nth-child(2) { inset: 1.15rem; animation-delay: -.8s; }
.atlas-callout-art i:nth-child(3) { inset: 2.2rem; animation-delay: -1.6s; }

.atlas-callout-art b {
  width: 2.15rem;
  height: 2.15rem;
  background: radial-gradient(circle at 35% 30%, #e1fff0, #5de5aa 24%, #137951 72%);
  box-shadow: 0 0 1.4rem rgba(91, 234, 174, .55);
}

.atlas-callout-copy { min-width: 0; }

.atlas-callout-copy > strong {
  display: block;
  margin-top: .42rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
}

.atlas-callout-copy > small {
  max-width: 42rem;
  display: block;
  margin-top: .55rem;
  color: #8eaca0;
  font-size: .88rem;
  line-height: 1.55;
}

.atlas-callout-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--green-bright);
  font-size: .83rem;
  font-weight: 850;
  white-space: nowrap;
}

.atlas-callout-action svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate .2s ease;
}

.atlas-callout:hover .atlas-callout-action svg { translate: .25rem 0; }

.noscript-notice {
  width: min(88rem, calc(100% - 2.5rem));
  display: grid;
  gap: .35rem;
  margin: -3rem auto 4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(242, 201, 94, .24);
  border-radius: 1rem;
  color: #f5db94;
  background: rgba(82, 64, 20, .25);
}

.noscript-notice span { color: #b9aa82; font-size: .85rem; }

body[data-server-state="offline"] .orbit-ring,
body[data-server-state="error"] .orbit-ring { border-color: rgba(255, 128, 143, .14); }

body[data-server-state="stale"] .orbit-ring,
body[data-server-state="degraded"] .orbit-ring { border-color: rgba(242, 201, 94, .15); }

body[data-server-state="offline"] .population-core,
body[data-server-state="error"] .population-core { filter: saturate(.4); }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@keyframes beacon-pulse {
  0%, 100% { opacity: .2; scale: .92; }
  50% { opacity: .85; scale: 1.08; }
}

@keyframes orbit-breathe {
  0%, 100% { opacity: .4; scale: .97; }
  50% { opacity: 1; scale: 1.025; }
}

@keyframes orbit-turn { to { rotate: 360deg; } }
@keyframes refresh-spin { to { rotate: 360deg; } }

@media (max-width: 70rem) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-grid { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); }
}

@media (max-width: 52rem) {
  .server-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 0;
  }

  .server-hero::after { display: none; }
  .hero-copy h1 { max-width: 16ch; }

  .population-orbit {
    width: 18rem;
    margin-bottom: -3rem;
  }

  .activity-grid { grid-template-columns: 1fr; }
  .population-panel { min-height: 18rem; }
}

@media (max-width: 38rem) {
  .status-header,
  .status-shell,
  .status-footer { width: min(100% - 1.25rem, 88rem); }

  .status-header {
    align-items: flex-start;
    padding: .9rem 0;
  }

  .status-brand { min-width: 0; }
  .header-actions { flex: 0 0 auto; }
  .status-brand small,
  .refresh-button span { display: none; }

  .header-actions { gap: .4rem; }
  .state-pill {
    width: 2.8rem;
    justify-content: center;
    padding: 0;
  }

  #server-state-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .refresh-button { width: 2.8rem; justify-content: center; padding: 0; }

  .server-hero {
    padding: 2rem 1.3rem 0;
    border-radius: 1.5rem;
  }

  .hero-copy h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .hero-chips { align-items: stretch; flex-direction: column; }
  .detail-chip { width: 100%; }
  .detail-chip strong { max-width: 62%; margin-left: auto; }
  .population-orbit { width: 15rem; }
  .population-core { width: 9rem; height: 9rem; }
  .population-core strong { font-size: 2.75rem; }

  .status-notice {
    align-items: flex-start;
    margin-bottom: 3.2rem;
    padding: 1rem;
  }

  .notice-signal { width: 2.2rem; height: 2.2rem; }

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

  .section-heading > p { width: 100%; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 10rem; }
  .panel { padding: 1.15rem; }
  .panel-heading { align-items: start; }
  .chart-summary { max-width: 8rem; text-align: right; }

  .atlas-callout {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .atlas-callout-art { width: 5rem; height: 5rem; }
  .atlas-callout-art i:nth-child(2) { inset: .8rem; }
  .atlas-callout-art i:nth-child(3) { inset: 1.5rem; }
  .atlas-callout-art b { width: 1.45rem; height: 1.45rem; }
  .atlas-callout-action { grid-column: 2; }

  .status-footer {
    min-height: 7rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
