.media-projection { border: 1px solid var(--line-strong); border-radius: .8rem; overflow: hidden; background: var(--surface); color: var(--body); font-family: var(--font); font-variant-numeric: tabular-nums; }
.mp-head, .mp-brief-head, .mp-forecast-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.mp-head { border-bottom: 1px solid var(--line-strong); padding: 1rem clamp(1rem, 2.5vw, 2rem); background: var(--navy); }
.mp-head h2 { color: #fff; font-size: clamp(1.32rem, 2.3vw, 1.7rem); }
.mp-workspace { display: grid; grid-template-columns: minmax(16rem, .36fr) minmax(0, .64fr); }
.mp-plan, .mp-forecast { min-width: 0; padding: clamp(.95rem, 2.4vw, 1.6rem); }
.mp-plan { display: grid; align-content: start; gap: .95rem; border-right: 1px solid var(--line-strong); background: var(--surface-soft); }
.mp-forecast h3, .mp-plan h3 { font-size: 1.2rem; }
.mp-field { display: grid; min-width: 0; gap: .35rem; font-size: .9rem; font-weight: 600; }
.mp-field input[type="number"], .mp-field select { min-width: 0; width: 100%; padding: .46rem .6rem; color: var(--navy); border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; font-size: 1rem; }
.mp-field input[type="number"] { font-family: var(--mono); }
.mp-field select { font-size: .9rem; }
.mp-slider { width: 100%; margin: 0; height: 1.65rem; accent-color: var(--blue-dark); background: transparent; cursor: pointer; }
.mp-allocation { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: -.42rem 0 0; }
.mp-allocation > div { min-width: 0; border-top: 4px solid var(--blue-dark); padding-top: .38rem; }
.mp-allocation > div[data-channel="1"] { border-color: #8497af; }
.mp-allocation dt { font-size: .84rem; color: var(--slate); }
.mp-allocation dd { margin: 0; color: var(--navy); font-weight: 650; }
.mp-brief { display: grid; gap: .66rem; border-top: 1px solid var(--line-strong); padding-top: .95rem; }
.mp-brief-head h3 { font-size: 1.04rem; }
.mp-brief-head > span { color: var(--slate); font: 500 .8rem/1.4 var(--mono); }
.mp-primary, .mp-secondary { width: fit-content; min-height: 2.45rem; padding: .42rem .7rem; border: 1px solid var(--line-strong); border-radius: .35rem; color: var(--blue-dark); background: white; font-size: .91rem; font-weight: 650; }
.mp-primary { border-color: var(--navy); color: white; background: var(--navy); }
.mp-secondary:disabled { color: var(--muted); cursor: default; opacity: .7; }
.mp-proposal { color: var(--slate); font-size: .93rem; line-height: 1.5; }
.mp-proposal:empty { display: none; }
.mp-export-error { color: var(--navy); }
.mp-export-error:empty { display: none; }
.mp-forecast-head .mp-secondary { min-height: 2.1rem; }
.mp-forecast { display: grid; align-content: start; gap: .9rem; }
.mp-metrics { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mp-metrics th, .mp-metrics td { padding: .5rem .5rem; border-bottom: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
.mp-metrics th:first-child { width: 22%; text-align: left; }
.mp-metrics th:last-child { width: 31%; }
.mp-metrics thead th { color: var(--slate); font: 600 .82rem/1.3 var(--font); }
.mp-metrics tbody th { color: var(--body); font-size: .94rem; font-weight: 550; }
.mp-metrics td { font-size: .92rem; }
.mp-metrics .mp-projected { color: var(--navy); font-weight: 700; }
.mp-metrics .mp-total { background: #eef4fb; }
.mp-metrics .mp-total th, .mp-metrics .mp-total .mp-projected { color: var(--blue-dark); font-weight: 750; }
.mp-observed td { color: var(--slate); }
.mp-range-text { display: block; font-size: .86rem; }
.mp-band { position: relative; display: block; height: .26rem; margin: .34rem 0 .12rem auto; max-width: 10rem; border-radius: 1rem; background: #eef1f5; }
.mp-band[hidden] { display: none; }
.mp-interval, .mp-point { position: absolute; top: 0; height: 100%; border-radius: inherit; transition: left .25s, width .25s; }
.mp-interval { background: #95b1d3; }
.mp-point { top: -.11rem; width: .18rem; height: .49rem; background: var(--navy); }
.mp-quarter-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin: 0; }
.mp-quarter-metrics > div { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .35rem; }
.mp-quarter-metrics dt { color: var(--slate); font: 550 .8rem/1.25 var(--font); }
.mp-quarter-metrics dd { margin: .2rem 0 0; font-weight: 700; color: var(--navy); }
.mp-source-field { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.mp-source-field select { padding: .25rem .5rem; border: 1px solid var(--line-strong); border-radius: .25rem; background: white; color: var(--navy); }
.mp-evidence { border-top: 1px solid var(--line); padding-top: .6rem; }
.mp-evidence summary { cursor: pointer; color: var(--blue-dark); font-size: .92rem; font-weight: 650; }
.mp-evidence-body { display: grid; gap: .65rem; margin-top: .65rem; font-size: .9rem; color: var(--slate); }
.mp-source-table { min-width: 0; overflow-x: auto; }
.mp-source-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .84rem; }
.mp-source-table th, .mp-source-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mp-source-table caption { text-align: left; margin-bottom: .35rem; }
@media (max-width: 48rem) {
  .mp-workspace { grid-template-columns: 1fr; }
  .mp-plan { grid-template-columns: repeat(2,minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--line-strong); gap: .7rem; }
  .mp-plan > h3, .mp-allocation, .mp-brief { grid-column: 1/-1; }
  .mp-allocation { margin-top: 0; }
}
@media (max-width: 30rem) {
  .mp-head { padding: .85rem; }
  .mp-plan, .mp-forecast { padding: .82rem; }
  .mp-metrics th, .mp-metrics td { padding: .43rem .28rem; }
  .mp-metrics th:first-child { width: 23%; }
  .mp-metrics td, .mp-metrics tbody th { font-size: .79rem; }
  .mp-metrics thead th, .mp-range-text { font-size: .75rem; }
  .mp-quarter-metrics > div { padding: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .mp-interval, .mp-point { transition: none; } }
.mp-context { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 1px solid var(--line-strong); background: #f4f7fb; }
.mp-pilot, .mp-client { display: grid; align-content: start; gap: .55rem; min-width: 0; padding: .8rem clamp(.95rem, 2.4vw, 1.6rem); }
.mp-client { border-left: 1px solid var(--line-strong); }
.mp-context-head { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem .6rem; flex-wrap: wrap; }
.mp-context-head h3 { font-size: 1.04rem; }
.mp-context-head > span { color: var(--slate); font: 500 .78rem/1.4 var(--mono); }
.mp-pilot-actuals { margin: 0; font-size: .9rem; }
.mp-pilot-actuals > div { display: flex; justify-content: space-between; gap: .25rem .5rem; flex-wrap: wrap; }
.mp-pilot-actuals dd { margin: 0; font-weight: 600; color: var(--navy); }
.mp-client .mp-field { display: flex; flex-wrap: wrap; align-items: center; gap: .32rem .65rem; }
.mp-client .mp-field select { width: auto; min-height: 2.15rem; padding: .23rem .45rem; }
.mp-goal-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.mp-client-cap { color: var(--slate); font-size: .9rem; white-space: nowrap; }
.mp-decision { border-left: 3px solid #9a9eab; padding-left: .55rem; font-size: .94rem; font-weight: 600; color: var(--navy); }
.mp-decision[data-met="true"] { border-left-color: var(--blue-dark); }
@media (max-width: 40rem) {
  .mp-context { grid-template-columns: 1fr; }
  .mp-client { border-left: 0; border-top: 1px solid var(--line); }
}
.mp-evidence-body > h4 { margin: .2rem 0 0; color: var(--navy); font-size: 1rem; }
.mp-backtest-score { color: var(--navy); font-weight: 600; }
.mp-model-detail { border-top: 1px solid var(--line); padding-top: .45rem; }
.mp-model-detail > :not(summary) { margin-top: .55rem; }
.mp-model-detail summary { font-size: .86rem; }
