/* Home review (the user's "implement all", 2026-11-04). Loaded last. One blue tint for every selected filter chip and
   the phone tab bar, a single light-blue wash on the budget card, and a quieter list: no outer panel, amounts on one
   right edge, today's group alone marked, and category icons in a faint tint of their Stats colour. */
:root{
 --hr-tint:color-mix(in srgb,var(--reference-blue) 20%,var(--surface));
 --hr-tint-edge:color-mix(in srgb,var(--reference-blue) 45%,transparent);
 --hr-tint-text:color-mix(in srgb,var(--reference-blue) 42%,#0d1f3f);
 --hr-wash:color-mix(in srgb,var(--reference-blue) 16%,var(--surface));
 --hr-icon-tint:16%;--hr-icon-ink:68%;
}
html[data-theme=dark]{--hr-tint:color-mix(in srgb,var(--reference-blue) 18%,var(--surface));--hr-tint-text:var(--reference-blue);--hr-wash:color-mix(in srgb,var(--reference-blue) 9%,var(--surface));--hr-icon-tint:20%;--hr-icon-ink:100%}
html[data-theme=grey-glass]{--hr-tint:color-mix(in srgb,var(--reference-blue) 24%,var(--surface));--hr-tint-text:var(--reference-blue);--hr-wash:color-mix(in srgb,var(--reference-blue) 12%,var(--surface));--hr-icon-tint:24%;--hr-icon-ink:100%}

/* Transactions | Calendar sits in a full-width sticky bar (8px above, 12px below) with the page colour behind it, so
   the list never shows around the switch; a 12px fade appears under it once the page has scrolled. */
html[data-theme] #app[data-route=home][data-home-view] .mobile-home-header+.view-tabs-bar>.view-tabs{margin-bottom:0}
@media (max-width:639px){
 html[data-theme] #app[data-route=home] .view-tabs-bar{position:sticky;top:56px;z-index:24;padding:8px 0 12px;background:var(--bg)}
 html[data-theme] #app[data-route=home] .view-tabs-bar>.view-tabs{position:relative;top:auto;margin-top:0}
 html[data-theme] #app[data-route=home] .view-tabs-bar::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;background:linear-gradient(var(--bg),transparent);opacity:0;pointer-events:none;transition:opacity 160ms var(--motion-ease)}
 html[data-scrolled] #app[data-route=home] .view-tabs-bar::after{opacity:1}
}
@media (prefers-reduced-motion:reduce){html[data-theme] #app[data-route=home] .view-tabs-bar::after{transition:none}}

/* 3. "Today" beside the month while another month is shown. 4. A dot on the filter icon while a filter is on. */
html[data-theme] .mobile-home-header .mobile-today{grid-area:spacer;justify-self:start}
html[data-theme] .mobile-home-header .mobile-today,html[data-theme] .desktop-month-navigation .month-today{min-height:44px;padding:0 8px;color:var(--hr-tint-text);font-size:var(--text-xs);font-weight:600}
html[data-theme] .mobile-home-header .has-active-filters{position:relative}
html[data-theme] .mobile-home-header .has-active-filters::after{content:"";position:absolute;top:10px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--reference-blue);box-shadow:0 0 0 2px var(--bg)}

/* 10. Budget card: one light-blue wash fading to the surface (the over-budget tint stays). */
html[data-theme] #app :is(.mobile-budget-summary,.home-hero-budget):not([data-over-budget=true]){background:linear-gradient(165deg,var(--hr-wash) 0%,var(--surface) 72%)}

/* Phone Home budget card, compact (the user's option A, about 175px): five rows 6px apart, no divider.
   1 date · today's spend, 2 amount · status, 3 "Budget remaining" · "of ₹35,000" + pencil, 4 ticks, 5 spent · day (+ explain). */
html[data-theme] #app .mobile-budget-summary.is-compact{grid-template-columns:minmax(0,1fr);row-gap:0;min-height:0;height:auto;padding:14px 16px;border-radius:20px}
/* Phones only: from 640px the desktop hero takes over and this card stays hidden (experience.css). */
@media (max-width:639px){html[data-theme] #app .mobile-budget-summary.is-compact{display:grid}}
html[data-theme] #app .mobile-budget-summary.is-compact>*{min-width:0;margin:0;padding:0;border:0}
/* Rows sit 6px apart as margins, not a grid gap, so the closed category panel (A2) takes no space at all. */
html[data-theme] #app .mobile-budget-summary.is-compact>*+:not(.home-breakdown){margin-top:6px}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-summary-date{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:var(--muted);font-size:var(--text-xs);font-weight:400;line-height:1.35;white-space:nowrap;text-transform:none;letter-spacing:0}
/* 8. "₹0 spent today" is text, not a control, so it is not blue. */
html[data-theme] #app .mobile-spent-inline{margin:0;color:var(--muted);font-size:inherit}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-remaining{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-remaining strong{min-width:0;color:var(--text);font-size:30px;font-weight:700;line-height:1.15;letter-spacing:-.01em;white-space:nowrap;overflow:hidden}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-remaining .ticks-tag{margin:0;flex:none}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-set-budget{flex:none;min-height:44px;padding:0 14px;font-size:var(--text-sm)}
/* 6. "of ₹35,000" muted, the pencil the only control; its 44px hit area reaches past the 24px row. */
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-budget-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;color:var(--text);font-size:var(--text-sm);line-height:1.3}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-budget-of{display:inline-flex;align-items:center;gap:0;color:var(--muted);white-space:nowrap}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-budget-edit{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:-10px -12px -10px -6px;padding:0;border:0;background:none;color:var(--text)}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-budget-edit svg{width:16px;height:16px}
/* 4 + 11. The meter: 14px ticks right under the budget line, no divider above the spent row. */
html[data-theme] #app .mobile-budget-summary.is-compact .budget-ticks{--ticks-h:12px;margin:4px 0 0;gap:0}
/* 7. Spent line in tabular figures: "₹3,011 spent · 9%" and "Day 4 of 30" with the explain button after it. */
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-pace-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;height:20px;overflow:visible;color:var(--muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;line-height:1.35;white-space:nowrap}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-pace-day{display:inline-flex;align-items:center;gap:0;height:20px;color:var(--muted);white-space:pre}
html[data-theme] #app .mobile-budget-summary.is-compact .overview-tools{display:inline-flex;position:static;margin:0 0 0 2px}
html[data-theme] #app .mobile-budget-summary.is-compact .overview-tools .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;margin:-12px -14px -12px -10px;padding:0;color:var(--muted)}
html[data-theme] #app .mobile-budget-summary.is-compact .overview-tools .icon-button svg{width:16px;height:16px}
/* 9. Pace mark: the switch-thumb yellow, 2px, 3px past the ticks, in the gaps (budget-ticks.css). */
.budget-ticks{--ticks-pace:var(--decorative)}

/* 12. Selected filter chip: a soft blue tint with blue text, no solid fill (solid fills stay for the side nav). */
html[data-theme] #app .mobile-category-chips>button[aria-pressed=true][data-action],
html[data-theme] .search-pill[aria-pressed=true][data-action]{border-color:var(--hr-tint-edge);background:var(--hr-tint);color:var(--hr-tint-text);font-weight:600}
html[data-theme] .search-pill[aria-pressed=true][data-action] :is(small,b.is-in){color:color-mix(in srgb,var(--hr-tint-text) 78%,transparent)}
html[data-theme] #app .mobile-category-chips>button[aria-pressed=true][data-action] .category-chip-icon{color:var(--hr-tint-text)}

/* 13. A scrolling chip row fades over its last 24px while more chips sit past the edge (chip-fade.js sets the flag). */
[data-chip-fade=more]{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}

/* 16. Category icons: a faint tint of a stable Stats chart colour (display-name.js categoryHue). */
:is(.transaction-icon,.rw-hero)[data-hue="0"],.transaction:has(.transaction-icon[data-hue="0"]){--row-hue:var(--chart-2)}
:is(.transaction-icon,.rw-hero)[data-hue="1"],.transaction:has(.transaction-icon[data-hue="1"]){--row-hue:var(--chart-3)}
:is(.transaction-icon,.rw-hero)[data-hue="2"],.transaction:has(.transaction-icon[data-hue="2"]){--row-hue:var(--chart-4)}
:is(.transaction-icon,.rw-hero)[data-hue="3"],.transaction:has(.transaction-icon[data-hue="3"]){--row-hue:var(--chart-5)}
:is(.transaction-icon,.rw-hero)[data-hue="4"],.transaction:has(.transaction-icon[data-hue="4"]){--row-hue:var(--chart-6)}
:is(.transaction-icon,.rw-hero)[data-hue="5"],.transaction:has(.transaction-icon[data-hue="5"]){--row-hue:var(--chart-7)}
:is(.transaction-icon,.rw-hero)[data-hue="6"],.transaction:has(.transaction-icon[data-hue="6"]){--row-hue:var(--chart-8)}
:is(.transaction-icon,.rw-hero)[data-hue="7"],.transaction:has(.transaction-icon[data-hue="7"]){--row-hue:var(--chart-9)}
html[data-theme] #app .transaction-icon.expense[data-hue]{background:color-mix(in srgb,var(--row-hue) var(--hr-icon-tint),var(--surface));color:color-mix(in srgb,var(--row-hue) var(--hr-icon-ink),var(--text))}

/* 15. Day totals end where the row amounts' text ends: 16px row padding + the amount's 18px chevron space (desktop). */
html[data-theme] #app[data-route=home] .home-ledger-layout>.ledger-grouped .ledger-day-heading{padding-right:34px}
/* 18. Only today's group keeps the blue day marker. */
html[data-theme] #app[data-route=home] .home-ledger-layout>.ledger-grouped .ledger-day-heading:not(.is-today) strong::before{display:none}

@media (max-width:639px){
 /* 17. The day groups sit on the page: no outer "Your transactions" panel (the heading and count stay). */
 html[data-theme] #app[data-route=home] .home-ledger-layout{background:transparent}

 /* 19. Phone tab bar: a soft blue pill around the active icon (it still glides), icon and label in blue. */
 html[data-theme] .navigation .nav-items::before{top:2px;bottom:auto;height:32px;background:var(--hr-tint);clip-path:inset(0 calc(50% - 30px) round 16px)}
 /* The gliding selection is a JS element (components.css .nav-selection) sized to the whole tab; it is clipped to the
    same 60x32 pill around the icon. :not(#hr) only lifts this over the Grey Glass rule. */
 html[data-theme]:not(#hr) .navigation .nav-items.has-nav-selection>.nav-selection{background:var(--hr-tint);box-shadow:none;clip-path:inset(2px calc(50% - 30px) calc(100% - 34px) round 16px)}
 html[data-theme]:not(#hr) .navigation .nav-items>.nav-item.active{color:var(--hr-tint-text)}
 html[data-theme]:not(#hr) .navigation .nav-items>.nav-item.active svg{color:var(--hr-tint-text);stroke:currentColor}
 html[data-theme]:not(#hr) .navigation .nav-items>.nav-item.active span{color:var(--hr-tint-text);font-weight:600}
 /* 21. A hairline on top of the tab bar so the list scrolls under it cleanly. */
 html[data-theme] .navigation{border-top:1px solid var(--divider)}
}

/* A2 (the user's pick): tap the tick meter and the same 30 ticks become one bar of this month's spending by category
   (full width = total spent), with the top categories sliding open below; tap again to reverse. budget-breakdown.js
   only flips attributes; the morph is these transitions on the existing ticks. Tones are Stats' rank colours. */
.budget-ticks [data-tone="0"],.home-breakdown [data-tone="0"]{--tone:var(--chart-4)}
.budget-ticks [data-tone="1"],.home-breakdown [data-tone="1"]{--tone:var(--chart-2)}
.budget-ticks [data-tone="2"],.home-breakdown [data-tone="2"]{--tone:var(--chart-3)}
.budget-ticks [data-tone=other],.home-breakdown [data-tone=other]{--tone:var(--muted)}
html[data-theme] #app .mobile-budget-summary.is-compact .budget-meter{position:relative;margin-top:10px}
html[data-theme] #app .mobile-budget-summary.is-compact .budget-meter .budget-ticks{margin:0}
/* 44px tap target over a 14px meter; the pencil and the explain button stay on top where their targets overlap it. */
html[data-theme] #app .budget-ticks-toggle{position:absolute;inset:-15px 0;z-index:1;width:100%;min-height:44px;margin:0;padding:0;border:0;border-radius:8px;background:none;cursor:pointer}
html[data-theme] #app .budget-ticks-toggle:focus-visible{outline:2px solid var(--reference-blue);outline-offset:-11px}
html[data-theme] #app .mobile-budget-summary.is-compact :is(.mobile-budget-edit,.overview-tools .icon-button){position:relative;z-index:2}

/* The morph: gap 3px -> 0, height 14 -> 10px (centred, so nothing below moves), square inner corners, the fill grows to
   the full tick in its category colour, left to right 6ms apart; the pace mark fades out. */
html[data-theme] #app .mobile-budget-summary.is-compact .ticks-row{transition:gap 380ms var(--motion-ease),height 380ms var(--motion-ease),margin 380ms var(--motion-ease)}
html[data-theme] #app .mobile-budget-summary.is-compact .ticks-row>i{transition:background-color 380ms var(--motion-ease),border-radius 380ms var(--motion-ease),margin 380ms var(--motion-ease);transition-delay:calc(var(--k,0) * 6ms)}
html[data-theme] #app .mobile-budget-summary.is-compact .ticks-row>i>svg{transition:border-radius 380ms var(--motion-ease);transition-delay:calc(var(--k,0) * 6ms)}
html[data-theme] #app .mobile-budget-summary.is-compact .tick-fill{transition:fill 380ms var(--motion-ease),transform 380ms var(--motion-ease);transition-delay:calc(var(--k,0) * 6ms)}
html[data-theme] #app .mobile-budget-summary.is-compact .ticks-row>i.is-pace::after{transition:opacity 200ms var(--motion-ease)}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row{gap:0;height:10px;margin-block:1px}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i{border-radius:0;background:var(--tone,var(--ticks-track))}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i>svg{border-radius:0;filter:none}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .tick-fill{fill:var(--tone,var(--ticks-fill));transform:scale(1,1)}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i[data-tone-start],
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i[data-tone-start]>svg{border-top-left-radius:3px;border-bottom-left-radius:3px}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i[data-tone-end],
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i[data-tone-end]>svg{border-top-right-radius:3px;border-bottom-right-radius:3px}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i[data-tone-end]:not(:last-child){margin-right:3px}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .ticks-row>i.is-pace::after{opacity:0}

/* Footer: "₹3,011 spent · 9%" crossfades to "By category"; the right side keeps the daily allowance. */
html[data-theme] #app .mobile-budget-summary.is-compact .pace-left{display:grid}
html[data-theme] #app .mobile-budget-summary.is-compact .pace-left>*{grid-area:1/1;transition:opacity 200ms var(--motion-ease)}
html[data-theme] #app .mobile-budget-summary.is-compact .pace-by{opacity:0;color:var(--text);font-weight:600}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .pace-spent{opacity:0}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .pace-by{opacity:1}
html[data-theme] #app .mobile-budget-summary.is-compact .mobile-pace-day b{color:var(--text);font-weight:600}

/* The category list slides open under the footer (it takes no space while closed). */
html[data-theme] #app .mobile-budget-summary.is-compact .home-breakdown{display:grid;grid-template-rows:0fr;transition:grid-template-rows 360ms var(--motion-ease)}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .home-breakdown{grid-template-rows:1fr}
html[data-theme] #app .home-breakdown>.bb-inner{min-height:0;overflow:hidden}
html[data-theme] #app .home-breakdown .bb-rows{display:grid;gap:2px;margin:0;padding:10px 0 0;list-style:none}
html[data-theme] #app .home-breakdown .bb-rows>li{display:grid;grid-template-columns:8px minmax(0,1fr) auto 3.2em;align-items:center;column-gap:8px;min-height:28px;font-size:var(--text-sm);font-variant-numeric:tabular-nums;opacity:0;transform:translateY(-4px);transition:opacity 200ms var(--motion-ease),transform 200ms var(--motion-ease)}
html[data-theme] #app .home-breakdown .bb-dot{width:8px;height:8px;border-radius:50%;background:var(--tone)}
html[data-theme] #app .home-breakdown .bb-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] #app .home-breakdown .bb-rows b{font-weight:600}
html[data-theme] #app .home-breakdown .bb-rows small{color:var(--muted);font-size:var(--text-xs);text-align:right}
html[data-theme] #app .home-breakdown .bb-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:-4px 0 -10px;color:var(--hr-tint-text);font-size:var(--text-sm);font-weight:600;text-decoration:none;opacity:0;transition:opacity 200ms var(--motion-ease)}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-rows>li,html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-all{opacity:1;transform:none}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-rows>li:nth-child(1){transition-delay:120ms}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-rows>li:nth-child(2){transition-delay:170ms}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-rows>li:nth-child(3){transition-delay:220ms}
html[data-theme] #app .mobile-budget-summary[data-breakdown=open] .bb-all{transition-delay:270ms}

/* A re-render restores the open state without replaying it; reduced motion switches at once. */
html[data-theme] #app .mobile-budget-summary.bb-instant :is(.ticks-row,.ticks-row>i,.ticks-row>i>svg,.tick-fill,.ticks-row>i::after,.pace-left>*,.home-breakdown,.bb-rows>li,.bb-all){transition:none!important}
@media (prefers-reduced-motion:reduce){
 html[data-theme] #app .mobile-budget-summary.is-compact :is(.ticks-row,.ticks-row>i,.ticks-row>i>svg,.tick-fill,.ticks-row>i::after,.pace-left>*,.home-breakdown,.bb-rows>li,.bb-all){transition:none!important}
}

/* List review (the user's "fix all", 2026-11-04). Rows: names 500, amounts 600 in tabular figures, paise smaller and
   muted, no minus on spending (income keeps a green +), the sub-line one muted 13px line. Phones: no reserved chevron
   space, 56px rows with 40px icons, 16px between day groups. */
html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-text>strong{font-weight:500}
html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-amount{font-size:var(--text-base);font-weight:600;font-variant-numeric:tabular-nums}
html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-main strong{font-size:var(--text-base);line-height:1.35}
html[data-theme] #app .transaction-amount .amount-paise{font-size:.75em;font-weight:500;color:var(--muted)}
html[data-theme] #app[data-amounts-hidden=true] .amount-paise,[data-amounts-hidden=true] .amount-paise{display:none}
html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-meta{margin-top:2px;color:var(--muted);font-size:13px;font-weight:400;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app[data-route=home] .home-ledger-layout .transaction :is(b,strong:not(.transaction-amount)){font-weight:500}
html[data-theme] #app[data-route=home] .home-ledger-layout>.ledger-grouped .ledger-day-heading>span{color:var(--muted);font-size:13px;font-weight:500}
@media (max-width:639px){
 html[data-theme] #app[data-route=home] .home-ledger-layout>.ledger-grouped .transaction-list>.transaction-disclosure>.transaction{min-height:56px;padding-top:6px;padding-bottom:6px}
 html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-text>strong{line-height:1.25}
 /* Narrow phones: the daily allowance keeps its amount and drops "for N days". */
 html[data-theme] #app .mobile-budget-summary.is-compact .pd-days{display:inline}
 html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-amount{padding-right:0}
 html[data-theme] #app[data-route=home] .home-ledger-layout .transaction .transaction-icon{width:40px;height:40px;min-width:40px}
 html[data-theme] #app[data-route=home] .home-ledger-layout>.ledger-grouped .ledger-day-heading{padding-top:16px;padding-right:16px}
}

/* Opened row: one muted meta line, a row of chips for receipt and history, Edit the one solid button. */
html[data-theme] #app .connected-meta-line{margin:2px 0 10px;color:var(--muted);font-size:13px;line-height:1.4}
html[data-theme] #app .connected-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 10px}
html[data-theme] #app .connected-chip{position:relative;min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius-pill);background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
html[data-theme] #app .connected-chip::after{content:"";position:absolute;inset:-4px 0}
html[data-theme] #app .connected-chip[aria-expanded=true]{border-color:var(--hr-tint-edge);background:var(--hr-tint);color:var(--hr-tint-text)}
html[data-theme] #app :is(.inline-receipt,.inline-history).has-chip>summary{display:none}
html[data-theme] #app .transaction-expansion .receipt-full.text-button{min-height:44px;padding:0 4px;border:0;background:none;color:var(--hr-tint-text);font-weight:600}

/* 11. An opened row stays inside its day-group card: no margins or forced corners (ledger-rows.css), the group's edges
   and corners as for any row, and a faint lifted fill; the rows below slide down as it grows. */
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-list>.transaction-disclosure.is-expanded{margin-block:0;border-radius:0!important;background:color-mix(in srgb,var(--text) 3%,var(--surface));box-shadow:inset 1px 0 0 var(--group-edge),inset -1px 0 0 var(--group-edge)}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-list>.ledger-day-heading+.transaction-disclosure.is-expanded{border-top-left-radius:var(--radius-lg)!important;border-top-right-radius:var(--radius-lg)!important;box-shadow:inset 1px 0 0 var(--group-edge),inset -1px 0 0 var(--group-edge),inset 0 1px 0 var(--group-edge)}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-list>.transaction-disclosure.is-expanded:is(:last-child,:has(+.ledger-day-heading,+.ledger-month-heading)){border-bottom-left-radius:var(--radius-lg)!important;border-bottom-right-radius:var(--radius-lg)!important;box-shadow:inset 1px 0 0 var(--group-edge),inset -1px 0 0 var(--group-edge),inset 0 -1px 0 var(--group-edge)}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-list>.ledger-day-heading+.transaction-disclosure.is-expanded:is(:last-child,:has(+.ledger-day-heading,+.ledger-month-heading)){box-shadow:inset 0 0 0 1px var(--group-edge)}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-disclosure.is-expanded>.transaction{border-radius:inherit;background:transparent}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-disclosure.is-expanded .inline-detail-inner{background:transparent}
@media (max-width:359px){html[data-theme] #app .mobile-budget-summary.is-compact .pd-days{display:none}}

/* Add / Edit sheet: each field once. The account dropdown sits invisibly over the account chip (one tap opens the full
   list); the Paid by switch and the category grid replace their Details copies; Details holds the note (and repeat). */
html[data-theme] .entry-account-chip.has-select{position:relative;cursor:pointer}
html[data-theme] .entry-account-chip>.entry-account-select{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none}
html[data-theme] .entry-account-chip:has(>.entry-account-select:focus-visible){outline:2px solid var(--reference-blue);outline-offset:2px}
html[data-theme] form.has-paid-by-switch .entry-details label:has(>select[name=paidBy]){display:none}
html[data-theme] form:has(.quick-categories) .entry-details .entry-category-field{display:none}
html[data-theme] .entry-details label.is-moved{display:none}
html[data-theme] form:has(.entry-account-select) .entry-details .more-details>summary{display:none}

/* The chosen subcategory shows on its parent's tile (or the More tile), one muted line; it fades in. */
html[data-theme] .quick-category .quick-sub{display:block;max-width:100%;font-style:normal;font-size:12px;font-weight:400;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:quick-sub-in 200ms var(--motion-ease)}
html[data-theme] .quick-category:has(.quick-sub) .quick-last-used{display:none}
html[data-theme] .quick-category-more.is-selected small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes quick-sub-in{from{opacity:0;transform:translateY(2px)}}
@media (prefers-reduced-motion:reduce){html[data-theme] .quick-category .quick-sub{animation:none}}

/* Existing transaction flow: align and quiet its controls without changing their actions. */
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner{padding:0 16px 16px}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .connected-meta-line{margin:4px 0 12px;font-size:13px;line-height:1.5}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .connected-chips{gap:8px;margin:0 0 14px}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .connected-chip{min-height:36px;padding:0 12px;font-size:13px;line-height:1.4}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner .dialog-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;align-items:center;margin:0;padding:14px 0 0;border-top:1px solid var(--divider);background:none}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner .dialog-footer:not(:has(>.receipt-full)){grid-template-columns:minmax(0,1fr) 44px}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner .dialog-footer>.button{grid-column:auto;grid-row:auto;width:100%;min-width:0;height:44px;min-height:44px;padding:8px 14px;border-radius:var(--radius-sm);font-size:14px;line-height:1.3;white-space:nowrap;justify-content:center}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .transaction-expansion .receipt-full.text-button{justify-self:start;min-height:44px;padding:8px 0;font-size:14px;font-weight:500;line-height:1.3;white-space:nowrap}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner .dialog-footer>.receipt-more{grid-column:auto;grid-row:auto;justify-self:end;align-self:center;width:44px;margin:0;padding:0;border:0}
html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .receipt-more>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:var(--radius-sm);line-height:1}
@media(max-width:639px){html[data-theme] #app[data-route=home][data-home-view=daily] .home-ledger-layout .inline-detail-inner .dialog-footer>.button{white-space:normal;text-wrap:balance;padding-inline:5px;font-size:13px}}

@media(max-width:639px){
 html[data-theme] #app[data-route=home] .mobile-category-chips{padding-block:6px}
 html[data-theme] #app[data-route=home][data-home-view=daily] .ledger>.section-heading{padding-top:6px;margin-bottom:2px}
 html[data-theme] #app .mobile-budget-summary.is-compact{padding-block:12px}
 #transaction-form:not(.te-ready) .amount-control input{font-size:clamp(28px,8vw,36px)}
 #transaction-form:not(.te-ready) .entry-date input{padding-inline:6px;font-size:16px}
 #transaction-form:not(.te-ready) #quick-categories-slot:empty{display:none}
 #transaction-form:not(.te-ready) #quick-categories-slot .quick-categories{margin:0}
 #transaction-form:not(.te-ready) #quick-categories-slot .quick-category{min-height:48px;padding-block:4px;gap:2px}
 #transaction-form:not(.te-ready) #quick-categories-slot .quick-category span{width:22px;height:22px}
 #transaction-form:not(.te-ready) #quick-categories-slot .quick-category:nth-child(n+4):not(.quick-category-more):not([aria-pressed=true]){display:none}
 #transaction-form:not(.te-ready) .quick-categories:has([data-action=quick-category]:nth-child(n+4)[aria-pressed=true]) .quick-category:nth-child(3){display:none}
 #app[data-route=home] .calendar-layout>.day-panel .day-panel-header{scroll-margin-top:64px}
}

#app[data-route=home] .home-ledger-heading p{margin-block:6px 0;color:var(--muted);font-size:var(--text-sm)}
@media(max-width:639px){#app[data-route=home] .home-ledger-heading .active-filters{display:flex;flex-wrap:wrap}}
