/* Mila sector UI, flattened for Propshaft and isolated to the sector page. */
.sector-mlr-page a:hover { background: transparent; }
.sector-mlr-hero h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.sector-mlr-hero p { max-width: 800px; margin: 9px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.sector-mlr-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;


}

.sector-mlr-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;



}

.sector-mlr-kicker { margin-bottom: 7px; color: #0e7490; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.sector-mlr-meta { min-width: 225px; padding: 13px 15px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-align: right; }
.sector-mlr-meta span, .sector-mlr-meta strong, .sector-mlr-meta small { display: block; }
.sector-mlr-meta span { color: #94a3b8; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sector-mlr-meta strong { margin-top: 5px; font-size: 13px; }
.sector-mlr-meta small { margin-top: 4px; color: #64748b; font-size: 11px; }

.sector-mlr-alert { display: flex; gap: 9px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 12px; }

.sector-mlr-validation {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #dbeafe;
}

.sector-mlr-validation > div { min-width: 0; padding: 15px 16px; background: #fff; }
.sector-mlr-validation span, .sector-mlr-validation small { display: block; color: #64748b; font-size: 11px; line-height: 1.4; }
.sector-mlr-validation strong { display: block; margin: 6px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.sector-mlr-validation__status { background: #f0fdf4 !important; }
.sector-mlr-validation__status strong { color: #047857; }

.sector-mlr-main-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 14px; }
.sector-mlr-leader-card, .sector-mlr-audit-card, .sector-mlr-panel, .sector-mlr-method > div { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.sector-mlr-leader-card, .sector-mlr-audit-card { padding: 18px; }
.sector-mlr-card-label { color: #0e7490; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.sector-mlr-leader-card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 16px; }
.sector-mlr-leader-symbol { display: block; font-size: 50px; line-height: .95; letter-spacing: -.05em; }
.sector-mlr-leader-sector { display: block; margin-top: 8px; color: #64748b; font-size: 14px; }
.sector-mlr-leader-edge { text-align: right; }
.sector-mlr-leader-edge span { display: block; color: #64748b; font-size: 11px; }
.sector-mlr-leader-edge strong { display: block; margin-top: 5px; font-size: 28px; letter-spacing: -.03em; }
.sector-mlr-leader-card__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #eef2f7; }
.sector-mlr-leader-card__details span, .sector-mlr-leader-card__details strong { display: block; }
.sector-mlr-leader-card__details span { color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sector-mlr-leader-card__details strong { margin-top: 5px; font-size: 12px; }

.sector-mlr-audit-card h2 { margin: 12px 0 8px; font-size: 19px; }
.sector-mlr-audit-card p { margin: 8px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }

.sector-mlr-panel { margin-top: 14px; overflow: hidden; }
.sector-mlr-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid #e2e8f0; background: #fbfdff; }
.sector-mlr-panel__header span { color: #0e7490; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sector-mlr-panel__header h2 { margin: 4px 0 0; font-size: 16px; }
.sector-mlr-panel__header p { max-width: 760px; margin: 6px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.sector-mlr-panel__header small { color: #64748b; font-size: 11px; text-align: right; }
.sector-mlr-panel__actions { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; }
.sector-mlr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 10px; border: 1px solid #bae6fd; border-radius: 9px; background: #ecfeff; color: #0e7490; font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.sector-mlr-button:visited, .sector-mlr-button:hover { color: #0e7490; }
.sector-mlr-table-wrap { overflow-x: auto; }
.sector-mlr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sector-mlr-table th, .sector-mlr-table td { padding: 12px 15px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: middle; }
.sector-mlr-table th { color: #64748b; background: #fff; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.sector-mlr-table tbody tr:last-child td { border-bottom: 0; }
.sector-mlr-table tbody tr:hover { background: #fbfdff; }
.sector-mlr-table tr.is-leader { background: #ecfeff; }
.sector-mlr-table .numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sector-mlr-rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #e2e8f0; border-radius: 999px; color: #64748b; font-size: 11px; font-weight: 900; }

.sector-mlr-correlation-table { min-width: 1030px; }
.sector-mlr-symbol-links .stock-external-links { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sector-mlr-symbol-link { color: #0891b2; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sector-mlr-symbol-link:visited, .sector-mlr-symbol-link:hover { color: #0e7490; }
.sector-mlr-correlation-badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; font-size: 10px; font-weight: 900; white-space: nowrap; }
.sector-mlr-inline-warning { padding: 13px 17px; border-bottom: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; font-size: 12px; }
.sector-mlr-correlation-note { padding: 12px 17px; border-top: 1px solid #e2e8f0; background: #fffbeb; color: #92400e; font-size: 11px; line-height: 1.5; }

.sector-mlr-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.sector-mlr-method > div { padding: 15px 16px; }
.sector-mlr-method strong, .sector-mlr-method span { display: block; }
.sector-mlr-method strong { font-size: 12px; }
.sector-mlr-method span { margin-top: 5px; color: #64748b; font-size: 11px; line-height: 1.55; }

.sector-mlr-empty { padding: 28px 16px; color: #64748b; text-align: center; }
.sector-mlr-empty strong, .sector-mlr-empty span { display: block; }
.sector-mlr-empty span { margin-top: 6px; font-size: 11px; }
.sector-mlr-empty--page { padding: 54px 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.sector-mlr-page .is-positive { color: #047857 !important; }
.sector-mlr-page .is-negative { color: #b91c1c !important; }
.sector-mlr-page .is-neutral { color: #475569 !important; }
.sector-mlr-page .is-correlation-strong { color: #047857 !important; border-color: #a7f3d0; background: #ecfdf5; }
.sector-mlr-page .is-correlation-positive { color: #0369a1 !important; border-color: #bae6fd; background: #f0f9ff; }
.sector-mlr-page .is-correlation-negative { color: #b91c1c !important; border-color: #fecaca; background: #fef2f2; }

@media (max-width: 1100px) {
  .sector-mlr-validation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sector-mlr-validation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-mlr-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sector-mlr-page { padding: 16px; }
  .sector-mlr-hero { display: block; }
  .sector-mlr-meta { margin-top: 14px; text-align: left; }
  .sector-mlr-validation, .sector-mlr-method { grid-template-columns: 1fr; }
  .sector-mlr-leader-card__body { align-items: flex-start; flex-direction: column; }
  .sector-mlr-leader-edge { text-align: left; }
  .sector-mlr-leader-card__details { grid-template-columns: 1fr; }
  .sector-mlr-panel__header { display: block; }
  .sector-mlr-panel__actions { align-items: flex-start; margin-top: 10px; }
  .sector-mlr-panel__header small { display: block; text-align: left; }
}


.sector-mlr-alert--challenger {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.sector-mlr-validation-grid,
.sector-mlr-model-grid,
.sector-mlr-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sector-mlr-validation-card,
.sector-mlr-model-card,
.sector-mlr-ranking-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-validation-card--ridge,
.sector-mlr-model-card--ridge,
.sector-mlr-ranking-card--ridge {
  border-top: 3px solid #0e7490;
}

.sector-mlr-validation-card--elastic,
.sector-mlr-model-card--elastic,
.sector-mlr-ranking-card--elastic {
  border-top: 3px solid #7c3aed;
}

.sector-mlr-validation-card {
  padding: 16px;
}

.sector-mlr-validation-card__header,
.sector-mlr-model-card__header,
.sector-mlr-model-card__prediction,
.sector-mlr-ranking-card__header,
.sector-mlr-comparison-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sector-mlr-validation-card__header h2,
.sector-mlr-model-card__header h2,
.sector-mlr-ranking-card__header h3 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -.015em;
}

.sector-mlr-validation-card__header > strong {
  color: #047857;
  font-size: 12px;
}

.sector-mlr-validation-card--elastic .sector-mlr-validation-card__header > strong {
  color: #6d28d9;
}

.sector-mlr-validation-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.sector-mlr-validation-card__metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fbfdff;
}

.sector-mlr-validation-card__metrics span,
.sector-mlr-validation-card__metrics strong,
.sector-mlr-validation-card__metrics small {
  display: block;
}

.sector-mlr-validation-card__metrics span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sector-mlr-validation-card__metrics strong {
  margin-top: 6px;
  color: #0f172a;
  font-size: 18px;
}

.sector-mlr-validation-card__metrics small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
}

.sector-mlr-validation-card > p,
.sector-mlr-model-card__header p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-model-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sector-mlr-model-badge--elastic {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.sector-mlr-comparison-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.sector-mlr-comparison-banner.is-agreement {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.sector-mlr-comparison-banner.is-disagreement {
  border-color: #fed7aa;
  background: #fff7ed;
}

.sector-mlr-comparison-banner span,
.sector-mlr-comparison-banner strong {
  display: block;
}

.sector-mlr-comparison-banner span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-comparison-banner strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 14px;
}

.sector-mlr-comparison-banner p {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.sector-mlr-model-card__header {
  padding: 16px 17px;
  border-bottom: 1px solid #eef2f7;
  background: #fbfdff;
}

.sector-mlr-model-card__header p {
  max-width: 470px;
}

.sector-mlr-model-card__origin {
  flex: 0 0 auto;
  text-align: right;
}

.sector-mlr-model-card__origin span,
.sector-mlr-model-card__origin strong {
  display: block;
}

.sector-mlr-model-card__origin span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-mlr-model-card__origin strong {
  margin-top: 5px;
  color: #334155;
  font-size: 11px;
}

.sector-mlr-model-card__prediction {
  align-items: flex-end;
  padding: 18px;
}

.sector-mlr-model-card__eyebrow,
.sector-mlr-model-card__sector,
.sector-mlr-model-card__edge span,
.sector-mlr-model-card__metrics span {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.sector-mlr-model-card__eyebrow {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-model-card--elastic .sector-mlr-model-card__eyebrow {
  color: #6d28d9;
}

.sector-mlr-model-card__symbol {
  display: block;
  margin-top: 13px;
  color: #0f172a;
  font-size: 48px;
  line-height: .92;
  letter-spacing: -.05em;
}

.sector-mlr-model-card__sector {
  margin-top: 8px;
  font-size: 13px;
}

.sector-mlr-model-card__edge {
  text-align: right;
}

.sector-mlr-model-card__edge strong {
  display: block;
  margin-top: 6px;
  font-size: 27px;
  letter-spacing: -.03em;
}

.sector-mlr-model-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

.sector-mlr-model-card__metrics > div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.sector-mlr-model-card__metrics span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sector-mlr-model-card__metrics strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-mlr-model-card__empty {
  padding: 34px 18px;
  color: #64748b;
  text-align: center;
}

.sector-mlr-model-card__empty strong,
.sector-mlr-model-card__empty span {
  display: block;
}

.sector-mlr-model-card__empty span {
  margin-top: 6px;
  font-size: 11px;
}

.sector-mlr-audit-card--wide {
  margin-bottom: 14px;
}

.sector-mlr-ranking-grid {
  margin: 0;
  padding: 16px;
}

.sector-mlr-ranking-card__header {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fbfdff;
}

.sector-mlr-ranking-card__header span {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-ranking-card--elastic .sector-mlr-ranking-card__header span {
  color: #6d28d9;
}

.sector-mlr-ranking-card__header small {
  color: #64748b;
  font-size: 10px;
  text-align: right;
}

.sector-mlr-table--compact {
  min-width: 560px;
  font-size: 12px;
}

.sector-mlr-table--compact th,
.sector-mlr-table--compact td {
  padding: 10px 11px;
}

@media (max-width: 980px) {
  .sector-mlr-validation-grid,
  .sector-mlr-model-grid,
  .sector-mlr-ranking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-validation-card__metrics,
  .sector-mlr-model-card__metrics {
    grid-template-columns: 1fr;
  }

  .sector-mlr-validation-card__header,
  .sector-mlr-model-card__header,
  .sector-mlr-model-card__prediction,
  .sector-mlr-ranking-card__header,
  .sector-mlr-comparison-banner {
    display: block;
  }

  .sector-mlr-model-card__origin,
  .sector-mlr-model-card__edge,
  .sector-mlr-comparison-banner p {
    margin-top: 12px;
    text-align: left;
  }

  .sector-mlr-model-card__metrics strong {
    white-space: normal;
  }
}

.sector-mlr-panel--chart {
  overflow: visible;
}

.sector-mlr-walk-forward {
  padding: 16px 17px 18px;
}

.sector-mlr-walk-forward__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.sector-mlr-walk-forward-card {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.sector-mlr-walk-forward-card--ridge {
  border-top: 3px solid #0e7490;
}

.sector-mlr-walk-forward-card--elastic {
  border-top: 3px solid #7c3aed;
}

.sector-mlr-walk-forward-card__header h3 {
  margin: 8px 0 0;
  font-size: 16px;
  letter-spacing: -.015em;
}

.sector-mlr-walk-forward-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sector-mlr-walk-forward-card__grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fbfdff;
}

.sector-mlr-walk-forward-card__grid span,
.sector-mlr-walk-forward-card__grid strong {
  display: block;
}

.sector-mlr-walk-forward-card__grid span {
  color: #64748b;
  font-size: 11px;
}

.sector-mlr-walk-forward-card__grid strong {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.sector-mlr-chart {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.sector-mlr-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.sector-mlr-chart__grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.sector-mlr-chart__zero-line {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.sector-mlr-chart__axis-label {
  fill: #64748b;
  font-size: 11px;
}

.sector-mlr-chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sector-mlr-chart__line--ridge,
.sector-mlr-chart__marker--ridge {
  stroke: #0e7490;
  fill: #0e7490;
}

.sector-mlr-chart__line--elastic,
.sector-mlr-chart__marker--elastic {
  stroke: #7c3aed;
  fill: #7c3aed;
}

.sector-mlr-chart__series-label {
  font-size: 12px;
  font-weight: 700;
}

.sector-mlr-chart__series-label--ridge {
  fill: #0e7490;
}

.sector-mlr-chart__series-label--elastic {
  fill: #7c3aed;
}

.sector-mlr-chart__legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}

.sector-mlr-chart__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sector-mlr-chart__legend-item strong,
.sector-mlr-chart__legend-item span {
  display: block;
}

.sector-mlr-chart__legend-item strong {
  font-size: 12px;
}

.sector-mlr-chart__legend-item span {
  color: #64748b;
  font-size: 11px;
}

.sector-mlr-chart__legend-swatch {
  display: inline-flex;
  width: 16px;
  height: 4px;
  border-radius: 999px;
}

.sector-mlr-chart__legend-swatch--ridge {
  background: #0e7490;
}

.sector-mlr-chart__legend-swatch--elastic {
  background: #7c3aed;
}

.sector-mlr-walk-forward__footnote {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.sector-mlr-walk-forward__footnote p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

.sector-mlr-walk-forward__footnote p + p {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sector-mlr-walk-forward__metrics,
  .sector-mlr-walk-forward-card__grid {
    grid-template-columns: 1fr;
  }
}

.sector-mlr-model-badge--spy {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.sector-mlr-leakage-audit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 17px 0;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.sector-mlr-leakage-audit.is-passed {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.sector-mlr-leakage-audit.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.sector-mlr-leakage-audit > div > span,
.sector-mlr-leakage-audit > div > strong {
  display: block;
}

.sector-mlr-leakage-audit > div > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sector-mlr-leakage-audit > div > strong {
  margin-top: 4px;
  font-size: 13px;
}

.sector-mlr-leakage-audit__facts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sector-mlr-leakage-audit__facts span {
  padding: 6px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.sector-mlr-strategy-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sector-mlr-strategy-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-top-width: 3px;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-strategy-card--ridge {
  border-top-color: #0e7490;
}

.sector-mlr-strategy-card--elastic {
  border-top-color: #7c3aed;
}

.sector-mlr-strategy-card--spy {
  border-top-color: #475569;
}

.sector-mlr-strategy-card h3 {
  margin: 9px 0 0;
  font-size: 16px;
  letter-spacing: -.015em;
}

.sector-mlr-strategy-card__primary {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fbfdff;
}

.sector-mlr-strategy-card__primary span,
.sector-mlr-strategy-card__primary strong {
  display: block;
}

.sector-mlr-strategy-card__primary span {
  color: #64748b;
  font-size: 11px;
}

.sector-mlr-strategy-card__primary strong {
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.sector-mlr-strategy-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.sector-mlr-strategy-card dl > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #eef2f7;
  border-radius: 11px;
  background: #ffffff;
}

.sector-mlr-strategy-card dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.sector-mlr-strategy-card dd {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.sector-mlr-chart__line--spy,
.sector-mlr-chart__marker--spy {
  stroke: #475569;
  fill: #475569;
}

.sector-mlr-chart__series-label--spy {
  fill: #475569;
}

.sector-mlr-chart__legend-swatch--spy {
  background: #475569;
}

.sector-mlr-backtest-empty {
  margin: 16px 17px 18px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
}

.sector-mlr-backtest-empty strong,
.sector-mlr-backtest-empty p,
.sector-mlr-backtest-empty code {
  display: block;
}

.sector-mlr-backtest-empty strong {
  color: #0f172a;
  font-size: 15px;
}

.sector-mlr-backtest-empty p {
  max-width: 720px;
  margin: 7px auto 0;
  font-size: 12px;
  line-height: 1.55;
}

.sector-mlr-backtest-empty code {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .sector-mlr-strategy-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-leakage-audit {
    align-items: flex-start;
    flex-direction: column;
  }

  .sector-mlr-leakage-audit__facts {
    justify-content: flex-start;
  }

  .sector-mlr-strategy-card dl {
    grid-template-columns: 1fr;
  }
}

/* Readability pass for the strict Ridge / Elastic Net / SPY equity chart. */
.sector-mlr-chart--readable {
  overflow: hidden;
  background: #ffffff;
}

.sector-mlr-chart__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-chart__summary-copy {
  min-width: 0;
}

.sector-mlr-chart__summary-copy strong,
.sector-mlr-chart__summary-copy span {
  display: block;
}

.sector-mlr-chart__summary-copy strong {
  color: #0f172a;
  font-size: 13px;
}

.sector-mlr-chart__summary-copy span {
  max-width: 520px;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.sector-mlr-chart__summary-series {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sector-mlr-chart__summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 124px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
}

.sector-mlr-chart__summary-item > div > span,
.sector-mlr-chart__summary-item > div > strong {
  display: block;
}

.sector-mlr-chart__summary-item > div > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.sector-mlr-chart__summary-item > div > strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1;
}

.sector-mlr-chart__summary-item--elastic {
  border-color: #ddd6fe;
  background: #faf5ff;
}

.sector-mlr-chart__summary-item--ridge {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.sector-mlr-chart__summary-item--spy {
  background: #f8fafc;
}

.sector-mlr-chart__viewport {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
}

.sector-mlr-chart--readable .sector-mlr-chart__svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  background: #ffffff;
}

.sector-mlr-chart--readable .sector-mlr-chart__grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart__vertical-grid-line {
  stroke: #f1f5f9;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart__axis-line {
  stroke: #cbd5e1;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart--readable .sector-mlr-chart__zero-line {
  stroke: #94a3b8;
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart--readable .sector-mlr-chart__axis-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.sector-mlr-chart--readable .sector-mlr-chart__line {
  fill: none !important;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart--readable .sector-mlr-chart__line--elastic {
  stroke: #7c3aed;
  stroke-width: 4;
}

.sector-mlr-chart--readable .sector-mlr-chart__line--ridge {
  stroke: #0e7490;
}

.sector-mlr-chart--readable .sector-mlr-chart__line--spy {
  stroke: #475569;
  stroke-dasharray: 8 6;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker {
  stroke: #ffffff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker--elastic {
  fill: #7c3aed;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker--ridge {
  fill: #0e7490;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker--spy {
  fill: #475569;
}

.sector-mlr-chart--readable .sector-mlr-chart__series-label {
  display: none;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch {
  flex: 0 0 auto;
  width: 22px;
  height: 4px;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch--elastic {
  height: 5px;
  background: #7c3aed;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch--ridge {
  background: #0e7490;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch--spy {
  height: 0;
  border-top: 3px dashed #475569;
  border-radius: 0;
  background: transparent;
}

.sector-mlr-chart__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px 13px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sector-mlr-chart__summary {
    display: block;
  }

  .sector-mlr-chart__summary-series {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .sector-mlr-chart__summary-item {
    flex: 1 1 150px;
  }
}

/* Interactive strict walk-forward inspection and 252-origin return history. */
.sector-mlr-chart--interactive {
  position: relative;
}

.sector-mlr-chart--interactive .sector-mlr-chart__viewport {
  position: relative;
}

.sector-mlr-chart__interaction-surface {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.sector-mlr-chart__hover-line {
  stroke: #64748b;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.sector-mlr-chart__hover-marker {
  stroke: #ffffff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.sector-mlr-chart__hover-marker--ridge {
  fill: #0e7490;
}

.sector-mlr-chart__hover-marker--elastic {
  fill: #7c3aed;
}

.sector-mlr-chart__hover-marker--spy {
  fill: #475569;
}

.sector-mlr-chart-tooltip {
  position: absolute;
  z-index: 20;
  width: calc(100% - 16px);
  max-width: 360px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  color: #0f172a;
  pointer-events: none;
}

.sector-mlr-chart-tooltip__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
}

.sector-mlr-chart-tooltip__header strong,
.sector-mlr-chart-tooltip__header span {
  display: block;
}

.sector-mlr-chart-tooltip__header strong {
  font-size: 13px;
}

.sector-mlr-chart-tooltip__header span {
  color: #64748b;
  font-size: 10px;
  text-align: right;
}

.sector-mlr-chart-tooltip__models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.sector-mlr-chart-tooltip__model {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfdff;
}

.sector-mlr-chart-tooltip__model--ridge {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.sector-mlr-chart-tooltip__model--elastic {
  border-color: #ddd6fe;
  background: #faf5ff;
}

.sector-mlr-chart-tooltip__model > span,
.sector-mlr-chart-tooltip__model > strong,
.sector-mlr-chart-tooltip__model > small {
  display: block;
}

.sector-mlr-chart-tooltip__model > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-chart-tooltip__model > strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.sector-mlr-chart-tooltip__model b {
  font-size: 18px;
}

.sector-mlr-chart-tooltip__model em {
  font-size: 13px;
  font-style: normal;
}

.sector-mlr-chart-tooltip__model small {
  margin-top: 5px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.35;
}

.sector-mlr-chart-tooltip__benchmarks {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 10px;
}

.sector-mlr-chart-tooltip__benchmarks b {
  color: #0f172a;
}

.sector-mlr-return-history {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-return-history__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-return-history__header span,
.sector-mlr-return-history__header h3,
.sector-mlr-return-history__header p {
  display: block;
}

.sector-mlr-return-history__header span {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sector-mlr-return-history__header h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.sector-mlr-return-history__header p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-return-history__header small {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.sector-mlr-return-history__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.sector-mlr-return-history__track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding: 14px 16px 18px;
}

.sector-mlr-return-history-card {
  flex: 0 0 288px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-return-history-card.is-latest {
  border-color: #a7f3d0;
  box-shadow: inset 0 3px 0 #10b981;
}

.sector-mlr-return-history-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sector-mlr-return-history-card__header > div:last-child {
  text-align: right;
}

.sector-mlr-return-history-card__header span,
.sector-mlr-return-history-card__header strong {
  display: block;
}

.sector-mlr-return-history-card__header span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-return-history-card__header strong {
  margin-top: 4px;
  font-size: 12px;
}

.sector-mlr-return-history-card__header .sector-mlr-return-history-card__latest {
  color: #047857;
}

.sector-mlr-return-history-card__selection {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #eef2f7;
}

.sector-mlr-return-history-card__selection--ridge {
  background: #f0f9ff;
}

.sector-mlr-return-history-card__selection--elastic {
  background: #faf5ff;
}

.sector-mlr-return-history-card__selection > div:last-of-type {
  text-align: right;
}

.sector-mlr-return-history-card__selection span,
.sector-mlr-return-history-card__selection strong,
.sector-mlr-return-history-card__selection small {
  display: block;
}

.sector-mlr-return-history-card__selection span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-return-history-card__selection strong {
  margin-top: 4px;
  font-size: 16px;
}

.sector-mlr-return-history-card__selection small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 9px;
  line-height: 1.35;
}

.sector-mlr-return-history-card__benchmarks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #e2e8f0;
}

.sector-mlr-return-history-card__benchmarks > div {
  min-width: 0;
  padding: 9px 8px;
  background: #ffffff;
  text-align: center;
}

.sector-mlr-return-history-card__benchmarks dt,
.sector-mlr-return-history-card__benchmarks dd {
  margin: 0;
}

.sector-mlr-return-history-card__benchmarks dt {
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-return-history-card__benchmarks dd {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sector-mlr-chart-tooltip {
    max-width: 330px;
  }

  .sector-mlr-chart-tooltip__models {
    grid-template-columns: 1fr;
  }

  .sector-mlr-return-history__header {
    display: block;
  }

  .sector-mlr-return-history__header small {
    display: block;
    margin-top: 8px;
  }

  .sector-mlr-return-history-card {
    flex-basis: 270px;
  }
}

.sector-mlr-atr-comparison {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-atr-comparison__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sector-mlr-atr-comparison__header > div > span {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sector-mlr-atr-comparison__header h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.sector-mlr-atr-comparison__header p {
  max-width: 800px;
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.sector-mlr-atr-comparison__header small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.sector-mlr-atr-comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sector-mlr-atr-model {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.sector-mlr-atr-model--ridge {
  border-top: 3px solid #0e7490;
}

.sector-mlr-atr-model--elastic {
  border-top: 3px solid #7c3aed;
}

.sector-mlr-atr-model__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 10px;
}

.sector-mlr-atr-model__title h4 {
  margin: 7px 0 0;
  font-size: 15px;
}

.sector-mlr-atr-model__title > strong {
  color: #0f172a;
  font-size: 12px;
  text-align: right;
}

.sector-mlr-atr-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 15px 12px;
}

.sector-mlr-atr-legend__item {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  background: #fbfdff;
  font-size: 10px;
}

.sector-mlr-atr-legend__item > span:nth-child(2) {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-mlr-atr-legend__item strong {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sector-mlr-atr-line-key {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  vertical-align: middle;
}

.sector-mlr-atr-line-key--baseline {
  height: 4px;
  background: #0f172a;
}

.sector-mlr-atr-line-key--atr-100 { background: #b91c1c; }
.sector-mlr-atr-line-key--atr-125 { background: #c2410c; }
.sector-mlr-atr-line-key--atr-150 { background: #a16207; }
.sector-mlr-atr-line-key--atr-175 { background: #0369a1; }
.sector-mlr-atr-line-key--atr-200 { background: #047857; }

.sector-mlr-atr-chart {
  padding: 0 8px;
}

.sector-mlr-atr-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.sector-mlr-atr-chart__grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.sector-mlr-atr-chart__zero-line {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.sector-mlr-atr-chart__axis-label {
  fill: #64748b;
  font-size: 11px;
}

.sector-mlr-atr-chart__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
}

.sector-mlr-atr-chart__line--baseline {
  stroke: #0f172a;
  stroke-width: 4;
  opacity: 1;
}

.sector-mlr-atr-model--ridge .sector-mlr-atr-chart__line--baseline {
  stroke: #0e7490;
}

.sector-mlr-atr-model--elastic .sector-mlr-atr-chart__line--baseline {
  stroke: #7c3aed;
}

.sector-mlr-atr-chart__line--atr-100 { stroke: #b91c1c; }
.sector-mlr-atr-chart__line--atr-125 { stroke: #c2410c; stroke-dasharray: 8 3; }
.sector-mlr-atr-chart__line--atr-150 { stroke: #a16207; stroke-dasharray: 3 3; }
.sector-mlr-atr-chart__line--atr-175 { stroke: #0369a1; stroke-dasharray: 10 4 2 4; }
.sector-mlr-atr-chart__line--atr-200 { stroke: #047857; stroke-dasharray: 12 4; }

.sector-mlr-atr-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #eef2f7;
}

.sector-mlr-atr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.sector-mlr-atr-table th,
.sector-mlr-atr-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
}

.sector-mlr-atr-table th {
  color: #64748b;
  background: #fbfdff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sector-mlr-atr-table td:first-child .sector-mlr-atr-line-key {
  margin-right: 7px;
}

.sector-mlr-atr-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sector-mlr-atr-table tr.is-baseline {
  background: #f8fafc;
}

.sector-mlr-atr-comparison__note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fbfdff;
}

.sector-mlr-atr-comparison__note p {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.6;
}

.sector-mlr-atr-comparison__note p + p {
  margin-top: 5px;
}

@media (max-width: 1100px) {
  .sector-mlr-atr-comparison__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-atr-comparison__header,
  .sector-mlr-atr-model__title {
    display: block;
  }

  .sector-mlr-atr-comparison__header small,
  .sector-mlr-atr-model__title > strong {
    display: block;
    margin-top: 9px;
    text-align: left;
    white-space: normal;
  }

  .sector-mlr-atr-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Regime-aware Elastic Net V2 and genuine walk-forward R² diagnostics. */
.sector-mlr-strategy-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-mlr-model-badge--regime-elastic {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
}

.sector-mlr-strategy-card--regime-elastic,
.sector-mlr-r2-card--regime-elastic {
  border-top-color: #db2777;
}

.sector-mlr-chart__summary-item--regime-elastic {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.sector-mlr-chart--readable .sector-mlr-chart__line--regime-elastic {
  stroke: #db2777;
  stroke-width: 4.5;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker--regime-elastic,
.sector-mlr-chart__hover-marker--regime-elastic {
  fill: #db2777;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch--regime-elastic,
.sector-mlr-chart__legend-swatch--regime-elastic {
  height: 5px;
  background: #db2777;
}

.sector-mlr-chart-tooltip__model--regime-elastic {
  grid-column: 1 / -1;
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.sector-mlr-return-history-card__selection--regime-elastic {
  background: #fdf2f8;
}

.sector-mlr-r2-diagnostics {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-r2-diagnostics__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-r2-diagnostics__header span,
.sector-mlr-r2-diagnostics__header small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-r2-diagnostics__header h3 {
  margin: 5px 0 0;
  font-size: 16px;
}

.sector-mlr-r2-diagnostics__header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-r2-diagnostics__header small {
  max-width: 270px;
  text-align: right;
  text-transform: none;
}

.sector-mlr-r2-diagnostics__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.sector-mlr-r2-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #64748b;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-r2-card--ridge {
  border-top-color: #0e7490;
}

.sector-mlr-r2-card--elastic {
  border-top-color: #7c3aed;
}

.sector-mlr-r2-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sector-mlr-r2-card__header span {
  font-size: 12px;
  font-weight: 900;
}

.sector-mlr-r2-card__header strong {
  font-size: 21px;
  letter-spacing: -.03em;
}

.sector-mlr-r2-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
}

.sector-mlr-r2-card dl > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.sector-mlr-r2-card dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-r2-card dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.sector-mlr-r2-table {
  min-width: 960px;
}

.sector-mlr-r2-diagnostics__note {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .sector-mlr-strategy-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sector-mlr-r2-diagnostics__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-strategy-metric-grid {
    grid-template-columns: 1fr;
  }

  .sector-mlr-r2-diagnostics__header {
    display: block;
  }

  .sector-mlr-r2-diagnostics__header small {
    display: block;
    margin-top: 8px;
    text-align: left;
  }
}

.sector-mlr-chart-tooltip {
  max-width: 420px;
}

.sector-mlr-research-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-research-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 17px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-research-panel__header > div > span,
.sector-mlr-confidence-quintiles__header > div > span {
  display: block;
  color: #7c3aed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sector-mlr-research-panel__header h3,
.sector-mlr-confidence-quintiles__header h4 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 17px;
  letter-spacing: -.015em;
}

.sector-mlr-research-panel__header p {
  max-width: 780px;
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.sector-mlr-research-panel__header small,
.sector-mlr-confidence-quintiles__header small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.sector-mlr-confidence-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.sector-mlr-confidence-rules > div {
  min-width: 0;
  padding: 13px 14px;
  background: #ffffff;
}

.sector-mlr-confidence-rules strong,
.sector-mlr-confidence-rules span {
  display: block;
}

.sector-mlr-confidence-rules strong {
  color: #0f172a;
  font-size: 11px;
}

.sector-mlr-confidence-rules span {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-confidence-chart {
  padding: 16px 17px 8px;
}

.sector-mlr-confidence-chart__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sector-mlr-confidence-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
}

.sector-mlr-confidence-chart__legend-item strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.sector-mlr-confidence-chart__swatch {
  display: inline-flex;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #64748b;
}

.sector-mlr-confidence-chart__swatch--elastic-original { background: #7c3aed; }
.sector-mlr-confidence-chart__swatch--confidence-gated { background: #0e7490; }
.sector-mlr-confidence-chart__swatch--confidence-scaled { background: #2563eb; }
.sector-mlr-confidence-chart__swatch--top2-diversified { background: #d97706; }
.sector-mlr-confidence-chart__swatch--confidence-gated-top2 { background: #be185d; }
.sector-mlr-confidence-chart__swatch--spy { background: #64748b; }

.sector-mlr-confidence-chart__viewport {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.sector-mlr-confidence-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 760px;
}

.sector-mlr-confidence-chart__grid-line,
.sector-mlr-confidence-chart__vertical-grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.sector-mlr-confidence-chart__vertical-grid-line {
  stroke: #f1f5f9;
}

.sector-mlr-confidence-chart__zero-line {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.sector-mlr-confidence-chart__axis-line {
  stroke: #94a3b8;
  stroke-width: 1;
}

.sector-mlr-confidence-chart__axis-label {
  fill: #64748b;
  font-size: 11px;
}

.sector-mlr-confidence-chart__line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sector-mlr-confidence-chart__line--elastic-original {
  stroke: #7c3aed;
  stroke-width: 4;
}

.sector-mlr-confidence-chart__line--confidence-gated {
  stroke: #0e7490;
}

.sector-mlr-confidence-chart__line--confidence-scaled {
  stroke: #2563eb;
  stroke-dasharray: 8 5;
}

.sector-mlr-confidence-chart__line--top2-diversified {
  stroke: #d97706;
}

.sector-mlr-confidence-chart__line--confidence-gated-top2 {
  stroke: #be185d;
  stroke-dasharray: 3 4;
}

.sector-mlr-confidence-chart__line--spy {
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 10 6;
}

.sector-mlr-confidence-chart__marker {
  stroke: #ffffff;
  stroke-width: 2;
}

.sector-mlr-confidence-chart__marker--elastic-original { fill: #7c3aed; }
.sector-mlr-confidence-chart__marker--confidence-gated { fill: #0e7490; }
.sector-mlr-confidence-chart__marker--confidence-scaled { fill: #2563eb; }
.sector-mlr-confidence-chart__marker--top2-diversified { fill: #d97706; }
.sector-mlr-confidence-chart__marker--confidence-gated-top2 { fill: #be185d; }
.sector-mlr-confidence-chart__marker--spy { fill: #64748b; }

.sector-mlr-confidence-table {
  min-width: 1120px;
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-confidence-table td:first-child {
  min-width: 250px;
}

.sector-mlr-confidence-table td:first-child strong,
.sector-mlr-confidence-table td:first-child small {
  display: block;
}

.sector-mlr-confidence-table td:first-child small {
  max-width: 310px;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.sector-mlr-confidence-table tr.is-confidence-baseline {
  background: #faf5ff;
}

.sector-mlr-confidence-quintiles {
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-confidence-quintiles__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  background: #fbfdff;
}

.sector-mlr-confidence-quintile-table {
  min-width: 760px;
}

.sector-mlr-research-panel__note {
  display: flex;
  gap: 7px;
  padding: 13px 17px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .sector-mlr-confidence-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sector-mlr-research-panel__header,
  .sector-mlr-confidence-quintiles__header {
    display: block;
  }

  .sector-mlr-research-panel__header small,
  .sector-mlr-confidence-quintiles__header small {
    display: block;
    margin-top: 9px;
    text-align: left;
  }

  .sector-mlr-confidence-rules {
    grid-template-columns: 1fr;
  }

  .sector-mlr-confidence-chart {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sector-mlr-research-panel__note {
    display: block;
  }

  .sector-mlr-research-panel__note span {
    display: block;
    margin-top: 4px;
  }
}

.sector-mlr-volatility-target-panel {
  margin-top: 18px;
}

.sector-mlr-volatility-target-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 17px 0;
}

.sector-mlr-volatility-target-rules > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fbfdff;
}

.sector-mlr-volatility-target-rules strong,
.sector-mlr-volatility-target-rules span {
  display: block;
}

.sector-mlr-volatility-target-rules strong {
  color: #0f172a;
  font-size: 11px;
}

.sector-mlr-volatility-target-rules span {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-volatility-target-chart {
  padding: 16px 17px 0;
}

.sector-mlr-volatility-target-chart__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sector-mlr-volatility-target-chart__legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  color: #475569;
  font-size: 11px;
}

.sector-mlr-volatility-target-chart__legend-item strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.sector-mlr-volatility-target-chart__swatch {
  display: inline-flex;
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.sector-mlr-volatility-target-chart__swatch--elastic-original { background: #7c3aed; }
.sector-mlr-volatility-target-chart__swatch--vol-target-12 { background: #0e7490; }
.sector-mlr-volatility-target-chart__swatch--vol-target-15 { background: #2563eb; }
.sector-mlr-volatility-target-chart__swatch--vol-target-18 { background: #0891b2; }
.sector-mlr-volatility-target-chart__swatch--inverse-volatility { background: #d97706; }
.sector-mlr-volatility-target-chart__swatch--spy { background: #64748b; }

.sector-mlr-volatility-target-chart__viewport {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.sector-mlr-volatility-target-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 760px;
}

.sector-mlr-volatility-target-chart__grid-line,
.sector-mlr-volatility-target-chart__vertical-grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.sector-mlr-volatility-target-chart__vertical-grid-line {
  stroke-dasharray: 2 5;
}

.sector-mlr-volatility-target-chart__zero-line {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.sector-mlr-volatility-target-chart__axis-line {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.sector-mlr-volatility-target-chart__axis-label {
  fill: #64748b;
  font-size: 11px;
}

.sector-mlr-volatility-target-chart__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sector-mlr-volatility-target-chart__line--elastic-original {
  stroke: #7c3aed;
  stroke-width: 4;
}

.sector-mlr-volatility-target-chart__line--vol-target-12 {
  stroke: #0e7490;
}

.sector-mlr-volatility-target-chart__line--vol-target-15 {
  stroke: #2563eb;
  stroke-width: 2.5;
}

.sector-mlr-volatility-target-chart__line--vol-target-18 {
  stroke: #0891b2;
  stroke-dasharray: 8 4;
}

.sector-mlr-volatility-target-chart__line--inverse-volatility {
  stroke: #d97706;
  stroke-dasharray: 3 4;
}

.sector-mlr-volatility-target-chart__line--spy {
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.sector-mlr-volatility-target-chart__marker {
  stroke: #fff;
  stroke-width: 2;
}

.sector-mlr-volatility-target-chart__marker--elastic-original { fill: #7c3aed; }
.sector-mlr-volatility-target-chart__marker--vol-target-12 { fill: #0e7490; }
.sector-mlr-volatility-target-chart__marker--vol-target-15 { fill: #2563eb; }
.sector-mlr-volatility-target-chart__marker--vol-target-18 { fill: #0891b2; }
.sector-mlr-volatility-target-chart__marker--inverse-volatility { fill: #d97706; }
.sector-mlr-volatility-target-chart__marker--spy { fill: #64748b; }

.sector-mlr-volatility-target-table {
  min-width: 1240px;
  margin-top: 16px;
}

.sector-mlr-volatility-target-table td:first-child {
  min-width: 260px;
}

.sector-mlr-volatility-target-table td:first-child strong,
.sector-mlr-volatility-target-table td:first-child small {
  display: block;
}

.sector-mlr-volatility-target-table td:first-child small {
  max-width: 390px;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.sector-mlr-volatility-target-table tr.is-volatility-baseline {
  background: #f5f3ff;
}

@media (max-width: 1100px) {
  .sector-mlr-volatility-target-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sector-mlr-volatility-target-rules,
  .sector-mlr-volatility-target-chart__legend {
    grid-template-columns: 1fr;
  }

  .sector-mlr-volatility-target-chart {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Focused Elastic Net trend-filter tournament and page cleanup. */
.sector-mlr-strategy-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector-mlr-focused-test {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-focused-test__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-focused-test__header span,
.sector-mlr-focused-test__header small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-focused-test__header h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.sector-mlr-focused-test__header p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

.sector-mlr-focused-test__header small {
  max-width: 290px;
  text-align: right;
  text-transform: none;
  line-height: 1.6;
}

.sector-mlr-focused-test__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 16px 0;
}

.sector-mlr-focused-test__highlights > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #ffffff;
}

.sector-mlr-focused-test__highlights span,
.sector-mlr-focused-test__highlights strong,
.sector-mlr-focused-test__highlights b {
  display: block;
}

.sector-mlr-focused-test__highlights span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-mlr-focused-test__highlights strong {
  margin-top: 6px;
  font-size: 12px;
}

.sector-mlr-focused-test__highlights b {
  margin-top: 5px;
  color: #0f172a;
  font-size: 20px;
}

.sector-mlr-focused-chart {
  padding: 16px;
}

.sector-mlr-focused-chart__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sector-mlr-focused-chart__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fbfdff;
}

.sector-mlr-focused-chart__legend-item > span {
  display: block;
  width: 24px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #64748b;
}

.sector-mlr-focused-chart__legend-item div,
.sector-mlr-focused-chart__legend-item strong,
.sector-mlr-focused-chart__legend-item b {
  min-width: 0;
}

.sector-mlr-focused-chart__legend-item strong,
.sector-mlr-focused-chart__legend-item b {
  display: block;
}

.sector-mlr-focused-chart__legend-item strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-mlr-focused-chart__legend-item b {
  margin-top: 3px;
  font-size: 13px;
}

.sector-mlr-focused-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-focused-chart__line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sector-mlr-focused-chart__line--elastic-original {
  stroke: #7c3aed;
  stroke-width: 4;
}

.sector-mlr-focused-chart__line--shadow-spy {
  stroke: #0e7490;
}

.sector-mlr-focused-chart__line--shadow-cash {
  stroke: #ea580c;
  stroke-dasharray: 8 5;
}

.sector-mlr-focused-chart__line--sector-spy {
  stroke: #16a34a;
  stroke-dasharray: 4 4;
}

.sector-mlr-focused-chart__line--dual-spy {
  stroke: #be185d;
  stroke-dasharray: 10 4 2 4;
}

.sector-mlr-focused-chart__line--spy {
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 3 6;
}

.sector-mlr-focused-chart__legend-item--elastic-original > span { background: #7c3aed; }
.sector-mlr-focused-chart__legend-item--shadow-spy > span { background: #0e7490; }
.sector-mlr-focused-chart__legend-item--shadow-cash > span { background: #ea580c; }
.sector-mlr-focused-chart__legend-item--sector-spy > span { background: #16a34a; }
.sector-mlr-focused-chart__legend-item--dual-spy > span { background: #be185d; }
.sector-mlr-focused-chart__legend-item--spy > span { background: #64748b; }

.sector-mlr-focused-test__table {
  min-width: 1120px;
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-focused-test__table td:first-child {
  min-width: 240px;
}

.sector-mlr-focused-test__table td:first-child strong,
.sector-mlr-focused-test__table td:first-child small {
  display: block;
}

.sector-mlr-focused-test__table td:first-child small {
  max-width: 360px;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.sector-mlr-focused-test__table tr.is-focused-winner {
  background: #f5f3ff;
}

.sector-mlr-focused-test__diagnostics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-focused-test__diagnostics article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fbfdff;
}

.sector-mlr-focused-test__diagnostics article > strong {
  display: block;
  font-size: 12px;
}

.sector-mlr-focused-test__diagnostics dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
}

.sector-mlr-focused-test__diagnostics dl > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  background: #ffffff;
}

.sector-mlr-focused-test__diagnostics dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.sector-mlr-focused-test__diagnostics dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.sector-mlr-focused-test__note {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .sector-mlr-focused-chart__legend,
  .sector-mlr-focused-test__diagnostics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sector-mlr-strategy-metric-grid,
  .sector-mlr-focused-test__highlights,
  .sector-mlr-focused-chart__legend,
  .sector-mlr-focused-test__diagnostics {
    grid-template-columns: 1fr;
  }

  .sector-mlr-focused-test__header {
    display: block;
  }

  .sector-mlr-focused-test__header small {
    display: block;
    margin-top: 10px;
    text-align: left;
  }

  .sector-mlr-focused-chart {
    padding: 12px;
  }
}

/* Polynomial-gate tournament series */
.sector-mlr-focused-chart__line--poly-q21 { stroke: #0e7490; }
.sector-mlr-focused-chart__line--poly-q42 { stroke: #ea580c; stroke-dasharray: 8 4; }
.sector-mlr-focused-chart__line--poly-q63 { stroke: #16a34a; stroke-dasharray: 4 4; }
.sector-mlr-focused-chart__line--poly-c42 { stroke: #be185d; stroke-dasharray: 10 4 2 4; }
.sector-mlr-focused-chart__line--poly-c63 { stroke: #2563eb; stroke-dasharray: 2 4; }

.sector-mlr-focused-chart__legend-item--poly-q21 > span { background: #0e7490; }
.sector-mlr-focused-chart__legend-item--poly-q42 > span { background: #ea580c; }
.sector-mlr-focused-chart__legend-item--poly-q63 > span { background: #16a34a; }
.sector-mlr-focused-chart__legend-item--poly-c42 > span { background: #be185d; }
.sector-mlr-focused-chart__legend-item--poly-c63 > span { background: #2563eb; }

.sector-mlr-focused-test__diagnostics--polynomial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .sector-mlr-focused-test__diagnostics--polynomial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sector-mlr-focused-test__diagnostics--polynomial {
    grid-template-columns: 1fr;
  }
}

/* Original Elastic Net rank-spread tournament */
.sector-mlr-focused-chart__line--spread-t1-b1 {
  stroke: #0e7490;
}

.sector-mlr-focused-chart__line--spread-t1-b3 {
  stroke: #ea580c;
  stroke-dasharray: 8 4;
}

.sector-mlr-focused-chart__line--spread-t3-b3 {
  stroke: #16a34a;
  stroke-dasharray: 4 4;
}

.sector-mlr-focused-chart__line--spread-t1-o9 {
  stroke: #2563eb;
  stroke-dasharray: 10 4 2 4;
}

.sector-mlr-focused-chart__legend-item--spread-t1-b1 > span { background: #0e7490; }
.sector-mlr-focused-chart__legend-item--spread-t1-b3 > span { background: #ea580c; }
.sector-mlr-focused-chart__legend-item--spread-t3-b3 > span { background: #16a34a; }
.sector-mlr-focused-chart__legend-item--spread-t1-o9 > span { background: #2563eb; }

.sector-mlr-focused-test__table--rank-spread {
  min-width: 1460px;
}

.sector-mlr-focused-test__diagnostics--rank-spread {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sector-mlr-rank-spread-sensitivity {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-rank-spread-sensitivity span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 10px;
}

.sector-mlr-rank-spread-sensitivity strong {
  color: #0f172a;
}

@media (max-width: 720px) {
  .sector-mlr-focused-test__diagnostics--rank-spread {
    grid-template-columns: 1fr;
  }
}

.sector-mlr-standalone-trading {
  overflow: visible;
}

.sector-mlr-standalone-trading__status {
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: right;
}

.sector-mlr-standalone-trading__status span,
.sector-mlr-standalone-trading__status strong,
.sector-mlr-standalone-trading__status small {
  display: block;
}

.sector-mlr-standalone-trading__status span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-standalone-trading__status strong {
  margin-top: 5px;
  font-size: 15px;
}

.sector-mlr-standalone-trading__status small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.sector-mlr-standalone-trading__status.is-ready,
.sector-mlr-standalone-trading__status.is-completed,
.sector-mlr-standalone-trading__status.is-held {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.sector-mlr-standalone-trading__status.is-blocked,
.sector-mlr-standalone-trading__status.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.sector-mlr-standalone-trading__status.is-dry-run,
.sector-mlr-standalone-trading__status.is-waiting,
.sector-mlr-standalone-trading__status.is-market-closed {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.sector-mlr-standalone-trading__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 17px 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #e2e8f0;
}

.sector-mlr-standalone-trading__summary > div {
  min-width: 0;
  padding: 13px 14px;
  background: #ffffff;
}

.sector-mlr-standalone-trading__summary span,
.sector-mlr-standalone-trading__summary strong,
.sector-mlr-standalone-trading__summary small {
  display: block;
}

.sector-mlr-standalone-trading__summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sector-mlr-standalone-trading__summary strong {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.sector-mlr-standalone-trading__summary small {
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.sector-mlr-standalone-trading__plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 17px 0;
  padding: 14px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.sector-mlr-standalone-trading__plan.is-ready {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.sector-mlr-standalone-trading__plan span,
.sector-mlr-standalone-trading__plan strong,
.sector-mlr-standalone-trading__plan small {
  display: block;
}

.sector-mlr-standalone-trading__plan > div:first-child > span {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-standalone-trading__plan strong {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.sector-mlr-standalone-trading__plan small {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-standalone-trading__flags {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 220px;
}

.sector-mlr-standalone-trading__flags span {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.sector-mlr-standalone-trading__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 17px 0;
}

.sector-mlr-standalone-trading__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-standalone-trading__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-standalone-trading__card-header span {
  color: #0e7490;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-standalone-trading__card-header h3 {
  margin: 4px 0 0;
  font-size: 14px;
}

.sector-mlr-standalone-trading__card-header small {
  max-width: 190px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.sector-mlr-standalone-trading__table {
  font-size: 12px;
}

.sector-mlr-standalone-trading__table th,
.sector-mlr-standalone-trading__table td {
  padding: 10px 11px;
}

.sector-mlr-standalone-trading__table tr.is-due {
  background: #ecfeff;
}

.sector-mlr-sleeve-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.sector-mlr-sleeve-status.is-active,
.sector-mlr-sleeve-status.is-completed,
.sector-mlr-sleeve-status.is-held {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.sector-mlr-sleeve-status.is-pending,
.sector-mlr-sleeve-status.is-selling,
.sector-mlr-sleeve-status.is-buying {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.sector-mlr-sleeve-status.is-error,
.sector-mlr-sleeve-status.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.sector-mlr-trading-messages {
  margin: 14px 17px 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-trading-messages strong {
  display: block;
}

.sector-mlr-trading-messages ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.sector-mlr-trading-messages--blocked {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.sector-mlr-trading-messages--warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.sector-mlr-standalone-trading__history {
  margin: 14px 17px 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-standalone-trading__history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.sector-mlr-standalone-trading__history summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.sector-mlr-standalone-trading__note {
  display: flex;
  gap: 8px;
  margin: 14px 17px 17px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .sector-mlr-standalone-trading__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-mlr-standalone-trading__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-standalone-trading__status {
    margin-top: 10px;
    text-align: left;
  }

  .sector-mlr-standalone-trading__summary {
    grid-template-columns: 1fr;
  }

  .sector-mlr-standalone-trading__plan {
    flex-direction: column;
  }

  .sector-mlr-standalone-trading__flags {
    justify-content: flex-start;
    min-width: 0;
  }

  .sector-mlr-standalone-trading__card-header {
    display: block;
  }

  .sector-mlr-standalone-trading__card-header small {
    display: block;
    margin-top: 6px;
    max-width: none;
    text-align: left;
  }

  .sector-mlr-standalone-trading__note {
    display: block;
  }
}


/* Current forecast attribution and historical Ridge / Elastic Net agreement evidence. */
.sector-mlr-consensus-intelligence {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #ffffff;
}

.sector-mlr-consensus-intelligence__header,
.sector-mlr-agreement-history__header,
.sector-mlr-attribution-card__header,
.sector-mlr-attribution-drivers__header,
.sector-mlr-agreement-table-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sector-mlr-consensus-intelligence__header {
  padding: 17px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-consensus-intelligence__header > div:first-child > span,
.sector-mlr-agreement-history__header > div > span,
.sector-mlr-attribution-drivers__header > div > span,
.sector-mlr-agreement-table-section__header > div > span {
  display: block;
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sector-mlr-consensus-intelligence__header h2,
.sector-mlr-agreement-history__header h3 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -.02em;
}

.sector-mlr-consensus-intelligence__header p,
.sector-mlr-agreement-history__header p,
.sector-mlr-attribution-card__header p {
  max-width: 820px;
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.sector-mlr-consensus-status {
  flex: 0 0 225px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #ffffff;
  text-align: right;
}

.sector-mlr-consensus-status span,
.sector-mlr-consensus-status strong,
.sector-mlr-consensus-status small {
  display: block;
}

.sector-mlr-consensus-status span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-consensus-status strong {
  margin-top: 5px;
  font-size: 18px;
}

.sector-mlr-consensus-status small {
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.sector-mlr-consensus-status.is-strong,
.sector-mlr-consensus-quality-pill.is-strong {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.sector-mlr-consensus-status.is-moderate,
.sector-mlr-consensus-quality-pill.is-moderate {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.sector-mlr-consensus-status.is-thin,
.sector-mlr-consensus-quality-pill.is-thin {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.sector-mlr-consensus-status.is-unavailable,
.sector-mlr-consensus-quality-pill.is-unavailable {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.sector-mlr-consensus-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.sector-mlr-consensus-summary > div {
  min-width: 0;
  padding: 13px 14px;
  background: #ffffff;
}

.sector-mlr-consensus-summary span,
.sector-mlr-consensus-summary strong,
.sector-mlr-consensus-summary small {
  display: block;
}

.sector-mlr-consensus-summary span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sector-mlr-consensus-summary strong {
  margin-top: 6px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}

.sector-mlr-consensus-summary small {
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.sector-mlr-attribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 17px;
  background: #f8fafc;
}

.sector-mlr-attribution-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-top-width: 3px;
  border-radius: 16px;
  background: #ffffff;
}

.sector-mlr-attribution-card--ridge {
  border-top-color: #0e7490;
}

.sector-mlr-attribution-card--elastic {
  border-top-color: #7c3aed;
}

.sector-mlr-attribution-card__header {
  padding: 14px 15px;
  border-bottom: 1px solid #eef2f7;
  background: #fbfdff;
}

.sector-mlr-attribution-card__header h3 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 15px;
  letter-spacing: -.015em;
}

.sector-mlr-attribution-card__dominant {
  flex: 0 0 165px;
  text-align: right;
}

.sector-mlr-attribution-card__dominant span,
.sector-mlr-attribution-card__dominant strong,
.sector-mlr-attribution-card__dominant small {
  display: block;
}

.sector-mlr-attribution-card__dominant span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-mlr-attribution-card__dominant strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 12px;
}

.sector-mlr-attribution-card__dominant small {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
}

.sector-mlr-attribution-card__reconciliation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
}

.sector-mlr-attribution-card__reconciliation > div {
  min-width: 0;
  padding: 10px 11px;
  background: #ffffff;
}

.sector-mlr-attribution-card__reconciliation span,
.sector-mlr-attribution-card__reconciliation strong {
  display: block;
}

.sector-mlr-attribution-card__reconciliation span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.sector-mlr-attribution-card__reconciliation strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sector-mlr-attribution-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 12px 13px 0;
}

.sector-mlr-attribution-group {
  min-width: 0;
  padding: 9px;
  border: 1px solid #eef2f7;
  border-radius: 11px;
  background: #ffffff;
}

.sector-mlr-attribution-group span,
.sector-mlr-attribution-group strong,
.sector-mlr-attribution-group small {
  display: block;
}

.sector-mlr-attribution-group span {
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-mlr-attribution-group strong {
  margin-top: 5px;
  font-size: 13px;
}

.sector-mlr-attribution-group small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 8px;
  line-height: 1.3;
}

.sector-mlr-attribution-drivers {
  padding: 13px;
}

.sector-mlr-attribution-drivers__header {
  margin-bottom: 9px;
}

.sector-mlr-attribution-drivers__header strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 12px;
}

.sector-mlr-attribution-drivers__header small {
  max-width: 250px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.sector-mlr-attribution-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sector-mlr-attribution-driver {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fbfdff;
}

.sector-mlr-attribution-driver span,
.sector-mlr-attribution-driver strong,
.sector-mlr-attribution-driver small {
  display: block;
}

.sector-mlr-attribution-driver span {
  overflow: hidden;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-mlr-attribution-driver strong {
  margin-top: 5px;
  font-size: 15px;
}

.sector-mlr-attribution-driver small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 8px;
  line-height: 1.35;
}

.sector-mlr-attribution-details {
  border-top: 1px solid #e2e8f0;
}

.sector-mlr-attribution-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: #fbfdff;
  color: #0f172a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}

.sector-mlr-attribution-details summary::-webkit-details-marker {
  display: none;
}

.sector-mlr-attribution-details summary small {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}

.sector-mlr-attribution-table {
  min-width: 1180px;
  font-size: 11px;
}

.sector-mlr-attribution-table th,
.sector-mlr-attribution-table td {
  padding: 9px 10px;
}

.sector-mlr-attribution-group-label {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.sector-mlr-attribution-details__note {
  padding: 10px 13px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
  color: #92400e;
  font-size: 9px;
  line-height: 1.5;
}

.sector-mlr-attribution-empty,
.sector-mlr-agreement-empty {
  padding: 24px 16px;
  color: #64748b;
  text-align: center;
}

.sector-mlr-attribution-empty strong,
.sector-mlr-attribution-empty span,
.sector-mlr-agreement-empty strong,
.sector-mlr-agreement-empty span,
.sector-mlr-agreement-empty code {
  display: block;
}

.sector-mlr-attribution-empty strong,
.sector-mlr-agreement-empty strong {
  color: #0f172a;
  font-size: 13px;
}

.sector-mlr-attribution-empty span,
.sector-mlr-agreement-empty span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
}

.sector-mlr-agreement-empty code {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  padding: 9px 10px;
  border-radius: 9px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

.sector-mlr-agreement-history {
  border-top: 1px solid #cbd5e1;
  background: #ffffff;
}

.sector-mlr-agreement-history__header {
  padding: 15px 17px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-agreement-history__header small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.sector-mlr-agreement-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  padding: 15px 17px 0;
}

.sector-mlr-agreement-metrics > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.sector-mlr-agreement-metrics span,
.sector-mlr-agreement-metrics strong,
.sector-mlr-agreement-metrics small {
  display: block;
}

.sector-mlr-agreement-metrics span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-mlr-agreement-metrics strong {
  margin-top: 6px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.1;
}

.sector-mlr-agreement-metrics small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.35;
}

.sector-mlr-current-symbol-history {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin: 13px 17px 0;
  padding: 13px 14px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
}

.sector-mlr-current-symbol-history > div > span,
.sector-mlr-current-symbol-history > div > strong,
.sector-mlr-current-symbol-history > div > small {
  display: block;
}

.sector-mlr-current-symbol-history > div > span {
  color: #0369a1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-current-symbol-history > div > strong {
  margin-top: 6px;
  color: #0c4a6e;
  font-size: 18px;
}

.sector-mlr-current-symbol-history > div > small {
  margin-top: 4px;
  color: #475569;
  font-size: 10px;
}

.sector-mlr-current-symbol-history dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.sector-mlr-current-symbol-history dl > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #ffffff;
}

.sector-mlr-current-symbol-history dt {
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-mlr-current-symbol-history dd {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.sector-mlr-agreement-table-section {
  margin: 14px 17px 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mlr-agreement-table-section__header {
  padding: 12px 13px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.sector-mlr-agreement-table-section__header strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 12px;
}

.sector-mlr-agreement-table-section__header small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.sector-mlr-agreement-table {
  min-width: 1040px;
}

.sector-mlr-agreement-strength-table {
  min-width: 980px;
}

.sector-mlr-agreement-table td:first-child strong,
.sector-mlr-agreement-table td:first-child small {
  display: block;
}

.sector-mlr-agreement-table td:first-child small {
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
}

.sector-mlr-agreement-table tr.is-agreement-row {
  background: #f0fdf4;
}

.sector-mlr-consensus-quality-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sector-mlr-agreement-history__note {
  margin: 14px 17px 17px;
  padding: 11px 13px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .sector-mlr-consensus-summary,
  .sector-mlr-agreement-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sector-mlr-attribution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sector-mlr-consensus-summary,
  .sector-mlr-agreement-metrics,
  .sector-mlr-attribution-card__reconciliation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-mlr-attribution-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sector-mlr-current-symbol-history {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sector-mlr-consensus-intelligence__header,
  .sector-mlr-agreement-history__header,
  .sector-mlr-attribution-card__header,
  .sector-mlr-attribution-drivers__header,
  .sector-mlr-agreement-table-section__header {
    display: block;
  }

  .sector-mlr-consensus-status,
  .sector-mlr-attribution-card__dominant {
    margin-top: 11px;
    text-align: left;
  }

  .sector-mlr-consensus-status {
    width: auto;
    max-width: none;
  }

  .sector-mlr-consensus-summary,
  .sector-mlr-agreement-metrics,
  .sector-mlr-attribution-card__reconciliation,
  .sector-mlr-attribution-groups,
  .sector-mlr-attribution-driver-grid,
  .sector-mlr-current-symbol-history dl {
    grid-template-columns: 1fr;
  }

  .sector-mlr-attribution-grid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sector-mlr-attribution-drivers__header small,
  .sector-mlr-agreement-history__header small,
  .sector-mlr-agreement-table-section__header small {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .sector-mlr-attribution-details summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final five-session GPT investment-committee copy gate. */
.sector-mlr-gpt-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: linear-gradient(100deg, #faf5ff 0%, #ffffff 58%, #f0f9ff 100%);
}

.sector-mlr-gpt-gate.is-ready {
  box-shadow: inset 3px 0 0 #7c3aed;
}

.sector-mlr-gpt-gate.is-unavailable {
  border-color: #fecaca;
  background: #fef2f2;
  box-shadow: inset 3px 0 0 #dc2626;
}

.sector-mlr-gpt-gate__copy {
  min-width: 0;
}

.sector-mlr-gpt-gate__copy > span,
.sector-mlr-gpt-gate__copy > strong,
.sector-mlr-gpt-gate__copy > small {
  display: block;
}

.sector-mlr-gpt-gate__copy > span {
  color: #6d28d9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sector-mlr-gpt-gate__copy > strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.sector-mlr-gpt-gate__copy > small {
  max-width: 860px;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.sector-mlr-gpt-gate__control {
  flex: 0 0 auto;
}

.sector-mlr-gpt-gate__button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.sector-mlr-gpt-gate__button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.sector-mlr-gpt-gate__error {
  flex: 1 1 100%;
  color: #991b1b;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .sector-mlr-gpt-gate {
    align-items: stretch;
    flex-direction: column;
  }

  .sector-mlr-gpt-gate__control,
  .sector-mlr-gpt-gate__button {
    width: 100%;
  }
}


/* Research-only 50/50 Ridge + Original Elastic Net strict portfolio. */
.sector-mlr-strategy-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-mlr-strategy-card--equal-weight {
  border-top-color: #059669;
  background: #fcfffd;
}

.sector-mlr-model-badge--equal-weight {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.sector-mlr-chart__summary-item--equal-weight {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.sector-mlr-chart--readable .sector-mlr-chart__line--equal-weight {
  stroke: #059669;
  stroke-width: 5;
}

.sector-mlr-chart--readable .sector-mlr-chart__marker--equal-weight,
.sector-mlr-chart__hover-marker--equal-weight {
  fill: #059669;
}

.sector-mlr-chart--readable .sector-mlr-chart__legend-swatch--equal-weight,
.sector-mlr-chart__legend-swatch--equal-weight {
  height: 5px;
  background: #059669;
}

.sector-mlr-chart-tooltip__model--equal-weight {
  grid-column: 1 / -1;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

@media (max-width: 1180px) {
  .sector-mlr-strategy-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sector-mlr-strategy-metric-grid {
    grid-template-columns: 1fr;
  }
}


.sector-mlr-leverage-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 15px 17px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;

  > div:first-child {
    display: grid;
    gap: 3px;
  }

  span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  strong {
    color: #0f172a;
    font-size: 16px;
  }

  small {
    color: #475569;
    line-height: 1.45;
  }

  &.is-enabled {
    border-color: #f59e0b;
    background: #fffbeb;
  }
}

.sector-mlr-leverage-toggle__form {
  flex: 0 0 auto;
  margin: 0;
}

.sector-mlr-leverage-toggle__button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #0f766e;
  border-radius: 9px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;

  &:hover,
  &:focus {
    border-color: #115e59;
    background: #115e59;
    color: #ffffff;
  }

  &.is-disable {
    border-color: #b45309;
    background: #b45309;

    &:hover,
    &:focus {
      border-color: #92400e;
      background: #92400e;
    }
  }
}

.sector-mlr-standalone-trading__flags .is-warning {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #92400e;
}

@media (max-width: 760px) {
  .sector-mlr-leverage-toggle {
    align-items: stretch;
    flex-direction: column;
  }

  .sector-mlr-leverage-toggle__button {
    width: 100%;
  }
}


.sector-mlr-page { font-family: inherit; padding: 26px 4px; }
.sector-mlr-page [hidden] { display: none !important; }
.sector-mlr-operations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.sector-mlr-operations form { margin: 0; }
.sector-mlr-provenance { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--gside-border); border-radius: 10px; background: var(--gside-surface); font-size: 12px; line-height: 1.6; }
.sector-mlr-provenance p { margin: 5px 0; color: var(--gside-muted); }
.sector-mlr-gpt-gate__button { padding: 9px 12px; border: 1px solid var(--gside-accent); border-radius: 7px; background: var(--gside-surface); color: var(--gside-accent-dark); font: inherit; cursor: pointer; }
.sector-mlr-gpt-gate__button:focus-visible { outline: 3px solid var(--gside-focus); }
.sector-mlr-copy-source { width: 100%; min-height: 200px; margin-top: 12px; padding: 12px; font: 12px/1.5 ui-monospace, monospace; }
.sector-mlr-copy-feedback { display: block; font-size: 11px; margin-top: 5px; }


/* Daily sector publication state: data -> live forecasts -> strict chart -> read-only broker snapshot. */
.sector-mlr-automation {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--gside-border);
  border-radius: 12px;
  background: var(--gside-surface);
}

.sector-mlr-automation__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gside-border);
  background: #fbfcfd;
}

.sector-mlr-automation__headline > div:first-child {
  min-width: 0;
}

.sector-mlr-automation__headline span,
.sector-mlr-automation__headline strong,
.sector-mlr-automation__headline small,
.sector-mlr-automation__grid span,
.sector-mlr-automation__grid strong,
.sector-mlr-automation__grid small {
  display: block;
}

.sector-mlr-automation__headline span,
.sector-mlr-automation__grid span {
  color: var(--gside-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sector-mlr-automation__headline strong {
  margin-top: 4px;
  color: var(--gside-text);
  font-size: 14px;
}

.sector-mlr-automation__headline small {
  max-width: 780px;
  margin-top: 4px;
  color: var(--gside-muted);
  font-size: 10px;
  line-height: 1.45;
}

.sector-mlr-automation__target {
  flex: 0 0 auto;
  min-width: 132px;
  text-align: right;
}

.sector-mlr-automation__target strong {
  font-size: 12px;
}

.sector-mlr-automation__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--gside-border);
}

.sector-mlr-automation__grid > div {
  min-width: 0;
  padding: 11px 13px;
  background: var(--gside-surface);
}

.sector-mlr-automation__grid strong {
  margin-top: 5px;
  color: var(--gside-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sector-mlr-automation__grid small {
  margin-top: 3px;
  color: var(--gside-muted);
  font-size: 9px;
  line-height: 1.35;
}

.sector-mlr-automation.is-complete {
  border-color: #cce8d9;
}

.sector-mlr-automation.is-complete .sector-mlr-automation__headline {
  background: var(--gside-success-soft);
}

.sector-mlr-automation.is-complete .sector-mlr-automation__headline > div:first-child > strong {
  color: var(--gside-success);
}

.sector-mlr-automation.is-running {
  border-color: #b9e2ed;
}

.sector-mlr-automation.is-running .sector-mlr-automation__headline {
  background: #eef9fc;
}

.sector-mlr-automation.is-running .sector-mlr-automation__headline > div:first-child > strong {
  color: #0d7089;
}

.sector-mlr-automation.is-waiting {
  border-color: #eedcb2;
}

.sector-mlr-automation.is-waiting .sector-mlr-automation__headline {
  background: #fffbef;
}

.sector-mlr-automation.is-waiting .sector-mlr-automation__headline > div:first-child > strong {
  color: #805b13;
}

.sector-mlr-automation.is-error {
  border-color: #f0c7c2;
}

.sector-mlr-automation.is-error .sector-mlr-automation__headline {
  background: var(--gside-danger-soft);
}

.sector-mlr-automation.is-error .sector-mlr-automation__headline > div:first-child > strong {
  color: var(--gside-danger);
}

@media (max-width: 900px) {
  .sector-mlr-automation__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sector-mlr-automation__headline {
    display: block;
  }

  .sector-mlr-automation__target {
    margin-top: 10px;
    text-align: left;
  }

  .sector-mlr-automation__grid {
    grid-template-columns: 1fr;
  }
}
