/* mrktpro dashboard: "What if" (src/dashboard/whatif.js, docs/what-if.md). */
.wi-form { display: grid; gap: 14px; }
.wi-set { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.wi-set legend { padding: 0 6px; font-weight: 600; }
.wi-choice { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wi-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wi-more { display: grid; gap: 10px; padding-inline-start: 26px; }
.wi-box { display: inline-flex; align-items: center; gap: 4px; }
.wi-num { text-align: start; min-width: 3.5em; }
.wi-unit { min-width: 1ch; }
.wi-step .btn { margin-inline-start: auto; }
.wi-costs summary { cursor: pointer; padding: 2px 0; }
.wi-costs { display: grid; gap: 10px; }
.wi-problem[hidden] { display: none; }
.wi-result { display: grid; gap: 14px; }
.wi-table td.num, .wi-table th.num { white-space: nowrap; }
.wi-chart { height: 220px; }
.wi-chart svg { display: block; width: 100%; overflow: visible; }
.wi-chart .grid { stroke: var(--line); stroke-width: 1; }
.wi-chart .zero { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.wi-chart text { fill: var(--muted); font-size: 11px; }
.wi-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.wi-line.wi-actual { stroke: var(--faint); }
.wi-line.wi-what { stroke: var(--accent); }
.wi-legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.wi-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-inline-start: 6px; }
.wi-key.wi-actual { background: var(--faint); }
.wi-key.wi-what { background: var(--accent); }
.wi-alt { margin-top: 8px; }
.wi-alt summary { cursor: pointer; }
.wi-about summary { cursor: pointer; }
.wi-about summary h2 { display: inline; }
.wi-few { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.wi-link .btn { white-space: nowrap; }
