:root {
  --bg: #f3efe6;
  --bg-strong: #081421;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-dark: rgba(8, 20, 33, 0.94);
  --panel-dark-soft: rgba(8, 20, 33, 0.82);
  --line: rgba(121, 149, 176, 0.18);
  --line-strong: rgba(121, 149, 176, 0.26);
  --text: #eef4fb;
  --text-body: #142130;
  --text-dim: #90a8c1;
  --text-soft: #6a7f96;
  --accent: #2dd4bf;
  --accent-2: #68e1fd;
  --accent-warm: #fb923c;
  --accent-mem: #d6f36f;
  --danger: #ff6b57;
  --ok: #8be28b;
  --shadow: 0 32px 90px rgba(7, 20, 33, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(251, 146, 60, 0.2), transparent 26%),
    linear-gradient(180deg, #faf7f0 0%, var(--bg) 100%);
  color: var(--text-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.veil {
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.35;
}

.veil-a {
  top: -10vw;
  right: -6vw;
  background: rgba(45, 212, 191, 0.28);
}

.veil-b {
  bottom: -12vw;
  left: -8vw;
  background: rgba(59, 130, 246, 0.2);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-dashboard-state="loading"] .page {
  opacity: 0;
  transform: translateY(8px);
}

.page > .panel:not(.hero) {
  margin-top: 22px;
}

.hero,
.panel,
.stat-card,
.tile,
.ai-summary {
  backdrop-filter: blur(22px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 30px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(8, 20, 33, 0.96), rgba(8, 20, 33, 0.84)),
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 35%);
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero::before {
  content: none;
  display: none;
}

.hero::after {
  content: none;
  display: none;
}

.hero-copy h1,
.section-head h2 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 10.2ch;
  display: grid;
  gap: 1px;
}

.hero-host {
  display: block;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: rgba(238, 244, 251, 0.96);
}

.hero-title {
  display: block;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #f7fbff;
}

.hero-copy::after {
  content: none;
  display: none;
}

.hero-summary-text {
  max-width: 44ch;
  margin: 0;
  color: rgba(238, 244, 251, 0.82);
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-key {
  color: rgba(238, 244, 251, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-side {
  display: grid;
  align-content: center;
  gap: 16px;
  width: min(100%, 360px);
  justify-self: end;
  padding-left: 24px;
  border-left: 1px solid rgba(121, 149, 176, 0.1);
  position: relative;
  z-index: 1;
}

.hero-meta-row {
  display: grid;
  gap: 6px;
}

.hero-meta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.hero-inline-strong {
  color: #f7fbff;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.06;
}

.eyebrow,
.mini-label,
.tile-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin-bottom: 10px;
}

.hero .eyebrow,
.hero .mini-label,
.panel-ai .eyebrow,
.panel-ai .mini-label,
.panel-ai .tile-label {
  color: rgba(238, 244, 251, 0.7);
}

.stat-card strong,
.tile-value,
.ai-summary strong,
.hero-inline-strong,
#hero-updated {
  font-family: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(152, 249, 230, 0.18);
  background: rgba(24, 111, 100, 0.92);
  color: #f4fffb;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 16px rgba(13, 91, 80, 0.18);
}

button.hero-pill {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

button.hero-pill:hover:not(:disabled),
button.hero-pill:focus-visible:not(:disabled) {
  filter: brightness(1.05);
}

button.hero-pill:focus-visible {
  outline: 2px solid rgba(104, 225, 253, 0.72);
  outline-offset: 2px;
}

button.hero-pill:disabled {
  cursor: default;
  opacity: 0.86;
}

.hero-inline-time {
  font-size: clamp(22px, 2.2vw, 28px);
}

.hero-note {
  color: rgba(238, 244, 251, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.hero-meta-main .hero-pill {
  align-self: center;
}

.mini-note,
.stat-note,
.tile-note,
.ai-summary p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.hero .mini-note,
.panel-ai .mini-note,
.panel-ai .stat-note,
.panel-ai .tile-note,
.panel-ai .ai-summary p {
  color: rgba(238, 244, 251, 0.72);
}

#hero-status,
#hero-updated {
  line-height: 1.08;
}

.overview-grid,
.split-grid,
.split-grid-bottom {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.stat-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: 100%;
  align-content: start;
  padding: 22px 24px;
  min-height: 132px;
  border: 1px solid rgba(121, 149, 176, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(8, 20, 33, 0.96), rgba(8, 20, 33, 0.82)),
    linear-gradient(135deg, rgba(104, 225, 253, 0.08), transparent 44%);
  box-shadow: var(--shadow);
  color: var(--text);
}

.stat-card strong {
  display: block;
  margin-top: 0;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.92;
}

.stat-card[data-freeze-severity="alarm"] {
  border-color: rgba(255, 107, 87, 0.32);
  background:
    linear-gradient(180deg, rgba(38, 11, 12, 0.96), rgba(24, 10, 12, 0.84)),
    linear-gradient(135deg, rgba(255, 107, 87, 0.16), transparent 44%);
}

.stat-card[data-freeze-severity="offline"] {
  border-color: rgba(251, 146, 60, 0.3);
  background:
    linear-gradient(180deg, rgba(36, 19, 8, 0.96), rgba(24, 13, 8, 0.84)),
    linear-gradient(135deg, rgba(251, 146, 60, 0.14), transparent 44%);
}

.split-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  align-items: stretch;
}

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

.split-grid > .panel {
  height: 100%;
}

.panel {
  padding: 24px 26px;
  border: 1px solid rgba(121, 149, 176, 0.16);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text-body);
}

.hero.panel {
  padding: 30px 34px;
  border-color: rgba(121, 149, 176, 0.16);
  background:
    linear-gradient(140deg, rgba(8, 20, 33, 0.96), rgba(8, 20, 33, 0.84)),
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 35%);
  color: var(--text);
}

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

.section-head > div {
  display: grid;
  align-content: start;
}

.section-head h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  color: #0d2134;
}

.metric-grid,
.traffic-grid,
.ai-metrics {
  display: grid;
  gap: 12px;
}

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

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

.metric-grid-services,
.metric-grid-runtime {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

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

.tile {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(121, 149, 176, 0.14);
  border-radius: 20px;
  background: rgba(8, 20, 33, 0.04);
}

.tile-strong {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.12), rgba(8, 20, 33, 0.04));
  border-color: rgba(45, 212, 191, 0.24);
}

