/* =====================================================================
 * Cash Flow page (#page-cashflow). Loaded by app.html after styles.css.
 * Reuses the Income page's hero classes (.ah-top-grid, .ah-status-module,
 * .ah-recent-card) for the glow boxes; everything new is cf- prefixed so it
 * cannot collide with the rest of the app. Colors come from styles.css
 * :root tokens. Coral marks the best month; amber is a month or total
 * that lost money; expense bars are neutral (see CLAUDE.md, Brand).
 * ===================================================================== */

:is(#page-cashflow, #page-wealth) {
    /* Fine print on this page is brighter than the app's --text-muted
       (#71717a, ~3.9:1 on navy, below WCAG AA for small text). */
    --cf-fine: #8f97a4;
    --cf-neutral: #5b6676;
    --cf-neutral-hi: #8792a2;
}
/* Components below set display, which beats the hidden attribute. */
:is(#page-cashflow, #page-wealth) [hidden], #cfMortgageSection [hidden], .cf-tip[hidden] { display: none !important; }
:is(#page-cashflow, #page-wealth) .cf-sub { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; }
:is(#page-cashflow, #page-wealth) .page-header { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
:is(#page-cashflow, #page-wealth) .header-actions { align-items: center; flex-wrap: wrap; }
.cf-select { appearance: none; -webkit-appearance: none; background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f97a4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--border-color); color: var(--text-primary); font: 600 13px 'Inter', sans-serif; padding: 9px 32px 9px 12px; border-radius: 9px; cursor: pointer; max-width: 240px; }
.cf-seg { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 9px; padding: 3px; }
.cf-seg button { border: 0; background: transparent; color: var(--cf-fine, #8f97a4); font: 600 13px 'Inter', sans-serif; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.cf-seg button[aria-pressed="true"] { background: rgba(24, 213, 215, .16); color: var(--teal-bright); }
.cf-seg.sm button { font-size: 11.5px; padding: 4px 9px; }
.cf-link { background: none; border: 0; padding: 0; color: var(--teal-bright); font: 600 12.5px 'Inter', sans-serif; cursor: pointer; }
.cf-link:hover { text-decoration: underline; }
:is(#page-cashflow, #page-wealth) :focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; border-radius: 6px; }

/* ---------- hero (left glow box) ---------- */
:is(#page-cashflow, #page-wealth) .ah-top-grid { grid-template-columns: 1fr 1.15fr; }
.cf-hero { display: flex !important; flex-direction: column; gap: 6px; align-items: stretch; text-align: left; }
.cf-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.cf-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--text-secondary); margin: 0; }
.cf-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cf-pill.teal { background: rgba(24, 213, 215, .15); color: var(--teal-bright); }
.cf-pill.grey { background: rgba(113, 113, 122, .2); color: var(--text-secondary); }
.cf-big-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.cf-big { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cf-big.pos { color: var(--teal-bright); }
.cf-big.neg { color: var(--amber); }
.cf-excl { font: 600 12px 'Inter', sans-serif; color: var(--text-primary); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 5px 11px; cursor: pointer; }
.cf-excl:hover { border-color: var(--teal-primary); }
.cf-cap { font-size: 12.5px; color: var(--cf-fine); }
.cf-rev { display: flex; flex-direction: column; margin-top: 10px; }
.cf-rev-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.cf-rev-item .lbl { color: var(--text-secondary); }
.cf-rev-item .lbl small { display: block; font-size: 11.5px; color: var(--cf-fine); }
.cf-rev-item .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-rev-item.sum { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3px; padding-top: 7px; }
.cf-rev-item.sum .lbl { color: var(--text-primary); font-weight: 600; }
.cf-rev-item .amt.pos { color: var(--teal-bright); }
.cf-rev-item .amt.neg { color: var(--amber); }
.cf-dot { width: 9px; height: 9px; border-radius: 50%; }
.cf-dot.in { background: var(--teal-primary); }
.cf-dot.out { background: var(--cf-neutral-hi); }
.cf-dot.cap { border: 2px solid var(--cf-neutral-hi); }
.cf-dot.eq { border: 2px solid var(--teal-bright); }
.cf-note { font-size: 12px; color: var(--cf-fine); line-height: 1.45; margin: 4px 0 0; }
.cf-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: auto; }
.cf-mini-ring { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
.cf-mini-ring svg { width: 100%; height: 100%; }
.cf-mini-ring circle.fill { transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1); }
.cf-mini-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--teal-bright); }
.cf-foot .txt { font-size: 12.5px; color: var(--text-secondary); }
.cf-foot .txt b { color: var(--text-primary); }
.cf-foot .cf-link { margin-left: auto; }

/* ---------- monthly chart (right glow box) ---------- */
.cf-chart-card { gap: 12px; }
.cf-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-card-head h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14.5px; margin: 0; }
.cf-card-head .cf-seg { margin-left: auto; }
.cf-month-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cf-month-hero .v { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cf-month-hero .l { font-size: 12.5px; color: var(--cf-fine); }
.cf-month-hero .d { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cf-chart { position: relative; display: flex; gap: 5px; height: 190px; border-top: 1px solid rgba(24, 213, 215, .15); padding-top: 10px; }
.cf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-radius: 6px; }
.cf-col:hover .cf-track { background: rgba(255, 255, 255, .035); }
.cf-col.sel .cf-track { background: rgba(24, 213, 215, .07); }
.cf-track { position: relative; flex: 1; width: 100%; border-radius: 5px; transition: background .15s; }
.cf-zero { position: absolute; left: -2px; right: -2px; height: 1px; background: rgba(255, 255, 255, .22); }
.cf-bar { position: absolute; left: 14%; right: 14%; transition: top .45s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1), background .2s; }
.cf-bar.pos { background: var(--teal-primary); border-radius: 3px 3px 0 0; }
.cf-bar.neg { background: var(--amber); border-radius: 0 0 3px 3px; }
.cf-bar.partial.pos { background: repeating-linear-gradient(-45deg, var(--teal-bright) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--teal-bright); }
.cf-bar.partial.neg { background: repeating-linear-gradient(-45deg, var(--amber) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--amber); }
.cf-bar.in { left: 10%; right: 52%; background: var(--teal-primary); border-radius: 3px 3px 0 0; }
.cf-bar.out { left: 52%; right: 10%; background: var(--cf-neutral); border-radius: 3px 3px 0 0; }
.cf-bar.eq { background: repeating-linear-gradient(-45deg, rgba(76, 229, 231, .6) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(76, 229, 231, .75); border-radius: 3px 3px 0 0; }
.cf-col.sel .cf-bar.pos:not(.partial) { background: var(--teal-bright); }
.cf-col.peak .cf-bar.pos:not(.partial) { background: var(--coral); }
.cf-col.peak .cf-val, .cf-col.peak .cf-lbl { color: var(--coral) !important; font-weight: 700; }
.cf-ghost { position: absolute; left: 6%; right: 6%; height: 0; border-top: 2px dashed rgba(250, 250, 250, .85); filter: drop-shadow(0 0 2px rgba(7, 19, 31, .9)); z-index: 2; transition: top .45s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.cf-floor { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(245, 158, 11, .7); pointer-events: none; transition: top .45s; }
.cf-floor span { position: absolute; right: 0; top: -15px; font-size: 9.5px; color: var(--amber); font-weight: 600; background: rgba(7, 19, 31, .85); padding: 0 4px; border-radius: 3px; }
.cf-val { position: absolute; left: -6px; right: -6px; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--cf-fine); white-space: nowrap; transition: top .45s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.cf-val.neg { color: var(--amber); }
.cf-col.sel .cf-val:not(.neg) { color: var(--teal-bright); }
.cf-lbl { font-size: 10.5px; color: var(--cf-fine); font-weight: 600; }
.cf-col.sel .cf-lbl { color: var(--teal-bright); }
.cf-col.future { cursor: default; opacity: .45; }
.cf-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 11px; color: var(--cf-fine); }
.cf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cf-lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cf-lg.peak { background: var(--coral); }
.cf-lg.pos, .cf-lg.in { background: var(--teal-primary); }
.cf-lg.neg { background: var(--amber); }
.cf-lg.out { background: var(--cf-neutral); }
.cf-lg.partial { background: repeating-linear-gradient(-45deg, var(--teal-bright) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--teal-bright); }
.cf-lg.eq { background: repeating-linear-gradient(-45deg, rgba(76, 229, 231, .7) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--teal-bright); }
.cf-lg.ghost { height: 0; border-top: 2px dashed rgba(250, 250, 250, .85); border-radius: 0; }
.cf-lg.floor { height: 0; border-top: 1px dashed var(--amber); border-radius: 0; }
.cf-toggles { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px 'Inter', sans-serif; color: var(--text-secondary); background: transparent; border: 1px solid var(--border-color); border-radius: 20px; padding: 4px 10px; cursor: pointer; }
.cf-chip[aria-pressed="true"] { color: var(--text-primary); border-color: rgba(250, 250, 250, .35); }
.cf-chip .box { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; }
.cf-chip[aria-pressed="true"] .box::after { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.cf-tip { position: fixed; z-index: 9999; pointer-events: none; min-width: 200px; padding: 10px 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 9px; box-shadow: 0 10px 28px rgba(0, 0, 0, .38); font-size: 12px; }
.cf-tip .m { font-weight: 700; margin-bottom: 6px; font-size: 12.5px; }
.cf-tip .r { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 2px 0; }
.cf-tip .r span:first-child { color: var(--text-secondary); }
.cf-tip .r span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.cf-tip .t { border-top: 1px solid var(--border-color); margin-top: 5px; padding-top: 6px; }
.cf-tip .note { color: #8f97a4; font-size: 11px; margin-top: 6px; }

/* ---------- month in review ---------- */
.cf-review { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px 18px; }
.cf-review .bulb { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 107, 107, .12); color: var(--coral); }
.cf-review .k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cf-fine); }
.cf-review p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; }

/* ---------- sections ---------- */
.cf-section { margin-top: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 22px; }
.cf-section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cf-section-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; margin: 0; }
.cf-section-head .sub { font-size: 12.5px; color: var(--cf-fine); }

