
.research-view .blocker-list { margin: 0; padding-left: 18px; color: #c9d5e3; }
.research-view .blocker-list li + li { margin-top: 5px; }
.research-view .why-panel { margin: 15px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.research-view .why-panel ul { margin-bottom: 0; }
.research-view .analysis-method-fields { display: contents; }
.research-view .portfolio-winners { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--section-space); margin-top: 16px; }
.research-view .portfolio-winner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; align-content: start; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; background: transparent; }
.research-view .portfolio-winner h3 { grid-column: 1/-1; margin: 0; }
.research-view .portfolio-winner > .section-note, .research-view .portfolio-discovery, .research-view .portfolio-actions { grid-column: 1/-1; }
.research-view .portfolio-headline { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.research-view .portfolio-headline span { display: grid; gap: 3px; color: var(--muted); font-size: .72rem; }
.research-view .portfolio-headline strong { color: var(--text); font-size: var(--metric-value-size); }
.research-view .portfolio-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.research-view .portfolio-group-target { flex: 1 1 220px; min-width: 0; }
.research-view .portfolio-group-target select { width: 100%; max-width: none; }
.research-view .portfolio-chart { width: 100%; min-height: 220px; margin-top: 12px; }
.research-view .portfolio-chart .profit { fill: none; stroke: var(--green); stroke-width: 3; }
.research-view .portfolio-chart .equity { fill: none; stroke: var(--blue); stroke-width: 3; }
.research-view .portfolio-chart .zero { stroke: #53667d; stroke-dasharray: 5 5; }
.research-view .portfolio-chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: .75rem; }
.research-view .portfolio-chart-legend i { display: inline-block; width: 22px; border-top: 3px solid var(--green); margin-right: 6px; }
.research-view .portfolio-chart-legend i.equity { border-color: var(--blue); }
.research-view .portfolio-period { border-top: 1px solid var(--line); padding-top: var(--field-gap); margin-top: var(--field-gap); }
.research-view .portfolio-period h4 { margin: 0 0 7px; }
.research-view .portfolio-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.research-view .portfolio-detail-grid > div { min-width: 0; }
@media (max-width: 900px) {
  .research-view .portfolio-winners, .research-view .portfolio-winner, .research-view .portfolio-detail-grid { grid-template-columns: 1fr; }
  .research-view .portfolio-winner > * { grid-column: 1; }
  .research-view .portfolio-headline { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.research-view, .betting-analysis-view { min-width: 0; }
.research-view > *, .betting-analysis-view > * { min-width: 0; }
.research-view details.card, .betting-analysis-view details.card { display: block; }
.research-view .table-wrap, .betting-analysis-view .table-wrap { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
.research-view .weather-advanced { grid-column: 1 / -1; min-width: 0; }
.research-view form, .research-view .filters { align-items: end; }
.research-view .message:empty, .betting-analysis-view .section-note:empty { display: none; }
.research-view .weather-form .weather-locations { grid-column: 1 / -1; }
.research-view .weather-form fieldset { display: flex; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.research-view .weather-form .check { max-width: 100%; }
.research-view .weather-form .check span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .betting-analysis-view { display: flex; flex-direction: column; }
  .betting-analysis-view > * { order: 10; }
  .research-view .metric-grid, .betting-analysis-view .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-view .portfolio-group-target { min-width: 0; flex-basis: 100%; }
  .research-view form, .research-view .filters, .research-view .weather-form { display: grid; grid-template-columns: minmax(0,1fr); }
  .research-view form > *, .research-view .filters > * { min-width: 0; max-width: 100%; }
  .research-view form button, .research-view .weather-actions button { min-height: 44px; }
  .research-view .weather-form fieldset { flex-direction: row; }
  .research-view .weather-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .research-view .log { max-width: 100%; overflow: auto; }
  .research-view .weather-chart { margin-inline: 0; }
  .research-view .run-list-table table, .research-view .run-list-table tbody, .research-view .run-list-table tr { display: block; width: 100%; }
  .research-view .run-list-table thead { display: none; }
  .research-view .run-list-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .research-view .run-list-table tr:last-child { border-bottom: 0; }
  .research-view .run-list-table td { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; width: 100%; min-width: 0; padding: 6px 0; border: 0; overflow-wrap: anywhere; }
  .research-view .run-list-table td::before { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .research-view .run-list-table td:first-child { display: block; font-size: .88rem; }
  .research-view .run-list-table td:first-child::before { display: block; margin-bottom: 6px; }
  .research-view .run-list-table td > button, .research-view .run-list-table td > .portfolio-actions { grid-column: 2; }
  .research-view .run-list-table button { min-width: 44px; min-height: 44px; overflow-wrap: normal; word-break: normal; }
  .research-view .weather-run-list td:nth-child(5) details { min-width: 0; max-width: 100%; }
  .research-view .weather-run-list td:nth-child(5) .log { width: 100%; max-width: 100%; overflow: auto; overflow-wrap: anywhere; word-break: break-word; }
  .research-view .weather-run-list td:nth-child(1)::before { content: 'Job'; }
  .research-view .weather-run-list td:nth-child(2)::before { content: 'Scope'; }
  .research-view .weather-run-list td:nth-child(3)::before { content: 'State'; }
  .research-view .weather-run-list td:nth-child(4)::before { content: 'Progress'; }
  .research-view .weather-run-list td:nth-child(5)::before { content: 'Sources'; }
  .research-view .weather-run-list td:nth-child(6)::before { content: 'Actions'; }
  .research-view .optimization-run-list td:nth-child(1)::before { content: 'Universe'; }
  .research-view .optimization-run-list td:nth-child(2)::before { content: 'Status'; }
  .research-view .optimization-run-list td:nth-child(3)::before { content: 'Candidates'; }
  .research-view .optimization-run-list td:nth-child(4)::before { content: 'Winner'; }
  .research-view .optimization-run-list td:nth-child(5)::before { content: 'Selection'; }
  .research-view .optimization-run-list td:nth-child(6)::before { content: 'Economics'; }
  .research-view .optimization-run-list td:nth-child(7)::before { content: 'Later'; }
  .research-view .portfolio-run-list td:nth-child(1)::before { content: 'Run'; }
  .research-view .portfolio-run-list td:nth-child(2)::before { content: 'Status'; }
  .research-view .portfolio-run-list td:nth-child(3)::before { content: 'Sources'; }
  .research-view .portfolio-run-list td:nth-child(4)::before { content: 'Depth'; }
  .research-view .portfolio-run-list td:nth-child(5)::before { content: 'Requested'; }
  .research-view .portfolio-run-list td:nth-child(6)::before { content: 'Actions'; }
}

.research-view #weather-promotion-evidence{min-width:0;overflow-wrap:anywhere}

.research-view .coverage-sources { min-width: 0; max-width: 30rem; }
.research-view .coverage-sources summary { min-height: 44px; align-content: center; cursor: pointer; }
.research-view .coverage-sources .cell-stack { margin-block: 8px; overflow-wrap: anywhere; white-space: normal; }
.paired-research .paired-rule-form, .paired-research .paired-promotion-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 14px; margin-top: 16px; }
.paired-research fieldset { min-width: 0; grid-column: 1 / -1; }
.paired-research fieldset label { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.paired-research .paired-completion-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.paired-research .paired-ruleset-list { display: grid; gap: 16px; margin-top: 16px; }
.paired-research .paired-publication { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 767px) { .paired-research .paired-rule-form, .paired-research .paired-promotion-form { grid-template-columns: minmax(0,1fr); } }

.mismatch-history { min-width: 0; margin-bottom: var(--section-space, 24px); }
.mismatch-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 12px; align-items: end; }
.mismatch-filters label, .mismatch-filters input, .mismatch-filters select { min-width: 0; width: 100%; }
.mismatch-summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 14px; align-items: center; }
.mismatch-summary .section-note { grid-column: 1/-1; margin: 0; }
.mismatch-title, .mismatch-leg, .mismatch-source-id { overflow-wrap: anywhere; min-width: 0; }
.mismatch-state { font-size: .78rem; color: var(--muted); }
.mismatch-state.available { color: var(--green); }
.mismatch-return { white-space: nowrap; }
.mismatch-opportunity { margin: 12px 0; }
.mismatch-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 16px 0; }
.mismatch-metrics dt { font-size: .75rem; color: var(--muted); }
.mismatch-metrics dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.mismatch-legs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.mismatch-depth { max-height: 280px; overflow: auto; }
.mismatch-depth table { width: 100%; }
.mismatch-timeline > details, .mismatch-timeline details > details { margin-top: 12px; }
.mismatch-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.mismatch-pagination button, .mismatch-opportunity summary { min-height: 44px; }
@media (max-width: 767px) {
  .mismatch-filters { grid-template-columns: minmax(0,1fr); }
  .mismatch-summary { grid-template-columns: minmax(0,1fr) auto; }
  .mismatch-title { grid-column: 1/-1; }
  .mismatch-return { text-align: right; }
  .mismatch-legs { grid-template-columns: minmax(0,1fr); }
  .mismatch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Readable mobile metrics and run fields; technical logs and source IDs keep wrapping. */
@media(max-width:767px){
  .research-view .metric-grid,.betting-analysis-view .metric-grid,.research-view .portfolio-headline,
  .mismatch-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
  .research-view .run-list-table td,.mismatch-title,.mismatch-leg{overflow-wrap:break-word}
  .paired-research .paired-completion-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
}
@media(max-width:420px){
  .research-view .run-list-table td{grid-template-columns:minmax(0,1fr);gap:5px}
  .research-view .run-list-table td>button,.research-view .run-list-table td>.portfolio-actions{grid-column:1}
}
