/* Withdrawals hub, Stage 1 (2026-11-19). Colours only from the master colour variables; sizes from the text tokens. */

/* ---- "Your limits" card (Roth & tax moves page; taxStrategyPanel.js) ---- */
.wo-limits-card { padding: 0; overflow: hidden; }
.wo-limits-head { padding: 20px 26px 14px; }
.wo-limits-lead { color: var(--ui-text-mutedText); margin-top: 4px; max-width: 760px; }
.wo-limits-list { padding: 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 36px; }
.wo-limit { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ui-borders-borderLight); }
.wo-limit-text { flex: 1 1 auto; min-width: 0; }
.wo-limit-name { font-size: var(--text-medium, 15px); font-weight: 600; color: var(--ui-text-primaryText); cursor: pointer; margin: 0; }
.wo-limit-desc { margin-top: 2px; }
.wo-limit-sub { margin-top: 8px; max-width: 340px; }
.wo-limit .tsx-switch { margin-top: 2px; }
.wo-limits-note { padding: 12px 26px 18px; border-top: 1px solid var(--ui-borders-borderLight); line-height: 1.5; }
.wo-link { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ui-text-linkText); cursor: pointer; text-decoration: underline; }
.wo-link:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; border-radius: 3px; }
.wo-auto-chip { flex-shrink: 0; font-size: var(--text-xs, 12px); font-weight: 600; color: var(--color-semantic-success); background: var(--color-semantic-success-light); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.wo-limits-card .wo-limits-list:last-child { padding-bottom: 8px; }
/* 2026-11-21 outside review: the lead follows the approach and sits in the card's body, over the switches; with no
   limit on the card rests as one line ("Your limits: none set." + Change) and the body is hidden and inert. */
.wo-limits-titlerow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 0; }
.wo-limits-rest .wo-link { margin-left: 8px; }
.wo-limits-body > .wo-limits-lead { margin: -8px 26px 12px; line-height: 1.5; }
.wo-limits-body > .wo-limits-list:last-child { padding-bottom: 8px; }
.wo-limits-card.is-folded .wo-limits-head { padding: 14px 26px; }
.wo-limits-rest { color: var(--ui-text-secondaryText); }
.wo-limits-open { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.wo-limits-open:hover { text-decoration: underline; }
.wo-limits-open:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; border-radius: 3px; }
/* The same review: one quiet line under a with / without chart that says what its two lines hold. */
.rc-compare-note { color: var(--ui-text-mutedText); line-height: 1.5; margin-top: 6px; }
.rc-chart-pane > .rc-compare-note { margin-top: -6px; }
/* The Fixed amount's plan as typed, under its conversion window. */
.rc-window-sum { color: var(--ui-text-secondaryText); line-height: 1.45; }
.rc-window-sum:empty { display: none; }
/* The figures beside the sliders can be typed: a click turns the figure into a small field. */
.rc-typeable { cursor: text; border-bottom: 1px dashed color-mix(in srgb, var(--ui-text-mutedText) 55%, transparent); }
.rc-typeable:hover, .rc-typeable:focus-visible { border-bottom-color: var(--ui-text-linkText); outline: none; }
.rc-type-input { text-align: right; border: 1px solid var(--ui-text-linkText); border-radius: 6px; padding: 1px 6px; background: var(--ui-backgrounds-cardBg); color: var(--ui-text-primaryText); max-width: 100%; box-sizing: content-box; }
.rc-type-input:focus { outline: 2px solid color-mix(in srgb, var(--ui-text-linkText) 35%, transparent); outline-offset: 1px; }

/* ---- Optimizer (optimizeWizard.js): limits row, Keep my settings, What would change, ties ---- */
.wo-limrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: rgba(var(--color-blue-6-rgb), 0.05); border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; font-size: var(--text-medium, 15px); color: var(--ui-text-primaryText); line-height: 1.45; }
.wo-limrow a { color: var(--ui-text-linkText); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.wo-limrow-note { font-size: var(--text-small, 14px); color: var(--ui-text-secondaryText); }
.wo-keep-btn { margin-top: 0; }
.wo-keep-note { margin-top: 6px; max-width: 260px; text-align: right; }
.owz-change-row.wo-change-head { border-top: 0; padding: 0 0 6px; font-size: var(--text-xs, 12px); font-weight: 600; color: var(--ui-text-secondaryText); }
.owz-change-row.wo-change-same .owz-change-from,
.owz-change-row.wo-change-same .owz-change-to { color: var(--ui-text-mutedText); font-weight: 400; }
.wo-tie-note { margin-top: 10px; line-height: 1.5; }
.wo-fold-note { margin-top: 2px; font-weight: 400; }

/* ---- Stage 2 (2026-11-20): "What these moves do" (taxStrategyPanel.js renderVerdicts) ---- */
.wo-stack-gap { margin-top: 14px; }
.wo-verdicts { padding: 0; overflow: hidden; container-type: inline-size; }
.wo-verdicts-head { padding: 20px 26px 14px; }
.wo-verdicts-lead { color: var(--ui-text-mutedText); margin-top: 4px; max-width: 760px; line-height: 1.5; }
.wo-verdicts-acts { padding: 0 26px 20px; }
.wo-verdicts-wait { padding: 0 26px 20px; font-style: italic; }
.wo-verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ui-borders-borderLight); transition: opacity 0.15s ease; }
.wo-verdict-grid.is-stale { opacity: 0.5; }
@container (min-width: 1040px) { .wo-verdict-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 520px) { .wo-verdict-grid { grid-template-columns: minmax(0, 1fr); } }
.wo-verdict { padding: 16px 26px 18px; border-right: 1px solid var(--ui-borders-borderLight); border-bottom: 1px solid var(--ui-borders-borderLight); margin: 0 -1px -1px 0; min-width: 0; }
.wo-verdict-title { font-weight: 600; color: var(--ui-text-secondaryText); }
.wo-verdict-text { font-size: var(--text-medium, 15px); font-weight: 700; line-height: 1.35; margin-top: 4px; color: var(--ui-text-primaryText); }
.wo-verdict[data-tone="good"] .wo-verdict-text { color: var(--color-semantic-success); }
.wo-verdict[data-tone="bad"] .wo-verdict-text { color: var(--color-semantic-warning); }
.wo-verdict-detail { margin-top: 4px; line-height: 1.45; }
.wo-btn-primary { appearance: none; -webkit-appearance: none; cursor: pointer; font-size: var(--text-small, 14px); font-weight: 600; padding: 8px 18px; background: var(--ui-text-linkText); color: var(--ui-backgrounds-cardBg); border: none; border-radius: 6px; }
.wo-btn-primary:hover { background: var(--ui-main-linkHover); }
.wo-btn-primary:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; }

