/* Colour set (2026-11-28 round 2): one hue per meaning, each with a fill shade and a text ("ink") shade,
   tuned separately for light and dark. Every Loans colour below reads these. */
html[data-theme] dialog.private-workspace,html[data-theme] dialog:has([data-private-loans]){
  --lx-blue:#2f6fd6;--lx-blue-ink:#2659c0;--lx-orange:#f2a23a;--lx-orange-ink:#a85a08;--lx-green:#1f8a4c;--lx-green-ink:#1a7a43;
  --lx-red:#d6452b;--lx-red-ink:#b3381f;--lx-red-solid:#c2412d;
  --loan-chart-principal:var(--lx-blue);--loan-chart-interest:var(--lx-orange)}
html[data-theme=dark] dialog.private-workspace,html[data-theme=dark] dialog:has([data-private-loans]){
  --lx-blue:#7aa7ff;--lx-blue-ink:#9cc0ff;--lx-orange:#ffb35c;--lx-orange-ink:#ffc27a;--lx-green:#5fcf8f;--lx-green-ink:#6fd39a;
  --lx-red:#ff7a63;--lx-red-ink:#ff8a73;--lx-red-solid:#c2412d}
/* Loans design review (2026-11-28): the styles behind the review's five rounds.
   One card style (plain surface, 1px hairline, 20px radius), status tints only for attention (amber) and overdue (red),
   selection shown in ink on a surface pill so orange keeps meaning "interest". Loaded after the other Loans sheets. */

/* ---------- Round 5: one card style ---------- */
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-summary,.lx-hero,.lr-hero,.lx-dhero,.lr-next,.lr-plancard,.lr-bd-sec,.loan-sheet-card){
  background:var(--surface);background-image:none;border:1px solid var(--border);border-radius:20px;box-shadow:none}
/* Folds that used a dashed outline become plain folds. */
html[data-theme] dialog.private-workspace .lm-plan-fold>details{border-style:solid}

/* Selection: ink on a surface pill, never the interest orange. */
html[data-theme] dialog.private-workspace :is(.lr-seg,.lr-tabs,.segmented,.private-filters,.lx-seg,.lr-pick-seg,.lr-dates,.loan-sheet-periods,.private-planning-tabs)>button:is([aria-pressed=true],[aria-selected=true],[aria-checked=true]),
html[data-theme] dialog.private-workspace .lr-sheet :is(.lr-seg,.lr-chips,.lr-focus)>button:is([aria-pressed=true],[aria-selected=true],[aria-checked=true]),
html[data-theme] dialog.private-workspace .loan-sheet-metrics>button[aria-pressed=true],
html[data-theme] dialog.private-workspace .lr-pick-tiles>button[aria-checked=true]{
  background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--text)!important;box-shadow:none!important;font-weight:650}
html[data-theme] dialog.private-workspace .lr-pick-tiles>button[aria-checked=true] small{color:var(--muted)!important}
html[data-theme] dialog.private-workspace .private-filters>button[aria-pressed=true] .count{color:var(--muted)}

/* ---------- Round 3: overview ---------- */
/* Interest by lender is one line under the balance, not a card inside the card. */
html[data-theme] dialog.private-workspace .lr-summary .lx-intline{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin:10px 0 -6px;padding:10px 0 4px;border:0;border-top:1px solid var(--border);border-radius:0;background:none;color:var(--muted);font:inherit;font-size:var(--text-sm,14px);text-align:start;cursor:pointer}
html[data-theme] dialog.private-workspace .lr-summary .lx-intline b{color:var(--text);font-weight:650}
html[data-theme] dialog.private-workspace .lr-summary .lx-intline .lx-chev{flex:none;width:16px;height:16px;color:var(--muted)}

/* One action strip: the most urgent item, then "+N more". */
html[data-theme] dialog.private-workspace .lx-attn-banner .lx-more{flex:none;padding:2px 8px;border-radius:8px;background:color-mix(in srgb,var(--text) 7%,transparent);font-size:var(--text-xs,12px);font-weight:600;color:var(--muted);white-space:nowrap}
html[data-theme] dialog.private-workspace .lx-attn-banner>details>summary{grid-template-columns:auto minmax(0,1fr) auto auto}
html[data-theme] dialog.private-workspace .lx-strip-one>.lx-list{border:1px solid var(--border);border-radius:20px;background:var(--surface);overflow:hidden}
html[data-theme] dialog.private-workspace .lx-attn-banner[data-tone=blue]>details{background:var(--surface);border-color:var(--border)}
html[data-theme] dialog.private-workspace .lx-attn .lx-ic.lx-blue{background:color-mix(in srgb,var(--lx-blue,var(--lx-blue)) 12%,var(--surface));color:var(--lx-blue,var(--lx-blue))}

/* Loan rows: two lines and one bar of the same width on every row. */
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2>.lr-open{grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-items:center;gap:4px 12px}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-lender-mark{grid-row:1/span 3;align-self:start}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-n{grid-column:2;grid-row:1}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-a{grid-column:3;grid-row:1;justify-self:end}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-s{grid-column:2/span 2;grid-row:2;justify-self:start;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:var(--text-sm,14px)}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-s.lx-pill{color:inherit;font-size:var(--text-xs,12px)}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog{grid-column:2/span 2;grid-row:3;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;margin:2px 0 0}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog.lx-nobar{grid-template-columns:minmax(0,1fr)}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog>.lr-bar{width:72px;grid-column:1;grid-row:1;margin:0}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog>.lr-p,
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog>.lr-p:has(.lx-clear-by){display:block;grid-column:2;grid-row:1;margin:0;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--text-xs,12px);color:var(--muted)}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog .lx-clear-by{display:inline;margin:0}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-nobar>.lr-p::before{content:none}

/* Plan card: the arrears line reads as a note, not the headline. */
html[data-theme] dialog.private-workspace .lr-combined .lx-catchup{color:var(--warn-text,#9a5b00)}

/* ---------- Round 2: loan detail ---------- */
html[data-theme] dialog.private-workspace .lx-hero-progress{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:12px 0 0;font-size:var(--text-sm,14px);color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-hero-progress b{color:var(--text)}
html[data-theme] dialog.private-workspace .lx-hero-progress .lr-bar{display:block;height:6px;border-radius:3px;background:var(--subtle);overflow:hidden}
html[data-theme] dialog.private-workspace .lx-hero-progress .lr-bar>i{display:block;height:100%;border-radius:3px;background:var(--loan-chart-principal,var(--lx-blue))}
html[data-theme] dialog.private-workspace .lx-terms-line{margin:12px 0 0;padding:10px 0 0;border-top:1px solid var(--border);font-size:var(--text-sm,14px);color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-terms-line b{color:var(--text);font-weight:650}

/* Activity: the app's own chip and fold instead of browser controls; rows line up with the card text. */
html[data-theme] dialog.private-workspace .private-history .lx-month select{appearance:none;-webkit-appearance:none;min-height:36px;padding:6px 32px 6px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236b7480' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;color:var(--text);font:inherit;font-size:var(--text-sm,14px);font-weight:500}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 0;border-block:1px solid var(--border);font-weight:600;cursor:pointer}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary::-webkit-details-marker{display:none}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary::after{content:"";width:8px;height:8px;margin-right:4px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform var(--motion-move,.2s)}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
html[data-theme] dialog.private-workspace .private-history [data-loan-detail-results] :is(li,.private-ledger-row,.lx-pay-row){padding-inline:0;margin-inline:0}

/* Breakdown in three blocks; the unpaid-interest warning uses the amber attention style. */
html[data-theme] dialog.private-workspace .lx-bd3{display:grid;gap:12px}
html[data-theme] dialog.private-workspace .lx-bd3 .lr-bd-sec{display:grid;gap:8px;padding:14px}
html[data-theme] dialog.private-workspace .lx-bd3 .lr-bd-lead{margin:0;font-size:var(--text-base,15px)}
html[data-theme] dialog.private-workspace .lx-bd-warn{display:grid;gap:4px;justify-items:start;padding:12px 14px;border:1px solid color-mix(in srgb,var(--loan-chart-interest,var(--lx-orange)) 55%,var(--border));border-radius:20px;background:color-mix(in srgb,var(--loan-chart-interest,var(--lx-orange)) 14%,var(--surface))}
html[data-theme] dialog.private-workspace .lx-bd-warn.is-overdue{border-color:color-mix(in srgb,var(--lx-red-solid) 45%,var(--border));background:color-mix(in srgb,var(--lx-red-solid) 8%,var(--surface))}
html[data-theme] dialog.private-workspace .lx-bd-warn>span{font-size:var(--text-sm,14px);color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-bd-warn>.button{margin-top:6px;min-height:36px}

/* Terms: plain words first, the precise method in one fold. */
html[data-theme] dialog.private-workspace .lx-terms-plain{margin:8px 0 0}
html[data-theme] dialog.private-workspace .lx-how{margin:8px 0}
html[data-theme] dialog.private-workspace .lx-how>summary{font-weight:600}

/* Plan tab: this loan's own plan leads. */
html[data-theme] dialog.private-workspace .lx-ownplan{display:grid;gap:4px;margin:0 0 12px;padding:14px}

/* ---------- Round 4: Record a payment ---------- */
html[data-theme] dialog.private-workspace form.lr-pay .lx-quiet{display:none}
html[data-theme] dialog.private-workspace form.lr-pay .lx-collapsed{display:none!important}
html[data-theme] dialog.private-workspace form.lr-pay .lx-after-line{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin:10px 0 0;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;font-size:var(--text-sm,14px);text-align:start;cursor:pointer}
html[data-theme] dialog.private-workspace form.lr-pay .lx-after-line[hidden]{display:none}
html[data-theme] dialog.private-workspace form.lr-pay .lx-after-int{color:var(--muted)}
html[data-theme] dialog.private-workspace form.lr-pay .lx-after-line .lx-chev{flex:none;width:16px;height:16px;color:var(--muted);transform:rotate(90deg);transition:transform var(--motion-move,.2s)}
html[data-theme] dialog.private-workspace form.lr-pay .lx-after-line[aria-expanded=true] .lx-chev{transform:rotate(-90deg)}
html[data-theme] dialog.private-workspace form.lr-pay .lr-quick>button span{font-size:13px}
html[data-theme] dialog.private-workspace form.lr-pay .lx-behind{display:grid;gap:8px;justify-items:start;margin:10px 0 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--lx-red-solid) 40%,var(--border));border-radius:20px;background:color-mix(in srgb,var(--lx-red-solid) 7%,var(--surface));font-size:var(--text-sm,14px)}
html[data-theme] dialog.private-workspace form.lr-pay .lx-behind>span{display:flex;gap:8px;align-items:flex-start}
html[data-theme] dialog.private-workspace form.lr-pay .lx-behind svg{flex:none;width:18px;height:18px;color:var(--lx-red-solid)}
html[data-theme] dialog.private-workspace form.lr-pay .lr-purpose-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);font-weight:600}
html[data-theme] dialog.private-workspace form.lr-pay .lr-purpose-fold>summary small{font-weight:500;color:var(--muted)}

/* ---------- Round 4: Add loan in three steps ---------- */
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-step-off{display:none!important}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-step-head{display:grid;gap:2px;padding:12px 12px 4px}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px;padding:0;list-style:none}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-steps>li{height:4px;border-radius:2px;background:var(--border)}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-steps>li:is(.on,.done){background:var(--text)}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-step-k{font-size:var(--text-xs,12px);color:var(--muted);font-weight:600}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-step-head>strong{font-size:var(--text-lg,20px)}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-step-s{font-size:var(--text-sm,14px);color:var(--muted)}
html[data-theme] dialog.private-workspace .dialog-footer>.button[hidden]{display:none!important}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-rupee{position:relative;display:block}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-rupee>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--muted);pointer-events:none}
html[data-theme] dialog.private-workspace form[data-lx-steps] .lx-rupee>input{padding-left:30px;width:100%}
/* Settings that don't apply stay out of the way. */
html[data-theme] dialog.private-workspace form:has(select[name=kind] option[value=none]:checked) .lr-calculation-method{display:none!important}
html[data-theme] dialog.private-workspace form:has(select[name=scheduleKind] option[value=flexible]:checked) [data-schedule-note]{display:none}
html[data-theme] dialog.private-workspace form .private-entry-choice>.lr-native-label{display:none}

/* ---------- Interest by lender sheet ---------- */
html[data-theme] dialog.private-workspace .loan-sheet .loan-sheet-mark{width:8px!important;height:8px!important;min-width:8px;border-radius:3px!important}