.tile-warm {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.14), rgba(8, 20, 33, 0.04));
  border-color: rgba(251, 146, 60, 0.24);
}

.tile-value {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #10263d;
}

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

.load-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(8, 20, 33, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.load-value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #10263d;
}

.load-meta {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 20, 33, 0.06);
  color: #10263d;
  font-size: 12px;
  font-weight: 600;
}

.panel-ai {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid rgba(121, 149, 176, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 22%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(96, 165, 250, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(8, 20, 33, 0.98), rgba(8, 20, 33, 0.9));
  box-shadow: var(--shadow);
  color: var(--text);
}

.panel-ai .section-head h2,
.panel-ai .tile-value,
.panel-ai .ai-summary strong {
  color: var(--text);
}

.ai-mode-pill {
  background: rgba(121, 149, 176, 0.16);
  color: #d8e7f6;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.ai-side {
  display: grid;
  gap: 12px;
}

.ai-summary {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(121, 149, 176, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-summary strong {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.ai-summary p {
  margin: 0;
  font-size: 14px;
}

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

.ai-counts div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.ai-counts span {
  display: block;
  color: rgba(238, 244, 251, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-counts strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

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

.ai-metrics .tile {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(121, 149, 176, 0.14);
}

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

.ai-flow {
  display: grid;
  gap: 12px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(121, 149, 176, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-flow-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.ai-flow-label {
  color: rgba(238, 244, 251, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-flow-top strong {
  color: rgba(238, 244, 251, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.ai-rail {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.ai-rail::before {
  content: "";
  position: absolute;
  inset: 6px 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 32%, rgba(255, 255, 255, 0.12));
}

.ai-wave {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 42%;
  border-radius: 999px;
  opacity: 0;
  filter: blur(4px);
}

.ai-flow.incoming .ai-wave {
  background: linear-gradient(90deg, transparent, rgba(104, 225, 253, 0.32) 24%, rgba(104, 225, 253, 0.95) 50%, rgba(104, 225, 253, 0.32) 76%, transparent);
  transform: translateX(145%);
}

.ai-flow.outgoing .ai-wave {
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.32) 24%, rgba(45, 212, 191, 0.95) 50%, rgba(45, 212, 191, 0.32) 76%, transparent);
  transform: translateX(-145%);
}

.ai-flow-note {
  color: rgba(238, 244, 251, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.ai-flow[data-live="1"].incoming .ai-wave {
  animation: ai-rail-in 1.05s cubic-bezier(0.22, 0.68, 0.2, 1) 1;
}

.ai-flow[data-live="1"].outgoing .ai-wave {
  animation: ai-rail-out 1.05s cubic-bezier(0.22, 0.68, 0.2, 1) 1;
}

.event-flash {
  animation: ai-flash 850ms ease;
}

.pill-pulse {
  animation: ai-pill-pulse 900ms ease;
}

.queue-pulse {
  animation: ai-queue-pulse 1.2s ease;
}

.panel-ai[data-state="ready"] #ai-health {
  color: #f2fbff;
  text-shadow: 0 0 18px rgba(104, 225, 253, 0.12);
}

.panel-ai[data-state="busy"] #ai-health {
  color: #dff6ff;
  text-shadow: 0 0 20px rgba(104, 225, 253, 0.18);
}

.panel-ai[data-state="waiting"] #ai-health,
.panel-ai[data-state="hold"] #ai-health,
.panel-ai[data-state="degraded"] #ai-health {
  color: #ffe0b9;
  text-shadow: 0 0 18px rgba(251, 146, 60, 0.18);
}

.panel-ai[data-state="down"] #ai-health {
  color: #ffd3cd;
  text-shadow: 0 0 18px rgba(255, 107, 87, 0.2);
}

@keyframes ai-rail-in {
  0% { opacity: 0; transform: translateX(145%); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-145%); }
}

@keyframes ai-rail-out {
  0% { opacity: 0; transform: translateX(-145%); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateX(145%); }
}

@keyframes ai-flash {
  0% { filter: brightness(1); text-shadow: none; }
  30% { filter: brightness(1.18); text-shadow: 0 0 16px rgba(255, 255, 255, 0.18); }
  100% { filter: brightness(1); text-shadow: none; }
}

@keyframes ai-pill-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(104, 225, 253, 0); }
  35% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(104, 225, 253, 0.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(104, 225, 253, 0); }
}

@keyframes ai-queue-pulse {
  0% { border-color: rgba(121, 149, 176, 0.14); box-shadow: none; }
  35% { border-color: rgba(251, 146, 60, 0.44); box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.18), 0 0 22px rgba(251, 146, 60, 0.12); }
  100% { border-color: rgba(121, 149, 176, 0.14); box-shadow: none; }
}

.legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  padding-top: 6px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  font-size: 12px;
  color: #51677f;
}

.section-head > .legend {
  display: flex;
  align-content: normal;
}

.legend::-webkit-scrollbar {
  display: none;
}

.legend span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.swatch-cpu { background: var(--accent-2); }
.swatch-temp { background: #ff9862; }
.swatch-mem { background: var(--accent-mem); }
.swatch-disk { background: var(--accent); }

.chart-wrap {
  height: 320px;
}

#trend-chart {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 20, 33, 0.06), rgba(8, 20, 33, 0.02)),
    linear-gradient(90deg, rgba(121, 149, 176, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(121, 149, 176, 0.08) 1px, transparent 1px);
  background-size: auto, 14.2% 100%, 100% 25%;
}

.trend-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line-cpu { stroke: var(--accent-2); }
.trend-line-temp { stroke: #ff9862; }
.trend-line-mem { stroke: var(--accent-mem); }
.trend-line-disk { stroke: var(--accent); }

#hero-updated,
#overview-boot,
#ai-last-in,
#ai-last-out {
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.08;
}

#overview-freshness,
#overview-cert,
#overview-ai-mode,
#ai-queue-size,
#ai-queue-age {
  font-size: clamp(32px, 4vw, 42px);
}

#ai-active-mode,
#ai-paths {
  font-size: clamp(24px, 2.7vw, 32px);
}

.metric-grid-services .tile,
.metric-grid-runtime .tile {
  min-height: 108px;
}

.metric-grid-services .tile-value,
.metric-grid-runtime .tile-value {
  font-size: 22px;
}

@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid-host,
  .ai-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-flows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .split-grid,
  .split-grid-bottom,
  .ai-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    width: 100%;
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid rgba(121, 149, 176, 0.16);
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100vw - 24px, 100%);
    padding: 20px 0 28px;
  }

  .hero {
    padding: 24px 22px;
  }

  .panel,
  .panel-ai {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-host {
    font-size: clamp(24px, 7.6vw, 34px);
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-summary-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-side {
    gap: 14px;
    padding-top: 14px;
  }

  .hero-meta-main {
    gap: 10px;
  }

  .lede {
    font-size: 14px;
    line-height: 1.55;
  }

  .overview-grid,
  .metric-grid-host,
  .metric-grid-surface,
  .traffic-grid,
  .ai-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-load {
    grid-column: 1 / -1;
  }

  .ai-flows {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .metric-grid-services,
  .metric-grid-runtime {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card,
  .tile,
  .hero {
    min-height: unset;
  }

  #hero-updated,
  #overview-boot,
  #ai-last-in,
  #ai-last-out {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .overview-grid,
  .metric-grid-host,
  .metric-grid-surface,
  .traffic-grid,
  .ai-metrics,
  .metric-grid-services,
  .metric-grid-runtime {
    grid-template-columns: 1fr;
  }
}
