:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --surface: #ffffff;
  --surface-soft: #e8f2fb;
  --line: #ccdbe8;
  --text: #172126;
  --muted: #506579;
  --accent: #006fba;
  --accent-dark: #004f86;
  --blue: #0057b8;
  --cyan: #00a7e1;
  --swap: #2f66d0;
  --charge: #2ca35c;
  --green: #2ca35c;
  --amber: #f59e00;
  --red: #d9363e;
  --shadow: 0 12px 32px rgba(23, 33, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  overflow-x: hidden;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 40px) 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.subhead,
.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: max-content;
  color: var(--muted);
  font-size: 13px;
}

.refresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.dot.ok {
  background: var(--green);
}

.dot.bad {
  background: var(--red);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  width: min(1480px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.kpi-grid,
.panel-wide {
  grid-column: 1 / -1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 120px;
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1;
  letter-spacing: 0;
}

.metric-mainline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 8px;
}

.metric-mainline strong {
  margin: 0;
  min-width: 0;
}

.metric-swap strong {
  color: var(--swap);
}

.metric-charge strong {
  color: var(--charge);
}

.header-action {
  height: 34px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.delta-badge {
  display: inline-flex;
  position: static;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dff0ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.delta-prominent {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #d8ebff;
  color: var(--swap);
  box-shadow: none;
}

.delta-prominent small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.delta-prominent b {
  font-size: 20px;
  line-height: 1.05;
}

.delta-charge {
  background: #ddf4e6;
  color: var(--charge);
}

.ranking-panel {
  order: -1;
}

.metric small {
  color: var(--muted);
  font-size: 12px;
}

.panel {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

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

.compact-head {
  align-items: center;
  margin-bottom: 10px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-collapsed {
  display: none;
}

.with-controls {
  align-items: center;
}

.control-row,
.chip-row,
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

select,
input,
button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

select,
input {
  padding: 0 10px;
}

button {
  padding: 0 14px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.segmented {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--blue);
  color: #fff;
}

.daily-controls {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px 10px;
}

.daily-controls #dayRangeTabs {
  order: 1;
}

.weekday-tabs button {
  padding: 0 10px;
}

.weekday-tabs {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  box-shadow: 0 12px 28px rgba(33, 43, 64, 0.14);
}

.weekday-tabs.is-collapsed {
  display: none;
}

.daily-mode-btn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.65;
}

.daily-mode-btn.open::after {
  content: "▴";
}

.holiday-filter {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.holiday-filter input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

button.loading,
.segmented button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button.loading::after,
.segmented button.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ghost-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

.ghost-btn.active {
  border-color: var(--blue);
  background: #dff0ff;
}

.chart {
  width: 100%;
  height: 360px;
  min-height: 280px;
}

.chart.tall {
  height: 410px;
}

.chip-row {
  margin-bottom: 12px;
}

.chip {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
}

.chip.active {
  border-color: var(--accent);
  background: #dff0ff;
  color: var(--accent-dark);
  font-weight: 700;
}

.generation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.generation-card {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.generation-card.active,
.generation-card:hover {
  border-color: var(--swap);
  box-shadow: 0 8px 20px rgba(47, 102, 208, 0.12);
}

.generation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.generation-head strong {
  font-size: 16px;
  white-space: nowrap;
}

.generation-head span {
  color: var(--swap);
  font-size: 12px;
  font-weight: 800;
}

.generation-ratio {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  min-width: 0;
}

.generation-ratio em {
  color: var(--swap);
  font-size: clamp(24px, 2.2vw, 34px);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  min-width: 0;
}

.generation-ratio span {
  color: var(--muted);
  font-size: 13px;
}

.generation-bar {
  height: 6px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.generation-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--swap), #4d8fe8);
}

.generation-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.generation-note .note-short {
  display: none;
}

.generation-note b span::after {
  content: " ";
}

.generation-note b {
  color: #7a8794;
  font-weight: 700;
}

@container (max-width: 172px) {
  .generation-note .note-long {
    display: none;
  }

  .generation-note .note-short {
    display: inline;
  }
}

.generation-note b .note-long {
  display: inline;
}

.station-list,
.compact-list,
.search-results,
.ranking-list,
.favorite-row {
  display: grid;
  gap: 8px;
}

.station-item,
.signal-item,
.search-item,
.ranking-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.station-title,
.search-title,
.ranking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f5;
  color: #6b7882;
  font-size: 11px;
  font-weight: 600;
}

.badge.gen {
  background: #eef2f5;
  color: #6b7882;
}

.badge.stage {
  background: #fff0cf;
  color: #9b5b00;
}

.badge.live {
  background: #dff7e9;
  color: #087a37;
}

.muted,
.station-item p,
.signal-item p,
.search-item p,
.focus-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.search-row {
  margin-bottom: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.search-item,
.ranking-item {
  cursor: pointer;
}

.search-item:hover,
.ranking-item:hover {
  border-color: var(--accent);
}

.ranking-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-ranking .ranking-item {
  padding: 10px;
}

.ranking-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.ranking-item small {
  color: var(--muted);
}

.station-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
}

.station-side {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.station-main {
  min-width: 0;
}

.station-side .station-tools {
  margin-bottom: 18px;
}

.station-side h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.station-side h3 + .side-station-list {
  margin-bottom: 18px;
}

.side-station-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.side-station {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.side-station.active,
.side-station:hover {
  border-color: var(--swap);
  background: #edf5ff;
}

.side-station span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-station small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.side-empty {
  padding: 10px;
  font-size: 12px;
}

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

.station-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-kicker {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.station-display-head h2 {
  margin-bottom: 4px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.18;
}

.favorite-inline {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.station-address {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.station-tools {
  margin-bottom: 10px;
  min-width: 0;
  overflow: hidden;
}

.compact-search {
  position: relative;
  width: 100%;
  max-width: none;
  opacity: 1;
}

.compact-search::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-50%);
}

.compact-search::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  z-index: 1;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.compact-search input {
  width: 100%;
  height: 34px;
  padding-left: 30px;
  background: #f8fbfd;
  font-size: 13px;
}

.search-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.search-results:empty {
  display: none;
}

.search-results .search-item {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
}

.search-results .search-title {
  display: block;
  min-width: 0;
  margin-bottom: 4px;
}

.search-results .search-title span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results .search-item p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin: 8px 0 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef5f9;
  color: #4d6170;
  font-size: 12px;
}

.info-chip i {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #d8e5ee;
  color: #40505c;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.info-chip.maintenance {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b42318;
}

.info-chip.maintenance i {
  background: #fee2e2;
  color: #b42318;
}

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

.mini-metric {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.mini-metric span,
.mini-metric small {
  color: var(--muted);
  font-size: 12px;
}

.mini-metric strong {
  display: block;
  margin: 8px 0 2px;
  font-size: clamp(22px, 1.7vw, 28px);
  color: var(--swap);
}

.trend-tabs {
  margin: 10px 0;
}

.launch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.launch-tabs {
  margin: 0;
}

.launch-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 220px;
  margin-left: auto;
}

.launch-filter input {
  width: min(220px, 26vw);
  min-width: 150px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.launch-filter button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.launch-filter button:hover {
  border-color: var(--swap);
}

.launch-list-head,
.launch-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 0.9fr) minmax(220px, 1.35fr) minmax(260px, 1.5fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: center;
}

.launch-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.launch-list-head.inactive-mode,
.launch-row.inactive-mode {
  grid-template-columns: 72px minmax(150px, 0.85fr) minmax(210px, 1.2fr) minmax(240px, 1.35fr) minmax(150px, 0.8fr) 76px;
}

.inactive-only.is-hidden {
  display: none;
}

.inactive-only.sortable {
  cursor: pointer;
  color: var(--accent-dark);
}

.inactive-only.sortable::after {
  content: " ↕";
  font-weight: 800;
}

.inactive-only.active-sort::after {
  content: " ↑";
}

.inactive-only.sort-asc::after {
  content: " ↑";
}

.inactive-only.sort-desc::after {
  content: " ↓";
}

.launch-list-head {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.launch-list {
  display: grid;
  gap: 6px;
}

.launch-more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.launch-more {
  min-width: 120px;
}

.launch-more.is-hidden {
  display: none;
}

.launch-row {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  color: var(--text);
  text-align: left;
}

.launch-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-station-link {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-station-link:hover {
  color: var(--swap);
}

.launch-row .launch-pending {
  color: #98a4af;
  font-weight: 500;
}

.launch-row .badge {
  justify-self: start;
  font-style: normal;
}

.empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

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

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

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

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

  .station-workspace {
    grid-template-columns: 1fr;
  }

  .station-side {
    padding-right: 0;
    border-right: 0;
  }

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

  .launch-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-filter {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .launch-filter input {
    width: min(320px, 70vw);
  }

  .launch-list-head,
  .launch-row {
    grid-template-columns: 72px 150px minmax(220px, 1fr) minmax(240px, 1fr) 120px;
  }

  .launch-list-head.inactive-mode,
  .launch-row.inactive-mode {
    grid-template-columns: 72px 150px minmax(220px, 1fr) minmax(240px, 1fr) 150px 76px;
  }

  .launch-list-head,
  .launch-row {
    min-width: 880px;
  }
}

@media (max-width: 720px) {
  .app-header,
  .panel-head {
    display: block;
  }

  .header-status {
    justify-content: flex-start;
  }

  .app-header {
    overflow: hidden;
  }

  h1 {
    font-size: 27px;
  }

  .subhead,
  .panel-head p {
    overflow-wrap: anywhere;
  }

  .header-status {
    margin-top: 14px;
  }

  .metric strong {
    font-size: 26px;
  }

  .kpi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .kpi-grid .metric {
    min-width: 0;
    min-height: 112px;
    padding: 14px;
  }

  .kpi-grid .metric-swap {
    flex: 1 1 calc(50% - 5px);
  }

  .kpi-grid .metric-charge {
    flex: 1 1 calc(33.333% - 7px);
  }

  .kpi-grid .metric span {
    font-size: 12px;
  }

  .kpi-grid .metric strong {
    font-size: clamp(20px, 6vw, 26px);
  }

  .kpi-grid .metric-charge strong {
    font-size: clamp(18px, 5vw, 22px);
  }

  .kpi-grid .metric-mainline {
    gap: 8px;
  }

  .kpi-grid .metric-charge .metric-mainline {
    display: block;
  }

  .kpi-grid .metric-charge .delta-prominent {
    margin-top: 8px;
  }

  .kpi-grid .delta-prominent {
    padding: 6px 8px;
  }

  .kpi-grid .delta-prominent small {
    font-size: 10px;
  }

  .generation-grid {
    grid-template-columns: repeat(6, minmax(168px, 1fr));
    overflow-x: auto;
  }

  .generation-card {
    min-height: 108px;
    padding: 10px;
  }

  .generation-head strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .generation-ratio em {
    font-size: 26px;
  }

  .generation-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .generation-note .note-long {
    display: none;
  }

  .generation-note .note-short {
    display: inline;
  }

  .generation-note b .note-long {
    display: inline;
  }

  .generation-note .note-short::before {
    content: "3日内";
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .mini-kpi-grid {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 6px;
    overflow-x: auto;
  }

  .mini-metric {
    min-height: 76px;
    padding: 10px;
  }

  .mini-metric span,
  .mini-metric small {
    font-size: 11px;
  }

  .mini-metric strong {
    font-size: clamp(18px, 5vw, 24px);
  }

  .chart {
    height: 320px;
  }

  .station-side {
    display: flex;
    flex-direction: column;
  }

  .station-side .station-tools {
    order: 5;
    margin: 0 0 18px;
  }

  .launch-list-head {
    display: grid;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px 6px 0 0;
    background: #f7fafc;
  }

  .launch-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .launch-list {
    gap: 0;
  }

  .launch-list-head,
  .launch-row {
    grid-template-columns: 58px 116px 180px 220px 116px;
    gap: 8px;
    min-width: 740px;
  }

  .launch-list-head.inactive-mode,
  .launch-row.inactive-mode {
    grid-template-columns: 58px 116px 180px 220px 124px 64px;
    min-width: 800px;
  }

  .launch-row {
    min-height: 44px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #fff;
  }

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

  .launch-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .launch-tabs button {
    padding: 0 2px;
    font-size: 12px;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }

  .launch-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 8px;
    min-width: 0;
  }

  .launch-filter input {
    width: 100%;
    min-width: 0;
  }

  .launch-filter button {
    padding: 0;
  }

  .side-station-list {
    grid-template-columns: 1fr;
  }

  .station-display-head h2 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }
}