/* ---- Stage 2: the cost of a limit (optimizeWizard.js limitCostHtml) ---- */
.wo-limit-cost { margin-top: 14px; padding: 12px 16px; background: rgba(var(--color-blue-6-rgb), 0.05); border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; font-size: var(--text-small, 14px); line-height: 1.5; color: var(--ui-text-primaryText); }
.wo-limit-cost > .wo-link { margin-left: 8px; white-space: nowrap; }
.wo-ref-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ui-borders-borderDefault); display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(2, minmax(150px, 1fr)); gap: 10px 24px; align-items: start; }
.wo-ref-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.wo-ref-chip { font-size: var(--text-2xs, 11px); font-weight: 700; letter-spacing: 0.5px; color: var(--ui-text-secondaryText); background: var(--ui-borders-borderLight); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.wo-ref-fig { display: flex; flex-direction: column; gap: 1px; }
.wo-ref-fig b { font-size: var(--text-medium, 15px); }
.wo-ref-note { grid-column: 1 / -1; }

/* ---- Stage 2: "Try it on a copy" (optimizeWizard.js tryOnCopy) ---- */
.wo-copy-btn { margin-top: 0; }
.wo-copy-btn:disabled { opacity: 0.6; cursor: default; }
.wo-copy-hint { max-width: 260px; text-align: right; line-height: 1.4; }
.wo-keep-note[data-ok="true"] { color: var(--color-semantic-success); font-weight: 600; }
@media (max-width: 980px) { .wo-copy-hint, .wo-keep-note { text-align: left; } }

/* ---- Stage 2: trimmed years on the limits card (taxStrategyPanel.js trimmedYearsHtml) ---- */
.wo-trimmed { padding: 0 26px 18px; }
.wo-trimmed-text { font-weight: 600; color: var(--ui-text-primaryText); line-height: 1.5; }
.wo-trimmed-list { margin-top: 8px; }
.wo-trimmed-list > summary { cursor: pointer; font-size: var(--text-small, 14px); font-weight: 600; color: var(--ui-text-linkText); }
.wo-trimmed-list > summary:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; border-radius: 3px; }
.wo-trimmed-table { border-collapse: collapse; margin: 10px 0 8px; font-size: var(--text-small, 14px); color: var(--ui-text-secondaryText); }
.wo-trimmed-table th { text-align: left; font-size: var(--text-2xs, 11px); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ui-text-mutedText); padding: 0 22px 6px 0; }
.wo-trimmed-table td { padding: 6px 22px 6px 0; border-top: 1px solid var(--ui-borders-borderLight); }
.wo-trimmed-table th:nth-child(n+3), .wo-trimmed-table td:nth-child(n+3) { text-align: right; }
.wo-trimmed-table tfoot td { font-weight: 700; color: var(--ui-text-primaryText); }
.wo-trimmed-by { font-weight: 700; color: var(--ui-text-primaryText); }
.wo-trimmed-table tfoot td:last-child { text-align: right; }
.wo-stack-under { margin-bottom: 14px; }

/* ==== Compact Optimizer result, direction B "Result beside the changes" (2026-11-20; optimizeWizard.js winnerCardHtml) ====
   "What you get" on the left, "What would change in your plan" on the right with the three buttons under it; notes
   behind "?"; the charts and the year-by-year table rest folded. Colours from the master colour variables, sizes from
   the text tokens. The older .owz-tile / .owz-charts rules stay in the wizard's own sheet for the near-optimal card.
   2026-11-21, direction A "Icons and bars" (Steve; .automation/planning/bestmatchredesign/): a tinted band and a medal
   (or a scale) behind the headline, an icon tile and "Now" / "Best match" bars per figure, an icon tile and a soft blue
   chip per change, and ONE tinted bar across the bottom holding the three buttons and the two fold buttons. */
.orc-card {
    --orc-good: color-mix(in srgb, var(--color-semantic-success) 78%, var(--ui-text-primaryText));
    --orc-warn: color-mix(in srgb, var(--color-semantic-warning) 72%, var(--ui-text-primaryText));
    --orc-kick: color-mix(in srgb, var(--color-teal-4) 55%, var(--ui-text-primaryText));
    container-type: inline-size; font-size: var(--text-small, 14px); line-height: 1.45; color: var(--ui-text-primaryText);
}
.owz-winner-card.orc-card { overflow: visible; }
.orc-card p, .orc-card dl, .orc-card dd, .orc-card dt, .orc-card ul, .orc-card li { margin: 0; padding: 0; }
.orc-card ul { list-style: none; }
.orc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.orc-head { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--ui-borders-borderLight); border-radius: 13px 13px 0 0;
    background: linear-gradient(90deg, rgba(var(--color-semantic-success-rgb), 0.12), rgba(var(--color-teal-4-rgb), 0.05) 55%, rgba(var(--color-teal-4-rgb), 0)); }
