/* Results bar and views (CMP 3.0, stage 2 — 19.10.26). See static/results-views.js. */
.rv-hidden, .rv-collapsed { display: none !important; }
[hidden].rv-pane, .rv-view[hidden], .rv-host[hidden], .rv-sub[hidden] { display: none !important; }

/* Bar of view buttons */
.rv-bar {
  width: calc(100% - 2rem); margin: 12px 1rem 0; box-sizing: border-box;
  background: #f7f6f1; border-radius: 12px; padding: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.rv-bar button {
  font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 8px; border-radius: 8px; border: none; cursor: pointer;
  background: transparent; color: #33352d; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.rv-bar button:hover { background: #ebeae2; }
.rv-bar button.rv-on { background: #2E6B33; color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.rv-bar button:focus-visible, .rv-chip:focus-visible { outline: 2px solid #adff2f; outline-offset: 2px; }
@container cmp3main (max-width: 1100px) { .rv-bar button span { font-size: 13px; } .rv-bar button svg { display: none; } }

/* Sub-buttons (charts and tables) */
.rv-sub { position: relative; width: calc(100% - 2rem); margin: 10px 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-sub-gap { flex: 1 1 auto; }
.rv-chip {
  font-family: inherit; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.14); color: #ffffff; border: 2px solid rgba(255,255,255,0.45);
}
.rv-chip.rv-on { background: #ffffff; color: #1f3d23; border-color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
/* Subscriber-only charts shown to free users (20.10.26) */
.rv-chip-locked { gap: 7px; color: rgba(255,255,255,0.82); border-style: dashed; }
.rv-chip-locked svg { flex: 0 0 auto; opacity: 0.9; }
.rv-chip-locked:hover { background: rgba(255,255,255,0.22); color: #ffffff; }

/* Column chooser (mock-up layout, 19.10.26) */
.rv-cols {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 380px; max-width: calc(100vw - 40px); max-height: 600px; overflow: auto; box-sizing: border-box;
  background: #ffffff; color: #24261f; border: 1px solid #c9ccbf; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; text-align: left;
}
.rv-cols-head { display: flex; justify-content: space-between; align-items: center; }
.rv-cols-head strong { font-size: 16px; }
.rv-cols-close { width: 40px; height: 40px; border-radius: 8px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #3a3d33; }
.rv-cols-presets { display: flex; gap: 8px; }
.rv-cols-presets button { font-family: inherit; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; background: #ffffff; color: #2E6B33; border: 1px solid #2E6B33; }
.rv-cols-presets button.rv-on { background: #2E6B33; color: #ffffff; }
.rv-cols-empty { display: flex; align-items: center; gap: 10px; background: #f1f3ec; border-radius: 8px; padding: 10px 12px; cursor: pointer; margin: 0; }
.rv-cols input[type=checkbox] { width: 18px; height: 18px; accent-color: #2E6B33; flex: none; margin: 0; }
.rv-cols-group { display: flex; flex-direction: column; }
.rv-cols-gname { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #3f5a43; padding-bottom: 2px; }
.rv-cols-row { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; margin: 0; }
.rv-cols-row em { margin-left: auto; font-size: 11px; color: #6b6e62; font-style: normal; white-space: nowrap; }
.rv-dim { color: #7c7f73; }

/* Today's / future money and annual / monthly pills */
.rv-toggles { gap: 8px; }
.rv-pill { display: inline-flex; background: rgba(0,0,0,0.28); border-radius: 999px; padding: 3px; }
.rv-pill button { font-family: inherit; border: none; background: transparent; color: #ffffff; font-size: 13px; font-weight: 600; min-height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.rv-pill button.rv-on { background: #ffffff; color: #24261f; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.rv-pill button:focus-visible { outline: 2px solid #adff2f; outline-offset: 2px; }

/* Table card */
.rv-tcard { width: calc(100% - 2rem); margin: 12px 1rem 1rem; box-sizing: border-box; background: #f7f6f1; color: #24261f; border-radius: 14px; padding: 22px 24px 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.rv-thead { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-thead-sub { margin: 4px 0 0; font-size: 13px; color: #55584c; }
.rv-thead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-colbtn { font-family: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; background: #ffffff; color: #24261f; border: 1px solid #b9bcae; }
.rv-colbtn.rv-on { background: #24261f; color: #ffffff; border-color: #24261f; }
#rvTables .rv-pdfbtn { font-family: inherit; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; border: none; background: #2E6B33; color: #ffffff; font-size: 13px; font-weight: 600; margin: 0 !important; white-space: nowrap; }
#rvTables .rv-pdfbtn:hover { background: #255a2a; }

/* Table, inside the card only */
#rvTables .rv-tcard .table-responsive { margin: 0; border: 1px solid #d6d8cc; border-radius: 10px; box-shadow: none; background: #ffffff; max-height: none; overflow: visible; }
#rvTables .rv-tcard .table-responsive.rv-wide { overflow: auto; max-height: calc(100vh - 140px); }
#rvTables .rv-tcard .table-responsive:not(.rv-wide) table { border-radius: 10px; }
#rvTables .rv-tcard table { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
#rvTables .rv-tcard table thead { background: #e3e8dc; color: #3a3d33; border: none; }
#rvTables .rv-tcard table thead th { position: sticky; top: var(--rv-sticky-top, 0px); z-index: 2; background: #e3e8dc; color: #3a3d33; border: none; box-shadow: none; padding: 10px 10px; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: right; vertical-align: top; min-width: 84px; }
#rvTables .rv-tcard table thead th br { display: none; }
#rvTables .rv-tcard table thead th .info-icon { width: 15px; height: 15px; line-height: 15px; font-size: 10px; margin-left: 5px; background: #c9d2c0; color: #3a3d33; vertical-align: 1px; }
#rvTables .rv-tcard table th:first-child, #rvTables .rv-tcard table td:first-child { text-align: left; min-width: 64px; }
#rvTables .rv-tcard .rv-wide table td:first-child, #rvTables .rv-tcard .rv-wide table th:first-child { position: sticky; left: 0; z-index: 1; }
#rvTables .rv-tcard .rv-wide table thead th:first-child { z-index: 3; }
#rvTables .rv-tcard .rv-wide table thead th { top: 0; }
#rvTables .rv-tcard table thead th:first-child { z-index: 3; }
#rvTables .rv-tcard table td { border: none; border-top: 1px solid #ecece4; padding: 8px 10px; font-size: 14px; text-align: right; color: #24261f; background: inherit; }
#rvTables .rv-tcard table td:first-child { font-weight: 600; }
#rvTables .rv-tcard table tbody tr:nth-child(odd) { background: #ffffff; }
#rvTables .rv-tcard table tbody tr:nth-child(even) { background: #fafaf6; }
#rvTables .rv-tcard table tbody tr:hover { background: #f1f3ec; }

/* Panes that hold the existing charts and tables */
.rv-pane { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* New views */
.rv-host { width: calc(100% - 2rem); margin: 12px 1rem 1rem; }
.rv-view {
  background: #f7f6f1; color: #24261f; border-radius: 14px; padding: 24px 28px 28px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
.rv-h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #24261f; text-shadow: none; }
.rv-h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: #24261f; }
.rv-muted { color: #55584c; }
.rv-small { font-size: 12.5px; }
.rv-view p { margin: 0 0 10px; }

/* Timeline */
/* Projection timeline (mock-up layout, 19.10.26) */
.rv-tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.rv-tl-head .rv-h2 { margin: 0; }
.rv-tl-sep { margin: 28px 0 22px; border: none; border-top: 1px solid #dcdfd4; }
.rv-tl-foot { margin: 18px 0 0; }
/* Age track: labels sit in as many rows above / below the line as they need (positions set in the script) */
.rv-tlx { position: relative; margin: 14px 26px 10px; }
.rv-tlx-line { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #416046; }
.rv-tlx-line.rv-tlx-past { right: auto; width: var(--rv-tlx-ret, 0%); background: #b1c0a4; }
.rv-tlx-dot { position: absolute; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #f7f6f1; border: 3px solid #416046; box-sizing: border-box; z-index: 1; }
.rv-tlx-lead { position: absolute; width: 1px; margin-left: -0.5px; background: #8c9083; }
.rv-tlx-lab { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; line-height: 1.25;
  background: #f7f6f1; padding: 0 4px; border-radius: 4px; z-index: 2; }
.rv-tlx-lab strong { font-size: 13.5px; color: #24261f; }
.rv-tlx-lab small { font-size: 11.5px; color: #4b4e44; }
.rv-tlx-first { transform: translateX(-25%); }
.rv-tlx-last { transform: translateX(-75%); }
/* Milestone rows */
.rv-tl { list-style: none; margin: 14px 0 0; padding: 0; }
.rv-tl-item { display: grid; grid-template-columns: 80px 22px minmax(0, 1fr); gap: 0 12px; align-items: start; padding-bottom: 10px; }
.rv-tl-when { display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; line-height: 1.25; }
.rv-tl-when strong { font-size: 16px; color: #24261f; }
.rv-tl-when span { font-size: 12px; color: #55584d; white-space: nowrap; }
.rv-tl-dot { width: 14px; height: 14px; border-radius: 50%; margin: 17px 0 0 4px; background: var(--tl-dot); }
.rv-tl-card { background: var(--tl-bg); border-radius: 8px; padding: 12px 18px; }
.rv-tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.rv-tl-card h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: #24261f; }
.rv-tl-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-tag); white-space: nowrap; }
.rv-tl-card p { margin: 0; color: #33352d; font-size: 14px; }
.rv-tl-work  { --tl-dot: #b0c0a3; --tl-bg: #e5e9df; --tl-tag: #4c5743; }
.rv-tl-ret   { --tl-dot: #29602d; --tl-bg: #dae1d2; --tl-tag: #29602d; }
.rv-tl-gi    { --tl-dot: #295484; --tl-bg: #dde7f1; --tl-tag: #295484; }
.rv-tl-funds { --tl-dot: #c27f1a; --tl-bg: #f2e7cc; --tl-tag: #8a5a10; }
.rv-tl-tax   { --tl-dot: #98412c; --tl-bg: #f1ded7; --tl-tag: #98412c; }
.rv-tl-end   { --tl-dot: #416046; --tl-bg: #e5e9df; --tl-tag: #416046; }
@media (max-width: 700px) {
  .rv-tl-item { grid-template-columns: 58px 16px minmax(0, 1fr); gap: 0 8px; }
  .rv-tlx { margin: 10px 14px 6px; }
}

/* Year One */
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.rv-card { background: #e4ebe0; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rv-card-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #3f5a43; }
.rv-card-value { font-size: 22px; font-weight: 600; color: #1f3d23; }
.rv-card-sub { font-size: 12px; color: #55584c; }
.rv-card-tax .rv-card-value { color: #b5532f; }
.rv-card-net { background: #2E6B33; }
.rv-card-net .rv-card-label, .rv-card-net .rv-card-value, .rv-card-net .rv-card-sub { color: #ffffff; }
.rv-moves { background: #fbf0d2; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.rv-tip { background: #eef1f6; border-left: 4px solid #5b7fb0; border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }

/* Modelled Totals */
.rv-dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 10px; }
.rv-dial { background: #ffffff; border: 1px solid #dcdcd2; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.rv-dial-fig { flex: 0 0 auto; }
.rv-dial-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.rv-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #eee; margin: 4px 0; }
.rv-stack span { display: block; height: 100%; }
.rv-legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rv-legend li { display: flex; align-items: center; gap: 6px; }
.rv-legend li span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.rv-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.rv-table { width: 100%; max-width: 640px; border-collapse: collapse; background: #ffffff; border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.rv-table th, .rv-table td { padding: 7px 12px; text-align: right; border-top: 1px solid #ecece4; }
.rv-table th:first-child, .rv-table td:first-child { text-align: left; }
.rv-table thead th { background: #e9ece2; border-top: none; font-size: 13px; }
.rv-table .rv-total td { font-weight: 700; border-top: 2px solid #d6d8cc; }

/* Assumptions */
.rv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.rv-tile { background: #ffffff; border: 1px solid #dcdcd2; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rv-tile-value { font-size: 26px; font-weight: 600; }
.rv-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #2E6B33; background: #e4ebe0; border-radius: 999px; padding: 2px 8px; }
.rv-real { background: #e4ebe0; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.rv-cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rv-lv { background: #ffffff; border: 1px solid #dcdcd2; border-radius: 10px; padding: 10px 14px; }
.rv-lv > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #f0f0ea; padding-top: 4px; margin-top: 4px; }
.rv-bullets { margin: 6px 0 10px; padding-left: 20px; }
.rv-bullets li { margin-bottom: 6px; }

/* Overrides for site-wide rules (section padding, blue sticky table headers) */
#resultsViewHost .rv-view { padding: 24px 28px 28px !important; }
@media (max-width: 900px) { #resultsViewHost .rv-view { padding: 18px 16px 20px !important; } }
#resultsViewHost .rv-table thead { background: #e9ece2; color: #24261f; border: none; font-size: 13px; }
#resultsViewHost .rv-table thead th { position: static; background: #e9ece2; color: #24261f; border: none; box-shadow: none; padding: 8px 12px; font-size: 13px; font-weight: 700; }
#resultsViewHost .rv-table th, #resultsViewHost .rv-table td { border: none; border-top: 1px solid #ecece4; padding: 7px 12px; font-size: 13.5px; text-align: right; }
#resultsViewHost .rv-table th:first-child, #resultsViewHost .rv-table td:first-child { text-align: left; }
#resultsViewHost .rv-table tbody tr, #resultsViewHost .rv-table tbody tr:hover { background: #ffffff; }
#resultsViewHost .rv-table .rv-total td { font-weight: 700; border-top: 2px solid #d6d8cc; }

/* Assumptions view — mock-up layout (19.10.26) */
#resultsViewHost .rv-a-intro { font-size: 13px; max-width: 700px; margin-bottom: 22px; }
.rv-a-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 1000px) { .rv-a-tiles, .rv-a-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-a-tile { background: #dfe5d8; color: #24261f; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rv-a-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-a-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.rv-a-tile .rv-a-kicker { color: #3f5a43; }
.rv-a-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3f5a43; background: rgba(255,255,255,0.7); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.rv-a-big { font-size: 30px; font-weight: 600; line-height: 1.15; color: #24261f; }
.rv-a-sub { font-size: 12px; color: #55584c; }
.rv-a-real { background: #ffffff; border: 1px solid #d6d8cc; border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rv-a-real-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #3a3d33; }
.rv-a-real-head > strong { font-size: 16px; color: #24261f; }
.rv-a-real-fig { font-size: 26px; color: #2E6B33; }
.rv-a-bar { display: flex; height: 40px; border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 600; }
.rv-a-seg { display: flex; align-items: center; box-sizing: border-box; white-space: nowrap; overflow: hidden; }
.rv-a-seg-real { background: #2E6B33; color: #ffffff; padding-left: 14px; }
.rv-a-seg-inf { background: #d8dccf; color: #33352d; padding-left: 12px; }
.rv-a-seg-ch { background: #a24a32; color: #ffffff; justify-content: center; }
.rv-a-bar-foot { display: flex; justify-content: space-between; font-size: 12px; color: #55584c; }
.rv-a-bar-key { display: flex; gap: 16px; }
.rv-a-bar-key > span { display: inline-flex; align-items: center; gap: 6px; }
.rv-a-formula { margin: 0 !important; font-size: 14px; color: #3a3d33; font-variant-numeric: tabular-nums; }
.rv-a-h3s { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: #24261f; }
.rv-a-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.rv-a-choice { background: #dfe5d8; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rv-a-choice .rv-a-kicker { color: #3f5a43; }
.rv-a-choice-v { font-size: 15px; font-weight: 600; }
.rv-a-choice-sub { font-size: 12px; color: #4a4d42; }
#resultsViewHost .rv-a-sec { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #dcdcd2; padding: 24px 0 0 !important; margin-bottom: 28px; }
#resultsViewHost .rv-a-sec:last-child { margin-bottom: 0; }
.rv-a-h3 { margin: 0; font-size: 20px; font-weight: 700; color: #24261f; }
#resultsViewHost .rv-a-p { margin: 0; font-size: 14px; line-height: 1.5; color: #3a3d33; }
.rv-a-panel { margin: 0; padding: 16px 20px 16px 36px; background: #e8ece3; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #2b2d26; display: flex; flex-direction: column; gap: 8px; }
.rv-a-taxgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .rv-a-taxgrid { grid-template-columns: 1fr; } }
.rv-a-bands { border: 1px solid #d6d8cc; border-radius: 10px; background: #ffffff; overflow: hidden; font-size: 14px; }
.rv-a-brow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr); border-top: 1px solid #ecece4; }
.rv-a-brow > div { padding: 8px 12px; }
.rv-a-brow > div + div { text-align: right; }
.rv-a-bhead { background: #e3e8dc; border-top: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.rv-a-bhead > div { padding: 9px 12px; }
.rv-a-notmod { background: #f6ecc9; border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.rv-a-notmod .rv-a-kicker { color: #7a5a12; }
#resultsViewHost .rv-a-notmod p { margin: 0; font-size: 14px; line-height: 1.5; color: #3a3d33; }

/* Year One view — mock-up layout (19.10.26) */
#resultsViewHost .rv-y-intro { font-size: 13px; max-width: 760px; margin-bottom: 20px; }
.rv-y-card { background: #ffffff; border: 1px solid #d6d8cc; border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.rv-y-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rv-y-headl { display: flex; flex-direction: column; gap: 2px; }
.rv-y-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #3f5a43; }
.rv-y-net { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-y-net strong { font-size: 36px; font-weight: 600; color: #24261f; }
.rv-y-net span { font-size: 14px; color: #55584c; }
.rv-y-headr { display: flex; gap: 28px; }
.rv-y-headr > div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rv-y-headr strong { font-size: 22px; font-weight: 600; color: #24261f; }
.rv-y-headr strong.rv-y-tax { color: #a24a32; }
.rv-y-headr strong.rv-y-notax { color: #2E6B33; }
.rv-y-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 600; }
.rv-y-bar > div { display: flex; align-items: center; box-sizing: border-box; white-space: nowrap; overflow: hidden; }
.rv-y-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: #3a3d33; }
.rv-y-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rv-y-moves { padding: 18px 22px; gap: 12px; }
.rv-y-moves-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #3a3d33; }
.rv-y-moves-head > strong { font-size: 16px; color: #24261f; }
.rv-y-moves-head span strong { font-size: 20px; color: #24261f; }
.rv-y-moves-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .rv-y-moves-grid { grid-template-columns: 1fr; } }
.rv-y-move { display: flex; align-items: center; gap: 12px; background: #f1f3ec; border-radius: 10px; padding: 12px 14px; }
.rv-y-move > strong { margin-left: auto; font-size: 18px; color: #24261f; }
.rv-y-pill { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rv-y-pill-pen { background: #2f5f8f; color: #ffffff; }
.rv-y-pill-isa { background: #c98a1c; color: #2b1d04; }
.rv-y-pill-gia { background: #ead08a; color: #3a2c07; }
#resultsViewHost .rv-y-note { margin: 0; font-size: 13px; color: #55584c; line-height: 1.45; }
.rv-y-sec { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #dcdcd2; padding-top: 20px; margin-bottom: 14px; }
.rv-y-tiles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.rv-y-trow { display: grid; gap: 12px; }
@media (max-width: 800px) { .rv-y-trow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.rv-y-tile { background: #dfe5d8; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rv-y-tval { font-size: 30px; font-weight: 600; color: #24261f; }
.rv-y-tsub { font-size: 12px; color: #55584c; }
.rv-y-tile-tax .rv-y-tval { color: #a24a32; }
.rv-y-tile-notax .rv-y-tval { color: #2E6B33; }
.rv-y-tile-net { background: #4a6b4f; }
.rv-y-tile-net .rv-y-kicker, .rv-y-tile-net .rv-y-tsub { color: #e3ecdd; }
.rv-y-tile-net .rv-y-tval { color: #ffffff; }
.rv-y-tip { margin-bottom: 16px; }
#resultsViewHost .rv-y-prem { margin-bottom: 10px; }

/* The engine's "Now" row (money moved before the projection starts), styled as in the mock-up */
#rvTables .rv-tcard table tbody tr.cashflow-now-row, #rvTables .rv-tcard table tbody tr.cashflow-now-row:hover { background: #fbf0d2; }
#rvTables .rv-tcard table tbody tr.cashflow-now-row td { border-bottom: 2px solid #d9c27a; }
#rvTables .rv-tcard table tbody tr.cashflow-now-row td:first-child { color: #7a5a12; }

/* View pills and money / frequency pills share one row, the latter at the right-hand end */
.rv-subrow { width: calc(100% - 2rem); margin: 10px 1rem 0; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.rv-subrow > .rv-sub { width: auto; margin: 0; flex: 1 1 auto; }
.rv-subrow > .rv-toggles { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
.rv-subrow > .rv-sub[hidden] { display: none !important; }

/* Chart card (mock-up layout, 19.10.26) */
.rv-ccard { width: calc(100% - 2rem); margin: 12px 1rem 1rem; box-sizing: border-box; background: #f7f6f1; color: #24261f; border-radius: 14px; padding: 22px 24px 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.rv-ccard .rv-thead { margin-bottom: 6px; align-items: flex-start; }
.rv-cbody { width: 100%; }
#rvCharts .rv-cbody > [id$="ChartContainer"] { width: 100% !important; height: 360px !important; margin: 0 !important; position: relative; }
#rvCharts .rv-cbody > [id$="ChartContainer"].hidden { display: none !important; }
#rvCharts .rv-cbody canvas { min-height: 0 !important; }
#rvCharts .rv-thead-actions .chart-info-trigger { margin: 0 !important; }
#rvCharts .rv-thead-actions .chart-info-trigger.hidden { display: none !important; }
#rvCharts .rv-thead-actions .chart-info-trigger button, #rvCharts .rv-thead-actions .chart-info-trigger > * { font-family: inherit; }
#rvCharts .rv-thead-actions .chart-info-button { background: #ffffff; color: #24261f; border: 1px solid #b9bcae; border-radius: 8px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; box-shadow: none; }
#rvCharts .rv-thead-actions .chart-info-button:hover { background: #f1f3ec; }
#rvCharts .rv-thead-actions .chart-info-trigger { position: relative; }
#rvCharts .rv-thead-actions .chart-info-popup { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; transform: none; }

/* Money and Annual / Monthly pills inside the chart card, left of "Click for Info" (19.10.26) */
.rv-ccard .rv-thead-actions { align-items: center; gap: 10px; }
.rv-chart-toggles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-chart-toggles:empty { display: none; }
.rv-ccard .rv-pill { background: #e3e4dc; }
.rv-ccard .rv-pill button { color: #2E6B33; min-height: 32px; }
.rv-ccard .rv-pill button.rv-on { background: #2E6B33; color: #ffffff; }
/* The chart's info button follows the pills */
#rvCharts .rv-thead-actions .chart-info-trigger { order: 2; }
.rv-chart-toggles { order: 1; }

/* The page's own Select View row is replaced by the You / Combined / Partner pill (20.10.26) */
body.cmp3-tabs #planAsCoupleView { display: none !important; }
body.cmp3-tabs .row:has(> .col-12 > #planAsCoupleView) { display: none !important; }
.rv-pill-who { margin-right: 4px; }

/* Timeline: You / Partner pill at the top left of the card, before the title (20.10.26) */
.rv-tl-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-tl-who { background: #e3e4dc; }
.rv-tl-who button { color: #2E6B33; }
.rv-tl-who button.rv-on { background: #2E6B33; color: #ffffff; }
/* A little space under the timeline title (20.10.26) */
.rv-tl-head { margin-bottom: 18px; }
/* Partner selected: blue, as the You / Partner switch on the input tabs (20.10.26) */
.rv-tl-who.rv-tl-partner { background: #dde7f1; }
.rv-tl-who.rv-tl-partner button { color: #295484; }
.rv-tl-who.rv-tl-partner button.rv-on { background: #295484; color: #ffffff; }
