/* Plan tab: Strategy options + what-if levers (strategy-options.js) */
#strategyOptions { margin: 0 0 var(--s4, 16px); }
:is(#strategyOptions, .strat-pop) .so-whatif, :is(#strategyOptions, .strat-pop) .so-empty { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
:is(#strategyOptions, .strat-pop) .so-whatif { padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--panel-2); border-radius: 6px; }
:is(#strategyOptions, .strat-pop) .so-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
:is(#strategyOptions, .strat-pop) .so-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius, 8px);
    padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:is(#strategyOptions, .strat-pop) .so-card.is-best { border-color: var(--accent); }
:is(#strategyOptions, .strat-pop) .so-card.is-quiet { background: transparent; }
:is(#strategyOptions, .strat-pop) .so-card.is-quiet .so-name { color: var(--text-3); }
:is(#strategyOptions, .strat-pop) .so-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
:is(#strategyOptions, .strat-pop) .so-name { font-weight: 700; font-size: 15px; color: var(--text); }
:is(#strategyOptions, .strat-pop) .so-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); }
:is(#strategyOptions, .strat-pop) .so-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 0;
    font-variant-numeric: tabular-nums; }
:is(#strategyOptions, .strat-pop) .so-nums dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); }
:is(#strategyOptions, .strat-pop) .so-nums dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
:is(#strategyOptions, .strat-pop) .so-nums div:last-child dd { font-size: 13px; }
:is(#strategyOptions, .strat-pop) .so-risks { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-2); }
:is(#strategyOptions, .strat-pop) .so-use { align-self: flex-start; margin-top: auto; font-size: 12px; padding: 5px 12px; }
:is(#strategyOptions, .strat-pop) .so-levers { margin: 12px 0; }
:is(#strategyOptions, .strat-pop) .so-levers summary { cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
/* What if: one short question per row, its answer underneath. */
:is(#strategyOptions, .strat-pop) .so-q { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 0;
    border-top: 1px solid var(--line); }
:is(#strategyOptions, .strat-pop) .so-ql { font-size: 13px; color: var(--text); min-width: 220px; }
:is(#strategyOptions, .strat-pop) .so-qi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-4); }
:is(#strategyOptions, .strat-pop) .so-qi input { width: 72px; }
:is(#strategyOptions, .strat-pop) .so-qi select { max-width: 140px; }
:is(#strategyOptions, .strat-pop) .so-ans { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--text-2); }
:is(#strategyOptions, .strat-pop) .so-x { margin-left: 6px; padding: 0 6px; font-size: 14px; line-height: 1.2; background: none;
    border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); cursor: pointer; }
:is(#strategyOptions, .strat-pop) .so-best { font-size: 13px; color: var(--text-2); }
:is(#strategyOptions, .strat-pop) .so-verdict { margin: 0; font-size: 12px; color: var(--text-3); }
:is(#strategyOptions, .strat-pop) .so-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
:is(#strategyOptions, .strat-pop) .so-acts .so-use { margin-top: 0; }
:is(#strategyOptions, .strat-pop) .so-lever-acts { display: flex; gap: 8px; margin-top: 10px; }
:is(#strategyOptions, .strat-pop) .so-card.is-plan { border-color: var(--accent); }
/* Two independent choices: fuel & stops, then tire changes. */
:is(#strategyOptions, .strat-pop) .so-group { margin: 0 0 14px; }
:is(#strategyOptions, .strat-pop) .so-gh { margin: 0 0 2px; font-size: 14px; color: var(--text); }
:is(#strategyOptions, .strat-pop) .so-group .so-best { margin: 0 0 8px; }
:is(#strategyOptions, .strat-pop) .so-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
:is(#strategyOptions, .strat-pop) .so-nums dd.so-bad { color: var(--crit); }
/* Tire cards that are not a valid plan say so; no Best when nothing is valid. */
:is(#strategyOptions, .strat-pop) .so-verdict.so-no { color: var(--crit); font-weight: 600; }
:is(#strategyOptions, .strat-pop) .so-best.so-none { color: var(--warn); }
:is(#strategyOptions, .strat-pop) .so-fill { margin: 0 0 8px; }
/* Placeholder while the room's plan loads. */
:is(#strategyOptions, .strat-pop) .so-skel-row { display: flex; gap: 10px; margin: 0 0 10px; }
:is(#strategyOptions, .strat-pop) .so-skel-row span { flex: 1; height: 72px; border-radius: var(--radius, 8px); background: var(--panel-2);
    border: 1px solid var(--line); }
/* New room, no fuel/tire strategy picked yet: Stints and Tires show a prompt, not a plan. */
.so-gate { display: none; }
html.plan-gated .so-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius, 8px); background: var(--panel-2); }
html.plan-gated .so-gate p { margin: 0; color: var(--text-2); }
html.plan-gated #sub10 > .plan-toolbar,
html.plan-gated #sub10 > #planAutoNote,
html.plan-gated #sub10 > #stintsOverview,
html.plan-gated #sub10 > .table-wrap,
html.plan-gated #sub11 > .table-wrap,
html.plan-gated #sub11 #tovSummary,
html.plan-gated #sub11 .tov-controls > .btn-primary,
html.plan-gated #sub11 #tiresOverview { display: none !important; }
:is(#strategyOptions, .strat-pop) .so-pickme { font-size: 13px; font-weight: 700; color: var(--warn); }
/* Recommended: what to do, then one line of facts. */
:is(#strategyOptions, .strat-pop) .so-rec { margin: 4px 0 18px; }
:is(#strategyOptions, .strat-pop) .so-rec-do { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); }
:is(#strategyOptions, .strat-pop) .so-rec-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-right: 4px; }
:is(#strategyOptions, .strat-pop) .so-rec-why { margin: 0; font-size: 14px; color: var(--text-2); }
:is(#strategyOptions, .strat-pop) .so-risks .so-no { color: var(--crit); font-weight: 600; }
@media (max-width: 480px) { :is(#strategyOptions, .strat-pop) .so-rec-do { font-size: 18px; } :is(#strategyOptions, .strat-pop) .so-ql { min-width: 0; } }
/* Manual pick: a hand edit left the picked strategy (state.js markPickManual). */
:is(#strategyOptions, .strat-pop) .so-manual { font-size: 13px; color: var(--text-2); }
/* Plan's warning while the plan is not the best (strategy-options.js paintGap): under the Plan sub-tabs, every sub-tab. */
.plan-gap { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 12px; padding: 10px 12px;
    background: var(--warn-dim); border: 1px solid var(--warn); border-left-width: 4px; border-radius: 8px; color: var(--text); }
.plan-gap[hidden] { display: none; }
.plan-gap-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    border-radius: 50%; background: var(--warn); color: var(--ink); font-weight: 800; font-size: 13px; }
.plan-gap-body { min-width: 0; flex: 1; }
.plan-gap-line { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.plan-gap-line + .plan-gap-line { margin-top: 6px; }
.plan-gap-use { margin-left: 4px; font-size: 12px; padding: 4px 10px; }
.so-gapchip { margin-left: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; border-radius: 999px; cursor: pointer;
    background: var(--warn-dim); color: var(--warn); border: 1px solid var(--warn); white-space: nowrap; }
.so-gapchip[hidden] { display: none; }
.so-gapchip:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; }