.orc-tone-nowin .orc-head, .orc-tone-same .orc-head { background: linear-gradient(90deg, var(--color-slate-9), rgba(var(--color-slate-9-rgb), 0)); }
.orc-headtxt { flex: 1; min-width: 0; }
.orc-medal { width: 40px; height: 48px; flex: none; }
.orc-medal-ribbon { fill: var(--color-teal-4); }
.orc-medal-rim { fill: var(--color-amber-2); }
.orc-medal-face { fill: var(--color-amber-3); }
/* The star is the dark gold of the ambers, the same in every theme; never white-1 (a dark shade in the dark theme; 2026-11-21). */
.orc-medal-star { fill: var(--color-amber-1); }
.orc-scale { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--color-slate-8); color: var(--color-slate-2); }
.orc-scale .orc-ic { width: 24px; height: 24px; }
.orc-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Tints mixed from the theme's own text colours, so they show on the dark card too (2026-11-21). */
.orc-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--ui-text-linkText) 14%, transparent); color: var(--ui-text-linkText); }
.orc-tile.orc-t-good { background: var(--color-semantic-success-light); color: var(--orc-good); }
.orc-tile.orc-t-bad { background: var(--color-semantic-danger-light); color: var(--color-semantic-danger); }
.orc-tile.orc-t-warn { background: var(--color-semantic-warning-light); color: var(--orc-warn); }
.orc-tile.orc-t-flat, .orc-tile.orc-t-same { background: color-mix(in srgb, var(--ui-text-secondaryText) 14%, transparent); color: var(--ui-text-secondaryText); }
.orc-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.orc-eyebrow .orc-meta { margin-left: auto; }
.orc-card .owz-winner-kicker, .orc-card .owz-winner-bestof { color: var(--orc-kick); text-transform: uppercase; }
.orc-meta { font-size: var(--text-xs, 12px); color: var(--ui-text-secondaryText); }
.orc-hl { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.orc-card .orc-lead { font-size: var(--text-value, 16px); font-weight: 600; color: var(--ui-text-secondaryText); }
.orc-card .owz-winner-gain { font-size: var(--text-figure, 32px); letter-spacing: -0.8px; line-height: 1.1; }
.orc-card.orc-tone-win .owz-winner-gain { color: var(--orc-good); }
.orc-tail { font-size: var(--text-value, 16px); font-weight: 600; }
.orc-sub { margin-top: 3px; color: var(--ui-text-secondaryText); }
.orc-card .orc-sub strong, .orc-card .orc-sub b { color: var(--ui-text-primaryText); }
.orc-card .orc-sub .orc-good { color: var(--orc-good); }
.orc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.orc-col { padding: 14px 22px 14px; min-width: 0; }
.orc-col + .orc-col { border-left: 1px solid var(--ui-borders-borderLight); }
.orc-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: var(--text-xs, 12px); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text-secondaryText); }
/* "What you get": a tile, the label with its chip, then Now / Best match (bars for a pair of dollar figures). */
.orc-figs { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.orc-fig { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ui-borders-borderLight); min-width: 0; }
.orc-fig:first-child { border-top: 0; padding-top: 0; }
.orc-fig:last-child { padding-bottom: 0; }
.orc-fig.orc-fig-plain { padding-top: 6px; padding-bottom: 6px; }
.orc-fig.orc-fig-plain:last-child { padding-bottom: 0; }
.orc-figbody { flex: 1; min-width: 0; }
.orc-figtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; min-height: 34px; }
.orc-figname { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.orc-figtop > .owz-pill, .orc-figtop > .orc-v { align-self: center; margin-left: auto; }
.orc-bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1px 10px; margin-top: 2px; }
.orc-bars.orc-bars-text { grid-template-columns: auto minmax(0, 1fr); }
.orc-bl { color: var(--ui-text-secondaryText); white-space: nowrap; }
.orc-bv { text-align: right; color: var(--ui-text-secondaryText); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orc-bars-text .orc-bv { text-align: left; white-space: normal; }
.orc-bv.orc-v, .orc-fig-plain .orc-v { font-size: var(--text-value, 16px); font-weight: 700; color: var(--ui-text-primaryText); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orc-bars-text .orc-bv.orc-v { white-space: normal; }
.orc-fig.is-flat .orc-bv.orc-v { color: var(--ui-text-secondaryText); font-weight: 600; font-size: var(--text-medium, 15px); }
.orc-track { height: 10px; border-radius: 5px; background: var(--color-gray-100); overflow: hidden; }
.orc-track i { display: block; height: 100%; border-radius: 5px; background: var(--color-gray-300); }
.orc-track i.orc-f-good { background: var(--color-semantic-success); }
.orc-track i.orc-f-bad { background: rgba(var(--color-semantic-danger-rgb), 0.78); }
.orc-track i.orc-f-warn { background: var(--color-semantic-warning); }
.orc-track i.orc-f-flat { background: var(--color-slate-3); }
.orc-card .owz-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; white-space: nowrap; }
.orc-card .owz-pill-good { color: var(--orc-good); background: var(--color-semantic-success-light); }
.orc-card .owz-pill-warn { color: var(--orc-warn); }
.orc-card .owz-pill-flat { font-weight: 600; }
/* The change rows keep the older row classes (suites and the help capture read them); here they are a list, not a grid. */
.orc-chg .owz-change-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; border-top: 1px solid var(--ui-borders-borderLight); border-bottom: 0; font-size: inherit; }
.orc-chg .owz-change-row:first-child { border-top: 0; padding-top: 0; }
.orc-chg .owz-change-row:last-child { padding-bottom: 0; border-bottom: 0; }
.orc-rowbody { flex: 1; min-width: 0; }
.orc-chg .owz-change-name { display: flex; align-items: center; gap: 6px; }
.orc-line { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.orc-to { background: color-mix(in srgb, var(--ui-text-linkText) 16%, transparent); padding: 1px 8px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.orc-chg .owz-change-to .orc-tonote { color: var(--ui-text-secondaryText); font-weight: 400; }
.orc-chg .owz-change-to { font-weight: 700; }
.orc-chg .wo-change-same .orc-line { display: block; color: var(--ui-text-secondaryText); }
.orc-chg .wo-change-same .owz-change-to { font-weight: 400; }
.orc-rowsub { margin-top: 3px; color: var(--ui-text-secondaryText); }
.orc-rowsub b { color: var(--ui-text-primaryText); }
.orc-col .wo-limit-cost { margin-top: 10px; padding: 9px 12px; }
/* The decision: one tinted bar across the bottom, the two folds on the left, the three buttons on the right
   (Steve 2026-11-24; they were the other way round). */
.orc-actbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 22px; background: var(--color-slate-9); border-top: 1px solid var(--color-slate-8); border-radius: 0 0 13px 13px; }
.orc-card:has(.orc-foot > :not([hidden])) .orc-actbar { border-radius: 0; border-bottom: 1px solid var(--color-slate-8); }
.orc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.orc-actbar .orc-acts { justify-content: flex-end; margin-left: auto; }
.orc-actbar .orc-acts .wo-keep-note { text-align: right; }
.orc-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 11px; border-radius: 8px; font-size: var(--text-small, 14px); font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; margin: 0; }
.orc-btn-p { border: 0; background: var(--ui-text-linkText); color: var(--ui-backgrounds-cardBg); font-weight: 700; }
.orc-btn-p:hover { background: var(--ui-main-linkHover); }
.orc-btn-s { border: 1px solid var(--ui-borders-borderDefault); background: var(--ui-backgrounds-cardBg); color: var(--ui-text-primaryText); }
.orc-btn-s:hover { border-color: var(--ui-text-secondaryText); }
.orc-btn:disabled { opacity: 0.6; cursor: default; }
.orc-btn:focus-visible, .orc-help:focus-visible, .orc-fold:focus-visible, .orc-tab:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; }
.orc-acts .wo-keep-note { flex-basis: 100%; max-width: none; margin-top: 0; text-align: left; }
.orc-acts .wo-keep-note[hidden] { display: none; }
.orc-tip { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.orc-help { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--ui-borders-borderDefault); background: var(--ui-backgrounds-cardBg); color: var(--ui-text-secondaryText); font-size: var(--text-xs, 12px); font-weight: 700; line-height: 1; cursor: pointer; }
.orc-help:hover { color: var(--ui-text-primaryText); border-color: var(--ui-text-secondaryText); }
.orc-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: -8px; width: 300px; max-width: 80vw; padding: 10px 12px; background: var(--ui-backgrounds-cardBg); color: var(--ui-text-primaryText); border: 1px solid var(--ui-borders-borderDefault); border-radius: 10px; box-shadow: var(--card-shadow); font-size: var(--text-small, 14px); font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; }
.orc-pop[hidden] { display: none; }
.orc-pop.is-right { left: auto; right: -8px; }
.orc-pop > span { display: block; }
.orc-pop > span + span { margin-top: 6px; }
/* Under the bar: the "One more idea" boxes and whatever a fold has opened. Nothing there = no room taken. */
.orc-foot { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }
.orc-foot:has(> :not([hidden])) { padding: 12px 24px 16px; }
@supports not selector(:has(*)) { .orc-foot { padding: 12px 24px 16px; } }
.orc-idea { padding: 9px 14px; border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; background: rgba(var(--color-blue-6-rgb), 0.06); }
.orc-idea > .owz-subnote { display: inline; margin: 0 !important; color: var(--ui-text-primaryText); }
.orc-idea-t { margin-right: 4px; }
.orc-idea-t { font-weight: 700; }
.orc-folds { display: flex; flex-wrap: wrap; gap: 8px; }
.orc-actbar .orc-folds { gap: 2px 8px; }
.orc-actbar .orc-fold { border-color: transparent; background: none; padding: 0 6px; color: var(--ui-text-linkText); }
.orc-actbar .orc-fold:hover { border-color: transparent; text-decoration: underline; }
.orc-actbar .orc-fold .orc-chev { color: var(--ui-text-linkText); }
.orc-fold { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; margin: 0; border: 1px solid var(--ui-borders-borderLight); border-radius: 8px; background: var(--ui-backgrounds-cardBg); font-size: var(--text-small, 14px); font-weight: 600; color: var(--ui-text-primaryText); cursor: pointer; }
.orc-fold:hover { border-color: var(--ui-borders-borderDefault); }
.orc-fold small { font-size: var(--text-small, 14px); font-weight: 400; color: var(--ui-text-secondaryText); }
.orc-chev { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--ui-text-secondaryText); transition: transform 0.15s ease; }
.orc-fold[aria-expanded="true"] .orc-chev { transform: rotate(45deg); }
.orc-foldbody[hidden] { display: none; }
.orc-chartbox { border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; padding: 4px 16px 14px; }
.orc-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--ui-borders-borderLight); margin-bottom: 10px; }
.orc-tab { appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 9px 12px; font-size: var(--text-small, 14px); font-weight: 600; color: var(--ui-text-secondaryText); cursor: pointer; }
.orc-tab[aria-selected="true"] { color: var(--ui-text-primaryText); border-bottom-color: var(--ui-text-linkText); }
.orc-chartpane[hidden] { display: none; }
.orc-chartpane .owz-legend { margin-bottom: 6px; flex-wrap: wrap; }
.orc-chartwrap { position: relative; height: 220px; }
.orc-chartnote { margin-top: 8px; color: var(--ui-text-secondaryText); }
.orc-years { border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; overflow: hidden; }
.orc-years-scroll { max-height: 320px; overflow-y: auto; }
.orc-years .owz-subnote { padding: 10px 18px; line-height: 1.5; border-bottom: 1px solid var(--ui-borders-borderLight); }
@container (max-width: 760px) {
    .orc-grid { grid-template-columns: minmax(0, 1fr); }
    .orc-col + .orc-col { border-left: 0; border-top: 1px solid var(--ui-borders-borderLight); }
    .orc-head { align-items: flex-start; gap: 12px; padding: 14px 16px; }
    .orc-col, .orc-actbar { padding-left: 16px; padding-right: 16px; }
    /* One column is the tall layout: the figures with no bars sit two across and the rows are a little tighter
       (2026-11-21, Steve: the narrow card had grown 95px with the bars). */
    .orc-col { padding-top: 10px; padding-bottom: 10px; }
    .orc-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
    .orc-figs > .orc-fig:not(.orc-fig-plain) { grid-column: 1 / -1; }
    .orc-fig { padding-top: 6px; padding-bottom: 6px; }
    .orc-figtop { min-height: 28px; }
    .orc-actbar { padding-top: 8px; padding-bottom: 8px; }
}
/* Where the bar is tight (the card beside the open inputs column), the count beside the year-by-year fold is left out
   so the buttons and the folds stay on one line; the count is in the table the fold opens. */
