body.active-etf-radar-page main.active-etf-radar {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-inline: auto;
  gap: 16px;
}

.active-etf-radar-page .active-etf-section {
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
}

.active-etf-radar-page .active-etf-section h1,
.active-etf-radar-page .active-etf-section h2,
.active-etf-radar-page .active-etf-section h3 {
  overflow-wrap: anywhere;
}

.active-etf-radar-page .active-etf-subsection-header h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.active-etf-radar-page .active-etf-subsection-header > p:last-child {
  margin: 5px 0 12px;
  font-size: 0.8rem;
}

.active-etf-radar-page .active-etf-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.active-etf-radar-page .active-etf-exposure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.active-etf-radar-page .active-etf-exposure-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.active-etf-radar-page .active-etf-exposure-estimate {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.active-etf-radar-page .active-etf-exposure-item .label,
.active-etf-radar-page .active-etf-exposure-item strong,
.active-etf-radar-page .active-etf-exposure-item .sub {
  display: block;
  overflow-wrap: anywhere;
}

.active-etf-radar-page .active-etf-exposure-item .label,
.active-etf-radar-page .active-etf-exposure-item .sub {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.active-etf-radar-page .active-etf-exposure-item strong {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: 1.16rem;
  font-variant-numeric: tabular-nums;
}

.active-etf-radar-page .active-etf-asset-breakdown-title {
  margin: 18px 0 8px;
  font-size: 0.9rem;
}

.active-etf-radar-page .active-etf-asset-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
}

.active-etf-radar-page .active-etf-asset-row {
  min-width: 0;
  padding: 10px;
  background: var(--card, #161a1e);
}

.active-etf-radar-page .active-etf-asset-row span,
.active-etf-radar-page .active-etf-asset-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.active-etf-radar-page .active-etf-asset-row strong {
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}

.active-etf-radar-page .active-etf-asset-row span {
  font-size: 0.72rem;
  line-height: 1.4;
}

.active-etf-radar-page .active-etf-source-meta,
.active-etf-radar-page .active-etf-derivative-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.active-etf-radar-page .active-etf-source-meta strong,
.active-etf-radar-page .active-etf-derivative-totals strong {
  color: var(--text);
}

.active-etf-radar-page .active-etf-exposure-note,
.active-etf-radar-page .active-etf-exposure-degraded,
.active-etf-radar-page .active-etf-rollover-notice {
  margin-top: 12px;
}

.active-etf-radar-page .active-etf-exposure-note p {
  margin: 0;
  line-height: 1.55;
}

.active-etf-radar-page .active-etf-exposure-note p + p {
  margin-top: 5px;
}

.active-etf-radar-page .active-etf-derivatives-table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.active-etf-radar-page .active-etf-derivatives-table {
  width: 100%;
  min-width: 1180px;
}

.active-etf-radar-page .active-etf-derivatives-table th,
.active-etf-radar-page .active-etf-derivatives-table td {
  white-space: nowrap;
}

.active-etf-radar-page .active-etf-contract-code {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.active-etf-radar-page .active-etf-derivative-status {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.active-etf-radar-page .active-etf-derivative-method {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .active-etf-radar-page .active-etf-exposure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-etf-radar-page .active-etf-asset-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-etf-radar-page .active-etf-asset-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.active-etf-radar-page .active-etf-section-header h1,
.active-etf-radar-page .active-etf-empty h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.active-etf-radar-page .active-etf-title-row,
.active-etf-radar-page .active-etf-news-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.active-etf-radar-page .active-etf-count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.active-etf-radar-page .active-etf-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.active-etf-radar-page .active-etf-metadata strong {
  color: var(--text);
  font-weight: 650;
}

.active-etf-radar-page .active-etf-notice {
  margin-top: 10px;
  font-size: 0.8rem;
}

.active-etf-radar-page .active-etf-table-hint {
  margin: 8px 0 12px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.active-etf-radar-page .copy-table-btn,
.active-etf-radar-page .news-control-btn {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 76px;
  height: auto !important;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.3;
  cursor: pointer;
}

.active-etf-radar-page .copy-table-btn:hover,
.active-etf-radar-page .news-control-btn:hover,
.active-etf-radar-page .copy-table-btn:focus-visible,
.active-etf-radar-page .news-control-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: 2px solid transparent;
}

.active-etf-radar-page .copy-table-btn.copied {
  border-color: #2b7a4b;
  color: #2b7a4b;
}

.active-etf-radar-page .active-etf-desktop-table-wrap {
  width: min(100%, 1128px);
  margin-inline: auto;
  overflow-x: auto;
}

.active-etf-radar-page .active-etf-holdings-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.active-etf-radar-page .active-etf-holdings-table .col-stock-id { width: 88px; }
.active-etf-radar-page .active-etf-holdings-table .col-stock-name { width: auto; }
.active-etf-radar-page .active-etf-holdings-table .col-shares { width: 138px; }
.active-etf-radar-page .active-etf-holdings-table .col-weight { width: 94px; }
.active-etf-radar-page .active-etf-holdings-table .col-delta { width: 126px; }
.active-etf-radar-page .active-etf-holdings-table .col-badge { width: 82px; }

.active-etf-radar-page .compact-table th {
  padding: 10px 12px !important;
  border-bottom: 2px solid var(--accent) !important;
  background: rgba(255, 122, 26, 0.08) !important;
  color: var(--text) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.active-etf-radar-page .compact-table td {
  padding: 8px 12px !important;
  color: var(--text) !important;
  font-size: 0.82rem !important;
  font-variant-numeric: tabular-nums;
}

.active-etf-radar-page .compact-table tbody tr:nth-child(even) td {
  background: rgba(255, 122, 26, 0.04);
}

.active-etf-radar-page .active-etf-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.active-etf-radar-page .active-etf-sort-button:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.active-etf-radar-page .etf-stock-name-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.active-etf-radar-page .etf-stock-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.active-etf-radar-page .etf-stock-trend-button {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.active-etf-radar-page .etf-stock-trend-button:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.active-etf-radar-page .etf-stock-trend-button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.active-etf-radar-page .active-etf-mobile-table-wrap {
  display: none;
}

.active-etf-radar-page .diff-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.active-etf-radar-page .diff-row-item {
  padding-block: 2px;
  font-size: 0.82rem;
  line-height: 1.9;
}

.active-etf-radar-page .diff-section-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.active-etf-radar-page .diff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.active-etf-radar-page .etf-trend-card-head,
.active-etf-radar-page .active-etf-news-header {
  gap: 12px;
}

.active-etf-radar-page .news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-etf-radar-page .news-item-header h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.active-etf-radar-page .active-etf-quick-links .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.active-etf-radar-page .active-etf-quick-links .btn {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
}

.active-etf-radar-page .active-etf-fund-assets summary {
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.active-etf-radar-page .active-etf-fund-dates {
  margin: 10px 0 0;
}

.active-etf-radar-page .active-etf-fund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.active-etf-radar-page .active-etf-fund-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.active-etf-radar-page .active-etf-fund-item .label,
.active-etf-radar-page .active-etf-fund-item .value,
.active-etf-radar-page .active-etf-fund-item .sub {
  display: block;
  overflow-wrap: anywhere;
}

.active-etf-radar-page .active-etf-fund-item .label,
.active-etf-radar-page .active-etf-fund-item .sub {
  color: var(--muted);
  font-size: 0.75rem;
}

.active-etf-radar-page .active-etf-fund-item .value {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.active-etf-radar-page .active-etf-fund-item .sub {
  margin-top: 4px;
}

.active-etf-radar-page .active-etf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
}

.active-etf-radar-page .active-etf-modal-backdrop.is-open {
  display: flex;
}

.active-etf-radar-page .active-etf-modal-content {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card, #161a1e);
  color: var(--text, #fff);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.active-etf-radar-page .active-etf-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #aaa);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.active-etf-radar-page .active-etf-modal-close:hover,
.active-etf-radar-page .active-etf-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text, #fff);
  outline: 2px solid var(--accent);
}

.active-etf-radar-page .active-etf-modal-eyebrow {
  margin: 0 44px 4px 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.active-etf-radar-page .active-etf-modal-content h2 {
  margin: 0 44px 0 0;
}

.active-etf-radar-page .active-etf-modal-status {
  margin-top: 8px;
  min-height: 1.5em;
  line-height: 1.5;
}

.active-etf-radar-page .active-etf-modal-chart {
  height: 260px;
  margin: 14px 0 20px;
}

.active-etf-radar-page .active-etf-modal-table-wrap {
  max-height: 240px;
}

.active-etf-radar-page .active-etf-modal-table-wrap .data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.active-etf-radar-page .active-etf-modal-table-wrap th,
.active-etf-radar-page .active-etf-modal-table-wrap td {
  padding: 7px 8px !important;
  overflow-wrap: anywhere;
  font-size: 0.78rem !important;
}

@media (max-width: 640px) {
  body.active-etf-radar-page main.active-etf-radar {
    width: calc(100% - 16px);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 10px;
    overflow-x: clip;
    gap: 12px;
  }

  .active-etf-radar-page .active-etf-section,
  .active-etf-radar-page .active-etf-empty {
    min-width: 0;
    padding: 14px !important;
  }

  .active-etf-radar-page .active-etf-title-row,
  .active-etf-radar-page .active-etf-news-header {
    align-items: stretch;
  }

  .active-etf-radar-page .active-etf-section-header h1,
  .active-etf-radar-page .active-etf-empty h1 {
    font-size: 1.05rem;
  }

  .active-etf-radar-page .copy-table-btn {
    display: none;
  }

  .active-etf-radar-page .active-etf-metadata {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .active-etf-radar-page .active-etf-desktop-table-wrap {
    display: none;
  }

  .active-etf-radar-page .active-etf-mobile-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .active-etf-radar-page .active-etf-mobile-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }

  .active-etf-radar-page .active-etf-mobile-table th,
  .active-etf-radar-page .active-etf-mobile-table td {
    padding: 6px 3px;
    border-bottom: 1px solid var(--border);
    font-size: 0.68rem;
    line-height: 1.25;
    vertical-align: middle;
  }

  .active-etf-radar-page .active-etf-mobile-table th {
    background: rgba(255, 122, 26, 0.08);
    font-size: 0.64rem;
    font-weight: 700;
  }

  .active-etf-radar-page .active-etf-mobile-table .code { width: 13%; }
  .active-etf-radar-page .active-etf-mobile-table .name { width: 21%; }
  .active-etf-radar-page .active-etf-mobile-table .shares { width: 22%; }
  .active-etf-radar-page .active-etf-mobile-table .weight { width: 14%; }
  .active-etf-radar-page .active-etf-mobile-table .delta { width: 18%; }
  .active-etf-radar-page .active-etf-mobile-table .status { width: 12%; text-align: center; }

  .active-etf-radar-page .active-etf-mobile-table .etf-stock-name-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .active-etf-radar-page .active-etf-mobile-table .etf-stock-trend-button {
    min-height: 22px;
    margin-left: -3px;
    padding: 2px 3px;
    font-size: 0.65rem;
  }

  .active-etf-radar-page .active-etf-mobile-table .badge-change {
    display: inline-block;
    padding: 2px 3px !important;
    font-size: 0.58rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .active-etf-radar-page .diff-summary-grid,
  .active-etf-radar-page .active-etf-fund-grid,
  .active-etf-radar-page .active-etf-exposure-grid,
  .active-etf-radar-page .active-etf-asset-breakdown {
    grid-template-columns: 1fr;
  }

  .active-etf-radar-page .active-etf-derivatives-table-wrap {
    margin-inline: 0;
  }

  .active-etf-radar-page .active-etf-asset-row:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .active-etf-radar-page .active-etf-derivative-totals,
  .active-etf-radar-page .active-etf-source-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .active-etf-radar-page .news-controls {
    flex-direction: column;
    flex: 0 0 auto;
  }

  .active-etf-radar-page .news-control-btn {
    min-width: 72px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .active-etf-radar-page .active-etf-modal-content {
    max-height: calc(100vh - 32px);
    padding: 16px 12px;
  }

  .active-etf-radar-page .active-etf-modal-chart {
    height: 220px;
  }

  .active-etf-radar-page .active-etf-modal-table-wrap th,
  .active-etf-radar-page .active-etf-modal-table-wrap td {
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
  }
}
