.breadth-pulse-page {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  gap: 16px;
  margin: 22px auto 42px;
}

.breadth-pulse-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadth-pulse-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.breadth-pulse-kicker {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.breadth-pulse-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.breadth-pulse-hero h1 {
  margin: 5px 0 0;
  font-size: 46px;
  line-height: 1.04;
}

.breadth-pulse-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.breadth-pulse-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadth-pulse-legend span,
.breadth-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--muted);
  font-weight: 850;
}

.breadth-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa6ba;
}

.breadth-legend-dot.is-up { background: #24c77a; }
.breadth-legend-dot.is-flat { background: #9aa6ba; }
.breadth-legend-dot.is-down { background: #ef5f68; }

.breadth-pulse-shell {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 4%, color-mix(in srgb, var(--brand) 11%, transparent) 0 18%, transparent 34%),
    color-mix(in srgb, var(--panel) 95%, var(--ghost-bg));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .08);
}

.breadth-pulse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.breadth-pulse-toolbar h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.breadth-pulse-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.breadth-pulse-range {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: color-mix(in srgb, var(--ghost-bg) 76%, var(--panel));
}

.breadth-pulse-chip,
.breadth-pulse-refresh {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.breadth-pulse-chip {
  min-width: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
}

.breadth-pulse-chip.active {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 15%, var(--panel));
  color: var(--brand);
}

.breadth-pulse-refresh {
  border: 1px solid color-mix(in srgb, var(--brand) 68%, black 8%);
  background: var(--brand);
  color: #fff;
}

.breadth-pulse-refresh:disabled {
  cursor: wait;
  opacity: .62;
}

.breadth-pulse-summary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.breadth-summary-chip strong {
  color: var(--text);
}

.breadth-summary-chip.is-up strong { color: #24c77a; }
.breadth-summary-chip.is-down strong { color: #ef5f68; }
.breadth-summary-chip.is-flat strong { color: #9aa6ba; }

.breadth-pulse-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 12px;
  min-height: 150px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, #24c77a 16%, transparent), transparent 34%),
    linear-gradient(270deg, color-mix(in srgb, #ef5f68 15%, transparent), transparent 36%),
    color-mix(in srgb, var(--ghost-bg) 55%, var(--panel));
}

.breadth-overview-main {
  display: grid;
  align-content: center;
  gap: 9px;
}

.breadth-overview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.breadth-overview-main strong {
  font-size: 52px;
  line-height: .94;
}

.breadth-overview-main strong.is-up { color: #24c77a; }
.breadth-overview-main strong.is-down { color: #ef5f68; }
.breadth-overview-main strong.is-flat { color: #9aa6ba; }

.breadth-overview-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.breadth-overview-grid span {
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.breadth-overview-grid b {
  font-size: 16px;
}

.breadth-overview-grid small {
  color: var(--muted);
  font-weight: 850;
}

.breadth-stack {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 58%, transparent);
}

.breadth-stack i {
  display: block;
  min-width: 0;
}

.breadth-stack .is-up { background: #24c77a; }
.breadth-stack .is-flat { background: #9aa6ba; }
.breadth-stack .is-down { background: #ef5f68; }

.breadth-pulse-list {
  display: grid;
  gap: 10px;
}

.breadth-sector-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(220px, 1fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}

.breadth-sector-row:hover,
.breadth-sector-row:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  transform: translateY(-1px);
  outline: none;
}

.breadth-sector-row.is-up {
  background: linear-gradient(90deg, color-mix(in srgb, #24c77a 16%, transparent), color-mix(in srgb, var(--panel) 84%, transparent));
}

.breadth-sector-row.is-down {
  background: linear-gradient(90deg, color-mix(in srgb, #ef5f68 16%, transparent), color-mix(in srgb, var(--panel) 84%, transparent));
}

.breadth-sector-row.is-flat {
  background: linear-gradient(90deg, color-mix(in srgb, #9aa6ba 13%, transparent), color-mix(in srgb, var(--panel) 84%, transparent));
}

.breadth-sector-head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.breadth-sector-head strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.breadth-sector-head em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.breadth-sector-row.is-up .breadth-sector-head em { color: #24c77a; }
.breadth-sector-row.is-down .breadth-sector-head em { color: #ef5f68; }

.breadth-sector-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.breadth-sector-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadth-pulse-loading,
.breadth-pulse-empty,
.breadth-pulse-error {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 980px) {
  .breadth-pulse-hero,
  .breadth-pulse-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .breadth-pulse-legend,
  .breadth-pulse-controls {
    justify-content: flex-start;
  }

  .breadth-pulse-overview {
    grid-template-columns: 1fr;
  }

  .breadth-pulse-hero h1 {
    font-size: 38px;
  }

  .breadth-pulse-toolbar h2 {
    font-size: 24px;
  }

  .breadth-sector-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .breadth-pulse-page {
    width: min(100% - 24px, 1180px);
    margin: 14px auto 90px;
  }

  .breadth-pulse-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .breadth-pulse-hero h1 {
    font-size: 32px;
  }

  .breadth-pulse-hero p {
    font-size: 14px;
  }

  .breadth-overview-main strong {
    font-size: 42px;
  }

  .breadth-pulse-range {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .breadth-pulse-chip {
    flex: 1 0 48px;
  }

  .breadth-pulse-refresh {
    width: 100%;
  }

  .breadth-pulse-overview {
    padding: 14px;
  }

  .breadth-overview-grid {
    grid-template-columns: 1fr;
  }

  .breadth-sector-meta {
    grid-template-columns: 1fr;
  }
}
