.station-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 24px;
}

.station-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.station-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.station-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 999px;
}

.station-whro .station-header::before { background: var(--whro); }
.station-whrv .station-header::before { background: var(--whrv); }

.station-header h2 {
  margin: 0 0 4px;
  padding-left: 16px;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.station-header span {
  display: block;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.station-body {
  padding: 24px;
}

.log-snapshot {
  display: grid;
  gap: 18px;
}

.log-date-large {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--whro);
}

.station-whrv .log-date-large {
  color: var(--whrv);
}

.log-subtitle {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
}

.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.snapshot-metric {
  padding: 16px;
  border-right: 1px solid var(--border);
}

.snapshot-metric:last-child {
  border-right: 0;
}

.snapshot-metric strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.snapshot-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.snapshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-section {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}

.panel-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 850;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.session-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.session-item strong {
  display: block;
  font-size: 15px;
}

.session-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-top: 2px;
}

.past-log-details {
  margin-top: 18px;
}

.past-row-clean {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.past-row-clean:last-child {
  border-bottom: 0;
}

html[data-theme="dark"] .status-big,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .pill {
  color: #06283a !important;
  font-weight: 900 !important;
}

html[data-theme="dark"] .status-ready,
html[data-theme="dark"] .status-big.status-ready,
html[data-theme="dark"] .status-pill.ready {
  background: #bae6fd !important;
  color: #06283a !important;
  border-color: #7dd3fc !important;
}

html[data-theme="dark"] .status-review,
html[data-theme="dark"] .status-big.status-review,
html[data-theme="dark"] .status-pill.review {
  background: #fde68a !important;
  color: #451a03 !important;
  border-color: #facc15 !important;
}

html[data-theme="dark"] .status-final,
html[data-theme="dark"] .status-big.status-final,
html[data-theme="dark"] .status-pill.final {
  background: #bbf7d0 !important;
  color: #052e16 !important;
  border-color: #86efac !important;
}

html[data-theme="dark"] .status-error,
html[data-theme="dark"] .status-big.status-error,
html[data-theme="dark"] .status-pill.error {
  background: #fecaca !important;
  color: #450a0a !important;
  border-color: #fca5a5 !important;
}

@media (max-width: 1100px) {
  .station-dashboard {
    grid-template-columns: 1fr;
  }

  .snapshot-metrics,
  .session-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 700px) {
  .snapshot-metrics,
  .session-grid,
  .past-row-clean {
    grid-template-columns: 1fr;
  }

  .snapshot-metric {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .snapshot-metric:last-child {
    border-bottom: 0;
  }
}

/* Upcoming logs row */
.past-row-clean {
  grid-template-columns: 150px 1fr 90px auto;
}