/* ---------- Planner ---------- */
html[data-theme] dialog.private-workspace .lr-sheet .lr-focus{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-height:max-content;scrollbar-width:none;gap:8px;padding-bottom:2px;-webkit-overflow-scrolling:touch}
html[data-theme] dialog.private-workspace .lr-sheet .lr-focus::-webkit-scrollbar{display:none}
html[data-theme] dialog.private-workspace .lr-sheet .lr-focus>button{flex:0 0 auto;white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-sheet-body .lr-sim{padding:0!important;border:0!important;background:none!important}
html[data-theme] dialog.private-workspace .lr-sheet-body .lr-sim-in{border:1px solid var(--border);border-radius:20px!important}
html[data-theme] dialog.private-workspace .lr-sheet .lr-pin{margin-inline:-12px!important}

/* ---------- Dark mode: twin rows share one surface ---------- */
html[data-theme=dark] dialog.private-workspace :is(.lr-summary,.lr-next,.lr-bd-sec,.lr-plancard){background:var(--surface);background-image:none}

html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-prog.lx-nobar>.lr-p{grid-column:1}

/* Interest by lender chart, Apple-style: the headline is the readout, one clean line with a soft fill,
   two faint guides and a floor, labels on the right, a hairline rule and a dot while scrubbing, no slider. */
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart{--lx-line:var(--lx-orange);--lx-fill:var(--lx-orange);position:relative;margin:16px 0 0;padding:0 0 26px;cursor:default;touch-action:pan-y}
html[data-theme=dark] dialog.private-workspace .loan-sheet .lx-chart{--lx-line:var(--lx-orange);--lx-fill:var(--lx-orange)}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-plot{position:relative;margin:0 44px 0 0}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart svg{display:block;width:100%;height:168px!important;overflow:visible;animation:none}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-line{fill:none;stroke:var(--lx-line)!important;stroke-width:2.25px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none!important}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-area{fill:url(#loan-sheet-fill)!important}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-fill-top{stop-color:var(--lx-fill);stop-opacity:.32}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-fill-bottom{stop-color:var(--lx-fill);stop-opacity:0}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-base{stroke:color-mix(in srgb,var(--text) 8%,transparent);stroke-width:1px;stroke-dasharray:none}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-base.lx-floor{stroke:color-mix(in srgb,var(--text) 18%,transparent)}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-plot::before,html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-plot::after{content:none!important;display:none!important}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-plot{background:none!important;background-image:none!important}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-yr{position:absolute;left:auto;right:-44px;top:-7px;bottom:-7px;width:40px;display:flex;flex-direction:column;justify-content:space-between;text-align:left;color:var(--muted);font-size:12px;line-height:14px;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-xaxis{position:absolute;left:0;right:44px;bottom:0;display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-rule{position:absolute;top:-4px;bottom:0;width:1px;margin-left:-.5px;background:color-mix(in srgb,var(--text) 35%,transparent);opacity:0;transition:opacity var(--motion-press);pointer-events:none}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border:2px solid var(--surface);border-radius:50%;background:var(--lx-line);box-shadow:0 0 0 1px color-mix(in srgb,var(--lx-line) 40%,transparent),0 1px 3px rgba(0,0,0,.18);opacity:0;transition:opacity var(--motion-press);pointer-events:none}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-dot.lx-end{opacity:1}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-tip{display:none!important}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart[data-scrubbing] :is(.lx-rule,[data-sheet-dot]){opacity:1}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart[data-scrubbing] .lx-end{opacity:.35}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart:focus-visible{outline:2px solid var(--link,var(--lx-blue));outline-offset:6px;border-radius:8px}
/* While scrubbing, the headline is the readout: the change chip and date range step back. */
html[data-theme] dialog.private-workspace .loan-sheet-card[data-scrubbing] :is(.loan-sheet-chip,.loan-sheet-summary>p){opacity:.3;transition:opacity var(--motion-press)}
html[data-theme] dialog.private-workspace .loan-sheet-card [data-sheet-total]{font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace .loan-sheet .lx-chart :is(.lx-rule,.loan-sheet-dot){transition:none}}

html[data-theme] dialog.private-workspace .loan-sheet :is(.loan-sheet-alloc,.loan-sheet-explanation)>summary{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] dialog.private-workspace .loan-sheet :is(.loan-sheet-alloc,.loan-sheet-explanation)>summary::after{content:"";flex:none;width:8px;height:8px;margin-right:4px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg) translateY(-2px)}
html[data-theme] dialog.private-workspace .loan-sheet :is(.loan-sheet-alloc,.loan-sheet-explanation)[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}

/* Compare four ways: the plan now as a reference line, then three cards that each say what changes, what it saves
   and how much sooner it clears. The biggest saving is marked. */
html[data-theme] dialog.private-workspace .lr-sheet [data-scenario-body]{display:grid;gap:10px;margin-top:8px}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-base{display:grid;gap:2px;padding:12px 14px;border-radius:16px;background:var(--subtle)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-base strong{font-size:var(--text-md,17px);font-weight:650}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-base>span:last-child{font-size:var(--text-sm,14px);color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-k{display:flex;align-items:center;gap:6px;font-size:var(--text-xs,12px);font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-tag{padding:1px 6px;border-radius:6px;background:var(--subtle);font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:0;list-style:none}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc{position:relative;display:grid;align-content:start;gap:4px;padding:14px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc.is-best{border-color:color-mix(in srgb,var(--lx-green) 55%,var(--border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lx-green) 35%,transparent)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-best{justify-self:start;margin-bottom:2px;padding:2px 8px;border-radius:8px;background:color-mix(in srgb,var(--lx-green) 14%,var(--surface));color:var(--lx-green-ink);font-size:12px;font-weight:650}
html[data-theme=dark] dialog.private-workspace .lr-sheet .lx-sc-best{color:var(--lx-green-ink)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-as{font-size:var(--text-sm,14px);color:var(--text)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-v{margin-top:6px;font-size:var(--text-lg,20px);font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc.is-best .lx-sc-v{color:var(--lx-green-ink)}
html[data-theme=dark] dialog.private-workspace .lr-sheet .lx-sc.is-best .lx-sc-v{color:var(--lx-green-ink)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-sc-s{font-size:var(--text-sm,14px);color:var(--muted)}

/* Payment calendar, Apple-style: summary figures, a calm month grid with status dots, then an agenda. */
html[data-theme] dialog.private-workspace [data-loan-calendar]{--cal-paid:var(--lx-green);--cal-due:var(--lx-blue,var(--lx-blue));--cal-late:var(--lx-red);--cal-soft:var(--muted)}
html[data-theme=dark] dialog.private-workspace [data-loan-calendar]{--cal-paid:var(--lx-green);--cal-late:var(--lx-red)}
html[data-theme] dialog.private-workspace .lx-cal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:4px 0 14px;border:1px solid var(--border);border-radius:16px;overflow:hidden}
html[data-theme] dialog.private-workspace .lx-cal-stat{display:grid;gap:2px;padding:10px 12px;min-width:0}
html[data-theme] dialog.private-workspace .lx-cal-stat+.lx-cal-stat{border-inline-start:1px solid var(--border)}
html[data-theme] dialog.private-workspace .lx-cal-stat span{font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-cal-stat b{font-size:var(--text-md,17px);font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] dialog.private-workspace .lx-cal-stat.is-paid b{color:var(--cal-paid)}
html[data-theme] dialog.private-workspace .lx-cal-stat.is-late b{color:var(--cal-late)}
/* Grid: plain numbers, today in a filled ink circle, the picked day in a soft circle, dots underneath. */
html[data-theme] dialog.private-workspace .lx-cal-grid .private-calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin:0 0 4px;text-align:center;font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-cal-grid .private-calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0}
html[data-theme] dialog.private-workspace .lx-cal-grid .private-calendar-days>button{display:grid;justify-items:center;align-content:start;gap:3px;min-width:0;min-height:48px;height:auto;padding:4px 0;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;color:var(--text);font:inherit;cursor:pointer;outline:none}
html[data-theme] dialog.private-workspace .lx-cal-grid .lx-num{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;transition:background-color var(--motion-press),color var(--motion-press)}
html[data-theme] dialog.private-workspace .lx-cal-grid button[aria-pressed=true] .lx-num{background:color-mix(in srgb,var(--text) 10%,transparent);font-weight:650}
html[data-theme] dialog.private-workspace .lx-cal-grid button[aria-current=date] .lx-num{background:var(--text);color:var(--surface);font-weight:650}
html[data-theme] dialog.private-workspace .lx-cal-grid button:focus-visible .lx-num{outline:2px solid var(--link,var(--lx-blue));outline-offset:2px}
html[data-theme] dialog.private-workspace .lx-dots{display:flex;justify-content:center;gap:3px;min-height:6px}
html[data-theme] dialog.private-workspace .lx-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--cal-due)}
html[data-theme] dialog.private-workspace .lx-dot.is-paid{background:var(--cal-paid)}
html[data-theme] dialog.private-workspace .lx-dot.is-late{background:var(--cal-late)}
html[data-theme] dialog.private-workspace .lx-dot.is-soft{background:none;box-shadow:inset 0 0 0 1.5px var(--cal-soft)}
html[data-theme] dialog.private-workspace .lx-cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;padding:0 0 12px;border-bottom:1px solid var(--border);font-size:12px}
html[data-theme] dialog.private-workspace .lx-cal-legend span{display:inline-flex;align-items:center;gap:6px}
html[data-theme] dialog.private-workspace :is(.private-calendar-legend,.private-calendar-day){display:none}
/* Agenda: a date tile, the lender and what it is, the amount and one action. */
html[data-theme] dialog.private-workspace .lx-agenda{margin:16px 0 0}
html[data-theme] dialog.private-workspace .lx-agenda>h4{margin:0 0 6px;font-size:14px;font-weight:650;color:var(--muted);text-transform:none;letter-spacing:0}
html[data-theme] dialog.private-workspace .lx-ag-list{display:grid;margin:0;padding:0;list-style:none}
html[data-theme] dialog.private-workspace .lx-ag{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:60px;padding:8px 0}
html[data-theme] dialog.private-workspace .lx-ag+.lx-ag{border-top:1px solid var(--border)}
html[data-theme] dialog.private-workspace .lx-tile{display:grid;grid-template-rows:auto 1fr;width:40px;overflow:hidden;border-radius:10px;background:var(--subtle);text-align:center;line-height:1}
html[data-theme] dialog.private-workspace .lx-tile small{padding:3px 0 2px;background:color-mix(in srgb,var(--cal-due) 16%,var(--surface));color:var(--cal-due);font-size:12px;font-weight:700;letter-spacing:.02em}
html[data-theme] dialog.private-workspace .lx-tile b{padding:4px 0 5px;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lx-tile.is-late small{background:color-mix(in srgb,var(--cal-late) 16%,var(--surface));color:var(--cal-late)}
html[data-theme] dialog.private-workspace .lx-tile.is-done small{background:color-mix(in srgb,var(--cal-paid) 16%,var(--surface));color:var(--cal-paid)}
html[data-theme] dialog.private-workspace .lx-tile.is-soft small{background:color-mix(in srgb,var(--text) 8%,var(--surface));color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-ag-main{display:grid;gap:2px;min-width:0;padding:0;border:0;background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer}
html[data-theme] dialog.private-workspace .lx-ag-main strong{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] dialog.private-workspace .lx-ag-main span{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-ag-main span svg{width:14px;height:14px;color:var(--cal-paid)}
html[data-theme] dialog.private-workspace .lx-ag.is-late .lx-ag-main span{color:var(--cal-late);font-weight:600}
html[data-theme] dialog.private-workspace .lx-ag-amt{display:grid;justify-items:end;gap:4px}
html[data-theme] dialog.private-workspace .lx-ag-amt b{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme] dialog.private-workspace .lx-ag.is-done .lx-ag-amt b{color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-ag-act{min-height:30px;padding:4px 12px;border:0;border-radius:999px;background:color-mix(in srgb,var(--cal-due) 12%,var(--surface));color:var(--cal-due);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
html[data-theme] dialog.private-workspace .lx-ag.is-late .lx-ag-act{background:var(--cal-late);color:#fff}
html[data-theme] dialog.private-workspace .lx-earlier{margin:10px 0 0;border:1px solid color-mix(in srgb,var(--cal-late) 35%,var(--border));border-radius:16px;padding:0 12px}
html[data-theme] dialog.private-workspace .lx-earlier>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;list-style:none;font-weight:600;cursor:pointer}
html[data-theme] dialog.private-workspace .lx-earlier>summary::-webkit-details-marker{display:none}
html[data-theme] dialog.private-workspace .lx-earlier>summary b{min-width:24px;padding:2px 8px;border-radius:999px;background:var(--cal-late);color:#fff;font-size:12px;text-align:center}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag-list>li.lx-ag{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center;gap:0 12px;margin:0;padding:8px 0;background:none;border-radius:0}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag>.lx-tile{grid-column:1;grid-row:1}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag>.lx-ag-main{grid-column:2;grid-row:1;width:auto;min-height:0;justify-self:stretch}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag>.lx-ag-amt{grid-column:3;grid-row:1}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag-main>span{display:flex;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag-amt>b{justify-self:end;text-align:end}

/* Tear sheet report: a sheet of paper on the screen (warm white in both themes, like a document preview),
   Manrope for the title and figures, Inter for text, tabular numbers, hairline rules, generous margins. */
html[data-theme] dialog.private-workspace .lx-tear-tools{display:grid;gap:10px;margin:0 0 14px}
html[data-theme] dialog.private-workspace .lx-tear-pick{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
html[data-theme] dialog.private-workspace .lx-tear-pick::-webkit-scrollbar{display:none}
html[data-theme] dialog.private-workspace .lx-tear-pick>button{flex:0 0 auto;min-height:36px;padding:6px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer}
html[data-theme] dialog.private-workspace .lx-tear-pick>button[aria-pressed=true]{border-color:var(--text);font-weight:650}
html[data-theme] dialog.private-workspace .lx-tear-print{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:40px}
html[data-theme] dialog.private-workspace .lx-tear-print svg{width:16px;height:16px}
html[data-theme] dialog.private-workspace .lx-tear-stage{padding:0;margin:0 -2px}
html[data-theme] dialog.private-workspace .lx-tear-paper{--ink:#141b26;--soft:#5d6673;--faint:#8b929d;--rule:#e7e3da;--paper:#fffdf8;--blue:var(--lx-blue);--amber:var(--lx-orange);
  display:grid;gap:22px;max-width:720px;margin:0 auto;padding:28px 24px 22px;border-radius:6px;background:var(--paper);color:var(--ink);
  box-shadow:0 1px 2px rgba(20,27,38,.06),0 10px 30px -12px rgba(20,27,38,.18);font-family:InterVariable,Inter,system-ui,sans-serif;font-feature-settings:"tnum" 1,"cv11" 1}
html[data-theme] dialog.private-workspace .lx-tear-paper :is(h4,h5,strong,dd){font-family:Manrope,InterVariable,system-ui,sans-serif}
html[data-theme] dialog.private-workspace .lx-tear-mast{display:grid;gap:6px;padding-bottom:16px;border-bottom:2px solid var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-mast h4{margin:0;font-size:28px;line-height:1.1;font-weight:750;letter-spacing:-.02em;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-mast p{margin:0;font-size:14px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-theme] dialog.private-workspace .lx-tear-hero>div{display:grid;gap:2px}
html[data-theme] dialog.private-workspace .lx-tear-k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-hero strong{font-size:40px;line-height:1;font-weight:750;letter-spacing:-.025em;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-status{padding:4px 10px;border-radius:999px;border:1px solid var(--rule);font-size:13px;font-weight:600;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-status.is-late{border-color:#f0c2b8;background:#fdf0ec;color:var(--lx-red-ink)}
html[data-theme] dialog.private-workspace .lx-tear-status.is-done{border-color:#bfe3cd;background:#eef8f1;color:var(--lx-green-ink)}
html[data-theme] dialog.private-workspace .lx-tear-split{display:flex;gap:3px;height:8px;margin-top:-8px}
html[data-theme] dialog.private-workspace .lx-tear-split>i{display:block;min-width:0;border-radius:4px}
html[data-theme] dialog.private-workspace .lx-tear-split>.p,html[data-theme] dialog.private-workspace .lx-tear-keys .p{background:var(--blue)}
html[data-theme] dialog.private-workspace .lx-tear-split>.i,html[data-theme] dialog.private-workspace .lx-tear-keys .i{background:var(--amber)}
html[data-theme] dialog.private-workspace .lx-tear-keys{display:flex;flex-wrap:wrap;gap:4px 18px;margin:-12px 0 0;font-size:13px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-keys span{display:inline-flex;align-items:center;gap:6px}
html[data-theme] dialog.private-workspace .lx-tear-keys i{width:8px;height:8px;border-radius:2px}
html[data-theme] dialog.private-workspace .lx-tear-keys b{color:var(--ink);font-weight:650}
html[data-theme] dialog.private-workspace .lx-tear-figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-top:1px solid var(--rule)}
@media (min-width:560px){html[data-theme] dialog.private-workspace .lx-tear-figs{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme] dialog.private-workspace .lx-tear-figs>div{display:grid;gap:2px;padding:12px 12px 12px 0;border-bottom:1px solid var(--rule);min-width:0}
html[data-theme] dialog.private-workspace .lx-tear-figs dt{font-size:12px;font-weight:600;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-figs dd{margin:0;font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-figs small{font-size:12px;color:var(--faint)}
html[data-theme] dialog.private-workspace .lx-tear-sec{display:grid;gap:10px}
html[data-theme] dialog.private-workspace .lx-tear-sec>h5{display:flex;align-items:baseline;gap:8px;margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-sec>h5 small{font-family:InterVariable,system-ui,sans-serif;font-weight:500;letter-spacing:0;text-transform:none;color:var(--faint)}
html[data-theme] dialog.private-workspace .lx-tear-chart{margin:0}
html[data-theme] dialog.private-workspace .lx-tear-chart svg{display:block;width:100%;height:auto;overflow:visible}
html[data-theme] dialog.private-workspace .lx-tear-chart .g{stroke:var(--rule);stroke-width:1}
html[data-theme] dialog.private-workspace .lx-tear-chart .b{stroke:#cfc9bc;stroke-width:1}
html[data-theme] dialog.private-workspace .lx-tear-chart .l{fill:none;stroke:var(--blue);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
html[data-theme] dialog.private-workspace .lx-tear-chart .d{fill:var(--blue);stroke:var(--paper);stroke-width:2}
html[data-theme] dialog.private-workspace .lx-tear-chart .f0{stop-color:var(--blue);stop-opacity:.18}
html[data-theme] dialog.private-workspace .lx-tear-chart .f1{stop-color:var(--blue);stop-opacity:0}
html[data-theme] dialog.private-workspace .lx-tear-chart .t{fill:var(--faint);font-size:12px;font-family:InterVariable,system-ui,sans-serif}
html[data-theme] dialog.private-workspace .lx-tear-terms{display:grid;margin:0}
html[data-theme] dialog.private-workspace .lx-tear-terms>div{display:grid;grid-template-columns:minmax(110px,38%) minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}
html[data-theme] dialog.private-workspace .lx-tear-terms dt{font-size:14px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-terms dd{margin:0;font-family:InterVariable,system-ui,sans-serif;font-size:14px;font-weight:600;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lx-tear-table :is(th,td){padding:8px 0 8px 10px;border-bottom:1px solid var(--rule);text-align:right;white-space:nowrap;color:var(--ink);background:none}
html[data-theme] dialog.private-workspace .lx-tear-table :is(th,td):first-child{padding-left:0;text-align:left}
html[data-theme] dialog.private-workspace .lx-tear-table thead th{font-size:12px;font-weight:600;color:var(--soft);border-bottom:1px solid var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-table tbody th{font-weight:500}
html[data-theme] dialog.private-workspace .lx-tear-table tfoot :is(th,td){font-weight:700;border-bottom:0;border-top:1px solid var(--ink)}
@media (max-width:480px){html[data-theme] dialog.private-workspace .lx-tear-table :is(th,td):nth-child(5){display:none}html[data-theme] dialog.private-workspace .lx-tear-paper{padding:22px 16px 18px}html[data-theme] dialog.private-workspace .lx-tear-hero strong{font-size:34px}}
html[data-theme] dialog.private-workspace .lx-tear-none,html[data-theme] dialog.private-workspace .lx-tear-notes{margin:0;font-size:14px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding-top:10px;border-top:1px solid var(--rule);font-size:12px;color:var(--faint)}
/* Printing: only a copy of the page, from a plain host in the body, at A4 margins and without the shadow. */
html[data-theme] dialog.private-workspace.lx-print-host{display:none}
@media print{
  html.lx-printing-tear body>*:not(.lx-print-host){display:none!important}
  html.lx-printing-tear body{background:#fff!important;margin:0}
  html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host{display:block!important;position:static;inset:auto;width:auto;max-width:none;height:auto;max-height:none;margin:0;padding:0;border:0;background:#fff;color:#141b26;overflow:visible}
  html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper{max-width:none;padding:0;box-shadow:none;border-radius:0;background:#fff}
  html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper{gap:14px;font-size:12px}
  html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-chart .lx-tc-plot svg{height:100px}
  html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-hero strong{font-size:32px}
  @page{size:A4;margin:16mm}
}
html[data-theme] dialog.private-workspace .lx-tear-chart .lx-tc-plot{position:relative;margin-right:44px}
html[data-theme] dialog.private-workspace .lx-tear-chart .lx-tc-plot svg{display:block;width:100%;height:140px}
html[data-theme] dialog.private-workspace .lx-tear-chart .lx-tc-y{position:absolute;top:-1px;bottom:-7px;right:-44px;width:40px;display:flex;flex-direction:column;justify-content:space-between;font-size:12px;line-height:14px;color:var(--faint);font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lx-tear-chart .lx-tc-x{display:flex;justify-content:space-between;margin:6px 44px 0 0;font-size:12px;color:var(--faint)}
html[data-theme] dialog.private-workspace .lr-screen .lr-group:has(>.lx-tear-report){padding:0;border:0;background:none;box-shadow:none}
html[data-theme] dialog.private-workspace .lx-tear-report.lr-on-screen>summary{display:none}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag>.lx-ag-amt{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
html[data-theme] dialog.private-workspace.private-workspace [data-loan-calendar] .lx-ag-amt>b{display:block;width:auto}
html[data-theme] dialog.private-workspace .lx-ag-review{padding:2px 8px;border-radius:8px;background:var(--subtle);font-size:13px;font-weight:600;color:var(--muted)}

/* Payoff options: one card per way of ordering the same budget, the recommended one first, minimums as the yardstick. */
html[data-theme] dialog.private-workspace .lr-sheet [data-priority-result]{display:grid;gap:10px;margin-top:8px}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po{display:grid;gap:4px;padding:14px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po.is-rec{border-color:color-mix(in srgb,var(--lx-green) 55%,var(--border));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lx-green) 30%,transparent)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-rec{justify-self:start;margin-bottom:2px;padding:2px 8px;border-radius:8px;background:color-mix(in srgb,var(--lx-green) 14%,var(--surface));color:var(--lx-green-ink);font-size:12px;font-weight:650}
html[data-theme=dark] dialog.private-workspace .lr-sheet .lx-po-rec{color:var(--lx-green-ink)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-k{font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-v{font-size:var(--text-lg,20px);font-weight:700;letter-spacing:-.01em}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-s{font-size:14px;color:var(--text);font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-more{color:#b5462b;font-weight:650}
html[data-theme=dark] dialog.private-workspace .lr-sheet .lx-po-more{color:var(--lx-red-ink)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-why{margin-top:4px;font-size:13px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-min{display:grid;gap:2px;padding:12px 14px;border-radius:16px;background:var(--subtle);font-size:14px}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-min b{margin-top:4px;color:var(--lx-green-ink);font-weight:650}
html[data-theme=dark] dialog.private-workspace .lr-sheet .lx-po-min b{color:var(--lx-green-ink)}
html[data-theme] dialog.private-workspace .lr-sheet .lx-po-warn{margin:0;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--lx-red) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--lx-red) 35%,var(--border));font-size:14px}
/* The planner body is a scrolling grid: without this, a short screen squeezes the chip row (a scroll box has no
   minimum height) and the first card slides over the chips. */
html[data-theme] dialog.private-workspace .lr-sheet-body{grid-auto-rows:max-content}
html[data-theme] dialog.private-workspace .lr-sheet .lr-focus{flex:none;height:auto;min-height:44px}

/* Loan table: rates read as agreed (or all converted on request), figures in tabular columns that never break
   mid-word, one header style, comfortable rows. */
html[data-theme] dialog.private-workspace .lr-terms-table[data-rate-format=quoted] .lr-rate-conv{display:none}
html[data-theme] dialog.private-workspace .lr-terms-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lr-terms-table thead th{padding:10px 12px;font-size:12px;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0;white-space:nowrap;vertical-align:bottom;background:var(--subtle);border-bottom:1px solid var(--border)}
html[data-theme] dialog.private-workspace .lr-terms-table :is(tbody th,td){padding:12px;vertical-align:top;border-bottom:1px solid var(--border);word-break:normal;overflow-wrap:normal;hyphens:none}
html[data-theme] dialog.private-workspace .lr-terms-table tbody tr:last-child>*{border-bottom:0}
html[data-theme] dialog.private-workspace .lr-terms-table :is(td,th).lr-table-number,html[data-theme] dialog.private-workspace .lr-terms-table td:is(:nth-child(3),:nth-child(4),:nth-child(5)){text-align:right;white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-date,time){white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-rate-details>summary{list-style:none;display:inline}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-rate-details>summary::-webkit-details-marker{display:none}
html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-rate-month,.lr-table-rate-year){display:inline-block;white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-rate-value{font-weight:650;color:var(--text);text-decoration:none}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-unit{font-size:13px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-no-interest{white-space:nowrap;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-name{font-weight:600}
html[data-theme] dialog.private-workspace .lr-table-shell{border:1px solid var(--border);border-radius:20px;overflow:hidden;background:var(--surface)}
@media (max-width:480px){html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td){padding:10px 8px}html[data-theme] dialog.private-workspace .lr-terms-table :is(tbody th,td):first-child{padding-left:12px}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td):last-child{padding-right:12px}}
html[data-theme] dialog.private-workspace .lr-terms-table{table-layout:auto!important}
html[data-theme] dialog.private-workspace .lr-terms-table col{width:auto!important}
html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(5){white-space:nowrap;min-width:72px}
html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(5) .lr-table-unit{display:block}
html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-tenure,td.lr-table-tenure){white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-terms-table tbody tr{border:0!important;box-shadow:none!important;background:none}
html[data-theme] dialog.private-workspace .lr-terms-table tbody th{vertical-align:top;text-align:left}
html[data-theme] dialog.private-workspace .lr-terms-table tbody th .lr-table-open{display:grid;gap:2px;width:100%;padding:0;text-align:left;align-content:start}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-when{font-size:14px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-terms-table td{color:var(--text)}
html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th:first-child,tbody th){min-width:11em;word-break:normal;overflow-wrap:normal}
@media (max-width:480px){html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th:first-child,tbody th){min-width:0}}
html[data-theme] dialog.private-workspace .lr-terms-table thead th.lr-table-interest-due{color:var(--muted)!important}
html[data-theme] dialog.private-workspace .lr-terms-table td.lr-table-interest-due,html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(4){color:var(--text)!important}
html[data-theme] dialog.private-workspace .lr-table-shell{overflow-x:auto;overflow-y:hidden}
@media (min-width:640px){html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(5) .lr-table-unit{display:inline}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th:first-child,tbody th){min-width:9em}}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-progress[inert]{display:none}
/* The list column on a laptop is ~520px wide: use the compact table (date and tenure under the name) up to 640px. */
@container (max-width:640px){
  html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-date,.lr-table-wide,.lr-table-tenure){display:none}
  html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-compact{display:inline}
  html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-compact.lr-table-when{display:block}
  html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th:first-child,tbody th){min-width:0}
  html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(5) .lr-table-unit{display:block}
}
html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-rate-details,.lr-table-rate-details *){white-space:nowrap}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-when :is(time,span){font-size:13px}
/* Sort menu: "Show as" is a caption over a two-way switch, inside the panel. */
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;width:auto;margin:6px 0 0;padding:8px 8px 4px;border:0;border-top:1px solid var(--border);border-radius:0;background:none}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view>.lx-menu-h{grid-column:1/-1;display:block;padding:0 4px 2px;background:none!important;color:var(--muted)!important;font-size:12px;font-weight:600;min-height:0;border:0!important}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view>button{min-height:36px;padding:6px 10px;border:1px solid var(--border)!important;border-radius:12px;background:var(--surface)!important;color:var(--text)!important;font-weight:500}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view>button[aria-pressed=true]{border-color:var(--text)!important;font-weight:650}
/* Empty states: a plain card with one sentence and one action (no dashed outline). */
html[data-theme] dialog.private-workspace .private-empty{display:grid;justify-items:center;gap:8px;padding:28px 20px;border:1px solid var(--border)!important;border-style:solid!important;border-radius:20px;background:var(--surface);text-align:center}
html[data-theme] dialog.private-workspace .private-empty>svg{width:28px;height:28px;color:var(--muted)}
html[data-theme] dialog.private-workspace .private-empty>strong{font-size:var(--text-md,17px)}
html[data-theme] dialog.private-workspace .private-empty>p{max-width:32ch;margin:0;color:var(--muted)}
html[data-theme] dialog.private-workspace .private-empty>.button{margin-top:6px;min-height:44px}
html[data-theme] dialog.private-workspace .lr-reports[hidden]{display:none}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view{grid-template-columns:1fr 1fr!important}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view::before,html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view::after{display:none!important;content:none!important}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view{grid-auto-flow:row!important;grid-auto-columns:auto!important}
html[data-theme] dialog.private-workspace .private-sort-menu>div>.lr-list-view{width:100%!important;justify-self:stretch!important;margin-inline:0!important}

/* ---------- Round 2 (2026-11-28) ---------- */
/* 2. Long names: two lines, then an ellipsis (the loan page shows the whole name). */
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-n,
html[data-theme] dialog.private-workspace .lx-attn .lx-t,
html[data-theme] dialog.private-workspace .lx-ag-main strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
/* 3. The attention strip keeps its amount: the detail wraps to a second line instead of being cut. */
html[data-theme] dialog.private-workspace .lx-attn .lx-s{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;text-overflow:clip}
/* 4. Every tap target at least 44px tall. */
html[data-theme] dialog.private-workspace :is(.private-filters>button,.lx-tear-pick>button,.lr-quick>button,.lr-dates>button,.lr-seg>button,.lx-seg>button,.lr-tabs>button,.private-sort-menu>summary,.lr-focus>button,.loan-sheet-periods>button,.loan-sheet-metrics>button,.lx-ag-act,.private-sort-menu>div>.lr-list-view>button){min-height:44px}
html[data-theme] dialog.private-workspace :is(details.lr-fold,details.lr-priority,details.lx-how,details.lx-earlier)>summary{min-height:44px}
/* 5. Dark mode contrast: every text colour at 4.5:1 or better on its card. */
html[data-theme=dark] dialog.private-workspace .lr-combined .lx-catchup{color:var(--lx-orange-ink)}
html[data-theme=dark] dialog.private-workspace [data-loan-calendar]{--cal-late-solid:var(--lx-red-solid)}
html[data-theme=dark] dialog.private-workspace .lx-ag.is-late .lx-ag-act,html[data-theme=dark] dialog.private-workspace .lx-earlier>summary b{background:var(--lx-red-solid);color:#fff}
html[data-theme] dialog.private-workspace .lx-tear-paper{--faint:#6b7380}
html[data-theme=light] dialog.private-workspace [data-loan-calendar]{--cal-paid:var(--lx-green-ink);--cal-late:var(--lx-red-ink);--cal-due:var(--lx-blue-ink)}
html[data-theme=dark] dialog.private-workspace [data-loan-calendar]{--cal-paid:var(--lx-green);--cal-late:var(--lx-red-ink);--cal-due:var(--lx-blue)}
html[data-theme] dialog.private-workspace .lx-attn-banner[data-tone=red] :is(.lx-s,.lx-more),html[data-theme] dialog.private-workspace .lx-attn-banner[data-tone=warm] :is(.lx-s,.lx-more){color:color-mix(in srgb,var(--text) 78%,var(--muted))}
html[data-theme=light] dialog.private-workspace .lx-tile small{color:color-mix(in srgb,var(--cal-due) 78%,#000)}
html[data-theme=light] dialog.private-workspace .lx-tile.is-late small{color:color-mix(in srgb,var(--cal-late) 80%,#000)}
html[data-theme=light] dialog.private-workspace .lx-tile.is-done small{color:color-mix(in srgb,var(--cal-paid) 80%,#000)}
html[data-theme=light] dialog.private-workspace .lx-tile.is-soft small{color:#4f5763}
html[data-theme] dialog.private-workspace :is(.lr-seg,.segmented)>button[aria-pressed=false]{color:color-mix(in srgb,var(--text) 82%,var(--muted))}

/* 6. One type scale for Loans: 34 balance · 28 page title · 20 section · 17 names and figures · 15 body · 13 captions. */
html[data-theme] dialog.private-workspace{--t-balance:34px;--t-title:28px;--t-section:20px;--t-figure:17px;--t-body:15px;--t-caption:13px}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-big,.private-loan-total){font-size:var(--t-balance)!important;line-height:1.1;letter-spacing:-.02em}
html[data-theme] dialog.private-workspace.private-workspace:has(.lr-list:not([hidden])):not(:has(form))>.dialog-heading h2{font-size:var(--t-title)!important;letter-spacing:-.02em}
html[data-theme] dialog.private-workspace.private-workspace :is(.lx-large,.lr-screen-title){font-size:var(--t-title)!important;line-height:1.15;letter-spacing:-.02em}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-h,.lr-sect>h3,.lx-agenda>h4,.lr-bd-k){font-size:var(--t-section)!important;letter-spacing:-.01em}
html[data-theme] dialog.private-workspace.private-workspace .lr-bd-k{font-size:var(--t-caption)!important;letter-spacing:0}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-list .lx-row2 .lr-n,.lr-list .lx-row2 .lr-a,.lx-attn .lx-t,.lx-ag-main strong,.lr-keys b,.lx-cal-stat b,.lr-mid,.lx-po-v,.lx-sc-v){font-size:var(--t-figure)!important}
html[data-theme] dialog.private-workspace.private-workspace :is(.lx-s,.lx-intline,.lr-sub,.lx-terms-line,.lx-hero-progress,.lr-asum,.lx-ag-main span,.lr-list .lx-row2 .lr-s:not(.lx-pill),.lx-sc-as,.lx-po-s,.lr-bd-line,.lr-bd-lead,.private-filters>button,.lr-tabs>button,.lx-seg>button){font-size:var(--t-body)!important}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-label,.lr-keys,.lr-keys span,small,.lx-k,.lx-po-k,.lx-sc-k,.lx-po-why,.lr-list .lx-row2 .lx-prog>.lr-p,.lx-cal-stat span,.lx-cal-legend,.lr-note,.lx-step-k,.lx-step-s){font-size:var(--t-caption)!important}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-list .lx-row2 .lr-s.lx-pill,.lx-tile small,.lx-more,.lx-po-rec,.lx-sc-best,.lx-sc-tag){font-size:12px!important}

/* 7. Large titles: "Loans" settles to a bar-sized title once content scrolls; a loan's name fades into the bar. */
html[data-theme] dialog.private-workspace.private-workspace>.dialog-heading h2{transition:font-size var(--motion-enter) var(--motion-ease),letter-spacing var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace.private-workspace[data-scrolled]:has(.lr-list:not([hidden])):not(:has(form))>.dialog-heading h2{font-size:17px!important;letter-spacing:0}
html[data-theme] dialog.private-workspace>.dialog-heading{position:sticky}
html[data-theme] dialog.private-workspace .lx-bar-title{position:absolute;left:50%;top:50%;max-width:52%;transform:translate(-50%,-30%);opacity:0;font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:opacity var(--motion-enter) var(--motion-ease),transform var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lx-bar-title.is-on{opacity:1;transform:translate(-50%,-50%)}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace :is(.lx-bar-title,.dialog-heading h2){transition:none}}

/* 8. Record a payment: essentials in the first screen, tighter rhythm, details folded. */
html[data-theme] dialog.private-workspace form.lr-pay .private-pay-form{display:grid;gap:12px}
html[data-theme] dialog.private-workspace form.lr-pay .lr-payment-due-context{display:flex;justify-content:space-between;align-items:baseline;margin:0;font-size:var(--t-body,15px)}
html[data-theme] dialog.private-workspace form.lr-pay .lx-note-fold>summary{display:flex;align-items:center;min-height:44px;color:var(--link,var(--lx-blue));font-weight:600;list-style:none;cursor:pointer}
html[data-theme] dialog.private-workspace form.lr-pay .lx-note-fold>summary::-webkit-details-marker{display:none}
html[data-theme] dialog.private-workspace form.lr-pay .lx-note-fold[open]>summary{color:var(--text)}
html[data-theme] dialog.private-workspace form.lr-pay .lr-quick{display:flex;flex-wrap:wrap;gap:8px}

/* 9. Swipe actions behind a loan row: Plan on the left, Record on the right. */
html[data-theme] dialog.private-workspace .private-loan-list .lx-lrow{position:relative;overflow:hidden}
html[data-theme] dialog.private-workspace .private-loan-list .lx-lrow>.lr-open{position:relative;z-index:1;background:var(--surface);transition:transform var(--motion-enter) cubic-bezier(.2,.8,.2,1);touch-action:pan-y}
html[data-theme] dialog.private-workspace .lx-swipe{position:absolute;inset:0;display:flex;justify-content:space-between;z-index:0}
html[data-theme] dialog.private-workspace .lx-swipe>button{display:grid;place-items:center;align-content:center;gap:4px;width:96px;border:0;border-radius:0;font:inherit;font-size:13px;font-weight:650;color:#fff;cursor:pointer}
html[data-theme] dialog.private-workspace .lx-swipe>button svg{width:20px;height:20px}
html[data-theme] dialog.private-workspace .lx-swipe-plan{background:#5b6b7f}
html[data-theme] dialog.private-workspace .lx-swipe-pay{background:var(--lx-blue)}
html[data-theme] dialog.private-workspace .lx-lrow:not([data-dir=plan]):not([data-swiped=plan]) .lx-swipe-plan,html[data-theme] dialog.private-workspace .lx-lrow:not([data-dir=pay]):not([data-swiped=pay]) .lx-swipe-pay{visibility:hidden}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace .private-loan-list .lx-lrow>.lr-open{transition:none}}

/* Micro graphics */
/* Row sparkline: under the balance, six months of trend. */
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lr-s{grid-column:2}
html[data-theme] dialog.private-workspace.private-workspace .lr-list .lx-row2 .lx-spark-wrap{grid-column:3;grid-row:2;justify-self:end;align-self:center;display:inline-flex}
html[data-theme] dialog.private-workspace .lx-mini{flex:none;width:15px;height:15px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-summary .lx-intline{justify-content:flex-start}
html[data-theme] dialog.private-workspace .lr-summary .lx-intline>span{flex:1}
html[data-theme] dialog.private-workspace .lx-cal-stat>span{display:inline-flex;align-items:center;gap:5px}
html[data-theme] dialog.private-workspace .lx-cal-stat.is-paid .lx-mini{color:var(--cal-paid)}
html[data-theme] dialog.private-workspace .lx-cal-stat.is-late .lx-mini{color:var(--cal-late)}
/* Empty-state art: a soft disc, two notes and a rupee, drawn in the app's own blues. */
html[data-theme] dialog.private-workspace .lx-empty-art{width:120px;height:84px}
html[data-theme] dialog.private-workspace .lx-empty-art .a0{fill:color-mix(in srgb,var(--lx-blue) 10%,var(--surface))}
html[data-theme] dialog.private-workspace .lx-empty-art .a1{fill:color-mix(in srgb,var(--lx-blue) 22%,var(--surface));stroke:color-mix(in srgb,var(--lx-blue) 40%,var(--surface));stroke-width:1.5}
html[data-theme] dialog.private-workspace .lx-empty-art .a2{fill:var(--surface);stroke:var(--lx-blue);stroke-width:1.75}
html[data-theme] dialog.private-workspace .lx-empty-art .a3{fill:color-mix(in srgb,var(--lx-blue) 14%,var(--surface))}
html[data-theme] dialog.private-workspace .lx-empty-art .a4{fill:none;stroke:var(--lx-blue);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] dialog.private-workspace .lx-empty-art .a5{stroke:color-mix(in srgb,var(--text) 12%,transparent);stroke-width:3;stroke-linecap:round}

html[data-theme] dialog.private-workspace .private-empty>svg.lx-empty-art{width:120px;height:84px}
html[data-theme] dialog.private-workspace>.dialog-footer:not(:has(.button:not([hidden]))){display:none}

/* Sparkline (redesign): smooth line, soft fill, dashed start guide, end dot with halo, change in % beside it. */
html[data-theme] dialog.private-workspace .lx-spark-box{display:inline-flex;align-items:center;gap:6px;--sp:var(--muted)}
html[data-theme] dialog.private-workspace .lx-spark-box.is-down{--sp:var(--lx-blue)}
html[data-theme] dialog.private-workspace .lx-spark-box.is-up{--sp:var(--lx-orange)}
html[data-theme=dark] dialog.private-workspace .lx-spark-box.is-down{--sp:var(--lx-blue)}
html[data-theme=dark] dialog.private-workspace .lx-spark-box.is-up{--sp:var(--lx-orange)}
html[data-theme] dialog.private-workspace .lx-spark{display:block;overflow:visible}
html[data-theme] dialog.private-workspace .lx-spark .s0{stop-color:var(--sp);stop-opacity:.28}
html[data-theme] dialog.private-workspace .lx-spark .s1{stop-color:var(--sp);stop-opacity:0}
html[data-theme] dialog.private-workspace .lx-spark-line{fill:none;stroke:var(--sp);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] dialog.private-workspace .lx-spark-base{stroke:color-mix(in srgb,var(--text) 22%,transparent);stroke-width:1;stroke-dasharray:2 3}
html[data-theme] dialog.private-workspace .lx-spark-dot{fill:var(--sp);stroke:var(--surface);stroke-width:1.5}
html[data-theme] dialog.private-workspace .lx-spark-halo{fill:var(--sp);opacity:.18}
html[data-theme] dialog.private-workspace .lx-spark-chg{min-width:3.2em;text-align:right;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--sp)}
html[data-theme] dialog.private-workspace .lx-spark-box.is-flat .lx-spark-chg{color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-spark-box.is-down .lx-spark-chg{color:color-mix(in srgb,var(--sp) 85%,var(--text))}
html[data-theme] dialog.private-workspace .lx-spark-box.is-up .lx-spark-chg{color:color-mix(in srgb,var(--sp) 70%,var(--text))}
html[data-theme] dialog.private-workspace .lx-spark.is-flat .lx-spark-area,html[data-theme] dialog.private-workspace .lx-spark.is-flat .lx-spark-base{display:none}

/* Button set (round 2): five kinds, one shape language. Buttons 12px corners, chips fully round.
   Primary: solid blue, 48px, semibold. Secondary: outlined, 44px. Small (in a card): outlined pill, 36px to look at
   with a 44px tap area. Text: blue ink. Destructive: red ink. */
html[data-theme] dialog.private-workspace{--lx-action:#2f6fd6;--lx-action-press:#2459b8}
html[data-theme] dialog.private-workspace.private-workspace :is(.button.primary,.lr-record,.lx-step-next){min-height:48px;padding-inline:18px;border:0!important;border-radius:12px!important;background:var(--lx-action)!important;color:#fff!important;font-weight:600!important;box-shadow:none}
html[data-theme] dialog.private-workspace.private-workspace :is(.button.primary,.lr-record):active{background:var(--lx-action-press)!important}
html[data-theme] dialog.private-workspace.private-workspace>.dialog-footer>.button:not(.primary){min-height:48px;border-radius:12px!important;font-weight:500}
html[data-theme] dialog.private-workspace.private-workspace :is(.button:not(.primary):not(.lr-btn):not(.danger),.lx-tear-print,.lr-display-trigger,.lr-compare-trigger,.private-sort-menu>summary){min-height:44px;border:1px solid var(--border);border-radius:12px!important;background:var(--surface);color:var(--text);font-weight:500}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-btn,.lx-past-list .button,.lx-behind .button,.lx-bd-warn .button,.lr-due-record,.lx-ag-act){position:relative;min-height:36px!important;padding:6px 14px;border:1px solid var(--border)!important;border-radius:999px!important;background:var(--surface)!important;color:var(--lx-blue-ink)!important;font-size:14px!important;font-weight:600!important;box-shadow:none}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-btn,.lx-past-list .button,.lx-behind .button,.lx-bd-warn .button,.lr-due-record,.lx-ag-act)::before{content:"";position:absolute;inset:-4px -2px}
html[data-theme] dialog.private-workspace.private-workspace :is(.lr-btn.primary,.lx-overdue-one .lr-btn){background:var(--lx-action)!important;color:#fff!important;border-color:transparent!important}
html[data-theme] dialog.private-workspace.private-workspace .lx-ag.is-late .lx-ag-act{background:var(--surface)!important;color:var(--lx-red-ink)!important;border-color:color-mix(in srgb,var(--lx-red) 45%,var(--border))!important}
html[data-theme] dialog.private-workspace.private-workspace .text-button{color:var(--lx-blue-ink);font-weight:600}
html[data-theme] dialog.private-workspace.private-workspace :is(.button.danger,[data-action=private-remove]){color:var(--lx-red-ink)!important}
/* Chips are fully round. */
html[data-theme] dialog.private-workspace.private-workspace :is(.private-filters>button,.lx-tear-pick>button,.lr-focus>button,.lr-quick>button){border-radius:999px!important}
/* The Monthly payments switch follows the shared selection style (it still used the interest orange). */
html[data-theme] dialog.private-workspace.private-workspace .private-payments-view>button[aria-pressed=true]{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--text)!important;box-shadow:none!important;font-weight:650}
html[data-theme] dialog.private-workspace.private-workspace .private-payments-view::before{display:none!important}

/* Swipe tiles (round 2 upgrade): rounded, inset from the row, icon over a short label; a full swipe stretches the tile. */
html[data-theme] dialog.private-workspace .lx-swipe{padding:8px;gap:8px;align-items:stretch}
html[data-theme] dialog.private-workspace .lx-swipe>button{width:84px;border-radius:16px!important;font-size:13px;font-weight:650;gap:6px;transition:width var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lx-swipe-plan{background:#55657a}
html[data-theme] dialog.private-workspace .lx-swipe-pay{background:var(--lx-action)}
html[data-theme] dialog.private-workspace .lx-lrow.lx-full[data-dir=pay] .lx-swipe-pay,html[data-theme] dialog.private-workspace .lx-lrow.lx-full[data-dir=plan] .lx-swipe-plan{width:calc(100% - 16px)}
html[data-theme] dialog.private-workspace .lx-lrow.lx-full[data-dir=pay] .lx-swipe{justify-content:flex-end}
/* Row menu (right-click, long-press, menu key). */
html[data-theme] dialog.private-workspace .lx-row-menu,html[data-theme] .lx-row-menu{position:fixed;z-index:40;display:grid;min-width:210px;padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 12px 32px -12px rgba(20,27,38,.35),0 2px 6px rgba(20,27,38,.08)}
html[data-theme] .lx-row-menu>button{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border:0;border-radius:10px;background:none;color:var(--text);font:inherit;font-size:15px;text-align:start;cursor:pointer}
html[data-theme] .lx-row-menu>button:focus-visible{background:var(--subtle);outline:none}
@media (hover:hover) and (pointer:fine){html[data-theme] .lx-row-menu>button:hover{background:var(--subtle)}}
html[data-theme] .lx-row-menu>button svg{width:18px;height:18px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace .lx-swipe>button{transition:none}}

/* ---------- Round 3 polish ---------- */
/* 4. The plan headline stays on one line at phone width. */
html[data-theme] dialog.private-workspace .lr-combined .lx-h>span{font-size:clamp(19px,5.6vw,22px)!important;white-space:nowrap}
/* 5. The calendar list heading is a caption, not a second title. */
html[data-theme] dialog.private-workspace.private-workspace .lx-agenda>h4{font-size:13px!important;font-weight:650;color:var(--muted);letter-spacing:.02em;text-transform:uppercase}
/* 6. Rows of chips that scroll sideways fade at the edge, so there is visibly more. */
html[data-theme] dialog.private-workspace :is(.lr-sheet .lr-focus,.lx-tear-pick){-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:24px}
/* 7. While a loan's name sits in the bar, the back control is just the arrow. */
html[data-theme] dialog.private-workspace>.dialog-heading:has(.lx-bar-title.is-on) :is(.private-header-back,.lr-head-back,[data-action=private-back]) span:not(.sr-only){opacity:0;width:0;overflow:hidden;display:inline-block}
html[data-theme] dialog.private-workspace>.dialog-heading:has(.lx-bar-title.is-on) :is(.private-header-back,[data-action=private-back]){font-size:0}
html[data-theme] dialog.private-workspace>.dialog-heading:has(.lx-bar-title.is-on) :is(.private-header-back,[data-action=private-back]) svg{font-size:initial}
/* 8. One focus ring for every control reached with the keyboard. */
html[data-theme] dialog.private-workspace :is(button,summary,[role=tab],[role=radio],a,input,select,.lr-open):focus-visible{outline:2px solid var(--lx-action);outline-offset:2px;border-radius:12px}
html[data-theme] .lx-row-menu>button:focus-visible{outline:2px solid var(--lx-action);outline-offset:-2px}
/* 10. Reduced motion: the bar title neither shrinks nor slides. */
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace.private-workspace[data-scrolled]:has(.lr-list:not([hidden])):not(:has(form))>.dialog-heading h2{font-size:var(--t-title)!important}}

/* ---------- Planner aesthetics (round 3) ---------- */
html[data-theme] dialog.private-workspace .lr-sheet-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:52px}
html[data-theme] dialog.private-workspace .lr-sheet-head>h3{grid-column:2;margin:0;font-size:17px;font-weight:650;letter-spacing:0}
html[data-theme] dialog.private-workspace .lr-sheet-body{gap:16px!important}
/* Recommended order: one caption, a big answer, then the steps as a numbered timeline. */
html[data-theme] dialog.private-workspace .lr-tl{padding:16px 16px 14px!important}
html[data-theme] dialog.private-workspace .lr-tl-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
html[data-theme] dialog.private-workspace .lr-tl-head>.lr-label{font-size:12px!important;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-tl-head>.lr-note{font-size:12px!important;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--lx-blue-ink)}
html[data-theme] dialog.private-workspace .lr-tl-head>.lr-note::before{content:"Recommended \00B7  ";color:var(--muted)}
html[data-theme] dialog.private-workspace.private-workspace .lr-tl .lr-tl-head>.lr-mid{flex-basis:100%;margin-top:4px;font-size:28px!important;font-weight:750;letter-spacing:-.02em}
html[data-theme] dialog.private-workspace .lr-tl-head>.lr-sub{flex-basis:100%;font-size:15px!important;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-tl-list{margin:14px 0 4px!important;padding:0;list-style:none;display:grid;gap:2px}
html[data-theme] dialog.private-workspace .lr-tl-step{border-radius:14px!important;padding:10px 8px!important}
html[data-theme] dialog.private-workspace .lr-tl-step .lr-num{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--lx-blue) 12%,var(--surface));color:var(--lx-blue-ink);font-size:13px;font-weight:700}
html[data-theme] dialog.private-workspace .lr-tl-step :is(.lr-bar,.lr-tl-bar){height:6px!important;border-radius:3px!important}
html[data-theme] dialog.private-workspace .lr-tl-step :is(.lr-bar,.lr-tl-bar)>i{border-radius:3px!important;background:var(--lx-blue)!important}
html[data-theme] dialog.private-workspace .lr-tl-roll{margin:0 0 4px 40px!important;padding:0!important;border:0!important;font-size:13px!important;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-tl-roll::before{content:"\21B3  ";color:var(--lx-blue-ink);font-weight:700}
html[data-theme] dialog.private-workspace .lr-tl-end{display:flex;align-items:center;gap:12px;padding:10px 8px;font-weight:650}
html[data-theme] dialog.private-workspace .lr-tl-end>.lr-num{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--lx-green) 15%,var(--surface));color:var(--lx-green-ink);font-size:13px}
html[data-theme] dialog.private-workspace .lr-tl-save{margin-top:10px;padding-top:12px;border-top:1px solid var(--border);display:grid;gap:4px}
html[data-theme] dialog.private-workspace .lr-tl-save>.lr-note:first-child{font-size:15px!important;color:var(--text)}
html[data-theme] dialog.private-workspace .lr-tl-save>.lr-note+.lr-note{font-size:13px!important;color:var(--muted)}
/* The simulator: a section title instead of a grey tray, then one card. */
html[data-theme] dialog.private-workspace .lr-sim-top{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 8px}
html[data-theme] dialog.private-workspace .lr-sim-top>b{font-size:20px;font-weight:700;letter-spacing:-.01em}
html[data-theme] dialog.private-workspace .lr-sim-top>.lr-tag{padding:3px 10px;border-radius:999px;background:color-mix(in srgb,var(--lx-blue) 12%,var(--surface));color:var(--lx-blue-ink);font-size:12px;font-weight:650}
html[data-theme] dialog.private-workspace .lr-sim-in{padding:16px 14px!important;gap:16px!important}
html[data-theme] dialog.private-workspace .lr-ans .lr-big{font-size:40px!important;font-weight:750!important;letter-spacing:-.025em}
html[data-theme] dialog.private-workspace :is(.lr-target,.lr-mile){border-radius:14px!important;font-size:14px!important;text-align:start!important}
html[data-theme] dialog.private-workspace .lr-target.late{padding:10px 12px;border:1px solid color-mix(in srgb,var(--lx-orange) 50%,var(--border));background:color-mix(in srgb,var(--lx-orange) 12%,var(--surface));color:var(--text)!important}
html[data-theme] dialog.private-workspace .lr-mile.bad{padding:10px 12px!important;border:1px solid color-mix(in srgb,var(--lx-red) 40%,var(--border));background:color-mix(in srgb,var(--lx-red) 8%,var(--surface))!important;color:var(--text)!important;font-weight:500!important}
/* The monthly amount: a clean slider (thin track, blue fill, white knob), steps as pills. */
html[data-theme] dialog.private-workspace .lr-rng{accent-color:var(--lx-action);height:28px}
html[data-theme] dialog.private-workspace .lr-steps>button{border-radius:999px!important;min-height:40px;font-weight:600;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lr-opt-head>span{font-size:15px;font-weight:650}
html[data-theme] dialog.private-workspace .lr-marks{font-size:12px!important;color:var(--muted);font-variant-numeric:tabular-nums}
/* Folds inside the card read as list rows. */
html[data-theme] dialog.private-workspace .lr-sheet details.lr-priority>summary{min-height:48px;font-size:16px;font-weight:650}
html[data-theme] dialog.private-workspace .lr-sheet details.lr-priority{border-top:1px solid var(--border)}
/* The bar at the bottom: the amount in figures, Done as the primary button. */
html[data-theme] dialog.private-workspace .lr-sim-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid var(--border);background:var(--surface)}
html[data-theme] dialog.private-workspace .lr-sim-foot>.lr-sub{font-size:17px!important;font-weight:650;color:var(--text)!important;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace.private-workspace .lr-sim-foot .lr-plan{min-height:44px!important;padding-inline:22px!important;border:0!important;border-radius:12px!important;background:var(--lx-action)!important;color:#fff!important;font-size:16px!important;font-weight:600!important}
html[data-theme] dialog.private-workspace .lr-sim-foot .lr-plan::before{content:none}
html[data-theme] dialog.private-workspace .lr-tl-head>.lr-label{display:none}
html[data-theme] dialog.private-workspace .lr-tl-step .lr-num{margin-right:10px}

/* ---------- Tear sheet aesthetics (round 3) ---------- */
/* Tools: chips and the print button on one row on wide screens. */
@media (min-width:640px){html[data-theme] dialog.private-workspace .lx-tear-tools{grid-template-columns:minmax(0,1fr) auto;align-items:center}}
html[data-theme] dialog.private-workspace .lx-tear-print{color:var(--lx-blue-ink)!important;font-weight:600!important}
/* The page: A4 proportions on wide screens, a hairline edge and a soft lift, generous margins. */
html[data-theme] dialog.private-workspace .lx-tear-paper{gap:24px;padding:32px 28px 24px;border:1px solid #e7e3da;border-radius:4px;box-shadow:0 1px 1px rgba(20,27,38,.04),0 18px 40px -20px rgba(20,27,38,.28)}
@media (min-width:760px){html[data-theme] dialog.private-workspace .lx-tear-paper{min-height:calc(720px*1.414);padding:44px 48px 32px}}
/* Masthead: app mark and name, the document name and date, then a double rule. */
html[data-theme] dialog.private-workspace .lx-tear-brand{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:13px;font-weight:700;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-logo svg{display:block;width:20px;height:20px}
html[data-theme] dialog.private-workspace .lx-tear-logo rect{fill:var(--blue)}
html[data-theme] dialog.private-workspace .lx-tear-logo path{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme] dialog.private-workspace .lx-tear-doc{margin-left:auto;font-size:12px;font-weight:600;color:var(--soft);letter-spacing:.02em}
html[data-theme] dialog.private-workspace .lx-tear-mast{border-bottom:3px double var(--ink)!important;padding-bottom:18px}
html[data-theme] dialog.private-workspace .lx-tear-mast h4{font-size:32px!important}
/* Hero: the balance and status on the left, a repaid ring on the right. */
html[data-theme] dialog.private-workspace .lx-tear-hero{align-items:center}
html[data-theme] dialog.private-workspace .lx-tear-hero>div{display:grid;justify-items:start;gap:6px}
html[data-theme] dialog.private-workspace .lx-tear-ring{position:relative;width:84px;height:84px;margin:0}
html[data-theme] dialog.private-workspace .lx-tear-ring svg{width:84px;height:84px}
html[data-theme] dialog.private-workspace .lx-tear-ring .rb{fill:none;stroke:#ece8df;stroke-width:7}
html[data-theme] dialog.private-workspace .lx-tear-ring .rf{fill:none;stroke:var(--blue);stroke-width:7;stroke-linecap:round}
html[data-theme] dialog.private-workspace .lx-tear-ring figcaption{position:absolute;inset:0;display:grid;place-content:center;text-align:center;line-height:1.1}
html[data-theme] dialog.private-workspace .lx-tear-ring b{font-family:Manrope,InterVariable,system-ui,sans-serif;font-size:18px;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-ring span{font-size:12px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-split{height:10px!important;margin-top:-6px}
html[data-theme] dialog.private-workspace .lx-tear-split>i{border-radius:5px}
/* Key figures: three columns divided by hairlines, figures in the display face. */
html[data-theme] dialog.private-workspace .lx-tear-figs{gap:0;border:1px solid var(--rule);border-radius:10px;overflow:hidden}
html[data-theme] dialog.private-workspace .lx-tear-figs>div{padding:14px 16px!important;border-bottom:1px solid var(--rule);border-right:1px solid var(--rule)}
html[data-theme] dialog.private-workspace .lx-tear-figs dd{font-size:20px!important;font-variant-numeric:tabular-nums}
@media (min-width:560px){html[data-theme] dialog.private-workspace .lx-tear-figs>div:nth-child(3n){border-right:0}html[data-theme] dialog.private-workspace .lx-tear-figs>div:nth-last-child(-n+3){border-bottom:0}}
@media (max-width:559px){html[data-theme] dialog.private-workspace .lx-tear-figs>div:nth-child(2n){border-right:0}html[data-theme] dialog.private-workspace .lx-tear-figs>div:nth-last-child(-n+2){border-bottom:0}}
/* Section heads: a small caps label with a hairline running to the margin. */
html[data-theme] dialog.private-workspace .lx-tear-sec>h5{display:flex;align-items:center;gap:10px}
html[data-theme] dialog.private-workspace .lx-tear-sec>h5::after{content:"";flex:1;height:1px;background:var(--rule)}
/* Chart: payments marked as faint verticals from the line. */
html[data-theme] dialog.private-workspace .lx-tear-chart .pm{stroke:var(--amber);stroke-width:1.5;stroke-dasharray:2 3;opacity:.8}
/* Terms: two columns on wide pages. */
@media (min-width:640px){html[data-theme] dialog.private-workspace .lx-tear-terms{grid-template-columns:1fr 1fr;column-gap:28px}}
/* Payments table: zebra rows, a tinted total. */
html[data-theme] dialog.private-workspace .lx-tear-table tbody tr:nth-child(odd)>*{background:#faf8f3}
html[data-theme] dialog.private-workspace .lx-tear-table tfoot>tr>*{background:#f3f0e8}
html[data-theme] dialog.private-workspace .lx-tear-foot{font-size:12px}
@media print{html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper{min-height:0;border:0}}

/* ---------- Round 4 (2026-11-29): bugs and Loans polish ---------- */
/* Rate table: one unit at a time. Monthly or Annual hides the other unit (a later rule set both to inline-block). */
html[data-theme] dialog.private-workspace .lr-terms-table[data-rate-format=month] .lr-table-rate-year,
html[data-theme] dialog.private-workspace .lr-terms-table[data-rate-format=year] .lr-table-rate-month,
html[data-theme] dialog.private-workspace .lr-terms-table[data-rate-format=quoted] .lr-rate-conv{display:none!important}
html[data-theme] dialog.private-workspace .lr-terms-table :is(.lr-table-rate-month,.lr-table-rate-year,.lr-table-rate-one){display:grid;justify-items:end;gap:1px;line-height:1.2}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-rate-cell{display:grid;justify-items:end}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-unit{display:block!important;font-size:12px;font-weight:500;color:var(--muted)}
html[data-theme] dialog.private-workspace .lr-terms-table td:nth-child(5){min-width:0}
html[data-theme] dialog.private-workspace .lr-terms-table thead th{background:none;border-bottom:1px solid var(--border);padding-top:12px;padding-bottom:8px}
html[data-theme] dialog.private-workspace .lr-terms-table :is(tbody th,td){padding-top:14px;padding-bottom:14px}
html[data-theme] dialog.private-workspace .lr-terms-table .lr-table-name{font-size:15px;line-height:1.25}
html[data-theme] dialog.private-workspace .lr-terms-table td{font-size:15px;font-weight:600}
@media (max-width:480px){html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td){padding-left:6px;padding-right:6px}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td):first-child{padding-left:14px}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td):last-child{padding-right:14px}}
/* The table and its total read as one card; the total stays pinned above the footer while rows scroll. */
html[data-theme] dialog.private-workspace .lr-table-shell:has(+.lx-table-total){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}
html[data-theme] dialog.private-workspace .lx-table-total{position:sticky;bottom:8px;z-index:2;display:grid;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr));align-items:end;gap:6px;padding:12px 14px;border:1px solid var(--border);border-radius:0 0 20px 20px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 -1px 0 var(--border),0 10px 24px -18px rgba(20,27,38,.45)}
html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-k{font-size:13px;font-weight:650;color:var(--text);align-self:center}
html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v{display:grid;justify-items:end;gap:1px;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v small{font-size:12px;color:var(--muted);white-space:nowrap}
html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v b{font-size:15px;font-weight:700}
/* Display options: each choice under its label, full width, so nothing wraps; the switch row lines up with them. */
@media (max-width:639px){
 html[data-theme] dialog.private-workspace .lr-display-panel .lr-format-option{grid-template-columns:1fr;gap:8px;padding-block:12px}
 html[data-theme] dialog.private-workspace .lr-display-panel .lr-format-option>.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:100%}
}
html[data-theme] dialog.private-workspace .lr-display-panel .lr-progress-option{padding-inline:0!important;margin:0;min-height:52px}
/* Loan list card: rows clip to its rounded corners (square row surfaces showed past the 20px radius). */
html[data-theme] dialog.private-workspace .private-loan-list{overflow:clip}
html[data-theme] dialog.private-workspace .private-loan-list .private-loan-open:focus-visible{outline-offset:-3px}
html[data-theme] dialog.private-workspace .lx-spark-box{flex:none}
/* Planner charts: a vertical scroll passes through; only a sideways drag or a tap picks (see scrubGesture). */
html[data-theme] .lr-sheet :is(.lr-curve svg,.lr-chart svg),html[data-theme] .lr-sheet [data-curve]{touch-action:pan-y!important}
/* Interest share on the summary card and the loan's Breakdown. */
html[data-theme] dialog.private-workspace .lx-share{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--border);font-size:14px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-share b{color:var(--lx-orange-ink);font-weight:700}
html[data-theme] dialog.private-workspace .lx-share-bar{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--lx-orange) 18%,var(--surface));overflow:hidden}
html[data-theme] dialog.private-workspace .lx-share-bar>i{display:block;height:100%;border-radius:3px;background:var(--lx-orange)}
html[data-theme] dialog.private-workspace .lx-bd-share .lr-cost{margin:0}
/* Edit in the bar and on Terms. */
html[data-theme] dialog.private-workspace .lx-head-edit{min-height:44px;padding:0 10px;color:var(--lx-blue-ink);font-size:16px;font-weight:600}
html[data-theme] dialog.private-workspace .lx-terms-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 4px}
html[data-theme] dialog.private-workspace .lx-terms-head>span{font-size:var(--t-section,20px);font-weight:700}
html[data-theme] dialog.private-workspace .lx-terms-head>button{min-height:44px;padding:0 4px;color:var(--lx-blue-ink);font-weight:600}
/* The bar keeps the total once the summary card scrolls away. */
html[data-theme] dialog.private-workspace .lx-bar-title .lx-bar-sub{display:block;height:0;overflow:hidden;opacity:0;font-size:12px;font-weight:500;color:var(--muted);transition:opacity var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lx-bar-title.has-sub .lx-bar-sub{height:auto;opacity:1}
/* Payments by month: a narrow month column, equal money columns, a thin bar under each total, empty runs folded. */
html[data-theme] dialog.private-workspace .private-exact-payments table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
html[data-theme] dialog.private-workspace .private-exact-payments caption{caption-side:top;padding:0 0 8px;text-align:left;font-size:13px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .private-exact-payments :is(th,td){padding:12px 8px;border:0;border-bottom:1px solid var(--border);background:none!important;font-size:14px;text-align:right;white-space:nowrap}
html[data-theme] dialog.private-workspace .private-exact-payments thead th{padding-top:6px;padding-bottom:8px;font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .private-exact-payments :is(thead th:first-child,tbody th){width:22%;text-align:left;padding-left:2px}
html[data-theme] dialog.private-workspace .private-exact-payments tbody th .lr-month-pick{min-height:0;padding:0;color:var(--text);font-weight:600;text-decoration:none;font-size:14px}
html[data-theme] dialog.private-workspace .private-exact-payments td:last-child{font-weight:650}
html[data-theme] dialog.private-workspace .private-exact-payments .lx-pay-total{display:block}
html[data-theme] dialog.private-workspace .private-exact-payments .lx-pay-bar{display:block;margin:6px 0 0 auto;height:4px;border-radius:2px;background:var(--lx-orange);overflow:hidden}
html[data-theme] dialog.private-workspace .private-exact-payments .lx-pay-bar>i{display:block;height:100%;background:var(--lx-blue)}
html[data-theme] dialog.private-workspace .private-exact-payments .lx-pay-empty>th{padding:10px 2px;font-size:13px;font-weight:500;color:var(--muted);text-align:left;width:auto}
html[data-theme] dialog.private-workspace .private-exact-payments tbody tr:last-child>*{border-bottom:0}
html[data-theme] dialog.private-workspace .private-exact-payments .payoff-table-scroll{border:0;overflow:visible}
/* Interest chart: the line and its fill run to the card's left edge and its bottom, labels sit inside the plot. */
html[data-theme] dialog.private-workspace .loan-sheet-card:has(>.lx-chart){overflow:clip}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart{margin:18px -14px -12px;padding:0 0 36px}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-plot{margin:0 22px 0 0}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-yr{left:14px;right:auto;width:auto;top:-8px;bottom:-8px;align-items:flex-start;pointer-events:none}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-yr>span{padding:0 5px;border-radius:6px;background:color-mix(in srgb,var(--surface) 82%,transparent);line-height:16px}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-yr>span:last-child{visibility:hidden}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .lx-xaxis{left:14px;right:14px;bottom:10px}
html[data-theme] dialog.private-workspace .loan-sheet .lx-chart .loan-sheet-dot.lx-end{box-shadow:0 0 0 5px color-mix(in srgb,var(--lx-orange) 22%,transparent)}
html[data-theme] dialog.private-workspace .lr-terms-table td :is(.lr-table-amount,.lr-table-exact,span){font-size:inherit}
html[data-theme] dialog.private-workspace .lr-terms-table td.lr-table-interest-due{font-weight:500}
html[data-theme] dialog.private-workspace .loan-sheet table thead th{padding-top:2px;padding-bottom:2px;vertical-align:middle}
html[data-theme] dialog.private-workspace .loan-sheet table thead th>button{min-height:44px;padding:0;font-size:13px;font-weight:600}
html[data-theme] dialog.private-workspace .lx-spark-box.is-up .lx-spark-chg{color:var(--lx-orange-ink)}
html[data-theme] dialog.private-workspace .lx-spark-box.is-down .lx-spark-chg{color:var(--lx-blue-ink)}
html[data-theme] dialog.private-workspace .private-exact-payments tbody th .lr-month-pick{display:flex;align-items:center;min-height:44px;margin:-11px 0;width:100%}
html[data-theme] dialog.private-workspace .lx-bd-share .lr-cost{border-top:0!important;padding-top:0!important}
html[data-theme] dialog.private-workspace .lr-table-shell:has(+.lx-table-total){margin-bottom:0!important}html[data-theme] dialog.private-workspace .lx-table-total{margin-top:0!important}
html[data-theme] dialog.private-workspace .lx-terms-head>span{font-size:13px;font-weight:600;color:var(--muted)}
html[data-theme] dialog.private-workspace .loan-sheet table thead th{vertical-align:bottom}
html[data-theme] dialog.private-workspace .loan-sheet table thead th:first-child{padding-bottom:13px}
html[data-theme] dialog.private-workspace .private-history-completeness .text-button{display:inline-flex;align-items:center;min-height:44px}
/* Planner answer on phones: the headline gets the full width; the key runs as one row under it. */
@media (max-width:479px){
 html[data-theme] .lr-sheet .lr-pin .lr-ans{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px}
 html[data-theme] .lr-sheet .lr-pin .lr-leg{grid-auto-flow:column;grid-auto-columns:max-content;justify-content:start;gap:16px;min-width:0}
 html[data-theme] .lr-sheet .lr-pin .lr-leg>div{gap:6px}
}
/* Monthly payments: one key above the chart is enough. */
html[data-theme] dialog.private-workspace .private-monthly-payments .lm-progress>.payoff-legend{display:none}
html[data-theme] dialog.private-workspace .loan-sheet table thead th{vertical-align:middle!important}
html[data-theme] dialog.private-workspace .loan-sheet table thead th:first-child{padding-bottom:2px}
@media (max-width:479px){html[data-theme] .lr-sheet .lr-pin .lr-leg{display:flex!important;flex-wrap:wrap;gap:6px 16px}html[data-theme] .lr-sheet .lr-pin .lr-leg>div{font-size:12px}html[data-theme] .lr-sheet .lr-pin .lr-leg .lr-sub{font-size:12px;margin:0}}
html[data-theme] dialog.private-workspace .loan-sheet table thead th:first-child{padding-bottom:14px}
html[data-theme] .lr-sheet .lr-num{color:#14663a}html[data-theme=dark] .lr-sheet .lr-num{color:#6fd39a}
html[data-theme] dialog.private-workspace .loan-sheet table thead th{padding-top:2px!important;padding-bottom:2px!important}html[data-theme] dialog.private-workspace .loan-sheet table thead th>button{display:inline-flex!important;align-items:center!important;vertical-align:middle}
html[data-theme] dialog.private-workspace .loan-sheet table thead th>button{flex-direction:row!important;justify-content:inherit;align-items:center!important}html[data-theme] dialog.private-workspace .loan-sheet table thead th:not(:first-child)>button{justify-content:flex-end}
/* Sortable headings and the pinned total. */
html[data-theme] dialog.private-workspace .lr-terms-table .lx-sort{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;min-height:36px;margin:-8px 0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort] .lx-sort::after{content:"";width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;opacity:0;transition:opacity var(--motion-enter) var(--motion-ease),transform var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort=descending] .lx-sort,html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort=ascending] .lx-sort{color:var(--text)}
html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort=descending] .lx-sort::after{opacity:1}
html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort=ascending] .lx-sort::after{opacity:1;transform:rotate(180deg)}
html[data-theme] dialog.private-workspace .lx-pin-mark{display:block;height:1px}
html[data-theme] dialog.private-workspace .lx-table-total{transition:box-shadow var(--motion-enter) var(--motion-ease),border-radius var(--motion-enter) var(--motion-ease),margin var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v b{transition:font-size var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .lx-table-total.is-pinned{margin-inline:6px;border-radius:16px;box-shadow:0 12px 30px -12px rgba(20,27,38,.45)}
html[data-theme] dialog.private-workspace .lx-table-total.is-pinned .lx-tt-v b{font-size:14px}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace .lx-table-total,html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v b{transition:none}}
html[data-theme] dialog.private-workspace .lx-plan-empty{margin:-4px 4px 10px}
/* Loan table on phones: the name column gets room so names wrap at most once; sort headings are full-height targets. */
html[data-theme] dialog.private-workspace .lr-terms-table .lx-sort{min-height:44px;margin:-12px 0;padding:0 2px}
/* Planner order: the final tick on its pale green dot reads at 4.5:1 or better. */
html[data-theme]:not([data-theme=dark]) dialog .lr-sheet .lr-num,html[data-theme]:not([data-theme=dark]) .lr-sheet .lr-tl .lr-num{color:#0f5530!important}
/* No loans yet: hide the one-option mode switch and the note about recorded payments in the planning tools. */
html[data-theme] dialog.private-workspace .lr-plansect:has(.lx-plan-empty) :is(.segmented:has(>button:only-child),.private-planning-hub>p.small.muted){display:none}

/* The sort arrow sits beside the heading without widening its column (it pushed Rate off a 375px screen). */
html[data-theme] dialog.private-workspace .lr-terms-table .lx-sort{position:relative;gap:0}
html[data-theme] dialog.private-workspace .lr-terms-table th[aria-sort] .lx-sort::after{position:absolute;right:calc(100% + 3px);top:50%;margin-top:-2px}
@media (max-width:359px){html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td){padding-left:4px;padding-right:4px}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td):first-child{padding-left:10px}html[data-theme] dialog.private-workspace .lr-terms-table :is(thead th,tbody th,td):last-child{padding-right:10px}html[data-theme] dialog.private-workspace .lr-terms-table :is(td,.lr-table-name){font-size:14px}html[data-theme] dialog.private-workspace .lr-terms-table thead th{font-size:12px}}
@media (max-width:359px){html[data-theme] dialog.private-workspace .lr-terms-table thead th,html[data-theme] dialog.private-workspace .lr-terms-table thead th .lx-sort{white-space:normal;line-height:1.2}html[data-theme] dialog.private-workspace .lr-terms-table td.lr-table-interest-due{min-width:0}}
@media (max-width:359px){html[data-theme] dialog.private-workspace .lr-terms-table thead :is(th,.lx-sort){word-break:keep-all;overflow-wrap:normal}}

/* ---------- Loan Activity tab (user, 2026-11-29: "double arrows and alignment") ---------- */
/* "Balance over time" lines up with the filters above it (it sat 20px further in) and owns exactly one chevron:
   any marker or second arrow another sheet or browser adds is removed. */
html[data-theme] dialog.private-workspace .private-history .lr-history-chart{margin:4px 0 0}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary::before{content:none!important;display:none!important}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary::marker{content:""}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary>:is(svg,.icon,.chevron){display:none!important}
html[data-theme] dialog.private-workspace .private-history .lr-history-chart>summary::after{flex:none}
/* "Values & coverage": the same right-hand chevron as every other fold, not the browser's triangle. */
html[data-theme] dialog.private-workspace .history-values>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;list-style:none;font-weight:600;cursor:pointer}
html[data-theme] dialog.private-workspace .history-values>summary::-webkit-details-marker{display:none}
html[data-theme] dialog.private-workspace .history-values>summary::marker{content:""}
html[data-theme] dialog.private-workspace .history-values>summary::after{content:"";flex:none;width:8px;height:8px;margin-right:4px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace .history-values[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
/* The history explorer inside it starts on the same edge (no extra inset). */
html[data-theme] dialog.private-workspace .private-history .lr-history-chart .history-explorer{margin-inline:0;padding-inline:0}
/* Range: label and select on one baseline, the select sized to its text. */
html[data-theme] dialog.private-workspace .history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-theme] dialog.private-workspace .history-toolbar label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
html[data-theme] dialog.private-workspace .history-toolbar select{min-height:40px;width:auto}
/* The loan's name in the bar sits left, after the back arrow, and stops before Edit and the menu, so nothing overlaps
   on a phone (centred, it ran under "Loans" and "Edit"). */
@media (max-width:639px){
 html[data-theme] dialog.private-workspace .dialog-heading:has(.private-header-back) .lx-bar-title{left:60px;right:176px;max-width:none;transform:translate(0,-30%);text-align:left}
 html[data-theme] dialog.private-workspace .dialog-heading:has(.private-header-back) .lx-bar-title.is-on{transform:translate(0,-50%)}
 html[data-theme] dialog.private-workspace .dialog-heading:has(.private-header-back):not(:has(.lx-head-edit)) .lx-bar-title{right:116px}
}
/* While the loan's name shows in the bar, the small "Loans" title beside the back arrow steps aside for it. */
html[data-theme] dialog.private-workspace>.dialog-heading>h2{transition:opacity var(--motion-enter) var(--motion-ease)}
html[data-theme] dialog.private-workspace>.dialog-heading:has(.private-header-back):has(.lx-bar-title.is-on)>h2{opacity:0}

/* ---------- Add loan (2026-11-30): who lent it, amount in words, a summary before Save, footer pinned ---------- */
html[data-theme] dialog.private-workspace .lx-lender{display:grid;gap:8px;margin:0 0 14px}
html[data-theme] dialog.private-workspace .lx-lender-k{font-size:15px;font-weight:600;color:var(--text)}
html[data-theme] dialog.private-workspace .lx-lender-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html[data-theme] dialog.private-workspace .lx-lender-row>button{min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:550;text-align:center}
html[data-theme] dialog.private-workspace .lx-lender-row>button[aria-checked=true]{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);font-weight:650}
html[data-theme] dialog.private-workspace .lx-amount-words{display:block;min-height:18px;margin-top:4px;font-size:13px;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-add-summary{margin:12px 2px 4px;padding:12px 14px;border-radius:14px;background:var(--subtle);font-size:14px;font-weight:600;color:var(--text);line-height:1.45}
html[data-theme] dialog.private-workspace .lx-add-summary[hidden]{display:none}
html[data-theme] dialog.private-workspace:has(form[data-kind=private-add]) .dialog-footer{position:sticky;bottom:0;z-index:3;background:var(--surface);box-shadow:0 -1px 0 var(--border)}
html[data-theme] dialog.private-workspace .dialog-footer>.lx-add-summary{flex:1 0 100%;width:100%;margin:0 0 8px;padding:10px 12px;font-size:13px}html[data-theme] dialog.private-workspace .dialog-footer:has(>.lx-add-summary:not([hidden])){flex-wrap:wrap}
/* Paired fields (Fixed EMI tenure and amount, and the like): labels start on one line and the boxes line up on one
   line, even when one label wraps to two lines. */
html[data-theme] dialog.private-workspace .field-pair{align-items:stretch}
html[data-theme] dialog.private-workspace .field-pair>label{display:grid;grid-template-rows:1fr auto;align-content:stretch;gap:6px}
html[data-theme] dialog.private-workspace .field-pair>label>:is(input,select,.lx-rupee){align-self:end}
html[data-theme] dialog.private-workspace .private-emi-fields>legend{padding-inline:0}

/* ---------- Loans alignment loop (2026-11-30) ---------- */
/* Loan page tabs stay one row of four on the narrowest phones (they wrapped into two rows at 320px). */
@media (max-width:359px){html[data-theme] dialog.private-workspace .lr-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}html[data-theme] dialog.private-workspace .lr-tabs>button{padding-inline:2px;font-size:13px;min-width:0}}
/* Choice tiles: title and its second line start at the top of every tile, so tiles in one row read on one line. */
html[data-theme] dialog.private-workspace .lr-pick-tiles>button{align-content:start;justify-items:start;text-align:left}
/* "Who lent it?" reads like the other field labels in the card, not like a heading. */
html[data-theme] dialog.private-workspace .lx-lender-k{font-size:15px;font-weight:500}
/* Record a payment: the quick amounts share the row equally instead of sizing to their text. */
html[data-theme] dialog.private-workspace .private-quick-fill.lr-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
html[data-theme] dialog.private-workspace .private-quick-fill.lr-quick>*{width:100%;justify-content:center;text-align:center}
/* Next payment card: Record sits beside the date and title instead of alone on its own line. */
html[data-theme] dialog.private-workspace .lr-next .lx-next-main{display:grid!important;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:10px;align-items:start}
html[data-theme] dialog.private-workspace .lr-next .lx-next-main>.lr-cal{grid-row:span 2}
html[data-theme] dialog.private-workspace .lr-next .lx-next-main>.button{grid-column:2;justify-self:start;margin:0}
/* Table total on the narrowest phones: the label on its own line, the three figures evenly below (they collided). */
@media (max-width:359px){html[data-theme] dialog.private-workspace .lx-table-total{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:8px}html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-k{grid-column:1/-1}html[data-theme] dialog.private-workspace .lx-table-total .lx-tt-v b{font-size:14px}}

/* ---------- Loans spacing pass (2026-11-30) ----------
   One rhythm: 24px between sections, 12px between cards and controls inside a section, cards padded 16px top and
   bottom and 14px at the sides (the phone gutter chosen earlier), section titles 12px above their content. */
html[data-theme] dialog.private-workspace .private-detail-workspace,html[data-theme] dialog.private-workspace .entry-fields.private-loans:has(>.private-loan-hero){gap:12px}
html[data-theme] dialog.private-workspace .private-loan-hero{margin-bottom:12px}
html[data-theme] dialog.private-workspace .private-loan-hero + .lr-card{margin-top:0}
html[data-theme] dialog.private-workspace .lr-right{gap:12px}
html[data-theme] dialog.private-workspace .lr-panel{gap:12px}
html[data-theme] dialog.private-workspace .private-history{padding:12px 14px}
/* Add loan: the same card padding and card gap as the rest of Loans. */
html[data-theme] dialog.private-workspace form[data-kind=private-add] .private-form,html[data-theme] dialog.private-workspace form[data-kind=private-edit-label] .private-form{gap:12px}
html[data-theme] dialog.private-workspace form:is([data-kind=private-add],[data-kind=private-edit-label]) .private-form>:is(fieldset,.private-entry-choice){padding:16px 14px}
/* Payment calendar: the toolbar, totals, grid, key and agenda sit 12px apart. */
html[data-theme] dialog.private-workspace :is(.private-calendar-toolbar,.lx-cal-stats,.private-calendar-grid,.lx-cal-legend)+*{margin-top:12px}
/* Empty Loans: the plan section sits a section away (24px) from the empty card. */
html[data-theme] dialog.private-workspace .private-empty + *{margin-top:24px}
html[data-theme] dialog.private-workspace .lx-cal-stats{margin-bottom:0}
html[data-theme] dialog.private-workspace .lx-amount-words:empty{display:none}

/* ---------- Loans morphs (2026-11-30) ---------- */
/* Interest pill ⇄ sheet (view transition): the card's outline grows and clips its content, nothing is stretched;
   the pill's words leave first, the sheet's words arrive after, and the rest of the screen fades in behind. */
::view-transition-group(loan-morph-name),::view-transition-group(loan-morph-amount){overflow:clip;border-radius:20px;animation-duration:var(--motion-move)}
::view-transition-old(loan-morph-name),::view-transition-old(loan-morph-amount){object-fit:none;object-position:left top;animation:lx-vt-out var(--motion-exit) var(--motion-ease) both}
::view-transition-new(loan-morph-name),::view-transition-new(loan-morph-amount){object-fit:none;object-position:left top;animation:lx-vt-in var(--motion-enter) var(--motion-ease) var(--motion-press) both}
html:active-view-transition-type(loans)::view-transition-old(root){animation:lx-vt-out var(--motion-exit) var(--motion-ease) both}
html:active-view-transition-type(loans)::view-transition-new(root){animation:lx-vt-in var(--motion-enter) var(--motion-ease) var(--motion-press) both}
@keyframes lx-vt-out{to{opacity:0}}
@keyframes lx-vt-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){::view-transition-group(loan-morph-name),::view-transition-group(loan-morph-amount),::view-transition-old(loan-morph-name),::view-transition-new(loan-morph-name),::view-transition-old(loan-morph-amount),::view-transition-new(loan-morph-amount),html:active-view-transition-type(loans)::view-transition-old(root),html:active-view-transition-type(loans)::view-transition-new(root){animation:none}}
/* Step bars fill as you move through Add loan. */
html[data-theme] dialog.private-workspace .lx-steps>li{transition:background-color var(--motion-move) var(--motion-ease)}
/* Loan page tabs: the outline is one pill that slides between tabs. */
html[data-theme] dialog.private-workspace .lr-tabs>.lx-tab-pill{position:absolute;left:0;top:0;z-index:0;border:1px solid var(--text);border-radius:9px;background:var(--surface);pointer-events:none}
html[data-theme] dialog.private-workspace .lr-tabs>.lx-tab-pill.is-animated{transition:transform var(--motion-move) var(--ease-move),width var(--motion-move) var(--ease-move)}
html[data-theme] dialog.private-workspace .lr-tabs:has(>.lx-tab-pill)>[role=tab]{position:relative;z-index:1;border-color:transparent!important;background:transparent!important;transition:color var(--motion-move) var(--motion-ease),font-weight var(--motion-move) var(--motion-ease)}
@media (prefers-reduced-motion:reduce){html[data-theme] dialog.private-workspace .lr-tabs>.lx-tab-pill.is-animated{transition:none}}

/* ---------- Tear sheet, micrographic pass (2026-11-30) ----------
   The page sits on a dotted desk with a perforated top edge, like a stub torn from a pad. A fine dot texture runs behind
   the masthead; figures are marked with pill stubs, a payment rhythm and a tenure ruler, labels in a small mono face. */
html[data-theme] dialog.private-workspace .lx-tear-stage{padding:20px 12px 24px;margin:0 -4px;border-radius:18px;
  background:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--text) 16%,transparent) 1px,transparent 1.4px) 0 0/12px 12px,color-mix(in srgb,var(--text) 4%,var(--surface))}
html[data-theme] dialog.private-workspace .lx-tear-paper{position:relative;border-radius:0 0 6px 6px;padding-top:40px!important;
  -webkit-mask:radial-gradient(circle 5px at 8px 0,transparent 4.5px,#000 5px) 0 0/16px 100% repeat-x;mask:radial-gradient(circle 5px at 8px 0,transparent 4.5px,#000 5px) 0 0/16px 100% repeat-x;
  background:radial-gradient(circle at 1px 1px,rgba(20,27,38,.11) .9px,transparent 1.2px) 0 0/8px 8px,var(--paper);
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
/* The dot texture fades out below the masthead. */
html[data-theme] dialog.private-workspace .lx-tear-paper::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--paper) 20%,transparent) 0,var(--paper) 230px)}
html[data-theme] dialog.private-workspace .lx-tear-paper>*{position:relative}
/* A dashed tear line under the perforations. */
html[data-theme] dialog.private-workspace .lx-tear-paper::after{content:"";position:absolute;left:12px;right:12px;top:16px;border-top:1.5px dashed #d9d3c6;pointer-events:none}
html[data-theme] dialog.private-workspace :is(.lx-tear-mono,.lx-tear-no,.lx-tear-doc){font-family:var(--mg-mono);font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-no{margin-left:auto;color:var(--ink)!important}
html[data-theme] dialog.private-workspace .lx-tear-mast>.lx-tear-doc{margin:0 0 2px!important;font-size:12px!important}
html[data-theme] dialog.private-workspace .lx-tear-brand{margin-bottom:10px}
/* Hero: the ring gives way to a row of pill stubs, one per thirtieth of the loan. */
html[data-theme] dialog.private-workspace .lx-tear-stubs{display:grid;gap:8px;margin:-6px 0 0}
html[data-theme] dialog.private-workspace .lx-tear-stubs .mg-pills{--mg-ink:var(--blue);--mg-off:#e9e4d8;height:22px}
html[data-theme] dialog.private-workspace .lx-tear-stubs figcaption{font-size:13px;color:var(--soft)}
html[data-theme] dialog.private-workspace .lx-tear-stubs figcaption b{color:var(--ink);font-family:Manrope,InterVariable,system-ui,sans-serif}
/* Unpaid interest is hatched: owed, but not money you borrowed. */
html[data-theme] dialog.private-workspace .lx-tear-split>.i{background:repeating-linear-gradient(-45deg,var(--amber) 0 3px,color-mix(in srgb,var(--amber) 35%,var(--paper)) 3px 6px)}
html[data-theme] dialog.private-workspace .lx-tear-keys .i{background:repeating-linear-gradient(-45deg,var(--amber) 0 2px,color-mix(in srgb,var(--amber) 35%,var(--paper)) 2px 4px)}
/* Figures: the number at display size, its unit smaller beside it, so "8.9% a year" never breaks mid-phrase. */
html[data-theme] dialog.private-workspace .lx-tear-figs>div{align-content:start}
html[data-theme] dialog.private-workspace .lx-tear-figs dd span{white-space:nowrap;font-family:InterVariable,system-ui,sans-serif;font-size:13px;font-weight:500;letter-spacing:0;color:var(--soft)}
/* Payment rhythm above the table. */
html[data-theme] dialog.private-workspace .lx-tear-rhythm{display:grid;gap:8px;padding:12px 14px;border:1px dashed #d9d3c6;border-radius:10px}
html[data-theme] dialog.private-workspace .lx-tear-rhythm .mg-rhythm{--mg-ink:var(--ink);--mg-off:#cfc8b8}
html[data-theme] dialog.private-workspace .lx-tear-rhythm .mg-rhythm-key{--mg-ink:var(--ink);color:var(--soft)}
/* Tenure ruler above the footer. */
html[data-theme] dialog.private-workspace .lx-tear-tenure{display:grid;gap:8px;padding-top:14px;border-top:1.5px dashed #d9d3c6}
html[data-theme] dialog.private-workspace .lx-tear-tenure-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
html[data-theme] dialog.private-workspace .lx-tear-tenure-h b{font-family:Manrope,InterVariable,system-ui,sans-serif;font-size:14px;color:var(--ink)}
html[data-theme] dialog.private-workspace .lx-tear-tenure .mg-ruler{--mg-ink:var(--blue);--mg-off:#d9d3c6}
html[data-theme] dialog.private-workspace .lx-tear-tenure-x{display:flex;justify-content:space-between;font-size:12px;color:var(--faint)}
html[data-theme] dialog.private-workspace .lx-tear-foot{border-top:0!important;padding-top:0!important}
html[data-theme=dark] dialog.private-workspace .lx-tear-stage{background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.1) 1px,transparent 1.4px) 0 0/12px 12px,rgba(255,255,255,.03)}
@media print{
 html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper{-webkit-mask:none;mask:none;padding-top:0!important;background:#fff}
 html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper::before,html[data-theme].lx-printing-tear dialog.private-workspace.lx-print-host .lx-tear-paper::after{display:none}
}
@media (max-width:480px){html[data-theme] dialog.private-workspace .lx-tear-stage{padding:16px 4px 20px;margin:0 -6px}html[data-theme] dialog.private-workspace .lx-tear-paper{padding-inline:14px!important}}
/* Phones: four money columns fit the page (dates may break before the year; nothing sticks out past the paper edge). */
@media (max-width:480px){html[data-theme] dialog.private-workspace .lx-tear-table{font-size:12px}html[data-theme] dialog.private-workspace .lx-tear-table :is(th,td){padding-left:6px}html[data-theme] dialog.private-workspace .lx-tear-table tbody th{white-space:normal}html[data-theme] dialog.private-workspace .lx-tear-paper>*{min-width:0}}
/* Micrographics in the loan page: pill stubs for the repaid share, a month-by-month payment rhythm in Activity. */
html[data-theme] dialog.private-workspace .lx-hero-progress .mg-pills{--mg-ink:var(--loan-chart-principal,var(--lx-blue));height:16px;gap:2px}
html[data-theme] dialog.private-workspace .lx-rhythm{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 12px;margin:0 0 12px;padding:10px 12px;border:1px dashed var(--border);border-radius:12px}
html[data-theme] dialog.private-workspace .lx-rhythm-cap{font-family:var(--mg-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html[data-theme] dialog.private-workspace .lx-rhythm .mg-rhythm-key{grid-column:1/-1}