@container (min-width: 761px) and (max-width: 1000px) {
    .orc-actbar .orc-fold small { display: none; }
}
/* A wide card with three or more figures lays them two across, so the card is no taller than the changes beside it. */
@container (min-width: 1250px) {
    .orc-figs:not([data-count="1"]):not([data-count="2"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .orc-figs:not([data-count="1"]):not([data-count="2"]) > .orc-fig:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* ---- The question panel, folded to one line once a result is on screen (optimizeWizard.js render) ---- */
.orc-qbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 9px 16px; background: var(--ui-backgrounds-cardBg); border: 1px solid var(--ui-borders-borderLight); border-radius: 10px; font-size: var(--text-small, 14px); color: var(--ui-text-secondaryText); }
.orc-qbar b { color: var(--ui-text-primaryText); font-weight: 600; }
.orc-qbar.is-open { margin-bottom: 10px; }

/* Held-back years (2026-11-20): the lead says the outcome first; a quiet line under a limit that held something
   back; the last column names the limit. */
.wo-trimmed-text.t-small { font-weight: 400; }
.wo-trimmed--none-convert .wo-trimmed-text { padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--color-semantic-warning) 45%, var(--ui-borders-borderLight)); background: color-mix(in srgb, var(--color-semantic-warning) 8%, var(--ui-backgrounds-cardBg)); }
.wo-limit-held { margin-top: 4px; font-weight: 600; color: color-mix(in srgb, var(--color-semantic-warning) 65%, var(--ui-text-primaryText)); }
.wo-trimmed-table th:last-child, .wo-trimmed-table td.wo-held-limit { text-align: left; padding-right: 0; }

/* ---- Roth & tax moves re-layout (2026-11-20; taxStrategyPanel.js): the top card's moves list, the chosen kind's
   one line about what converts, the conversion window's "Starts ..." line ---- */
.wo-moves { margin-top: 8px; max-width: 980px; font-size: var(--text-medium, 15px); line-height: 1.55; color: var(--ui-text-primaryText); }
.wo-link.wo-move { text-align: left; text-decoration-color: color-mix(in srgb, var(--ui-text-linkText) 40%, transparent); text-underline-offset: 3px; }
.wo-link.wo-move:hover { text-decoration-color: currentColor; }
.wo-link.wo-move[data-move-on="false"] { font-weight: 400; color: var(--ui-text-secondaryText); }
.wo-link.wo-move-held { font-weight: 600; color: color-mix(in srgb, var(--color-semantic-warning) 65%, var(--ui-text-primaryText)); }
.wo-moves-prov { color: var(--ui-text-secondaryText); white-space: nowrap; }
.wo-verdicts-head .wo-moves + .wo-verdicts-lead { margin-top: 8px; }
.rc-held-row { padding: 12px 26px; border-bottom: 1px solid var(--ui-borders-borderLight); }
.rc-held-line { line-height: 1.5; color: var(--ui-text-primaryText); font-weight: 600; }
.rc-held-line .wo-link { margin-left: 6px; white-space: nowrap; }
.rc-held-line.is-none-convert { font-weight: 400; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--color-semantic-warning) 45%, var(--ui-borders-borderLight)); background: color-mix(in srgb, var(--color-semantic-warning) 8%, var(--ui-backgrounds-cardBg)); }
.rc-gate-note { color: var(--ui-text-secondaryText); line-height: 1.45; }
.rc-gate-why { margin-top: 6px; line-height: 1.5; }
.rc-gate-why[hidden] { display: none; }

/* ---- Roth conversions card: one card (direction A), 2026-11-20 (taxStrategyPanel.js rothHeadHtml;
   .automation/planning/rothcardredesign/). The header of the ONE "Roth conversions" card: row 1 the switch, the
   title, the "?" and the status chip, with the Learn link and LIVE PREVIEW at the right; row 2 the slate kind pill
   (at most 620px, left) and "Pay the tax from" beside it, which wraps under the pill when the card is narrow. ---- */
.rc-head { padding: 20px 26px 18px; display: flex; flex-direction: column; gap: 14px; }
.rc-head.has-body { border-bottom: 1px solid var(--ui-borders-borderLight); }
.rc-head-row1 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.rc-head-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.rc-head-side { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-left: auto; }
.rc-live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-2xs, 11px); font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; color: color-mix(in srgb, var(--color-teal-3) 80%, var(--ui-text-primaryText)); background: rgba(var(--color-teal-3-rgb), 0.12); border-radius: 999px; padding: 6px 13px; }
.rc-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-teal-3); }
.rc-head-row2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.rc-head-kind { flex: 0 1 620px; min-width: min(100%, 430px); }
.rc-head-kind.is-off { opacity: 0.75; }
.rc-head-kind .method-toggle-container { margin-bottom: 0; }
/* The two toggles are kept across the page's re-renders (remountKept): a slide cut short by a re-render is picked
   up where it was, by a negative delay on the thumb's own transition. 0s at rest. */
