.sec-root {
  display: grid;
  gap: 16px;
}

.sec-muted {
  color: var(--muted);
  font-weight: 500;
}

.kpi p small,
.sec-table small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.kpi p small.val-up,
.kpi p small.val-down {
  color: inherit;
}

.sec-table td,
.sec-table th {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sec-sortable {
  cursor: pointer;
  user-select: none;
}

.sec-sortable.is-sorted {
  color: var(--accent);
}

.sec-row {
  cursor: pointer;
}

.sec-row:hover td,
.sec-row:focus-visible td {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.sec-row.is-active td {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.sec-bench td {
  background: color-mix(in srgb, var(--muted) 8%, transparent);
}

.sec-table .sec-name {
  max-width: 280px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sec-breadth-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-breadth {
  display: flex;
  width: 70px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--border);
}

.sec-breadth-up {
  background: var(--positive);
}

.sec-breadth-down {
  background: var(--negative);
}

.sec-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
}

.sec-tag-operating_plant {
  background: color-mix(in srgb, var(--positive) 14%, transparent);
  color: var(--positive);
}

.sec-tag-survey_license,
.sec-tag-survey_application,
.sec-tag-generation_application {
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: var(--muted);
}

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

.sec-range {
  display: inline-flex;
  gap: 4px;
}

.sec-small {
  padding: 4px 10px;
  font-size: var(--text-xs);
  text-decoration: none;
}

.sec-range .is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.sec-returns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 4px 0 12px;
}

.sec-returns span {
  display: grid;
  gap: 2px;
}

.sec-returns small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sec-returns strong {
  font-variant-numeric: tabular-nums;
}

.sec-chart {
  position: relative;
  height: 320px;
}

.sec-chart-sm {
  height: 260px;
}

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

.sec-scroll {
  max-height: 520px;
  overflow: auto;
}

.sec-scroll-lg {
  max-height: 640px;
  overflow: auto;
}

.sec-filter {
  min-width: 200px;
  padding: 6px 10px;
  font: inherit;
  font-size: var(--text-xs);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.hy-progress-list {
  display: grid;
  gap: 4px;
}

.hy-progress {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.hy-progress {
  cursor: pointer;
}

button.hy-progress:hover,
button.hy-progress:focus-visible {
  border-color: var(--border);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.hy-progress + .hy-progress {
  border-top-color: var(--border);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hy-progress-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.hy-progress-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-progress-mw,
.hy-progress-meta small,
.hy-delay {
  color: var(--muted);
  font-size: var(--text-xs);
}

.hy-progress-mw {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hy-progress-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hy-progress-pct {
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hy-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.hy-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}

.hy-bar-final_stage span {
  background: var(--positive);
}

.hy-bar-unsatisfactory span {
  background: var(--negative);
}

.hy-bar-awaiting_ppa_fc span,
.hy-bar-awaiting_fc span,
.hy-bar-recently_licensed span,
.hy-bar-other span {
  background: var(--warning);
}

.hy-progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: var(--text-xs);
}

.hy-status-final_stage {
  background: color-mix(in srgb, var(--positive) 14%, transparent);
  color: var(--positive);
}

.hy-status-unsatisfactory {
  background: color-mix(in srgb, var(--negative) 12%, transparent);
  color: var(--negative);
}

.hy-status-awaiting_ppa_fc,
.hy-status-awaiting_fc,
.hy-status-recently_licensed,
.hy-status-other {
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: color-mix(in srgb, var(--warning) 70%, var(--text));
}

.hy-delay {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hy-empty {
  margin: 8px 0;
}

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

  .sec-chart {
    height: 260px;
  }
}
