.kpix-chart {
  --kpix-bg: #ffffff;
  --kpix-text: #16202a;
  --kpix-muted: #657180;
  --kpix-border: #dfe5ea;
  --kpix-grid: rgba(22, 32, 42, .11);
  --kpix-shadow: 0 10px 30px rgba(22, 32, 42, .08);
  width: 100%;
  color: var(--kpix-text);
  font-family: inherit;
}

.kpix-theme-dark {
  --kpix-bg: #111827;
  --kpix-text: #f8fafc;
  --kpix-muted: #aab4c2;
  --kpix-border: #273244;
  --kpix-grid: rgba(255, 255, 255, .10);
  --kpix-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
  .kpix-theme-auto {
    --kpix-bg: #111827;
    --kpix-text: #f8fafc;
    --kpix-muted: #aab4c2;
    --kpix-border: #273244;
    --kpix-grid: rgba(255, 255, 255, .10);
    --kpix-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  }
}

.kpix-card {
  background: var(--kpix-bg);
  border: 1px solid var(--kpix-border);
  border-radius: 18px;
  box-shadow: var(--kpix-shadow);
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
}

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

.kpix-title {
  color: var(--kpix-text);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  margin: 0 0 6px;
}

.kpix-period,
.kpix-current-label,
.kpix-current-note,
.kpix-meta,
.kpix-status,
.kpix-forecast-legend {
  color: var(--kpix-muted);
  font-size: 13px;
}

.kpix-current {
  text-align: right;
  min-width: 104px;
  max-width: 190px;
}

.kpix-current-label,
.kpix-current-note {
  display: block;
}

.kpix-current-label {
  margin-bottom: 2px;
}

.kpix-current-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.kpix-current-value {
  display: block;
  color: var(--kpix-text);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpix-forecast-day-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2px 0 8px 38px;
  color: var(--kpix-text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.kpix-forecast-day-labels span + span {
  border-left: 1px solid var(--kpix-border);
}

.kpix-chart-area {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  height: 320px;
  margin-top: 8px;
}

.kpix-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--kpix-muted);
  font-size: 11px;
  line-height: 1;
  padding-bottom: 24px;
  text-align: right;
}

.kpix-plot {
  position: relative;
  min-width: 0;
  padding-bottom: 24px;
}

.kpix-grid {
  position: absolute;
  inset: 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.kpix-grid i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--kpix-grid);
}

.kpix-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(3px, .7vw, 10px);
  min-width: 0;
}

.kpix-forecast .kpix-bars {
  gap: clamp(2px, .38vw, 6px);
}

.kpix-bar-item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.kpix-day-start::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 24px;
  left: -4px;
  width: 1px;
  background: var(--kpix-border);
  z-index: 2;
}

.kpix-bar-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  min-height: 0;
}

.kpix-bar {
  position: relative;
  width: 100%;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  transition: height .35s ease, filter .15s ease, transform .15s ease, opacity .15s ease;
  cursor: default;
  box-sizing: border-box;
}

.kpix-bar-estimated {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 4px, rgba(255,255,255,.22) 4px, rgba(255,255,255,.22) 6px);
  opacity: .88;
}

.kpix-bar-predicted {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 4px, rgba(255,255,255,.28) 4px, rgba(255,255,255,.28) 6px);
  border: 1px dashed rgba(255,255,255,.72);
  opacity: .68;
}

.kpix-bar:hover,
.kpix-bar:focus {
  filter: brightness(1.06);
  transform: translateY(-2px);
  opacity: 1;
  outline: none;
  z-index: 5;
}

.kpix-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.kpix-bar:hover::after,
.kpix-bar:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.kpix-bar-value {
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.96);
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.kpix-forecast .kpix-bar-value {
  font-size: clamp(7px, .8vw, 10px);
}

