  :root { color-scheme: light dark; }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; padding: 2.5rem 1rem 4rem;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #0f1115; color: #e7e9ee;
  }
  .wrap { max-width: 1100px; margin: 0 auto; }
  header { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
  h1 { font-size: 1.6rem; margin: 0; }
  .sub { color: #9aa0ab; font-size: .9rem; }
  .nav { margin: 1rem 0 1.35rem; display: flex; gap: .5rem; }
  .nav a { color: #c7ccd6; text-decoration: none; border: 1px solid #2a2f3a;
    border-radius: 999px; padding: .45rem .9rem; background: #171a21; }
  .nav a:hover, .nav a.active { color: #f59e0b; border-color: #4a3721; background: #211b14; }
  .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #36d399;
    display: inline-block; box-shadow: 0 0 0 0 rgba(54,211,153,.7);
    animation: pulse 2s infinite; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(54,211,153,.6)} 70%{box-shadow:0 0 0 8px rgba(54,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(54,211,153,0)} }
  .statusbar { margin: 1rem 0 1.5rem; color: #9aa0ab; font-size: .85rem;
    display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
  .statusbar b { color: #e7e9ee; font-weight: 600; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
  .card { background: #171a21; border: 1px solid #2a2f3a; border-radius: 14px;
    padding: 1.1rem 1.25rem; }
  .chead { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
  .actions { display: flex; align-items: center; gap: .45rem; }
  .loc-search { border: 1px solid #343b49; background: #20242d; color: #c7ccd6;
    border-radius: 999px; width: 2rem; height: 2rem; cursor: pointer;
    font-size: 1rem; line-height: 1; display: inline-grid; place-items: center; }
  .loc-search:hover { background: #282e3a; color: #f59e0b; }
  .loc-search:disabled { cursor: wait; opacity: .55; }
  .loc-form { margin-top: .85rem; display: flex; gap: .45rem; flex-wrap: wrap; }
  .loc-form[hidden] { display: none; }
  .loc-form input { flex: 1 1 12rem; min-width: 0; border-radius: 10px;
    border: 1px solid #343b49; background: #101319; color: #e7e9ee;
    padding: .55rem .65rem; font: inherit; font-size: .85rem; }
  .loc-form button { border: 1px solid #343b49; border-radius: 10px;
    background: #20242d; color: #c7ccd6; padding: .5rem .7rem; cursor: pointer; }
  .loc-form button[type="submit"] { background: #3a2a13; color: #f0c44c; }
  .loc-form button:disabled { cursor: wait; opacity: .55; }
  .loc { font-size: 1.1rem; font-weight: 600; }
  .coords { color: #9aa0ab; font-size: .78rem; margin-top: .15rem; }
  .risk { display: inline-block; padding: .2rem .7rem; border-radius: 999px;
    font-weight: 700; font-size: .78rem; letter-spacing: .03em; white-space: nowrap; }
  .LOW { background: #14361f; color: #5fd98a; }
  .MODERATE, .HIGH { background: #3a2e10; color: #f0c44c; }
  .VERYHIGH { background: #3a1d10; color: #f59e0b; }
  .EXTREME { background: #3a1212; color: #ff6b6b; }
  .NA { background: #21262f; color: #8b93a1; }
  .score { display: flex; align-items: baseline; gap: .5rem; margin: .8rem 0 .2rem; }
  .fdi { font-size: 2.3rem; font-weight: 700; }
  .fdi small { font-size: .9rem; color: #9aa0ab; font-weight: 400; }
  table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .6rem; }
  td { padding: .28rem 0; border-bottom: 1px solid #21262f; vertical-align: middle; }
  .idx-name { color: #c7ccd6; }
  .idx-val { text-align: right; color: #c7ccd6; white-space: nowrap; padding-right: .7rem; font-variant-numeric: tabular-nums; }
  .idx-risk { text-align: right; white-space: nowrap; }
  .meter { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: .4rem; }
  .meter i { width: 6px; height: 12px; border-radius: 2px; background: #2a2f3a; display: inline-block; }
  .meter i.on { background: var(--mc, #f59e0b); }
  .risk-n { font-variant-numeric: tabular-nums; font-weight: 600; color: #e7e9ee; }
  .risk-na { color: #6b7280; }
  .foot { margin-top: .7rem; color: #9aa0ab; font-size: .74rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
  .tag { font-size: .68rem; padding: .08rem .45rem; border-radius: 6px; }
  .LIVE { background: #103a3a; color: #5fd9d9; }
  .NOSCENE { background: #2a223a; color: #c4a6f5; }
  .banner { background: #171a21; border: 1px solid #2a2f3a; border-radius: 14px;
    padding: 1.5rem; color: #c7ccd6; text-align: center; }
  .search-hero { background: #171a21; border: 1px solid #2a2f3a; border-radius: 14px;
    padding: 1.25rem; margin-bottom: 1rem; }
  .search-hero h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
  .search-hero p { margin: 0 0 1rem; color: #9aa0ab; }
  .search-bar { display: flex; gap: .55rem; flex-wrap: wrap; }
  .search-bar input { flex: 1 1 22rem; min-width: 0; border-radius: 12px;
    border: 1px solid #343b49; background: #101319; color: #e7e9ee;
    padding: .7rem .8rem; font: inherit; }
  .search-bar button { border: 1px solid #4a3721; border-radius: 12px;
    background: #3a2a13; color: #f0c44c; padding: .65rem .9rem; cursor: pointer; }
  .detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
  .wide { grid-column: 1 / -1; }
  .metric-card { background: #171a21; border: 1px solid #2a2f3a; border-radius: 14px; padding: 1rem; }
  .metric-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
  .metric-value { font-size: 1.4rem; font-weight: 700; margin: .2rem 0 .45rem; }
  .desc { color: #9aa0ab; font-size: .86rem; margin: 0; }
  .media-img { width: 100%; border-radius: 12px; border: 1px solid #2a2f3a; background: #101319; }
  .map-preview { margin-top: .9rem; width: 100%; aspect-ratio: 2 / 1; border-radius: 12px;
    border: 1px solid #2a2f3a; background: #101319; overflow: hidden; }
  .map-preview iframe { display: block; width: 100%; height: 100%; border: 0; }
  .mini-table td { font-size: .78rem; }
  .err { color: #ff8a8a; }
  a { color: #f59e0b; }
  .STALE { background: #3a2a13; color: #f0c44c; }
  .FLAG { background: #1f2a3a; color: #9cc3f5; }
  .pending { color: #f0c44c; }
  .chk { color: #c7ccd6; font-size: .85rem; display: inline-flex; gap: .25rem; align-items: center; }
  select { border-radius: 12px; border: 1px solid #343b49; background: #101319; color: #e7e9ee; padding: .6rem; }
  .mini-table td { padding: .3rem .6rem .3rem 0; vertical-align: top; }

  .ml-page h2 { margin: 0 0 .55rem; font-size: 1.25rem; }
  .ml-hero { border: 1px solid #2a2f3a; border-radius: 14px; padding: 1.35rem;
    background: linear-gradient(135deg, #171a21 0%, #151d21 100%); display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr); gap: 1rem; align-items: stretch; }
  .ml-hero p { color: #c7ccd6; margin: 0; max-width: 58rem; }
  .ml-hero h2 { font-size: 2rem; line-height: 1.1; }
  .eyebrow { color: #5fd9d9 !important; text-transform: uppercase; font-size: .72rem;
    font-weight: 700; letter-spacing: .08em; margin-bottom: .25rem !important; }
  .ml-summary { display: grid; gap: .45rem; align-content: center; }
  .ml-summary span { border: 1px solid #2a2f3a; border-radius: 8px; background: #101319;
    padding: .55rem .7rem; color: #9aa0ab; font-size: .82rem; }
  .ml-summary b { display: block; color: #e7e9ee; font-size: .78rem; text-transform: uppercase; }
  .ml-band { margin-top: 1rem; }
  .compare-grid, .concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem; }
  .pipeline-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
  .pipeline-steps div { border: 1px solid #2a2f3a; border-radius: 8px; background: #171a21;
    padding: .85rem; min-height: 9.25rem; }
  .pipeline-steps span { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem;
    border-radius: 50%; background: #16313a; color: #5fd9d9; font-weight: 700; font-size: .78rem; }
  .pipeline-steps b { display: block; margin-top: .55rem; }
  .pipeline-steps p { margin: .25rem 0 0; color: #9aa0ab; font-size: .84rem; }
  .demo-head { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; }
  .segmented { display: inline-flex; border: 1px solid #343b49; border-radius: 12px; overflow: hidden;
    background: #101319; }
  .segmented button { border: 0; border-right: 1px solid #343b49; background: transparent; color: #c7ccd6;
    padding: .65rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; }
  .segmented button:last-child { border-right: 0; }
  .segmented button.active { background: #14361f; color: #5fd98a; }
  .sim-table-wrap { overflow-x: auto; border: 1px solid #2a2f3a; border-radius: 14px; background: #171a21;
    padding: .55rem .8rem; }
  .sim-table { min-width: 920px; margin-top: 0; }
  .path-table { min-width: 860px; }
  .sim-table th { text-align: left; color: #9aa0ab; font-size: .75rem; text-transform: uppercase;
    padding: .4rem .6rem .45rem 0; border-bottom: 1px solid #2a2f3a; }
  .sim-table td { padding-top: .65rem; padding-bottom: .65rem; }
  .sim-table code { background: #101319; border: 1px solid #2a2f3a; border-radius: 6px;
    color: #f0c44c; padding: .08rem .28rem; }
  .score-bar { display: inline-block; width: 5.75rem; height: .55rem; border-radius: 999px; background: #242a34;
    margin-right: .45rem; overflow: hidden; vertical-align: middle; }
  .score-bar i { display: block; height: 100%; border-radius: inherit; }
  .fdi-bar i { background: #f59e0b; }
  .ml-bar i { background: #5fd9d9; }
  .demo-guide { columns: 3 18rem; column-gap: 1.4rem; color: #c7ccd6; }
  .demo-guide p { break-inside: avoid; margin: 0 0 1rem; }

  @media (max-width: 760px) {
    body { padding-top: 1.25rem; }
    .ml-hero { grid-template-columns: 1fr; }
    .ml-hero h2 { font-size: 1.55rem; }
    .segmented { width: 100%; }
    .segmented button { flex: 1; }
  }

  /* Historical ML explorer: scoped to avoid changing the live dashboard. */
  .insights-body { background: #111416; color: #e9edef; padding-top: 1.8rem; }
  .insights-page { font-size: 14px; letter-spacing: 0; }
  .insights-page *, .insights-page *::before, .insights-page *::after { letter-spacing: 0; }
  .insights-page [hidden] { display: none !important; }
  .insights-page .nav { flex-wrap: wrap; gap: .4rem; }
  .insights-page .nav a { border-radius: 6px; background: transparent; font-size: .85rem; }
  .insights-page .nav a.active { background: #18312e; border-color: #32675d; color: #8ce1d1; }
  .insights-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .8rem 0 1.5rem; }
  .insights-heading h2 { font-size: 1.9rem; line-height: 1.2; margin: .35rem 0 .6rem; }
  .insights-heading p { color: #b0b8be; max-width: 42rem; margin: 0; line-height: 1.6; }
  .insights-kicker { color: #8ce1d1; font-size: .76rem; font-weight: 600; }
  .insights-status { border-left: 2px solid #d9aa64; padding: .25rem .7rem; color: #dec69f; font-size: .77rem; flex-shrink: 0; }
  .insights-load { min-height: 380px; padding-top: 2rem; color: #b0b8be; }
  .insights-section { border-top: 1px solid #30363b; padding: 1.5rem 0 1.7rem; }
  .insights-section h3 { font-size: 1.15rem; margin: 0 0 .4rem; line-height: 1.4; }
  .insights-section h4 { font-size: .9rem; margin: 0 0 .55rem; line-height: 1.5; }
  .insights-section-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
  .insights-muted { color: #abb3bd; font-size: .79rem; line-height: 1.6; margin: 0; }
  .insights-section-heading > .insights-muted { padding-top: .25rem; text-align: right; }
  .insights-controls { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, .85fr) auto; gap: 1rem; align-items: end; }
  .insights-controls label, .insights-page legend { display: block; color: #b6bec5; font-size: .75rem; }
  .insights-controls select { display: block; width: 100%; min-width: 0; margin-top: .4rem; border-radius: 6px;
    height: 42px; padding: .5rem .65rem; font: inherit; color: #e9edef; background: #1b2024; border: 1px solid #3e484e; }
  .insights-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  .insights-page legend { margin-bottom: .4rem; padding: 0; }
  .insights-segmented { display: flex; border: 1px solid #3e484e; border-radius: 6px; overflow: hidden; min-height: 42px; }
  .insights-segmented button { flex: 1; background: #1b2024; border: 0; border-right: 1px solid #3e484e;
    color: #bfc7cc; padding: .6rem .7rem; cursor: pointer; font: inherit; font-size: .76rem; line-height: 1.3; }
  .insights-segmented button:last-child { border-right: 0; }
  .insights-segmented button:hover { background: #263139; color: #fff; }
  .insights-segmented button[aria-pressed="true"] { background: #23453f; color: #a5eadc; }
  .insights-page :focus-visible { outline: 2px solid #87d9c8; outline-offset: 3px; }
  .insights-context { margin: 1rem 0 .65rem; }
  .insights-comparison { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: .8rem; }
  .insights-score { min-width: 0; border: 1px solid #343b40; border-radius: 6px; padding: 1rem; background: #1a1f23; }
  .insights-score p { margin: .5rem 0 0; }
  .insights-score h4 { font-weight: 500; color: #c4cdd2; min-height: 22px; }
  .insights-ml { border-top: 2px solid #63d5c2; }
  .insights-fdi { border-top: 2px solid #efb46a; }
  .insights-outcome { border-top: 2px solid #abb3bd; background: transparent; }
  .insights-score .insights-value { font-size: 1.9rem; font-weight: 650; line-height: 1.2; margin: .5rem 0; white-space: nowrap; }
  .insights-value small { font-size: .85rem; font-weight: 400; color: #abb3bd; }
  .insights-ml .insights-value { color: #8ce1d1; }
  .insights-fdi .insights-value { color: #efc28b; }
  .insights-observed { font-size: 1.2rem; font-weight: 600; line-height: 1.4; min-height: 54px; }
  .insights-decision { font-size: .8rem; min-height: 2.5em; }
  .insights-score meter { display: block; width: 100%; height: 8px; margin-top: .8rem; border: none; border-radius: 2px; background: #30383d; }
  .insights-score meter::-webkit-meter-bar { border: 0; background: #30383d; height: 8px; border-radius: 2px; }
  .insights-ml meter::-webkit-meter-optimum-value { background: #63d5c2; }
  .insights-fdi meter::-webkit-meter-optimum-value { background: #efb46a; }
  .insights-ml meter::-moz-meter-bar { background: #63d5c2; }
  .insights-fdi meter::-moz-meter-bar { background: #efb46a; }
  .insights-note { color: #abb3bd; font-size: .77rem; line-height: 1.65; margin: .8rem 0 0; max-width: 65rem; }
  .insights-page details { margin-top: 1rem; }
  .insights-page summary { cursor: pointer; color: #c3ccd1; font-size: .8rem; padding: .2rem 0; }
  .insights-page dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .8rem; padding: .65rem 0; margin: 0; }
  .insights-page dt { color: #abb3bd; font-size: .75rem; }
  .insights-page dd { margin: .25rem 0 0; font-size: .85rem; overflow-wrap: anywhere; }
  .insights-budget { min-width: 235px !important; flex-shrink: 0; }
  .insights-table-scroll { overflow-x: auto; max-width: 100%; }
  .insights-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 0; }
  .insights-table caption { text-align: left; color: #abb3bd; padding: .2rem 0 .7rem; font-size: .75rem; }
  .insights-table th, .insights-table td { text-align: left; padding: .75rem .7rem; border-bottom: 1px solid #30363b; font-variant-numeric: tabular-nums; }
  .insights-table th { font-weight: 500; }
  .insights-table thead th { color: #b8c0c7; font-size: .75rem; vertical-align: bottom; }
  .insights-table th:first-child, .insights-table td:first-child { padding-left: 0; }
  .insights-table th:last-child, .insights-table td:last-child { padding-right: 0; }
  .insights-table tbody th { color: #e9edef; }
  .insights-ml-text { color: #8ce1d1 !important; }
  .insights-fdi-text { color: #efc28b !important; }
  .insights-takeaway { font-size: .95rem; font-weight: 500; color: #d9e6df; margin: 1rem 0 .3rem; }
  .insights-chart { margin: 1.8rem 0 0; padding-top: 1rem; }
  .insights-chart canvas { display: block; width: 100%; height: 230px; margin-top: .4rem; }
  .insights-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .76rem; color: #bfc7cc; margin-top: .8rem; }
  .insights-legend span::before { content: ''; width: 10px; height: 10px; display: inline-block; margin-right: .4rem; background: #63d5c2; }
  .insights-legend .legend-fdi::before { background: #efb46a; }
  .insights-row-link { font: inherit; color: #9ee2d5; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
  .insights-row-link:hover { text-decoration: underline; }
  .insights-row-link span { display: block; font-size: .75rem; color: #abb3bd; margin-top: .15rem; }
  .insights-selected { background: #1b302c; }
  .insights-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: .8rem 0 0; list-style: none; }
  .insights-pipeline li { min-width: 0; }
  .insights-pipeline span { display: block; color: #86cdbc; font-size: .78rem; margin-bottom: .7rem; }
  .insights-pipeline p, .insights-explanation p { font-size: .82rem; color: #abb3bd; line-height: 1.65; margin: 0; }
  .insights-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid #30363b; }
  .insights-command { font: inherit; color: #a5eadc; background: #23453f; border: 1px solid #3e665d; border-radius: 6px; padding: .6rem 1rem; cursor: pointer; }
  @media (max-width: 1000px) {
    .insights-controls { grid-template-columns: 1fr 1fr; }
    .insights-presets { grid-column: 1 / -1; }
    .insights-page .insights-presets .insights-segmented { max-width: 510px; }
  }
  @media (max-width: 700px) {
    .insights-heading { display: block; }
    .insights-heading p { font-size: .85rem; }
    .insights-status { display: inline-block; margin-top: 1rem; }
    .insights-section-heading { flex-wrap: wrap; }
    .insights-section-heading > .insights-muted { text-align: left; }
    .insights-comparison { grid-template-columns: 1fr 1fr; }
    .insights-outcome { grid-column: 1 / -1; }
    .insights-observed { min-height: 0; }
    .insights-pipeline { grid-template-columns: 1fr 1fr; }
    .insights-explanation { grid-template-columns: 1fr; gap: 1rem; }
    .insights-table { min-width: 590px; }
    .insights-chart .insights-table { min-width: 0; }
    .insights-score { padding: .8rem; }
    .insights-score .insights-value { font-size: 1.6rem; }
    .insights-score h4 { min-height: 2.7em; }
    .insights-outcome h4 { min-height: 0; }
  }
  @media (max-width: 380px) {
    .insights-controls { grid-template-columns: 1fr; gap: .75rem; }
    .insights-segmented button { padding: .6rem .4rem; }
    .insights-page .nav a { padding: .4rem .65rem; }
  }

/* MVP model analysis */
.analyze-form { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; }
.analyze-form label { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 13rem; font-size: .9rem; }
.analyze-form [hidden] { display: none; }
.analyze-form input, .analyze-form select { width: 100%; min-height: 2.9rem; border: 1px solid #343b49;
  border-radius: 10px; background: #101319; color: #e7e9ee; padding: .65rem; font: inherit; color-scheme: dark; }
.analyze-form button { min-height: 2.9rem; padding: .65rem 1.3rem; border: 1px solid #765424;
  border-radius: 10px; background: #3a2a13; color: #f0c44c; font: inherit; cursor: pointer; }
.analyze-form :disabled { opacity: .55; cursor: wait; }
.prediction { margin: 1rem 0; }
.prediction .desc { font-size: .8rem; }
.prediction-unavailable { font-size: 1.1rem; font-weight: 600; color: #c7ccd6; }
.model-explanation { margin-top: 1rem; }
#analysisResult h2 { font-size: 1.2rem; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } .nav { flex-wrap: wrap; } }

/* Per-prediction provenance and exact inference inspection. */
.why-score { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid #343b49; }
.why-score h3 { font-size: 1.15rem; }
.why-score h4 { margin: 1.3rem 0 .6rem; }
.why-score .desc { line-height: 1.65; }
.why-footprint { padding: .4rem 1rem; border: 1px solid #343b49; border-radius: 10px; background: #101319; }
.why-footprint h4 { margin-top: .6rem; }
.why-table-wrap { overflow-x: auto; margin: .8rem 0; }
.why-table { width: 100%; border-collapse: collapse; font-size: .83rem; text-align: left; }
.why-table th, .why-table td { padding: .8rem; border-bottom: 1px solid #343b49; vertical-align: top; }
.why-table thead { color: #aab5c8; }
.why-table th { font-weight: 500; }
.why-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.why-table code, .why-source span { display: block; margin-top: .35rem; font-size: .74rem; font-weight: 400; color: #aab5c8; }
.why-source { min-width: 230px; margin-bottom: .7rem; overflow-wrap: anywhere; }
.why-source a { color: #a1d3e9; }
.why-source code, .why-hash { overflow-wrap: anywhere; }
.why-positive { color: #ffc68a; }
.why-negative { color: #8ce1d1; }
.why-total { background: #222b35; font-weight: 600; }
.why-inputs { margin: 1rem 0; padding: .9rem; border: 1px solid #343b49; border-radius: 8px; }
.why-score summary { cursor: pointer; line-height: 1.5; }
.why-download { margin: .6rem 0; padding: .65rem 1rem; border-radius: 8px; border: 1px solid #526274; background: #222b35; color: #e7e9ee; font: inherit; cursor: pointer; }
@media (max-width: 600px) { .why-inputs { padding: .6rem; } .why-table th, .why-table td { padding: .6rem; } }

/* Dashboard and Search lead with the computed FDI; model insights are secondary. */
.primary-fdi { margin: 1rem 0; }
.primary-fdi h3 { margin: 0 0 .4rem; font-size: 1rem; }
.prediction { padding-top: 1rem; border-top: 1px solid #343b49; margin-bottom: 0; }
.prediction h3 { margin: 0 0 .5rem; font-size: .95rem; color: #b9c3d1; }
.prediction .model-score { margin: .5rem 0; font-size: 1.15rem; font-weight: 600; color: #c7ccd6; }
.model-score small { font-size: .8rem; font-weight: 400; color: #9aa0ab; }
.prediction .prediction-unavailable { font-size: .9rem; font-weight: 400; }
.model-insights-link { display: inline-block; margin-top: .5rem; color: #a1d3e9; font-size: .85rem; }
.detail-grid > .metric-card:last-child > .prediction { padding-top: 0; border-top: 0; margin-top: 0; }