/* waterfall */
.cf-wf { display: flex; flex-direction: column; gap: 4px; }
.cf-wf-row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr minmax(92px, auto); gap: 14px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
.cf-wf-row:hover { background: rgba(255, 255, 255, .04); }
.cf-wf-row .wl { font-size: 13px; color: var(--text-secondary); display: flex; flex-direction: column; }
.cf-wf-row .wl small { font-size: 11px; color: var(--cf-fine); }
.cf-wf-row.total .wl { color: var(--text-primary); font-weight: 600; }
.cf-wf-track { position: relative; height: 22px; }
.cf-wf-zero { position: absolute; top: -4px; bottom: -4px; width: 1px; background: rgba(255, 255, 255, .2); }
.cf-wf-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; transition: left .45s cubic-bezier(.4, 0, .2, 1), width .45s cubic-bezier(.4, 0, .2, 1); }
.cf-wf-bar.in { background: var(--teal-primary); }
.cf-wf-bar.out { background: var(--cf-neutral); }
.cf-wf-bar.cap { box-shadow: inset 0 0 0 1.5px var(--cf-neutral-hi); background-image: repeating-linear-gradient(-45deg, rgba(135, 146, 162, .35) 0 3px, transparent 3px 7px); }
.cf-wf-bar.eqo { box-shadow: inset 0 0 0 1.5px var(--teal-bright); background-image: repeating-linear-gradient(-45deg, rgba(76, 229, 231, .35) 0 3px, transparent 3px 7px); }
.cf-wf-bar.eqt { background: repeating-linear-gradient(-45deg, var(--teal-bright) 0 4px, var(--teal-dark) 4px 8px); box-shadow: 0 0 18px rgba(24, 213, 215, .25); }
.cf-wf-bar.pos { background: linear-gradient(90deg, var(--teal-dark), var(--teal-bright)); box-shadow: 0 0 18px rgba(24, 213, 215, .25); }
.cf-wf-bar.neg { background: var(--amber); }
.cf-wf-conn { position: absolute; top: calc(100% - 3px); height: 22px; border-left: 1px dashed rgba(250, 250, 250, .35); transition: left .45s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.cf-wf-row .wa { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.cf-wf-row .wa small { display: block; font-size: 11px; color: var(--cf-fine); font-weight: 500; }
.cf-equity { margin-top: 12px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-secondary); padding: 10px 12px; border-radius: 10px; background: rgba(24, 213, 215, .06); border: 1px solid rgba(24, 213, 215, .14); }
.cf-equity b { color: var(--text-primary); }

/* selections + breakdown */
.cf-selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); margin-bottom: 6px; }
.cf-selbar .k { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cf-fine); margin-right: 4px; }
.cf-src { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 20px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); font: 600 12.5px 'Inter', sans-serif; cursor: pointer; }
.cf-src .tick { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; display: grid; place-items: center; }
.cf-src[aria-pressed="true"] { color: var(--teal-bright); border-color: rgba(24, 213, 215, .4); background: rgba(24, 213, 215, .08); }
.cf-src[aria-pressed="true"] .tick::after { content: ""; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.cf-src:disabled { opacity: .45; cursor: not-allowed; }
/* Included, but nothing recorded: ticked, quiet, and labelled. */
.cf-src.nodata { opacity: .7; color: var(--text-secondary); border-color: var(--border-color); border-style: dashed; background: transparent; }
.cf-src .none { font-weight: 500; font-size: 11px; color: var(--cf-fine); }
.cf-selbar .spacer { flex: 1; }
.cf-excl-chip { font-size: 12px; color: var(--text-secondary); display: inline-flex; gap: 10px; align-items: center; }
.cf-excl-chip .n { font-weight: 700; color: var(--text-primary); }
.cf-grp { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cf-grp:last-child { border-bottom: 0; }
.cf-grp-head { width: 100%; display: grid; grid-template-columns: 18px 1fr auto auto; gap: 10px; align-items: center; padding: 13px 4px; background: transparent; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.cf-grp-head .chev, .cf-sub-head .chev { transition: transform .2s; color: var(--cf-fine); }
.cf-grp.open > .cf-grp-head .chev, .cf-subgrp.open > .cf-sub-head .chev { transform: rotate(90deg); }
.cf-grp-head .gt { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-grp-head .gs { font-size: 12px; color: var(--cf-fine); font-weight: 400; }
.cf-grp-head .ga { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.cf-grp-head .gx { font-size: 11px; color: var(--cf-fine); min-width: 72px; text-align: right; }
.cf-grp-body { display: none; padding: 0 0 12px 28px; }
.cf-grp.open > .cf-grp-body { display: block; }
.cf-sub-head { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 8px 4px; background: transparent; border: 0; color: var(--text-secondary); cursor: pointer; font: 600 12.5px 'Inter', sans-serif; text-align: left; border-radius: 6px; }
.cf-sub-head:hover { background: rgba(255, 255, 255, .03); }
.cf-sub-head .n { color: var(--cf-fine); font-weight: 400; }
.cf-subgrp-body { display: none; padding-left: 18px; }
.cf-subgrp.open > .cf-subgrp-body { display: block; }
.cf-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 46px 28px; gap: 12px; align-items: center; padding: 7px 4px; border-top: 1px solid rgba(255, 255, 255, .045); font-size: 13px; }
.cf-row .d { color: var(--cf-fine); font-size: 12px; font-variant-numeric: tabular-nums; }
.cf-row .desc { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-row .desc .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-row .desc .meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--cf-fine); }
.cf-tag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--text-secondary); }
.cf-tag.sched { background: rgba(24, 213, 215, .10); color: var(--teal-bright); }
.cf-tag.warn { background: rgba(245, 158, 11, .12); color: var(--amber); }
.cf-row .a { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cf-row.off { opacity: .5; }
.cf-row.off .a, .cf-row.locked .a { text-decoration: line-through; }
.cf-row.locked .a { color: var(--cf-fine); }
.cf-switch { position: relative; width: 36px; height: 20px; border-radius: 20px; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; padding: 0; transition: background .18s; }
.cf-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fafafa; transition: transform .18s; }
.cf-switch[aria-checked="true"] { background: var(--teal-primary); }
.cf-switch[aria-checked="true"]::after { transform: translateX(16px); }
.cf-switch:disabled { opacity: .35; cursor: not-allowed; }
.cf-edit { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--cf-fine); background: transparent; border: 0; cursor: pointer; }
.cf-edit:hover { color: var(--teal-bright); background: rgba(24, 213, 215, .08); }
.cf-row-note { font-size: 12px; color: var(--cf-fine); padding: 8px 4px 2px; }
.cf-empty { padding: 28px 8px; text-align: center; color: var(--text-secondary); font-size: 14px; }

