/* ============================================
   SPACE WEATHER DASHBOARD
   Ops-room aesthetic. Dark. Data-dense. Clear.
   Forked from Flight Crisis Dashboard.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg-primary: #07080c;
  --bg-panel: #0d0e14;
  --bg-panel-alt: #10111a;
  --bg-header: #0a0b10;
  --border: #1a1b28;
  --border-light: #252638;

  /* Text */
  --text-primary: #d8d9e4;
  --text-secondary: #9d9eb2;
  --text-muted: #4e4f62;
  --text-dim: #2e2f3e;

  /* Status */
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.10);
  --green-border: rgba(0, 230, 118, 0.25);
  --yellow: #ffc400;
  --yellow-dim: rgba(255, 196, 0, 0.10);
  --yellow-border: rgba(255, 196, 0, 0.25);
  --red: #ff1744;
  --red-dim: rgba(255, 23, 68, 0.10);
  --red-border: rgba(255, 23, 68, 0.25);
  --orange: #ff6d00;
  --orange-dim: rgba(255, 109, 0, 0.10);
  --orange-border: rgba(255, 109, 0, 0.25);

  /* Accent */
  --accent: #448aff;
  --accent-dim: rgba(68, 138, 255, 0.10);
  --accent-border: rgba(68, 138, 255, 0.25);

  /* Solar */
  --solar: #ffab00;
  --solar-dim: rgba(255, 171, 0, 0.08);
  --solar-glow: rgba(255, 171, 0, 0.15);

  /* Spacing */
  --gap: 14px;
  --panel-pad: 20px;
  --radius: 6px;

  /* Fonts */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* --- Scanline effect --- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* --- Layout Shell --- */
.dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--panel-pad);
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.header__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  user-select: none;
  cursor: default;
}

.header__title span {
  color: var(--text-primary);
  font-weight: 700;
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header__updated {
  color: var(--text-secondary);
}

.header__updated.fresh {
  color: var(--green);
}

.header__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.header__dot.stale { background: var(--yellow); }
.header__dot.error { background: var(--red); }
.header__dot.seed { background: var(--text-muted); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Panels (shared) --- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  overflow: visible;
}

.panel__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* --- Status Badges (reusable) --- */
.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
}

