/* Shared theme for the application and sign-in. Keep category/project colours meaningful. */
:root[data-theme=dark]{color-scheme:dark;--text:#e5e8ed;--muted:#a4aeb8;--line:#343b43;--shadow:none;--surface:#23272e;--surface-2:#2c323a;--green:#92cf79;--dark:#afd895;color:var(--text);background:#15181d}
[data-theme=dark] body,[data-theme=dark] .shell,[data-theme=dark] main{background:#191c21;color:var(--text)}
[data-theme=dark] :is(.sidebar,.sidebar .nav-item:not(.active)){background:#191c21;color:#a7b1ba;border-color:var(--line)}
[data-theme=dark] :is(.brand,.brand .mark){color:var(--text)}[data-theme=dark] .mark i{background:#aec89f}
[data-theme=dark] .nav-item.active{background:#83bd6b;color:#172211}
[data-theme=dark] :is(.card,dialog,.login-card,.mobile-money-sheet,.goal-summary,.phone-week-day,.agenda-scroll,.agenda-day-headers,.agenda-all-day,.agenda-month,.chat-context-panel,.agenda-filter-popover){background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:none}
[data-theme=dark] :is(h1,h2,h3,h4,strong,.card-heading h2,.goal-summary-title,.day-task-content,.day-agenda-item,.life-row-main strong,.record-row strong){color:var(--text)}
[data-theme=dark] :is(label,.muted,.small,.note,.intro,.hint,.empty,.entry-hint,.cal-explain,.capital-form-note,.capital-chart-note,.chat-empty,.day-empty p,.day-date,.goal-summary-next,.goal-summary-date,.day-all-tasks,.day-task-content small,.day-agenda-item small,.ledger-last-edit,.ledger-last-edit time,.ledger-last-edit time,.ledger-help,.goal-simple-empty,.cal-zone,.agenda-zone,.agenda-time-labels,.agenda-hint){color:var(--muted)}
[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){background:var(--surface-2)!important;color:var(--text)!important;border-color:#48525e!important}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#96a0ab}
[data-theme=dark] :is(.secondary,.icon-button,.service-open,.month-control,.year-switch,.year-control,.mobile-period-arrow,.capital-chart-controls select){background:var(--surface-2);color:#c4d2bc;border-color:#414b55}
[data-theme=dark] :is(.primary,.submit),[data-theme=dark] #entry-dialog .entry-footer .primary{background:#89bd73;color:#14210f}
[data-theme=dark] :is(.primary,.submit):hover{background:#a4d18e}
[data-theme=dark] :is(.text-button,.row-action,.goal-back,.goal-work-actions button,.day-card-heading .text-button,.mobile-money-empty,.phone-year-link,.mobile-money-footer button){color:#afc89f}
[data-theme=dark] :is(.finance-tabs,.agenda-views,.goal-simple-nav button[aria-current=page],.entry-kind-tabs,.capital-range,.filter-tabs,.goals-tabs){background:#2b3239;color:var(--muted);border-color:var(--line)}
[data-theme=dark] :is(.finance-tabs button.selected,.agenda-views button[aria-pressed=true],.entry-kind-tabs button[aria-pressed=true],.capital-range button[aria-pressed=true],.goal-simple-nav button[aria-current=page]){background:#3b4936;color:#c2e4af;box-shadow:none}
[data-theme=dark] :is(.finance-tabs button,.agenda-views button,.goal-simple-nav button,.capital-range button,.goal-simple-controls>a,.cal-nav,.agenda-navigation .secondary,.chat-phone-context){color:#a7b49d}
[data-theme=dark] :is(.day-focus,.goal-work-card,.capital-list,.capital-chart-card,.annual-analysis){border-color:var(--line)}
[data-theme=dark] :is(.day-empty h3,.goal-work-card .goal-metric,.goal-work-card .goal-percent,.goal-summary-percent,.goal-summary-progress,.mobile-period-picker){color:#b5d7a2}
[data-theme=dark] :is(.capital-summary,.health-banner,.life-hero,.next-step,.goal-next-step,.goal-work-next,.flow-quick-undo,#service-preview,.entry-history,.entry-history-panel,.entry-history-list,.cal-extra,.health-metrics>div,.chat-context-panel .note){background:#29352a;color:#bed5b3;border-color:#3d5140}
[data-theme=dark] :is(.capital-summary>div>strong,.capital-summary-parts b,.health-banner h2,.health-metrics b){color:#cee5c0}
[data-theme=dark] :is(.capital-edit-row,.capital-list-total,.capital-interest,.capital-cash,.capital-history-row,.mobile-money-row,.mobile-money-group+.mobile-money-group,.mobile-money-result,.mobile-flow-base,.day-task,.day-agenda-item,.record-row,.life-row,.history-row,.chat-intro,.chat-form,.goal-simple-nav,.goal-step,.goal-work-details,.dialog-title){border-color:var(--line)}
[data-theme=dark] :is(.capital-edit-row,.capital-cash>summary,.mobile-money-row,.mobile-money-row b,.mobile-money-result strong,.mobile-money-result,.capital-list-total,.capital-history-row b,.entry-history-row){color:var(--text)}
[data-theme=dark] .capital-edit-row:hover,[data-theme=dark] .goal-summary:hover,[data-theme=dark] .mobile-money-row:active{background:#2d333c}
[data-theme=dark] :is(.mobile-money-group.income .mobile-money-heading strong,.positive){color:#a0d88b}
[data-theme=dark] :is(.mobile-money-group.expense .mobile-money-heading strong,.negative,.error,.overdue){color:#edaa8e}
[data-theme=dark] .mobile-money-group.investment .mobile-money-heading strong{color:#b5bcea}
[data-theme=dark] :is(.entry-delete,.delete-button){color:#e8a08b}
[data-theme=dark] :is(.entry-footer,dialog.mobile-dialog .mobile-dialog-footer){background:var(--surface);border-color:var(--line)}
[data-theme=dark] :is(.entry-kind-tabs button,.entry-context label,.entry-date-row label,.entry-amount-field label,.entry-history-total,.entry-history-row strong,.entry-history-row b){color:#bcc9b5}
[data-theme=dark] .entry-amount-input input{background:transparent!important}
[data-theme=dark] :is(.goal-summary-track,.goal-progress-track){background:#384331}
[data-theme=dark] :is(.task-check,.status-pill,.project-chip,.chat-prompts button,.draft-button,.undo){background:#303a2e;color:#bbd4ab;border-color:#4a5843}
[data-theme=dark] :is(.chat-message,.chat-message.user){background:#2c3c2d;color:var(--text)}[data-theme=dark] .chat-message.assistant{background:#2d333b}
[data-theme=dark] :is(.phone-week-day>div>button:first-child,.agenda-day-heading,.agenda-day-number,.phone-month-day){background:var(--surface);color:#bdc8b5}
[data-theme=dark] :is(.agenda-weekdays,.agenda-month-day.outside,.phone-month-day.outside){background:#20242a;color:#77838e}
[data-theme=dark] :is(.agenda-day-headers,.agenda-all-day,.agenda-day-heading,.agenda-all-day>div,.agenda-month-day,.phone-month-day){border-color:var(--line)}
[data-theme=dark] .agenda-day-column{border-color:var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 27px,#2c333b 27px,#2c333b 28px,transparent 28px,transparent 55px,#3b424c 55px,#3b424c 56px)}
[data-theme=dark] .cal-slot:hover{background:#899f6d18}
[data-theme=dark] .cal-record{background:color-mix(in srgb,var(--project) 25%,#23272e);color:color-mix(in srgb,var(--project) 35%,white)}
[data-theme=dark] .cal-selection{background:#98d37922;border-color:#a0d78b;color:#dbefd1}
[data-theme=dark] .cal-all-add{color:#9aac91}
[data-theme=dark] #cal-alert{background:var(--surface);color:var(--text);border-color:#52634b}
[data-theme=dark] :is(.analysis-table th,.analysis-table td){border-color:var(--line);color:var(--text)}
[data-theme=dark] :is(.analysis-table thead,.analysis-table thead th,.analysis-table thead td){background:#2c323a;color:#b2bdc6}
[data-theme=dark] .analysis-table tbody .analysis-amount{background:transparent!important}
[data-theme=dark] .analysis-table tfoot :is(th,td){background:#29392c!important;color:#b6dca5}
[data-theme=dark] .annual-table :is(th,td){background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
[data-theme=dark] .annual-table thead th{background:#2c323a!important;color:#bac6b3!important}
[data-theme=dark] .annual-cell{background:transparent!important;color:#9ca8b3}
[data-theme=dark] .annual-cell.has-value{color:var(--text)}
[data-theme=dark] .annual-cell:hover,[data-theme=dark] .annual-cell:focus-visible{background:#405137!important;color:#d6eccb}
[data-theme=dark] .annual-table :is(.is-current,.current-month){background:#2c382c!important}
[data-theme=dark] .annual-table thead .is-current span{background:#415e35;color:#d1ebc4}
[data-theme=dark] .annual-table :is(.total-income,.income)>:is(th,td){background:#2e402b!important;color:#b4dfa2!important}
[data-theme=dark] .annual-table :is(.total-expense,.expense)>:is(th,td){background:#432f2c!important;color:#eab09b!important}
[data-theme=dark] .annual-table :is(.total-investment,.investment)>:is(th,td){background:#33334a!important;color:#bcbceb!important}
[data-theme=dark] .annual-table :is(.total-after,.opening,.net,.closing)>:is(th,td){background:#303b2c!important;color:#bed4b1!important}
[data-theme=dark] .annual-table td.negative{color:#edaa8e!important}
[data-theme=dark] :is(.goal-next-box,.goal-step-done,.goal-child,.analysis-bar-track){background:#2d3a2c;color:#bcd5b1;border-color:#42523d}
[data-theme=dark] :is(.goal-next-box strong,.goal-work-title strong,.goal-metric strong){color:#c6ddb9}
[data-theme=dark] :is(.progress,.goal-summary-track){background:#374232}
[data-theme=dark] .analysis-bar-track{background:repeating-linear-gradient(to right,#2c333b 0,#2c333b 1px,transparent 1px,transparent 25%)}
[data-theme=dark] svg text{fill:#b0bbc4}
[data-theme=dark] svg [stroke="#e7ece3"],[data-theme=dark] svg [stroke="#e8ece2"],[data-theme=dark] svg [stroke="#edf1e7"]{stroke:#3b434d}
[data-theme=dark] #service-dialog :is(p,summary){color:var(--muted)}[data-theme=dark] #service-dialog strong{color:#b5d49f}
@media(max-width:700px){[data-theme=dark] .finance-tabs{background:none}[data-theme=dark] .finance-tabs button.selected{color:#b8daa5;border-bottom-color:#91c57a}}
[data-theme=dark] dialog{border:1px solid #48525e!important}
[data-theme=dark] dialog .icon-button{background:#303840!important;color:#c8d5bf!important}
[data-theme=dark] #entry-dialog .entry-amount-input input{background:transparent!important}
[data-theme=dark] :is(.entry-amount-input,.entry-date-row,.entry-history summary){border-color:var(--line)!important}
[data-theme=dark] .analysis-table tbody tr:hover>*{background:#2e353d}
[data-theme=dark] .expense .analysis-table tfoot :is(th,td){background:#432f2c!important;color:#eab09b}
[data-theme=dark] .investment .analysis-table tfoot :is(th,td){background:#33334a!important;color:#bcbceb}
[data-theme=dark] :is(.analysis-balance,.analysis-zero){border-color:var(--line)}
[data-theme=dark] .analysis-balance b{color:#b6d79f}[data-theme=dark] .analysis-balance b.is-negative{color:#edaa8e}
[data-theme=dark] .budget-year-switch{background:#2c323a;color:var(--text);border-color:#48525e}
[data-theme=dark] .goal-metric b{color:#c1dcb0}
[data-theme=dark] .goal-signal{background:#303a2e!important;color:#bfd2b5!important}
[data-theme=dark] .goal-signal.warning{background:#48372a!important;color:#e8bb95!important}
[data-theme=dark] .goal-signal.done{background:#304431!important;color:#b6d9a8!important}
[data-theme=dark] .breakdown-heading h3{color:#acd394}[data-theme=dark] .expense .breakdown-heading h3{color:#e6af93}[data-theme=dark] .investment .breakdown-heading h3{color:#b5bce3}
[data-theme=dark] .goal-signal.attention{background:#48372a!important;color:#e8bb95!important}
[data-theme=dark] .goal-signal.late{background:#482f2b!important;color:#e8aa98!important}
[data-theme=dark] .ledger-mode .ledger-canvas{background:var(--surface)!important;border-color:var(--line)!important}
[data-theme=dark] .annual-cell.has-value{color:var(--text)!important}
[data-theme=dark] .annual-table thead .is-current span{background:#415e35!important;color:#d1ebc4!important}
[data-theme=dark] .ledger-badge{background:#35432e!important;color:#bcd4ad!important;border-color:#4a5b42!important}
[data-theme=dark] .ledger-mode-label{background:#35432e;color:#bcd4ad;border-color:#4a5b42}
[data-theme=dark] :is(.password-field button,.remember small){color:var(--muted)}
[data-theme=dark] .phone-calendar-filters[open]>summary{background:#3b4936;color:#c2e4af}
[data-theme=dark] .chat-proposal-delete strong{color:#e8ab95}[data-theme=dark] .chat-action-status{color:#b6d8a3}

/* Keep the mobile/tabular navigation quiet in both themes. */
:root[data-theme=dark] .mobile-period-arrow{background:transparent;color:#c4d2bc}
[data-theme=dark] :is(.mobile-money-meta,.mobile-money-footer .ledger-last-edit,.mobile-flow-base span){color:var(--muted)}
@media(max-width:700px){:root[data-theme=dark] body .finance-tabs,:root[data-theme=dark] body .finance-tabs button.selected{background:transparent}}

/* Personal / 2026 — shared neutral surfaces, yellow actions, blue navigation.
   Inspired by T-Bank's published mobile-to-web case study, not its private native UI kit.
   Semantic finance colours and user-defined calendar project colours remain independent. */
:root,[data-theme=light]{--text:#242428;--muted:#74747c;--line:#e7e7eb;--surface:#fff;--surface-2:#f0f0f3;--canvas:#f5f5f6;--accent:#ffdd2d;--accent-hover:#f4cd18;--accent-text:#242424;--link:#326ce5;--accent-soft:#fff7cf;--green:#ffdd2d;--dark:#242428;--radius:24px;--shadow:0 2px 12px #17171c04;color:var(--text);background:#e9e9ec}
:root[data-theme=dark]{--text:#f4f4f6;--muted:#a3a3ad;--line:#35353b;--surface:#222225;--surface-2:#2c2c31;--canvas:#141416;--accent:#ffdd2d;--accent-hover:#ffe86b;--accent-text:#242424;--link:#8aafff;--accent-soft:#373321;--green:#ffdd2d;--dark:#f4f4f6;--shadow:none;background:#141416}
:root[data-theme] body,.shell,:root[data-theme] main{color:var(--text);background:var(--canvas)}
:root[data-theme] .shell{border-color:var(--line);box-shadow:none}
:root[data-theme] .sidebar{background:var(--canvas);border-color:var(--line)}
:root[data-theme] .brand,:root[data-theme] .brand .mark{color:var(--text)}:root[data-theme] .mark i{background:var(--text)}
:root[data-theme] :is(h1,h2,h3,h4){color:var(--text);letter-spacing:-.025em}
:root[data-theme] :is(.card,dialog,.login-card,.goal-summary,.capital-list,.capital-chart-card,.document-row,.focus-main,.focus-empty){background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:var(--shadow)}
:root[data-theme] :is(.nav-caption,.eyebrow,.local-label,.profile small,.vault-note,.vault-row small,.auto-fields dt,.document-info small,.vault-empty p,.day-date,.day-empty p,.ledger-help,.ledger-last-edit,.ledger-last-edit time,.goal-summary-next,.goal-summary-date,.goal-simple-empty,.overview-caption,.entry-hint,.capital-form-note,.capital-chart-note,.chat-empty,.cal-zone,.agenda-zone,.agenda-time-labels,.agenda-hint,.reflection-hint,.reflection-question-hint){color:var(--muted)}
:root[data-theme] :is(.auto-fields dd,.vault-heading h2,.document-info h3,.life-row-main strong,.record-row strong,.mobile-money-row,.mobile-money-row b,.entry-history-row,.capital-edit-row,.capital-list-total,.capital-history-row b,.day-task-content,.day-agenda-item){color:var(--text)}
:root[data-theme] .sidebar .nav-item{background:transparent;color:var(--muted)}
:root[data-theme] .sidebar .nav-item.active{background:var(--accent-soft);color:var(--text)}
:root[data-theme] .sidebar .nav-item.active svg{color:var(--text)}
:root[data-theme] :is(.primary,.submit),:root[data-theme] #entry-dialog .entry-footer .primary{background:var(--accent);color:var(--accent-text);border-color:transparent;box-shadow:none;border-radius:14px;font-weight:600}
:root[data-theme] :is(.primary,.submit):hover{background:var(--accent-hover);color:var(--accent-text)}
:root[data-theme] :is(.primary,.submit) strong{color:inherit}
:root[data-theme] :is(.secondary,.icon-button,.service-open,.month-control,.year-switch,.year-control,.mobile-period-arrow,.budget-year-switch,.cal-nav){background:var(--surface-2);color:var(--text);border-color:transparent;box-shadow:none}
:root[data-theme] :is(.text-button,.row-action,.goal-back,.goal-work-actions button,.day-card-heading .text-button,.phone-year-link,.mobile-money-footer button,.more-links svg){color:var(--link)}
:root[data-theme] :is(.finance-tabs,.vault-tabs,.agenda-views,.entry-kind-tabs,.capital-range,.filter-tabs,.goals-tabs,.mobile-budget-switch){background:var(--surface-2);border-color:transparent;border-radius:14px;padding:4px}
:root[data-theme] :is(.finance-tabs button,.vault-tabs button,.agenda-views button,.entry-kind-tabs button,.capital-range button,.goals-tabs button,.mobile-budget-switch button){color:var(--muted);border-radius:11px}
:root[data-theme] :is(.finance-tabs button.selected,.vault-tabs button.selected,.agenda-views button[aria-pressed=true],.entry-kind-tabs button[aria-pressed=true],.capital-range button[aria-pressed=true],.goals-tabs button.selected,.mobile-budget-switch button.active){background:var(--surface);color:var(--text);box-shadow:0 1px 5px #00000008}
:root[data-theme] :is(.goal-simple-nav button[aria-current=page],.goal-horizons [aria-current]){background:var(--accent-soft);color:var(--text)}
:root[data-theme] :is(.goal-simple-nav button,.goal-simple-controls>a,.agenda-navigation .secondary){color:var(--muted)}
:root[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){color:var(--text)!important;background:var(--surface-2)!important;border-color:transparent!important;accent-color:var(--accent)}
:root[data-theme] :is(input,textarea)::placeholder{color:var(--muted)}
:root[data-theme] :is(input[type=checkbox],input[type=radio]){accent-color:var(--link)}
:root[data-theme] :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--link);outline-offset:3px}
:root[data-theme] :is(dialog label,.entry-kind-tabs button,.entry-context label,.entry-date-row label,.entry-amount-field label,.entry-history-total,.entry-amount-caption,.entry-amount-caption span){color:var(--muted)}
:root[data-theme] :is(.entry-footer,.vault-form-footer,.mobile-dialog-footer){background:var(--surface);border-color:var(--line)}
:root[data-theme] :is(.capital-summary,.health-banner,.life-hero,.next-step,.goal-next-step,.goal-work-next,.flow-quick-undo,#service-preview,.entry-history,.entry-history-panel,.entry-history-list,.cal-extra,.health-metrics>div,.chat-context-panel .note,.vault-empty,.mobile-money-result,.mobile-flow-base){background:var(--surface-2);color:var(--text);border-color:var(--line)}
:root[data-theme] :is(.capital-summary>div>strong,.capital-summary-parts b,.health-banner h2,.health-metrics b,.life-stats b,.goal-work-card .goal-metric,.goal-work-card .goal-percent,.goal-summary-percent,.goal-summary-progress,.mobile-period-picker){color:var(--text)}
:root[data-theme] :is(.health-banner p,.life-hero p:not(.eyebrow),.goal-card p,.life-row-main small,.life-row-main p,.record-row small,.record-row p,.goal-card small,.auto-months>div>strong){color:var(--muted)}
:root[data-theme] :is(.document-symbol,.task-check,.status-pill,.chat-prompts button,.draft-button,.undo){background:var(--surface-2);color:var(--link);border-color:var(--line)}
:root[data-theme] :is(.progress,.goal-summary-track,.goal-progress-track){background:var(--surface-2)}
:root[data-theme] :is(.progress i,.goal-summary-track i,.goal-progress-track i,.task-check.checked){background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
:root[data-theme] .chat-message{background:var(--surface-2);color:var(--text)}:root[data-theme] .chat-message.user{background:var(--accent-soft);color:var(--text)}:root[data-theme] .chat-message.assistant{background:var(--surface-2);color:var(--text)}
:root[data-theme] :is(.chat-message strong,.chat-message b,.chat-speaker){color:inherit}
:root[data-theme] :is(.agenda-scroll,.agenda-day-headers,.agenda-all-day,.agenda-month,.agenda-filter-popover){background:var(--surface);border-color:var(--line)}
:root[data-theme] :is(.agenda-day-heading,.agenda-weekdays,.cal-all-add,.month-add,.agenda-day-number){color:var(--muted)}
:root[data-theme] :is(.agenda-day-heading.today strong,.agenda-day-number.today,.phone-month-day.today>span){background:var(--accent);color:var(--accent-text)}
:root[data-theme] .cal-slot{border-color:var(--line)}
:root[data-theme] .more-links a{background:var(--surface-2);border-color:transparent}
:root[data-theme] .document-filters :is(input,select){border-color:transparent}
:root[data-theme] .auto-months>div{background:var(--surface);border-color:var(--line)}
:root[data-theme] .ledger-mode-label{background:var(--surface-2);color:var(--muted);border-color:transparent}
:root[data-theme] .entry-delete,:root[data-theme] .delete-button{color:#c14939}
:root[data-theme] .error{color:#c14939}
:root[data-theme] [disabled]{opacity:.5}
@media(max-width:700px){
 :root[data-theme] body,:root[data-theme] .shell,:root[data-theme] main{background:var(--canvas)}
 :root[data-theme] .sidebar{background:var(--surface);border-color:var(--line)}
 :root[data-theme] .sidebar .nav-item.active{background:transparent;color:var(--link)}
 :root[data-theme] .sidebar .nav-item.active svg{color:var(--link)}
 :root[data-theme] :is(.calendar-mode main>header,.calendar-mode .agenda-toolbar,.chat-mode main>header,main>header){background:var(--canvas);border-color:var(--line)}
 :root[data-theme] .card{border-radius:20px}
}
/* Specific legacy components share the same palette. */
:root[data-theme] #vault-dialog label,:root[data-theme] .auto-category-picker legend,:root[data-theme] .chat-message span,:root[data-theme] .phone-calendar-filters>summary,:root[data-theme] .agenda-all-day>span{color:var(--muted)}
:root[data-theme] .finance-tabs button.selected{border-bottom-color:var(--accent)!important;box-shadow:none}
:root[data-theme] .mobile-period-picker,:root[data-theme] .mobile-period-picker span{color:var(--text)}
:root[data-theme] :is(.day-focus,.day-focus-card,.day-card,.day-agenda,.day-tasks,.day-empty,.day-summary){background:var(--surface);border-color:var(--line)}
:root[data-theme] :is(.next-action,.ai-badge,.reflection-nav a.active,.reflection-toc button.active){background:var(--accent-soft);color:var(--text)}
:root[data-theme] :is(.next-action strong,.next-action span,.goal-metric,.goal-metric b,.chat-intro p){color:var(--muted)}
:root[data-theme] .life-stats>div{background:var(--surface)}
:root[data-theme] .nav-item:after{border-color:var(--accent)}
:root[data-theme] :is(.entry-amount-input,.entry-amount-input:focus-within){border-color:var(--line)}
:root[data-theme] .entry-amount-input:focus-within{border-color:var(--link)}
:root[data-theme] .ledger-mode .compact-budget.annual-card{background:var(--surface)!important;border-color:var(--line)}
:root[data-theme] .ledger-mode .compact-budget .annual-table{color:var(--text)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table :is(th,td){border-bottom-color:var(--line);border-right-color:var(--line)}
:root[data-theme] .ledger-mode .compact-budget .annual-table th:first-child{color:var(--text)!important;background:var(--surface)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table thead th{color:var(--muted)!important;background:var(--surface-2)!important;border-color:var(--line)}
:root[data-theme] .ledger-mode .compact-budget .annual-table thead th.is-current{background:var(--accent-soft)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table thead th.is-current span{color:var(--accent-text)!important;background:var(--accent)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .ledger-data-row td.is-current{background:var(--accent-soft)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .annual-cell{color:var(--text)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .ledger-data-row:hover>:is(th,td){background:var(--surface-2)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .annual-cell:hover{background:var(--accent-soft)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .budget-gap td{background:var(--surface)!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table :is(.opening,.net,.total-after)>:is(th,td){background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--line)}
:root[data-theme] .ledger-mode .compact-budget .annual-table .closing>:is(th,td){background:var(--text)!important;color:var(--surface)!important;border-color:var(--text)}
:root[data-theme] .ledger-mode .compact-budget .annual-table :is(.total-income,.income)>:is(th,td){background:#e9f5ec!important;color:#287b44!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table :is(.total-expense,.expense)>:is(th,td){background:#fbefec!important;color:#ad4d38!important}
:root[data-theme=dark] .ledger-mode .compact-budget .annual-table :is(.total-income,.income)>:is(th,td){background:#22372c!important;color:#90d6a7!important}
:root[data-theme=dark] .ledger-mode .compact-budget .annual-table :is(.total-expense,.expense)>:is(th,td){background:#3d2a27!important;color:#f0ad9a!important}
:root[data-theme] .ledger-mode .compact-budget .annual-table .closing .negative{background:#563d34!important;color:#ffd5c4!important}
:root[data-theme] .budget-code,:root[data-theme] .ledger-currency,:root[data-theme] #entry-dialog label,:root[data-theme] .remember small,:root[data-theme] .intro{color:var(--muted)!important}
:root[data-theme] #entry-dialog{color:var(--text)!important;border-color:var(--line)}
:root[data-theme] #entry-dialog :is(input,select,button):focus-visible{outline-color:var(--link)}

:root[data-theme] dialog .icon-button{background:var(--surface-2)!important;color:var(--muted)!important}