/* coverage */
.cf-coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.cf-cov { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.cf-cov b { color: var(--text-primary); font-weight: 600; display: block; margin-bottom: 2px; font-size: 13px; }
.cf-cov .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cf-cov .ic.ok { background: rgba(24, 213, 215, .14); color: var(--teal-bright); }
.cf-cov .ic.warn { background: rgba(245, 158, 11, .14); color: var(--amber); }

/* free-plan preview: sample data, not interactive */
.cf-gate { position: sticky; top: 12px; z-index: 40; margin-bottom: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(26, 33, 43, .96); border: 1px solid var(--border-ocean, rgba(24, 213, 215, .3)); box-shadow: 0 0 30px rgba(24, 213, 215, .18), 0 10px 28px rgba(0, 0, 0, .45); }
.cf-gate b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; display: block; }
.cf-gate span { font-size: 13px; color: var(--text-secondary); }
.cf-gate .lock { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(24, 213, 215, .15); color: var(--teal-bright); }
:is(#page-cashflow, #page-wealth).cf-preview .cf-body { pointer-events: none; user-select: none; filter: saturate(.85) brightness(.9); }

/* dashboard header: WealthBuilt, all time. A sibling of the entity pill,
   pushed to the far side of the header from the year toggle. */
.wb-dash { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 12px 7px 14px; border-radius: 10px; background: rgba(24, 213, 215, .06); border: 1px solid rgba(24, 213, 215, .30); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.wb-dash[hidden] { display: none; }
.wb-dash:hover { background: rgba(24, 213, 215, .11); border-color: rgba(24, 213, 215, .5); }
.wb-dash:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.wb-dash-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wb-dash-label { display: flex; align-items: center; font: 700 12px 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--text-secondary); white-space: nowrap; }
.wb-dash-scope { margin-left: 8px; padding: 1px 6px; border-radius: 999px; font: 700 9px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, .14); }
.wb-dash-value { font: 800 18px/1.15 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-dash-value.pos { color: var(--teal-bright); }
.wb-dash-value.neg { color: var(--amber); }
.wb-dash-go { flex-shrink: 0; color: var(--text-muted); }
/* When the title, entity pill and years leave no room, it drops to its own
   line, still on the right, instead of running off the page. */
#page-dashboard .page-header { flex-wrap: wrap; gap: 10px 16px; }
#page-dashboard .header-actions { margin-left: auto; }
@media (max-width: 768px) {
    #page-dashboard .header-actions { margin-left: 0; }
    .wb-dash { width: 100%; justify-content: space-between; }
}

/* dashboard tile */
.kpi-card.cf-tile { border-color: rgba(24, 213, 215, .35); }
.cf-spark { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-top: 8px; align-self: stretch; width: 100%; }
.cf-spark i { flex: 1; border-radius: 1.5px; background: var(--teal-primary); opacity: .55; }
.cf-spark i.n { background: var(--amber); }
.cf-spark i.cur { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { :is(#page-cashflow, #page-wealth) .ah-top-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    :is(#page-cashflow, #page-wealth) .page-header { margin-bottom: 14px; gap: 10px; }
    :is(#page-cashflow, #page-wealth) .page-header h1 { font-size: 22px; }
    :is(#page-cashflow, #page-wealth) .cf-sub { font-size: 13px; margin-top: 3px; }
    :is(#page-cashflow, #page-wealth) .header-actions { width: 100%; gap: 8px; flex-wrap: nowrap; }
    :is(#page-cashflow, #page-wealth) .cf-select { flex: 1; min-width: 0; max-width: none; }
    :is(#page-cashflow, #page-wealth) .cf-csv-t { display: none; }
    .cf-big { font-size: 40px; }
    .cf-foot .cf-link { margin-left: 0; }
    .cf-val { display: none; }
    .cf-chart { height: 170px; gap: 3px; }
    .cf-wf-row { grid-template-columns: 1fr auto; }
    .cf-wf-row .cf-wf-track { grid-column: 1 / -1; order: 3; }
    .cf-wf-conn { display: none; }
    .cf-row { grid-template-columns: minmax(0, 1fr) auto 46px 28px; }
    .cf-row .d { display: none; }
    .cf-switch { width: 44px; height: 26px; }
    .cf-switch::after { width: 20px; height: 20px; }
    .cf-switch[aria-checked="true"]::after { transform: translateX(18px); }
    .cf-grp-body { padding-left: 4px; }
    .cf-grp-head .gx { display: none; }
    .cf-review { grid-template-columns: auto 1fr; }
    .cf-review .btn { grid-column: 1 / -1; justify-self: start; }
    .cf-gate { grid-template-columns: auto 1fr; }
    .cf-gate .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { :is(#page-cashflow, #page-wealth) * { transition: none !important; } }

/* ---------- mortgage section of the property editor (#addPropertyModal) ---------- */
.cfm { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.cfm-head { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cfm-help { display: block; font-size: 12px; color: #8f97a4; line-height: 1.45; margin: 4px 0 0; }
.cfm-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cfm-modes label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.cfm-modes label:has(input:checked) { border-color: rgba(24, 213, 215, .5); background: rgba(24, 213, 215, .08); color: var(--teal-bright); }
.cfm-modes input { accent-color: var(--teal-primary); }
.cfm-pane { margin-top: 12px; }
.cfm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfm-input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-primary); font: inherit; }
.cfm-preview { margin: 8px 0 0; font-size: 12.5px; color: var(--teal-bright); }
.cfm-changes summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.cfm-change { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.cfm-add { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; align-items: flex-end; }
.cfm-mini { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; min-width: 0; font-size: 11.5px; font-weight: 600; color: #8f97a4; }
.cfm-mini.wide { flex: 1 1 100%; }
.cfm-add-btn { flex: 0 0 auto; }
.cfm-change-acts { display: inline-flex; gap: 12px; flex-shrink: 0; }
.cfm-add [hidden] { display: none !important; }
@media (max-width: 600px) { .cfm-grid { grid-template-columns: 1fr; } .cfm-mini { flex-basis: 100%; } }

/* ---------- headline split + running total line ---------- */
.cf-dot.none { background: transparent; }
.cf-msel { font-size: 13px; color: var(--text-secondary, #a1a1aa); margin-top: -4px; }
.cf-msel b { font-weight: 700; font-variant-numeric: tabular-nums; }
svg.cf-run { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 3; }
svg.cf-run .ln { fill: none; stroke: #fafafa; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 3px rgba(7, 19, 31, .9)); }
svg.cf-run .pt { fill: #07131F; stroke: #fafafa; stroke-width: 1.6; }
svg.cf-run .pt.end { fill: #fafafa; }
svg.cf-run .pt.back { fill: #07131F; stroke: #4CE5E7; stroke-width: 2.4; }
:is(#page-cashflow, #page-wealth) .cf-val { z-index: 4; text-shadow: 0 0 3px #07131F, 0 0 2px #07131F, 0 0 1px #07131F; }
svg.cf-run .lbl { font: 700 10.5px 'Inter', sans-serif; fill: #fafafa; paint-order: stroke; stroke: #07131F; stroke-width: 3px; stroke-linejoin: round; }
svg.cf-run .lbl.neg { fill: #F59E0B; }
svg.cf-run .lbl.back { fill: #4CE5E7; font-weight: 600; font-size: 9.5px; }
.cf-lg.run { height: 0; border-top: 2px solid #fafafa; border-radius: 0; position: relative; }
.cf-lg.run::after { content: ""; position: absolute; left: 3px; top: -5px; width: 6px; height: 6px; border-radius: 50%; background: #07131F; border: 1.5px solid #fafafa; box-sizing: border-box; }

/* ---------- quieter hero + running-total strip ---------- */
.cf-title-lg { font-size: 22px !important; color: var(--text-primary) !important; font-weight: 800 !important; letter-spacing: -0.01em; margin-top: 2px; }
.cf-hero .cf-big { font-size: 54px; margin-top: 2px; }
.cf-more { align-self: flex-start; margin-top: 6px; font-size: 12.5px; }
.cf-rev-more { margin-top: 2px; padding-top: 4px; border-top: 1px dashed rgba(255, 255, 255, .1); }
.cf-runstrip { margin-top: -2px; }
.cf-runstrip-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #8f97a4; font-weight: 600; margin-bottom: 2px; }
.cf-runstrip-head b { font-variant-numeric: tabular-nums; }
.cf-runstrip-head b.pos { color: var(--teal-bright); }
.cf-runstrip-head b.neg { color: var(--amber); }
#cfRunSvg { display: block; width: 100%; height: 52px; overflow: visible; }
#cfRunSvg .zero { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 3; }
#cfRunSvg .area.pos { fill: rgba(24, 213, 215, .22); }
#cfRunSvg .area.neg { fill: rgba(245, 158, 11, .24); }
#cfRunSvg .ln { fill: none; stroke: #fafafa; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
#cfRunSvg .pt { fill: #07131F; stroke: #fafafa; stroke-width: 1.4; }
#cfRunSvg .pt.end { fill: #fafafa; }
#cfRunSvg .pt.back { stroke: #4CE5E7; stroke-width: 2.2; }
@media (max-width: 760px) { .cf-hero .cf-big { font-size: 44px; } }

/* ---------- free-plan preview: unmistakably a sample ---------- */
.cf-sample-tag { display: none; align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #07131F; background: #F59E0B; border-radius: 5px; padding: 3px 7px; }
.cf-sample-tag.inline { align-self: center; }
:is(#page-cashflow, #page-wealth).cf-preview .cf-sample-tag { display: inline-block; }
:is(#page-cashflow, #page-wealth).cf-preview .cf-hero { position: relative; }
:is(#page-cashflow, #page-wealth).cf-preview .cf-body { position: relative; }
:is(#page-cashflow, #page-wealth).cf-preview .cf-body::after {
    content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220'%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-family='Inter,Arial,sans-serif' font-size='44' font-weight='800' letter-spacing='8' fill='%23ffffff' fill-opacity='0.06' transform='rotate(-24 180 110)'%3ESAMPLE%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- "WealthBuilt." and the first-visit tour ---------- */
.cf-coral-dot { color: var(--coral, #FF6B6B); }
.cf-tour { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: rgba(3, 9, 15, .72); backdrop-filter: blur(3px); }
.cf-tour[hidden] { display: none !important; }
.cf-tour-card { position: relative; width: min(460px, 100%); background: #1A212B; border: 1px solid rgba(24, 213, 215, .3); border-radius: 18px; box-shadow: 0 0 40px rgba(24, 213, 215, .15), 0 20px 50px rgba(0, 0, 0, .5); padding: 26px 24px 20px; color: var(--text-primary, #fafafa); }
.cf-tour-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .06); color: #a1a1aa; font-size: 20px; line-height: 1; cursor: pointer; }
.cf-tour-x:hover { color: #fafafa; }
.cf-tour-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(24, 213, 215, .15); color: var(--teal-bright, #4CE5E7); margin-bottom: 14px; }
.cf-tour-step { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8f97a4; }
.cf-tour-card h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; font-weight: 800; margin: 4px 0 10px; letter-spacing: -0.01em; }
.cf-tour-body { font-size: 14.5px; line-height: 1.55; color: #c4c9d1; min-height: 120px; }
.cf-tour-body p { margin: 0 0 10px; }
.cf-tour-body b { color: #fafafa; }
.cf-tour-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.cf-tour-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.cf-tour-flow span { padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); color: #c4c9d1; }
.cf-tour-flow i { font-style: normal; color: #8f97a4; padding: 0 2px; }
.cf-tour-flow b { padding: 5px 11px; border-radius: 20px; background: rgba(24, 213, 215, .16); color: var(--teal-bright, #4CE5E7); }
.cf-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cf-tour-dots { display: flex; gap: 6px; }
.cf-tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.cf-tour-dots i.on { background: var(--teal-bright, #4CE5E7); width: 18px; border-radius: 4px; }
.cf-tour-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.cf-tour-btns [hidden] { display: none !important; }

/* ---------- All time ---------- */
.cf-alltime-btn { border: 1px solid var(--border-color); background: var(--bg-secondary); color: #8f97a4; font: 600 13px 'Inter', sans-serif; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.cf-alltime-btn:hover { color: var(--text-primary); }
.cf-alltime-btn[aria-pressed="true"] { background: rgba(24, 213, 215, .16); color: var(--teal-bright); border-color: rgba(24, 213, 215, .4); }
:is(#page-cashflow, #page-wealth).cf-alltime .year-toggle .year-btn.active { background: transparent !important; color: var(--text-muted) !important; box-shadow: none !important; }
.cf-chart.dense { gap: 2px; }
.cf-chart.dense .cf-val { display: none; }
.cf-chart.dense .cf-lbl { font-size: 9px; }
.cf-chart.dense .cf-bar { left: 8%; right: 8%; }

/* ---------- earlier loans (refinance / payoff) ---------- */
.cfm-history { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .1); }
.cfm-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8f97a4; margin-bottom: 4px; }
.cfm-refi { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cfm-refi .cfm-mini { width: 100%; }

/* Bulk switches on each category or vendor, and the Group by control */
.cf-sub-line { display: grid; grid-template-columns: minmax(0, 1fr) 46px 28px; gap: 12px; align-items: center; }
.cf-sub-line .cf-switch { justify-self: start; }
.cf-subgrp.off > .cf-sub-line .cf-sub-head > span { opacity: .55; }
.cf-subgrp.off > .cf-sub-line .cf-sub-head > span:last-child { text-decoration: line-through; }
.cf-switch[aria-checked="mixed"] { background: rgba(24, 213, 215, .45); }
.cf-switch[aria-checked="mixed"]::after { transform: translateX(8px); }
.cf-groupby { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px; font-size: 12px; color: var(--cf-fine); }
.cf-groupby button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); font: 600 12px 'Inter', sans-serif; cursor: pointer; }
.cf-groupby button[aria-pressed="true"] { background: rgba(24, 213, 215, .12); border-color: rgba(24, 213, 215, .45); color: var(--teal-bright); }
@media (max-width: 760px) {
    .cf-sub-line { grid-template-columns: minmax(0, 1fr) 46px 28px; }
    .cf-switch[aria-checked="mixed"]::after { transform: translateX(9px); }
}

/* Property value: All time only */
.cf-dot.apprec { border: 2px dashed var(--teal-bright); }
.cf-rev-item.off .lbl, .cf-rev-item.off .amt { opacity: .5; }
.cf-rev-item.off .amt { text-decoration: line-through; }
.cf-apprec-chip { align-self: flex-start; margin-top: 6px; }
.cf-value .cf-val-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cf-val-stat { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); min-width: 0; }
.cf-val-stat .l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cf-fine); }
.cf-val-stat .v { font: 700 22px 'Plus Jakarta Sans', 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.cf-val-stat .v.pos { color: var(--teal-bright); }
.cf-val-stat .v.neg { color: var(--amber); }
.cf-val-stat .s { font-size: 12px; color: var(--text-secondary); }
.cf-val-foot { margin-top: 10px; }
.cf-val-empty { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-color); color: var(--text-secondary); font-size: 13px; }
.cf-val-empty p { margin: 0; flex: 1; }
.cf-val-empty > span { color: var(--teal-bright); display: inline-flex; }
.cf-val-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.cf-val-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.cf-val-form label em { font-style: normal; font-weight: 400; color: var(--cf-fine); }
.cf-val-form input { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 9px; padding: 9px 11px; font: 500 14px 'Inter', sans-serif; }
.cf-val-acts { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.cf-val-help { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--cf-fine); }
@media (max-width: 900px) { .cf-value .cf-val-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cf-val-form { grid-template-columns: 1fr; } .cf-val-empty { flex-wrap: wrap; } }
.cf-val-stat .s .cf-link { display: inline; text-align: left; font-size: inherit; }
.cf-val-stat { position: relative; }
.cf-val-stat.has-badge { padding-right: 52px; }
.cf-val-trend { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.cf-val-trend.up { color: var(--teal-bright); background: rgba(24, 213, 215, .12); box-shadow: 0 0 14px rgba(24, 213, 215, .18); }
.cf-val-trend.down { color: var(--amber); background: rgba(245, 158, 11, .12); }
.cfm-covers { align-items: center; margin-top: 8px; }
.cfm-covers-l { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; margin-right: 2px; }
.cfm-covers label { padding: 6px 10px; font-size: 12.5px; }
.cfm-src { margin: 4px 0 10px; }

/* All rentals */
.cf-scope-tag { display: inline-flex; align-self: flex-start; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; font: 700 11px 'Inter', sans-serif; letter-spacing: .04em; color: var(--teal-bright); background: rgba(24, 213, 215, .12); border: 1px solid rgba(24, 213, 215, .3); }
.cf-prop-tag { color: var(--teal-bright); font-weight: 600; }

/* WealthBuilt page */
.cf-wb-link { margin: 10px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.cf-dot.tax { background: var(--purple); }
.cf-lg.tax { background: var(--purple); }
.wb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* Finish setup: the one place the page asks for a mortgage or a value. */
.wb-setup { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.wb-setup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }
.wb-setup-head b { font-size: 13px; color: var(--text-primary); }
.wb-setup ul { list-style: none; margin: 6px 0 0; padding: 0; }
.wb-setup li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--text-primary); }
.wb-setup li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.wb-setup .mark { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--cf-neutral-hi); display: inline-grid; place-items: center; font-size: 10px; line-height: 1; }
.wb-setup li.done .mark { border-color: var(--teal-bright); color: var(--teal-bright); }
.wb-setup .what { flex: 1; min-width: 0; }
.wb-setup .state { font-size: 12px; color: var(--cf-fine); }
.wb-setup .cf-link { white-space: nowrap; }
.wb-chart { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 14px 0 12px; flex: 1; }
.wb-row, .wb-arow { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "yr track tot" ". bits bits"; column-gap: 14px; row-gap: 6px; align-items: center; width: 100%; padding: 12px 12px; background: transparent; border: 0; border-radius: 12px; cursor: pointer; text-align: left; color: inherit; font: inherit; transition: background .15s; }
.wb-row:hover { background: rgba(255, 255, 255, .035); }
.wb-row.sel { background: rgba(24, 213, 215, .07); }
.wb-row:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 1px; }
.wb-yr { grid-area: yr; font: 600 14px 'Inter', sans-serif; color: var(--text-secondary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.wb-yr small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--cf-fine); margin-top: 2px; }
.wb-row.sel .wb-yr { color: var(--teal-bright); }
.wb-track { grid-area: track; position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .035); }
.wb-zero { position: absolute; top: -4px; bottom: -4px; border-left: 1px dashed rgba(255, 255, 255, .25); }
.wb-grp { position: absolute; top: 0; bottom: 0; display: flex; gap: 2px; border-radius: 6px; overflow: hidden; transition: width .45s cubic-bezier(.4, 0, .2, 1), left .45s, right .45s; }
.wb-grp.down { flex-direction: row-reverse; }
.wb-seg { display: block; flex: 1 1 0; min-width: 3px; }
.wb-seg.cash { background: var(--teal-primary); }
.wb-seg.principal { background: repeating-linear-gradient(-45deg, rgba(76, 229, 231, .6) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(76, 229, 231, .75); }
.wb-seg.tax { background: var(--purple); }
.wb-seg.cash.neg { background: var(--amber); }
.wb-seg.tax.neg { background: var(--purple); opacity: .5; }
.wb-tot { grid-area: tot; min-width: 84px; text-align: right; font: 700 15px 'Plus Jakarta Sans', sans-serif; font-variant-numeric: tabular-nums; }
.wb-tot.pos { color: var(--text-primary); }
.wb-tot.neg { color: var(--amber); }
.wb-bits { grid-area: bits; font-size: 12px; color: var(--cf-fine); font-variant-numeric: tabular-nums; }
.wb-chart.dense .wb-row { padding: 7px 12px; }
.wb-arow { cursor: default; margin-top: 4px; border-top: 1px solid var(--border-color); border-radius: 0; padding-top: 14px; }
.wb-arow.empty .wb-bits { grid-column: 2 / -1; grid-row: 1; }
.wb-seg.apprec { background: repeating-linear-gradient(90deg, rgba(76, 229, 231, .22) 0 6px, rgba(76, 229, 231, .1) 6px 9px); box-shadow: inset 0 0 0 1.5px var(--teal-bright); border-radius: 6px; }
.wb-seg.apprec.neg { box-shadow: inset 0 0 0 1.5px var(--amber); background: rgba(255, 176, 32, .12); }
.cf-lg.apprec { background: transparent; border: 2px dashed var(--teal-bright); box-sizing: border-box; }
.wb-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 12px 0; margin-top: 2px; border-top: 1px solid var(--border-color); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wb-chart-note { margin: 4px 12px 0; font-size: 12.5px; color: var(--cf-fine); }
.wb-chart.dense .wb-track { height: 16px; }
@media (max-width: 760px) { .wb-row, .wb-arow { grid-template-columns: 44px 1fr auto; column-gap: 10px; padding: 10px 6px; } .wb-tot { min-width: 0; font-size: 14px; } }
.wb-bridge { display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.wb-trow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border-color); font-size: 14px; }
.wb-trow:first-child { border-top: 0; }
.wb-trow .l small { display: block; font-size: 12px; color: var(--cf-fine); margin-top: 2px; }
.wb-trow .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.wb-trow.total { background: rgba(255, 255, 255, .03); }
.wb-trow.total.pos .v { color: var(--teal-bright); }
.wb-trow.total.neg .v { color: var(--amber); }
.wb-trow.sub { font-size: 13px; color: var(--text-secondary); padding-left: 32px; }
.wb-years { margin-top: 14px; font-size: 13px; }
.wb-yhead, .wb-yrow { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 10px; padding: 7px 4px; font-variant-numeric: tabular-nums; }
.wb-yhead { color: var(--cf-fine); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.wb-yrow { border-top: 1px solid rgba(255, 255, 255, .05); }
.wb-yrow small { color: var(--cf-fine); }
.wb-yrow .pos { color: var(--teal-bright); font-weight: 600; }
.wb-yrow .neg { color: var(--amber); font-weight: 600; }
.wb-fine { margin: 14px 0 0; font-size: 12px; color: var(--cf-fine); line-height: 1.5; }
@media (max-width: 760px) { .wb-yhead, .wb-yrow { grid-template-columns: 1fr 1fr 1fr; } .wb-yhead span:nth-child(2), .wb-yrow span:nth-child(2), .wb-yhead span:nth-child(5), .wb-yrow span:nth-child(5) { display: none; } }
#wbCoverage { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
#wbCoverage .wb-cov-total { color: var(--teal-bright); font-weight: 700; }
@media (max-width: 760px) { #wbCoverage { grid-template-columns: 1fr; } }
.wb-info { display: inline-flex; vertical-align: -2px; margin-left: 6px; padding: 0; border: 0; background: none; color: var(--cf-fine); cursor: help; opacity: .75; }
.wb-info:hover, .wb-info:focus-visible { color: var(--teal-bright); opacity: 1; outline: none; }
.cf-tip.info { max-width: 280px; min-width: 0; line-height: 1.45; color: var(--text-secondary); }
.wb-arow .wb-yr { white-space: nowrap; }
