.summary-page .project-heading { display: grid; gap: 14px; }
.summary-page .project-heading h1 { font: 700 clamp(36px, 4.6vw, 62px)/1 var(--screenplay); letter-spacing: -.045em; }
.summary-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-jump .ticket-link { min-height: 38px; gap: 9px; padding: 8px 13px; font: 700 14px/1.45 var(--screenplay); }
.summary-jump .ticket-link > span { padding-inline-start: 8px; font-family: var(--text); }
.summary-content { display: grid; gap: 20px; padding-block: 20px 35px; }
.summary-controls { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(175px, 1fr) minmax(145px, .8fr) max-content; align-items: end; gap: 12px 16px; }
.summary-controls .field > span { font: 700 13px/1.15 var(--screenplay); text-transform: uppercase; }
.model-preview { justify-self: start; }
.model-inventory summary { padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 700; }
.performance-table.significance-table, .model-inventory .significance-table { min-width: 545px; }
.performance-table tr[aria-current=true] { background: #e8f3f9; }
.summary-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.summary-charts .pane-body { padding-top: 9px; }
.summary-note { color: var(--muted-text); font-size: 12px; margin: 0 0 9px; }
.formula-conversion { display: flex; flex-wrap: wrap; gap: 5px 24px; margin: 0 0 14px; }
.formula-conversion div { min-width: min(235px, 100%); }
.formula-conversion dt { font-size: 12px; font-weight: 670; color: var(--muted-text); }
.formula-conversion dd { margin: 1px 0 0; font-size: 17px; font-weight: 720; }
.formula-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 13px 18px; }
.formula-grid h3 { font-size: 13px; margin: 0 0 5px; }
.formula-code { margin: 0; padding: 11px 13px; color: var(--ink); background: #e8f3f9; border: 1px solid #bed0d7; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.65 Consolas, ui-monospace, monospace; }
.formula-variable-list { margin: 0; }
.formula-variable-list div { display: grid; grid-template-columns: minmax(74px, .38fr) minmax(0, 1fr); gap: 7px; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.formula-variable-list dt { font-family: Consolas, ui-monospace, monospace; font-weight: 700; overflow-wrap: anywhere; }
.formula-variable-list dd { margin: 0; }
.formula-details { margin-top: 11px; font-size: 12px; }
.formula-details summary { width: fit-content; font-weight: 720; cursor: pointer; }
.formula-details .formula-code { margin-top: 6px; }
.formula-tree-control { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: end; margin-block: 9px 7px; }
.formula-tree-control .field { width: min(170px, 100%); }
.formula-tree-table { min-width: 525px; }
.formula-tree-table td:last-child { text-align: left; }
.diagnostic-figure { margin: 0; min-width: 0; }
.plot-host { min-width: 0; }
.plot-host svg { display: block; width: 100%; height: auto; }
.plot-host text { fill: var(--muted-text); font: 12px var(--text); font-variant-numeric: tabular-nums; }
.plot-host .plot-title { font-weight: 650; fill: var(--ink); }
.plot-grid { stroke: var(--line); stroke-opacity: .8; }
.plot-axis { stroke: #87959a; }
.plot-dots { fill: #152a3b; fill-opacity: .29; }
.plot-reference { stroke: #596771; stroke-width: 1.4; stroke-dasharray: 5 4; }
.plot-spread { fill: #a8d4f2; fill-opacity: .55; }
.plot-ci { fill: #4b93c0; fill-opacity: .48; }
.plot-trend { fill: none; stroke: var(--blue-deep); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 6px; color: var(--muted-text); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.chart-legend i { flex: none; width: 13px; height: 8px; }
.chart-legend .key-point { background: #526273; width: 7px; height: 7px; border-radius: 50%; }
.chart-legend .key-diagonal { height: 0; border-top: 2px dashed #596771; }
.chart-legend .key-line { height: 0; border-top: 2px solid var(--blue-deep); }
.chart-legend .key-ci { background: #a1c4d8; }
.chart-legend .key-spread { background: #d5e9f4; }
.residual-spread .pane-body { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 2fr); align-items: center; gap: 14px 30px; }
.residual-spread .summary-note { margin: 0; max-width: 39ch; }
.spread-bars { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; gap: 8px; margin: 0; padding: 0; }
.spread-bars li { text-align: center; color: var(--muted-text); font-size: 11px; min-width: 0; }
.spread-bars b { display: block; color: var(--ink); font-size: 13px; }
.spread-bar { display: flex; align-items: end; justify-content: center; height: 49px; margin: 4px 0 2px; border-bottom: 1px solid var(--line); }
.spread-bar i { display: block; height: var(--bar); width: min(70%, 60px); background: #6c9fbc; }
.spread-bars li:last-child i { background: var(--blue-deep); }
.distribution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.input-profile { display: grid; align-content: start; gap: 5px; min-width: 0; margin: 0; padding: 10px 12px; background: #f1f4ef; border: 1px solid #d5ddd8; }
.input-profile h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.input-profile p { margin: 0; color: var(--muted-text); font-size: 11px; }
.input-profile svg { width: 100%; height: 54px; display: block; }
.input-profile svg rect { fill: #6c9fbc; }
.input-profile svg .histogram-median { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 2; }
.input-profile .distribution-range { display: flex; justify-content: space-between; gap: 4px; color: var(--muted-text); font-size: 11px; }
.flag-bars { display: grid; gap: 5px; align-content: center; min-height: 54px; }
.flag-line { display: grid; grid-template-columns: 24px minmax(0, 1fr) 42px; gap: 6px; align-items: center; color: var(--muted-text); font-size: 11px; }
.flag-line b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.flag-track { background: #e4e9e5; height: 7px; }
.flag-track i { display: block; width: var(--flag-share); background: #7692a2; height: 7px; }
.flag-line:last-child .flag-track i { background: var(--blue-deep); }
#significance .confirm-line { margin-top: 0; }
.significance-scroll { overflow-x: auto; }
.significance-table { width: 100%; min-width: 810px; border-collapse: collapse; text-align: left; font-size: 13px; }
.significance-table th, .significance-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); }
.significance-table th[scope=row] { font-weight: 600; }
.significance-table thead { background: #edf4f8; }
.significance-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.significance-table td:last-child { color: var(--blue-deep); font-weight: 720; }
.joint-table, .vif-table { min-width: 530px; }
.inference-footnote { margin: 8px 0 0; }
.summary-subheading { margin: 18px 0 6px; font-size: 15px; }
.vif-table td:last-child { color: inherit; font-weight: 500; }
.matrix-section { margin-top: 13px; }
.matrix-section summary { width: fit-content; font-weight: 750; cursor: pointer; }
.matrix-section .summary-note { margin-top: 7px; }
.matrix-scroll { overflow-x: auto; }
.correlation-matrix { width: 100%; border-collapse: collapse; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.correlation-matrix th, .correlation-matrix td { border: 1px solid #dce2df; padding: 5px; min-width: 42px; }
.correlation-matrix thead th { line-height: 1.2; vertical-align: bottom; }
.correlation-matrix th { background: #f0f4ef; }
.correlation-matrix tr > :first-child { position: sticky; left: 0; min-width: 124px; max-width: 162px; z-index: 1; text-align: left; }
.correlation-matrix td { background: color-mix(in srgb, var(--correlation-color) var(--strength), var(--paper)); }
.correlation-matrix td.diagonal { background: #e8eeeb; color: var(--muted-text); }
.summary-method { color: var(--muted-text); font-size: 12px; }
.summary-method summary { cursor: pointer; font-weight: 700; }
.summary-method p { max-width: 90ch; margin-block: 7px; }
@media (max-width: 1050px) {
  .summary-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-preview { grid-column: 1 / -1; }
  .distribution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .summary-charts { grid-template-columns: 1fr; }
  .formula-grid { grid-template-columns: minmax(0, 1fr); }
  .distribution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .summary-content { gap: 14px; }
  .summary-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-controls label:first-child { grid-column: 1 / -1; }
  .residual-spread .pane-body { grid-template-columns: 1fr; }
  .input-profile { padding-inline: 8px; }
}