.rc-head-kind .method-toggle::before, .rc-head-tax-seg .seg-control::before { transition-delay: var(--rc-slide-delay, 0s); }
.rc-head-tax { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.rc-head-tax-seg { display: inline-flex; flex: 0 0 236px; }
.rc-head-result, .rc-head-off { line-height: 1.5; color: var(--ui-text-secondaryText); }
.help-icon.rc-help-sm { width: 18px; height: 18px; font-size: var(--text-xs, 12px); }
@media (max-width: 520px) {
    .rc-head { padding-left: 16px; padding-right: 16px; }
    .rc-head-kind { min-width: 100%; }
}

/* ---- Charts inside the Roth conversions card + the Extra withdrawals small chart, 2026-11-20
   (taxStrategyPanel.js renderChartTabs / renderExtraMini; .automation/planning/withdrawalshub/notes-roth-card-charts.md).
   ONE tabbed chart on the page. The tab row wraps to a second row when the names do not fit: never clipped, never a
   sideways scroll. Inside the card (.is-in-card) a tab's panel is flat: the card is its frame. ---- */
.rc-tabs-wrap { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rc-tabs { display: flex; flex-wrap: wrap; gap: 0 2px; border-bottom: 1px solid var(--ui-borders-borderLight); }
.rc-tab { appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 9px 10px; font-size: var(--text-small, 14px); font-weight: 600; white-space: nowrap; color: var(--ui-text-secondaryText); cursor: pointer; }
.rc-tab:hover { color: var(--ui-text-primaryText); }
.rc-tab[aria-selected="true"] { color: var(--ui-text-primaryText); border-bottom-color: var(--ui-text-linkText); }
.rc-tab:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: -2px; border-radius: 4px; }
.rc-chart-tabs:not(.is-in-card) .rc-tab { padding: 9px 14px; }
/* Six names beside the inputs: from 480px (the least they need) to 560px the tabs share the row; under 480px they
   wrap to a second row at their own width. */
.rc-chart-tabs.is-in-card { container-type: inline-size; }
@container (min-width: 480px) and (max-width: 560px) {
    .rc-chart-tabs.is-in-card .rc-tab { flex: 1 1 auto; padding-left: 3px; padding-right: 3px; text-align: center; }
}
/* Fixed amount and Fill to the limit: inputs 400px (440 before), so the chart column holds the six tabs at 1440 with
   the inputs column open. A panel taller than the inputs: the inputs travel with the page, under the pinned head
   (--rc-stick-top, set by the panel), and the dividing line is drawn by whichever column is taller. */
@media (min-width: 1181px) {
    .rc-roth-card.rc-has-charts { overflow: clip !important; }
    .rc-roth-card.rc-has-charts .rc-explorer-grid { grid-template-columns: 400px 1fr; align-items: start; }
    .rc-roth-card.rc-has-charts .rc-inputs-col { position: sticky; top: var(--rc-stick-top, 16px); }
    .rc-roth-card.rc-has-charts .rc-charts-col { border-left: 1px solid var(--ui-borders-borderLight); margin-left: -1px; }
}
.rc-chart-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rc-chart-tabs.is-in-card #ts-chart-tabcontent > .tsx-card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 !important; }
.rc-chart-tabs #ts-chart-tabcontent { min-width: 0; }
/* The Extra withdrawals card: controls left, the small chart right; stacked when the card is narrow. */
.ts-extra-wrap { container-type: inline-size; }
.ts-extra-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); align-items: stretch; }
.ts-extra-grid > * { min-width: 0; }
.ts-extra-mini { display: flex; flex-direction: column; gap: 8px; padding: 20px 26px; border-left: 1px solid var(--ui-borders-borderLight); }
.ts-extra-mini-plot { position: relative; height: 168px; }
.ts-extra-mini-caption, .ts-extra-mini-quiet { line-height: 1.5; color: var(--ui-text-secondaryText); }
.ts-extra-mini[data-state="off"], .ts-extra-mini[data-state="pending"], .ts-extra-mini[data-state="none"], .ts-extra-mini[data-state="unknown"] { justify-content: center; }
@container (max-width: 760px) {
    .ts-extra-grid { grid-template-columns: minmax(0, 1fr); }
    .ts-extra-mini { border-left: 0; border-top: 1px solid var(--ui-borders-borderLight); }
}
/* 2026-11-21 (Steve: "the charts live in the tax move that is on"): with Roth conversions off and Extra Pre-Tax
   withdrawals on, the page's tabbed chart is INSIDE this card (.has-charts), laid out like the Roth card: the
   controls in a 400px column that travels with the page, the tabs and the open chart in the rest. The two stack
   (controls, then charts) at the width where the Roth card stacks. The each-year chart is the first tab
   (.ts-extra-mini.is-tab): the same chart, drawn larger, flat inside the tab's panel. */
.ts-extra-grid.has-charts { grid-template-columns: minmax(0, 1fr); align-items: start; }
.ts-extra-charts { display: flex; flex-direction: column; gap: 14px; padding: 20px 26px 16px; border-top: 1px solid var(--ui-borders-borderLight); }
@media (min-width: 1181px) {
    #ts-extra-card.has-charts { overflow: clip !important; }
    .ts-extra-grid.has-charts { grid-template-columns: clamp(320px, 36%, 520px) minmax(0, 1fr); }
    .ts-extra-grid.has-charts > .ts-extra-charts { padding-left: 18px; padding-right: 18px; }
    .ts-extra-grid.has-charts > .ts-extra-controls { position: sticky; top: var(--rc-stick-top, 16px); border-right: 1px solid var(--ui-borders-borderLight); }
    .ts-extra-grid.has-charts > .ts-extra-charts { border-top: 0; border-left: 1px solid var(--ui-borders-borderLight); margin-left: -1px; }
}
/* Seven names on ONE row (Steve 2026-11-21): the controls column is 320px on a narrow card and grows to 520px on a wide one (36% of the card; Steve 2026-11-21: too narrow beside a wide chart), the tabs keep
   their own width with tight side padding and never wrap; a window too narrow for them scrolls the row sideways. */
.rc-chart-tabs.is-in-extra .rc-tabs, .rc-chart-tabs.is-in-extra [role="tablist"] { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.rc-chart-tabs.is-in-extra .rc-tab { flex: 0 0 auto; padding-left: 4px; padding-right: 4px; text-align: left; white-space: nowrap; }
.ts-extra-mini.is-tab { padding: 0; border: 0; gap: 12px; }
.ts-extra-mini.is-tab .ts-extra-mini-plot { height: 300px; }
.ts-extra-mini.is-tab[data-state="pending"], .ts-extra-mini.is-tab[data-state="none"], .ts-extra-mini.is-tab[data-state="unknown"] { min-height: 120px; }

/* ==== A friendlier Roth & tax moves page (Recommended set), 2026-11-20 (.automation/planning/rothpagefriendlier/) ====
   "Your tax moves" (taxStrategyPanel.js renderVerdicts, the Roth & tax moves page only: .is-list): the title with its
   "?" and the small tag, ONE sentence that says the answer, the moves list, "Also: ..." and the link that opens the
   four figures, which rest folded. Colours from the master colour variables. */
.wo-tm-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.wo-tm-tag, .wo-tm-tag.wo-verdicts-lead { font-weight: 400; white-space: normal; margin-top: 0; max-width: none; line-height: 1.5; color: var(--ui-text-secondaryText); }
.wo-tm-headline { margin: 10px 0 0; max-width: 780px; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.1px; color: var(--ui-text-primaryText); transition: opacity 0.15s ease; }
/* 2026-11-21 outside review: the sentence is balanced and its last two words never part ("99." sat alone on the
   last line at some widths); with both moves on the two moves are numbered, each on its own line. */
.wo-tm-headline { text-wrap: balance; }
.wo-tm-tail { white-space: nowrap; }
.wo-move-step { display: block; }
.wo-move-step + .wo-move-step { margin-top: 2px; }
.wo-move-n { color: var(--ui-text-secondaryText); font-weight: 600; }
.wo-moves.is-numbered .wo-moves-prov { display: block; margin-top: 2px; }
.wo-tm-fig { font-weight: 800; white-space: nowrap; }
.wo-tm-fig[data-tone="good"] { color: color-mix(in srgb, var(--color-semantic-success) 85%, var(--ui-text-primaryText)); }
.wo-tm-fig[data-tone="bad"] { color: color-mix(in srgb, var(--color-semantic-warning) 80%, var(--ui-text-primaryText)); }
.wo-tm-headline.is-stale, .wo-tm-also.is-stale { opacity: 0.5; }
.wo-verdicts.is-list .wo-moves { font-size: var(--text-small, 14px); color: var(--ui-text-secondaryText); }
.wo-verdicts.is-list .wo-link.wo-move { font-weight: 400; }
.wo-verdicts.is-list .wo-link.wo-move-held { font-weight: 400; }
.wo-tm-also { margin: 10px 0 0; font-size: var(--text-medium, 15px); line-height: 1.5; color: var(--ui-text-primaryText); }
.wo-tm-also .wo-tm-fig { font-weight: 700; }
.wo-tm-more { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ui-text-linkText); cursor: pointer; white-space: nowrap; }
.wo-tm-more:hover .wo-tm-more-label { text-decoration: underline; }
.wo-tm-more:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; border-radius: 3px; }
.wo-tm-chev { display: inline-block; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s ease; }
.wo-tm-more[aria-expanded="true"] .wo-tm-chev { transform: rotate(-135deg); margin-top: 3px; }
.wo-verdicts.is-list .wo-verdicts-head { padding-bottom: 20px; }
.wo-verdicts.is-list .wo-verdict-grid { border-top: 0; gap: 10px; padding: 0 26px 22px; margin-top: -6px; }
.wo-verdicts.is-list .wo-verdict-grid[hidden] { display: none; }
.wo-verdicts.is-list .wo-verdict { margin: 0; padding: 12px 14px 13px; border: 0; border-radius: 10px; background: var(--ui-backgrounds-pageBg); }
.wo-verdicts.is-list .wo-verdict-title { font-weight: 500; }
/* Four across from 820px (the plain grid needs 1040px: its cells are wider). */
@container (min-width: 820px) { .wo-verdicts.is-list .wo-verdict-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 520px) {
    .wo-tm-headline { font-size: 18px; }
    .wo-verdicts.is-list .wo-verdicts-head { padding-left: 16px; padding-right: 16px; }
    .wo-verdicts.is-list .wo-verdict-grid { padding-left: 16px; padding-right: 16px; }
}