.kpix-bar-label {
  height: 24px;
  padding-top: 6px;
  color: var(--kpix-muted);
  font-size: clamp(8px, 1vw, 11px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.kpix-label-muted {
  opacity: .35;
}

.kpix-forecast-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.kpix-forecast-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpix-legend-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #22c55e;
  box-sizing: border-box;
}

.kpix-legend-estimated {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 3px, rgba(255,255,255,.38) 3px, rgba(255,255,255,.38) 5px);
  opacity: .88;
}

.kpix-legend-predicted {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 3px, rgba(255,255,255,.45) 3px, rgba(255,255,255,.45) 5px);
  border: 1px dashed rgba(255,255,255,.85);
  opacity: .68;
}

.kpix-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  border-top: 1px solid var(--kpix-border);
  margin-top: 12px;
  padding-top: 12px;
}

.kpix-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kpix-status {
  padding: 30px 0;
  text-align: center;
}

.kpix-error {
  color: #dc2626;
}

@media (max-width: 600px) {
  .kpix-card {
    border-radius: 14px;
    padding: 14px;
  }

  .kpix-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .kpix-current {
    min-width: 90px;
    max-width: 130px;
  }

  .kpix-current-value {
    font-size: 29px;
  }

  .kpix-current-note {
    font-size: 9px;
  }

  .kpix-forecast-day-labels {
    margin-left: 28px;
    font-size: 10px;
  }

  .kpix-chart-area {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    height: 260px;
  }

  .kpix-bar-value {
    display: none;
  }

  .kpix-bars {
    gap: 3px;
  }

  .kpix-forecast .kpix-bars {
    gap: 2px;
  }

  .kpix-day-start::before {
    left: -2px;
  }

  .kpix-forecast-legend {
    gap: 8px 12px;
    font-size: 11px;
  }
}

/* Solar Cycle 25 line chart */
.kpix-solar-wrap {
  margin-top: 4px;
}

.kpix-solar-canvas {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}

.kpix-solar-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  overflow: visible;
}

.kpix-solar-grid line,
.kpix-solar-year-line {
  stroke: var(--kpix-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kpix-solar-year-line {
  opacity: .65;
  stroke-dasharray: 3 5;
}

.kpix-solar-axis-label,
.kpix-solar-now-label {
  fill: var(--kpix-muted);
  font-family: inherit;
  font-size: 11px;
}

.kpix-solar-now-label {
  font-size: 10px;
  font-weight: 700;
}

.kpix-solar-band {
  fill: rgba(217, 70, 239, .13);
  stroke: none;
}

.kpix-solar-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kpix-solar-monthly-line {
  stroke: #f59e0b;
  stroke-width: 1.5;
  opacity: .52;
}

.kpix-solar-smoothed-line {
  stroke: #22c55e;
  stroke-width: 3;
}

.kpix-solar-predicted-line {
  stroke: #d946ef;
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
}

.kpix-solar-now-line {
  stroke: var(--kpix-muted);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
  opacity: .85;
  vector-effect: non-scaling-stroke;
}

.kpix-solar-hit {
  fill: transparent;
  stroke: transparent;
  cursor: crosshair;
}

.kpix-solar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  color: var(--kpix-muted);
  font-size: 12px;
}

.kpix-solar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kpix-solar-key {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  box-sizing: border-box;
}

.kpix-key-monthly {
  background: #f59e0b;
  opacity: .6;
}

.kpix-key-smoothed {
  background: #22c55e;
}

.kpix-key-predicted {
  height: 0;
  border-top: 3px dashed #d946ef;
  border-radius: 0;
}

.kpix-key-range {
  height: 12px;
  border: 1px solid rgba(217, 70, 239, .28);
  border-radius: 3px;
  background: rgba(217, 70, 239, .13);
}

@media (max-width: 600px) {
  .kpix-solar-canvas,
  .kpix-solar-svg {
    min-height: 280px;
  }

  .kpix-solar-legend {
    gap: 8px 12px;
    font-size: 10px;
  }
}

/* Live solar wind */
.kpix-wind-current {
  display: flex;
  gap: 18px;
  text-align: right;
  flex: 0 0 auto;
}

.kpix-wind-current > div {
  min-width: 92px;
}

.kpix-wind-current strong {
  display: inline-block;
  margin-top: 2px;
  color: var(--kpix-text);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpix-wind-current small {
  display: inline-block;
  margin-left: 4px;
  color: var(--kpix-muted);
  font-size: 10px;
}

.kpix-wind-bz-value.kpix-bz-negative {
  color: #ef4444;
}

.kpix-wind-bz-value.kpix-bz-positive {
  color: #22c55e;
}

.kpix-wind-wrap {
  margin-top: 4px;
}

.kpix-wind-chart-block + .kpix-wind-chart-block {
  margin-top: 18px;
}

.kpix-wind-chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px 54px;
  color: var(--kpix-text);
  font-size: 12px;
}

.kpix-wind-chart-label span {
  color: var(--kpix-muted);
  font-size: 10px;
}

.kpix-wind-canvas {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
}

.kpix-wind-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  overflow: visible;
}

