.transaction-heading-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.calendar-panel{margin-top:18px;scroll-margin-top:20px}.calendar-controls{display:flex;align-items:center;gap:7px}.calendar-controls input{height:32px;padding:0 8px;border:1px solid #f0e7e4;border-radius:8px;background:#fff;color:#76696b;font-size:10px}.calendar-step{width:30px;height:30px;border:1px solid #f0e7e4;border-radius:8px;background:#fff;color:#a5707a;font-size:20px;line-height:1}.calendar-month-summary{margin:16px 0 11px;color:#a39395;font-size:9px}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekdays span{text-align:center;padding:6px 0;color:#a99d9e;font-size:8px;font-weight:700}.calendar-day{min-width:0;min-height:68px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:7px;border:1px solid #f3ece9;border-radius:9px;background:#fffdfb;color:#78696c;text-align:left}.calendar-day:hover,.calendar-day:focus-visible{border-color:#d99ca6;background:#fff5f5;outline:none}.calendar-day.today>span{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#f5dce1;color:#a95065;font-weight:700}.calendar-day.has-transactions{background:#fff9f8}.calendar-day small{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#b66677;font-size:8px;white-space:nowrap}.calendar-income-dot{width:6px;height:6px;border-radius:50%;background:#86a98c}.calendar-blank{min-height:68px}.calendar-hint{margin:11px 0 0;color:#ad9fa0;font-size:8px}
.inline-add{display:flex;gap:8px}.inline-add input{flex:1;min-width:0}.inline-add .primary-button{padding:0 15px}.form-feedback{min-height:14px;margin:7px 0;color:#b3566a;font-size:9px}.custom-category-list{display:grid;gap:6px;margin-top:14px;max-height:220px;overflow:auto}.custom-category-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #f0e7e4;border-radius:8px;background:#fff;font-size:10px;color:#78696c}.custom-category-row button{border:0;background:transparent;color:#b46978;font-size:9px;font-weight:600}.custom-category-empty,.dialog-note{color:#a89b9c;font-size:9px;line-height:1.6}.dialog-note{margin:14px 0 0}.toast-region{position:fixed;z-index:20;right:20px;bottom:20px;display:grid;gap:8px;max-width:min(360px,calc(100vw - 32px));pointer-events:none}.toast{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #eadad9;border-radius:10px;background:#fffdfb;color:#645356;box-shadow:0 8px 30px #53353c1a;font-size:11px;line-height:1.45;pointer-events:auto;animation:toast-in .2s ease-out}.toast.success{border-left:3px solid #8dad91}.toast.error{border-left:3px solid #c7687b}.toast-close{margin-left:auto;border:0;background:transparent;color:#a58e91;font-size:17px;line-height:1}.auth-loading{display:flex;align-items:center;justify-content:center;gap:9px;padding:14px 0;color:#a18e91;font-size:10px}.loading-spinner{width:15px;height:15px;border:2px solid #f0dadd;border-top-color:#c96d82;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.transaction-heading-actions{justify-content:flex-end;gap:3px}.transaction-heading-actions .text-button{font-size:8px;padding:4px}.calendar-panel{margin-top:13px;padding:16px}.calendar-day{min-height:52px;padding:5px;border-radius:7px;font-size:9px}.calendar-blank{min-height:52px}.calendar-weekdays,.calendar-days{gap:3px}.calendar-day small{font-size:7px}.toast-region{right:12px;bottom:78px;left:12px;max-width:none}.toast{font-size:10px}.custom-category-list{max-height:180px}}
@media(max-width:380px){.calendar-day{min-height:44px;padding:4px}.calendar-blank{min-height:44px}.calendar-day small{font-size:6px}}

html[data-theme="dark"]{color-scheme:dark;--ink:#f2e6e8;--muted:#b9a9ac;--cream:#1b1719;--line:#40363a;--shadow:0 10px 28px rgba(0,0,0,.2)}
html[data-theme="dark"] body{background:#1b1719;color:#f2e6e8}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .mobile-nav{background:#211b1e;border-color:#3d3237}
html[data-theme="dark"] .panel,html[data-theme="dark"] .summary-card,html[data-theme="dark"] .analytics-card,html[data-theme="dark"] .category-budget-card,html[data-theme="dark"] .goal-card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .dialog,html[data-theme="dark"] .custom-category-row{background:#272125;border-color:#41353a;color:#f0e4e6}
html[data-theme="dark"] .balance-card,html[data-theme="dark"] .overall-budget-card,html[data-theme="dark"] .overall-budget-empty{background:#302327;border-color:#4b373d}
html[data-theme="dark"] .nav-link,html[data-theme="dark"] .profile-copy b,html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .panel-heading h2,html[data-theme="dark"] .goal-card-title>b,html[data-theme="dark"] .budget-card-title b{color:#f0e4e6}
html[data-theme="dark"] .nav-link.active{background:#3b292f;color:#efb7c2}html[data-theme="dark"] .nav-link:hover{background:#33262b;color:#efb7c2}
html[data-theme="dark"] .transaction-row,html[data-theme="dark"] .table-head,html[data-theme="dark"] .analytics-insight-row{border-color:#40363a}
html[data-theme="dark"] .transaction-tools select,html[data-theme="dark"] .search-box,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .date-filter input,html[data-theme="dark"] .analytics-range select,html[data-theme="dark"] .analytics-range input,html[data-theme="dark"] .month-picker,html[data-theme="dark"] .calendar-controls input,html[data-theme="dark"] .calendar-step,html[data-theme="dark"] .dialog input,html[data-theme="dark"] .dialog select,html[data-theme="dark"] .dialog textarea,html[data-theme="dark"] .auth-form input,html[data-theme="dark"] .amount-input{background:#211b1e;border-color:#4b3d42;color:#f0e4e6}
html[data-theme="dark"] .search-box input::placeholder,html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9f8f93}
html[data-theme="dark"] .category-budget-card .budget-track,html[data-theme="dark"] .goal-progress-track,html[data-theme="dark"] .progress-track,html[data-theme="dark"] .analytics-category-track{background:#40363a}
html[data-theme="dark"] .calendar-day,html[data-theme="dark"] .custom-category-row{background:#211b1e;color:#e9dcdf;border-color:#40363a}html[data-theme="dark"] .calendar-day.has-transactions{background:#302327}html[data-theme="dark"] .calendar-day:hover{background:#3a292f}
html[data-theme="dark"] .donut:before{background:#272125}html[data-theme="dark"] .type-switch{background:#211b1e}html[data-theme="dark"] .type-option.selected{background:#3a292f;color:#f1c3ca}
html[data-theme="dark"] .toast{background:#2b2428;border-color:#4b3d42;color:#f0e4e6}html[data-theme="dark"] .auth-setup{background:#302327;border-color:#514047}html[data-theme="dark"] .goal-section-empty,html[data-theme="dark"] .goal-empty,html[data-theme="dark"] .budget-empty{border-color:#4b3d42;background:#211b1e;color:#ad9fa2}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