/* ---- Friendlier page, step 2: a pictogram for each kind in the slate pill, an icon for each limit (inline SVG that
   follows the theme). The pictogram's bars take the label's own colour; the converted part is the app blue, lighter
   on the chosen kind's dark thumb. With pictograms the pill is 58px tall and up to 700px wide, the words left-aligned
   beside the picture; on a narrow card the sub-lines go and the pictograms stay. ---- */
.rc-head { container-type: inline-size; container-name: rchead; }
.rc-head-kind { flex-basis: 700px; }
.rc-kind-pill .method-toggle { height: 58px; }
.rc-kind-pill .method-option label { flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding-left: 8px; padding-right: 8px; }
.rc-kind-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; text-align: left; }
.rc-kind-tx .subtitle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rc-pict { flex: none; width: 40px; height: 28px; display: block; }
.rc-pict-base { fill: currentColor; opacity: 0.32; }
.rc-pict-conv { fill: var(--color-blue-6); }
.rc-kind-pill .method-option input:checked + label .rc-pict-conv { fill: var(--color-blue-9); }
.rc-pict-lim { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 2.5; opacity: 0.8; }
.rc-pict-hd { fill: var(--ui-backgrounds-cardBg); stroke: currentColor; stroke-width: 1.4; }
@container rchead (max-width: 700px) {
    .rc-kind-pill .method-toggle { height: 50px; }
    .rc-kind-pill .method-option label { gap: 6px; padding-left: 4px; padding-right: 4px; }
    .rc-kind-pill .rc-kind-tx .subtitle { display: none; }
}
@container rchead (max-width: 470px) {
    .rc-pict { width: 30px; height: 21px; }
    .rc-kind-pill .rc-kind-tx .title { font-size: var(--text-2xs, 11px); letter-spacing: 0.2px; white-space: normal; line-height: 1.15; }
}
@container rchead (max-width: 380px) {
    .rc-pict { display: none; }
    .rc-kind-tx { align-items: center; text-align: center; }
}
.wo-limit-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--ui-backgrounds-pageBg); color: var(--ui-text-secondaryText); }
.wo-limit.is-on .wo-limit-ico { color: var(--ui-text-primaryText); }

/* ---- Friendlier page, step 5: picture slots, the three empty states, the first-visit strip.
   A slot (.wo-art) is hidden until its picture file has loaded (taxStrategyPanel.js fillArt): with no file there is
   no picture, no broken-image icon and no hole. Pictures are transparent PNGs made for both themes. ---- */