.kpix-wind-grid line {
  stroke: var(--kpix-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kpix-wind-axis-label {
  fill: var(--kpix-muted);
  font-family: inherit;
  font-size: 10px;
}

.kpix-wind-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kpix-wind-speed-line {
  stroke: #38bdf8;
  stroke-width: 2.5;
}

.kpix-wind-bz-line {
  stroke: #a855f7;
  stroke-width: 2.5;
}

.kpix-wind-zero-line {
  stroke: var(--kpix-muted);
  stroke-width: 1.1;
  stroke-dasharray: 4 4;
  opacity: .85;
  vector-effect: non-scaling-stroke;
}

.kpix-wind-bz-south-zone {
  fill: rgba(239, 68, 68, .07);
  stroke: none;
}

.kpix-wind-hit {
  fill: transparent;
  stroke: transparent;
  cursor: crosshair;
}

.kpix-wind-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
  color: var(--kpix-muted);
  font-size: 11px;
}

.kpix-wind-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kpix-wind-key {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.kpix-wind-key-speed {
  background: #38bdf8;
}

.kpix-wind-key-bz {
  background: #a855f7;
}

@media (max-width: 600px) {
  .kpix-solar-wind .kpix-head {
    display: block;
  }

  .kpix-wind-current {
    justify-content: space-between;
    margin-top: 14px;
    text-align: left;
  }

  .kpix-wind-current > div {
    min-width: 0;
  }

  .kpix-wind-current strong {
    font-size: 27px;
  }

  .kpix-wind-chart-label {
    margin-left: 46px;
  }

  .kpix-wind-canvas,
  .kpix-wind-svg {
    min-height: 170px;
  }
}

/* Aurora hemispheric power */
.kpix-power-current {
  text-align: right;
  flex: 0 0 auto;
}

.kpix-power-current > div {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 2px;
}

.kpix-power-current strong {
  color: var(--kpix-text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpix-power-current small {
  color: var(--kpix-muted);
  font-size: 10px;
}

.kpix-power-level {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
}

.kpix-power-wrap {
  margin-top: 8px;
}

.kpix-power-canvas {
  width: 100%;
  min-height: 220px;
  overflow: hidden;
}

.kpix-power-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  overflow: visible;
}

.kpix-power-grid line {
  stroke: var(--kpix-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kpix-power-axis-label {
  fill: var(--kpix-muted);
  font-family: inherit;
  font-size: 10px;
}

.kpix-power-threshold {
  stroke: var(--kpix-muted);
  stroke-width: .8;
  stroke-dasharray: 3 5;
  opacity: .25;
  vector-effect: non-scaling-stroke;
}

.kpix-power-line {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kpix-power-area {
  opacity: .10;
  stroke: none;
}

.kpix-power-hit {
  fill: transparent;
  stroke: transparent;
  cursor: crosshair;
}

.kpix-power-summary {
  margin: 8px 0 0 54px;
  color: var(--kpix-muted);
  font-size: 11px;
}

@media (max-width: 600px) {
  .kpix-aurora-power .kpix-head {
    display: block;
  }

  .kpix-power-current {
    margin-top: 14px;
    text-align: left;
  }

  .kpix-power-current > div {
    justify-content: flex-start;
  }

  .kpix-power-current strong {
    font-size: 30px;
  }

  .kpix-power-canvas,
  .kpix-power-svg {
    min-height: 210px;
  }

  .kpix-power-summary {
    margin-left: 46px;
  }
}

/* GOES X-ray flux */
.kpix-xray-current {
  text-align: right;
  flex: 0 0 auto;
}

.kpix-xray-class {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpix-xray-wrap {
  margin-top: 8px;
}

.kpix-xray-canvas {
  width: 100%;
  min-height: 240px;
  overflow: hidden;
}

.kpix-xray-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  overflow: visible;
}

.kpix-xray-band {
  stroke: none;
}

.kpix-xray-band-a { fill: rgba(34, 197, 94, .035); }
.kpix-xray-band-b { fill: rgba(132, 204, 22, .045); }
.kpix-xray-band-c { fill: rgba(234, 179, 8, .055); }
.kpix-xray-band-m { fill: rgba(249, 115, 22, .07); }
.kpix-xray-band-x { fill: rgba(239, 68, 68, .085); }

.kpix-xray-grid-line {
  stroke: var(--kpix-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kpix-xray-band-label,
.kpix-xray-axis-label {
  fill: var(--kpix-muted);
  font-family: inherit;
  font-size: 10px;
}

.kpix-xray-band-label {
  font-weight: 800;
  opacity: .9;
}

.kpix-xray-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kpix-xray-line-long {
  stroke: #f59e0b;
  stroke-width: 2.7;
}

.kpix-xray-line-short {
  stroke: #38bdf8;
  stroke-width: 1.8;
  opacity: .78;
}

.kpix-xray-hit {
  fill: transparent;
  stroke: transparent;
  cursor: crosshair;
}

.kpix-xray-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
  color: var(--kpix-muted);
  font-size: 11px;
}

.kpix-xray-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kpix-xray-key {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.kpix-xray-key-long { background: #f59e0b; }
.kpix-xray-key-short { background: #38bdf8; }

@media (max-width: 600px) {
  .kpix-xray-flux .kpix-head {
    display: block;
  }

  .kpix-xray-current {
    margin-top: 14px;
    text-align: left;
  }

  .kpix-xray-class {
    font-size: 34px;
  }

  .kpix-xray-canvas,
  .kpix-xray-svg {
    min-height: 220px;
  }
}

/* Space Weather Status panel */
.kpix-space-status .kpix-card {
  overflow: hidden;
}

.kpix-status-head {
  margin-bottom: 16px;
}

.kpix-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.kpix-status-tile {
  --kpix-scale-color: #22c55e;
  --kpix-scale-soft: rgba(34, 197, 94, .16);
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 14px 8px 12px;
  border: 1px solid color-mix(in srgb, var(--kpix-scale-color) 55%, var(--kpix-border));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--kpix-scale-color) 24%, transparent), transparent 52%),
    color-mix(in srgb, var(--kpix-scale-color) 5%, var(--kpix-bg));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 0 0 1px color-mix(in srgb, var(--kpix-scale-color) 8%, transparent),
    0 10px 26px rgba(0,0,0,.10);
  text-align: center;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
  isolation: isolate;
}

.kpix-status-tile::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--kpix-scale-color) 28%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--kpix-scale-color) 8%, transparent);
  pointer-events: none;
  z-index: -1;
}

.kpix-status-tile::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 4px;
  border-radius: 999px;
  background: var(--kpix-scale-color);
  box-shadow:
    0 0 8px var(--kpix-scale-color),
    0 0 18px color-mix(in srgb, var(--kpix-scale-color) 72%, transparent),
    0 0 32px color-mix(in srgb, var(--kpix-scale-color) 42%, transparent);
  opacity: .95;
}

.kpix-scale-badge {
  display: block;
  color: var(--kpix-scale-color);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 9px color-mix(in srgb, var(--kpix-scale-color) 68%, transparent),
    0 0 20px color-mix(in srgb, var(--kpix-scale-color) 36%, transparent);
}

.kpix-scale-copy {
  min-width: 0;
  width: 100%;
}

.kpix-scale-copy strong,
.kpix-scale-level {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpix-scale-copy strong {
  color: var(--kpix-text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
}

.kpix-scale-level {
  color: var(--kpix-muted);
  margin-top: 4px;
  font-size: 10px;
  font-weight: 650;
}

.kpix-scale-0 { --kpix-scale-color: #22c55e; }
.kpix-scale-1 { --kpix-scale-color: #d4d91d; }
.kpix-scale-2 { --kpix-scale-color: #f59e0b; }
.kpix-scale-3 { --kpix-scale-color: #f97316; }
.kpix-scale-4 { --kpix-scale-color: #ef4444; }
.kpix-scale-5 { --kpix-scale-color: #c026d3; }

.kpix-status-tile.kpix-scale-1,
.kpix-status-tile.kpix-scale-2,
.kpix-status-tile.kpix-scale-3,
.kpix-status-tile.kpix-scale-4,
.kpix-status-tile.kpix-scale-5 {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 0 14px color-mix(in srgb, var(--kpix-scale-color) 14%, transparent),
    0 12px 28px rgba(0,0,0,.12);
}

.kpix-space-status .kpix-meta {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .kpix-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .kpix-status-tile {
    min-height: 108px;
    padding: 12px 5px 11px;
    border-radius: 15px;
  }

  .kpix-status-tile::before {
    inset: 6px;
    border-radius: 11px;
  }

  .kpix-scale-badge {
    font-size: clamp(28px, 10vw, 38px);
  }

  .kpix-scale-copy strong {
    font-size: 9px;
  }

  .kpix-scale-level {
    font-size: 9px;
  }
}

/* NOAA alerts inside Space Weather Status */
.kpix-alerts {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--kpix-border);
}

.kpix-alerts-head {
  margin-bottom: 8px;
  color: var(--kpix-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.kpix-alerts-list {
  display: grid;
  gap: 7px;
}

.kpix-alert-item {
  --kpix-alert-color: #d4d91d;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--kpix-alert-color) 18%, var(--kpix-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--kpix-alert-color) 4%, var(--kpix-bg));
}

.kpix-alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kpix-alert-color);
  box-shadow: 0 0 8px var(--kpix-alert-color), 0 0 16px color-mix(in srgb, var(--kpix-alert-color) 45%, transparent);
}

.kpix-alert-body {
  min-width: 0;
}

.kpix-alert-body strong,
.kpix-alert-body span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpix-alert-body strong {
  color: var(--kpix-text);
  font-size: 11px;
  font-weight: 750;
}

.kpix-alert-body span {
  margin-top: 2px;
  color: var(--kpix-muted);
  font-size: 9px;
}

.kpix-alert-time {
  color: var(--kpix-muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpix-alert-empty {
  padding: 9px 0 2px;
  color: var(--kpix-muted);
  font-size: 10px;
}

.kpix-alert-severity-1 { --kpix-alert-color: #d4d91d; }
.kpix-alert-severity-2 { --kpix-alert-color: #f59e0b; }
.kpix-alert-severity-3 { --kpix-alert-color: #f97316; }
.kpix-alert-severity-4 { --kpix-alert-color: #ef4444; }
.kpix-alert-severity-5 { --kpix-alert-color: #c026d3; }

@media (max-width: 600px) {
  .kpix-alerts { margin-top: 14px; padding-top: 13px; }
  .kpix-alert-item { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .kpix-alert-body strong { font-size: 10px; }
  .kpix-alert-body span, .kpix-alert-time { font-size: 8px; }
}
