:root {
  --bg: #0e0f12;
  --bg-2: #15171d;
  --panel: rgba(23, 25, 31, 0.88);
  --panel-strong: rgba(31, 34, 42, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f3ef;
  --muted: #a8a8ac;
  --soft: #d7d2c9;
  --red: #d8212f;
  --red-2: #ff4655;
  --gold: #f4b860;
  --green: #44d18d;
  --warn: #f3a43b;
  --bad: #ff4655;
  --blue: #5bbcff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  color-scheme: dark;
}

:root.light {
  --bg: #eeece7;
  --bg-2: #f7f5ef;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(19, 21, 27, 0.14);
  --line-strong: rgba(19, 21, 27, 0.22);
  --text: #16181e;
  --muted: #666a73;
  --soft: #2d3038;
  --shadow: 0 24px 70px rgba(24, 24, 28, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(216, 33, 47, 0.18), transparent 26%),
    radial-gradient(circle at 72% 12%, rgba(244, 184, 96, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 15, 18, 0.92), rgba(14, 15, 18, 0.98)),
    url("https://apexlegendsstatus.com/assets/maps/Worlds_Edge.png") center/cover fixed;
  overflow-x: hidden;
}

:root.light body {
  background:
    linear-gradient(135deg, rgba(216, 33, 47, 0.14), transparent 28%),
    radial-gradient(circle at 72% 12%, rgba(244, 184, 96, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(247, 245, 239, 0.76), rgba(238, 236, 231, 0.9)),
    url("https://apexlegendsstatus.com/assets/maps/Worlds_Edge.png") center/cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 72%);
}

:root.light body::before {
  background:
    linear-gradient(90deg, rgba(19, 21, 27, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 21, 27, 0.045) 1px, transparent 1px);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 70, 85, 0.24), 0 8px 22px rgba(216, 33, 47, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.brand-lockup h1 {
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-lockup p,
.eyebrow {
  margin-top: 6px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-actions,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.ghost-action,
.query-tab,
.primary-action {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button {
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.icon-button svg,
.ghost-action svg,
.query-tab svg,
.primary-action svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.live-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(68, 209, 141, 0.7);
}

.status-dot.status-warn {
  background: var(--warn);
  box-shadow: 0 0 18px rgba(243, 164, 59, 0.62);
}

.status-dot.status-bad {
  background: var(--bad);
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.62);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  margin-top: 16px;
}

.footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
}

.copyright {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.author-link {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.18s ease;
}

.author-link:hover,
.author-link:focus-visible {
  color: var(--red-2);
  outline: none;
}

.query-panel,
.results-panel,
.compact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.query-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
}

.panel-head h2,
.results-toolbar h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.12;
}

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

.query-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.query-tab.active {
  border-color: rgba(255, 70, 85, 0.75);
  color: #fff;
  background: linear-gradient(135deg, rgba(216, 33, 47, 0.82), rgba(122, 17, 25, 0.9));
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.34), 0 10px 28px rgba(216, 33, 47, 0.2);
}

.query-tab:hover,
.icon-button:hover,
.ghost-action:hover {
  transform: translateY(-1px);
  border-color: var(--red-2);
}

.query-form {
  display: grid;
  gap: 14px;
  animation: controlIn 0.22s ease both;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field span {
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

select option {
  color: #f5f3ef;
  background: #15171d;
}

:root.light input,
:root.light select {
  background: rgba(255, 255, 255, 0.72);
}

:root.light select option {
  color: #16181e;
  background: #f7f5ef;
}

input:focus,
select:focus {
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(216, 33, 47, 0.24);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(216, 33, 47, 0.24);
}

.custom-select-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #15171d;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--soft);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  color: #fff;
  border-color: rgba(255, 70, 85, 0.42);
  background: rgba(216, 33, 47, 0.18);
  outline: none;
}

.custom-select-option.active {
  color: #fff;
  border-color: rgba(255, 70, 85, 0.62);
  background: linear-gradient(135deg, rgba(216, 33, 47, 0.82), rgba(122, 17, 25, 0.86));
}

:root.light .custom-select-trigger {
  background: rgba(255, 255, 255, 0.72);
}

:root.light .custom-select-menu {
  background: #f7f5ef;
  box-shadow: 0 18px 46px rgba(24, 24, 28, 0.16);
}

:root.light .custom-select-option {
  color: #2d3038;
}

:root.light .custom-select-option:hover,
:root.light .custom-select-option:focus-visible {
  color: #16181e;
  background: rgba(216, 33, 47, 0.12);
}

:root.light .custom-select-option.active {
  color: #fff;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-weight: 900;
}

.primary-action {
  border-color: rgba(255, 70, 85, 0.75);
  color: #fff;
  background: linear-gradient(135deg, var(--red), #7f121c);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.compact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.compact-title strong {
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.hidden {
  display: none !important;
}

.results-panel {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
}

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

.result-stage {
  display: grid;
  gap: 14px;
  min-height: 520px;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  will-change: opacity, transform, filter;
}

.result-stage.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
}

.result-stage.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

.result-stage > * {
  animation: resultCardIn 0.28s ease both;
}

.result-stage > *:nth-child(2) {
  animation-delay: 0.04s;
}

.result-stage > *:nth-child(3) {
  animation-delay: 0.08s;
}

.result-stage > *:nth-child(4) {
  animation-delay: 0.12s;
}

.hero-card,
.map-card,
.data-card,
.server-summary,
.json-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  overflow: hidden;
}

.hero-card {
  position: relative;
  min-height: 340px;
  isolation: isolate;
}

.hero-card img,
.map-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.05) contrast(1.05);
}