.wo-art { flex: none; display: block; width: var(--wo-art-w, 104px); line-height: 0; }
.wo-art[hidden] { display: none; }
.wo-art img { display: block; width: 100%; height: auto; }
/* Roth conversions switched off: the picture left of the pill and the line. */
.rc-head-empty { display: flex; align-items: center; gap: 20px; }
.rc-head-emptycol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rc-head-empty .rc-head-off { font-size: var(--text-medium, 15px); color: var(--ui-text-primaryText); }
/* Extra withdrawals switched off: the picture beside the one line. */
.ts-extra-mini-empty { display: flex; align-items: center; gap: 20px; }
/* "Your tax moves" with no moves on. */
.wo-verdicts-empty { display: flex; align-items: center; gap: 20px; }
.wo-verdicts-empty.has-art { padding-left: 26px; }
.wo-verdicts-empty.has-art .wo-verdicts-head { padding-left: 0; }
.wo-verdicts-empty .wo-verdicts-head { flex: 1 1 auto; min-width: 0; padding-bottom: 20px; }
/* "New to Roth conversions?": three steps, hideable for good. */
.wo-first { container-type: inline-size; padding: 16px 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--color-blue-6) 25%, var(--ui-borders-borderLight)); background: color-mix(in srgb, var(--ui-text-linkText) 7%, var(--ui-backgrounds-cardBg)); }
.wo-first-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.wo-first-title { font-size: 17px; font-weight: 700; color: var(--ui-text-primaryText); }
.wo-first-acts { margin-left: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.wo-first-learn { appearance: none; -webkit-appearance: none; padding: 0; border: 0; background: none; font-size: var(--text-small, 14px); font-weight: 600; color: var(--ui-text-linkText); cursor: pointer; }
.wo-first-learn:hover { text-decoration: underline; }
.wo-first-hide { appearance: none; -webkit-appearance: none; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--ui-text-linkText); background: var(--ui-backgrounds-cardBg); font-size: var(--text-small, 14px); font-weight: 600; color: var(--ui-text-linkText); cursor: pointer; }
.wo-first-hide:hover { background: color-mix(in srgb, var(--ui-text-linkText) 8%, var(--ui-backgrounds-cardBg)); }
.wo-first-learn:focus-visible, .wo-first-hide:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; border-radius: 6px; }
.wo-first-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; margin-top: 12px; }
.wo-first-step { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wo-first-words { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wo-first-step-title { font-size: var(--text-medium, 15px); font-weight: 700; color: var(--ui-text-primaryText); }
.wo-first-step-text { line-height: 1.4; color: var(--ui-text-secondaryText); }
@container (max-width: 640px) { .wo-first-steps { grid-template-columns: minmax(0, 1fr); } }
.roth-help-intro { margin-bottom: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--ui-borders-borderLight); background: var(--ui-backgrounds-pageBg); container-type: inline-size; }
.roth-help-intro .wo-first-steps { margin-top: 0; }
@media (max-width: 620px) {
    .rc-head-empty, .ts-extra-mini-empty, .wo-verdicts-empty { flex-wrap: wrap; }
}

/* ===== The result, direction B "the picture first" (Steve 2026-11-24: "it looks quite busy and hectic ... just the
   basic details should be shown and the rest in a hover rollover"; design canvas "Optimizer page: a cleaner design").
   The picture leads, the figures are one-line tiles, the long notes rest behind hover or focus, and the table opens
   on its top rows. Markup: optimizeWizard.js (winnerCardHtml, alternativesHtml). Display only. ===== */

/* A result on screen: the page's own head goes quiet (the intro sentence is for the first visit; the limits and
   the search read as two plain lines, not two boxes). */
.owz-has-result .owz-intro-row .owz-intro { display: none; }
.owz-has-result .owz-intro-row { margin-bottom: 6px; justify-content: flex-end; }
.owz-has-result #opt-wiz-limits-row { background: transparent; border: 0; padding: 0 4px; margin-bottom: 6px; }
.owz-has-result #opt-wiz-limits-row .wo-limrow-note { display: none; }
.owz-has-result #opt-wiz-qbar:not(.is-open) { background: transparent; border: 0; padding: 0 4px; box-shadow: none; }

/* The card: the picture and the figures on the wider side, the changes beside them. */
#opt-wiz-winner .orc-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
#opt-wiz-winner .orc-col { padding: 16px 24px 18px; }
#opt-wiz-winner .orc-hero { margin-bottom: 14px; }
#opt-wiz-winner .orc-herohead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
#opt-wiz-winner .orc-herohead .orc-label { margin-bottom: 0; }
#opt-wiz-winner .orc-herowrap { position: relative; height: 210px; }

/* The figures: one-line tiles. "Now" and "Best match" show above the tile on hover and on keyboard focus. */
#opt-wiz-figures .orc-figs { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 8px 10px; }
#opt-wiz-figures .orc-figs > .orc-fig { grid-column: auto; position: relative; align-items: center; min-height: 46px; padding: 6px 12px; border: 0; border-radius: 10px; background: var(--ui-backgrounds-pageBg); }
#opt-wiz-figures .orc-fig > .orc-tile { display: none; }
#opt-wiz-figures .orc-figtop { min-height: 0; flex-wrap: nowrap; }
#opt-wiz-figures .orc-figtop > .owz-pill, #opt-wiz-figures .orc-figtop > .orc-v { white-space: nowrap; flex: none; }
#opt-wiz-figures .orc-figname { font-weight: 500; }
#opt-wiz-figures .orc-bars { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; margin: 0; padding: 10px 12px; background: var(--ui-backgrounds-cardBg); border: 1px solid var(--ui-borders-borderDefault); border-radius: 10px; box-shadow: var(--card-shadow); }
#opt-wiz-figures .orc-fig:hover .orc-bars,
#opt-wiz-figures .orc-fig:focus .orc-bars,
#opt-wiz-figures .orc-fig:focus-within .orc-bars { display: grid; }
#opt-wiz-figures .orc-fig:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 2px; }

/* The changes: the new value alone; the years, the caveat and the range show under the row on hover or focus. */
#opt-wiz-changes .owz-change-row { position: relative; padding-top: 11px; padding-bottom: 11px; }
#opt-wiz-changes .owz-change-row:first-child { padding-top: 0; }
#opt-wiz-changes .orc-more { margin-left: auto; font-size: var(--text-xs, 12px); font-weight: 500; color: var(--ui-text-linkText); }
#opt-wiz-changes .orc-rowsubs { display: none; position: absolute; left: 46px; right: 0; top: calc(100% - 4px); z-index: 20; padding: 10px 12px; background: var(--ui-backgrounds-cardBg); border: 1px solid var(--ui-borders-borderDefault); border-radius: 10px; box-shadow: var(--card-shadow); }
#opt-wiz-changes .orc-rowsubs .orc-rowsub:first-child { margin-top: 0; }
#opt-wiz-changes .owz-change-row.has-subs:hover .orc-rowsubs,
#opt-wiz-changes .owz-change-row.has-subs:focus .orc-rowsubs,
#opt-wiz-changes .owz-change-row.has-subs:focus-within .orc-rowsubs { display: block; }
#opt-wiz-changes .owz-change-row.has-subs:focus-visible { outline: 2px solid var(--ui-text-linkText); outline-offset: 4px; border-radius: 6px; }

/* The table: lighter head, one solid button (the best row's), room in the rows, and "Show all" under it. */
#opt-wiz-alts .owz-table-head { background: transparent; padding: 18px 26px 10px; }
#opt-wiz-alts-body .owz-table th { border-top: 0; font-weight: 600; letter-spacing: 0.4px; }
#opt-wiz-alts-body .owz-table td { padding-top: 13px; padding-bottom: 13px; }
#opt-wiz-alts .owz-apply-row { background: transparent; color: var(--ui-text-linkText); border: 1px solid var(--ui-borders-borderDefault); }
#opt-wiz-alts .owz-apply-row:hover { background: rgba(var(--color-blue-6-rgb), 0.06); }
#opt-wiz-alts tr.owz-row-best .owz-apply-row { background: var(--ui-text-linkText); color: var(--ui-backgrounds-cardBg); border-color: transparent; }
#opt-wiz-alts tr.owz-row-best .owz-apply-row:hover { background: var(--ui-main-linkHover); }
#opt-wiz-alts .owz-alts-foot { display: flex; justify-content: center; padding: 8px 16px 12px; }
#opt-wiz-alts-more[hidden] { display: none; }


/* The tiles lead with the figure, then the label, then a short share (Steve 2026-11-24, from the design canvas).
   The older chip and value stay in the markup (the hover note's lines and every reader of them). */
#opt-wiz-figures .orc-figtop { justify-content: flex-start; gap: 10px; }
#opt-wiz-figures .orc-tfig { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#opt-wiz-figures .orc-tfig::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
#opt-wiz-figures .orc-tf-good { color: var(--orc-good); }
#opt-wiz-figures .orc-tf-bad { color: var(--color-semantic-danger); }
#opt-wiz-figures .orc-tf-warn { color: var(--orc-warn); }
#opt-wiz-figures .orc-tf-flat { color: var(--ui-text-secondaryText); }
#opt-wiz-figures .orc-figname { flex: 1 1 auto; font-weight: 400; color: var(--ui-text-primaryText); }
#opt-wiz-figures .orc-tshare { flex: none; margin-left: auto; color: var(--ui-text-secondaryText); font-size: var(--text-small, 14px); white-space: nowrap; }
#opt-wiz-figures .orc-figtop > .owz-pill, #opt-wiz-figures .orc-figtop > .orc-v { display: none; }
/* A narrow tile (the card beside an open inputs column) takes two lines: the figure and its share, then the label.
   Decided by the tile's own width, so it follows the card, never the window. */
#opt-wiz-figures .orc-figs > .orc-fig { container-type: inline-size; }
@container (max-width: 330px) {
    #opt-wiz-figures .orc-figtop { flex-wrap: wrap; row-gap: 2px; }
    #opt-wiz-figures .orc-figname { order: 3; flex: 1 1 100%; }
}
/* The hover note is wide enough to read its two bars whatever the tile's width; the right-hand tiles open leftward. */
#opt-wiz-figures .orc-bars { right: auto; width: max(100%, 330px); }
#opt-wiz-figures .orc-figs > .orc-fig:nth-child(even) .orc-bars { left: auto; right: 0; }

/* The head, simpler (Steve 2026-11-24: "further simplify this part ... this kind of detail doesn't seem needed"):
   the count, the depth and the seconds step out, and so does the plain "Meets your goal" note. A trade-off or any
   other note still shows. */
#opt-wiz-winner .owz-winner-bestof, #opt-wiz-winner .owz-winner-meta { display: none; }
#opt-wiz-winner .orc-goalpart.is-plain { display: none; }
#opt-wiz-winner .orc-head { padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 1100px) {
    #opt-wiz-winner .orc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-11-24 (Steve): "Your limits" is a row of the Run card, under "Health insurance before 65"; the intro sentence
   is gone, so its row holds only the dollars slot (none under the hub) and takes no room. */
#opt-wiz-panel .owz-limits-row a { margin-left: 10px; color: var(--ui-text-linkText); font-weight: 600; text-decoration: underline; white-space: nowrap; }
#opt-wiz-panel .owz-aca-row + .owz-limits-row { margin-top: 12px; padding-top: 12px; }
.owz-intro-row.owz-intro-row--bare { margin-bottom: 0; }
.owz-intro-row.owz-intro-row--bare .owz-intro { display: none; }

/* 2026-11-24 (Steve: "don't show the secondary number here as the same number is showing below. Simpler is better!"):
   the headline's second figure ("$14,626 less in lifetime taxes") is not drawn; the tiles under the chart say it. A
   trade-off note, when there is one, still shows on that line. */
#opt-wiz-winner .orc-sub .orc-second { display: none; }
#opt-wiz-winner .orc-sub:not(:has(.orc-goalpart:not(.is-plain))) { display: none; }

/* Seven tabs in the Roth card since "Conversions" (2026-11-24): a little less room each, so the row stays one line
   beside the inputs at 1440 wide. */
.rc-chart-tabs.is-in-card:not(.is-in-extra) .rc-tab { padding-left: 7px; padding-right: 7px; }
.rc-chart-tabs.is-in-card:not(.is-in-extra) .rc-tabs { gap: 0; }
@container (max-width: 560px) {
    .rc-chart-tabs.is-in-card:not(.is-in-extra) .rc-tab { padding-left: 3px; padding-right: 3px; }
}

/* ==== Your best match, design A "summary rail" (Steve 2026-11-25; canvas "Your best match: four calmer cards") ====
   A white card, no band and no medal. The left rail holds the answer once (a dot in the card's tone, the figure,
   its words, its share against your settings now) and the other figures under a line, label first. The right side
   holds the portfolio picture and the changes as a table: Setting, Your settings now, Best match. The bar across
   the bottom is unchanged. Every id, figure and reader of the card is the same; only the arrangement changed. */
#opt-wiz-winner.orc-rail-card { background: var(--ui-backgrounds-cardBg); }
#opt-wiz-winner.orc-rail-card .orc-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
/* The bar across the bottom is white like the card, behind one line (it was tinted). */
#opt-wiz-winner.orc-rail-card .orc-actbar { background: none; border-top: 1px solid var(--ui-borders-borderLight); }
#opt-wiz-winner.orc-rail-card .orc-col { padding: 22px 26px 20px; }
#opt-wiz-winner.orc-rail-card .orc-rail { display: flex; flex-direction: column; gap: 18px; }
#opt-wiz-winner.orc-rail-card .orc-head { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
#opt-wiz-winner.orc-rail-card .orc-eyebrow { gap: 9px; }
#opt-wiz-winner.orc-rail-card .orc-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--orc-good); }
#opt-wiz-winner.orc-rail-card.orc-tone-nowin .orc-dot, #opt-wiz-winner.orc-rail-card.orc-tone-same .orc-dot { background: var(--ui-text-secondaryText); }
#opt-wiz-winner.orc-rail-card .owz-winner-kicker { color: var(--ui-text-primaryText); text-transform: none; letter-spacing: 0; font-size: var(--text-value, 16px); font-weight: 700; }
#opt-wiz-winner.orc-rail-card .orc-hl { margin-top: 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
#opt-wiz-winner.orc-rail-card .orc-hl:not(.orc-hl-words) .orc-lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#opt-wiz-winner.orc-rail-card .owz-winner-gain { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
#opt-wiz-winner.orc-rail-card .orc-tail { font-size: var(--text-medium, 15px); font-weight: 400; color: var(--ui-text-primaryText); }
#opt-wiz-winner.orc-rail-card .orc-share { margin-top: 2px; color: var(--ui-text-secondaryText); }
#opt-wiz-winner.orc-rail-card .orc-share .orc-tip { margin-left: 6px; vertical-align: middle; }
#opt-wiz-winner.orc-rail-card .orc-sub { margin-top: 8px; color: var(--ui-text-secondaryText); }

/* The rail's figures: a line, then each one with its label on top and the figure in words under it. */
#opt-wiz-winner.orc-rail-card #opt-wiz-figures { padding-top: 16px; border-top: 1px solid var(--ui-borders-borderLight); }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures:not(:has(.orc-fig:not([hidden]))) { display: none; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figs { display: flex; flex-direction: column; gap: 16px; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figs > .orc-fig { min-height: 0; padding: 0; border-radius: 0; background: none; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figtop { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "fig share"; align-items: baseline; gap: 2px 8px; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figname { grid-area: name; display: flex; align-items: center; gap: 6px; color: var(--ui-text-secondaryText); }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-tfig { grid-area: fig; font-size: 22px; line-height: 1.2; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-tfig::before { content: none; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-tf-flat { color: var(--ui-text-primaryText); }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-tshare { grid-area: share; margin-left: 0; }
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figs > .orc-fig .orc-bars,
#opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figs > .orc-fig:nth-child(even) .orc-bars { left: 0; right: auto; }

/* The picture: a plain title beside its legend. */
#opt-wiz-winner.orc-rail-card .orc-herohead .orc-label { font-size: var(--text-value, 16px); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ui-text-primaryText); }
#opt-wiz-winner.orc-rail-card .orc-hero { margin-bottom: 18px; }
#opt-wiz-winner.orc-rail-card .orc-herowrap { height: 220px; }

/* The changes: a three-column table. The icon tile and the arrow rest; the new value is bold, with no chip. */
#opt-wiz-winner.orc-rail-card .orc-chghead,
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row { display: grid; grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.2fr); column-gap: 18px; align-items: start; }
#opt-wiz-winner.orc-rail-card .orc-chghead { padding-bottom: 8px; }
#opt-wiz-winner.orc-rail-card .orc-chghead .orc-label { display: flex; align-items: center; gap: 6px; margin: 0; }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row,
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row:first-child { padding: 12px 0; border-top: 1px solid var(--ui-borders-borderLight); }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row:last-child { padding-bottom: 2px; }
#opt-wiz-winner.orc-rail-card .orc-chg .orc-tile,
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-arrow { display: none; }
#opt-wiz-winner.orc-rail-card .orc-chg .orc-rowbody,
#opt-wiz-winner.orc-rail-card .orc-chg .orc-line { display: contents; }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-name { flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 600; }
#opt-wiz-winner.orc-rail-card #opt-wiz-changes .orc-more { margin-left: 0; font-size: var(--text-small, 14px); }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-from { color: var(--ui-text-secondaryText); }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-to { font-weight: 700; color: var(--ui-text-primaryText); }
#opt-wiz-winner.orc-rail-card .orc-chg .orc-to { padding: 0; background: none; }
#opt-wiz-winner.orc-rail-card .orc-chg .wo-change-same .owz-change-to { font-weight: 400; color: var(--ui-text-secondaryText); }
#opt-wiz-winner.orc-rail-card #opt-wiz-changes .orc-rowsubs { left: 0; }

