:root{--background:#f7f8fa;--surface:#fff;--surface-subtle:#f4f5f8;--border:#e4e6ec;--border-strong:#d3d7e0;--text:#16181d;--text-muted:#676c76;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-soft:#eaf1ff;--danger:#a63d40;--danger-soft:#faeded;--shadow:0 1px 2px #1118270d;--radius:12px;--sidebar-width:248px}*{box-sizing:border-box}html{background:var(--background);min-width:320px;color:var(--text);scroll-padding-top:80px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;transition:background-color .2s,color .2s}body{margin:0}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}button:not(:disabled){transition:transform .12s}button:not(:disabled):active{transform:scale(.97)}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.app-shell{min-height:100vh}.sidebar{z-index:20;width:var(--sidebar-width);border-right:1px solid var(--border);background:var(--surface);flex-direction:column;display:flex;position:fixed;inset:0 auto 0 0}.brand{border-bottom:1px solid var(--border);align-items:center;gap:12px;min-height:74px;padding:0 24px;display:flex}.brand-mark{background:var(--accent);color:#fff;letter-spacing:.04em;border-radius:9px;place-items:center;width:34px;height:34px;font-size:.78rem;font-weight:750;display:grid}.brand-copy{display:grid}.brand-name{font-size:.94rem;font-weight:700}.brand-product{color:var(--text-muted);font-size:.75rem}.primary-nav{flex-direction:column;flex:1;gap:4px;padding:20px 14px;display:flex}.nav-link{color:#46525e;border-radius:8px;align-items:center;gap:12px;min-height:44px;padding:10px 12px;font-size:.9rem;font-weight:550;transition:background-color .12s,color .12s;display:flex}.nav-link:hover{background:var(--surface-subtle);color:var(--text)}.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-hover)}.nav-icon{flex:none;display:inline-flex}.sidebar-footer{border-top:1px solid var(--border);color:var(--text-muted);margin:14px;padding:14px 12px;font-size:.75rem}.app-frame{min-height:100vh;margin-left:var(--sidebar-width);flex-direction:column;display:flex}.view-as-banner{background:var(--warning-soft);color:var(--warning);border-bottom:1px solid color-mix(in srgb, var(--warning) 35%, transparent);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 24px;font-size:.8rem;font-weight:600;display:flex}.view-as-banner-icon{flex:none;display:inline-flex}.view-as-banner-icon svg{width:17px;height:17px}.view-as-banner-text{flex:auto;min-width:0}.view-as-banner-exit{min-height:32px;margin:0;padding:5px 12px;font-size:.74rem}.topbar{z-index:10;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffeb;justify-content:space-between;align-items:center;gap:24px;min-height:74px;padding:0 32px;transition:box-shadow .2s;display:flex;position:sticky;top:0}.topbar.scrolled{box-shadow:0 4px 16px #0f172a14}.topbar-context{color:var(--text-muted);font-size:.82rem}.environment-badge{border:1px solid var(--border);background:var(--surface-subtle);color:#53606c;border-radius:999px;align-items:center;gap:7px;padding:6px 10px;font-size:.75rem;font-weight:650;display:inline-flex}.environment-badge:before{content:"";background:#718096;border-radius:50%;width:7px;height:7px}.content{flex:1;width:min(100%,1480px);margin:0 auto;padding:36px 32px 56px}.page-transition{animation:.18s page-transition-in}@keyframes page-transition-in{0%{opacity:0;transform:translateY(6px)}}.site-footer{color:var(--text-muted);text-align:center;padding:18px 32px 24px;font-size:.72rem}.welcome-greeting{margin:0 0 18px}.welcome-greeting-eyebrow{color:var(--accent);letter-spacing:.09em;text-transform:uppercase;margin:0 0 4px;font-size:.72rem;font-weight:750}.welcome-greeting-name{color:var(--text-muted);margin:0;font-size:1.05rem;font-weight:600}.welcome-greeting-name strong{color:var(--text);font-weight:750}.page-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;display:flex}.page-eyebrow{color:var(--accent);letter-spacing:.09em;text-transform:uppercase;margin:0 0 5px;font-size:.72rem;font-weight:750}.page-title{letter-spacing:-.035em;margin:0;font-size:clamp(1.65rem,2.5vw,2.15rem);line-height:1.2}.page-description{max-width:680px;color:var(--text-muted);margin:8px 0 0;font-size:.94rem}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.metric-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid-five{grid-template-columns:repeat(auto-fit,minmax(195px,1fr))}.metric-grid-six{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:20px;display:grid}.card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:var(--shadow);transition:border-color .18s,box-shadow .18s}.metric-card{transition:border-color .2s,box-shadow .22s,transform .22s cubic-bezier(.34,1.56,.64,1)}.metric-card:hover{border-color:var(--border-strong);transform:translateY(-3px);box-shadow:0 10px 26px #0f172a1a}.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;display:flex}.card-title{margin:0;font-size:.96rem;font-weight:700}.card-description{color:var(--text-muted);margin:3px 0 0;font-size:.78rem}.card-content{padding:22px}.card-collapse-toggle{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;flex:none;align-self:center;place-items:center;transition:background-color .15s,color .15s;display:inline-grid}.card-collapse-toggle:hover{background:var(--surface-subtle);color:var(--accent)}.card-collapse-toggle:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.card-collapse-icon{transition:transform .18s}.card-collapse-toggle.collapsed .card-collapse-icon{transform:rotate(-90deg)}.metric-card{border-radius:14px;padding:32px 18px}.metric-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.metric-eye-toggle{width:24px;height:24px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;transition:background-color .15s,color .15s,transform .15s;display:inline-grid}.metric-eye-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:15px;height:15px}.metric-eye-toggle:hover{background:var(--surface-subtle);color:var(--accent);transform:scale(1.1)}.metric-eye-toggle:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.metric-label,.metric-context{color:var(--text-muted);margin:0}.metric-label{font-size:.78rem;font-weight:650}.metric-value{letter-spacing:-.02em;overflow-wrap:anywhere;min-height:30px;margin:15px 0 6px;font-size:clamp(1.1rem,.85rem + .8vw,1.4rem);font-weight:720;line-height:1.2}.metric-context{font-size:.72rem}.state{text-align:center;place-items:center;min-height:280px;padding:40px 24px;display:grid}.state-compact{min-height:240px}.state-icon{background:var(--surface-subtle);width:46px;height:46px;color:var(--text-muted);border-radius:12px;place-items:center;margin:0 auto 14px;display:grid}.state-title{margin:0;font-size:.94rem;font-weight:700}.state-description{max-width:390px;color:var(--text-muted);margin:6px auto 0;font-size:.82rem}.error-state .state-icon{background:var(--danger-soft);color:var(--danger)}.button{background:var(--accent);color:#fff;cursor:pointer;min-height:40px;font:inherit;border:0;border-radius:8px;justify-content:center;align-items:center;margin-top:18px;padding:8px 15px;font-size:.82rem;font-weight:650;transition:background-color .16s,box-shadow .16s,transform .12s;display:inline-flex}.button-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.button:hover{background:var(--accent-hover);box-shadow:0 4px 12px #0f172a1f}.button:active{transform:scale(.97)}.loading-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.skeleton{background:var(--surface-subtle);border-radius:8px;position:relative;overflow:hidden}.skeleton:after{background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent);content:"";animation:1.4s infinite shimmer;position:absolute;inset:0;transform:translate(-100%)}.skeleton-card{height:132px}.skeleton-panel{grid-column:1/-1;height:320px;margin-top:4px}.skeleton-list{gap:10px;padding:4px 0;display:grid}.skeleton-row{border-radius:10px;height:64px}.skeleton-report{border-radius:10px;height:260px}@keyframes shimmer{to{transform:translate(100%)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (max-width:980px){:root{--sidebar-width:84px}.brand{justify-content:center;padding:0}.brand-copy,.nav-label,.sidebar-footer{display:none}.primary-nav{align-items:center;padding-inline:12px}.nav-link{justify-content:center;width:48px;padding-inline:0}.dashboard-grid{grid-template-columns:1fr}.metric-grid-four,.metric-grid-six{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:700px){:root{--sidebar-width:0px}.app-shell{padding-bottom:70px}.sidebar{border-top:1px solid var(--border);border-right:0;width:100%;height:70px;inset:auto 0 0}.brand,.sidebar-footer{display:none}.primary-nav{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-direction:row;gap:2px;padding:7px 8px;display:flex;overflow-x:auto}.primary-nav::-webkit-scrollbar{display:none}.nav-link{flex-direction:column;flex:1 0 60px;gap:2px;width:auto;min-width:60px;min-height:54px;padding:5px 2px;font-size:.65rem}.nav-label{text-align:center;min-width:0;max-width:100%;display:inline}.topbar{min-height:62px;padding:0 18px}.content{padding:26px 18px 40px}.metric-grid,.loading-grid{grid-template-columns:1fr}.page-header{margin-bottom:22px}.skeleton-panel{grid-column:auto}.attachment-count{color:var(--accent-hover);background:#2f618114;border-radius:999px;align-items:center;gap:6px;margin-top:2px;padding:4px 7px;font-size:.62rem;font-weight:700;display:inline-flex}}.category-layout{grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:20px;display:grid}.category-list{padding:6px 22px}.category-row{border-bottom:1px solid var(--border);border-radius:8px;align-items:center;gap:12px;min-height:64px;margin:0 -6px;padding:0 6px;transition:background-color .15s;display:flex}.category-row:hover{background:var(--surface-subtle)}.category-row:last-child{border-bottom:0}.category-swatch{background:var(--neutral);border-radius:999px;flex:none;width:10px;height:10px}.category-icon-frame{background:var(--surface-subtle);width:30px;height:30px;color:var(--text-muted);border-radius:8px;flex:none;place-items:center;display:inline-grid}.category-icon-image{object-fit:contain;border-radius:4px;width:18px;height:18px;display:block}.category-details{flex:1;min-width:0;font-size:.86rem;display:grid}.category-details span{color:var(--text-muted);text-transform:capitalize;font-size:.74rem}.category-status{color:var(--text-muted);font-size:.72rem}.category-remove-confirm{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.category-remove-confirm>span:first-child{color:var(--danger);font-size:.72rem;font-weight:650}.text-button{color:var(--accent);cursor:pointer;background:0 0;border:0;font-weight:650}.category-form{gap:14px;padding:22px;display:grid}.category-form label{color:var(--sidebar-text);gap:6px;font-size:.78rem;font-weight:650;display:grid}.category-form input,.category-form select{border:1px solid var(--border-strong);background:var(--control-background);width:100%;min-height:40px;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px;transition:border-color .15s,box-shadow .15s}.category-form input:focus-visible,.category-form select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.category-form .button{margin-top:2px}.form-error{color:var(--danger);margin:0;font-size:.78rem}.category-field-label{color:var(--sidebar-text);margin:0 0 6px;font-size:.78rem;font-weight:650;display:block}.category-color-field{display:grid}.category-color-picker{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.category-color-picker input[type=color]{cursor:pointer;flex:none;width:40px;height:40px;min-height:0;padding:2px}.category-color-hex{min-width:68px;color:var(--text-muted);font-family:ui-monospace,monospace;font-size:.78rem}.category-color-presets{flex-wrap:wrap;gap:6px;display:flex}.category-color-preset{cursor:pointer;border:2px solid #0000;border-radius:999px;width:22px;height:22px;padding:0;transition:transform .12s,border-color .12s}.category-color-preset:hover{transform:scale(1.12)}.category-color-preset.active{border-color:var(--text)}.category-icon-field{gap:10px;display:grid}.category-icon-grid{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;display:grid}.category-icon-option{border:1px solid var(--border-strong);background:var(--control-background);color:var(--text);cursor:pointer;text-transform:capitalize;border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:.76rem;transition:border-color .15s,background-color .15s,color .15s;display:flex}.category-icon-option:hover{background:var(--surface-subtle)}.category-icon-option.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-hover)}.category-icon-option svg{flex:none}.category-custom-icon{border:1px dashed var(--border-strong);background:var(--surface-subtle);border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;padding:10px;display:flex}.category-custom-icon-preview{border:1px solid var(--border);background:var(--control-background);border-radius:8px;flex:none;place-items:center;width:44px;height:44px;display:inline-grid;overflow:hidden}.category-custom-icon-preview img{object-fit:contain;width:100%;height:100%;display:block}.category-custom-icon-empty{color:var(--text-muted);text-align:center;padding:0 4px;font-size:.62rem}.category-custom-icon-actions{flex-wrap:wrap;align-items:center;gap:10px;font-size:.78rem;display:flex}.category-field-hint{color:var(--text-muted);margin:0;font-size:.72rem}@media (max-width:900px){.category-layout{grid-template-columns:1fr}}@media (max-width:700px){.category-row{flex-wrap:wrap;row-gap:8px;padding:10px 6px}}.audit-log-sections{gap:20px;display:grid}.audit-log-refresh-status{color:var(--text-muted);align-items:center;gap:8px;margin:-4px 0 -2px;font-size:.78rem;display:flex}.audit-log-refresh-status .text-button{margin-left:auto}.audit-log-live-dot{background:var(--success);width:8px;height:8px;box-shadow:0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);border-radius:50%}.audit-log-live-dot.pulsing{animation:1s ease-in-out infinite audit-log-live-pulse}@keyframes audit-log-live-pulse{0%,to{opacity:1}50%{opacity:.4}}.audit-log-table-scroll{overflow-x:auto}.audit-log-table{border-collapse:collapse;width:100%;min-width:640px;font-size:.82rem}.audit-log-table th{border-bottom:1px solid var(--border-strong);color:var(--text-muted);text-align:left;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;padding:10px 14px;font-size:.68rem;font-weight:700}.audit-log-table td{border-bottom:1px solid var(--border);color:var(--text);vertical-align:top;padding:10px 14px}.audit-log-table tbody tr:last-child td{border-bottom:0}.audit-log-table tbody tr:hover{background:var(--surface-subtle)}.audit-log-ip{color:var(--text-muted);white-space:nowrap;font-family:ui-monospace,monospace;font-size:.78rem}.audit-log-event{align-items:center;gap:6px;font-weight:650;display:flex}.audit-log-detail{color:var(--text-muted);margin-top:2px;font-size:.76rem;display:block}.user-activity-email{color:var(--text-muted);margin-top:2px;font-size:.72rem;display:block}.user-activity-online{color:var(--success);align-items:center;gap:6px;font-weight:650;display:inline-flex}.user-activity-offline{color:var(--text-muted)}@media (max-width:700px){.audit-log-table{min-width:560px}}.audit-log-row-alert td{background:var(--danger-soft)}.audit-log-row-alert:hover td{background:color-mix(in srgb, var(--danger-soft) 80%, var(--surface-subtle))}.audit-log-row-alert .audit-log-event{color:var(--danger)}.audit-log-alert-icon{width:14px;height:14px;color:var(--danger);flex:none}.audit-log-alert-badge{border:1px solid color-mix(in srgb, var(--danger) 45%, transparent);background:var(--danger-soft);color:var(--danger);letter-spacing:.04em;text-transform:uppercase;border-radius:999px;align-items:center;margin-left:4px;padding:1px 7px;font-size:.62rem;font-weight:750;display:inline-flex}.transaction-workspace{gap:20px;display:grid}.read-only-notice{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);border-radius:10px;align-items:center;gap:12px;padding:12px 16px;font-size:.76rem;display:flex}.read-only-notice strong{color:var(--text)}.read-only-notice span{flex:1}.transaction-form{padding:22px}.type-and-cash-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin:0 0 20px;display:flex}.type-picker{border:0;flex-wrap:wrap;gap:10px;margin:0;padding:0;display:flex}.type-picker legend{color:var(--sidebar-text);margin-bottom:8px;font-size:.78rem;font-weight:650}.type-picker label{border:1px solid var(--border-strong);cursor:pointer;border-radius:8px;align-items:center;gap:7px;padding:8px 14px;font-size:.84rem;transition:border-color .15s,background-color .15s,color .15s;display:flex}.type-picker label:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent-hover);font-weight:650}.type-picker label:has(input:focus-visible){outline:3px solid var(--focus-ring);outline-offset:1px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.form-grid label{color:var(--sidebar-text);gap:6px;font-size:.78rem;font-weight:650;display:grid}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--border-strong);background:var(--control-background);width:100%;min-height:40px;color:var(--text);font:inherit;border-radius:8px;padding:8px 11px;transition:border-color .15s,box-shadow .15s}.form-grid input:focus-visible,.form-grid select:focus-visible,.form-grid textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.form-grid textarea{resize:vertical}.form-wide{grid-column:1/-1}.fx-rate-status{color:var(--text-muted);margin:-8px 0 0;font-size:.72rem}.fx-rate-status.fx-rate-error{color:var(--danger)}.cash-expense-toggle{color:var(--text);align-self:center;font-weight:650}.cash-expense-toggle span{font-size:.84rem}.type-and-cash-row .cash-expense-toggle{margin:0}.recurrence-badge{color:var(--success);background:#39855a1a}.form-actions{justify-content:flex-end;align-items:center;gap:20px;margin-top:18px;display:flex}.form-actions .button{margin:0}.submission-message{border-radius:8px;padding:10px 12px;font-size:.8rem}.submission-message.success{color:#27613d;background:#eaf6ee}.submission-message.error{background:var(--danger-soft);color:var(--danger)}.transaction-list{padding:0 22px}.transaction-row{border-bottom:1px solid var(--border);transition:background-color .7s}.transaction-list>div:last-child .transaction-row{border-bottom:0}.transaction-list>div{animation:.32s both row-ripple-in;animation-delay:calc(var(--row-index,0) * 60ms)}@keyframes row-ripple-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.transaction-row.just-added{background:var(--accent-soft)}.transaction-date-header{z-index:6;background:var(--topbar-background);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin:0 -22px;padding:8px 22px;font-size:.7rem;font-weight:700;position:sticky;top:74px}@media (max-width:700px){.transaction-date-header{top:62px}}.transaction-row.archived{opacity:.68}.transaction-summary{width:100%;color:var(--text);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;margin:0 -8px;padding:14px 8px;transition:background-color .15s;display:grid}.transaction-summary:hover,.transaction-summary:focus-visible{background:var(--surface-subtle)}.transaction-summary span:nth-child(2){min-width:0;display:grid}.transaction-summary span:nth-child(2) strong{overflow-wrap:anywhere}.transaction-amount{white-space:nowrap}.transaction-summary .attachment-count{color:var(--accent-hover);background:#2f618114;border-radius:999px;align-items:center;gap:6px;margin-top:2px;padding:4px 7px;font-size:.62rem;font-weight:700;display:inline-flex}.type-marker{border-radius:9px;place-items:center;width:34px;height:34px;font-size:.65rem;font-weight:800;display:grid}.type-marker.income{color:#27613d;background:#eaf6ee}.type-marker.expense{color:#944337;background:#fff0ed}.transaction-amount.income{color:#27613d}.transaction-amount.expense{color:#944337}.detail-panel{margin:0 0 16px 47px}.transaction-detail{background:var(--surface-subtle);border-radius:8px;grid-template-columns:repeat(4,1fr);gap:12px;margin:0;padding:14px;display:grid}.transaction-detail div{display:grid}.transaction-detail dt{color:var(--text-muted);font-size:.68rem}.transaction-detail dd{margin:2px 0 0;font-size:.78rem}.record-actions{align-items:center;gap:12px;margin-top:12px;display:flex}.text-button.danger{color:var(--danger)}.danger-button{background:var(--danger)}.inline-edit,.archive-confirm{border:1px solid var(--border);background:var(--surface-subtle);border-radius:9px;margin-top:14px;padding:16px}.archive-confirm p{color:var(--text-muted);margin:4px 0 12px;font-size:.78rem}.archive-confirm label{gap:6px;font-size:.78rem;display:grid}.archive-confirm input{border:1px solid var(--border-strong);border-radius:8px;min-height:40px;padding:8px 10px}.pagination{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;padding:18px;font-size:.78rem;display:flex}.pagination button{border:1px solid var(--border);background:var(--control-background);color:var(--text);cursor:pointer;border-radius:7px;padding:6px 10px;transition:background-color .15s,border-color .15s}.pagination button:hover:not(:disabled){background:var(--surface-subtle);border-color:var(--border-strong)}.pagination button:disabled{cursor:not-allowed;opacity:.45}@media (max-width:700px){.form-grid{grid-template-columns:1fr}.form-wide{grid-column:auto}.form-actions{flex-direction:column;align-items:stretch}.detail-panel{margin-left:0}.transaction-detail{grid-template-columns:repeat(2,1fr)}.transaction-amount{font-size:.8rem}}.filter-bar{border-bottom:1px solid var(--border);background:var(--surface-subtle);grid-template-columns:2fr repeat(6,minmax(110px,1fr)) auto;gap:10px;padding:16px 22px;display:grid}.filter-bar label{color:var(--text-muted);gap:4px;font-size:.68rem;display:grid}.filter-bar input,.filter-bar select{border:1px solid var(--border-strong);background:var(--control-background);min-width:0;min-height:38px;color:var(--text);border-radius:7px;padding:7px 9px}.clear-filter{align-self:end;min-height:38px}.charts-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;margin-bottom:20px;display:grid}.charts-grid .chart-income-expense,.charts-grid .chart-comparison{grid-column:1/-1}.currency-summary-groups{gap:8px;display:grid}.dashboard-summary-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;display:flex}.dashboard-toolbar-controls{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.dashboard-last-updated{color:var(--text-muted);margin:0;font-size:.72rem}.dashboard-period-filter,.pill-group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dashboard-period-select,.pill-field{border:1px solid var(--border);background:var(--surface);border-radius:11px;align-items:center;gap:7px;padding:5px 6px 5px 12px;transition:border-color .15s,box-shadow .15s;display:flex}.dashboard-period-select:hover,.pill-field:hover{border-color:var(--border-strong)}.dashboard-period-select:focus-within,.pill-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring)}.dashboard-period-icon,.pill-field-icon{color:var(--text-muted);flex:none;display:inline-flex}.dashboard-period-icon svg,.pill-field-icon svg{width:15px;height:15px}.dashboard-period-select select,.pill-field select{min-height:28px;color:var(--text);font:inherit;cursor:pointer;appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") 100%/13px no-repeat;border:0;margin:0;padding:0 20px 0 0;font-size:.78rem;font-weight:650}.dashboard-period-select select:focus-visible,.pill-field select:focus-visible{outline:none}.dashboard-period-custom,.pill-range{border:1px solid var(--border);background:var(--surface);border-radius:11px;align-items:center;gap:6px;padding:5px 12px;display:flex}.dashboard-period-custom:focus-within,.pill-range:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring)}.dashboard-period-custom-sep,.pill-range-sep{color:var(--text-muted);font-size:.74rem}.dashboard-period-custom input[type=date],.pill-range input[type=date]{width:122px;min-width:0;min-height:28px;color:var(--text);font:inherit;background:0 0;border:0;margin:0;padding:0;font-size:.76rem}.dashboard-period-custom input[type=date]:focus-visible,.pill-range input[type=date]:focus-visible{outline:none}.audit-log-filter-bar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-wrap:wrap;align-items:center;gap:10px;padding:16px 22px;display:flex}.audit-log-filter-bar .button{margin:0}@media (max-width:700px){.audit-log-filter-bar{padding:14px 16px}.audit-log-filter-bar .pill-field,.audit-log-filter-bar .pill-range{width:100%}.audit-log-filter-bar .pill-range input[type=date]{flex:1;width:auto}.audit-log-filter-bar .button,.audit-log-filter-bar .clear-filter{justify-content:center;width:100%}}.logout-button{border:1px solid var(--border-strong);background:var(--control-background);height:40px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:0 15px 0 12px;font-size:.78rem;font-weight:650;transition:background-color .16s,border-color .16s,color .16s,transform .12s,box-shadow .16s;display:inline-flex}.logout-button:hover{background:var(--danger-soft);border-color:var(--danger);color:var(--danger);box-shadow:0 4px 14px #00000014}.logout-button:active{transform:scale(.95)}.logout-button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.logout-button:disabled{cursor:not-allowed;opacity:.6;transform:none}.logout-button-icon{place-items:center;width:18px;height:18px;display:inline-grid}.logout-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px;transition:transform .22s cubic-bezier(.34,1.56,.64,1)}.logout-button:hover svg{transform:translate(2px)}.currency-summary>h2{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin:0 0 10px;font-size:.72rem}.chart-bars{gap:15px;margin:0;padding:4px 0;list-style:none;display:grid}.chart-label{justify-content:space-between;gap:12px;margin-bottom:5px;font-size:.76rem;display:flex}.chart-label span{color:var(--text-muted)}.chart-track{background:#edf1f4;border-radius:999px;height:9px;overflow:hidden}.chart-fill{border-radius:inherit;background:#a55248;min-width:2px;height:100%;display:block}.chart-fill.income{background:#39855a}.chart-empty{min-height:170px;color:var(--text-muted);place-items:center;font-size:.8rem;display:grid}.line-chart svg{width:100%;height:210px;overflow:visible}.chart-gridline{fill:none;stroke:#e4e9ed;stroke-width:.45px}.trend-line{fill:none;stroke:var(--accent);stroke-width:1.8px;vector-effect:non-scaling-stroke}.trend-point{fill:#fff;stroke:var(--accent);stroke-width:1.5px;vector-effect:non-scaling-stroke;cursor:pointer}.trend-point:hover,.trend-point:focus{fill:var(--accent);outline:none}.axis-labels{color:var(--text-muted);justify-content:space-between;gap:5px;font-size:.62rem;display:flex}.chart-insight{min-height:20px;color:var(--text-muted);text-align:center;margin:12px 0 0;font-size:.72rem}.donut-layout{grid-template-columns:minmax(180px,.75fr) minmax(180px,1.25fr);align-items:center;gap:24px;min-height:230px;display:grid}.donut{aspect-ratio:1;border-radius:50%;place-items:center;width:min(100%,210px);margin:auto;display:grid}.donut>div{aspect-ratio:1;background:var(--surface);text-align:center;width:62%;box-shadow:0 0 0 1px var(--border);border-radius:50%;place-content:center;display:grid}.donut strong{font-size:.9rem}.donut span{color:var(--text-muted);font-size:.62rem}.donut-legend{gap:5px;margin:0;padding:0;list-style:none;display:grid}.donut-legend button{width:100%;color:var(--text);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:7px;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:7px;display:grid}.donut-legend button:hover,.donut-legend button:focus-visible{background:var(--surface-subtle)}.donut-legend i{border-radius:3px;width:9px;height:9px}.donut-legend span,.donut-legend strong{font-size:.7rem}.chart-summary-row{border:1px solid var(--border);background:var(--surface-subtle);border-radius:9px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;padding:8px 10px;display:flex}.summary-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.68rem}.chart-summary-row strong{font-size:.76rem}.chart-context{color:var(--text-muted);margin:8px 0 0;font-size:.7rem;line-height:1.5}.chart-legend{justify-content:center;align-items:center;gap:16px;margin-bottom:4px;display:flex}.legend-item{color:var(--text-muted);align-items:center;gap:8px;font-size:.72rem;font-weight:600;display:inline-flex}.legend-item i{border-radius:4px;width:10px;height:10px;display:inline-block}.legend-item.income i{background:#39855a}.legend-item.expense i{background:#a55248}.net-banner{color:var(--text);background:linear-gradient(#5a7b920d,#5a7b9205);border:1px solid #2f618129;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.net-banner span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.68rem}.net-banner strong{font-size:.78rem}.column-chart-shell{gap:14px;display:grid}.column-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.column-chip{border:1px solid var(--border);background:var(--surface-subtle);border-radius:10px;gap:3px;padding:10px 12px;display:grid}.column-chip span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-size:.68rem}.column-chip strong{font-size:.88rem}.column-chip.income{color:#27613d;background:#39855a14;border-color:#39855a38}.column-chip.expense{color:#944337;background:#a5524814;border-color:#a5524838}.column-chart{grid-template-columns:repeat(2,minmax(110px,180px));justify-content:center;align-items:end;gap:38px;min-height:250px;padding-top:12px;display:grid}.column-group{height:220px;color:var(--text);cursor:pointer;background:linear-gradient(#fffc,#f4f7fab3);border:1px solid #0000;border-radius:14px;grid-template-rows:auto minmax(120px,1fr) auto;gap:10px;padding:10px 8px 4px;transition:transform .18s,border-color .18s,box-shadow .18s;display:grid;box-shadow:inset 0 0 0 1px #94a3b814}.column-group>strong{font-size:.72rem;font-weight:700}.column-track{background:linear-gradient(#edf1f4,#e3e8ee);border:1px solid #94a3b826;border-radius:12px 12px 10px 10px;align-items:flex-end;width:100%;height:100%;min-height:120px;padding:6px;display:flex;overflow:hidden}.column-fill{border-radius:9px 9px 6px 6px;align-self:flex-end;width:100%;min-height:10px;transition:filter .18s;display:block;box-shadow:inset 0 -4px 10px #fff3}.column-fill.income{background:linear-gradient(#4ca36d 0%,#39855a 100%)}.column-fill.expense{background:linear-gradient(#da7f69 0%,#a55248 100%)}.column-group span:last-child{color:var(--text-muted);font-size:.74rem;font-weight:600}.column-group:hover,.column-group:focus-visible,.column-group.active{border-color:#2f61812e;transform:translateY(-2px);box-shadow:0 10px 24px #0f172a14}.column-group:hover .column-fill,.column-group:focus-visible .column-fill,.column-group.active .column-fill{filter:brightness(.96)}.column-chart>.chart-insight{grid-column:1/-1}@media (max-width:1100px){.filter-bar{grid-template-columns:repeat(3,1fr)}.search-field{grid-column:span 2}.charts-grid{grid-template-columns:1fr}.charts-grid .chart-income-expense,.charts-grid .chart-comparison{grid-column:auto}}@media (max-width:700px){.filter-bar{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.donut-layout{grid-template-columns:1fr}.column-chart{gap:24px}}.export-card{max-width:760px}.export-card .card-content>p{color:var(--text-muted);font-size:.86rem}.export-card .export-warning{color:#71521f;background:#fff8e8;border-left:3px solid #b17825;padding:12px}.export-card .submission-message{margin-top:14px}.report-period{border:1px solid var(--border);border-radius:12px;grid-template-columns:minmax(150px,1fr) repeat(2,minmax(145px,.8fr));gap:12px;margin:18px 0 12px;padding:14px;display:grid}.report-period legend{color:var(--text);padding:0 5px;font-size:.78rem;font-weight:750}.report-period label{color:var(--text-muted);gap:6px;font-size:.72rem;font-weight:700;display:grid}.report-period input,.report-period select{border:1px solid var(--border-strong);width:100%;min-height:40px;font:inherit;border-radius:8px;padding:8px 10px;transition:border-color .15s,box-shadow .15s}.report-period input:focus-visible,.report-period select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.report-period-summary{margin:0 0 14px}@media (max-width:680px){.report-period{grid-template-columns:1fr}}@media (max-width:700px){.export-card .button-row{flex-direction:column;align-items:stretch}.export-card .button-row .button{width:100%;margin:0}}.user-management-layout{grid-template-columns:minmax(320px,.75fr) minmax(0,1.25fr);align-items:start;gap:20px;display:grid}.settings-workspace{gap:18px;display:grid}.settings-tabs{border:1px solid var(--border);background:var(--surface);border-radius:11px;gap:6px;width:fit-content;padding:5px;display:flex}.settings-tabs button{min-height:38px;color:var(--text-muted);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:8px;padding:7px 14px;font-size:.78rem;font-weight:700}.settings-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--accent-hover)}.profile-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;display:grid}.settings-form{gap:15px;padding:22px;display:grid}.settings-form label{color:var(--sidebar-text);gap:6px;font-size:.78rem;font-weight:650;display:grid}.settings-form input{border:1px solid var(--border-strong);width:100%;min-height:40px;font:inherit;border-radius:8px;padding:8px 11px;transition:border-color .15s,box-shadow .15s}.settings-form input:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.settings-form small{color:var(--text-muted);font-size:.66rem;font-weight:500}.settings-form .button{justify-self:start;margin:0}.user-list{padding:6px 12px;display:grid}.user-row{border:0;border-bottom:1px solid var(--border);min-height:68px;color:var(--text);cursor:pointer;text-align:left;background:0 0;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;transition:background-color .15s,box-shadow .15s;display:grid}.user-row:last-child{border-bottom:0}.user-row:hover,.user-row.selected{background:var(--surface-subtle)}.user-row.selected{box-shadow:inset 3px 0 var(--accent)}.user-avatar{background:var(--accent-soft);width:36px;height:36px;color:var(--accent-hover);border-radius:10px;place-items:center;font-size:.78rem;font-weight:800;display:grid}.user-summary{min-width:0;display:grid}.user-summary strong,.user-summary span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-summary strong{font-size:.8rem}.user-summary span{color:var(--text-muted);font-size:.68rem}.role-badge,.status-badge{letter-spacing:.03em;border-radius:999px;padding:4px 7px;font-size:.6rem;font-weight:750}.role-admin{background:var(--accent-soft);color:var(--accent-hover)}.role-user{background:var(--surface-subtle);color:var(--text-muted)}.status-badge.active{color:#27613d;background:#eaf6ee}.status-badge.inactive{background:var(--danger-soft);color:var(--danger)}.user-form{gap:18px;padding:22px;display:grid}.user-form small{color:var(--text-muted);font-size:.66rem;font-weight:500}.switch-field{align-items:center;gap:10px!important;display:flex!important}.switch-field input,.permission-grid input,.category-checklist input,.segmented-control input{width:17px;min-height:17px;accent-color:var(--accent)}.switch-field span,.permission-grid span,.category-checklist span{display:grid}.admin-access-note{border:1px solid var(--border);background:var(--accent-soft);border-radius:10px;gap:3px;padding:14px 16px;display:grid}.admin-access-note strong{font-size:.8rem}.admin-access-note span{color:var(--text-muted);font-size:.72rem}.permission-panel{border:1px solid var(--border);border-radius:12px;gap:18px;margin:0;padding:16px;display:grid}.permission-panel legend,.control-label{color:var(--text);padding:0 5px;font-size:.78rem;font-weight:750}.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.permission-grid label,.category-checklist label{border:1px solid var(--border);cursor:pointer;border-radius:9px;align-items:flex-start;gap:9px;padding:11px;display:flex}.permission-grid strong,.category-checklist span{font-size:.74rem}.category-access-control{gap:10px;display:grid}.segmented-control{flex-wrap:wrap;gap:16px;display:flex}.segmented-control label{color:var(--text);align-items:center;gap:7px;font-size:.74rem;font-weight:650;display:flex}.category-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:250px;display:grid;overflow:auto}.category-checklist small{text-transform:capitalize}.user-form-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.user-form-actions .button{margin:0}.button:disabled,.text-button:disabled{cursor:not-allowed;opacity:.55}.button-secondary{background:var(--control-background);color:var(--text);border:1px solid var(--border-strong);box-shadow:none}.button-secondary:hover{background:var(--surface-subtle);box-shadow:none}.create-user-button{align-items:center;gap:7px;margin:0;display:inline-flex}.create-user-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:16px;height:16px}.user-delete-zone{border-top:1px solid var(--border);margin-top:18px;padding-top:16px}.confirm-row{align-items:center;gap:10px;display:flex}.confirm-row>span:first-child{color:var(--danger);font-size:.72rem;font-weight:650}@media (max-width:1050px){.user-management-layout{grid-template-columns:1fr}}@media (max-width:800px){.profile-settings-grid{grid-template-columns:1fr}}@media (max-width:600px){.user-row{grid-template-columns:auto minmax(0,1fr)}.role-badge,.status-badge{justify-self:start}.permission-grid,.category-checklist{grid-template-columns:1fr}.settings-tabs{width:100%}.settings-tabs button{flex:1}.dashboard-summary-toolbar{flex-direction:column;align-items:stretch}.dashboard-toolbar-controls{flex-direction:column;align-items:stretch;width:100%}.dashboard-period-filter{width:100%}.dashboard-period-select{flex:1}.dashboard-period-select select,.dashboard-period-custom{width:100%}.dashboard-period-custom label{flex:1}.dashboard-period-custom input[type=date]{width:100%}}.attachment-upload{background:linear-gradient(#f7fafce6,#f2f5f8cc);border:1px dashed #2f618159;border-radius:12px;gap:12px;margin-top:10px;padding:16px;transition:border-color .18s,background .18s,transform .18s;display:grid}.attachment-upload.dragging{background:#39855a0f;border-color:#39855aa6;animation:1.2s ease-in-out infinite dropzone-pulse;transform:translateY(-1px)}@keyframes dropzone-pulse{0%,to{box-shadow:0 0 #39855a40}50%{box-shadow:0 0 0 8px #39855a00}}.attachment-upload-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.attachment-upload-header h3{margin:0;font-size:.85rem}.attachment-upload-header p{color:var(--text-muted);margin:4px 0 0;font-size:.7rem}.attachment-upload-controls{grid-template-columns:170px minmax(0,1fr);gap:12px;display:grid}.attachment-kind,.attachment-file{color:var(--sidebar-text);gap:6px;font-size:.72rem;font-weight:650;display:grid}.attachment-kind select,.attachment-file input{border:1px solid var(--border-strong);background:var(--control-background);width:100%;min-height:42px;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px}.attachment-drop-hint{color:var(--text-muted);font-size:.72rem}.attachment-preview-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.attachment-preview{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.attachment-preview.invalid{background:#a552480a;border-color:#a5524859}.attachment-thumb{background:var(--surface-subtle);border-radius:8px;place-items:center;width:78px;height:78px;display:grid;overflow:hidden}.attachment-thumb img{object-fit:cover;width:100%;height:100%}.attachment-thumb span{color:var(--text-muted);font-size:.62rem;font-weight:700}.attachment-meta{gap:3px;min-width:0;display:grid}.attachment-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:.73rem;overflow:hidden}.attachment-meta small{color:var(--text-muted);font-size:.64rem}.attachment-meta em{color:var(--text-muted);font-size:.64rem;font-style:normal}.attachment-preview.invalid .attachment-meta em{color:var(--danger)}.attachment-panel{border:1px solid var(--border);background:var(--surface-subtle);border-radius:10px;margin-top:14px;padding:12px 14px}.attachment-panel-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.attachment-panel-header strong{font-size:.78rem}.attachment-panel-header span{color:var(--text-muted);font-size:.68rem}.attachment-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.attachment-list li{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.attachment-item-preview{align-items:center;gap:10px;min-width:0;display:flex}.attachment-item-preview img{object-fit:cover;border-radius:8px;width:42px;height:42px}.attachment-doc-badge{width:42px;height:42px;color:var(--accent-hover);background:#2f618114;border-radius:8px;place-items:center;font-size:.6rem;font-weight:800;display:grid}.attachment-item-meta{gap:2px;min-width:0;display:grid}.attachment-item-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;overflow:hidden}.attachment-item-meta small{color:var(--text-muted);font-size:.64rem}.attachment-actions{align-items:center;gap:10px;display:flex}.attachment-actions a{color:var(--accent);font-size:.72rem;font-weight:700;text-decoration:none}.attachment-actions a:hover{text-decoration:underline}.attachment-modal-backdrop{z-index:1000;background:#0f172a8c;place-items:center;padding:24px;animation:.16s modal-fade-in;display:grid;position:fixed;inset:0}.attachment-modal{border:1px solid var(--border-strong);background:var(--surface);width:min(880px,92vw);max-height:88vh;color:var(--text);border-radius:16px;animation:.18s modal-rise-in;display:grid;overflow:hidden;box-shadow:0 28px 70px #0f172a40}@keyframes modal-fade-in{0%{opacity:0}}@keyframes modal-rise-in{0%{opacity:0;transform:translateY(6px)scale(.98)}}.attachment-modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.attachment-modal-header div{gap:2px;display:grid}.attachment-modal-header strong{font-size:.8rem}.attachment-modal-header small{color:var(--text-muted);font-size:.66rem}.attachment-modal img{object-fit:contain;background:#f3f6f9;width:100%;max-height:68vh;display:block}.attachment-modal iframe{background:#f3f6f9;border:0;width:100%;height:68vh;display:block}.attachment-modal-actions{justify-content:flex-end;gap:12px;padding:12px 16px 16px;display:flex}.attachment-modal-actions a{color:var(--accent);font-size:.76rem;font-weight:700;text-decoration:none}@media (max-width:700px){.attachment-upload-controls{grid-template-columns:1fr}.attachment-preview{grid-template-columns:60px minmax(0,1fr)}.attachment-preview .text-button{grid-column:1/-1;justify-self:end}.attachment-list li{flex-direction:column;align-items:flex-start}.attachment-actions{justify-content:flex-end;width:100%}.attachment-modal-backdrop{padding:12px}}.toast-stack{z-index:1200;pointer-events:none;gap:8px;width:min(340px,100vw - 32px);display:grid;position:fixed;top:84px;right:20px}.toast{border:1px solid var(--border);background:var(--surface);color:var(--text);pointer-events:auto;border-radius:10px;align-items:center;gap:10px;padding:11px 12px;animation:.2s toast-in;display:flex;box-shadow:0 12px 28px #0f172a29}.toast-success{border-color:color-mix(in srgb, var(--success) 35%, var(--border))}.toast-error{border-color:color-mix(in srgb, var(--danger) 35%, var(--border))}.toast-icon{border-radius:999px;flex:none;place-items:center;width:22px;height:22px;display:inline-grid}.toast-success .toast-icon{background:var(--success-soft);color:var(--success);animation:.22s toast-icon-pop}.toast-error .toast-icon{background:var(--danger-soft);color:var(--danger)}.toast-message{flex:1;min-width:0;font-size:.82rem}.toast-dismiss{color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex:none;padding:2px 4px;font-size:1rem;line-height:1}.toast-dismiss:hover{color:var(--text)}@keyframes toast-in{0%{opacity:0;transform:translateY(-6px)}}@keyframes toast-icon-pop{0%{opacity:0;transform:scale(.5)}65%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@media (max-width:700px){.toast-stack{width:auto;inset:auto 12px 84px}}.modal-backdrop{z-index:1300;background:#0f172a8c;place-items:center;padding:24px;animation:.16s modal-fade-in;display:grid;position:fixed;inset:0;overflow-y:auto}.modal-panel{border:1px solid var(--border-strong);background:var(--surface);width:min(560px,92vw);max-height:calc(100vh - 48px);color:var(--text);border-radius:16px;gap:4px;padding:22px 24px 24px;animation:.18s modal-rise-in;display:grid;overflow-y:auto;box-shadow:0 28px 70px #0f172a40}.modal-panel-narrow{width:min(400px,92vw)}.modal-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;display:flex}.modal-title{margin:0 0 4px;font-size:1.05rem;font-weight:750}.modal-description{color:var(--text-muted);margin:0;font-size:.8rem;line-height:1.45}.modal-close{border:1px solid var(--border);background:var(--control-background);width:32px;height:32px;color:var(--text-muted);cursor:pointer;border-radius:8px;flex:none;place-items:center;transition:background-color .15s,color .15s;display:inline-grid}.modal-close:hover{background:var(--surface-subtle);color:var(--text)}.modal-close svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;width:16px;height:16px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.modal-icon{background:var(--surface-subtle);width:44px;height:44px;color:var(--accent);border-radius:12px;place-items:center;display:grid}.modal-icon svg{width:20px;height:20px}.modal-panel form{text-align:left;gap:10px;display:grid}.modal-field-label{color:var(--text-muted);font-size:.74rem;font-weight:650}.modal-field-hint{color:var(--text-muted);margin:2px 0 0;font-size:.72rem}.modal-panel input[type=password],.modal-panel input[type=text],.modal-panel input[type=email]{border:1px solid var(--border-strong);background:var(--control-background);width:100%;min-height:40px;color:var(--text);font:inherit;border-radius:8px;padding:8px 11px;transition:border-color .15s,box-shadow .15s}.modal-panel input:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.privacy-modal-backdrop{z-index:1300;background:#0f172a8c;place-items:center;padding:24px;animation:.16s modal-fade-in;display:grid;position:fixed;inset:0}.privacy-modal{border:1px solid var(--border-strong);background:var(--surface);width:min(380px,92vw);color:var(--text);text-align:center;border-radius:16px;gap:4px;padding:26px 24px 24px;animation:.18s modal-rise-in;display:grid;box-shadow:0 28px 70px #0f172a40}.privacy-modal-icon{background:var(--surface-subtle);width:44px;height:44px;color:var(--accent);border-radius:12px;place-items:center;margin:0 auto 10px;display:grid}.privacy-modal-icon svg{width:20px;height:20px}.privacy-modal-title{margin:0 0 4px;font-size:1rem;font-weight:700}.privacy-modal-description{color:var(--text-muted);margin:0 0 18px;font-size:.8rem;line-height:1.45}.privacy-modal form{text-align:left;gap:10px;display:grid}.privacy-modal-label{color:var(--text-muted);font-size:.74rem;font-weight:650}.privacy-modal input[type=password]{width:100%}.privacy-modal-actions{justify-content:flex-end;gap:10px;margin-top:6px;display:flex}.chart-locked{text-align:center;min-height:220px;color:var(--text-muted);place-items:center;gap:8px;padding:24px;display:grid}.chart-locked-icon{background:var(--surface-subtle);width:40px;height:40px;color:var(--accent);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.chart-locked-icon svg{width:18px;height:18px}.chart-locked-title{color:var(--text);margin:0;font-size:.88rem;font-weight:650}.chart-locked-description{max-width:320px;margin:0 0 6px;font-size:.78rem}
.topbar-actions{align-items:center;gap:14px;display:flex}.auth-page{background:radial-gradient(circle at 0 0,#2f61811f,#0000 36%),#f4f7f9;place-items:center;min-height:100vh;padding:32px 20px;display:grid}.auth-card{border:1px solid var(--border);background:#fff;border-radius:18px;width:min(100%,440px);padding:38px;box-shadow:0 22px 60px #0f172a1c}.auth-brand{color:var(--text);gap:5px;display:grid}.auth-brand span{font-size:1.1rem;font-weight:800}.auth-brand strong{color:var(--accent);letter-spacing:.16em;font-size:.67rem}.auth-heading{margin:28px 0 24px}.auth-heading h1{letter-spacing:-.025em;margin:0;font-size:1.65rem}.auth-heading p,.password-help{color:var(--text-muted);margin:8px 0 0;font-size:.86rem;line-height:1.65}.auth-form{gap:17px;display:grid}.auth-form>label{color:#34414d;gap:7px;font-size:.77rem;font-weight:700;display:grid}.auth-form>label span{color:var(--danger);margin-left:2px}.auth-form input{border:1px solid var(--border-strong);min-height:46px;color:var(--text);font:inherit;border-radius:9px;padding:10px 12px}.auth-form input:focus{border-color:var(--accent);outline:3px solid #2f61811f}.password-field{display:block;position:relative;color:var(--text)!important;margin:0!important}.password-field input{width:100%;padding-right:62px}.password-field button{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:0;padding:5px 7px;font-size:.7rem;font-weight:750;position:absolute;top:50%;right:9px;transform:translateY(-50%)}.auth-options{justify-content:space-between;align-items:center;gap:12px;font-size:.75rem;display:flex}.auth-options a,.auth-links a,.auth-back,.contact-link{color:var(--accent);font-weight:700;text-decoration:none}.auth-options a:hover,.auth-links a:hover,.auth-back:hover,.contact-link:hover{text-decoration:underline}.remember{color:var(--text-muted);align-items:center;gap:7px;display:flex}.remember input{min-height:auto}.auth-error{background:var(--danger-soft);color:var(--danger);border-radius:8px;margin:0;padding:10px 12px;font-size:.76rem}.auth-submit{width:100%;min-height:46px}.auth-back{text-align:center;margin-top:24px;font-size:.75rem;display:block}.contact-link{margin-top:18px;display:inline-block}.auth-links{border-top:1px solid var(--border);gap:10px;margin-top:30px;padding-top:20px;font-size:.76rem;display:grid}.public-shell{flex-direction:column;min-height:100vh;display:flex}.public-shell .auth-page{flex:1;min-height:auto}.login-loading{color:var(--text-muted);justify-content:center;align-items:center;gap:9px;font-size:.75rem;display:flex}.loading-spinner{border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;width:16px;height:16px;animation:.7s linear infinite login-spin}@keyframes login-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.loading-spinner{animation-duration:1.8s}}@media (max-width:520px){.auth-card{padding:28px 22px}.auth-options{flex-direction:column;align-items:flex-start}}
:root{--control-background:#fff;--topbar-background:#ffffffeb;--sidebar-text:#4b5563;--neutral:#718096;--focus-ring:#2563eb59;--auth-glow:#2563eb1f;--auth-background:#f7f8fa;--overlay:#0f172a8c;--success:#27613d;--success-soft:#eaf6ee;--expense:#944337;--expense-soft:#fff0ed;--warning:#71521f;--warning-soft:#fff8e8;--chart-grid:#e4e9ed;--chart-track:#edf1f4;--chart-1:#2563eb;--chart-2:#39855a;--chart-3:#7655a6;--chart-4:#b17825;--chart-5:#31838d;--chart-6:#a55248}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#0b0e14;--surface:#141821;--surface-subtle:#191e28;--control-background:#10141c;--topbar-background:#0b0e14eb;--border:#262b36;--border-strong:#383f4d;--text:#f3f4f6;--text-muted:#9aa1ae;--sidebar-text:#aab1bd;--accent:#4f8dfa;--accent-hover:#7aabfc;--accent-soft:#172a4d;--danger:#ffaaa4;--danger-soft:#472629;--neutral:#8b93a1;--focus-ring:#4f8dfa73;--auth-glow:#4f8dfa29;--auth-background:#0b0e14;--overlay:#000000b8;--success:#8ed1a7;--success-soft:#183527;--expense:#ffaaa0;--expense-soft:#412624;--warning:#f2ca83;--warning-soft:#3b301d;--chart-grid:#2c313c;--chart-track:#1f2530;--chart-1:#4f8dfa;--chart-2:#71c493;--chart-3:#ad91dc;--chart-4:#e1b766;--chart-5:#61bfcb;--chart-6:#e2877e;--shadow:0 1px 2px #00000059}.theme-toggle{border:1px solid var(--border-strong);background:var(--control-background);width:36px;height:36px;color:var(--text);cursor:pointer;border-radius:8px;place-items:center;display:inline-grid}.theme-toggle:hover{background:var(--surface-subtle)}.theme-icon-frame{animation:.26s theme-icon-pop;display:inline-flex}@keyframes theme-icon-pop{0%{opacity:0;transform:scale(.5)rotate(-45deg)}to{opacity:1;transform:scale(1)rotate(0)}}.theme-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.theme-toggle:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.public-theme-control{z-index:10;position:fixed;top:18px;right:20px}input,select,textarea,select option{background-color:var(--control-background);color:var(--text)}.topbar{background:var(--topbar-background)}.nav-link{color:var(--sidebar-text)}.status-dot{background:var(--neutral)}.skeleton-line{background:var(--chart-track)}.skeleton-line:after{background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent)}.category-form label,.type-picker legend,.form-grid label,.attachment-kind,.attachment-file,.auth-form>label{color:var(--sidebar-text)}.submission-message.success,.type-marker.income{background:var(--success-soft);color:var(--success)}.type-marker.expense{background:var(--expense-soft);color:var(--expense)}.transaction-amount.income{color:var(--success)}.transaction-amount.expense{color:var(--expense)}.chart-track,.column-track{background:var(--chart-track)}.chart-gridline{stroke:var(--chart-grid)}.trend-point{fill:var(--surface)}.legend-item.income i{background:var(--chart-2)}.legend-item.expense i{background:var(--chart-6)}.legend-item.previous i{background:var(--chart-4)}.legend-item.current i{background:var(--chart-1)}.column-fill.income{background:linear-gradient(180deg, color-mix(in srgb, var(--chart-2) 78%, white), var(--chart-2))}.column-fill.expense{background:linear-gradient(180deg, color-mix(in srgb, var(--chart-6) 78%, white), var(--chart-6))}.column-fill.previous{background:linear-gradient(180deg, color-mix(in srgb, var(--chart-4) 78%, white), var(--chart-4))}.column-fill.current{background:linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 78%, white), var(--chart-1))}.column-chip.income{color:var(--success)}.column-chip.expense{color:var(--expense)}.column-group{background:linear-gradient(180deg, var(--surface), var(--surface-subtle))}.export-card .export-warning{border-left-color:var(--chart-4);background:var(--warning-soft);color:var(--warning)}.attachment-upload{background:linear-gradient(180deg, var(--surface-subtle), var(--surface))}.attachment-thumb,.attachment-modal img,.attachment-modal iframe{background:var(--surface-subtle)}.attachment-modal-backdrop{background:var(--overlay)}.attachment-modal{background:var(--surface);border-color:var(--border-strong)}.auth-page{background:radial-gradient(circle at top left, var(--auth-glow), transparent 36%), var(--auth-background)}.auth-card{background:var(--surface)}.auth-form input:focus{outline-color:var(--focus-ring)}.auth-options a,.auth-links a{color:var(--accent);font-weight:650}.auth-options a:hover,.auth-links a:hover{color:var(--accent-hover);text-decoration:underline}@media (max-width:720px){.topbar-actions{gap:8px}.public-theme-control{top:12px;right:12px}}