.badge.green, .badge.quiet { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.badge.yellow, .badge.unsettled { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge.orange { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--orange-border); }
.badge.red, .badge.storm { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.badge.accent, .badge.unknown { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }

/* --- Status Overview --- */
.status-overview {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.status-overview__main {
  flex: 1;
  padding: 24px var(--panel-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-overview__storm-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  display: inline-block;
  align-self: flex-start;
}

.status-overview__summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 700px;
}

.status-overview__metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.status-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.status-metric__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-metric__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.status-metric__value.green { color: var(--green); }
.status-metric__value.yellow { color: var(--yellow); }
.status-metric__value.orange { color: var(--orange); }
.status-metric__value.red { color: var(--red); }

.status-metric__unit {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

.status-metric__trend {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.status-metric__trend.rising { color: var(--red); }
.status-metric__trend.falling { color: var(--green); }
.status-metric__trend.stable { color: var(--text-dim); }

/* For Bz, falling is worse (more southward) so invert the colors */
.status-metric__trend.bz-rising { color: var(--green); }
.status-metric__trend.bz-falling { color: var(--red); }

/* --- Chart Panels --- */
.chart-panel {
  position: relative;
}

.chart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-panel__current-values {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chart-value {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chart-value__number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.chart-value__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 180px;
}

.chart-container--short {
  height: 140px;
}

.chart-container--tall {
  height: 220px;
}

.chart-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-stack__item {
  position: relative;
}

.chart-stack__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-stack__current {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.75rem;
}

/* --- Image Panels --- */
.image-panel {
  position: relative;
  overflow: hidden;
}

.image-panel__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-panel-alt);
}

.image-panel__img.loading {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Map Panel --- */
.map-panel {
  position: relative;
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-panel-alt);
}

.map-container .leaflet-popup-content-wrapper {
  background: var(--bg-panel);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.map-container .leaflet-popup-tip {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
}

.map-container .leaflet-control-zoom a {
  background: var(--bg-panel) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
}

.map-container .leaflet-control-attribution {
  background: rgba(7, 8, 12, 0.8) !important;
  color: var(--text-dim) !important;
  font-size: 0.6rem !important;
}

.map-container .leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

.quake-popup__mag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.quake-popup__place {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.quake-popup__detail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.quake-list {
  margin-top: 16px;
}

.quake-list__title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quake-list__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.quake-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.quake-item__mag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  flex-shrink: 0;
}

.quake-item__mag.red { color: var(--red); }
.quake-item__mag.orange { color: var(--orange); }
.quake-item__mag.yellow { color: var(--yellow); }

.quake-item__info {
  flex: 1;
}

.quake-item__place {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.quake-item__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* --- Regions Table (Sunspots) --- */
.regions-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.regions-table th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.regions-table td {
  padding: 8px 16px 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  white-space: nowrap;
}

.regions-table tr:last-child td { border-bottom: none; }

.regions-table .region-col {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.regions-table .number-col {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.sunspot-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.sunspot-count__number {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--solar);
  line-height: 1;
}

.sunspot-count__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Info Panel (Schumann, Solar Cycle) --- */
.info-panel__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.info-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  background: var(--accent-dim);
  transition: background 0.2s, border-color 0.2s;
}

.info-panel__link:hover {
  background: rgba(68, 138, 255, 0.18);
  border-color: var(--accent);
}

.info-panel__link::after {
  content: '\2197';
  font-size: 0.8rem;
}

/* --- Flare Class Explainer --- */
.flare-classes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.flare-class {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.flare-class__letter {
  font-weight: 700;
  color: var(--text-primary);
}

.flare-class__desc {
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Two-column panels --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer__svo {
  color: var(--text-muted);
  cursor: default;
  user-select: none;
}

/* --- Data Loading States --- */
.loading-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.error-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
}

/* --- Personal Experience Log (HIDDEN) --- */
.log-panel {
  display: none;
}

.dashboard--log-active .log-panel {
  display: block;
}

.log-panel {
  border: 1px solid var(--accent-border);
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: var(--panel-pad);
}

.log-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.log-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.log-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.log-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.log-form__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.log-form__input,
.log-form__select,
.log-form__textarea {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.2s;
}

.log-form__input:focus,
.log-form__select:focus,
.log-form__textarea:focus {
  border-color: var(--accent);
}

.log-form__select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234e4f62' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.log-form__select option {
  background: var(--bg-panel);
  color: var(--text-primary);
}

.log-form__textarea {
  resize: vertical;
  min-height: 60px;
  font-family: var(--font-body);
}

/* Severity dots */
.severity-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 4px;
}

.severity-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
}

.severity-dot:hover {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.severity-dot.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.severity-dot.active.sev-4,
.severity-dot.active.sev-5 {
  border-color: var(--orange);
  background: var(--orange-dim);
  color: var(--orange);
}

.log-form__submit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  align-self: flex-start;
}

.log-form__submit:hover {
  background: #5a9aff;
}

.log-form__submit:active {
  transform: scale(0.97);
}

/* Log entries list */
.log-entries {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entries::-webkit-scrollbar {
  width: 4px;
}

.log-entries::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.log-entries::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 2px;
}

.log-entry {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  align-items: flex-start;
}

.log-entry__severity {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}

.log-entry__body {
  flex: 1;
}

.log-entry__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.log-entry__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.log-entry__note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.log-entry__context {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

.log-entry__delete {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}

.log-entry__delete:hover {
  color: var(--red);
}

.log-clear {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  padding: 4px 0;
  transition: color 0.2s;
}

.log-clear:hover {
  color: var(--red);
}

.log-empty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}

/* --- Kp Bar Colors --- */
.kp-bar-green { background: var(--green); }
.kp-bar-yellow { background: var(--yellow); }
.kp-bar-orange { background: var(--orange); }
.kp-bar-red { background: var(--red); }

/* --- Tooltips --- */
.has-tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-dim);
}

.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel-alt);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.has-tip:hover::after {
  opacity: 1;
}

/* Flip tooltip below when near top of viewport */
.has-tip--below::after {
  bottom: auto;
  top: calc(100% + 8px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .dashboard {
    padding: 8px;
    gap: 10px;
  }

  .header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .status-overview {
    flex-direction: column;
  }

  .status-overview__metrics {
    flex-direction: column;
    gap: 12px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 140px;
  }

  .chart-container--tall {
    height: 180px;
  }

  .map-container {
    height: 300px;
  }

  .chart-panel__current-values {
    flex-direction: column;
    gap: 8px;
  }

  .log-form__row {
    flex-direction: column;
  }

  .flare-classes {
    flex-direction: column;
  }

  .quake-list__items {
    grid-template-columns: 1fr;
  }

  .quake-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  html { font-size: 13px; }

  .header__title {
    font-size: 0.6rem;
  }

  .status-metric__value {
    font-size: 1.1rem;
  }

  .chart-value__number {
    font-size: 1.2rem;
  }

  .sunspot-count__number {
    font-size: 2rem;
  }
}
