/* Loans redesign (loans-v2.js). Plain 20px cards with a 1px hairline, the app's yellow (--decorative) and blue
   (--reference-blue) accents, and 12px rounded rectangles for every button, chip and tag. Scoped to the private
   workspace with an extra class so the older loans sheets (loan-sheet.css, loans-polish.css) never reach it. */
html[data-theme] .private-workspace .lr-list{display:flex;flex-direction:column;gap:14px}
html[data-theme] .private-workspace .lr-list>*{flex-shrink:0}
html[data-theme] .private-workspace .lr-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:16px;box-shadow:none}
html[data-theme] .private-workspace .lr-label{font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-big{display:block;font-size:clamp(28px,8vw,34px);font-weight:700;line-height:1.05;letter-spacing:-.03em;margin-top:4px;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-mid{display:block;font-size:var(--text-xl,20px);font-weight:700;line-height:1.15;letter-spacing:-.02em}
html[data-theme] .private-workspace .lr-sub{display:block;font-size:var(--text-xs);color:var(--muted);margin-top:2px}
html[data-theme] .private-workspace .lr-split{display:flex;height:8px;gap:2px;margin:14px 0 8px;border-radius:999px;overflow:hidden}
html[data-theme] .private-workspace .lr-split i{display:block;flex:1 1 0;min-width:3px;border-radius:999px}
html[data-theme] .private-workspace .lr-k-pri{background:var(--loan-chart-principal)}
html[data-theme] .private-workspace .lr-k-int{background:var(--loan-chart-interest)}
html[data-theme] .private-workspace .lr-keys{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-keys b{color:var(--text);font-weight:600}
html[data-theme] .private-workspace .lr-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
html[data-theme] .private-workspace .lr-cost{display:grid;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-cost-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
html[data-theme] .private-workspace .lr-cost-head span{font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-cost-head strong{font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-costbar{display:flex;height:6px;border-radius:999px;background:var(--subtle);overflow:hidden}
html[data-theme] .private-workspace .lr-costbar i{display:block;height:100%;width:0}
html[data-theme] .private-workspace .lr-paid{background:var(--loan-chart-interest)}
html[data-theme] .private-workspace .lr-owed{background:color-mix(in srgb,var(--loan-chart-interest) 45%,var(--subtle))}
html[data-theme] .private-workspace .lr-cost p{margin:0;font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-cost p b{color:var(--text)}
html[data-theme] .private-workspace .lr-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--border);margin:14px -16px -16px}
html[data-theme] .private-workspace .lr-stats button{border:0;background:none;color:inherit;text-align:left;padding:10px;display:grid;gap:2px;align-content:start;min-width:0;min-height:64px;border-radius:0;font:inherit;cursor:pointer}
html[data-theme] .private-workspace .lr-stats button:disabled{cursor:default;color:var(--muted)}
html[data-theme] .private-workspace .lr-stats .lr-v{white-space:normal;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-stats button+button{border-left:1px solid var(--border)}
html[data-theme] .private-workspace .lr-l{font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-v{font-weight:700;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-v small{font-size:12px;font-weight:500;color:var(--muted)}
html[data-theme] .private-workspace .lr-warn{color:var(--warning,#885b13)}
html[data-theme] .private-workspace .lr-sect{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:2px 4px 0;margin:0}
html[data-theme] .private-workspace .lr-sect h3{margin:0;font-size:15px}
html[data-theme] .private-workspace .lr-sect>span{font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace :is(.lr-queue,.lr-attn){display:grid;gap:8px;min-width:0}
html[data-theme] .private-workspace .lr-acard{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:14px;display:grid;gap:8px;align-content:start;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-interest-link{margin-top:8px;max-width:100%;text-align:left}
html[data-theme] .private-workspace .lr-upcoming-list{list-style:none;margin:0;padding:0}
html[data-theme] .private-workspace .lr-upcoming-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;padding:8px 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-upcoming-list button{grid-column:1;text-align:left;justify-self:start;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-upcoming-list time{grid-column:1;grid-row:auto;font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-upcoming-list b{grid-column:2;grid-row:1;align-self:center;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-balance-table{margin-top:4px}
html[data-theme] .private-workspace .lr-balance-table table{width:100%;font-size:var(--text-xs);border-collapse:collapse}
html[data-theme] .private-workspace .lr-balance-table :is(th,td){padding:8px 6px;border-bottom:1px solid var(--border);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme] .private-workspace .lr-balance-table th:first-child{text-align:left}
html[data-theme] .private-workspace .lr-acard p{margin:0;font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-acts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html[data-theme] .private-workspace .lr-tag{justify-self:start;font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;border-radius:8px;padding:3px 8px;background:var(--subtle);color:var(--muted)}
html[data-theme] .private-workspace .lr-tag.red{background:color-mix(in srgb,var(--expense) 14%,var(--surface));color:var(--expense)}
html[data-theme] .private-workspace .lr-tag.amber{background:var(--warning-soft,#fbf0d9);color:var(--warning,#885b13)}
html[data-theme] .private-workspace :is(.lr-btn,.lr-record){border-radius:12px;min-height:40px;white-space:nowrap}
html[data-theme] .private-workspace .lr-plan{background:var(--decorative,#ffbb6a);color:#2a1d07;border-color:transparent}
html[data-theme] .private-workspace .lr-link{border:0;background:none;color:var(--muted);font:inherit;font-size:13px;font-weight:600;min-height:44px;padding:0 6px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--border);cursor:pointer}
html[data-theme] .private-workspace .lr-combined{display:grid;gap:10px}
html[data-theme] .private-workspace .lr-combined-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
html[data-theme] .private-workspace .lr-combined .lr-link{justify-self:start;padding:0;min-height:32px}
html[data-theme] .private-workspace .lr-order{list-style:none;margin:0;padding:0;display:grid}
html[data-theme] .private-workspace .lr-order li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-order li:first-child{border-top:0}
html[data-theme] .private-workspace .lr-num{font-size:12px;font-weight:700;color:var(--muted);text-align:center}
html[data-theme] .private-workspace .lr-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .private-workspace .lr-when{font-size:12px;color:var(--muted);white-space:nowrap}
html[data-theme] .private-workspace .lr-list .private-list-tools.lr-sect{display:flex;margin:0}
html[data-theme] .private-workspace .lr-list .private-loan-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:4px 0;display:block;gap:0}
html[data-theme] .private-workspace .lr-list .lr-list-view{justify-self:end;display:inline-grid;width:auto;margin-inline-start:auto}
html[data-theme] .private-workspace .lr-table-shell{min-width:0;container-type:inline-size}
html[data-theme] .private-workspace .lr-terms-table{width:100%;table-layout:fixed;border-spacing:0;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);overflow:clip;font-variant-numeric:tabular-nums}
.lr-terms-table .lr-table-loan{width:28%}.lr-terms-table col.lr-table-date{width:20%}.lr-terms-table .lr-table-principal{width:22%}.lr-terms-table .lr-table-interest{width:16%}.lr-terms-table .lr-table-rate{width:14%}
html[data-theme] .private-workspace .lr-terms-table :is(th,td){padding:8px 10px;text-align:left;border-bottom:1px solid var(--divider);vertical-align:middle;font-size:13px;line-height:1.35}
html[data-theme] .private-workspace .lr-terms-table thead th{font-size:12px;font-weight:600;color:var(--muted);background:var(--subtle)}
html[data-theme] .private-workspace .lr-terms-table tbody tr:last-child>*{border-bottom:0}
html[data-theme] .private-workspace .lr-terms-table .lr-table-number{text-align:right;font-weight:500;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-terms-table thead .lr-table-number{font-weight:600}
html[data-theme] .private-workspace .lr-table-open{display:grid;justify-items:start;align-content:center;gap:2px;min-height:44px;width:100%;padding:0;border:0;background:none;color:var(--text);font:inherit;text-align:left;border-radius:var(--radius-xs)}
.lr-table-row{cursor:pointer}
.lr-table-row:has([aria-pressed=true]){background-color:var(--loan-row-tint)}
.lr-table-open[aria-pressed=true] .lr-table-name::before{content:"✓ ";color:var(--link)}
.lr-table-open[aria-disabled=true]{color:var(--muted)}
.lr-table-format-tools{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}
.lr-table-format-tools .segmented{display:flex;min-width:0}
html[data-theme] .private-workspace .lr-table-format-tools button{min-height:36px;padding-inline:9px;font-size:var(--text-xs);white-space:nowrap}
@media(pointer:coarse){html[data-theme] .private-workspace .lr-table-format-tools button{min-height:44px}}
.lr-terms-table[data-amount-format=compact] .lr-table-exact{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lr-terms-table[data-amount-format=exact] .lr-table-amount,
.lr-terms-table[data-rate-format=month] .lr-table-rate-year,
.lr-terms-table[data-rate-format=year] .lr-table-rate-month{display:none}
html[data-theme] .private-workspace .lr-terms-table tbody :is(th,td){vertical-align:top;padding-block:7px}
html[data-theme] .private-workspace .lr-terms-table tbody td{padding-top:13px}
html[data-theme] .private-workspace .lr-terms-table .lr-table-original{font-weight:500;color:var(--text)}
html[data-theme] .private-workspace .lr-terms-table .lr-table-interest-due{font-weight:400;color:color-mix(in srgb,var(--loan-chart-interest) 28%,var(--text))}
.lr-table-rate-value{font-weight:600;white-space:nowrap}
.lr-table-unit{display:block;font-size:var(--text-xs);font-weight:400;color:var(--muted)}
.lr-table-rate-details{width:100%;min-width:0;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-table-rate-details>summary{position:relative;display:block;list-style:none;cursor:pointer;min-height:34px;text-align:right}
.lr-table-rate-details>summary::-webkit-details-marker{display:none}
.lr-table-rate-details>summary .lr-table-rate-value{color:var(--link);text-decoration:underline dotted;text-underline-offset:3px}
.lr-table-rate-details:not([open])>div{display:none}
.lr-table-rate-details>div{display:grid;min-width:0;gap:4px;margin-top:4px;font-size:var(--text-xs);color:var(--muted)}
.lr-table-no-interest{color:var(--muted)}
.lr-table-progress{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--motion-dialog) var(--motion-ease),opacity var(--motion-exit) var(--motion-ease);text-align:left}
.lr-terms-table[data-repayment-ticks=true] .lr-table-progress{grid-template-rows:1fr;opacity:1}
.lr-table-progress-inner{min-height:0;overflow:hidden}
.lr-repayment-ticks{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:2px;max-width:150px;margin-top:4px}
.lr-repayment-ticks>i{height:9px;border-radius:2px;background:var(--divider)}
.lr-repayment-ticks>i[data-repaid]{background:var(--loan-chart-principal)}
.lr-table-progress-label{display:block;margin:4px 0 2px;font-size:var(--text-xs);color:var(--muted);font-weight:400}
@media(prefers-reduced-motion:reduce){.lr-table-progress{transition:none}}
@container(max-width:500px){.lr-repayment-ticks{gap:1px}.lr-table-rate-details>div,.lr-table-unit{font-size:12px}}
@media(pointer:coarse){html[data-theme] .private-workspace .lr-table-rate-details>summary{min-height:44px}}
.lr-loan-comparison{padding:12px;border:1px solid var(--border);border-radius:var(--radius-card)}
.lr-loan-comparison h4{margin:0 0 8px}
.lr-loan-comparison table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:var(--text-xs);font-variant-numeric:tabular-nums}
.lr-loan-comparison :is(th,td){padding:7px 4px;border-bottom:1px solid var(--divider);text-align:start;vertical-align:top;overflow-wrap:anywhere}
.lr-loan-comparison tbody tr:last-child>*{border-bottom:0}
.lr-repayment>summary{display:grid;justify-content:stretch;gap:4px;padding:10px 34px 10px 12px;cursor:pointer}
.lr-repayment-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.lr-repayment-split{font-size:var(--text-xs);color:var(--muted)}
.lr-repayment-body{padding:0 12px 10px}
.lr-repayment-body p{margin:6px 0}
.lr-payment-reference{overflow-wrap:anywhere}
.history-event-dot{fill:var(--loan-chart-interest,var(--decorative));stroke:var(--surface);stroke-width:1.5}
html[data-theme] .private-workspace .lr-terms-table tbody tr>*{border-bottom:0}
.lr-table-row:not(:last-child){background-image:linear-gradient(var(--divider),var(--divider));background-position:center bottom;background-repeat:no-repeat;background-size:calc(100% - 20px) 1px}
.lr-table-row:focus-within{background-color:var(--subtle)}
@media(hover:hover){.lr-table-row:hover{background-color:var(--subtle)}}
.lr-table-name{font-weight:600;max-width:100%;overflow-wrap:anywhere}
.lr-table-when,.lr-terms-table td.lr-table-date{color:var(--muted);font-weight:400}
.lr-table-when{font-size:var(--text-2xs)}
.lr-table-unit{white-space:normal}
.lr-table-compact{display:none}
@container(max-width:500px){
 .lr-terms-table .lr-table-loan{width:33%}.lr-terms-table .lr-table-principal{width:25%}.lr-terms-table .lr-table-interest{width:23%}.lr-terms-table .lr-table-rate{width:19%}
 .lr-terms-table :is(.lr-table-date,.lr-table-wide,.lr-table-tenure){display:none}
 .lr-terms-table .lr-table-compact{display:inline}
 html[data-theme] .private-workspace .lr-terms-table :is(th,td){padding:6px 5px}
 html[data-theme] .private-workspace .lr-terms-table thead th{font-size:var(--text-2xs)}
 html[data-theme] .private-workspace .lr-terms-table td.lr-table-number:not(.lr-table-original){font-size:12px}
 .lr-table-when time{white-space:nowrap}
}
@container (min-width:501px){
 .lr-terms-table[data-has-tenure] .lr-table-loan{width:25%}
 .lr-terms-table[data-has-tenure] col.lr-table-date{width:17%}
 .lr-terms-table[data-has-tenure] .lr-table-principal{width:18%}
 .lr-terms-table[data-has-tenure] .lr-table-interest{width:15%}
 .lr-terms-table[data-has-tenure] .lr-table-rate{width:12%}
 .lr-terms-table[data-has-tenure] col.lr-table-tenure{width:13%}
}
html[data-theme] .private-workspace .lr-terms-table td.lr-table-tenure{
 font-size:var(--text-xs);color:var(--muted);overflow-wrap:anywhere;
}
.lr-tenure-inline{line-height:1.35}
/* Rows: one card, inset hairlines, three short lines. */
html[data-theme] .private-workspace .lr-list .private-loan-row.lr-row{all:unset;display:block;position:relative}
html[data-theme] .private-workspace .lr-list .lr-row+.lr-row::before{content:"";position:absolute;left:68px;right:16px;top:0;height:1px;background:var(--border)}
html[data-theme] .private-workspace .lr-list .lr-open{all:unset;box-sizing:border-box;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:1px 12px;align-items:center;width:100%;padding:12px 16px;cursor:pointer;color:var(--text)}
html[data-theme] .private-workspace .lr-list .lr-open:focus-visible{outline:2px solid var(--link);outline-offset:-2px;border-radius:14px}
html[data-theme] .private-workspace .lr-av{grid-row:1/span 3;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-weight:700;font-size:15px;color:#1b1c19}
.lr-hue-0{background:#ffd9a8}.lr-hue-1{background:#cfdcfb}.lr-hue-2{background:#f7c9c0}.lr-hue-3{background:#d4ecd9}.lr-hue-4{background:#efd3f0}.lr-hue-5{background:#fbe3b5}.lr-hue-6{background:#c9e6ef}.lr-hue-7{background:#e3ddd0}
html[data-theme] .private-workspace .lr-n{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
html[data-theme] .private-workspace .lr-a{font-weight:700;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:15px}
html[data-theme] .private-workspace .lr-s{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .private-workspace .lr-ai{font-size:12px;color:var(--muted);text-align:right;white-space:nowrap}
html[data-theme] .private-workspace .lr-d{font-size:12px;color:color-mix(in srgb,var(--muted) 80%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .private-workspace .lr-p{display:flex;align-items:center;gap:5px;justify-content:flex-end;font-size:12px;color:var(--muted);white-space:nowrap}
html[data-theme] .private-workspace .lr-flag{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:2px}
html[data-theme] .private-workspace .lr-flag.red{background:var(--expense)}
html[data-theme] .private-workspace .lr-flag.amber{background:var(--warning,#885b13)}
html[data-theme] .private-workspace .lr-ring{width:15px;height:15px;transform:rotate(-90deg)}
html[data-theme] .private-workspace .lr-ring circle{fill:none;stroke-width:3.2}
html[data-theme] .private-workspace .lr-ring-bg{stroke:var(--subtle)}
html[data-theme] .private-workspace .lr-ring-fg{stroke:var(--loan-chart-principal);stroke-linecap:round}
/* Upcoming payments keep their panel, folded under the list. */
html[data-theme] .private-workspace .lr-fold{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:0 16px}
html[data-theme] .private-workspace .lr-fold>summary{min-height:56px;display:flex;flex-direction:column;justify-content:center;font-weight:600;cursor:pointer}
html[data-theme] .private-workspace .lr-fold>summary small{display:block;font-weight:400;font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace .lr-fold[open]{padding-bottom:12px}
/* Record a payment: the loan picker */
html[data-theme] .private-workspace .lr-pick{display:grid;gap:12px}
html[data-theme] .private-workspace .lr-pick-title{margin:4px 4px 0;font-size:18px}
html[data-theme] .private-workspace .lr-pick-list{padding:4px 0}
html[data-theme] .private-workspace .lr-pick-row{all:unset;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;width:100%;padding:12px 16px;cursor:pointer;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-pick-row:first-child{border-top:0}
html[data-theme] .private-workspace .lr-pick-row span{grid-column:1;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-pick-row b{grid-row:1/span 2;grid-column:2;align-self:center;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-pick-row:focus-visible{outline:2px solid var(--link);outline-offset:-2px;border-radius:14px}
@media (hover:hover) and (pointer:fine){html[data-theme] .private-workspace :is(.lr-list .lr-open,.lr-pick-row,.lr-stats button):hover{background:var(--subtle)}}

/* Loan page */
html[data-theme] .private-workspace .lr-detail{display:flex;flex-direction:column;gap:14px}
html[data-theme] .private-workspace .lr-detail>*{flex-shrink:0}
html[data-theme] .private-workspace .lr-hero.private-loan-hero{display:block;margin:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:16px;box-shadow:none}
html[data-theme] .private-workspace .lr-hero .lr-lhead{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:0;margin:0}
html[data-theme] .private-workspace .lr-hero .lr-av{position:static;grid-row:auto;width:48px;height:48px;border-radius:15px;font-size:18px;margin:0}
html[data-theme] .private-workspace .lr-hero .lr-lname{min-width:0}
html[data-theme] .private-workspace .lr-hero h3{margin:0;font-size:var(--text-xl,20px);line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-hero .private-loan-since{margin:2px 0 0}
html[data-theme] .private-workspace .lr-hero .lr-tag.lr-done{background:color-mix(in srgb,var(--income) 16%,var(--surface));color:var(--income)}
html[data-theme] .private-workspace .lr-balance.private-detail-balance{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:16px 0 0;padding:0;border:0;background:none}
html[data-theme] .private-workspace .lr-balance .private-loan-total{display:block;font-size:clamp(28px,8vw,34px);font-weight:700;letter-spacing:-.03em;line-height:1.05;margin:4px 0 2px;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-balance .private-asof-note{display:block;margin-top:4px}
html[data-theme] .private-workspace .lr-donut{position:relative;width:78px;height:78px;display:block}
html[data-theme] .private-workspace .lr-donut svg{width:100%;height:100%;transform:rotate(-90deg)}
html[data-theme] .private-workspace .lr-donut circle{fill:none;stroke-width:8}
html[data-theme] .private-workspace .lr-donut>span{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font-size:12px;color:var(--muted);line-height:1.15}
html[data-theme] .private-workspace .lr-donut b{font-size:15px;color:var(--text)}
html[data-theme] .private-workspace .lr-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0}
html[data-theme] .private-workspace .lr-tiles>div{background:var(--subtle);border-radius:14px;padding:9px 10px;min-width:0}
html[data-theme] .private-workspace .lr-tiles dt{font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-tiles dd{margin:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-tiles .private-rate-band{font-weight:700}
html[data-theme] .private-workspace .lr-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;align-items:stretch}
html[data-theme] .private-workspace .lr-act{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:18px;padding:12px 6px 10px;display:grid;justify-items:center;gap:6px;font:inherit;font-size:13px;font-weight:600;min-height:78px;height:100%;margin:0;align-content:start;cursor:pointer}
html[data-theme] .private-workspace .lr-act i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--subtle);color:var(--text)}
html[data-theme] .private-workspace .lr-act .icon{width:18px;height:18px}
html[data-theme] .private-workspace .lr-act-rec i{background:var(--reference-blue,#7aadee);color:#0f1a2c}
html[data-theme] .private-workspace .lr-act-plan i{background:var(--decorative,#ffbb6a);color:#2a1d07}
html[data-theme] .private-workspace .lr-callout{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;border-radius:18px;padding:12px 14px;margin-top:12px;background:var(--warning-soft,#fbf0d9)}
html[data-theme] .private-workspace .lr-callout .lr-acts{grid-column:1/-1}
html[data-theme] .private-workspace .lr-callout .button{max-width:100%;white-space:normal}
html[data-theme] .private-workspace :is(.lr-receipt,.lr-reconciliation){border:1px solid var(--border);border-radius:14px;padding:12px;margin-top:12px;background:var(--subtle)}
html[data-theme] .private-workspace .lr-receipt{border-color:var(--reference-blue);scroll-margin-block:72px}
html[data-theme] .private-workspace .lr-receipt-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
html[data-theme] .private-workspace .lr-receipt .lr-acts{gap:4px 12px;margin-top:12px}
html[data-theme] .private-workspace .lr-receipt-heading strong{font-size:var(--text-lg);font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace :is(.lr-receipt,.lr-reconciliation) :is(h4,p){margin:0}
html[data-theme] .private-workspace .lr-receipt-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}
html[data-theme] .private-workspace .lr-receipt-values dt{color:var(--muted);font-size:var(--text-xs)}
html[data-theme] .private-workspace .lr-receipt-values dd{margin:2px 0 0;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-balance .lr-keys{margin-top:6px}
html[data-theme] .private-workspace :is(.lr-balance,.lx-hero) .lr-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
html[data-theme] .private-workspace :is(.lr-balance,.lx-hero) .lr-keys b{display:block;overflow-wrap:anywhere;font-size:var(--text-base)}
html[data-theme] .private-workspace .lr-balance-statement{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-balance-statement>summary{align-content:center;min-height:44px;cursor:pointer;font-size:var(--text-xs)}
html[data-theme] .private-workspace .lr-balance-statement>summary>span+span{margin-inline-start:8px;color:var(--muted)}
html[data-theme] .private-workspace .lr-balance-statement .lr-receipt-values{margin-top:6px}
html[data-theme] .private-workspace .lr-balance-statement .lr-receipt-values>div:last-child dd{font-weight:700}
html[data-theme] .private-workspace .lr-balance-statement summary>span:last-child{display:block;margin-inline-start:0}
html[data-theme] .private-workspace .lr-statement-action{min-height:44px;padding-inline:0;text-align:start}
@media (max-width:359px){html[data-theme] .private-workspace .lr-receipt-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-theme] .private-workspace .lr-callout.red{background:color-mix(in srgb,var(--expense) 14%,var(--surface))}
html[data-theme] .private-workspace .lr-callout p{margin:2px 0 0;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-ic{width:30px;height:30px;border-radius:10px;background:var(--surface);display:grid;place-items:center;font-weight:800;color:var(--warning,#885b13)}
html[data-theme] .private-workspace .lr-callout.red .lr-ic{color:var(--expense)}
html[data-theme] .private-workspace .lr-next.private-detail-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px;margin:12px 0 0}
html[data-theme] .private-workspace .lr-next strong{display:block;font-weight:600}
html[data-theme] .private-workspace .lr-cal{width:44px;border-radius:12px;overflow:hidden;text-align:center;background:var(--subtle)}
html[data-theme] .private-workspace .lr-cal small{display:block;background:var(--decorative,#ffbb6a);color:#2a1d07;font-size:12px;font-weight:700;letter-spacing:.04em;padding:1px 0}
html[data-theme] .private-workspace .lr-cal b{display:block;font-size:17px;padding:2px 0 4px}
html[data-theme] .private-workspace .lr-tabs{display:flex;gap:4px;background:var(--subtle);border:1px solid var(--border);padding:4px;border-radius:16px;position:sticky;top:0;z-index:2}
html[data-theme] .private-workspace .lr-tabs button{flex:1;border:0;background:none;border-radius:12px;min-height:40px;padding:6px 8px;font:inherit;font-size:13px;font-weight:500;color:var(--text);white-space:nowrap;cursor:pointer}
html[data-theme] .private-workspace .lr-tabs button[aria-selected="true"]{background:var(--decorative,#ffbb6a);color:#2a1d07;font-weight:600}
html[data-theme] .private-workspace .lr-tabs .count{font-size:12px;opacity:.7}
html[data-theme] .private-workspace .lr-detail .private-loan-detail-body{display:block;margin:0;padding:0}
html[data-theme] .private-workspace .lr-panel{display:grid;gap:14px}
html[data-theme] .private-workspace .lr-tiles dd small{font-size:12px;font-weight:500;color:var(--muted)}

/* Laptops: the loans pop-up uses the screen (was capped at 720px) and a loan opens in two columns:
   balance, actions and the next payment on the left; Activity / Plan / Breakdown / Terms on the right. */
@media (min-width:1024px){
 html[data-theme] dialog:is(.private-workspace,:has(.private-workspace)){width:min(1080px,calc(100vw - 64px));max-width:1080px}
 html[data-theme] .private-workspace .lr-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px 20px;align-items:start;grid-auto-flow:row dense}
 html[data-theme] .private-workspace .lr-detail>*{grid-column:1}
 html[data-theme] .private-workspace .lr-detail>.private-detail-nav{grid-column:1/-1}
 html[data-theme] .private-workspace .lr-detail>.lr-right{grid-column:2;grid-row:2/span 6}
 html[data-theme] .private-workspace .lr-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 20px;align-items:start}
 html[data-theme] .private-workspace .lr-list>*{grid-column:1/-1}
 html[data-theme] .private-workspace .lr-list:has(.lr-queue)>.lr-summary{grid-column:1}
 html[data-theme] .private-workspace .lr-list>.lr-queue{grid-column:2;grid-row:1}
}
@media (max-width:359px){
 html[data-theme] .private-workspace .lr-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .private-workspace .lr-tabs button{white-space:normal}
 html[data-theme] .private-workspace .lr-next.private-detail-next{grid-template-columns:auto minmax(0,1fr)}
 html[data-theme] .private-workspace .lr-next .button{grid-column:2;justify-self:start}
}
html[data-theme] .private-workspace .lr-right{display:flex;flex-direction:column;gap:14px;min-width:0}
html[data-theme] .private-workspace .lr-btn{width:auto;padding-inline:14px;flex:none}
html[data-theme] .private-workspace .lr-actions>.lr-act{align-self:stretch;height:auto}

/* Payoff planner sheet (loan-planner-v2.js): slides up over the Loans dialog on phones, in from the side on laptops. */
html[data-theme] dialog[data-planner-open]{overflow:hidden}
html[data-theme] .lr-sheet-layer{position:absolute;left:0;right:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
html[data-theme] .lr-scrim{position:absolute;inset:0;background:color-mix(in srgb,#000 38%,transparent)}
html[data-theme] .lr-sheet{position:relative;width:100%;max-height:94%;display:flex;flex-direction:column;background:var(--bg,var(--surface));color:var(--text);border-radius:26px 26px 0 0;box-shadow:0 -12px 40px -20px rgba(0,0,0,.45);outline:none}
html[data-theme] .lr-grab{display:block;width:40px;height:5px;border-radius:999px;background:var(--border);margin:8px auto 2px;flex:none}
html[data-theme] .lr-sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:4px 14px max(18px,env(safe-area-inset-bottom,0px));display:grid;gap:12px;align-content:start}
@media (min-width:900px){
 html[data-theme] .lr-sheet-layer{justify-content:flex-end;align-items:stretch;padding:16px}
 html[data-theme] .lr-sheet{width:min(460px,100%);max-height:none;border-radius:22px;box-shadow:0 30px 80px -30px rgba(0,0,0,.5)}
 html[data-theme] .lr-grab{visibility:hidden;height:0;margin:6px auto 0}
}
html[data-theme] .lr-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:2px 16px 4px;flex:none}
html[data-theme] .lr-sheet-head h3{margin:0;font-size:17px}
html[data-theme] .lr-sticky{position:sticky;top:0;height:0;margin:0 -14px -12px;z-index:5}
html[data-theme] .lr-sticky-in{position:absolute;left:0;right:0;top:-4px;padding:10px 16px;display:grid;gap:6px;background:color-mix(in srgb,var(--bg,var(--surface)) 94%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);box-shadow:0 8px 20px -16px rgba(0,0,0,.4)}
html[data-theme] .lr-sticky-in>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
html[data-theme] .lr-sticky-in b{font-size:17px}
html[data-theme] .lr-sticky-in span{font-size:12px;color:var(--muted)}
html[data-theme] .lr-sticky .lr-mile{justify-self:start;padding:4px 9px}
html[data-theme] .lr-sim{background:var(--subtle);border:1px solid var(--border);border-radius:24px;padding:10px}
html[data-theme] .lr-sim-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 6px 10px}
html[data-theme] .lr-sim-top b{font-size:15px}
html[data-theme] .lr-tag.amber{background:var(--warning-soft,#fbf0d9);color:var(--warning,#885b13)}
html[data-theme] .lr-sim-in{background:var(--surface);border-radius:18px;padding:16px;display:grid;gap:14px}
html[data-theme] .lr-ans{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
html[data-theme] .lr-ans .lr-big{font-size:30px}
html[data-theme] .lr-ans .lr-sub b{color:var(--text)}
html[data-theme] .lr-leg{display:grid;gap:4px;font-size:12px;min-width:120px}
html[data-theme] .lr-leg>div{display:flex;justify-content:space-between;gap:10px}
html[data-theme] .lr-k-ghost{background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted)}
html[data-theme] .lr-chart{position:relative}
html[data-theme] .lr-chart svg{display:block;width:100%;height:150px;touch-action:none}
html[data-theme] .lr-chart .lr-base{stroke:var(--border)}
html[data-theme] .lr-chart .lr-ghost{fill:none;stroke:var(--muted);stroke-opacity:.55;stroke-dasharray:3 3}
html[data-theme] .lr-chart .lr-bar-p{fill:var(--loan-chart-principal)}
html[data-theme] .lr-chart .lr-bar-i{fill:var(--loan-chart-interest)}
html[data-theme] .lr-chart .dim{opacity:.35}
html[data-theme] .lr-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:4px}
html[data-theme] .lr-tip{position:absolute;top:-8px;transform:translateX(-50%);background:var(--text);color:var(--surface);font-size:12px;border-radius:8px;padding:4px 7px;white-space:nowrap;pointer-events:none;opacity:0}
html[data-theme] .lr-tip.on{opacity:1}
html[data-theme] .lr-mile{justify-self:center;font-size:12px;font-weight:600;border-radius:10px;padding:6px 12px;background:color-mix(in srgb,var(--reference-blue,#7aadee) 18%,var(--surface));color:var(--text);text-align:center}
html[data-theme] .lr-mile.good{background:color-mix(in srgb,var(--income) 16%,var(--surface));color:var(--income)}
html[data-theme] .lr-mile.bad{background:color-mix(in srgb,var(--expense) 14%,var(--surface));color:var(--expense)}
html[data-theme] .lr-opt{display:grid;gap:8px}
html[data-theme] .lr-opt-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
html[data-theme] .lr-opt-head>span,html[data-theme] .lr-opt-head>label{font-size:13px;font-weight:600}
html[data-theme] .lr-opt-head small{font-size:12px;color:var(--muted)}
html[data-theme] .lr-opt-head small b{color:var(--text)}
html[data-theme] .lr-qplans{display:grid;gap:6px}
html[data-theme] .lr-qplan{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;padding:9px 12px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 12px;align-items:center;text-align:left;font:inherit;cursor:pointer;min-height:48px}
html[data-theme] .lr-qplan b{grid-row:1/span 2;font-size:15px;white-space:nowrap}
html[data-theme] .lr-qplan b small,html[data-theme] .lr-qplan>small{font-size:12px;font-weight:500;color:var(--muted)}
html[data-theme] .lr-qplan span{font-size:13px;font-weight:600}
html[data-theme] .lr-qplan[aria-pressed="true"]{background:var(--decorative,#ffbb6a);border-color:transparent;color:#2a1d07}
html[data-theme] .lr-qplan[aria-pressed="true"] :is(small,b small){color:#2a1d07}
html[data-theme] .lr-amount{display:inline-flex;align-items:center;gap:2px;background:var(--subtle);border:1px solid var(--border);border-radius:12px;padding:0 10px;min-height:40px;font-weight:700}
html[data-theme] .lr-amount:focus-within{border-color:var(--link);background:var(--surface)}
html[data-theme] .lr-amount input{width:8ch;border:0;background:none;font:inherit;font-weight:700;color:var(--text);text-align:right;outline:none;padding:0;min-height:0}
html[data-theme] .lr-rng{-webkit-appearance:none;appearance:none;width:100%;height:30px;background:transparent;margin:0}
html[data-theme] .lr-rng::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(90deg,var(--reference-blue,#7aadee) var(--fill,50%),var(--border) var(--fill,50%))}
html[data-theme] .lr-rng::-moz-range-track{height:8px;border-radius:999px;background:var(--border)}
html[data-theme] .lr-rng::-moz-range-progress{height:8px;border-radius:999px;background:var(--reference-blue,#7aadee)}
html[data-theme] .lr-rng::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:var(--surface);border:0;box-shadow:0 2px 8px rgba(0,0,0,.25),0 0 0 1px var(--border);margin-top:-9px}
html[data-theme] .lr-rng::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--surface);border:0;box-shadow:0 2px 8px rgba(0,0,0,.25)}
html[data-theme] .lr-marks{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:-4px}
html[data-theme] .lr-seg{display:flex;gap:4px;background:var(--subtle);border:1px solid var(--border);padding:4px;border-radius:16px;overflow-x:auto;scrollbar-width:none}
html[data-theme] .lr-seg button{flex:1;border:0;background:none;color:var(--text);border-radius:12px;min-height:40px;padding:6px 8px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
html[data-theme] .lr-seg button[aria-pressed="true"]{background:var(--decorative,#ffbb6a);color:#2a1d07;font-weight:600}
html[data-theme] .lr-seg button:disabled{opacity:.4;cursor:not-allowed}
html[data-theme] .lr-crow{display:grid;gap:6px}
html[data-theme] .lr-crow label{font-size:13px;font-weight:600}
html[data-theme] .lr-crbox{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:0 12px;min-height:44px}
html[data-theme] .lr-crbox:focus-within{border-color:var(--link)}
html[data-theme] .lr-crbox input{flex:1;min-width:0;border:0;background:none;font:inherit;font-weight:600;color:var(--text);outline:none;padding:10px 0;min-height:0}
html[data-theme] .lr-crbox input[aria-invalid="true"]{color:var(--expense)}
html[data-theme] .lr-crbox span{font-size:13px;color:var(--muted)}
html[data-theme] .lr-note{display:block;margin:0;font-size:12px;color:var(--muted)}
html[data-theme] .lr-note.bad{color:var(--expense)}
html[data-theme] .lr-cmp{width:100%;border-collapse:collapse;font-size:13px}
html[data-theme] .lr-cmp th,html[data-theme] .lr-cmp td{padding:8px 0;text-align:right;border-top:1px solid var(--border);font-weight:500}
html[data-theme] .lr-cmp thead th{border-top:0;font-size:12px;color:var(--muted);padding-top:0}
html[data-theme] .lr-cmp tbody th{text-align:left;color:var(--muted);font-weight:400}
html[data-theme] .lr-cmp td:last-child{font-weight:700}
html[data-theme] .lr-cmp :is(th,td)+:is(th,td){padding-inline-start:6px}
html[data-theme] .lr-cmp td{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .lr-priority{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
html[data-theme] .lr-priority summary{display:list-item;min-height:44px;padding:11px 0;cursor:pointer;font-weight:600}
html[data-theme] .lr-priority .lr-note{margin:6px 0 10px}
html[data-theme] .lr-cmp .lr-diff :is(th,td){color:var(--income)}
html[data-theme] .lr-cmp .lr-diff.bad :is(th,td){color:var(--expense)}
html[data-theme] .lr-cmp-notes{display:grid;gap:6px;margin-top:8px}
html[data-theme] .lr-sim-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 14px max(10px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);flex:none}
html[data-theme] .lr-sim-foot>.lr-sub{font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .lr-sim-foot .lr-foot-btns{margin-left:auto}
html[data-theme] .lr-foot-btns{display:flex;align-items:center;gap:6px}
html[data-theme] .lr-sheet-body .lr-order{list-style:none;margin:0;padding:0;display:grid}
html[data-theme] .lr-sheet-body .lr-order li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--border)}
html[data-theme] .lr-sheet-body .lr-order li:first-child{border-top:0}
html[data-theme] .lr-sheet-body :is(.lr-num,.lr-when){font-size:12px;color:var(--muted)}
html[data-theme] .lr-sheet-body .lr-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .lr-sheet-body :is(.lr-label,.lr-sub){display:block;font-size:12px;color:var(--muted)}
html[data-theme] .lr-sheet-body .lr-big{display:block;font-weight:700;letter-spacing:-.03em;line-height:1.05}
html[data-theme] .lr-sheet-body .lr-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
html[data-theme] .lr-sheet-body .lr-k-pri{background:var(--loan-chart-principal)}
html[data-theme] .lr-sheet-body .lr-k-int{background:var(--loan-chart-interest)}
html[data-theme] .lr-sheet-body .lr-tag{font-size:12px;font-weight:700;border-radius:8px;padding:3px 8px;background:var(--subtle);color:var(--muted)}
html[data-theme] .lr-sheet .lr-plan{background:var(--decorative,#ffbb6a);color:#2a1d07;border-color:transparent;border-radius:12px}
html[data-theme] .private-workspace .lr-open-planner{justify-self:start}
html[data-theme] .lr-sheet input.lr-rng{border:0;padding:0;min-height:0;height:30px;box-shadow:none;background:transparent;border-radius:0}
html[data-theme] .lr-sheet :is(.lr-amount,.lr-crbox) input{border:0;box-shadow:none;background:none;min-height:0;height:auto;padding-inline:0}

/* Add / edit loan form (enhanceLoanForm): tap targets over the native selects, which stay in the form for saving. */
html[data-theme] form.lr-form .lr-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
html[data-theme] form.lr-form .lr-native-label{display:block;font-size:13px;font-weight:600;color:var(--text);margin:0 0 6px}
html[data-theme] form.lr-form fieldset{border:1px solid var(--border);border-radius:var(--radius-card,20px);background:var(--surface);padding:14px 16px;display:grid;gap:12px}
html[data-theme] form.lr-form legend{font-size:13px;font-weight:700;padding:0 6px}
html[data-theme] form.lr-form .lr-pick-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
html[data-theme] form.lr-form .lr-pick-tiles button{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;padding:9px 10px;text-align:left;display:grid;gap:1px;min-height:56px;font:inherit;cursor:pointer}
html[data-theme] form.lr-form .lr-pick-tiles b{font-size:13px}
html[data-theme] form.lr-form .lr-pick-tiles small{font-size:12px;color:var(--muted)}
html[data-theme] form.lr-form .lr-pick-tiles button[aria-checked="true"]{background:var(--decorative,#ffbb6a);border-color:transparent;color:#2a1d07}
html[data-theme] form.lr-form .lr-pick-tiles button[aria-checked="true"] small{color:#2a1d07}
html[data-theme] form.lr-form .lr-pick-seg{display:flex;gap:4px;background:var(--subtle);border:1px solid var(--border);padding:4px;border-radius:16px}
html[data-theme] form.lr-form .lr-pick-seg button{flex:1;border:0;background:none;color:var(--text);border-radius:12px;min-height:40px;padding:6px 8px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
html[data-theme] form.lr-form .lr-pick-seg button[aria-checked="true"]{background:var(--decorative,#ffbb6a);color:#2a1d07;font-weight:600}
html[data-theme] form.lr-form :is(.lr-pick-seg,.lr-pick-tiles) button:disabled{opacity:.45;cursor:not-allowed}
html[data-theme] form.lr-form :is(.lr-pick-seg,.lr-pick-tiles) button:focus-visible{outline:2px solid var(--link);outline-offset:2px}
html[data-theme] form.lr-form .private-rate-preview:not(:empty){margin:0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--reference-blue,#7aadee) 16%,var(--surface));font-size:13px;color:var(--text)}
html[data-theme] form.lr-form :is(input,select,textarea){border-radius:12px}

/* Record payment (enhancePayForm) */
html[data-theme] form.lr-pay .private-pay-form{display:grid;gap:14px}
html[data-theme] form.lr-pay .lr-pay-head{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:12px 14px;margin:0}
html[data-theme] form.lr-pay .lr-pay-head .lr-av{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-weight:700;color:#1b1c19}
html[data-theme] form.lr-pay .lr-pay-name{display:grid;min-width:0}
html[data-theme] form.lr-pay .lr-pay-name strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] form.lr-pay .lr-pay-name span{font-size:13px;color:var(--muted)}
html[data-theme] form.lr-pay .lr-amount-field{display:grid;gap:6px;font-size:13px;font-weight:600}
html[data-theme] form.lr-pay .lr-amount-big{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:6px 14px;min-height:64px}
html[data-theme] form.lr-pay .lr-amount-big:focus-within{outline:2px solid var(--link);outline-offset:-1px}
html[data-theme] form.lr-pay .lr-amount-big input:is(:focus,:focus-visible){outline:none;box-shadow:none}
html[data-theme] form.lr-pay .lr-amount-big i{font-style:normal;font-size:24px;line-height:1;font-weight:600;color:var(--muted)}
html[data-theme] form.lr-pay .lr-amount-big input{border:0;background:none;box-shadow:none;outline:none;font-size:30px;font-weight:700;letter-spacing:-.02em;padding:0;min-height:0;width:100%;font-variant-numeric:tabular-nums;color:var(--text)}
html[data-theme] form.lr-pay .private-usual-note{font-weight:400}
html[data-theme] form.lr-pay .lr-seg{display:flex;gap:4px;background:var(--subtle);border:1px solid var(--border);padding:4px;border-radius:16px;overflow-x:auto;scrollbar-width:none}
html[data-theme] form.lr-pay .lr-seg>button{flex:1;border:0;background:none;color:var(--text);border-radius:12px;min-height:40px;padding:6px 10px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;box-shadow:none}
html[data-theme] form.lr-pay .lr-seg>button span{color:var(--muted);font-weight:600}
html[data-theme] form.lr-pay .lr-seg>button[aria-pressed="true"]{background:var(--decorative,#ffbb6a);color:#2a1d07;font-weight:600}
html[data-theme] form.lr-pay .lr-seg>button:focus-visible{outline:2px solid var(--link);outline-offset:2px}
html[data-theme] form.lr-pay .lr-date-field{display:grid;gap:6px}
html[data-theme] form.lr-pay .lr-fold{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:0 14px}
html[data-theme] form.lr-pay .lr-fold>summary{min-height:52px;display:flex;flex-direction:column;justify-content:center;font-weight:600;cursor:pointer}
html[data-theme] form.lr-pay .lr-fold>summary small{font-weight:400;font-size:12px;color:var(--muted)}
html[data-theme] form.lr-pay .lr-fold[open]{padding-bottom:14px}
html[data-theme] form.lr-pay .lr-fold fieldset{border:0;padding:0;margin:0;background:none}
html[data-theme] form.lr-pay .lr-fold legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html[data-theme] form.lr-pay .lr-preview:not(:empty){background:color-mix(in srgb,var(--reference-blue,#7aadee) 12%,var(--surface));border:0;border-radius:16px;padding:12px 14px}
html[data-theme] form.lr-pay .private-payment-context.lr-pay-head{min-height:0;padding:12px 14px;gap:12px;flex-direction:row}
html[data-theme] form.lr-pay .lr-pay-head .lr-pay-name{flex:1;min-width:0;overflow-wrap:anywhere}
html[data-theme] form.lr-pay .lr-pay-head .text-button{flex:none;min-height:44px}
html[data-theme] form.lr-pay .lr-paid-on{font-size:13px;font-weight:600}
html[data-theme] form.lr-pay .lr-date-note{font-size:12px}
html[data-theme] form.lr-pay .lr-pay-head strong{color:var(--text);font-weight:700}
html[data-theme] form.lr-pay .lr-quick>button{display:grid;gap:1px;justify-items:center;line-height:1.25;padding:6px 6px;min-height:48px}
html[data-theme] form.lr-pay .lr-quick>button span{display:block;font-size:12px}
html[data-theme] form.lr-pay .lr-quick{flex-wrap:nowrap}
html[data-theme] form.lr-pay .private-payment-context.lr-pay-head{grid-template-rows:auto;align-content:center;height:auto}
html[data-theme] form.lr-pay .private-payment-context.lr-pay-head::before,html[data-theme] form.lr-pay .private-payment-context.lr-pay-head::after{content:none;display:none}
html[data-theme] form.lr-pay .private-pay-form .private-payment-context.lr-pay-head{display:flex;align-items:center;gap:12px}
html[data-theme] form.lr-pay .lr-pay-head .lr-av{flex:none}

/* Catch up unrecorded EMIs, and add pay days to several loans */
html[data-theme] .private-workspace :is(.lr-catchup,.lr-schedules){display:flex;flex-direction:column;gap:14px}
html[data-theme] .private-workspace :is(.lr-catchup,.lr-schedules) .lr-card{display:grid;gap:4px}
html[data-theme] .private-workspace .lr-catch-list,html[data-theme] .private-workspace .lr-sched-list{padding:4px 0}
html[data-theme] .private-workspace :is(.lr-catch-row,.lr-catch-all){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--border);cursor:pointer;margin:0;font-weight:500}
html[data-theme] .private-workspace .lr-catch-all{border-top:0;font-weight:700}
html[data-theme] .private-workspace :is(.lr-catch-row,.lr-catch-all) input{width:20px;height:20px;margin:0;accent-color:var(--decorative,#ffbb6a)}
html[data-theme] .private-workspace .lr-catch-row small{display:block;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-catch-row:has(input:disabled){cursor:default}
html[data-theme] .private-workspace .lr-catch-row b{font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-sched-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-sched-row:first-child{border-top:0}
html[data-theme] .private-workspace .lr-sched-row .lr-av{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-weight:700;color:#1b1c19}
html[data-theme] .private-workspace .lr-sched-row label{display:grid;gap:2px;margin:0;min-width:0}
html[data-theme] .private-workspace .lr-sched-row select{margin-top:6px;border-radius:12px;min-height:44px}
html[data-theme] .private-workspace :is(.lr-catchup,.lr-schedules) .lr-note{display:block;margin:0 4px;font-size:12px;color:var(--muted)}

/* Interest by lender table: every column label starts on the same line (sort buttons keep their 44px tap height). */
html[data-theme] .private-workspace .loan-sheet-table thead th{vertical-align:top}
html[data-theme] .private-workspace .loan-sheet-table thead button{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;width:100%;text-align:right;padding:4px 0}
html[data-theme] .private-workspace .loan-sheet-table thead th:first-child{padding-top:14px}

/* Loan rows without the letter badge (2026-11-07, user): text gets the full width, the repaid share is a thin
   bar under the row, and loans with nothing repaid yet say "Not started" instead of an empty ring. */
html[data-theme] .private-workspace .lr-list .lr-open{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:13px 16px 12px}
html[data-theme] .private-workspace .lr-list .lr-row+.lr-row::before{left:16px}
html[data-theme] .private-workspace .lr-list .lr-d .private-rate-band{font-weight:600}
html[data-theme] .private-workspace .lr-list .lr-d .private-rate-band::before{display:none}
html[data-theme] .private-workspace .lr-bar{grid-column:1/-1;display:block;height:4px;border-radius:999px;background:var(--subtle);overflow:hidden;margin-top:7px}
html[data-theme] .private-workspace .lr-bar i{display:block;height:100%;width:0;border-radius:999px;background:var(--reference-blue,#7aadee)}
/* Nothing is cut off: status gets the full width, the borrowed line may wrap, and the repaid bar shares a line with its label. */
html[data-theme] .private-workspace .lr-list .lr-open{grid-template-rows:auto}
html[data-theme] .private-workspace .lr-list .lr-n{grid-column:1;grid-row:1;white-space:normal;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-list .lr-a{grid-column:2;grid-row:1;align-self:start}
html[data-theme] .private-workspace .lr-list .lr-s{grid-column:1/-1;grid-row:2;white-space:normal}
html[data-theme] .private-workspace .lr-list .lr-d{grid-column:1;grid-row:3;white-space:normal}
html[data-theme] .private-workspace .lr-list .lr-ai{grid-column:2;grid-row:3;align-self:start}
html[data-theme] .private-workspace .lr-list .lr-bar{grid-column:1;grid-row:4;align-self:center;margin-top:6px}
html[data-theme] .private-workspace .lr-list .lr-p{grid-column:2;grid-row:4;margin-top:6px}
@media (max-width:359px){html[data-theme] .private-workspace ~ * .lr-record,html[data-theme] dialog .dialog-footer:has(.lr-record) .button{padding-inline:10px;font-size:14px;gap:6px;min-width:0}html[data-theme] dialog .dialog-footer:has(.lr-record) .button .icon{width:16px;height:16px}}
/* Alignment pass (2026-11-07). One disclosure layout, one header layout, one control shape (12px controls, 8px
   small tags, never a pill), nested cards at 14px, and the desktop loan page starting both columns at the top. */
/* 1. Every fold: title and subtitle on the left, the chevron on the right, centred against both lines. */
html[data-theme] .private-workspace :is(.lr-fold,.private-strategy-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help,.private-more-details)>summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;justify-content:stretch;justify-items:start;align-content:center;text-align:left;min-height:56px;padding:10px 16px;margin:0;list-style:none;cursor:pointer;font-size:var(--text-base,15px);font-weight:600;color:var(--text);line-height:1.35}
html[data-theme] .private-workspace :is(.lr-fold,.private-strategy-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help,.private-more-details)>summary>:not(.disclosure-chevron){grid-column:1;margin:0}
html[data-theme] .private-workspace :is(.lr-fold,.private-strategy-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help,.private-more-details)>summary>small{display:block;font-weight:400;font-size:var(--text-xs);line-height:1.4;color:var(--muted)}
html[data-theme] .private-workspace :is(.lr-fold,.private-strategy-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help,.private-more-details)>summary>.disclosure-chevron{grid-column:2;grid-row:1/span 2;align-self:center;position:static!important;inset:auto;margin:0;color:var(--muted)}
html[data-theme] .private-workspace :is(.lr-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help){padding:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);margin:0}
html[data-theme] .private-workspace :is(.lr-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help)>:not(summary){margin-inline:16px}
html[data-theme] .private-workspace :is(.lr-fold,.loan-sheet-alloc,.loan-sheet-explanation,.private-help)[open]{padding-bottom:14px}
html[data-theme] .private-workspace .private-help p{margin-top:0}
html[data-theme] .private-workspace .private-help.private-help>summary{font-weight:600}
html[data-theme] form.lr-pay .lr-fold>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;justify-items:start;align-content:center;text-align:left;padding:10px 14px;margin:0 -14px}
html[data-theme] form.lr-pay .lr-fold>summary>:not(.disclosure-chevron){grid-column:1}
html[data-theme] form.lr-pay .lr-fold>summary>.disclosure-chevron{grid-column:2;grid-row:1/span 2;margin:0;color:var(--muted)}
/* 2. Desktop loan page: the tabs column starts level with the hero (row 1 used to wait for a back bar that moved
   into the header). */
html[data-theme] .private-workspace .lr-detail:not(:has(>.private-detail-nav))>.lr-right{grid-row:1/span 6}
/* 3. One control shape. */
html[data-theme] .private-workspace :is(.lr-interest-link,.private-sort-menu>summary,.private-filters,.lr-btn,.lr-record,.lr-link){border-radius:var(--radius-control,12px)}
html[data-theme] .private-workspace :is(.lr-tag,.count,.loan-sheet-chip){border-radius:8px}
html[data-theme] .private-workspace .lr-interest-link{border:1px solid var(--border);background:var(--surface);min-height:40px;padding:8px 12px;font-size:var(--text-xs);font-weight:600;line-height:1.35;white-space:normal}
html[data-theme] .private-workspace .private-sort-menu>summary{border:1px solid var(--border);min-height:40px;padding:0 12px}
html[data-theme] .private-workspace .lr-acard{border-radius:var(--radius-card,20px);padding:16px}
/* Loans' own switches use the app switch: 12px track, 9px thumb, the theme's thumb colour. */
html[data-theme] .private-workspace :is(.lr-tabs,.lr-seg),html[data-theme] form.lr-form .lr-pick-seg,html[data-theme] form.lr-pay .lr-seg{gap:2px;padding:3px;border:1px solid var(--sw-border,var(--border));border-radius:var(--sw-radius,12px);background:var(--sw-track,var(--subtle))}
html[data-theme] .private-workspace :is(.lr-tabs,.lr-seg)>button,html[data-theme] form.lr-form .lr-pick-seg>button,html[data-theme] form.lr-pay .lr-seg>button{border-radius:var(--sw-thumb-radius,9px);min-height:38px;color:var(--sw-text,var(--muted));font-weight:500}
html[data-theme] .private-workspace .lr-tabs>button[aria-selected="true"],html[data-theme] .private-workspace .lr-seg>button[aria-pressed="true"],html[data-theme] form.lr-form .lr-pick-seg>button[aria-checked="true"],html[data-theme] form.lr-pay .lr-seg>button[aria-pressed="true"]{background:var(--sw-thumb,var(--decorative));color:var(--sw-active-text,#2a1d07);font-weight:600}
html[data-theme] .private-workspace .lr-tabs .count{background:none;padding:0 0 0 2px;font-weight:600;opacity:.75}
html[data-theme] form.lr-form .lr-pick-tiles button[aria-checked="true"]{background:var(--sw-thumb,var(--decorative));color:var(--sw-active-text,#2a1d07)}
html[data-theme] form.lr-form .lr-pick-tiles button[aria-checked="true"] small{color:inherit;opacity:.8}
/* 4. One header: back on the left, then the title, outlined actions (settings, more, Lock), plain close. Lock is
   labelled from 360px up and icon-only below, on every Loans screen. */
html[data-theme] .private-workspace>.dialog-heading{display:flex!important;align-items:center;gap:8px}
html[data-theme] .private-workspace>.dialog-heading>h2{flex:1 1 auto;min-width:0;order:0;margin:0}
html[data-theme] .private-workspace>.dialog-heading>.private-header-back{order:-1;margin-left:-6px}
html[data-theme] .private-workspace>.dialog-heading>.sheet-drag-handle{position:absolute}
html[data-theme] .private-workspace>.dialog-heading>:is(.private-session-menu,.private-header-actions,.private-header-lock,[data-action=close]){flex:none;order:1;grid-column:auto;grid-row:auto;margin:0}
html[data-theme] .private-workspace>.dialog-heading :is(.private-session-menu>summary,.private-header-actions>summary,.private-header-lock){border:1px solid var(--border);border-radius:var(--radius-control,12px);background:transparent;color:var(--text)}
html[data-theme] .private-workspace>.dialog-heading>:is(.private-header-back,[data-action=close]){border:0;background:none;color:var(--muted)}
html[data-theme] .private-workspace>.dialog-heading .private-header-lock{width:auto!important;min-width:44px!important;padding:8px 12px!important;gap:6px!important;font-size:var(--text-sm)!important}
@media (max-width:359px){html[data-theme] .private-workspace>.dialog-heading .private-header-lock{width:44px!important;padding:10px!important;gap:0!important;font-size:0!important}}
/* 5. The summary strip lines up with the card's 16px content edge; a zero stays readable, only its label is muted. */
html[data-theme] .private-workspace .lr-stats button{padding:12px 12px 12px 16px}
html[data-theme] .private-workspace .lr-stats button+button{padding-left:12px}
html[data-theme] .private-workspace .lr-stats button:disabled{color:var(--text)}
html[data-theme] .private-workspace .lr-stats button:disabled .lr-v{color:var(--muted);font-weight:600}
html[data-theme] .private-workspace .lr-nowrap{white-space:nowrap}
/* The summary card's more menu sits on the same right edge as the chevrons below it. */
html[data-theme] .private-workspace .private-summary-actions{margin-right:-12px}
/* Rows: every status line starts after the same 6px dot, so second lines share one edge. */
html[data-theme] .private-workspace .lr-flag.calm{background:var(--border)}
/* Loan page hero: nested blocks are plain hairline surfaces at 14px; colour stays in the small icon. No letter badge. */
html[data-theme] .private-workspace .lr-hero .lr-lhead{grid-template-columns:minmax(0,1fr) auto}
html[data-theme] .private-workspace .lr-hero :is(.lr-callout,.lr-next.private-detail-next,.lr-reconciliation,.lr-receipt,.private-unpaid-interest){background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:none}
html[data-theme] .private-workspace .lr-hero .lr-callout{padding:12px}
html[data-theme] .private-workspace .lr-hero .lr-callout .lr-ic{background:var(--warning-soft,#fbf0d9)}
html[data-theme] .private-workspace .lr-hero .lr-callout.red .lr-ic{background:color-mix(in srgb,var(--expense) 14%,var(--surface))}
html[data-theme] .private-workspace .lr-hero .lr-reconciliation{display:grid;gap:4px;padding:12px}
html[data-theme] .private-workspace .lr-hero .lr-reconciliation .lr-btn{justify-self:start;margin-top:6px}
html[data-theme] .private-workspace .lr-tiles>div{background:none;border:1px solid var(--border);border-radius:14px;padding:10px 12px}
@media (max-width:359px){html[data-theme] .private-workspace .lr-tiles{gap:6px}html[data-theme] .private-workspace .lr-tiles>div{padding:8px}html[data-theme] .private-workspace .lr-tiles dd{font-size:13px}}
html[data-theme] .private-workspace .lr-hero .private-unpaid-interest{display:grid;gap:2px;margin:12px 0 0;padding:10px 12px}
html[data-theme] .private-workspace .lr-hero .private-unpaid-interest.is-overdue>:first-child{color:var(--expense)}
html[data-theme] form.lr-pay .private-payment-context.lr-pay-head{display:grid;grid-template-columns:minmax(0,1fr)}
html[data-theme] .private-workspace .lr-sched-row{grid-template-columns:minmax(0,1fr)}
/* Interest by lender table: the heading starts where the names start; edge cells use the 12px card inset. */
html[data-theme] .private-workspace .loan-sheet-table-wrap{border-radius:var(--radius-card,20px)}
html[data-theme] .private-workspace .loan-sheet-table .loan-sheet-lender{padding-left:12px}
html[data-theme] .private-workspace .loan-sheet-table thead th:first-child,html[data-theme] .private-workspace .loan-sheet-table tfoot th{padding-left:22px}
html[data-theme] .private-workspace .loan-sheet-table tr>:last-child{padding-right:12px}
html[data-theme] .private-workspace .loan-sheet-table tfoot>tr>:first-child{border-bottom-left-radius:19px}
html[data-theme] .private-workspace .loan-sheet-table tfoot>tr>:last-child{border-bottom-right-radius:19px}
/* Planner: Compare payoff priorities uses the same right-hand chevron as every other fold. */
html[data-theme] .lr-priority>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center;list-style:none}
html[data-theme] .lr-priority>summary::-webkit-details-marker{display:none}
html[data-theme] .lr-priority>summary>.disclosure-chevron{margin:0;color:var(--muted)}
/* Repayment search and the chart range: label and control share a centre line, at the form's size. */
html[data-theme] .private-workspace label:has(>select[data-history-range]){display:inline-flex;align-items:center;gap:8px;font-size:var(--text-xs);color:var(--muted)}
html[data-theme] .private-workspace select[data-history-range]{min-height:40px;font-size:var(--text-sm);padding-block:6px}
/* Add loan: section titles sit inside their card (no notch in the border); option tiles fill the row. */
html[data-theme] form.lr-form fieldset>legend{float:left;width:100%;padding:0;margin:0 0 2px;font-size:13px;font-weight:700}
html[data-theme] form.lr-form fieldset>legend+*{clear:both}
html[data-theme] form.lr-form .lr-pick-tiles{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}
@media (max-width:599px){html[data-theme] form.lr-form .lr-pick-tiles>button:last-child:nth-child(odd){grid-column:1/-1}}
/* Wide screens: switches keep their own width and loan rows sit two to a line. */
@media (min-width:1024px){
 html[data-theme] .private-workspace .lr-list .private-filters{display:inline-grid;width:auto;min-width:360px;justify-self:start;grid-auto-columns:minmax(0,1fr)}
 html[data-theme] .private-workspace :is(.loan-sheet-periods,.loan-sheet-metrics),html[data-theme] form.lr-form .lr-pick-seg{max-width:480px}
 html[data-theme] .private-workspace .lr-list .private-loan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
 html[data-theme] .private-workspace .lr-list .lr-row+.lr-row::before{content:none}
 html[data-theme] .private-workspace .lr-list .lr-row:nth-child(n+3){border-top:1px solid var(--border)}
 html[data-theme] .private-workspace .lr-list .lr-row:nth-child(odd){border-right:1px solid var(--border)}
 html[data-theme] .private-workspace .lr-list .lr-open{padding:14px 20px}
}
/* Chart pass: thin columns, 4px rounded data end, square baseline, 2px surface gap, solid hairline grid, round scale. */
html[data-theme] .lr-chart svg{height:172px}
html[data-theme] .lr-chart>.lr-axis{display:none}
html[data-theme] .lr-chart .lr-base{stroke:var(--border);stroke-width:1}
html[data-theme] .lr-chart .lr-grid{stroke:var(--border);stroke-opacity:.6;stroke-width:1}
html[data-theme] .lr-chart :is(.lr-scale,.lr-tick){fill:var(--muted);font:500 12px var(--font-ui);font-variant-numeric:tabular-nums}
html[data-theme] .lr-chart .lr-tick{text-anchor:middle}
html[data-theme] .lr-chart .lr-scale{paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
html[data-theme] .lr-chart .lr-ghost{stroke-width:1.5}
.lr-mchart{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;margin:14px 0 6px}
.lr-mchart-scale{display:flex;flex-direction:column;justify-content:space-between;height:148px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;line-height:1;transform:translateY(-5px)}
.lr-mchart-plot{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;height:148px;border-bottom:1px solid var(--border);background:linear-gradient(var(--border),var(--border)) top/100% 1px no-repeat;position:relative}
.lr-mcol{position:relative;display:flex;justify-content:center;align-items:flex-end;height:100%}
.lr-mstack{display:flex;flex-direction:column;gap:2px;width:min(24px,62%);min-height:0;border-radius:4px 4px 0 0;overflow:hidden}
.lr-mstack[data-h="0"]{display:none}
.lr-mstack>i{display:block;min-height:2px;flex-basis:0}
.lr-mseg-p{background:var(--loan-chart-principal,var(--reference-blue,#7aadee))}
.lr-mseg-i{background:var(--loan-chart-interest,var(--decorative,#ffbb6a))}
.lr-mlabel{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:12px;color:var(--muted);white-space:nowrap}
.lr-mchart-plot{margin-bottom:22px}
@media (hover:hover) and (pointer:fine){.lr-mcol:hover .lr-mstack{filter:brightness(.92)}}
@media (max-width:479px){.lr-mcol:nth-child(even) .lr-mlabel{visibility:hidden}}
/* Chart pass 2: one principal/interest pair everywhere, tappable months, today's-plan tick, calmer history intro. */
html[data-theme] .lr-chart .lr-ghost{fill:none;stroke:var(--text);stroke-opacity:.7;stroke-width:2;stroke-dasharray:none;stroke-linecap:round}
html[data-theme] .lr-dot.lr-k-ghost{width:12px;height:2px;border-radius:1px;background:var(--text);opacity:.7;box-shadow:none;vertical-align:3px}
.lr-mchart{max-width:720px}
html[data-theme] .private-workspace .lr-mchart .lr-mcol{all:unset;box-sizing:border-box;position:relative;display:flex;justify-content:center;align-items:flex-end;height:100%;cursor:pointer;-webkit-tap-highlight-color:transparent}
html[data-theme] .private-workspace .lr-mchart .lr-mcol:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:6px}
.lr-mchart.has-pick .lr-mcol[aria-pressed=false] .lr-mstack{opacity:.4}
.lr-mcol[aria-pressed=true] .lr-mlabel{color:var(--text);font-weight:600;visibility:visible}
.lr-mreadout{display:block;min-height:20px;margin:0 0 8px;color:var(--muted);font-variant-numeric:tabular-nums}
.lr-mchart.has-pick+.lr-mreadout{color:var(--text)}
.history-note-more{font-size:var(--text-xs);color:var(--muted);margin:-4px 0 8px}
.history-explorer .history-note-more>summary{min-height:36px;display:flex;align-items:center;cursor:pointer;color:var(--link)}
.history-note-more>p{margin:0 0 8px}
/* Planning footer: one row of two equal buttons at every width (Edit amount secondary, Record a payment primary); Add loan stays in the list, not here. */
html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;align-items:stretch}
html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>[data-loan-footer-planning]{grid-column:1/-1}
html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>[data-action=private-add]{display:none}
html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>.button{width:100%;min-width:0;min-height:44px;margin:0;padding-inline:12px;font-size:var(--text-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:640px){html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>[data-loan-footer-planning]{grid-column:auto}html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>.button{width:auto;min-width:168px}}
@media (max-width:399px){html[data-theme] .private-workspace .dialog-footer.private-planning-footer.private-planning-footer>.button{padding-inline:8px;text-overflow:clip}html[data-theme] .private-workspace .private-planning-footer .lr-wide-only,html[data-theme] .private-workspace .private-planning-footer>.lr-record .icon{display:none}}
/* Cohesion pass: three card types (summary, list card, grouped folds), one section-title style, one spacing rhythm
   (16px inside cards, 12px between cards, 24px between sections), and a two-column grid on wide screens. */
html[data-theme] .private-workspace .lr-list{--lr-in:16px;--lr-card-gap:12px;--lr-sect-gap:24px;display:flex;flex-direction:column;gap:var(--lr-sect-gap)}
html[data-theme] .private-workspace .lr-list :is(.lr-top,.lr-side,.lr-loans,.lr-reports,.lr-plansect){display:grid;gap:var(--lr-card-gap);min-width:0;align-content:start}
html[data-theme] .private-workspace .lr-list :is(.lr-sect h3,.lr-h,.private-list-tools h3){margin:0;font-size:16px;font-weight:600;line-height:1.3;color:var(--text)}
html[data-theme] .private-workspace .lr-list :is(.lr-sect,.lr-h){padding:0 4px;min-height:32px;align-items:center}
html[data-theme] .private-workspace .lr-list .lr-h{display:flex}
html[data-theme] .private-workspace .lr-list .lr-sect>span{font-size:12px;color:var(--muted)}
/* Needs attention: the first item and "View all" read as one card. */
html[data-theme] .private-workspace .lr-list .lr-queue{display:flex;flex-direction:column;gap:0}
html[data-theme] .private-workspace .lr-list .lr-queue>.lr-sect{margin-bottom:8px}
html[data-theme] .private-workspace .lr-list .lr-queue>.lr-acard:has(+.lr-fold){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}
html[data-theme] .private-workspace .lr-list .lr-queue>.lr-acard+.lr-fold{border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-list .lr-queue>.lr-acard+.lr-fold>summary{min-height:48px;font-weight:500;font-size:14px;color:var(--link)}
/* Your loans: filter, title and sort sit together above one list card. */
html[data-theme] .private-workspace .lr-list .lr-loans>.private-list-tools{order:-1;display:flex;justify-content:space-between}
html[data-theme] .private-workspace .lr-list .lr-loans>.private-loan-list{margin-top:0}
/* Plan: the payoff summary and the planning tools live in one card. */
html[data-theme] .private-workspace .lr-list .lr-planbox{display:grid;min-width:0;align-content:start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);overflow:hidden}
html[data-theme] .private-workspace .lr-list .lr-planbox>.lr-combined{border:0;border-radius:0;background:none}
html[data-theme] .private-workspace .lr-list .lr-planbox>.private-planning-hub{margin:0;padding:12px var(--lr-in) var(--lr-in);border-top:1px solid var(--border);background:none;border-radius:0}
html[data-theme] .private-workspace .lr-list .lr-planbox>.private-planning-hub>h3{display:none}
html[data-theme] .private-workspace .lr-list .lr-planbox>.private-planning-hub>p{margin:0 0 10px;font-size:12px}
html[data-theme] .private-workspace .lr-list .lr-planbox .private-planning-panes>details{border:0;border-radius:0;background:none;padding:0;margin:0}
html[data-theme] .private-workspace .lr-list .lr-planbox .lr-mid{font-size:20px;line-height:1.25}
/* Reports: every fold is a row in one grouped card. */
html[data-theme] .private-workspace .lr-list .lr-group{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);overflow:hidden;min-width:0}
html[data-theme] .private-workspace .lr-list .lr-group>*,html[data-theme] .private-workspace .lr-list .lr-group .private-consolidated>*,html[data-theme] .private-workspace .lr-list .lr-group .private-ledger-reports{margin:0;border:0;border-radius:0;background:none;box-shadow:none}
html[data-theme] .private-workspace .lr-list .lr-group .private-consolidated{display:block}
html[data-theme] .private-workspace .lr-list .lr-group :is(.lr-fold,.private-ledger-summary,.private-report,.private-help,.private-calendar-report){border-top:1px solid var(--border);padding-inline:var(--lr-in)}
html[data-theme] .private-workspace .lr-list .lr-group>:first-child{border-top:0}
html[data-theme] .private-workspace .lr-list .lr-group .private-help{padding-top:0;color:inherit}
html[data-theme] .private-workspace .lr-list .lr-group .private-help>p{color:var(--muted);font-size:14px}
html[data-theme] .private-workspace .lr-list .lr-group .private-ledger-summary{padding-block:var(--lr-in)}
html[data-theme] .private-workspace .lr-list .lr-group .private-ledger-heading h3{font-size:16px}
html[data-theme] .private-workspace .lr-list .lr-group .private-overall-metrics>div dd{font-size:20px;font-weight:600}
/* One type scale for figures in cards: 32 (the total), 20 (card figures), 16 (titles), 14 (body), 12 (captions). */
html[data-theme] .private-workspace .lr-list .lr-summary .lr-big{font-size:32px;line-height:1.1}
html[data-theme] .private-workspace .lr-list .lr-stats .lr-v{font-size:16px}
html[data-theme] .private-workspace .lr-list :is(.lr-label,.lr-stats .lr-l,.lr-keys,.lr-d,.lr-p,.lr-ai,.lr-s){font-size:12px}
html[data-theme] .private-workspace .lr-list .lr-group>:is(.lr-fold,.private-help){padding-inline:0}
html[data-theme] .private-workspace .lr-list .lr-group>:is(.lr-fold,.private-help)>:not(summary),html[data-theme] .private-workspace .lr-list .lr-group>:is(.lr-fold,.private-help)::details-content{padding-inline:16px;box-sizing:border-box}
html[data-theme] .private-workspace .lr-list .lr-planbox .private-planning-panes>details>summary{padding-inline:0}
/* Wide screens: summary beside attention and upcoming, loans across, reports beside the plan. */
@media (min-width:900px){
 html[data-theme] .private-workspace .lr-list{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:16px;row-gap:var(--lr-sect-gap);align-items:start}
 html[data-theme] .private-workspace .lr-list>:not(.lr-plansect,.lr-reports){grid-column:1/-1}
 /* Summary and Upcoming stack on the left, Needs attention fills the right, so neither column leaves a gap. */
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue){grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto 1fr;grid-template-areas:"sum att" "up att";column-gap:16px;row-gap:var(--lr-card-gap);align-items:start}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue)>.lr-side{display:contents}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue)>.lr-summary{grid-area:sum}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue) .lr-queue{grid-area:att}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue) #lr-upcoming{grid-area:up}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue) .lr-queue{align-self:stretch}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue) .lr-queue>.lr-acard{flex:1;display:flex;flex-direction:column}
 html[data-theme] .private-workspace .lr-list .lr-top:has(.lr-queue) .lr-queue>.lr-acard>.lr-acts{margin-top:auto}
 /* Your loans: title, filter and sort on one line. */
 html[data-theme] .private-workspace .lr-list .lr-loans{grid-template-columns:auto minmax(0,1fr) auto;column-gap:16px;align-items:center}
 html[data-theme] .private-workspace .lr-list .lr-loans>.private-list-tools{display:contents}
 html[data-theme] .private-workspace .lr-list .lr-loans>.private-list-tools>h3{grid-column:1;grid-row:1;padding-left:4px}
 html[data-theme] .private-workspace .lr-list .lr-loans>.private-browser{grid-column:2;grid-row:1;justify-self:start}
 html[data-theme] .private-workspace .lr-list .lr-loans>.private-list-tools>.private-sort-menu{grid-column:3;grid-row:1;margin:0}
 html[data-theme] .private-workspace .lr-list .lr-loans>:not(.private-list-tools,.private-browser){grid-column:1/-1}
 /* Footer: the note on the left, buttons at their natural width on the right. */
 html[data-theme] .private-workspace>.dialog-footer:has(.lr-record,[data-action=private-pay]):not(.private-planning-footer){justify-content:flex-end}
 html[data-theme] .private-workspace>.dialog-footer:has(.lr-record,[data-action=private-pay]):not(.private-planning-footer)>.private-footer-note{margin-right:auto}
 html[data-theme] .private-workspace>.dialog-footer:has(.lr-record,[data-action=private-pay]):not(.private-planning-footer)>.button{flex:0 0 auto;width:auto;min-width:168px}
 html[data-theme] .private-workspace .lr-list .lr-plansect{grid-column:2;position:sticky;top:0}
 html[data-theme] .private-workspace .lr-list .lr-reports{grid-column:1}
 html[data-theme] .private-workspace .lr-list .lr-plansect{order:1}
}
/* Folds open and close by height where supported; reduced motion snaps. */
html[data-theme] .private-workspace .lr-list :is(.lr-fold,.private-report,.private-help,.private-strategy-fold){interpolate-size:allow-keywords}
html[data-theme] .private-workspace .lr-list :is(.lr-fold,.private-report,.private-help,.private-strategy-fold)::details-content{block-size:0;overflow-y:clip;transition:block-size var(--motion-move) var(--motion-ease),content-visibility var(--motion-move) allow-discrete}
html[data-theme] .private-workspace .lr-list :is(.lr-fold,.private-report,.private-help,.private-strategy-fold)[open]::details-content{block-size:auto}
@media (prefers-reduced-motion:reduce){html[data-theme] .private-workspace .lr-list ::details-content{transition:none}}
/* Loan rows: the yearly rate sits at the right of the status line, so the borrowed date and the interest each get room. */
html[data-theme] .private-workspace .lr-list .lr-open>.lr-s{grid-column:1;grid-row:2}
html[data-theme] .private-workspace .lr-list .lr-open>.lr-rate{grid-column:2;grid-row:2;justify-self:end;align-self:center;font-size:12px;white-space:nowrap}
html[data-theme] .private-workspace .lr-list .lr-open>.lr-rate .private-rate-band{font-weight:600}
html[data-theme] .private-workspace .lr-list .lr-open>.lr-rate .private-rate-band::before{display:none}
@media (max-width:359px){html[data-theme] .private-workspace .lr-list .lr-open>.lr-d .lr-dw{display:none}}
/* Loan v1 redesign (2026-11-08, from the Apple-style review and its demo). */
/* Tags read in sentence case. */
html[data-theme] .private-workspace .lr-tag,html[data-theme] .lr-sheet-body .lr-tag{text-transform:none;letter-spacing:0}
/* Figures line up: tabular digits wherever amounts and dates are compared. */
html[data-theme] .private-workspace :is(.lr-big,.lr-mid,.lr-a,.lr-v,.lr-tiles dd,.lr-bd-big,.lr-bd-rows dd,.lr-irow-v,.lr-keys b,.lr-when,.lr-asum,.private-loan-total),html[data-theme] .lr-sheet :is(.lr-big,.lr-leg b,.lr-mile,.lr-marks,.lr-steps,.lr-cmp td,.lr-qplan b,.lr-sim-foot){font-variant-numeric:tabular-nums}
/* Large title on All loans. */
html[data-theme] .private-workspace:has(.lr-list)>.dialog-heading>h2{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
/* Record a payment is the strongest button in light mode too: the same blue, deep enough for white text. */
html[data-theme=light] .button.primary.lr-record{background:#2f6fd6;border-color:#2f6fd6;color:#fff}
html[data-theme=light] .button.primary.lr-record .icon{color:#fff}
/* Segmented controls and tabs: a raised thumb on a quiet track, the same in light and dark. */
html[data-theme] .private-workspace :is(.lr-tabs,.lr-seg),html[data-theme] .lr-sheet .lr-seg,html[data-theme] form.lr-form .lr-pick-seg,html[data-theme] form.lr-pay .lr-seg{background:var(--subtle);border-color:transparent}
html[data-theme] .private-workspace .lr-tabs>button[aria-selected="true"],html[data-theme] .private-workspace .lr-seg>button[aria-pressed="true"],html[data-theme] .lr-sheet .lr-seg>button[aria-pressed="true"],html[data-theme] form.lr-form .lr-pick-seg>button[aria-checked="true"],html[data-theme] form.lr-pay .lr-seg>button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px var(--border)}
html[data-theme=dark] .private-workspace .lr-tabs>button[aria-selected="true"],html[data-theme=dark] .private-workspace .lr-seg>button[aria-pressed="true"],html[data-theme=dark] .lr-sheet .lr-seg>button[aria-pressed="true"],html[data-theme=dark] form.lr-form .lr-pick-seg>button[aria-checked="true"],html[data-theme=dark] form.lr-pay .lr-seg>button[aria-pressed="true"]{background:color-mix(in srgb,var(--surface) 82%,#fff);box-shadow:0 1px 3px rgba(0,0,0,.5)}
html[data-theme] .private-workspace :is(.lr-tabs,.lr-seg)>button,html[data-theme] .lr-sheet .lr-seg>button{transition:background-color var(--motion-move) var(--motion-ease),box-shadow var(--motion-move) var(--motion-ease)}
/* Summary: Interest by lender is a row of the top card and opens its own view. */
html[data-theme] .private-workspace .lr-summary .lr-irow{display:flex;align-items:center;gap:8px;width:calc(100% + 32px);margin:14px -16px -16px;padding:12px 16px;min-height:48px;border:0;border-top:1px solid var(--border);border-radius:0 0 var(--radius-card,20px) var(--radius-card,20px);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
html[data-theme] .private-workspace .lr-summary:has(.lr-stats) .lr-irow{margin-bottom:0;border-radius:0}
html[data-theme] .private-workspace .lr-irow-t{font-size:14px;font-weight:600}
html[data-theme] .private-workspace .lr-irow-v{margin-left:auto;font-size:13px;color:var(--muted);text-align:right}
html[data-theme] .private-workspace .lr-irow-chev{width:16px;height:16px;flex:none;color:var(--muted)}
html[data-theme] .private-workspace .lr-irow:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
@media (hover:hover) and (pointer:fine){html[data-theme] .private-workspace .lr-summary .lr-irow:hover{background:var(--subtle)}}
@media (max-width:359px){html[data-theme] .private-workspace .lr-irow{flex-wrap:wrap}html[data-theme] .private-workspace .lr-irow-v{margin-left:0;order:3;flex-basis:100%;text-align:left}}
/* Calmer rows: only rows that need something carry a dot. */
html[data-theme] .private-workspace .lr-flag.calm{display:none}
/* Needs attention keeps its natural height. */
html[data-theme] .private-workspace .lr-list .lr-queue>.lr-acard{flex:none}
/* Loan page: tiles show the value, then the unit underneath, so nothing truncates. */
html[data-theme] .private-workspace .lr-tiles dd{overflow:visible;text-overflow:clip}
html[data-theme] .private-workspace .lr-tiles .lr-unit{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-top:1px}
/* Activity: one summary line above the list. */
html[data-theme] .private-workspace .lr-asum{margin:0 0 10px;font-size:14px;color:var(--muted)}
html[data-theme] .private-workspace .lr-asum b{color:var(--text)}
/* Breakdown: plain figures in sections instead of charts. */
html[data-theme] .private-workspace .lr-bd{display:grid;gap:12px}
html[data-theme] .private-workspace .lr-bd-sec{display:grid;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);padding:16px}
html[data-theme] .private-workspace .lr-bd-k{font-size:13px;font-weight:600;color:var(--muted)}
html[data-theme] .private-workspace .lr-bd-big{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
html[data-theme] .private-workspace .lr-bd .lr-split{display:flex;gap:2px;height:8px;border-radius:4px;overflow:hidden}
html[data-theme] .private-workspace .lr-bd .lr-split>i{display:block;min-width:2px;border-radius:4px}
html[data-theme] .private-workspace .lr-bd .lr-keys{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-bd .lr-keys b{color:var(--text)}
html[data-theme] .private-workspace .lr-bd-line{margin:0;font-size:14px}
html[data-theme] .private-workspace .lr-bd-callout{margin:0;padding:12px 16px;border-radius:var(--radius-card,20px);background:color-mix(in srgb,var(--reference-blue,#7aadee) 16%,var(--surface));font-size:14px;line-height:1.45}
html[data-theme] .private-workspace .lr-bd-rows{margin:0;display:grid}
html[data-theme] .private-workspace .lr-bd-rows>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-bd-rows>div:first-child{border-top:0;padding-top:0}
html[data-theme] .private-workspace .lr-bd-rows dt{font-size:14px;color:var(--muted)}
html[data-theme] .private-workspace .lr-bd-rows dd{margin:0;font-size:14px;font-weight:600;text-align:right}
html[data-theme] .private-workspace .lr-warn{color:var(--warning,#885b13)}
html[data-theme=dark] .private-workspace .lr-warn{color:var(--warning,#e2b462)}
/* Plan tab: one answer and one way into the planner. */
html[data-theme] .private-workspace .lr-plancard{display:grid;gap:4px;justify-items:start}
html[data-theme] .private-workspace .lr-plancard .lr-plan-this{margin-top:10px}
/* Reports open as their own screen. */
html[data-theme] .private-workspace .lr-report-row>summary{cursor:pointer}
html[data-theme] .private-workspace .lr-screen{display:grid;gap:12px;grid-column:1/-1;min-width:0}
html[data-theme] .private-workspace .lr-screen-title{margin:0 4px;font-size:28px;font-weight:700;letter-spacing:-.02em}
html[data-theme] .private-workspace .lr-screen>.lr-group{padding:0}
html[data-theme] .private-workspace .lr-on-screen>summary{display:none}
html[data-theme] .private-workspace .lr-on-screen{border-top:0!important}
/* Desktop: loans and Needs attention on the left; the Plan card and Reports on the right. */
html[data-theme] .private-workspace .lr-list>:is(.lr-main,.lr-aside){display:flex;flex-direction:column;gap:var(--lr-sect-gap);min-width:0}
@media (min-width:900px){
 html[data-theme] .private-workspace .lr-list>.lr-main{grid-column:1}
 html[data-theme] .private-workspace .lr-list>.lr-aside{grid-column:2}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-top:has(.lr-queue){grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"sum" "att" "up"}
 html[data-theme] .private-workspace .lr-list .lr-aside .lr-plansect{position:static;order:0}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-loans{grid-template-columns:auto minmax(0,1fr) auto}
}
/* Planner: full screen on phones, the answer pinned on top, steps of ₹1k and ₹5k, and the payoff curve. */
@media (max-width:899px){
 html[data-theme] .lr-sheet.lr-full{height:100%;max-height:100%;border-radius:0;box-shadow:none}
 html[data-theme] .private-workspace .lr-list .lr-top{row-gap:var(--lr-sect-gap)}
}
html[data-theme] .lr-sheet.lr-full .lr-sheet-head{display:grid;grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr);padding:8px 8px 6px;border-bottom:1px solid var(--border)}
html[data-theme] .lr-sheet.lr-full .lr-sheet-head h3{text-align:center}
html[data-theme] .lr-sheet .lr-back{justify-self:start;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 8px;color:var(--link);font-weight:500}
html[data-theme] .lr-sheet .lr-back .icon{width:18px;height:18px}
html[data-theme] .lr-sheet.lr-full .lr-sheet-body{padding-top:12px}
html[data-theme] .lr-sheet .lr-pin{position:sticky;top:-12px;z-index:4;display:grid;gap:10px;margin:-16px -16px 0;padding:16px;background:var(--surface);border-radius:18px 18px 0 0;transition:padding var(--motion-move) var(--motion-ease),box-shadow var(--motion-move) var(--motion-ease)}
html[data-theme] .lr-sheet .lr-pin.compact{padding:10px 16px;border-radius:0;box-shadow:0 1px 0 var(--border),0 8px 16px -14px rgba(0,0,0,.35)}
html[data-theme] .lr-sheet .lr-pin.compact :is(.lr-leg,.lr-ans .lr-label){display:none}
html[data-theme] .lr-sheet .lr-pin.compact .lr-ans{grid-template-columns:minmax(0,1fr)}
html[data-theme] .lr-sheet .lr-pin.compact .lr-ans .lr-big{font-size:22px}
html[data-theme] .lr-sheet .lr-pin.compact .lr-ans .lr-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .lr-sheet .lr-pin.compact .lr-mile{justify-self:start;padding:4px 9px}
@media (prefers-reduced-motion:reduce){html[data-theme] .lr-sheet .lr-pin{transition:none}}
html[data-theme] .lr-sheet .lr-steps{display:flex;gap:6px}
html[data-theme] .lr-sheet .lr-steps>.chip{flex:1;min-width:0;min-height:40px;justify-content:center;padding-inline:4px;border-radius:var(--radius-control,12px)}
html[data-theme] .lr-sheet .lr-seg.lr-mini{flex:none;padding:2px}
html[data-theme] .lr-sheet .lr-seg.lr-mini>button{flex:none;min-height:32px;padding:4px 12px;font-size:12px}
html[data-theme] .lr-sheet .lr-curve{cursor:pointer}
html[data-theme] .lr-sheet .lr-curve svg{display:block;width:100%;height:auto;touch-action:none}
html[data-theme] .lr-sheet .lr-curve .lr-grid{stroke:var(--border)}
html[data-theme] .lr-sheet .lr-curve text{font-size:14px;fill:var(--muted)}
html[data-theme] .lr-sheet .lr-curve-line{fill:none;stroke:var(--reference-blue,#7aadee);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
html[data-theme] .lr-sheet .lr-curve-guide{stroke:var(--muted);stroke-opacity:.6;stroke-dasharray:3 3}
html[data-theme] .lr-sheet .lr-curve-dot{fill:var(--link);stroke:var(--surface);stroke-width:2.5}
html[data-theme] .lr-sheet [data-qread]{margin:0}
html[data-theme] .lr-sheet .lr-more{display:grid;gap:8px}
html[data-theme] .lr-sheet .lr-more>h4{margin:4px 4px 0;font-size:16px;font-weight:600}
html[data-theme] .lr-sheet .lr-more .lr-plan-more{display:grid;gap:8px}
html[data-theme] .lr-sheet .lr-more .private-planning-hub>h3{display:none}
html[data-theme] .lr-sheet .lr-more .private-planning-hub{margin:0}
html[data-theme] .private-workspace .lr-summary .lr-irow :is(.lr-irow-t,.lr-irow-v){white-space:nowrap}
html[data-theme] .private-workspace .lr-summary .lr-irow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
html[data-theme] .private-workspace .lr-summary .lr-irow>.lr-irow-v{grid-column:1;grid-row:2;margin:0;text-align:left;order:0;flex-basis:auto}
html[data-theme] .private-workspace .lr-summary .lr-irow>.lr-irow-chev{grid-column:2;grid-row:1/span 2;align-self:center}
html[data-theme=light] .private-workspace~* .button.primary[data-action=private-pay],html[data-theme=light] .private-workspace .button.primary[data-action=private-pay]{background:#2f6fd6;border-color:#2f6fd6;color:#fff}
html[data-theme] .private-workspace .private-history>.lr-asum{padding-inline:20px}
html[data-theme] .private-workspace .lr-summary .lr-irow{width:auto;align-self:stretch;justify-self:stretch;box-sizing:border-box}
@media (min-width:900px){
 html[data-theme] .private-workspace .lr-list .lr-main .private-loan-list{display:block;padding:4px 0}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-row:nth-child(n){border-top:0;border-right:0}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-row+.lr-row::before{content:""}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-loans{grid-template-columns:minmax(0,1fr) auto;row-gap:var(--lr-card-gap)}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-loans>.private-browser{grid-column:1/-1;grid-row:2}
 html[data-theme] .private-workspace .lr-list .lr-main .lr-loans>.private-list-tools>.private-sort-menu{grid-column:2;grid-row:1}
}
@media (max-width:399px){html[data-theme] .lr-sheet .lr-pin .lr-ans .lr-big{font-size:26px;white-space:nowrap}html[data-theme] .lr-sheet .lr-pin .lr-leg{min-width:104px}}
/* Light mode keeps the yellow pressed state on Loans' switches (the two-tone light theme); dark keeps the raised thumb. */
html[data-theme=light] .private-workspace .lr-tabs>button[aria-selected="true"],html[data-theme=light] .private-workspace .lr-seg>button[aria-pressed="true"],html[data-theme=light] .lr-sheet .lr-seg>button[aria-pressed="true"],html[data-theme=light] form.lr-form .lr-pick-seg>button[aria-checked="true"],html[data-theme=light] form.lr-pay .lr-seg>button[aria-pressed="true"]{background:var(--sw-thumb,var(--decorative));color:var(--sw-active-text,#2a1d07);box-shadow:none}
html[data-theme=light] .private-workspace :is(.lr-tabs,.lr-seg),html[data-theme=light] .lr-sheet .lr-seg,html[data-theme=light] form.lr-form .lr-pick-seg,html[data-theme=light] form.lr-pay .lr-seg{background:var(--sw-track,var(--subtle));border-color:var(--sw-border,var(--border))}
/* The loan planner already answers the monthly amount; its older projection box stays off the planner. */
html[data-theme] .lr-sheet .lr-more [data-loan-plan-more] :is(.private-plan-disclosure,.private-payoff-estimate){display:none}
/* Exact demo pass (2026-11-08): All loans follows loans-demo.html (large title, inset interest tile, compact
   attention rows, plain filter, three-line rows, one-button Plan card, report rows with icons). */
html[data-theme] .private-workspace:has(.lr-list:not([hidden])) .dialog-heading>h2{opacity:0}
html[data-theme] .private-workspace .lr-list :is(.lr-sect h3,.lr-h,.private-list-tools h3){font-size:19px;font-weight:650;letter-spacing:-.01em}
html[data-theme] .private-workspace .lx-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none}
html[data-theme] .private-workspace .lx-ic>.icon{width:18px;height:18px}
html[data-theme] .private-workspace .lx-warm{background:var(--warning-soft,#fbf0d9);color:var(--warning,#885b13)}
html[data-theme] .private-workspace .lx-red{background:color-mix(in srgb,var(--expense) 14%,var(--surface));color:var(--expense)}
html[data-theme] .private-workspace{--lx-blue:var(--link)}
html[data-theme=light] .private-workspace{--lx-blue:#2f6fd6}
html[data-theme] .private-workspace .lx-blue{background:color-mix(in srgb,var(--lx-blue) 12%,var(--surface));color:var(--lx-blue)}
html[data-theme] .private-workspace .lx-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
html[data-theme] .private-workspace .lx-t{font-weight:600;font-size:15px;color:var(--text)}
html[data-theme] .private-workspace .lx-s{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lx-chev{width:16px;height:16px;flex:none;color:var(--muted)}
html[data-theme] .private-workspace .lx-hero{display:block;padding:20px 16px 16px}
html[data-theme] .private-workspace .lx-hero>.lr-label{display:block;font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-list .lx-hero .lr-big{display:block;font-size:clamp(36px,11vw,44px);margin:6px 0 16px;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lr-list .lx-hero .lr-big[data-fit]{font-size:clamp(28px,9vw,36px)}
html[data-theme] .private-workspace .lx-hero>.lr-split{height:5px;margin:0 0 8px;background:var(--subtle)}
html[data-theme] .private-workspace .lx-hero>.lr-keys{margin-top:0}
html[data-theme] .private-workspace .lr-summary .lx-intchip{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 0;padding:10px 12px;min-height:56px;border:1px solid var(--border);border-radius:var(--radius-control,12px);background:var(--bg);color:inherit;font:inherit;text-align:left;box-sizing:border-box}
html[data-theme] .private-workspace .lx-intchip .lx-t{font-size:14px}
html[data-theme] .private-workspace .lx-intchip .lx-s>span{display:inline-block;white-space:nowrap}
html[data-theme] .private-workspace .lx-intchip .lx-s b{color:var(--text);font-weight:600}
@media (hover:hover) and (pointer:fine){html[data-theme] .private-workspace .lr-summary .lx-intchip:hover{background:var(--subtle)}html[data-theme] .private-workspace :is(.lx-row,.lx-plan):hover{background:var(--subtle)}}
html[data-theme] .private-workspace .lx-next{display:block;width:100%;margin:12px 0 0;min-height:44px;padding:8px 12px;text-align:left;font-size:14px;color:var(--muted)}
html[data-theme] .lx-past-payments{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 16px;font-size:13px}
html[data-theme] .lr-sheet .lr-sim-in>.lx-past-payments{margin-top:-10px;padding:0 0 4px}
html[data-theme] .lr-planbox>.lx-past-payments{border-top:1px solid var(--border)}
html[data-theme] .lx-past-payments>.button{min-height:36px}
html[data-theme] dialog>.lx-loan-toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:14px}
html[data-theme] dialog>.lx-loan-toast>span{min-width:0;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lx-next-date{white-space:nowrap}
html[data-theme] .private-workspace .lx-next b{color:var(--text);font-weight:600}
html[data-theme] .private-workspace .lr-list .lx-attn{display:flex;flex-direction:column;gap:10px}
html[data-theme] .private-workspace .lr-list .lx-attn>.lr-sect{margin:0}
html[data-theme] .private-workspace .lx-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px);overflow:hidden}
html[data-theme] .private-workspace .lx-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:14px 16px;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:left;position:relative;box-sizing:border-box}
html[data-theme] .private-workspace .lx-row+.lx-row::before{content:"";position:absolute;top:0;left:16px;right:0;height:1px;background:var(--border)}
html[data-theme] .private-workspace .lx-row:focus-visible,html[data-theme] .private-workspace .lx-plan:focus-visible,html[data-theme] .private-workspace .lx-intchip:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;padding:3px;min-width:0;width:100%}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg>button{min-height:36px;padding:7px 6px;font-size:14px;font-weight:500}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg>button[aria-pressed="true"]{font-weight:650}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg .count{all:unset;margin-left:4px;color:var(--muted);font-weight:500}
html[data-theme] .private-workspace{--loan-row-tint:color-mix(in srgb,var(--loan-chart-principal) 13%,var(--surface))}
html[data-theme] .private-workspace .lr-list .lx-lrow>.lr-open{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:none;gap:4px 8px;padding:14px 16px;align-items:baseline}
html[data-theme] .private-workspace .lr-list .lr-row+.lr-row::before{left:48px;background:var(--divider)}
html[data-theme] .private-workspace :is(.lx-lrow>.lr-open,.lr-table-row):active{background-color:var(--loan-row-tint)}
.lr-lender-mark{grid-area:1/1/3/2;align-self:start;display:grid;place-items:center;width:24px;height:24px;border-radius:var(--radius-xs);font-size:var(--text-xs);font-weight:650;color:var(--text);background:color-mix(in srgb,var(--lender-mark,var(--loan-chart-principal)) 37%,var(--surface))}
.lr-lender-mark.lr-hue-0,.lr-lender-mark.lr-hue-5{--lender-mark:var(--loan-chart-interest)}
.lr-lender-mark.lr-hue-2,.lr-lender-mark.lr-hue-4{--lender-mark:#d8a6ba}
.lr-lender-mark.lr-hue-3,.lr-lender-mark.lr-hue-7{--lender-mark:#93b8a3}
html[data-theme] .private-workspace .lx-lrow .lr-n{grid-area:1/2;font-size:15px;font-weight:600;min-width:0}
html[data-theme] .private-workspace .lx-lrow .lr-a{grid-area:1/3;font-size:15px;font-weight:650;text-align:right}
html[data-theme] .private-workspace .lr-list .lx-lrow>.lr-open>.lr-s{grid-area:2/2;font-size:13px;line-height:1.4;min-width:0;display:block}
html[data-theme] .private-workspace .lx-lrow .lr-s.lx-amber{color:var(--warning,#885b13)}
html[data-theme] .private-workspace .lx-lrow .lr-s.lx-red{color:var(--expense);background:none}
html[data-theme] .private-workspace .lx-lrow .lr-s>.lr-flag{display:inline-block;width:8px;height:8px;border-radius:50%;margin:0 6px 0 0;vertical-align:1px;position:static}
html[data-theme] .private-workspace .lr-list .lx-lrow>.lr-open>.lr-rate{grid-area:2/3;font-size:13px;color:var(--muted);text-align:right;white-space:nowrap}
html[data-theme] .private-workspace .lx-lrow .lr-rate b{color:var(--text);font-weight:600}
html[data-theme] .private-workspace .lx-lrow .lx-prog{grid-area:3/2/4/4;display:flex;align-items:center;gap:10px;margin-top:6px}
html[data-theme] .private-workspace .lx-lrow .lr-bar{flex:1;height:4px;border-radius:2px;background:var(--subtle);overflow:hidden;position:static;width:auto;margin:0}
html[data-theme] .private-workspace .lx-lrow .lr-bar>i{display:block;height:100%;border-radius:2px;background:var(--loan-chart-principal)}
html[data-theme] .private-workspace .lx-lrow .lr-p{font-size:12px;color:var(--muted);min-width:64px;text-align:right;white-space:nowrap}
html[data-theme] .private-workspace .lx-lrow .lr-p:has(.lx-clear-by){display:block;white-space:normal}
html[data-theme] .private-workspace .lx-clear-by{display:block}
html[data-theme] .private-workspace .lr-list .lx-plan{display:block;width:100%;padding:16px;border:0;background:none;color:inherit;font:inherit;text-align:left;box-sizing:border-box}
html[data-theme] .private-workspace .lx-plan>span{display:block}
html[data-theme] .private-workspace .lx-plan .lx-k{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lx-plan>.lx-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 4px;font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--text)}
html[data-theme] .private-workspace .lx-plan>.lx-h>.lx-chev{width:20px;height:20px}
html[data-theme] .private-workspace .lx-plan .lx-sub{font-size:14px;color:var(--muted)}
html[data-theme] .private-workspace .lx-plan>.lx-order{display:flex;flex-direction:column;margin:12px 0 0;padding:0}
html[data-theme] .private-workspace .lx-plan .lx-li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--border);font-size:14px}
html[data-theme] .private-workspace .lx-plan .lx-li .lr-num{width:20px;height:20px;border-radius:6px;background:var(--subtle);display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--muted);flex:none}
html[data-theme] .private-workspace .lx-plan .lx-li .lr-when{flex:none;white-space:nowrap}
html[data-theme] .private-workspace .lx-plan .lx-li .lr-name{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
html[data-theme] .private-workspace .lx-plan .lx-li .lr-when{color:var(--muted);font-size:13px}
html[data-theme] .private-workspace .lx-plan>.lx-cta{display:inline-flex;margin-top:12px;font-size:14px;font-weight:600;color:var(--lx-blue)}
html[data-theme] .private-workspace .lr-reports>.lr-group{display:flex;flex-direction:column}
html[data-theme] .private-workspace .lr-reports>.lr-group :is(.private-consolidated,.private-ledger-reports){display:contents}
html[data-theme] .private-workspace .lr-reports>.lr-group #lr-balance-table{order:1}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-repaid-row{order:2}
html[data-theme] .private-workspace .lr-reports>.lr-group .private-monthly-payments{order:3}
html[data-theme] .private-workspace .lr-reports>.lr-group .private-calendar-report{order:4}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-targets-row{order:5}
html[data-theme] .private-workspace .lr-reports>.lr-group .lx-comp{display:none}
html[data-theme] .private-workspace .lr-screen .lr-on-screen>summary{display:none!important}
html[data-theme] .private-workspace .lr-on-screen>summary>.lx-ic,html[data-theme] .private-workspace .lr-repaid-row .private-ledger-heading>h3{display:none}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary::after,html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary::before,html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary>:is(.disclosure-chevron,.count){display:none}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary{min-height:64px;padding-block:12px}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary .private-ledger-row-title{flex:1;min-width:0;font-size:15px;font-weight:600}
html[data-theme] .private-workspace .lr-reports>.lr-group .lr-report-row>summary .private-ledger-row-title>small{font-weight:400}
html[data-theme] .private-workspace .lx-rowchev{margin-left:auto}
html[data-theme] .private-workspace .lr-on-screen>summary>.lx-rowchev{display:none}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg{background:var(--subtle);border:1px solid transparent;border-radius:var(--radius-control,12px)}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg>button{background:none;color:var(--muted);border:0;box-shadow:none}
html[data-theme] .private-workspace .lr-list .private-filters.lx-seg>button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px var(--border)}
html[data-theme=dark] .private-workspace .lr-list .private-filters.lx-seg>button[aria-pressed="true"]{background:color-mix(in srgb,var(--surface) 82%,#fff);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.5)}
html[data-theme=light] .private-workspace .lr-list .private-filters.lx-seg{background:var(--sw-track,var(--subtle));border-color:var(--sw-border,var(--border))}
html[data-theme=light] .private-workspace .lr-list .private-filters.lx-seg>button[aria-pressed="true"]{background:var(--sw-thumb,var(--decorative));color:var(--sw-active-text,#2a1d07);box-shadow:none}
html[data-theme] .private-workspace .lr-list .lx-plan{min-width:0}
html[data-theme] .private-workspace .lr-reports>.lr-group>details.lr-report-row>summary,html[data-theme] .private-workspace .lr-reports>.lr-group .private-ledger-reports>details.lr-report-row>summary,html[data-theme] .private-workspace .lr-reports>.lr-group .private-consolidated>details.lr-report-row>summary{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px}
html[data-theme] .private-workspace .lr-reports>.lr-group details.lr-report-row>summary:has(>.lx-ic){grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px;padding:12px 16px;margin:0}
html[data-theme] .private-workspace .lr-reports>.lr-group details.lr-report-row>summary>.lx-ic{grid-column:1;grid-row:1}
html[data-theme] .private-workspace .lr-reports>.lr-group details.lr-report-row>summary>.private-ledger-row-title{grid-column:2;grid-row:1}
html[data-theme] .private-workspace .lr-reports>.lr-group details.lr-report-row>summary>.lx-rowchev{grid-column:3;grid-row:1}
html[data-theme] .private-workspace .lr-list .lr-reports>.lr-group details.lr-report-row:not([open]){padding:0;margin:0}
html[data-theme] .private-workspace .lx-amounts{display:flex;flex-direction:column}
html[data-theme] .private-workspace .lx-amounts>.lx-amt-keys{margin:0 0 4px}
html[data-theme] .private-workspace .lx-amt{display:block;width:100%;padding:10px 0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;color:inherit;font:inherit;text-align:left}
html[data-theme] .private-workspace .lx-amt>span{display:flex}
html[data-theme] .private-workspace .lx-amt-h{justify-content:space-between;gap:10px;font-size:14px}
html[data-theme] .private-workspace .lx-amt-n{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] .private-workspace .lx-amt .lx-amt-bar{display:flex;gap:2px;height:8px;margin-top:8px}
html[data-theme] .private-workspace .lx-amt .lx-amt-bar>i{display:block;border-radius:4px;flex-basis:0}
html[data-theme] .private-workspace .lx-amt-s{font-size:12px;color:var(--muted);margin-top:6px}
html[data-theme] .private-workspace .lx-amt-total{display:flex;justify-content:space-between;margin:0;padding:10px 0 0;border-top:1px solid var(--border);font-size:14px;color:var(--muted)}
html[data-theme] .private-workspace .lx-amt-total b{color:var(--text)}
html[data-theme] .private-workspace .lr-on-screen.lr-repaid-row .private-ledger-summary{border:0;background:none;padding:4px 0;margin:0;box-shadow:none}
html[data-theme] .private-workspace .lr-on-screen.lr-repaid-row .private-ledger-heading{justify-content:flex-end}
/* Exact demo pass: the loan page. */
html[data-theme] .private-workspace:has(.lr-detail:not([hidden])) .dialog-heading :is(.private-header-back,#dialog-title){color:var(--lx-blue);font-weight:500}
html[data-theme] .private-workspace .lr-detail .lx-titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 4px;padding:0;border:0;background:none}
html[data-theme] .private-workspace .lr-detail .lx-titlebar .lx-large{margin:0;font-size:26px;line-height:1.15;font-weight:700;letter-spacing:-.02em;color:var(--text);text-wrap:balance}
html[data-theme] .private-workspace .lr-detail .lx-titlebar .private-loan-since{margin:4px 0 0;font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-detail .lx-dhero{padding:16px}
html[data-theme] .private-workspace .lr-detail .lx-dhero .lr-balance{margin:0;padding:0;border:0;align-items:center}
html[data-theme] .private-workspace .lr-detail .lx-dhero .lr-label{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-detail .lx-dhero .private-loan-total{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:2px 0}
html[data-theme] .private-workspace .lr-detail .lx-dhero .lr-sub{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lr-detail .lx-tiles{margin:14px 0 0}
html[data-theme] .private-workspace .lr-detail .lx-tiles dd{font-size:18px;font-weight:700}
html[data-theme] .private-workspace .lr-detail .lx-next-card{display:flex;align-items:center;gap:12px;padding:12px 16px}
html[data-theme] .private-workspace .lr-detail .lx-next-card>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html[data-theme] .private-workspace .lr-detail .lx-next-card strong{font-size:15px;font-weight:600}
html[data-theme] .private-workspace .lr-detail .lx-next-card .lr-btn{min-height:36px;padding:0 14px;flex:none}
html[data-theme] .private-workspace .lr-detail .lx-next-card.is-overdue .lr-sub{color:var(--expense)}
html[data-theme] .private-workspace .lx-setup{display:flex;flex-direction:column;gap:10px}
html[data-theme] .private-workspace .lx-setup>.lr-sect{display:flex;justify-content:space-between;align-items:center;padding:0 4px;margin:0}
html[data-theme] .private-workspace .lx-setup>.lr-sect h3{margin:0;font-size:19px;font-weight:650;letter-spacing:-.01em}
html[data-theme] .private-workspace .lx-aside{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lx-ok{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--muted);display:grid;place-items:center;flex:none;box-sizing:border-box}
html[data-theme] .private-workspace .lx-ok>.icon{width:14px;height:14px;opacity:0;color:#fff}
html[data-theme] .private-workspace .lx-check.is-done .lx-ok{background:var(--lx-blue);border-color:var(--lx-blue)}
html[data-theme] .private-workspace .lx-check.is-done .lx-ok>.icon{opacity:1}
html[data-theme=dark] .private-workspace .lx-check.is-done .lx-ok>.icon{color:#0b1626}
html[data-theme] .private-workspace .lx-check.is-done .lx-t{color:var(--muted);text-decoration:line-through}
html[data-theme] .private-workspace .lr-detail .private-history>summary{display:none!important}
html[data-theme] .private-workspace .lr-detail .private-history{margin:0;padding:4px 16px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card,20px)}
html[data-theme] .private-workspace .lr-detail .lx-tools{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 8px}
html[data-theme] .private-workspace .lx-chip{min-height:36px;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius-control,12px);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:500}
html[data-theme] .private-workspace .lx-chip[aria-pressed="true"]{background:color-mix(in srgb,var(--lx-blue) 12%,var(--surface));border-color:transparent;color:var(--lx-blue)}
html[data-theme] .private-workspace .lr-detail .lx-month{display:block;margin:0}
html[data-theme] .private-workspace .lr-detail .lx-month select{min-height:36px;height:36px;padding:6px 28px 6px 12px;font-size:13px;font-weight:500;width:auto;border-radius:var(--radius-control,12px)}
html[data-theme] .private-workspace .lr-detail .lx-sbox{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-control,12px);background:var(--surface)}
html[data-theme] .private-workspace .lr-detail .lx-sbox[hidden]{display:none}
html[data-theme] .private-workspace .lr-detail .lx-sbox>.icon{width:16px;height:16px;color:var(--muted);flex:none}
html[data-theme] .private-workspace .lr-detail .lx-sbox input{flex:1;min-width:0;min-height:40px;border:0;background:none;padding:0;box-shadow:none;outline-offset:2px}
html[data-theme] .private-workspace .lr-detail .private-timeline>li{padding:0;margin:0}
html[data-theme] .private-workspace .lr-detail .lx-pay-sum{display:flex!important;align-items:center;gap:10px;min-height:52px;padding:8px 0;cursor:pointer;list-style:none}
html[data-theme] .private-workspace .lr-detail .lx-pay-sum>.split{flex:1;min-width:0;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0}
html[data-theme] .private-workspace .lr-detail .lx-pay-a{display:flex;flex-direction:column;gap:1px}
html[data-theme] .private-workspace .lr-detail .lx-pay-a>strong{font-size:16px;font-weight:650;color:var(--text)}
html[data-theme] .private-workspace .lr-detail .lx-pay-a>.small{font-size:13px}
html[data-theme] .private-workspace .lr-detail .private-history h5{margin:14px 0 2px;font-size:13px;font-weight:600;color:var(--muted)}
html[data-theme] .private-workspace .lr-detail .lx-sbox input[type=search]{border:0;outline:0;box-shadow:none}
html[data-theme] .private-workspace .lr-detail .lx-sbox:focus-within{outline:2px solid var(--lx-blue);outline-offset:1px}
/* Follow-up polish (2026-11-08): next payment with its own review line, confirm split from the row, wide filter, focus. */
html[data-theme] .private-workspace .lr-detail .lx-has-review{display:block;padding:0}
html[data-theme] .private-workspace .lr-detail .lx-next-main{display:flex;align-items:center;gap:12px;padding:12px 16px}
html[data-theme] .private-workspace .lr-detail .lx-next-main>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html[data-theme] .private-workspace .lr-detail .lx-next-main strong{font-size:15px;font-weight:600}
html[data-theme] .private-workspace .lr-detail .lx-next-review{display:flex;align-items:center;gap:10px;padding:10px 16px;font-size:13px;color:var(--warning,#885b13)}
html[data-theme] .private-workspace .lr-detail .lx-next-main+.lx-next-review{border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-detail .lx-next-review>.icon{width:18px;height:18px;flex:none}
html[data-theme] .private-workspace .lr-detail .lx-next-review>span{flex:1;min-width:0}
html[data-theme] .private-workspace .lr-detail .lx-next-review>.lr-btn,html[data-theme] .private-workspace .lr-detail .lx-next-main>.lr-btn{min-height:36px;padding:0 14px;flex:none}
@media(max-width:480px){
 html[data-theme] .private-workspace .lr-detail .lx-dhero .lr-balance{grid-template-columns:minmax(0,1fr);gap:8px}
 html[data-theme] .private-workspace .lr-detail .lx-dhero .private-loan-total{font-size:clamp(24px,7vw,32px)}
 html[data-theme] .private-workspace .lr-detail .lx-dhero .lr-donut{justify-self:start;width:62px;height:62px}
 html[data-theme] .private-workspace .lr-detail .lx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .private-workspace .lr-detail .lx-tiles>div{display:grid;grid-template-rows:minmax(2.4em,auto) auto auto;align-content:start}
 html[data-theme] .private-workspace .lr-detail .lx-tiles dd{white-space:normal;overflow-wrap:anywhere;font-size:clamp(14px,4vw,18px)}
 html[data-theme] .private-workspace .lr-list .lx-lrow>.lr-open>.lr-s{grid-column:2/-1;grid-row:2}
 html[data-theme] .private-workspace .lr-list .lx-lrow>.lr-open>.lr-rate{grid-column:2/-1;grid-row:3;text-align:start}
 html[data-theme] .private-workspace .lr-list .lx-lrow .lx-prog{grid-row:4}
 html[data-theme] .private-workspace .lr-detail :is(.lx-next-card,.lx-next-main){flex-wrap:wrap}
 html[data-theme] .private-workspace .lr-detail .lx-next-card.lx-has-review{display:block}
 html[data-theme] .private-workspace .lr-detail :is(.lx-next-card,.lx-next-main)>.lr-btn{margin-inline-start:auto}
 html[data-theme] .private-workspace .lr-detail .lx-next-card.is-overdue>.lr-btn{flex-basis:100%}
 html[data-theme] .private-workspace .lr-balance-statement .lr-receipt-values{display:grid;grid-template-columns:minmax(0,1fr)}
 html[data-theme] .private-workspace .lr-balance-statement .lr-receipt-values>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:baseline;gap:8px}
 html[data-theme] .private-workspace .lr-balance-statement .lr-receipt-values dd{text-align:end}
}
.private-backdated-impact{display:grid;gap:8px;margin-block:12px;padding:12px;border:1px solid var(--border);border-radius:var(--radius-control)}
.private-backdated-impact :is(h4,dl,dd,p){margin:0}
.private-backdated-impact dl>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.private-backdated-impact dd{font-variant-numeric:tabular-nums}
.private-backdated-impact summary{cursor:pointer;min-height:44px;align-content:center}
html[data-theme] .private-workspace .lr-detail .lx-confirm{margin:-4px 0 8px}
@media (min-width:900px){html[data-theme] .private-workspace .lr-list .private-browser{grid-column:1/-1;width:100%}html[data-theme] .private-workspace .lr-list .private-browser>.private-filters.lx-seg{width:100%;min-width:0;display:grid}}
html[data-theme] form.lr-form :is(input,select,textarea):focus-visible{outline:2px solid var(--lx-blue,var(--link));outline-offset:1px}
html[data-theme] form.lr-form{--lx-blue:var(--link)}
html[data-theme=light] form.lr-form{--lx-blue:#2f6fd6}
html[data-theme] .private-workspace .lr-detail .lr-next.lx-has-review>:is(.lx-next-main,.lx-next-review){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;width:auto}
html[data-theme] .private-workspace .lr-detail .lr-next.lx-has-review .lx-next-main>div{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
/* Report screens (2026-11-08): compact header, tidy padding, calendar swipe, clear view switch, Repaid so far. */
html[data-theme] .private-workspace .lr-screen{gap:10px}
html[data-theme] .private-workspace .lr-screen .lr-screen-nav{margin:0;padding:0;min-height:36px}
html[data-theme] .private-workspace .lr-screen .lr-screen-title{font-size:24px;line-height:1.2;margin:0 4px 4px}
html[data-theme] .private-workspace .lr-screen .lr-on-screen{padding:12px 16px 16px!important}
html[data-theme] .private-workspace .lr-screen .lr-on-screen>:not(summary){margin-inline:0!important}
html[data-theme] .private-workspace .lr-screen .lr-on-screen .lr-cost{margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lr-screen .private-calendar-report.lr-on-screen>p.small.muted{display:none}
html[data-theme] .private-workspace .lr-screen .private-calendar-toolbar{margin:0}
html[data-theme] .private-workspace .lr-screen .private-calendar-days,html[data-theme] .private-workspace .lr-screen .private-calendar-weekdays{gap:2px}
html[data-theme] .private-workspace .lr-screen .private-calendar-days>button{min-height:40px;height:40px;padding:0}
html[data-theme] .private-workspace .lr-screen [data-loan-calendar]{touch-action:pan-y}
html[data-theme] .private-workspace .lr-screen .private-calendar-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;margin:8px 0 0}
html[data-theme] .private-workspace .lr-screen .private-calendar-summary{margin:0 0 6px}
html[data-theme] .private-workspace .private-payments-view>button{color:var(--text);font-weight:500;opacity:1}
html[data-theme] .private-workspace .private-payments-view>button[aria-pressed="true"]{font-weight:650}
html[data-theme] .private-workspace .lr-screen .private-monthly-payments.lr-on-screen>p.small.muted:first-of-type{margin:0 0 10px}
html[data-theme] .private-workspace .lx-repaid{display:flex;flex-direction:column;gap:12px;border:0!important;background:none!important;padding:0!important;margin:0!important;box-shadow:none!important}
html[data-theme] .private-workspace .lx-repaid-top{display:flex;flex-direction:column;gap:4px}
html[data-theme] .private-workspace .lx-repaid-top>span:first-child{font-size:13px;color:var(--muted)}
html[data-theme] .private-workspace .lx-repaid-top>strong{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
html[data-theme] .private-workspace .lx-repaid-top>.lr-split{display:flex;gap:2px;height:8px;margin-top:8px}
html[data-theme] .private-workspace .lx-repaid-top>.lr-split>i{display:block;border-radius:4px;flex-basis:0}
html[data-theme] .private-workspace .lx-repaid .lx-kv{display:flex!important;flex-direction:column;gap:0;margin:0}
html[data-theme] .private-workspace .lx-repaid .lx-kv>div{display:flex!important;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lx-repaid .lx-kv dt{font-size:14px;color:var(--muted);margin:0}
html[data-theme] .private-workspace .lx-repaid .lx-kv dd{font-size:15px!important;font-weight:600!important;margin:0}
html[data-theme] .private-workspace .lx-repaid-note{margin:0}
html[data-theme] .private-workspace .lx-export{align-self:flex-start;display:inline-flex;align-items:center;gap:6px}
html[data-theme] .private-workspace .lx-export>.icon{width:16px;height:16px}
html[data-theme] .private-workspace .lx-amounts>.lx-amt-keys{margin:0 0 8px;display:flex;gap:16px}
html[data-theme] .private-workspace .lx-amt:first-of-type{border-top:0}
html[data-theme] .private-workspace .lx-repaid .lx-kv>div{flex-direction:row!important;text-align:left!important;min-height:0!important;background:none!important;border-radius:0!important}
html[data-theme] .private-workspace .lx-repaid .lx-kv dt{display:flex;align-items:center;gap:6px}
html[data-theme] .private-workspace .lx-repaid .lx-kv dd{text-align:right}
html[data-theme] .private-workspace .lx-amt-intro{margin:0 0 6px}
.lx-short{display:none}
@media (max-width:520px){.lx-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.lx-short{display:inline}}
/* Phones: Loans tables and amount rows fit the screen; amounts stay on one line, labels wrap. The hidden full amount
   stays inside its scroll box so it cannot add page height. */
@media (max-width:520px){
html[data-theme] .payoff-table-scroll{position:relative}
html[data-theme] .payoff-table-scroll table{width:100%;min-width:0}
html[data-theme] :is(.loan-sheet-table,.rate-whatif-table,.lr-cmp){width:100%;min-width:0;table-layout:fixed}
html[data-theme] .private-workspace .loan-sheet-table tr>:first-child{width:40%}
html[data-theme] :is(.lr-plan-more,.lr-more,.rate-whatif){grid-template-columns:minmax(0,1fr)}
html[data-theme] :is(.lr-plan-more,.lr-more,.rate-whatif)>*{min-width:0}
html[data-theme] .loan-progress-table :is(thead,tbody){display:block}
html[data-theme] .loan-progress-table tr{display:grid;grid-template-columns:minmax(0,1.09fr) minmax(0,1fr) minmax(0,1.02fr) minmax(0,1fr) minmax(0,1.02fr)}
html[data-theme] .loan-progress-4 tr{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-theme] .loan-progress-table tr>:first-child{grid-column:1/-1;text-align:left}
html[data-theme] .loan-progress-table tr>:not(:first-child){text-align:right}
html[data-theme] .private-workspace .payoff-table-scroll :is(th,td),html[data-theme] .payoff-table-scroll :is(th,td){padding:8px 2px;font-size:12px;white-space:normal;overflow-wrap:break-word}
html[data-theme] .payoff-table-scroll[aria-label="Lender comparison"] tbody th{overflow-wrap:anywhere}
html[data-theme] .private-workspace .loan-progress-table:not(.loan-progress-4) thead th{padding-inline:1px;overflow-wrap:normal;hyphens:none}
html[data-theme] :is(.payoff-table-scroll,.loan-sheet-table,.rate-whatif-table,.lr-cmp,.payoff-projection) td:has(.lx-short){white-space:nowrap;overflow-wrap:normal;text-align:right;font-variant-numeric:tabular-nums}
html[data-theme] :is(.private-payment-split,.lr-bd-rows,.lr-receipt-values,.private-loan-metrics,.loan-sheet-key-figures,.loan-option-statement,.rate-whatif-outcomes,.payoff-inspection) dd:has(.lx-short),html[data-theme] :is(.lr-catch-row b,.private-next-amount,.lx-pay-a strong,.private-target-link>strong){white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] :is(.private-target-link,.lr-catch-row)>span{min-width:0;overflow-wrap:anywhere}
html[data-theme] .private-workspace .loan-sheet-table .loan-sheet-lender{box-sizing:border-box;min-width:0;padding-left:8px;gap:6px}
html[data-theme] .loan-sheet-lender>span:last-child{flex:1 1 0}
}
html[data-theme] .private-workspace .lx-repaid .lx-kv>[data-k]>dt::before{content:"";width:8px;height:8px;border-radius:4px;background:var(--loan-chart-principal)}
html[data-theme] .private-workspace .lx-repaid .lx-kv>[data-k="int"]>dt::before{background:var(--loan-chart-interest)}
html[data-theme] .private-workspace .lx-amt>.lx-amt-s{display:block}
html[data-theme] .private-workspace .lr-screen .lr-on-screen>.lx-amounts{padding:0!important}
html[data-theme] .private-workspace .lr-screen .lr-on-screen>.lr-cost{padding:12px 0 0!important;margin:12px 0 0!important}
/* Ten more fixes (2026-11-08). */
/* 1. Report screens: back sits in the top bar; the title starts right under it. */
html[data-theme] .private-workspace>.dialog-heading>.lr-head-back{order:-1;display:inline-flex;align-items:center;gap:2px;margin:0 auto 0 -6px;padding:8px 6px;min-height:44px;border:0;background:none;color:var(--lx-blue);font-size:17px;font-weight:500}
html[data-theme] .private-workspace>.dialog-heading>.lr-head-back .icon{width:20px;height:20px}
html[data-theme] .private-workspace>.dialog-heading:has(.lr-head-back)>h2{display:none}
html[data-theme] .private-workspace .lr-screen>.lr-screen-title{margin-top:4px}
/* 2. Next payment: room between the date tile and the text. */
html[data-theme] .private-workspace .lx-next-main{gap:12px!important;align-items:center}
html[data-theme] .private-workspace .lx-next-main>.lr-cal{flex:none;margin:0}
html[data-theme] .private-workspace .lx-next-main>div:not([class]){min-width:0;flex:1 1 auto}
/* 3. Dark mode: Record a payment is a solid blue button, not a pale one. */
html[data-theme]:not([data-theme=light]) :is(.button.primary.lr-record,.private-workspace>.dialog-footer>.button.primary[data-action=private-pay]){background:#2f6fd6;border-color:#2f6fd6;color:#fff}
html[data-theme]:not([data-theme=light]) .button.primary.lr-record .icon{color:#fff}
/* 4. Reading a report: only Record a payment in the footer. */
html[data-theme] .private-workspace:has(.lr-screen)>.dialog-footer [data-action=private-add]{display:none}
html[data-theme] .private-workspace:has(.lr-screen)>.dialog-footer>.lr-record{flex:1 1 auto}
/* 5. Calendar: days with a payment are tinted; scheduled days get a soft outline. */
html[data-theme] .private-workspace .private-calendar-days>button.has-pay{background:color-mix(in srgb,var(--lx-blue) 14%,transparent);border-radius:12px}
html[data-theme] .private-workspace .private-calendar-days>button.has-due{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lx-blue) 45%,transparent);border-radius:12px}
/* 6. Monthly chart: amount above the tallest and latest bars. */
html[data-theme] .private-workspace .lr-mchart .lr-mval{position:absolute;left:50%;transform:translateX(-50%);font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;pointer-events:none}
html[data-theme] .private-workspace .lr-mchart .lr-mcol:first-child .lr-mval{left:0;transform:none}
html[data-theme] .private-workspace .lr-mchart .lr-mcol:last-child .lr-mval{left:auto;right:0;transform:none}
html[data-theme] .private-workspace .lr-mchart-plot{margin-top:18px}
/* 7. Interest charged: scope on its own line, and a Paid / Unpaid key. */
html[data-theme] .private-workspace .lr-cost-head>span>small{display:block;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-cost-head>span{white-space:nowrap}
html[data-theme] .private-workspace .lr-cost-keys{display:flex;gap:14px;margin-top:8px;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-cost-keys>span{display:inline-flex;align-items:center;gap:6px}
html[data-theme] .private-workspace .lr-cost-keys i{display:inline-block;width:8px;height:8px;border-radius:4px}
/* 8. Long loan names wrap (two lines) instead of being cut off. */
html[data-theme] .private-workspace .lx-amt-h{align-items:flex-start}
html[data-theme] .private-workspace .lx-amt-n{white-space:normal!important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:clip}
html[data-theme] .private-workspace .lx-amt-h>b{flex:none}
/* 10. Activity: one inset, not two. */
html[data-theme] .private-workspace .lr-detail .private-history>.lr-asum{padding-inline:0}
html[data-theme] .private-workspace .lr-detail .private-history>div:has(>.private-timeline){margin-inline:0}
/* Phones: review and catch-up screens keep exact amounts, so rows stack instead of squeezing.
   exactTable() in private-loans.js sets the table roles that display:block and grid would otherwise remove. */
.lx-exact{white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:520px){
html[data-theme] .private-workspace .lx-stack-table,html[data-theme] .private-workspace .lx-stack-table tbody{display:block;width:100%}
html[data-theme] .private-workspace .lx-stack-table caption{display:block;padding:8px 12px;text-align:left}
html[data-theme] .private-workspace .lx-stack-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html[data-theme] .private-workspace .lx-stack-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:start;padding:12px;border-top:1px solid var(--divider)}
html[data-theme] .private-workspace .payoff-table-scroll .lx-stack-table tbody :is(th,td){display:block;min-width:0;padding:0;border:0;background:none;text-align:left;font-size:13px;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .payoff-table-scroll .lx-stack-table tbody th{font-weight:600}
html[data-theme] .private-workspace .lx-stack-method tbody th{grid-column:1/-1}
html[data-theme] .private-workspace .lx-stack-table td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:12px;color:var(--muted);white-space:normal}
html[data-theme] .private-workspace .lx-exact-review .private-loan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-theme] .private-workspace .lx-exact-review .private-loan-metrics dd{font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lr-catch-row{display:flex;flex-wrap:wrap;gap:4px 12px}
html[data-theme] .private-workspace .lr-catch-row input{flex:none}
html[data-theme] .private-workspace .lr-catch-row>span{flex:1 1 8em}
html[data-theme] .private-workspace .lr-catch-row b{margin-left:auto;white-space:nowrap}
html[data-theme] .private-repayment-review .private-payment-split{grid-template-columns:minmax(0,1fr);gap:8px}
html[data-theme] .private-repayment-review .private-payment-split>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;min-width:0}
html[data-theme] .private-repayment-review .private-payment-split dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
}
/* Monthly payments > Totals: a full-width auto table shared its spare width by content length, so the long word
   "Principal" got the biggest column. Amount columns now hold one even measure and the month column takes the rest. */
html[data-theme] .private-workspace .private-exact-payments table{width:100%;min-width:0;table-layout:auto}
html[data-theme] .private-workspace .private-exact-payments :is(th,td){padding:10px 12px;white-space:nowrap;overflow-wrap:normal}
html[data-theme] .private-workspace .private-exact-payments tr>:not(:first-child){width:9em;text-align:right;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .private-exact-payments tr>:first-child{width:auto;text-align:left}
@media (max-width:520px){
html[data-theme] .private-workspace .private-exact-payments :is(th,td){padding:8px 4px;font-size:12px}
html[data-theme] .private-workspace .private-exact-payments tr>:not(:first-child){width:5em}
html[data-theme] .private-workspace .private-exact-payments tr>:first-child{padding-left:8px}
html[data-theme] .private-workspace .private-exact-payments tr>:last-child{padding-right:8px}
}
/* Loans review, phase 1 (2026-11-09). */
html[data-theme] .lx-past-payments{display:grid;gap:8px}
html[data-theme] .lr-sheet .lr-sim-in>.lx-past-payments{margin-top:0;padding:12px 0 0;border-top:1px solid var(--border)}
html[data-theme] .lx-past-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
html[data-theme] .lx-past-list>li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
html[data-theme] .lx-past-name{flex:1 1 8em;min-width:0;font-weight:600;overflow-wrap:anywhere}
html[data-theme] .lx-past-list b{white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .lr-sheet .lr-target{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;color:var(--muted)}
html[data-theme] .lr-sheet .lr-target.late>span{color:var(--expense);font-weight:600}
html[data-theme] .lr-sheet .lr-target .text-button{min-height:44px;padding:0;color:var(--link);font-weight:600}
html[data-theme] .lr-sheet .lr-rate-loan{display:block}
html[data-theme] .lr-sheet .lr-rate-loan select{width:100%;min-height:44px}
html[data-theme] .rate-whatif-loan{display:grid;gap:6px;margin-bottom:12px;font-weight:600;font-size:14px}
html[data-theme] .rate-whatif-loan select{width:100%;min-height:44px;font-weight:400}
html[data-theme] .loan-sheet-line,html[data-theme] .loan-sheet-area{stroke-linejoin:miter}
/* Loans review, phase 2 (2026-11-09). */
html[data-theme] .private-workspace .lx-row-with-skip{display:flex;align-items:center;gap:4px;padding-right:12px}
html[data-theme] .private-workspace .lx-row-with-skip>.lx-row{flex:1;min-width:0}
html[data-theme] .private-workspace .lx-skip{flex:none;min-height:44px;padding:0 4px;color:var(--link);font-weight:600}
html[data-theme] .private-workspace .lx-confirm-emis{width:calc(100% - 32px);margin:0 16px 12px;min-height:44px;white-space:normal}
html[data-theme] .private-workspace .private-calendar-row{display:flex;align-items:center;gap:8px}
html[data-theme] .private-workspace .private-calendar-row>.private-target-link{flex:1;min-width:0}
html[data-theme] .private-workspace .private-calendar-row>.lr-btn{flex:none;min-height:44px;padding-inline:12px}
html[data-theme] .private-workspace .private-calendar-days>button.has-overdue{box-shadow:inset 0 0 0 1px var(--expense);border-radius:12px}
html[data-theme] .private-workspace .private-overdue-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--expense)}
html[data-theme] .private-workspace .private-calendar-legend .private-overdue-dot{margin-right:6px}
/* Loans review, phase 3 (2026-11-09): planner layout. Phones run one column: answer, slider, one-time payment, chart, the rest. */
html[data-theme] .lr-sheet .lr-sheet-body{overflow-anchor:none}
html[data-theme] .lr-sheet :is(.lr-col-answer,.lr-col-controls){display:contents}
html[data-theme] .lr-sheet .lr-col-controls>*{order:4}
html[data-theme] .lr-sheet .lr-col-controls>.lr-opt:nth-child(1){order:1}
html[data-theme] .lr-sheet .lr-col-controls>.lr-opt:nth-child(2){order:2}
html[data-theme] .lr-sheet .lr-col-answer>.lr-chart{order:3}
html[data-theme] .lr-sheet .lr-col-controls>.lx-past-payments{margin-top:0;padding:12px 0 0;border-top:1px solid var(--border)}
html[data-theme] .lr-sheet .lr-pin-line{display:none;margin:0;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
@media (max-width:1023px){
 html[data-theme] .lr-sheet .lr-pin.compact{padding:10px 8px}
 html[data-theme] .lr-sheet .lr-pin.compact>:not(.lr-pin-line){display:none}
 html[data-theme] .lr-sheet .lr-pin.compact>.lr-pin-line{display:block;white-space:nowrap}
}
@media (max-width:359px){html[data-theme] .lr-sheet .lr-pin.compact>.lr-pin-line{white-space:normal;font-size:12px}}
@media (min-width:1024px){
 html[data-theme] .lr-sheet-layer{justify-content:center}
 html[data-theme] .lr-sheet{width:100%}
 html[data-theme] .lr-sheet .lr-sim-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;align-items:start}
 html[data-theme] .lr-sheet .lr-col-controls{display:grid;gap:14px;grid-column:1;grid-row:1;min-width:0}
 html[data-theme] .lr-sheet .lr-col-answer{display:grid;gap:14px;grid-column:2;grid-row:1;min-width:0;position:sticky;top:12px;align-self:start}
 html[data-theme] .lr-sheet .lr-col-answer>.lr-pin{position:static;margin:0;padding:0;background:none;border-radius:0}
 html[data-theme] .lr-sheet .lr-curve{max-width:360px}
 html[data-theme] dialog:has(form.lr-form) form.lr-form>.entry-fields{width:100%;max-width:560px;margin-inline:auto}
}
html[data-theme] .lr-sheet [data-lumps]{flex-wrap:wrap}
html[data-theme] .lr-sheet [data-lumps]>button{min-width:0;padding-inline:4px}
html[data-theme] .lr-sheet .lr-emi-goal{display:grid;gap:8px}
html[data-theme] .lr-sheet .lr-emi-goal .lr-seg{flex-wrap:wrap}
html[data-theme] .lr-sheet .lr-emi-goal .lr-seg>button{flex:1 1 40%;white-space:normal}
html[data-theme] .lr-sheet-body .lr-order .lr-name{white-space:normal;overflow-wrap:anywhere}
html[data-theme] .lr-sheet .lr-order-more{justify-self:start;min-height:44px;padding:0;color:var(--link);font-weight:600}
html[data-theme] .lr-sheet .lr-saved{gap:10px}
html[data-theme] .lr-sheet .lr-save-row{display:flex;gap:8px;align-items:stretch}
html[data-theme] .lr-sheet .lr-save-row>input{flex:1;min-width:0;min-height:44px}
html[data-theme] .lr-sheet .lr-save-row>.button{flex:none;min-height:44px}
html[data-theme] .lr-sheet .lr-saved .form-error:empty{display:none}
html[data-theme] .lr-sheet .lr-saved-list{list-style:none;margin:0;padding:0;display:grid}
html[data-theme] .lr-sheet .lr-saved-list:empty{display:none}
html[data-theme] .lr-sheet .lr-saved-list>li{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;padding:6px 0;border-top:1px solid var(--border)}
html[data-theme] .lr-sheet .lr-saved-list>li:first-child{border-top:0}
html[data-theme] .lr-sheet .lr-saved-list .lr-name{flex:1 1 8em;min-width:0;white-space:normal;overflow-wrap:anywhere}
html[data-theme] .lr-sheet .lr-saved-acts{display:flex;gap:4px;margin-left:auto}
html[data-theme] .lr-sheet .lr-saved-acts>.text-button{min-height:44px;padding:0 8px;color:var(--link);font-weight:600}
html[data-theme] .lr-sheet :is([data-emi-detail-body],[data-rate-detail-body],[data-scenario-body]){display:grid;gap:10px;min-width:0;max-width:100%}
html[data-theme] .lr-sheet :is([data-emi-detail-body],[data-rate-detail-body],[data-scenario-body])>*{min-width:0;max-width:100%}
/* Loans review, phase 4 (2026-11-09): polish. One primary button: blue commits, yellow only marks what is selected. */
html[data-theme] dialog:is(.private-workspace,:has([data-private-loans])) :is(.button.primary,.lr-plan),html[data-theme] .lr-sheet .lr-plan{background:#2f6fd6;border-color:#2f6fd6;color:#fff}
html[data-theme] dialog:is(.private-workspace,:has([data-private-loans])) :is(.button.primary,.lr-plan) .icon{color:#fff}
@media (hover:hover) and (pointer:fine){html[data-theme] dialog:is(.private-workspace,:has([data-private-loans])) :is(.button.primary,.lr-plan):hover:not(:disabled),html[data-theme] .lr-sheet .lr-plan:hover:not(:disabled){background:#2a63c0;border-color:#2a63c0;color:#fff}}
html[data-theme=light] dialog:is(.private-workspace,:has([data-private-loans])){--link:#2f6fd6}
html[data-theme=light] dialog:is(.private-workspace,:has([data-private-loans])) .text-button{color:var(--link)}
html[data-theme] .private-workspace:has(.lr-list:not([hidden]))>.dialog-heading{min-height:0;padding-block:4px;border-bottom:0;padding-top:calc(4px + env(safe-area-inset-top,0px));background:inherit;background-image:none}
html[data-theme] .private-workspace[data-scrolled]:has(.lr-list:not([hidden]))>.dialog-heading{box-shadow:0 1px 0 var(--border)}
html[data-theme] .private-pass{position:relative;display:grid}
html[data-theme] .private-pass input{padding-right:64px}
html[data-theme] .private-pass>.private-pass-toggle{position:absolute;right:4px;bottom:0;min-height:44px;padding:0 10px;color:var(--link);font-weight:600}
/* One planner for all loans (2026-11-09): focus chips, the clearing-order timeline, and the loan page's "In your plan" card. */
html[data-theme] .lr-sheet-body>.lr-focus{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .lr-sheet-body .lr-focus-chip{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;text-align:left;overflow-wrap:anywhere;cursor:pointer}
html[data-theme] .lr-sheet-body .lr-focus-chip[aria-pressed="true"]{background:var(--decorative,#ffbb6a);border-color:transparent;color:#2a1d07;font-weight:600}
html[data-theme] .lr-sheet-body .lr-focus-chip:focus-visible,html[data-theme] .lr-sheet-body .lr-tl-step:focus-visible{outline:2px solid var(--link);outline-offset:2px}
html[data-theme] .lr-sheet-body .lr-focus-note{margin:0 4px}
html[data-theme] .lr-sheet-body .lr-tl{display:grid;gap:10px;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-head{display:grid;gap:2px;min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-head .lr-mid{font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
html[data-theme] .lr-sheet-body .lr-tl-list{list-style:none;margin:0;padding:0;display:grid;gap:2px;min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-list>li{min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-list>li[hidden]{display:none}
html[data-theme] .lr-sheet-body .lr-tl-step{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;width:100%;min-height:44px;padding:8px;border:1px solid transparent;border-radius:12px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
html[data-theme] .lr-sheet-body .lr-tl-list>li[data-on] .lr-tl-step{border-color:var(--link);background:color-mix(in srgb,var(--reference-blue,#7aadee) 12%,var(--surface))}
html[data-theme] .lr-sheet-body .lr-tl-main{display:grid;gap:3px;min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:0 10px;min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-row .lr-name{white-space:normal;overflow:visible;overflow-wrap:anywhere;min-width:0}
html[data-theme] .lr-sheet-body .lr-tl-row .lr-when{font-weight:600;color:var(--text);white-space:nowrap}
html[data-theme] .lr-sheet-body .lr-tl-why{font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-tl-lane{display:block;height:6px;margin-top:3px;border-radius:3px;background:var(--subtle);overflow:hidden}
html[data-theme] .lr-sheet-body .lr-tl-lane>i{display:block;height:100%;border-radius:3px;background:var(--reference-blue,#7aadee)}
html[data-theme] .lr-sheet-body .lr-tl[data-has-focus] .lr-tl-list>li:not([data-on]) .lr-tl-lane>i{opacity:.35}
html[data-theme] .lr-sheet-body .lr-tl-roll{margin:0 8px 2px 34px;padding-left:8px;border-left:2px solid var(--border);font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-tl-end{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;padding:6px 8px 2px;font-size:13px;font-weight:700}
html[data-theme] .lr-sheet-body .lr-tl-end .lr-num{color:var(--income)}
html[data-theme] .lr-sheet-body .lr-tl-save{display:grid;gap:4px;padding-top:8px;border-top:1px solid var(--border)}
html[data-theme] .lr-sheet-body .lr-tl-save:empty{display:none}
html[data-theme] .lr-sheet-body .lr-tl-save .lr-note{color:var(--text);line-height:1.4}
html[data-theme] .lr-sheet .lr-from-statement{display:grid;gap:8px}
html[data-theme] .private-workspace .lr-inplan .lr-mid{font-size:20px;font-weight:700}
html[data-theme] .private-workspace .lr-inplan-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:6px 0}
html[data-theme] .private-workspace .lr-inplan-rows dt{font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lr-inplan-rows dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
/* In focus the other loans fold down to their lanes, so the chosen loan and its tools stay close together. */
html[data-theme] .lr-sheet-body .lr-tl[data-has-focus] .lr-tl-list>li:not([data-on]) :is(.lr-tl-why,.lr-tl-roll){display:none}
html[data-theme] .lr-sheet-body .lr-tl-head .lr-note::first-letter{text-transform:uppercase}
@media (min-width:1024px){html[data-theme] .lr-sheet-body .lr-tl-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}html[data-theme] .lr-sheet-body .lr-tl-end{grid-column:1/-1}}
/* Monthly payments as a progress timeline (2026-11-09): insight and charts beside each other when there is room, then one row a month. */
html[data-theme] .private-workspace .lm-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 12px}
html[data-theme] .private-workspace :is(.lm-insight,.lm-progress){min-width:0}
html[data-theme] .private-workspace .lm-progress{--lm-scale:52px;padding-top:12px;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lm-k{display:block;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lm-big{display:block;margin:2px 0 10px;font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lm-pri{background:var(--loan-chart-principal,var(--reference-blue,#7aadee))}
html[data-theme] .private-workspace .lm-int{background:var(--loan-chart-interest,var(--decorative,#ffbb6a))}
html[data-theme] .private-workspace .lm-split{display:flex;gap:2px;height:8px;margin:0 0 8px;border-radius:4px;overflow:hidden}
html[data-theme] .private-workspace :is(.lm-split,.lm-mini)>i{display:block;flex:1 1 0;min-width:2px}
html[data-theme] .private-workspace .lm-keys{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted)}
html[data-theme] .private-workspace .lm-keys b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lm-dot{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;vertical-align:1px}
html[data-theme] .private-workspace .lm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lm-facts>div{min-width:0}
html[data-theme] .private-workspace .lm-facts dt{font-size:12px;line-height:1.3;color:var(--muted)}
html[data-theme] .private-workspace .lm-facts dd{margin:2px 0 0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lm-bridge{margin:4px 0 12px;padding:0 10px;border:1px solid var(--border);border-radius:8px}
html[data-theme] .private-workspace .lm-bridge>summary{min-height:44px;align-content:center;cursor:pointer}
html[data-theme] .private-workspace .lm-bridge .lm-facts{margin:0 0 10px}
html[data-theme] .private-workspace .lm-cleared{margin:12px 0 0;font-size:13px;line-height:1.4}
html[data-theme] .private-workspace .lm-line{display:grid;grid-template-columns:var(--lm-scale) minmax(0,1fr);column-gap:8px;margin:8px 0 14px;max-width:720px}
html[data-theme] .private-workspace .lm-line-scale{height:88px}
html[data-theme] .private-workspace .lm-line-plot{position:relative;height:88px;border-bottom:1px solid var(--border);background:linear-gradient(var(--border),var(--border)) top/100% 1px no-repeat;cursor:pointer}
html[data-theme] .private-workspace .lm-line-plot>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html[data-theme] .private-workspace .lm-line-path{fill:none;stroke:var(--loan-chart-principal,var(--reference-blue,#7aadee));stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
html[data-theme] .private-workspace .lm-line-dot{position:absolute;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--loan-chart-principal,var(--reference-blue,#7aadee))}
html[data-theme] .private-workspace .lm-line-dot:is(.is-on,.is-last){width:10px;height:10px;margin:-5px 0 0 -5px;box-shadow:0 0 0 2px var(--surface)}
html[data-theme] .private-workspace .lm-progress .lr-mchart{grid-template-columns:var(--lm-scale) minmax(0,1fr);margin-top:8px}
html[data-theme] .private-workspace .lm-progress .lr-mchart>.lr-mchart-scale{margin-top:18px}
html[data-theme] .private-workspace .lm-rows{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:4px}
html[data-theme] .private-workspace .lm-row{position:relative;display:grid;gap:6px;min-width:0;margin-left:18px;padding:10px 12px;border:1px solid transparent;border-radius:12px}
html[data-theme] .private-workspace .lm-row::before{content:'';position:absolute;left:-18px;top:-5px;bottom:-5px;width:0;margin-left:4px;border-left:2px solid var(--border)}
html[data-theme] .private-workspace .lm-row::after{content:'';position:absolute;left:-18px;top:18px;width:10px;height:10px;border-radius:50%;background:var(--loan-chart-principal,var(--reference-blue,#7aadee))}
html[data-theme] .private-workspace .lm-row:first-child::before{top:18px}
html[data-theme] .private-workspace .lm-row:last-child::before{bottom:calc(100% - 18px)}
html[data-theme] .private-workspace .lm-row.is-now{border-color:var(--link)}
html[data-theme] .private-workspace .lm-row.is-plan{border:1px dashed var(--border)}
html[data-theme] .private-workspace .lm-row.is-plan::before{border-left-style:dashed}
html[data-theme] .private-workspace .lm-row.is-plan::after{background:var(--surface);border:2px dashed var(--muted);box-sizing:border-box}
html[data-theme] .private-workspace .lm-row-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;min-width:0}
html[data-theme] .private-workspace .lm-month{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;font-weight:600}
html[data-theme] .private-workspace .lm-now{padding:1px 6px;border-radius:8px;font-size:12px;font-weight:600;background:var(--decorative,#ffbb6a);color:#2a1d07}
html[data-theme] .private-workspace .lm-row-head strong{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme] .private-workspace .lm-row.is-plan .lm-row-head strong{font-weight:600}
html[data-theme] .private-workspace .lm-mini{display:flex;gap:2px;height:8px;max-width:100%;border-radius:4px;overflow:hidden}
html[data-theme] .private-workspace .lm-mini-plan{box-sizing:border-box;border:1px dashed var(--muted);background:none}
html[data-theme] .private-workspace .lm-parts{font-size:12px;color:var(--muted)}
.lm-allocations>summary{
 display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer;
 list-style:none;color:var(--link);font-size:var(--text-sm);font-weight:600;overflow-wrap:anywhere;
}
.lm-allocations>summary::-webkit-details-marker{display:none}
.lm-allocations .icon{inline-size:16px;block-size:16px;flex:none}
.lm-allocations[open]>summary .icon{transform:rotate(90deg)}
.lm-allocated-loans,.lm-payment-dates{display:grid;list-style:none;margin:0;padding:0}
.lm-allocated-loans>li{border-top:1px solid var(--divider)}
html[data-theme] .private-workspace .lm-loan-link{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;min-height:44px;
 padding:8px 0;overflow-wrap:anywhere;
}
.lm-loan-link small{display:block;color:var(--muted)}
.lm-payment-dates{gap:4px;padding:0 24px 10px 0;color:var(--muted);font-size:var(--text-xs)}
.lm-payment-dates>li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}

.lr-repaid-total,.lr-repaid-bar,.lx-repaid .lx-kv button,.lr-payment-card-loans button{
 border:0;background:none;color:inherit;font:inherit;cursor:pointer;
}
.lr-repaid-total{
 display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:start;align-items:center;
 gap:4px 12px;text-align:left;padding:0;min-height:44px;
}
.lr-repaid-total>span{grid-column:1;color:var(--muted);font-size:var(--text-sm)}
.lr-repaid-total>strong{grid-column:1;font-size:clamp(24px,5vw,32px);line-height:1.15;font-variant-numeric:tabular-nums}
.lr-repaid-total>.icon{grid-column:2;grid-row:1/3}
.lr-repaid-bar{display:flex;align-items:center;gap:2px;min-height:32px;padding:0}
.lr-repaid-bar>i{display:block;height:8px;flex-basis:0;border-radius:4px}
.lx-repaid .lx-kv>div{position:relative}
.lx-repaid .lx-kv button{padding:0;text-align:left}
.lx-repaid .lx-kv button::after{content:"";position:absolute;inset:0}
.lr-repaid-total[aria-pressed=true],.lx-repaid .lx-kv button[aria-pressed=true],.lr-month-pick[aria-pressed=true]{color:var(--link)}
.lr-month-pick{font-weight:inherit}
html[data-theme] .private-workspace button.lm-mini-pick{
 position:relative;cursor:pointer;padding:0;border:0;
}
.lm-mini-pick::after{content:"";position:absolute;inset:-4px 0}
.lm-mini-pick[aria-pressed=true]{outline:2px solid var(--link);outline-offset:2px}
.lr-payment-card{
 display:grid;gap:12px;min-width:0;padding:clamp(12px,3vw,20px);
 border:1px solid var(--border);border-radius:var(--radius-lg);
 background:color-mix(in srgb,var(--loan-chart-principal) 6%,var(--surface));color:var(--text);
}
.lr-payment-card[hidden]{display:none}
.lr-payment-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.lr-payment-card-head :is(h4,p),.lr-payment-card h5,.lr-payment-card>p{margin:0}
.lr-payment-card-head p{color:var(--muted);font-size:var(--text-sm)}
.lr-payment-card-head button{flex:none;min-inline-size:44px;min-block-size:44px}
.lr-payment-card-total{font-size:clamp(20px,4vw,30px);line-height:1.15;font-variant-numeric:tabular-nums}
.lr-payment-card-metrics,.lr-payment-card-loans{display:grid;gap:0;margin:0;padding:0;list-style:none}
.lr-payment-card-metrics>div,.lr-payment-card-loans button{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;
 min-width:0;padding:8px 0;border-block-start:1px solid var(--divider);
}
.lr-payment-card-metrics dt,.lr-payment-card-loans small{color:var(--muted)}
.lr-payment-card-metrics dt{overflow-wrap:anywhere}
.lr-payment-card-metrics dd,.lr-payment-card-loans strong{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.lr-payment-card-metrics [data-component] dt::before{
 content:"";display:inline-block;width:8px;height:8px;margin-inline-end:6px;border-radius:50%;background:var(--loan-chart-principal);
}
.lr-payment-card-metrics [data-component=interest] dt::before{background:var(--loan-chart-interest)}
.lr-payment-card-loans button{width:100%;min-height:44px;text-align:left;grid-template-columns:minmax(0,1fr) auto 16px}
.lr-payment-card-loans b{overflow-wrap:anywhere}
.lr-payment-card-loans small{display:block}
.lr-payment-card-loans .icon{width:16px;height:16px}
.lr-calculation-method{
 display:grid;gap:12px;min-width:0;padding:14px;
 border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);
}
.lr-calculation-method>legend{padding-inline:6px;font-size:var(--text-sm);font-weight:650}
.lr-calculation-method>label{min-width:0}
.lr-calculation-method>p,.lr-calculation-help>p{margin:0;font-size:var(--text-sm);line-height:1.5}
.lr-calculation-hint{
 display:grid;gap:4px;min-width:0;padding:12px;border:1px solid var(--divider);border-radius:12px;
 background:color-mix(in srgb,var(--loan-chart-principal) 6%,var(--surface));font-size:var(--text-sm);line-height:1.4;
}
.lr-calculation-hint b{font-size:var(--text-base);font-variant-numeric:tabular-nums}
.lr-calculation-help{border-block-start:1px solid var(--divider)}
.lr-calculation-help>summary{min-height:44px;align-content:center;font-size:var(--text-sm);font-weight:600;cursor:pointer}
.lr-method-line{color:var(--muted);font-size:var(--text-sm);font-weight:550;line-height:1.45}
html[data-theme] .private-workspace .lr-summary .lr-keys{
 gap:8px 16px;line-height:1.4;font-variant-numeric:tabular-nums;
}
html[data-theme] .private-workspace .lr-screen-title{
 margin-block:0 12px;font-size:clamp(19px,3.2vw,25px);line-height:1.2;
}

/* Give the selected month's next action a stable surface above the calendar. */
.lr-due-checklist{
 display:grid;gap:12px;min-width:0;margin-block:8px 16px;padding:clamp(12px,3vw,20px);
 border:1px solid var(--border);border-radius:var(--radius-lg);
 background:var(--surface) radial-gradient(ellipse at top right,color-mix(in srgb,var(--loan-chart-principal) 9%,transparent),transparent 66%);
}
.lr-due-checklist>header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px}
.lr-due-checklist>header h4{margin:0;font-size:var(--text-base);font-weight:650;letter-spacing:-.015em}
.lr-due-checklist>header p,.lr-due-checklist>p{margin:0;color:var(--muted);font-size:var(--text-sm)}
.lr-due-checklist>header>strong{
 font-size:clamp(20px,4vw,29px);font-weight:700;line-height:1.15;
 letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.lr-due-list{list-style:none;margin:0;padding:0;display:grid}
.lr-due-row{
 display:grid;grid-template-columns:minmax(96px,.8fr) minmax(0,1.4fr) minmax(0,.85fr) auto;
 gap:4px 12px;align-items:center;min-width:0;padding-block:8px;border-block-start:1px solid var(--divider);
}
.lr-due-row[data-selected]{border-block-start-color:var(--link)}
.lr-due-date,.lr-due-amount{display:grid;gap:3px;min-width:0}
.lr-due-date time,.lr-due-row .lr-due-loan{font-size:var(--text-sm);font-weight:600}
.lr-due-row .lr-due-loan{justify-self:start;text-align:left;overflow-wrap:anywhere;line-height:1.35}
.lr-due-row small{color:var(--muted);font-size:var(--text-xs);line-height:1.35}
.lr-due-amount{text-align:right;font-size:var(--text-sm);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.lr-due-amount strong{font-weight:650}
.lr-due-record{min-height:44px;padding-inline:12px}
.lr-calendar-period{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;
 max-width:100%;padding:4px 8px;border:1px solid transparent;border-radius:10px;
 background:none;color:var(--text);font:inherit;font-weight:650;cursor:pointer;
}
.lr-calendar-period:is(:active,:focus-visible){background:var(--subtle);border-color:var(--border)}
.lr-calendar-period>.icon{width:16px;height:16px;flex:none;color:var(--muted)}
.lr-completed-payments>h5{margin:0 0 6px;font-size:var(--text-sm);font-weight:600;color:var(--muted)}
.lr-completed-row{padding-block:6px}
.lr-paid-status{
 display:inline-flex;align-items:center;justify-self:end;gap:4px;
 font-size:var(--text-xs);font-weight:650;color:var(--positive,var(--link));
}
.lr-paid-status>.icon{width:14px;height:14px}
.lr-earlier-due{border-block-start:1px solid var(--divider)}
.lr-earlier-due>summary{padding-block:12px;font-size:var(--text-sm);font-weight:600;cursor:pointer}
.lr-earlier-due>summary span{margin-inline-start:4px;color:var(--muted)}
.lr-payment-due-context{
 display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;
 padding:10px 12px;border:1px solid var(--divider);border-radius:12px;background:var(--subtle);
 color:var(--muted);font-size:var(--text-sm);
}
.lr-payment-due-context[hidden]{display:none}
.lr-payment-due-context strong{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}
.lr-loan-comparison{background:var(--surface)}
.lr-loan-comparison :is(th,td){overflow-wrap:anywhere;line-height:1.45}
.lr-loan-comparison thead th{font-weight:650}
@media(max-width:639px){
 .lr-due-row{grid-template-columns:minmax(0,1fr) auto}
 .lr-due-date{grid-column:1;grid-row:1}
 .lr-due-loan{grid-column:1;grid-row:2}
 .lr-due-amount{grid-column:2;grid-row:1}
 .lr-due-record,.lr-paid-status{grid-column:2;grid-row:2}
}

html[data-theme] .private-workspace{
 font-family:var(--font-ui);
}
html[data-theme] .private-workspace :is(.lr-sect h3,.lr-screen-title,.private-loan-top h3){
 font-weight:650;letter-spacing:-.018em;text-wrap:balance;
}
html[data-theme] .private-workspace :is(.lr-summary,.lr-payment-card){
 background-image:radial-gradient(ellipse at top right,color-mix(in srgb,var(--loan-chart-principal) 8%,transparent),transparent 65%);
}
html[data-theme] .private-workspace .lr-list .lr-list-toolbar{
 grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;
}
html[data-theme] .private-workspace .lr-list-toolbar .lr-list-view{margin:0;flex:none}
html[data-theme] .private-workspace .lr-list-toolbar :is(.lr-display-trigger,.lr-compare-trigger){
 min-height:44px;display:inline-flex;align-items:center;gap:6px;padding-inline:12px;
 font-size:var(--text-sm);font-weight:550;white-space:nowrap;
}
.lr-display-trigger>.icon{width:16px;height:16px}
html[data-theme] .private-workspace .lr-list-toolbar .lr-compare-trigger{margin-inline-start:auto}
.lr-compare-trigger[aria-pressed=true]{color:var(--link);border-color:var(--link)}
.lr-display-panel{
 position:fixed;inset:var(--lr-display-top,auto) auto var(--lr-display-bottom,auto) var(--lr-display-left,12px);
 margin:0;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);max-height:var(--lr-display-height,calc(100dvh - 24px));
 color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:18px;
 box-shadow:0 12px 36px #0003;padding:12px 14px;overflow:auto;overscroll-behavior:contain;
}
.lr-display-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lr-display-panel>header h4{margin:0;font-size:var(--text-base);font-weight:650}
.lr-display-panel>header button{min-width:44px;min-height:44px}
html[data-theme] .lr-display-panel .lr-table-format-tools{display:grid;gap:0}
.lr-format-option,.lr-progress-option{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
 min-height:52px;padding-block:5px;border-block-start:1px solid var(--divider);
}
.lr-format-option>strong,.lr-progress-option{font-size:var(--text-sm);font-weight:550}
html[data-theme] .private-workspace .lr-display-panel .lr-table-format-tools button{min-height:40px}
.lr-progress-option{
 width:100%;padding-inline:0;border-inline:0;border-block-end:0;color:inherit;
 background:none;font-family:inherit;text-align:left;cursor:pointer;
}
.lr-progress-option>span{
 display:flex;align-items:center;box-sizing:border-box;width:34px;height:20px;padding:2px;
 border:1px solid var(--border);border-radius:30px;background:var(--subtle);
}
.lr-progress-option>span::before{
 content:"";width:14px;height:14px;border-radius:50%;background:var(--muted);
}
.lr-progress-option[aria-pressed=true]>span{justify-content:end;background:var(--link)}
.lr-progress-option[aria-pressed=true]>span::before{background:var(--surface)}
@media(max-width:639px){
 html[data-theme] .private-workspace .lr-list-toolbar .lr-compare-trigger{margin-inline-start:0}
 .lr-display-panel{
  inset:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - 12px);
  border-radius:24px 24px 0 0;padding:12px 16px max(16px,env(safe-area-inset-bottom));
 }
 .lr-display-panel::backdrop{background:#101a3166}
 html[data-theme] .private-workspace .lr-display-panel .lr-table-format-tools button{min-height:44px}
 @media(prefers-reduced-motion:no-preference){
  .lr-display-panel:popover-open{animation:lr-display-rise var(--motion-enter) var(--motion-ease)}
  @keyframes lr-display-rise{from{transform:translateY(100%)}to{transform:none}}
 }
}
html[data-theme] .private-workspace .lm-tags{display:flex;flex-wrap:wrap;gap:4px}
html[data-theme] .private-workspace .lm-tag{padding:2px 8px;border-radius:8px;font-size:12px;line-height:1.35;background:var(--subtle);color:var(--text);overflow-wrap:anywhere;min-width:0}
html[data-theme] .private-workspace .lm-tag.lm-done{background:color-mix(in srgb,var(--income) 16%,var(--surface))}
html[data-theme] .private-workspace .lm-tag.lm-none{background:none;box-shadow:inset 0 0 0 1px var(--border);color:var(--muted)}
@media (min-width:900px){html[data-theme] .private-workspace .lm-top{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start;gap:24px}html[data-theme] .private-workspace .lm-progress{padding:0 0 0 24px;border-top:0;border-left:1px solid var(--border)}}
.private-workspace,.lr-sheet {
 --loan-plot-dot:color-mix(in srgb,var(--muted) 20%,transparent);
 --loan-plot-surface:color-mix(in srgb,var(--subtle) 36%,var(--surface));
 --loan-plot-texture:radial-gradient(circle,var(--loan-plot-dot) .65px,transparent .85px);
}
html[data-theme] .private-workspace .lm-progress{
 container:loan-progress / inline-size;
 --loan-balance-height:clamp(104px,14vw,132px);
 --loan-payment-height:clamp(126px,16vw,166px);
}
html[data-theme] .private-workspace .lm-progress :is(.lm-line-scale,.lm-line-plot){height:var(--loan-balance-height)}
html[data-theme] .private-workspace .lm-progress .lr-mchart :is(.lr-mchart-scale,.lr-mchart-plot){height:var(--loan-payment-height)}
html[data-theme] .private-workspace .lm-progress :is(.lm-line-plot,.lr-mchart-plot){
 border-radius:8px 8px 0 0;
 background:var(--loan-plot-texture) 0 0/12px 12px,var(--loan-plot-surface);
}
.lm-line-area{fill:var(--loan-chart-principal,var(--link));fill-opacity:.13}
html[data-theme] .private-workspace .lm-line-path{stroke-width:2.5;stroke-linecap:round}
html[data-theme] .private-workspace .lm-line-dot:not(.is-on,.is-last){opacity:.55}
.lr-mseg-i,.lm-mini .lm-int,.lm-chart-key .lm-int{
 background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgb(0 0 0 / 18%) 3px 4px,transparent 4px 7px);
}
.lm-chart-key{display:flex;flex-wrap:wrap;gap:4px 14px;margin:4px 0 0;font-size:var(--text-xs);color:var(--muted)}
.lm-chart-key>span{display:inline-flex;align-items:center;gap:6px}
.lm-chart-key i{width:10px;height:10px;border-radius:3px}
.lm-progress .lr-mcol:first-child .lr-mlabel{left:0;transform:none}
.lm-progress .lr-mcol:last-child .lr-mlabel{left:auto;right:0;transform:none}
html[data-theme] .private-workspace .lm-progress .lr-mchart .lr-mcol[aria-pressed=true]{background:color-mix(in srgb,var(--loan-chart-principal) 12%,transparent);border-radius:5px 5px 0 0}
@container loan-progress (max-width:390px){
 html[data-theme] .private-workspace .lm-progress .lr-mval:not([data-peak]){display:none}
 .lm-progress .lr-mcol:nth-child(even):not(:last-child):not([aria-pressed=true]) .lr-mlabel{visibility:hidden}
 .lm-progress .lr-mcol[aria-pressed=true] .lr-mlabel{z-index:1;background:var(--surface);padding-inline:2px}
}
.private-workspace [data-history-chart],.private-workspace .payoff-curve>svg,.lr-sheet .lr-chart{
 min-width:0;
 border-radius:var(--radius-control);
 background:var(--loan-plot-texture) 0 0/12px 12px,var(--loan-plot-surface);
}
.private-workspace .history-line,.private-workspace .payoff-curve-line{stroke:var(--loan-chart-principal);stroke-width:2.5;stroke-linecap:round}
.private-workspace .history-area,.private-workspace .payoff-curve-area{fill:var(--loan-chart-principal);fill-opacity:.13;opacity:1}
.private-workspace .payoff-curve>svg{display:block;width:100%;height:auto;max-height:none;aspect-ratio:340/128}
.private-workspace .payoff-curve svg text{font-size:12px;font-variant-numeric:tabular-nums}
.lr-sheet .lr-chart svg{touch-action:pan-y}
.private-workspace .payoff-curve :is(.payoff-curve-grid,.payoff-curve-mark){vector-effect:non-scaling-stroke}
.private-workspace .payoff-curve svg circle,.private-workspace .history-selected-dot{fill:var(--loan-chart-principal)}
@media(forced-colors:active){
 .lm-line-area,.private-workspace .history-area,.private-workspace .payoff-curve-area{fill:none}
 html[data-theme] .private-workspace .lm-line-path,.private-workspace .history-line,.private-workspace .payoff-curve-line{stroke:CanvasText}
 html[data-theme] .private-workspace .lm-line-dot,.private-workspace .history-selected-dot{background:Highlight;fill:Highlight}
}
/* Planner gaps (2026-11-09): what-ifs named at the top, the timeline's preview label, the debt-free 2x2 grid, pay when I can. */
html[data-theme] .lr-sheet-body>.lr-trying{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13px;font-weight:600;min-width:0}
html[data-theme] .lr-sheet-body>.lr-trying[hidden]{display:none}
html[data-theme] .lr-sheet-body .lr-trying p{display:grid;gap:2px;flex:1 1 180px;margin:0;min-width:0;overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-trying .lr-note{font-weight:400}
html[data-theme] .lr-sheet-body .lr-trying .lr-note:empty,html[data-theme] .lr-sheet-body .lr-trying span:empty{display:none}
html[data-theme] .lr-sheet-body .lr-trying .text-button{min-height:44px;flex:none}
html[data-theme] .lr-sheet-body .lr-trying .text-button[hidden]{display:none}
html[data-theme] .lr-sheet-body .lr-tl-with{margin:6px 0 0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-tl-with[hidden],html[data-theme] .lr-sheet-body .lr-tl-changes[hidden]{display:none}
html[data-theme] .lr-sheet-body .lr-tl-changes{display:grid;gap:2px}
html[data-theme] .lr-sheet-body .lr-tl-changes .lr-note{margin:0;color:var(--text);line-height:1.4;overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-qplans{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme] .lr-sheet-body .lr-qplan{grid-template-columns:minmax(0,1fr);align-content:start;gap:2px;padding:10px;border-radius:12px;min-width:0;min-height:44px;overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-qplan b{grid-row:auto;white-space:normal}
html[data-theme] .lr-sheet-body .lr-qplan>small{line-height:1.3}
html[data-theme] .lr-sheet-body .lr-pw-lead{margin:0;font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
html[data-theme] .lr-sheet-body .lr-pw-clear{width:100%;min-height:44px;justify-content:center;border-radius:12px;white-space:normal;color:var(--text);font-weight:600}
html[data-theme] .lr-sheet-body .lr-leg>[hidden]{display:none}
html[data-theme] .lr-sheet-body [data-rate-save]{justify-self:start;min-height:44px}
html[data-theme] .lr-sheet-body [data-rate-save][hidden]{display:none}
/* Planner Chart / Cards (2026-11-09): the segmented switch, the markers on the curve, and the two views while they morph. */
html[data-theme] .lr-sheet .lr-seg>button[aria-checked="true"]{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px var(--border)}
html[data-theme=dark] .lr-sheet .lr-seg>button[aria-checked="true"]{background:color-mix(in srgb,var(--surface) 82%,#fff);box-shadow:0 1px 3px rgba(0,0,0,.5)}
html[data-theme=light] .lr-sheet .lr-seg>button[aria-checked="true"]{background:var(--sw-thumb,var(--decorative));color:var(--sw-active-text,#2a1d07);box-shadow:none}
html[data-theme] .lr-sheet .lr-view-switch[hidden]{display:none}
html[data-theme] .lr-sheet-body .lr-qplan b small{white-space:nowrap}
html[data-theme] .lr-sheet .lr-morph{position:relative;min-width:0}
html[data-theme] .lr-sheet .lr-view-chart{display:grid;gap:8px;min-width:0}
html[data-theme] .lr-sheet :is(.lr-view-chart,.lr-qplans)[hidden]{display:none}
html[data-theme] .lr-sheet .lr-curve-mark{fill:var(--reference-blue,#7aadee);stroke:var(--surface);stroke-width:2}
html[data-theme] .lr-sheet .lr-curve-mark[data-on]{fill:var(--decorative,#ffbb6a)}
html[data-theme] .lr-sheet .lr-morph[data-morphing]{overflow-anchor:none}
html[data-theme] .lr-sheet .lr-morph[data-morphing]>*{position:absolute;top:0;left:0;right:0}
html[data-theme] .lr-sheet .lr-morph[data-morphing] .lr-qplan{transform-origin:0 0}
html[data-theme] .lr-sheet .lr-morph[data-morphing] .lr-curve-line{stroke-dasharray:1}
/* Repeat has seven choices: two across on phones, four with room. */
html[data-theme] form.lr-form .lr-pick-seg.lr-pick-many{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-theme] form.lr-form .lr-pick-seg.lr-pick-many button{min-width:0;padding:6px 4px}
@media (min-width:640px){html[data-theme] form.lr-form .lr-pick-seg.lr-pick-many{grid-template-columns:repeat(4,minmax(0,1fr))}}
html[data-theme] .lr-sheet-body .lr-next-due{margin:0;font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
html[data-theme] .private-workspace .lx-missed{display:flex;flex-direction:column;gap:8px;padding:12px 16px}
html[data-theme] .private-workspace .lx-missed .lr-sect{margin:0;padding:0}
html[data-theme] .private-workspace .lx-missed p{margin:0}
html[data-theme] .private-workspace .lx-missed-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
html[data-theme] .private-workspace .lx-missed-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:8px 0;border-top:1px solid var(--border)}
html[data-theme] .private-workspace .lx-missed-acts{display:flex;align-items:center;gap:8px}
html[data-theme] .private-workspace .lx-missed-acts .lr-btn{min-height:36px;padding:0 14px}