.hero-card::after,
.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.92), rgba(7, 8, 12, 0.28)),
    linear-gradient(180deg, rgba(7, 8, 12, 0.18), rgba(7, 8, 12, 0.9));
}

.hero-content {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 30px);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.95;
  text-transform: uppercase;
}

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

.metric {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.card-grid,
.map-grid,
.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  padding: 16px;
}

.error-card {
  border-color: rgba(255, 70, 85, 0.42);
  background:
    linear-gradient(135deg, rgba(216, 33, 47, 0.16), transparent),
    var(--panel-strong);
}

.loading-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
}

.loading-bar,
.loading-line {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.loading-bar {
  height: 54px;
  border-radius: var(--radius);
}

.loading-line {
  width: 72%;
  height: 14px;
}

.loading-line.wide {
  width: 92%;
}

.loading-line.short {
  width: 44%;
}

.loading-bar::after,
.loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: shimmer 1.2s infinite;
}

.data-card h3,
.server-summary h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.row strong {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.map-card {
  position: relative;
  min-height: 260px;
  isolation: isolate;
}

.map-card:first-child {
  grid-column: 1 / -1;
  min-height: 320px;
}

.map-content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.map-title {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.timer {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-2), var(--gold));
}

.server-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.health-ring {
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--health), rgba(255,255,255,0.12) 0);
  margin: 0 auto;
}

.health-ring-inner {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-strong);
  text-align: center;
}

.health-ring-inner strong {
  display: block;
  font-size: 36px;
}

.health-ring-inner span,
.server-refresh-time {
  display: block;
}

.health-ring-inner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.server-refresh-time {
  margin: -4px 0 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

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

.incident {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.incident.warn {
  border-left-color: var(--warn);
}

.incident.bad {
  border-left-color: var(--bad);
}

.server-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.server-secondary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.server-secondary summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.server-secondary summary strong {
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.server-secondary .server-grid {
  padding: 0 14px 14px;
}

.status-good {
  color: var(--green);
}

.status-warn {
  color: var(--warn);
}

.status-bad {
  color: var(--bad);
}

.json-drawer {
  padding: 0;
}

.json-drawer summary {
  min-height: 46px;
  padding: 13px 16px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

pre {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: rgba(0, 0, 0, 0.32);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  min-width: min(360px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes resultCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes controlIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

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

  .query-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .app-shell {
    width: 100%;
    padding: 0 10px 24px;
  }

  body {
    background:
      linear-gradient(135deg, rgba(216, 33, 47, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(14, 15, 18, 0.92), rgba(14, 15, 18, 0.98)),
      url("https://apexlegendsstatus.com/assets/maps/Worlds_Edge.png") center/cover;
  }

  :root.light body {
    background:
      linear-gradient(135deg, rgba(216, 33, 47, 0.14), transparent 30%),
      linear-gradient(180deg, rgba(247, 245, 239, 0.74), rgba(238, 236, 231, 0.9)),
      url("https://apexlegendsstatus.com/assets/maps/Worlds_Edge.png") center/cover;
  }

  .topbar {
    min-height: 62px;
    padding: 10px 12px;
    border-top: none;
    border-left: none;
    border-right: none;
    clip-path: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    padding: 4px;
  }

  .brand-lockup h1 {
    font-size: 20px;
  }

  .console-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .query-panel,
  .results-panel {
    padding: 12px;
    border-radius: var(--radius);
  }

  .query-panel {
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .panel-head {
    display: none;
  }

  .query-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .query-tab {
    min-height: 58px;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .query-tab svg {
    width: 20px;
    height: 20px;
  }

  .query-form {
    gap: 10px;
  }

  .field {
    gap: 6px;
  }

  .field span {
    font-size: 12px;
  }

  input,
  select,
  .custom-select-trigger,
  .primary-action,
  .ghost-action,
  .icon-button {
    min-height: 48px;
  }

  .results-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .results-toolbar h2 {
    font-size: 20px;
    margin: 0;
  }

  .toolbar-right {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .ghost-action {
    width: 48px;
    padding: 0;
    font-size: 0;
  }

  .ghost-action svg {
    width: 20px;
    height: 20px;
  }

  .card-grid,
  .map-grid,
  .server-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .map-card:first-child {
    grid-column: auto;
  }

  .hero-card,
  .hero-content {
    min-height: 360px;
  }

  .hero-title {
    font-size: clamp(34px, 13vw, 54px);
  }

  .metric {
    padding: 10px;
  }

  .map-card,
  .map-card:first-child {
    min-height: 290px;
  }

  .map-content {
    padding: 14px;
  }

  .server-summary {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .health-ring {
    width: 142px;
    height: 142px;
  }

  .health-ring-inner {
    width: 108px;
    height: 108px;
  }

  .result-stage {
    min-height: auto;
    gap: 10px;
  }

  .json-drawer summary {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