/* A narrow card: the rail sits above, its figures in a row; a narrow table puts each row's values under its name. */
@container (max-width: 860px) {
    #opt-wiz-winner.orc-rail-card .orc-grid { grid-template-columns: minmax(0, 1fr); }
    #opt-wiz-winner.orc-rail-card .orc-col + .orc-col { border-left: 0; border-top: 1px solid var(--ui-borders-borderLight); }
    #opt-wiz-winner.orc-rail-card #opt-wiz-figures .orc-figs { flex-direction: row; flex-wrap: wrap; gap: 14px 32px; }
}
@container (max-width: 560px) {
    #opt-wiz-winner.orc-rail-card .orc-col { padding-left: 16px; padding-right: 16px; }
    #opt-wiz-winner.orc-rail-card .orc-chghead { display: none; }
    #opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* 2026-11-25 (Steve: "Let's remove the lines separating the rows"): the options table keeps one line, under its column
   names (the head no longer sticks: the table does not scroll inside a window). The tinted rows (your settings now,
   the best) still stand out. In the best match card's table, likewise, only the line under Setting / Your settings
   now / Best match. */
#opt-wiz-alts-body .owz-table td { border-top: 0; }
#opt-wiz-alts-body .owz-table thead th { position: static; box-shadow: none; border-bottom: 1px solid var(--ui-borders-borderLight); }
#opt-wiz-winner.orc-rail-card .orc-chghead { border-bottom: 1px solid var(--ui-borders-borderLight); }
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row,
#opt-wiz-winner.orc-rail-card .orc-chg .owz-change-row:first-child { border-top: 0; }
