@font-face{font-family:Nunito;src:url("fonts/nunito_regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Nunito;src:url("fonts/nunito_medium.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Nunito;src:url("fonts/nunito_semibold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Nunito;src:url("fonts/nunito_bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
:root{font-family:Nunito,system-ui,sans-serif;color-scheme:light;--bg:#F4F7F9;--surface:#fff;--surface-variant:#EEF3F6;--outline:#E5EBEF;--outline-strong:#D7E0E6;--text:#17212B;--muted:#66727D;--inactive-tab:#F2F6F8;--seam:#0000001a;--green:#00CC99;--red:#FF3D4F;--fade-depth:476px}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0E1419;--surface:#171E24;--surface-variant:#222B33;--outline:#2A343C;--outline-strong:#3A4650;--text:#F4F7F9;--muted:#A8B2BA;--inactive-tab:#182129;--seam:#ffffff21}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{font-size:14px;line-height:1.4}
button{font:inherit;cursor:pointer}
button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
[hidden]{display:none!important}
.material-icon{display:inline-block;width:24px;height:24px;flex:none;background-color:currentColor;mask-image:var(--icon);mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-image:var(--icon);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}
.material-icon[data-icon="settings-outlined"]{--icon:url("assets/material/settings-outlined.svg")}
.material-icon[data-icon="elasty-mark"]{--icon:url("assets/elasty-header-mark.webp?v=1")}
.material-icon[data-icon="smart_toy-outlined"]{--icon:url("assets/material/smart_toy-outlined.svg")}
.material-icon[data-icon="savings-outlined"]{--icon:url("assets/material/savings-outlined.svg")}
.material-icon[data-icon="credit-bank"]{--icon:url("assets/category-icons/credit-bank.svg")}
.material-icon[data-icon="format_list_bulleted-outlined"]{--icon:url("assets/material/format_list_bulleted-outlined.svg")}
.material-icon[data-icon="calendar_month-outlined"]{--icon:url("assets/material/calendar_month-outlined.svg")}
.material-icon[data-icon="menu_book-outlined"]{--icon:url("assets/material/menu_book-outlined.svg")}
.material-icon[data-icon="insights-outlined"]{--icon:url("assets/material/insights-outlined.svg")}
.material-icon[data-icon="notifications-outlined"]{--icon:url("assets/material/notifications-outlined.svg")}
.material-icon[data-icon="notifications-filled"]{--icon:url("assets/material/notifications-filled.svg")}
.material-icon[data-icon="person-outlined"]{--icon:url("assets/material/person-outlined.svg")}
.material-icon[data-icon="arrow_back-filled"]{--icon:url("assets/material/arrow_back-filled.svg")}
.material-icon[data-icon="credit_card-filled"]{--icon:url("assets/material/credit_card-filled.svg")}
.material-icon[data-icon="phone_android-filled"]{--icon:url("assets/material/phone_android-filled.svg")}
.material-icon[data-icon="close-filled"]{--icon:url("assets/material/close-filled.svg")}
.material-icon[data-icon="language-filled"]{--icon:url("assets/material/language-filled.svg")}
.material-icon[data-icon="dark_mode-filled"]{--icon:url("assets/material/dark_mode-filled.svg")}
.material-icon[data-icon="light_mode-filled"]{--icon:url("assets/material/light_mode-filled.svg")}
.material-icon[data-icon="upload_file-filled"]{--icon:url("assets/material/upload_file-filled.svg")}
.material-icon[data-icon="download-filled"]{--icon:url("assets/material/download-filled.svg")}
.material-icon[data-icon="delete_forever-filled"]{--icon:url("assets/material/delete_forever-filled.svg")}
.material-icon[data-icon="delete-filled"]{--icon:url("assets/material/delete-filled.svg")}
.material-icon[data-icon="edit-filled"]{--icon:url("assets/material/edit-filled.svg")}
.material-icon[data-icon="info-filled"]{--icon:url("assets/material/info-filled.svg")}
.material-icon[data-icon="bug_report-filled"]{--icon:url("assets/material/bug_report-filled.svg")}
.material-icon[data-icon="chevron_right-filled"]{--icon:url("assets/material/chevron_right-filled.svg")}
.material-icon[data-icon="logout-filled"]{--icon:url("assets/material/logout-filled.svg")}
.app-shell{width:100%;max-width:480px;min-height:100dvh;margin:auto;background:var(--bg);overflow:hidden}
@media(min-width:500px){.app-shell{box-shadow:0 10px 42px #0000001a}}
.main-view{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(to bottom,var(--accent) -24px,color-mix(in srgb,var(--accent) 78%,var(--bg)) var(--fade-depth));background-color:var(--bg)}
:root[data-theme="dark"] .main-view{background-image:linear-gradient(to bottom,color-mix(in srgb,var(--accent) 82%,var(--bg)) -24px,color-mix(in srgb,var(--accent) 58%,var(--bg)) var(--fade-depth))}
:root[data-theme="dark"] .main-view[data-active-tab="results"]{background-image:linear-gradient(to bottom,var(--accent) -24px,color-mix(in srgb,var(--accent) 58%,var(--bg)) var(--fade-depth))}
.main-view[data-active-tab="home"]{background:var(--bg)}
.main-view[data-active-tab="home"] .main-header{position:relative;z-index:20;background:var(--bg)}
.main-view[data-active-tab="home"] .brand{color:var(--text)}
.main-view[data-active-tab="home"] .brand-home:focus-visible{outline-color:var(--text)}
.main-view[data-active-tab="home"] .header-icon{color:var(--text)}
.main-view[data-active-tab="home"] .profile-trigger{background:transparent}
.main-header{height:68px;flex:none;padding:8px 20px 12px;display:flex;align-items:center;justify-content:space-between}
.demo-brand-badge{margin-left:6px;padding:3px 6px;border-radius:6px;background:#eee8ff;color:#5c3bbb;font-size:9px;line-height:1;font-weight:800;letter-spacing:.07em}
.demo-overlay-close{display:none;flex:none;align-items:center;justify-content:center;gap:5px;min-height:40px;margin-left:4px;padding:0 9px;border:2px solid #fff;border-radius:11px;background:#5030a6;color:#fff;box-shadow:0 2px 8px #20124d40;font:800 13px system-ui,sans-serif;cursor:pointer}
.demo-overlay-close span{font-size:21px;line-height:1}
body.demo-overlay-open .demo-overlay-close{display:inline-flex;align-items:center;justify-content:center}
body.demo-overlay-open .main-header{padding-right:10px;padding-left:10px;gap:4px}
body.demo-overlay-open .brand{gap:4px;font-size:19px}
body.demo-overlay-open .brand-mark{width:20px;height:20px}
body.demo-overlay-open .demo-brand-badge{margin-left:2px}
body.demo-overlay-open .header-actions{gap:0;margin-left:auto}
body.demo-overlay-open .header-icon{width:36px}
.demo-month-message{margin:12px 0 0;color:#5c3bbb;font-size:12px;font-weight:700;text-align:center}
.demo-unavailable-message{margin:12px 16px;color:#5c3bbb;font-size:12px;font-weight:700;text-align:center}
.brand{display:flex;align-items:center;gap:6px;color:#fff;font-size:24px;line-height:30px;font-weight:700;letter-spacing:0}
.brand-mark{width:24px;height:24px}
.brand-home{padding:0;border:0;background:none;text-align:left}
.brand-home:focus-visible{outline-color:#fff;border-radius:6px}
.header-actions{display:flex;align-items:center;gap:6px}
.header-icon{border:0;background:none;color:#fff;width:42px;height:42px;display:grid;place-items:center;padding:0}
.header-icon .material-icon{width:26px;height:26px}
.profile-trigger{background:#ffffff24;border-radius:12px}
.profile-trigger .material-icon{width:24px;height:24px}
.main-scroll{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;scrollbar-width:none;background:var(--bg)}
.main-scroll::-webkit-scrollbar{display:none}
.tab-bar{display:none;height:64px;position:relative;isolation:isolate;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.tab-bar::-webkit-scrollbar{display:none}
.tab-track{height:64px;width:var(--tab-track-width,100%);position:relative;contain:paint}
.tab{position:absolute;left:var(--tab-left,0px);bottom:0;width:var(--tab-width,50%);height:60px;border:0;background:transparent;padding:0;color:var(--tab-color);z-index:var(--layer,1);transform:translateY(12px);transition:transform 180ms cubic-bezier(.4,0,.2,1);-webkit-tap-highlight-color:transparent}
.tab.tab-active{transform:translateY(0);z-index:100;color:var(--tab-color)}
.tab-shape{display:block;position:absolute;inset:0;width:100%;height:100%;filter:none}
.tab-face{fill:var(--inactive-tab)}
.tab.tab-active .tab-face{fill:var(--tab-color)}
.tab-seam{fill:none;stroke:var(--seam);stroke-width:1}
.tab-inner{height:100%;position:relative;display:flex;align-items:center;justify-content:flex-end;padding:0 var(--tab-icon-padding,22px);gap:8px;color:inherit}
.tab.to-left .tab-inner{justify-content:flex-start}
.tab.tab-active .tab-inner{justify-content:center;color:#fff}
.tab-icon{width:23px;height:23px}
.tab-label{display:none;font-size:17px;font-weight:700;white-space:nowrap}
.tab[data-tab="configuration"]:not(.tab-active){color:#0A0F13}
:root[data-theme="dark"] .tab[data-tab="configuration"]:not(.tab-active){color:#ffffffdb}
:root[data-theme="dark"] .tab[data-tab="results"]:not(.tab-active){color:#D8CFFF}
.tab.tab-active .tab-label{display:inline}
.empty-card{position:relative;z-index:11;min-height:800px;margin-top:-1px;background:var(--bg)}
.main-view:not([data-active-tab="home"]) .main-scroll{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
.main-view[data-active-tab="more"],.main-view[data-active-tab="more"] .main-header,.main-view[data-active-tab="more"] .empty-card{background:var(--surface)}
.main-view[data-active-tab="more"] .main-scroll{background:var(--surface)}
:root[data-theme="dark"] .main-view[data-active-tab="more"]{background:var(--surface)}
.main-view[data-active-tab="more"] .brand,.main-view[data-active-tab="more"] .header-icon{color:var(--text)}
.more-page{min-height:calc(100dvh - 68px);padding:8px 12px 28px;background:var(--surface)}
.more-page h1{margin:0 0 24px;font-size:18px;line-height:26px;text-align:center;color:#008CFF}
.more-section-title{margin:0 4px 16px;color:var(--muted);font-size:14px;line-height:20px;font-weight:700}
.more-section-next{margin-top:24px}
.more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 4px}
.more-tile{min-width:0;min-height:102px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;padding:4px 0;border:0;border-radius:13px;background:transparent;color:var(--text);text-align:center;text-decoration:none;font-size:11px;line-height:15px;font-weight:600}
.more-tile:active{transform:scale(.97)}
.more-tile-icon{width:56px;height:56px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--more-color) 14%,var(--outline));border-radius:50%;background:color-mix(in srgb,var(--more-color) 7%,var(--surface));box-shadow:0 3px 10px #17212b12;color:var(--more-color)}
.more-tile-icon .material-icon{width:24px;height:24px}
@media(max-width:350px){.more-tile{font-size:10px}.more-tile-icon{width:52px;height:52px}}
.more-configuration{--more-color:#586773}
.more-savings{--more-color:#008CFF}
.more-credit{--more-color:#7C5CFF}
.more-dashboard{--more-color:#D28A00}
.more-access{--more-color:#00A980}
.more-devices{--more-color:#7C5CFF}
.more-payments{--more-color:#D28A00}
.more-storage{--more-color:#00A980}
.more-theme{--more-color:#F59E0B}
.more-help{--more-color:#00A980}
.more-bug{--more-color:#FF3D4F}
.bottom-navigation{position:fixed;z-index:90;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,480px);height:calc(69px + env(safe-area-inset-bottom));padding:3px 7px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;border-top:1px solid var(--outline);background:var(--surface);box-shadow:0 -8px 22px #17212b12}
.bottom-navigation button{min-width:0;border:0;border-radius:12px;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 1px;font-size:10px;line-height:14px;font-weight:700;white-space:nowrap}
.bottom-navigation button[aria-current="page"]{color:var(--nav-active,var(--text))}
.bottom-navigation button:focus-visible{outline:0}
.bottom-navigation button:focus-visible .material-icon,.bottom-navigation button:focus-visible .bottom-home-icon,.bottom-navigation button:focus-visible .bottom-more-icon{outline:2px solid currentColor;outline-offset:4px;border-radius:5px}
.bottom-navigation button:focus-visible .bottom-add-circle{outline:2px solid var(--red);outline-offset:3px}
.bottom-navigation .material-icon,.bottom-home-icon,.bottom-more-icon{width:21px;height:21px}
.bottom-navigation .bottom-add{color:var(--red);gap:1px}
.bottom-add-circle{width:47px;height:47px;display:grid;place-items:center;border-radius:50%;background:var(--red);box-shadow:0 5px 14px #ff3d4f52;color:#fff;font-family:Nunito,system-ui,sans-serif;font-size:30px;font-weight:400;line-height:1}
.bottom-navigation .bottom-add span:last-child{font-size:9px}
@media(max-width:350px){.bottom-navigation{padding-inline:3px}.bottom-navigation button{font-size:9px}}
.home-page{padding:21px 16px calc(112px + env(safe-area-inset-bottom))}
.main-view[data-active-tab="home"] .tab-bar{display:none}
.home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:clamp(185px,52vw,250px);grid-auto-rows:clamp(74px,18.5vw,84px);gap:9px}
.home-tile{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;padding:14px;border:1px solid var(--outline);border-radius:19px;background:var(--surface);color:var(--text);text-align:left;box-shadow:0 7px 20px #17212b0a;transition:transform 150ms ease,box-shadow 150ms ease}
.home-tile:active{transform:scale(.985)}
.home-tile-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:13px;line-height:18px;font-weight:700}
.home-tile-top>span:last-child{font-size:15px;opacity:.65}
.home-budget{grid-column:span 4;grid-row:span 1;justify-content:space-between;padding:16px;border-color:#5D4C95;background:radial-gradient(circle at 74% 45%,#8B73C2 0%,#473475 36%,#20124D 100%);color:#fff;box-shadow:0 12px 24px #20124d35}
.home-budget::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 24%,#ffffff0d 40%,#ffffff38 49%,#ffffff0d 58%,transparent 75%);transform:translateX(-140%);animation:home-shine 9s ease-in-out infinite;pointer-events:none}
@keyframes home-shine{0%,72%,100%{transform:translateX(-140%)}84%{transform:translateX(140%)}}
.home-budget .home-tile-top,.home-budget-body{position:relative;z-index:1}
.home-budget .home-tile-top{font-size:16px}
.home-budget-body{display:flex;align-items:center;justify-content:space-between;gap:10px}
.home-budget-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.home-budget-copy strong{font-size:clamp(25px,7vw,36px);line-height:1.12;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-budget-copy small{font-size:12px;line-height:16px;color:#ffffffdc}
.home-budget-ring{width:80px;height:80px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#fff var(--home-progress,0%),#ffffff34 0);box-shadow:0 0 22px #ffffff30}
.home-budget-ring::before{content:"";grid-area:1/1;width:62px;height:62px;border-radius:50%;background:#392660}
.home-budget-ring span{grid-area:1/1;z-index:1;font-size:18px;font-weight:700}
.home-budget[data-state="negative"]{background:radial-gradient(circle at 74% 45%,#FF8790 0%,#D62E4B 42%,#8A1930 100%);border-color:#D62E4B}
.home-budget[data-state="negative"] .home-budget-ring::before{background:#A7263D}
.home-budget[data-state="healthy"]{background:radial-gradient(circle at 74% 45%,#38D9B5 0%,#009C7A 42%,#006C5D 100%);border-color:#008E78}
.home-budget[data-state="healthy"] .home-budget-ring::before{background:#00735E}
.home-budget[data-state="empty"]{background:radial-gradient(circle at 74% 45%,#8895A3 0%,#566575 42%,#303D4B 100%);border-color:#647180}
.home-budget[data-state="empty"] .home-budget-ring::before{background:#485766}
.home-credit,.home-savings{grid-column:span 2;grid-row:span 2;gap:3px}
.home-credit{border-color:color-mix(in srgb,#7C5CFF 33%,var(--outline));background:linear-gradient(155deg,color-mix(in srgb,#7C5CFF 14%,var(--surface)),var(--surface) 75%)}
.home-savings{border-color:color-mix(in srgb,#008CFF 33%,var(--outline));background:linear-gradient(155deg,color-mix(in srgb,#008CFF 13%,var(--surface)),var(--surface) 75%)}
.home-credit>.material-icon,.home-savings>.material-icon{width:24px;height:24px;margin-top:auto;margin-bottom:3px}
.home-credit>.material-icon,.home-credit>strong{color:#7C5CFF}
.home-savings>.material-icon,.home-savings>strong{color:#008CFF}
.home-credit>strong,.home-savings>strong{font-size:clamp(17px,5vw,24px);line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-credit>small,.home-savings>small{font-size:11px;line-height:14px;color:var(--muted)}
.home-tile-foot{display:block;width:100%;min-height:28px;margin-top:5px;padding-top:6px;border-top:1px solid var(--outline);color:var(--muted);font-size:10px;line-height:13px;overflow-wrap:anywhere}
.home-month{grid-column:span 4;grid-row:span 2;gap:8px;border-color:color-mix(in srgb,#F59E0B 36%,var(--outline));background:linear-gradient(140deg,color-mix(in srgb,#F59E0B 10%,var(--surface)),var(--surface) 58%)}
.home-month-rows{display:grid;gap:6px;margin:auto 0}
.home-month-row{display:grid;grid-template-columns:70px minmax(0,1fr) 38px;align-items:center;gap:8px;font-size:11px;line-height:13px}
.home-month-row>span:first-child{color:var(--muted);font-weight:700}
.home-month-row strong{text-align:right;color:var(--home-row-color);font-size:11px;font-variant-numeric:tabular-nums}
.home-month-track{height:8px;overflow:hidden;border-radius:9px;background:var(--outline-strong)}
.home-month-track>span{display:block;height:100%;border-radius:9px;background:var(--home-row-color)}
.home-mini{grid-column:span 2;grid-row:span 1;justify-content:center;align-items:center;gap:5px;padding:9px 6px;border-radius:14px;background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--mini-color) 10%,var(--surface)),color-mix(in srgb,var(--mini-color) 3%,var(--surface)) 78%,var(--surface) 115%);border-color:color-mix(in srgb,var(--mini-color) 38%,var(--outline));color:var(--mini-color);text-align:center}
.home-mini>span{font-size:12px;line-height:15px;font-weight:700}
.home-mini>strong{font-size:clamp(15px,4vw,18px);line-height:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-mini-income{--mini-color:var(--green)}
.home-mini-expense{--mini-color:var(--red)}
.home-mini-saving{--mini-color:#008CFF}
.home-mini-payment{--mini-color:#7C5CFF}
:root[data-theme="dark"] .home-tile{box-shadow:0 7px 20px #0002}
@media(max-width:350px){.home-grid{gap:7px}.home-tile{padding:11px}.home-budget{padding:13px}.home-mini{padding:7px 5px}.home-month-row{grid-template-columns:62px minmax(0,1fr) 36px;gap:5px}}
@media(prefers-reduced-motion:reduce){.home-budget::before{animation:none}.home-tile{transition:none}}
.profile-view{height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
.profile-header{height:68px;flex:none;padding:8px 20px 12px 20px;background:linear-gradient(to bottom,#00CC99,color-mix(in srgb,#00CC99 82%,var(--bg)));display:flex;align-items:center;color:#fff}
:root[data-theme="dark"] .profile-header{background-image:linear-gradient(to bottom,#00CC99,color-mix(in srgb,#00CC99 72%,var(--bg)))}
.profile-header h1{font-size:22px;line-height:28px;margin:0 0 0 2px;font-weight:700}
.back-button{width:48px;height:48px;border:0;background:none;color:#fff;display:grid;place-items:center;padding:0}
.profile-scroll{flex:1;min-height:0;overflow-y:auto;padding:18px 16px calc(96px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px;scrollbar-width:none}
.profile-scroll::-webkit-scrollbar{display:none}
.account-card,.profile-card{background:var(--surface);border:1px solid var(--outline);box-shadow:none}
.account-card{border-radius:22px;padding:18px;display:flex;align-items:flex-start;gap:14px}
.account-avatar{width:52px;height:52px;background:#00cc991f;color:var(--green);border-radius:14px;display:grid;place-items:center;flex:none}
.account-avatar .material-icon{width:28px;height:28px}
.account-details{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.account-details>strong{font-size:16px;line-height:24px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.access{margin:5px 0 10px;font-size:12px;color:var(--muted);display:flex;align-items:center;flex-wrap:wrap;line-height:16px}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:7px;flex:none}
.status-active{color:var(--green);font-weight:600}
.account-link{display:flex;align-items:center;gap:7px;color:var(--green);font-weight:600;padding:4px 0;border:0;background:none;text-align:left;text-decoration:none;min-height:40px}
.account-link .material-icon{width:18px;height:18px}
.profile-section{display:flex;flex-direction:column;gap:8px}
.profile-section h2{font-size:14px;line-height:20px;color:var(--muted);font-weight:600;margin:0 4px}
.profile-card{border-radius:20px;overflow:hidden}
.menu-row{width:100%;min-height:66px;border:0;background:none;display:flex;align-items:center;text-align:left;color:var(--text);padding:14px 16px;gap:12px;position:relative}
.menu-row:not(:last-child):after{content:"";position:absolute;left:66px;right:0;bottom:0;height:1px;background:color-mix(in srgb,var(--outline) 70%,transparent)}
.menu-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#00cc9917;color:var(--green);flex:none}
.menu-icon .material-icon{width:20px;height:20px}
.menu-text{font-size:15px;font-weight:600;flex:1;min-width:0}
.menu-value{color:var(--muted);font-size:14px;white-space:nowrap}
.chevron{width:20px;height:20px;color:color-mix(in srgb,var(--muted) 50%,transparent)}
.language-chevron-spacer{visibility:hidden}
.has-subtitle{min-height:66px}
.has-subtitle .menu-text{display:flex;flex-direction:column;gap:2px}
.has-subtitle .menu-text strong{font-size:15px;font-weight:600;line-height:24px}
.has-subtitle .menu-text small{font-size:12px;color:var(--muted);font-weight:400;line-height:16px}
.danger .menu-icon{color:var(--red);background:#ff3d4f17}
.switch{width:52px;height:32px;border:2px solid var(--outline-strong);border-radius:16px;background:var(--surface-variant);padding:0;position:relative;transition:background .18s,border-color .18s;flex:none}
.switch-knob{display:block;position:absolute;left:6px;top:6px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:left .18s,top .18s,width .18s,height .18s,background .18s}
.switch[aria-checked="true"]{border-color:var(--green);background:var(--green)}
.switch[aria-checked="true"] .switch-knob{left:22px;top:2px;width:24px;height:24px;background:#fff}
:root[data-theme="dark"] .switch[aria-checked="true"] .switch-knob{background:#17212B}
.logout{height:54px;flex-shrink:0;width:100%;border:1px solid #ff3d4f8c;border-radius:16px;color:var(--red);font-weight:700;background:transparent;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:22px}
.logout .material-icon{width:20px;height:20px}
.profile-footer{margin-top:0;text-align:center;color:color-mix(in srgb,var(--muted) 55%,transparent);font-size:11px;line-height:16px;font-weight:500;letter-spacing:.5px;display:flex;flex-direction:column;gap:4px}
.profile-footer span{color:color-mix(in srgb,var(--muted) 38%,transparent)}
.profile-footer button{border:0;background:none;padding:0;color:color-mix(in srgb,var(--green) 82%,transparent);font-size:inherit;font-weight:inherit;letter-spacing:inherit}
.theme-dialog{border:1px solid var(--outline);border-radius:24px;background:var(--surface);color:var(--text);padding:0;width:min(340px,calc(100vw - 40px));box-shadow:0 18px 45px #0004}
.theme-dialog::backdrop{background:#0008}
.dialog-content{padding:24px;display:flex;flex-direction:column}
.dialog-content h2{font-size:22px;line-height:28px;margin:0 0 14px;font-weight:700}
.dialog-content button{border:0;background:none;color:var(--text);padding:10px 0;text-align:left;font-size:16px}
.dialog-content .dialog-cancel{color:var(--green);text-align:right;margin-top:8px;font-size:14px;font-weight:600}
.notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:99;background:var(--surface);border:1px solid var(--outline);border-radius:12px;color:var(--text);padding:10px 16px;box-shadow:0 8px 24px #0003;width:max-content;max-width:calc(100vw - 32px);text-align:center}
.category-settings{padding:24px 16px calc(32px + env(safe-area-inset-bottom))}
.month-mode-settings{--month-mode-accent:#0A0F13;background:var(--surface);border:1px solid var(--outline);border-radius:20px;padding:18px;margin-bottom:22px}
:root[data-theme="dark"] .month-mode-settings{--month-mode-accent:#F4F7F9}
.month-mode-settings h1{margin:0 0 12px;font-size:16px;line-height:24px;font-weight:700}
.month-mode-options{display:grid;gap:8px}
.month-mode-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:62px;padding:10px 14px;border:1px solid var(--outline);border-radius:14px;background:var(--surface);color:var(--text);text-align:left;font:inherit}
.month-mode-option[aria-pressed="true"]{border:2px solid var(--month-mode-accent);padding:9px 13px;background:color-mix(in srgb,var(--month-mode-accent) 6%,var(--surface))}
.month-mode-option:focus-visible{outline-color:var(--month-mode-accent)}
.month-mode-option strong{font-size:14px;line-height:20px}
.month-mode-option span{font-size:12px;line-height:17px;color:var(--muted)}
.month-mode-settings>p{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:17px}
.month-mode-dialog .category-form>p{font-size:14px;line-height:21px;color:var(--text)}
.month-mode-dialog #month-mode-dialog-effect{color:var(--muted);font-size:12px;line-height:18px}
.month-mode-dialog-actions{display:flex;gap:10px;margin-top:18px}
.month-mode-dialog-actions button{flex:1;min-height:44px;border:1px solid var(--outline);border-radius:13px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:700}
.month-mode-dialog-actions #confirm-month-mode{border-color:var(--green);background:var(--green);color:#fff}
.planner-page{padding:16px 16px 8px}
.planner-period{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.planner-period h1{flex:1;min-width:0;font-size:16px;line-height:24px;font-weight:700;margin:0;text-align:center}
.planner-period button{width:44px;height:44px;border:0;background:none;color:var(--text);font-size:30px;line-height:1;padding:0;flex:none}
.planner-period #planner-month{width:100%;height:44px;font:inherit;font-size:16px;font-weight:700;line-height:24px;white-space:nowrap}
.planner-period #planner-month::after{content:"⌄";display:inline-block;margin-left:6px;color:var(--muted);font-size:16px}
.planner-month-dialog{--category-accent:var(--green)}
.planner-month-picker{padding:20px}
.planner-year-picker{display:flex;align-items:center;justify-content:space-between;margin:12px 0 16px}
.planner-year-picker strong{font-size:20px;line-height:28px}
.planner-year-picker button{width:44px;height:44px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-variant);color:var(--text);font-size:26px;line-height:1}
.planner-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.planner-month-grid button{min-width:0;height:48px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-variant);color:var(--text);font-size:14px;font-weight:700}
.planner-month-grid button[aria-pressed="true"]{border:2px solid var(--green);background:color-mix(in srgb,var(--green) 13%,var(--surface));color:var(--text)}
.planner-available{--planner-budget-color:var(--muted);position:sticky;top:0;z-index:12;min-height:48px;background:#fff;border:1px solid var(--outline);border-radius:14px;box-shadow:0 3px 10px #0000000d;font-size:14px;font-weight:700;overflow:hidden}
.planner-available-main{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:8px 12px;color:#0B1118}
:root[data-theme="dark"] .planner-available{background:var(--surface-variant)}
:root[data-theme="dark"] .planner-available-main{color:var(--text);text-shadow:0 1px 3px #0E1419b3}
.planner-available-result{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.planner-available strong{font-size:18px;line-height:26px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.planner-available[data-state="balanced"] .planner-available-main{color:var(--green)}
.planner-available[data-state="negative"] .planner-available-main{color:var(--red)}
.planner-available[data-state="unset"] .planner-available-main{color:var(--muted)}
.planner-available-progress{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.planner-available-fill{position:absolute;inset:0 auto 0 0;width:0;overflow:hidden;background:var(--planner-budget-color);transition:width .3s ease,background-color .3s ease}
.planner-available-fill::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transform:translateX(-100%);animation:savings-progress-sheen 2s linear infinite}
@media(prefers-reduced-motion:reduce){.planner-available-fill::after{animation:none}}
.planner-sections{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.planner-section{--planner-color:var(--green);background:var(--surface);border:1px solid var(--outline);border-radius:20px;padding:16px}
.planner-section[data-planner-group="savings"]{--planner-color:#31AFFE}
.planner-section[data-planner-group="credit"]{--planner-color:#7C5CFF}
.planner-section[data-planner-group="expense"]{--planner-color:var(--red)}
.planner-section h2{font-size:16px;line-height:24px;font-weight:700;color:var(--planner-color);margin:0 0 12px}
.planner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.planner-tile{min-width:0;min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;border:0;border-radius:13px;background:var(--surface-variant);color:var(--text);text-align:center;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.planner-tile-icon{width:22px;height:22px;display:grid;place-items:center;color:var(--planner-color)}
.planner-tile-icon img,.planner-tile-icon .category-icon-mask{width:21px;height:21px;object-fit:contain}
.planner-tile-amount{max-width:100%;font-size:clamp(11px,3.3vw,14px);line-height:20px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.planner-tile-name{max-width:100%;font-size:11px;line-height:15px;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.planner-empty{grid-column:1/-1;font-size:13px;line-height:19px;color:var(--muted);margin:2px 0 4px}
.income-category-icon{filter:saturate(2.05) brightness(.97)}
.month-preview{--month-accent:#20124D;--month-surface-accent:#20124D;padding:16px 16px 8px}
:root[data-theme="dark"] .month-preview{--month-accent:#BFAACC;--month-surface-accent:#201436}
.month-preview-period{position:relative;z-index:25;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;margin-bottom:12px}
.month-preview-period[data-month-mode="calendar"]{grid-template-columns:minmax(0,1fr) auto}
.month-preview-period h1{grid-column:1;grid-row:1;margin:0;min-width:0}
.month-preview-period h1 button{min-height:40px;max-width:100%;display:flex;align-items:center;gap:5px;padding:0;border:0;background:none;color:var(--text);font-size:15px;font-weight:700;text-align:left}
.month-preview-period h1 .material-icon{width:17px;height:17px;color:var(--month-accent)}
.month-preview-period h1 #month-preview-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.month-preview-period .month-preview-chevron{color:var(--month-accent);font-size:16px}
.month-preview-navigation{grid-column:2;grid-row:1;display:flex;align-items:center;gap:4px}
.month-preview-navigation button{width:32px;height:36px;padding:0;border:1px solid var(--outline);border-radius:11px;background:var(--surface);color:var(--month-accent);font:inherit;font-size:23px;line-height:1}
.month-preview-navigation button:disabled{opacity:.35;cursor:default}
.month-preview-navigation button:focus-visible{outline:2px solid var(--month-accent);outline-offset:2px}
.month-preview-next-period{grid-column:1/-1;grid-row:2;justify-self:start;max-width:144px;min-height:40px;padding:5px 9px;border:1px solid var(--month-surface-accent);border-radius:12px;background:var(--month-surface-accent);color:#fff;font:inherit;font-size:11px;line-height:14px;font-weight:700;box-shadow:0 0 0 0 color-mix(in srgb,var(--month-surface-accent) 25%,transparent);animation:month-next-pulse 2.4s ease-in-out infinite}
.month-preview-next-period[hidden],.month-preview-period-status[hidden]{display:none}
.month-preview-period-status{margin:-6px 0 12px;color:var(--muted);font-size:11px;line-height:16px}
@keyframes month-next-pulse{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--month-surface-accent) 10%,transparent)}}
@media(prefers-reduced-motion:reduce){.month-preview-next-period{animation:none}}
.month-preview-popover{position:absolute;top:calc(100% + 6px);left:0;width:min(380px,calc(100vw - 48px));max-height:calc(100dvh - 200px);overflow-y:auto;padding:16px;border:1px solid color-mix(in srgb,var(--month-surface-accent) 55%,var(--outline));border-radius:20px;background:var(--surface);box-shadow:0 16px 40px #0003}
.month-preview-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.month-preview-popover-heading h2{margin:0;font-size:17px;line-height:24px}
.month-preview-popover-heading button{width:36px;height:36px;padding:0;border:0;background:none;color:var(--muted);font-size:27px;line-height:1}
.month-preview-period-calendar{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:5px 7px;border:1px solid var(--month-surface-accent);border-radius:11px;background:var(--surface);color:var(--month-accent);font-size:11px;line-height:16px;font-weight:700;white-space:nowrap}
.month-preview-period-calendar[hidden]{display:none}
.month-preview-period-calendar .material-icon{width:15px;height:15px}
.month-preview-period-calendar:focus-visible{outline:2px solid var(--month-accent);outline-offset:2px}
.month-preview-popover-actions{display:flex;align-items:center;gap:2px}
.month-preview-popover-actions #month-preview-period-info{color:var(--month-accent);display:grid;place-items:center}
.month-preview-popover-actions .material-icon{width:17px;height:17px}
.month-preview-popover p{margin:4px 0 10px;color:var(--muted);font-size:12px;line-height:17px}
.month-preview-budget-selector{margin:8px 0 10px}
.month-preview-date-navigation{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.month-preview-date-navigation .month-preview-date-label{flex:1;min-width:0;margin:0;color:var(--muted);font-size:11px;line-height:16px;font-weight:700}
.month-preview-date-navigation>div{display:flex;gap:5px}
.month-preview-date-navigation button{width:30px;height:28px;padding:0;border:1px solid var(--outline);border-radius:9px;background:var(--surface-variant);color:var(--text);font-size:20px;line-height:1}
.month-preview-calendar-year,.month-preview-calendar-month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.month-preview-calendar-year strong{font-size:18px}
.month-preview-calendar-month strong{font-size:15px;text-transform:capitalize}
.month-preview-calendar-year button,.month-preview-calendar-month button{width:40px;height:40px;border:1px solid var(--outline);border-radius:11px;background:var(--surface-variant);color:var(--text);font-size:25px;line-height:1}
.month-preview-calendar-year button:disabled,.month-preview-calendar-month button:disabled{opacity:.35;cursor:default}
.month-preview-weekdays,.month-preview-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.month-preview-weekdays{margin-bottom:5px;color:var(--muted);font-size:10px;line-height:18px;font-weight:700}
.month-preview-calendar-grid button{min-width:0;height:36px;border:1px solid transparent;border-radius:10px;background:var(--surface-variant);color:var(--text);font-size:13px;font-weight:700}
.month-preview-calendar-grid button[data-today="true"]{border-color:var(--month-accent)}
.month-preview-calendar-grid button[data-period-start="true"]:not([aria-pressed="true"]){box-shadow:inset 0 0 0 2px var(--month-accent)}
.month-preview-calendar-grid button[aria-pressed="true"]{border-color:var(--month-surface-accent);background:var(--month-surface-accent);color:#fff}
.month-preview-popover .month-preview-selected-date{min-height:17px;margin:10px 0 0;color:var(--month-accent);font-weight:700}
.month-preview-popover .month-preview-selected-date[data-state="error"]{color:var(--red)}
@media(max-width:359px){.month-preview-period{gap:4px}.month-preview-period h1 button{font-size:14px;gap:3px}.month-preview-period h1 .material-icon,.month-preview-period h1 .month-preview-chevron{display:none}.month-preview-navigation{gap:2px}.month-preview-navigation button{width:29px}.month-preview-period-calendar{padding:4px 6px}.month-preview-period-calendar .material-icon{display:none}}
.savings-total.month-preview-budget{--savings-blue:var(--month-accent);--sheen-edge:#20124D24;display:block;margin:0;background:linear-gradient(135deg,color-mix(in srgb,var(--month-surface-accent) 10%,var(--surface)),var(--surface) 76%);border-color:color-mix(in srgb,var(--month-surface-accent) 30%,var(--outline));box-shadow:0 6px 22px color-mix(in srgb,var(--month-surface-accent) 12%,transparent)}
:root[data-theme="dark"] .month-preview-budget{--sheen-edge:#bfaacc33}
.month-preview-budget-main{display:flex;align-items:center;gap:16px}
.month-preview-budget h2{margin:0 0 7px;color:var(--month-accent);font-size:16px;line-height:24px}
.month-preview-budget strong{font-size:24px;line-height:32px}
.month-preview-carry{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:14px}
.month-preview-carry[hidden]{display:none}
.month-preview-budget .savings-total-ring{width:104px;height:104px}
.month-preview-budget .savings-total-ring span{font-size:17px;line-height:24px}
.month-preview-budget[data-state="negative"] .savings-ring-fill{stroke:var(--red)}
.month-preview-budget[data-state="negative"] .savings-total-ring{color:var(--red)}
.month-forecast{--forecast-status:#7C5CFF;margin-top:12px;padding:16px;border:1px solid var(--outline);border-radius:20px;background:var(--surface)}
.month-forecast[data-state="positive"]{--forecast-status:var(--green)}
.month-forecast[data-state="negative"]{--forecast-status:var(--red)}
.month-forecast-heading{display:flex;align-items:center;gap:8px;min-height:24px}
.month-forecast-heading>.material-icon{width:24px;height:24px;color:#7C5CFF}
.month-forecast-heading h2{flex:1;min-width:0;margin:0;font-size:16px;line-height:24px;font-weight:700}
.month-forecast-heading button{width:32px;height:32px;flex:none;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#7C5CFF}
.month-forecast-heading button .material-icon{width:20px;height:20px}
.month-forecast-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:130px;margin-top:14px;padding:22px 18px;border:1.5px solid color-mix(in srgb,var(--forecast-status) 96%,transparent);border-radius:18px;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--forecast-status) 17%,transparent) 0%,color-mix(in srgb,var(--forecast-status) 8%,transparent) 54%,color-mix(in srgb,var(--surface-variant) 28%,transparent) 100%);text-align:center}
.month-forecast-result p{margin:0;color:var(--muted)}
.month-forecast-result #month-forecast-eyebrow{font-size:14px;line-height:20px}
.month-forecast-result #month-forecast-value{color:var(--forecast-status);font-size:28px;line-height:36px;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.month-forecast-result #month-forecast-prompt{font-size:14px;line-height:21px}
.month-forecast-result #month-forecast-caption{font-size:12px;line-height:18px}
.month-forecast #month-forecast-setup{display:block;width:100%;min-height:40px;margin-top:14px;padding:8px 12px;border:1px solid #7C5CFF;border-radius:12px;background:var(--surface);color:#7C5CFF;font-size:13px;font-weight:700}
.panel-month-dialog{--category-accent:var(--month-surface-accent)}
.panel-month-dialog .planner-month-grid button[aria-pressed="true"]{border-color:var(--month-surface-accent);background:color-mix(in srgb,var(--month-surface-accent) 13%,var(--surface));color:var(--month-accent)}
.month-forecast-date-dialog{--category-accent:#7C5CFF}
.month-forecast-date-dialog .category-form{padding:20px}
.month-forecast-date-hint{margin:0;color:var(--muted);font-size:12px;line-height:18px}
.month-forecast-date-dialog .credit-date-year{display:flex;align-items:center;justify-content:space-between;margin:12px 0 8px}
.month-forecast-date-dialog .credit-date-year button{width:40px;height:40px;border:1px solid var(--outline);border-radius:11px;background:var(--surface-variant);color:var(--text);font-size:25px;line-height:1}
.month-forecast-date-dialog .credit-date-grid button:disabled{opacity:.35;cursor:default}
.month-forecast-date-dialog button:focus-visible{outline-color:#7C5CFF}
.month-preview-start-actions{display:flex;gap:8px;margin-top:12px}
.month-preview-start-actions button{flex:1;min-width:0;min-height:40px;border:1px solid var(--month-surface-accent);border-radius:12px;background:var(--month-surface-accent);color:#fff;font-size:12px;font-weight:700;opacity:1}
.month-preview-start-actions button+button{background:var(--surface);color:var(--month-accent)}
.month-preview-start-actions button:disabled{opacity:.4}
.month-preview-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:15px;padding-top:12px;border-top:1px solid var(--outline)}
.month-preview-comparison-row{--savings-blue:var(--month-group-color);min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:0 8px;text-align:center}
.month-preview-comparison-row:first-child{padding-left:0}
.month-preview-comparison-row+.month-preview-comparison-row{border-left:1px solid var(--outline)}
.month-preview-comparison-row:last-child{padding-right:0}
.month-preview-comparison-name{color:var(--month-group-color);font-size:11px;line-height:16px;font-weight:700}
.month-preview-comparison-actual{color:var(--month-group-color);font-size:clamp(10px,2.6vw,12px);line-height:20px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.month-preview-comparison .savings-progress-track{height:8px;margin-top:6px;border-radius:4px}
.month-preview-comparison .savings-progress-fill{border-radius:4px}
.month-preview-comparison-plan{margin-top:5px;padding-bottom:5px;border-bottom:1px solid var(--outline);color:var(--muted);font-size:10px;line-height:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.month-preview-comparison-percent{margin-top:4px;color:var(--month-group-color);font-size:11px;line-height:16px;font-weight:700}
.month-all-history{width:100%;min-height:52px;margin-top:12px;padding:0 14px;display:flex;align-items:center;gap:11px;border:1px solid var(--outline);border-radius:16px;background:var(--surface);color:var(--text);font-size:14px;font-weight:700;text-align:left}
.month-all-history .material-icon{width:19px;height:19px;color:var(--month-accent)}
.month-all-history .month-all-history-chevron{width:18px;height:18px;margin-left:auto;color:var(--muted)}
.month-preview-section{margin-top:12px;padding:16px;background:var(--surface);border:1px solid var(--outline);border-radius:20px}
.month-preview-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.month-preview-section h2{margin:0;color:var(--month-group-color);font-size:16px;line-height:24px}
.month-preview-section-info{width:40px;height:40px;margin:-8px -8px -8px 0;border:0;background:none;color:var(--month-group-color);display:grid;place-items:center;padding:0}
.month-preview-section-info .material-icon{width:18px;height:18px}
.month-section-info-dialog{width:min(360px,calc(100vw - 48px))}
.month-section-info-dialog h2{color:var(--category-accent);font-size:18px;line-height:24px}
.month-section-info-dialog p{margin:0;color:var(--text);font-size:14px;line-height:21px}
.month-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
.month-variant-tile{min-width:0;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding:0 2px;text-align:center}
.month-preview-grid button.month-variant-tile{width:100%;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.month-preview-grid button.month-variant-tile:focus-visible{outline:2px solid var(--month-group-color);outline-offset:2px;border-radius:12px}
.month-variant-tile strong{max-width:100%;font-size:12px;line-height:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.month-variant-tile span{max-width:100%;font-size:10px;line-height:13px;color:var(--muted);white-space:nowrap}
.month-variant-tile small{max-width:100%;font-size:11px;line-height:15px;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.month-variant-donut{width:min(100%,106px);aspect-ratio:1;border-radius:50%;padding:7px;background:conic-gradient(from -90deg,var(--month-group-color) 0 var(--month-progress),var(--outline-strong) var(--month-progress) 100%)}
.month-variant-donut>div{height:100%;border-radius:50%;background:var(--surface-variant);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.month-variant-tile[data-plan-overrun="low"] .month-variant-donut>div{background:radial-gradient(ellipse at center,color-mix(in srgb,var(--month-group-color) 17%,var(--surface-variant)) 0%,color-mix(in srgb,var(--month-group-color) 8%,var(--surface-variant)) 54%,var(--surface-variant) 100%)}
.month-variant-tile[data-plan-overrun="high"] .month-variant-donut>div{background:color-mix(in srgb,var(--month-group-color) 32%,var(--surface-variant))}
.month-variant-tile[data-plan-overrun="high"] .month-variant-donut span{color:var(--text)}
.month-variant-donut img,.month-variant-donut .category-icon-mask{width:20px;height:20px}
.month-variant-divider{display:block;width:64%;height:1px;margin:2px 0;background:var(--outline-strong)}
.month-transactions-dialog{--category-accent:var(--month-accent)}
.month-transactions-dialog h2{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}
.month-transactions-dialog h2 img,.month-transactions-dialog h2 .category-icon-mask{width:26px;height:26px;flex:none;object-fit:contain}
.month-transactions-actions{display:flex;align-items:center;gap:4px;flex:none}
.month-transactions-search-toggle{width:36px;height:36px;border:0;background:none;color:var(--muted);display:grid;place-items:center;padding:0}
.month-transactions-search-toggle[aria-expanded="true"]{color:var(--category-accent)}
.month-transactions-search-icon{position:relative;display:block;width:17px;height:17px;border:2px solid currentColor;border-radius:50%;transform:translate(-2px,-2px)}
.month-transactions-search-icon::after{content:"";position:absolute;width:8px;height:2px;right:-6px;bottom:-3px;background:currentColor;border-radius:1px;transform:rotate(45deg)}
.month-transactions-period{margin:-4px 0 3px;color:var(--muted);font-size:12px;line-height:18px}
.month-transactions-search{width:100%;height:46px;min-height:46px;padding:0 13px;border:1px solid color-mix(in srgb,var(--category-accent) 45%,var(--outline));border-radius:13px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;outline:none}
.month-transactions-search[hidden]{display:none}
.month-transactions-search:focus{border:2px solid var(--category-accent);padding-left:12px}
.month-transactions-search::placeholder{color:var(--muted)}
.month-transactions-list{display:flex;flex-direction:column}
.month-transactions-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--outline)}
.month-transactions-details{display:flex;flex-direction:column;min-width:0;gap:2px}
.month-transactions-details time{font-size:14px;line-height:20px;font-weight:600}
.month-transactions-details small{color:var(--muted);font-size:12px;line-height:17px;overflow-wrap:anywhere}
.month-transactions-row strong{flex:none;color:var(--category-accent);font-size:15px;line-height:21px;font-variant-numeric:tabular-nums}
.month-transactions-aside{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}
.month-transactions-row-actions{display:flex;align-items:center;gap:2px}
.month-transactions-row-actions button{width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);display:grid;place-items:center;touch-action:manipulation}
.month-transactions-row-actions button .material-icon{width:18px;height:18px}
.month-transactions-row-actions button:focus-visible{outline:2px solid var(--category-accent);outline-offset:1px}
.month-transactions-row-actions button:hover{background:var(--surface-variant)}
.month-transactions-empty{margin:0;padding:16px 0;border-top:1px solid var(--outline);color:var(--muted);font-size:14px;line-height:20px}
.all-transactions-dialog{--month-accent:#20124D;--category-accent:var(--month-accent)}
:root[data-theme="dark"] .all-transactions-dialog{--month-accent:#BFAACC}
.all-transactions-dialog h2{font-size:18px;line-height:24px}
.all-transactions-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:1px 0 4px}
.all-transactions-filters button{min-width:0;min-height:38px;padding:0 5px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:700}
.all-transactions-filters button[aria-pressed="true"]{border-color:var(--month-accent);background:color-mix(in srgb,var(--month-accent) 10%,var(--surface));color:var(--month-accent)}
.all-transactions-entry{display:flex;align-items:center;gap:10px;min-width:0}
.all-transactions-entry img,.all-transactions-entry .category-icon-mask{width:24px;height:24px;object-fit:contain}
.all-transactions-row .month-transactions-details b{font-size:14px;line-height:20px}
.all-transactions-row .month-transactions-details time{color:var(--muted);font-size:11px;line-height:16px;font-weight:400}
.dashboard-page{--dashboard-unallocated:#BFC8D0;padding:18px 16px 30px;color:var(--text)}
:root[data-theme="dark"] .dashboard-page{--dashboard-unallocated:#53616C}
.dashboard-range-trigger{min-height:42px;display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:7px 12px;border:1px solid var(--outline);border-radius:13px;background:var(--surface);color:var(--text);font-size:14px;font-weight:700}
.dashboard-range-trigger .material-icon{width:17px;height:17px;color:#F59E0B}
.dashboard-range-trigger span:last-child{color:var(--muted);font-size:18px}
.dashboard-feature{min-height:300px;padding:18px 15px 12px;border:1px solid color-mix(in srgb,#F59E0B 28%,var(--outline));border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,#F59E0B 7%,var(--surface)),var(--surface) 75%);box-shadow:0 6px 22px #F59E0B12}
.dashboard-feature-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dashboard-feature-heading h1{margin:0;color:var(--text);font-size:16px;line-height:23px}
.dashboard-feature-heading>span{color:var(--muted);font-size:11px;font-weight:700}
.dashboard-chart-window{min-height:228px;touch-action:pan-y}
.dashboard-chart-navigation{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px}
.dashboard-chart-navigation>button{width:34px;height:34px;padding:0;border:0;background:none;color:#B87909;font-size:28px;line-height:1}
.dashboard-chart-dots{display:flex;align-items:center;gap:7px}
.dashboard-chart-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:var(--outline-strong)}
.dashboard-chart-dots button[aria-pressed="true"]{width:19px;border-radius:6px;background:#F59E0B}
.dashboard-empty{margin:32px 0;text-align:center;color:var(--muted);font-size:13px}
.dashboard-line-plot{width:100%;height:188px;display:block;margin:10px auto 0;overflow:visible}
.dashboard-chart-grid-line{stroke:var(--outline);stroke-width:1}
.dashboard-chart-axis-label{fill:var(--muted);font-size:9px;font-family:inherit}
.dashboard-plan-plot{height:226px;margin-top:8px}
.dashboard-zero-line{stroke:var(--outline-strong);stroke-width:1.5}
.dashboard-plan-plot [role="button"]{cursor:pointer}
.dashboard-plan-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:4px}
.dashboard-plan-legend span{min-width:0;display:flex;align-items:center;gap:4px;color:var(--text);font-size:10px;white-space:nowrap}
.dashboard-plan-legend span::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--series-color)}
.dashboard-plan-detail{min-height:29px;margin:7px 0 0;color:var(--muted);font-size:11px;line-height:15px;text-align:center}
.dashboard-allocation-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.dashboard-allocation-plot{display:block;height:205px;max-width:none}
.dashboard-allocation-plot [role="button"]{cursor:pointer}
.dashboard-allocation-segment{stroke:var(--surface);stroke-width:1}
.dashboard-allocation-shortfall{fill:var(--red);font-family:inherit;font-size:14px;font-weight:700}
.dashboard-allocation-detail{min-height:29px;margin:7px 0 0;color:var(--muted);font-size:11px;line-height:15px;text-align:center}
.dashboard-allocation-detail[data-active="true"]{padding:10px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-variant);text-align:left}
.dashboard-allocation-detail-heading{display:block;margin-bottom:8px;color:var(--text);font-size:12px}
.dashboard-allocation-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.dashboard-allocation-breakdown-item{min-width:0;display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-left:3px solid var(--allocation-color);border-radius:7px;background:var(--surface)}
.dashboard-allocation-breakdown-item span{color:var(--muted);font-size:10px}
.dashboard-allocation-breakdown-item strong{color:var(--text);font-size:13px;font-variant-numeric:tabular-nums}
.dashboard-allocation-balance{margin:8px 0 0;color:var(--muted);font-size:11px;font-weight:700;text-align:center}
.dashboard-allocation-balance[data-state="shortfall"]{color:var(--red)}
.dashboard-allocation-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}
.dashboard-allocation-legend span{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text)}
.dashboard-allocation-legend span::before{content:"";width:9px;height:9px;flex:none;border-radius:3px;background:var(--series-color)}
.dashboard-allocation-legend .dashboard-allocation-warning{grid-column:1/-1}
.dashboard-allocation-legend .dashboard-allocation-warning::before{content:"!";height:auto;border-radius:0;background:none;color:var(--red);font-size:14px;font-weight:700;line-height:1;text-align:center}
.dashboard-comparison-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}
.dashboard-comparison-groups button{min-height:34px;border:1px solid color-mix(in srgb,var(--series-color) 45%,var(--outline));border-radius:9px;background:var(--surface);color:var(--series-color);font-size:11px;font-weight:700}
.dashboard-comparison-groups button[aria-pressed="true"]{border-width:2px;background:color-mix(in srgb,var(--series-color) 12%,var(--surface))}
.dashboard-comparison-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.dashboard-comparison-plot{display:block;height:226px;max-width:none;margin-top:8px}
.dashboard-comparison-plot [role="button"]{cursor:pointer}
.dashboard-comparison-legend{display:flex;justify-content:center;gap:18px;margin-top:4px;color:var(--text);font-size:11px}
.dashboard-comparison-legend span{display:flex;align-items:center;gap:6px}
.dashboard-comparison-legend span::before{content:"";width:12px;height:12px;border:1px solid var(--series-color);background:var(--series-color)}
.dashboard-comparison-legend span:nth-child(2)::before{border-style:dashed;background:color-mix(in srgb,var(--series-color) 23%,var(--surface))}
.dashboard-chart-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:5px}
.dashboard-chart-metrics-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-metric{min-width:0;display:flex;flex-direction:column;gap:3px;padding:8px 7px;border:1px solid color-mix(in srgb,var(--metric-color) 30%,var(--outline));border-radius:11px;background:color-mix(in srgb,var(--metric-color) 5%,var(--surface))}
.dashboard-metric span{color:var(--muted);font-size:10px;line-height:13px}
.dashboard-metric strong{color:var(--metric-color);font-size:clamp(10px,3vw,14px);line-height:18px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.dashboard-open-caption{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:14px;text-align:center}
.dashboard-expense{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:10px}
.dashboard-expense-ring{position:relative;width:min(232px,68vw);height:min(232px,68vw)}
.dashboard-expense-ring svg{display:block;width:100%;height:100%}
.dashboard-expense-center{position:absolute;inset:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}
.dashboard-expense-center span{color:var(--muted);font-size:12px}
.dashboard-expense-center strong{max-width:100%;font-size:clamp(15px,4.2vw,20px);line-height:24px;overflow-wrap:anywhere}
.dashboard-expense-arc{cursor:pointer;outline:none}
.dashboard-expense-arc:focus-visible{filter:drop-shadow(0 0 5px currentColor)}
.dashboard-expense-legend{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.dashboard-expense-legend button{display:flex;align-items:center;gap:4px;min-width:0;min-height:32px;padding:3px 1px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left;font-size:11px}
.dashboard-expense-legend i{width:8px;height:8px;flex:none;border-radius:50%}
.dashboard-expense-legend span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-expense-legend strong{margin-left:4px;font-size:13px}
.dashboard-battle,.dashboard-analysis{margin-top:16px;padding:16px;border:1px solid var(--outline);border-radius:20px;background:var(--surface)}
.dashboard-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
.dashboard-section-heading h2{margin:0;font-size:16px;line-height:22px}
.dashboard-section-heading span{color:var(--muted);font-size:11px}
.dashboard-battle-selectors{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center;gap:5px}
.dashboard-battle-selectors button{min-width:0;min-height:42px;padding:6px;border:1px solid #F59E0B;border-radius:11px;background:color-mix(in srgb,#F59E0B 8%,var(--surface));color:var(--text);font-size:12px;font-weight:700}
.dashboard-battle-selectors>span{color:var(--muted);text-align:center;font-size:11px;font-weight:700}
.dashboard-battle-category-trigger,.dashboard-picker-all{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:8px 11px;border:1px solid #F59E0B;border-radius:11px;background:color-mix(in srgb,#F59E0B 7%,var(--surface));color:var(--text);text-align:left;font-size:12px;font-weight:700}
.dashboard-battle-category-trigger{margin-top:10px}
.dashboard-battle-category-trigger span:last-child{color:#B87909;font-size:22px;line-height:16px}
.dashboard-battle-axes{margin-top:14px}
.dashboard-battle-row{margin:10px 0}
.dashboard-battle-row-title{display:block;margin-bottom:4px;color:var(--battle-color);font-size:12px;font-weight:700;text-align:center}
.dashboard-battle-delta{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:14px;text-align:center}
.dashboard-battle-values{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dashboard-battle-half{min-width:0;display:flex;flex-direction:column;gap:4px}
.dashboard-battle-half strong{font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-battle-left-half strong{text-align:right}
.dashboard-battle-track{height:8px;overflow:hidden;border-radius:6px;background:var(--surface-variant)}
.dashboard-battle-track i{display:block;height:100%;border-radius:6px;background:var(--battle-color)}
.dashboard-battle-left-half .dashboard-battle-track i{margin-left:auto}
.dashboard-battle-result{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;margin-top:16px;padding-top:11px;border-top:1px solid var(--outline);text-align:center}
.dashboard-battle-result span{grid-column:1/-1;color:var(--muted);font-size:11px}
.dashboard-battle-result strong{font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-battle-result strong[data-state="negative"]{color:var(--red)}
.dashboard-battle-result strong[data-state="balanced"]{color:var(--green)}
.dashboard-battle-result>div{display:flex;flex-direction:column;gap:2px}
.dashboard-battle-result small{color:var(--muted);font-size:10px}
.dashboard-battle-note,.dashboard-battle-current{margin:9px 0 0;color:var(--muted);font-size:11px;line-height:15px}
.dashboard-spotlight{width:100%;display:flex;align-items:center;gap:10px;min-height:68px;padding:9px;border:1px solid color-mix(in srgb,#F59E0B 50%,var(--outline));border-radius:13px;background:color-mix(in srgb,#F59E0B 4%,var(--surface-variant));color:var(--text);text-align:left}
.dashboard-spotlight>.category-icon-mask,.dashboard-spotlight>img{width:30px;height:30px;flex:none}
.dashboard-spotlight>span:nth-child(2){min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}
.dashboard-spotlight small{color:var(--muted);font-size:10px}
.dashboard-spotlight strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-spotlight span span{color:var(--muted);font-size:11px}
.dashboard-spotlight strong{color:var(--text)}
.dashboard-spotlight-chevron{width:18px;flex:none;color:var(--muted);font-size:27px;line-height:1;text-align:center}
.dashboard-picker-group{margin-top:16px}
.dashboard-picker-group h3{margin:0 0 8px;color:var(--planner-color);font-size:14px}
.dashboard-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.dashboard-picker-grid .planner-tile{min-height:89px}
.dashboard-category-chart{margin:8px 0 14px}
.dashboard-category-insights{display:grid;gap:8px}
.dashboard-insight{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-variant)}
.dashboard-insight span,.dashboard-insight small{color:var(--muted);font-size:11px;line-height:15px}
.dashboard-insight strong{font-size:16px;color:var(--category-accent)}
.dashboard-insight-total{border-color:color-mix(in srgb,var(--category-accent) 38%,var(--outline));background:color-mix(in srgb,var(--category-accent) 6%,var(--surface))}
.dashboard-insight-total strong{font-size:20px;line-height:25px}
.dashboard-range-dialog .category-form{max-height:min(80dvh,700px);overflow:auto}
.dashboard-range-presets{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.dashboard-range-presets button{min-height:39px;padding:7px 10px;border:1px solid #F59E0B;border-radius:11px;background:var(--surface);color:#B87909;font-size:12px;font-weight:700}
.dashboard-range-fields{display:flex;gap:8px;margin:10px 0}
.dashboard-range-fields button{min-width:0;flex:1;min-height:42px;padding:5px;border:1px solid var(--outline);border-radius:10px;background:var(--surface-variant);color:var(--text);font-size:12px}
.dashboard-calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:3px;margin:12px 0 7px}
.dashboard-calendar-navigation button{width:34px;height:34px;padding:0;border:1px solid var(--outline);border-radius:9px;background:var(--surface-variant);color:var(--text);font-size:21px}
.dashboard-calendar-navigation strong{min-width:0;text-align:center;font-size:13px;text-transform:capitalize}
.dashboard-calendar .month-preview-calendar-grid button[aria-pressed="true"]{background:#F59E0B;border-color:#F59E0B;color:#fff}
.dashboard-range-error{color:var(--red);font-size:12px}
.dashboard-range-apply{width:100%;min-height:42px;margin-top:12px;border:0;border-radius:11px;background:#F59E0B;color:#fff;font-weight:700}
.dashboard-category-details{margin-top:14px}
.category-dialog.dashboard-category-picker{--category-accent:#F59E0B}
.dashboard-category-picker .category-form{max-height:min(80dvh,700px);overflow:auto}
.dashboard-battle-dialog .planner-month-grid button[aria-pressed="true"]{border-color:#F59E0B;background:color-mix(in srgb,#F59E0B 14%,var(--surface))}
.planner-amount-dialog .savings-goal-dialog-name .category-icon-frame{margin-right:0}
.category-form .planner-installment-toggle{display:flex;align-items:center;gap:10px;padding:2px 0;color:var(--text);font-size:14px;line-height:20px}
.category-form .planner-installment-toggle input[type="checkbox"]{appearance:auto;accent-color:#7C5CFF;width:20px;height:20px;min-height:20px;padding:0;flex:none}
.planner-installment-toggle #planner-installment-value{margin-left:auto;color:var(--muted);font-weight:600;white-space:nowrap}
.planner-installment-toggle #planner-card-debt-value{margin-left:auto;color:var(--muted);font-weight:600;white-space:nowrap}
.planner-card-feedback{font-size:12px;line-height:17px;color:var(--muted)}
.planner-card-feedback[data-state="exceeded"]{color:var(--red)}
.planner-overpayment-summary{font-size:14px;line-height:20px;margin:0}
.planner-overpayment-options{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.planner-overpayment-options legend{font-size:14px;line-height:20px;font-weight:700;margin-bottom:8px}
.category-form .planner-overpayment-option{position:relative;display:block;padding:12px;border:1px solid var(--outline);border-radius:14px;background:var(--surface-variant)}
.category-form .planner-overpayment-option:has(input:checked){padding:11px;border:2px solid #7C5CFF;background:color-mix(in srgb,#7C5CFF 9%,var(--surface))}
.category-form .planner-overpayment-option:focus-within:not(:has(input:checked)){outline:2px solid #7C5CFF;outline-offset:2px}
.category-form .planner-overpayment-option input[type="radio"]{position:absolute;width:1px;height:1px;min-height:1px;padding:0;opacity:0}
.planner-overpayment-option span{display:flex;flex-direction:column;gap:2px}
.planner-overpayment-option strong{font-size:14px;line-height:20px}
.planner-overpayment-option small{font-size:12px;line-height:17px;color:var(--muted);font-weight:400}
.category-intro{padding-bottom:24px}
.category-intro h1{font-size:24px;line-height:32px;font-weight:700;margin:0 0 6px}
.category-intro p{font-size:14px;line-height:20px;color:var(--muted);margin:0}
.category-group{--category-color:var(--green);background:var(--surface);border:1px solid var(--outline);border-radius:20px;padding:18px;margin-bottom:16px}
.category-group[data-category-group="savings"]{--category-color:#31AFFE}
.category-group[data-category-group="expense"]{--category-color:var(--red)}
.category-group[data-category-group="credit"]{--category-color:#7C5CFF}
.category-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.category-group-heading h2{font-size:16px;line-height:24px;font-weight:700;color:var(--category-color);margin:0}
.category-heading-actions{display:flex;align-items:center;gap:6px;flex:none}
.category-count{font-size:12px;line-height:18px;color:var(--muted);white-space:nowrap}
.category-list{list-style:none;margin:0 0 16px;padding:0}
.category-empty{color:var(--muted);font-size:14px;line-height:20px;padding:12px 0 14px}
.category-item{display:flex;align-items:center;min-height:66px;gap:0}
.category-item:not(:last-child){border-bottom:.5px solid color-mix(in srgb,var(--outline) 65%,transparent)}
.category-icon-frame{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--category-color) 9%,transparent);flex:none;margin-right:12px}
.category-icon-frame img,.category-icon-frame .category-icon-mask{width:26px;height:26px;object-fit:contain}
.category-icon-mask{display:block;width:36px;height:36px;flex:none;background:var(--category-icon-color,var(--red));mask-image:var(--category-icon-url);mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-image:var(--category-icon-url);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}
.category-name{font-size:15px;line-height:22px;font-weight:600;min-width:0;flex:1;margin-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-item-action{border:0;background:none;color:var(--muted);width:48px;min-height:48px;padding:0;display:grid;place-items:center;flex:none}
.category-item-action .material-icon{width:18px;height:18px}
.category-add{height:52px;width:100%;border:1px solid color-mix(in srgb,var(--category-color) 50%,var(--outline));background:transparent;color:var(--category-color);border-radius:16px;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px}
.category-add span{font-size:25px;line-height:1;font-weight:400}
.category-dialog{--category-accent:var(--green);width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid color-mix(in srgb,var(--category-accent) 40%,var(--outline));border-radius:24px;background:var(--surface);color:var(--text);padding:0;box-shadow:0 18px 45px #0004}
.category-dialog::backdrop{background:#0009}
.category-form{padding:20px;display:flex;flex-direction:column;gap:12px}
.category-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px}
.category-dialog-heading h2,.category-delete-dialog h2{font-size:22px;line-height:28px;font-weight:700;margin:0}
.category-dialog-close{width:36px;height:36px;border:0;background:none;color:var(--muted);font-size:28px;line-height:1;padding:0}
.profile-data-dialog p{margin:0;color:var(--muted);font-size:14px;line-height:21px}
.profile-data-dialog p strong{color:var(--text)}
.profile-storage-heading-actions{display:flex;align-items:center;gap:4px}
.profile-storage-info{width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:var(--green);padding:0}
.profile-storage-info .material-icon{width:20px;height:20px}
.profile-storage-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-storage-option{min-height:76px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;border:1px solid var(--outline);border-radius:14px;background:var(--surface-variant);color:var(--text);font:inherit;font-size:14px;line-height:19px;font-weight:700}
.profile-storage-option[aria-pressed="true"]{border:2px solid var(--green);padding:9px 11px;background:color-mix(in srgb,var(--green) 9%,var(--surface));color:var(--green)}
.profile-storage-option[aria-expanded="true"]:not([aria-pressed="true"]){border-color:color-mix(in srgb,var(--green) 55%,var(--outline))}
.profile-storage-option-check{visibility:hidden;font-size:18px;flex:none}
.profile-storage-option[aria-pressed="true"] .profile-storage-option-check{visibility:visible}
.profile-storage-option:focus-visible,.profile-storage-info:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.profile-data-action{min-height:48px;border:1px solid color-mix(in srgb,var(--green) 50%,var(--outline));border-radius:14px;background:transparent;color:var(--green);font:inherit;font-size:15px;font-weight:700}
.profile-data-action:disabled{border-color:var(--outline);color:var(--muted);opacity:.65}
.profile-access-current{display:flex;flex-direction:column;gap:3px;padding:13px 14px;border:1px solid var(--outline);border-radius:14px;background:var(--surface-variant)}
.profile-access-current>span{color:var(--muted);font-size:12px;line-height:17px}
.profile-access-current>strong{color:var(--green);font-size:16px;line-height:22px}
.profile-access-current>small{color:var(--muted);font-size:12px;line-height:18px}
.profile-sheet-access{display:flex;flex-direction:column;gap:8px;padding:13px 14px;border:1px solid var(--outline);border-radius:14px;background:var(--surface-variant)}
.profile-sheet-access[hidden]{display:none}
.profile-sheet-access>strong{font-size:14px;line-height:20px}
.profile-sheet-access-list{display:flex;flex-direction:column;gap:8px}
.profile-sheet-access-person{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.profile-sheet-access-person span{overflow-wrap:anywhere;font-size:13px}
.profile-sheet-access-person button{flex:none;border:1px solid var(--red);border-radius:10px;background:transparent;color:var(--red);font:inherit;font-size:12px;font-weight:700;min-height:36px;padding:5px 9px}
.profile-sheet-access .profile-data-action{min-height:40px;padding:6px 10px;font-size:13px}
.profile-invite-steps{display:flex;flex-direction:column;gap:12px}
.profile-invite-steps[hidden]{display:none}
.profile-invite-form{display:flex;flex-direction:column;gap:8px;padding:13px 14px;border:1px solid var(--outline);border-radius:14px;background:var(--surface-variant)}
.profile-invite-form label{font-size:14px;line-height:20px;font-weight:700}
.profile-invite-form input{background:var(--surface)}
.profile-invite-form p{font-size:12px;line-height:18px}
.profile-invite-form .profile-data-action{margin-top:4px;padding:8px 12px}
.profile-invite-form #profile-invite-status[data-state="success"]{color:var(--green)}
.profile-invite-form #profile-invite-status[data-state="error"]{color:var(--red)}
.profile-access-steps{counter-reset:step;list-style:none;display:flex;flex-direction:column;gap:12px;margin:2px 0;padding:0}
.profile-access-steps li{counter-increment:step;display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:10px;row-gap:1px}
.profile-access-steps li::before{content:counter(step);grid-row:span 2;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--green);font-size:12px;font-weight:700}
.profile-access-steps strong{font-size:14px;line-height:21px}
.profile-access-steps span{color:var(--muted);font-size:13px;line-height:19px}
.profile-access-action{display:flex;align-items:center;justify-content:center;padding:8px 12px;text-align:center;text-decoration:none}
.profile-access-action[hidden]{display:none}
.profile-data-dialog .profile-access-note{padding:12px;border-radius:12px;background:color-mix(in srgb,var(--green) 7%,var(--surface-variant));font-size:12px;line-height:18px}
.profile-device-list{border:1px solid var(--outline);border-radius:14px;overflow:hidden;background:var(--surface-variant)}
.profile-device-item{min-height:64px;display:flex;align-items:center;padding:12px 14px}
.profile-device-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.profile-device-text strong{font-size:15px;line-height:21px}
.profile-device-text small{color:var(--muted);font-size:12px;line-height:17px}
.profile-data-dialog .profile-device-limit{font-size:12px;line-height:18px}
.profile-sync-actions{display:flex;flex-direction:column;gap:10px}
.profile-sync-actions[hidden]{display:none}
.profile-sync-actions .profile-data-action[hidden]{display:none}
.profile-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.profile-confirm-actions button{min-height:44px;padding:0 14px;border:1px solid var(--outline);border-radius:12px;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:700}
.profile-confirm-actions button:last-child{border-color:var(--red);color:var(--red)}
.category-form label,.category-icon-heading{font-size:14px;line-height:20px;font-weight:700}
.category-form input{height:56px;min-height:56px;width:100%;border:1px solid color-mix(in srgb,var(--category-accent) 45%,var(--outline));border-radius:14px;background:var(--surface);color:var(--text);font:inherit;font-size:16px;padding:0 16px;outline:none}
.category-form input:focus{border:2px solid var(--category-accent);padding-left:15px}
.category-form input::placeholder{color:var(--muted)}
.category-monthly-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 0}
.category-monthly-row[hidden]{display:none}
.category-form .category-monthly-row label{display:flex;align-items:center;gap:10px;min-height:40px;font-size:14px;line-height:20px;font-weight:600}
.category-form .category-monthly-row input[type="checkbox"]{appearance:auto;accent-color:var(--category-accent);width:20px;height:20px;min-height:20px;padding:0;flex:none}
.category-form .category-monthly-row input[type="checkbox"]:focus-visible{outline:2px solid var(--category-accent);outline-offset:2px}
.category-monthly-row button{width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--category-accent);display:grid;place-items:center;flex:none}
.category-monthly-row button .material-icon{width:18px;height:18px}
.category-monthly-row button:focus-visible{outline:2px solid var(--category-accent);outline-offset:1px;border-radius:10px}
.category-monthly-info-dialog{--category-accent:var(--red)}
.category-monthly-info-dialog p{margin:0;color:var(--muted);font-size:14px;line-height:21px}
.category-icon-heading{margin-top:6px}
.category-icon-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.category-icon-choice{height:62px;border:1px solid var(--outline);border-radius:14px;background:var(--surface);display:grid;place-items:center;padding:8px}
.category-icon-choice[aria-pressed="true"]{border:2px solid var(--category-accent);background:color-mix(in srgb,var(--category-accent) 9%,var(--surface))}
.category-icon-choice img{width:40px;height:40px;object-fit:contain}
.category-icon-choice .category-icon-mask{width:40px;height:40px}
.premium-icons-unlock{position:relative;display:flex;align-items:center;width:100%;min-height:64px;overflow:hidden;padding:8px 14px 8px 62px;border:1px solid #D7AF59;border-radius:16px;background:linear-gradient(110deg,#FFF5D8,#F8E3AA 65%,#FFEFC7);color:#603F0B;text-align:left;font:inherit;box-shadow:inset 0 1px #fff8,0 3px 10px #A57B251a;touch-action:pan-y}
.premium-icons-unlock::before{content:"";position:absolute;top:-45%;bottom:-45%;left:-35%;width:28%;background:linear-gradient(90deg,transparent,#fff9 50%,transparent);transform:skewX(-23deg);opacity:0;pointer-events:none;animation:premium-sunbeam 12s linear -9.6s infinite}
.premium-icons-unlock::after{content:"";position:absolute;top:3px;right:36px;width:16px;height:16px;background:#fff9d2;clip-path:polygon(50% 0,59% 38%,100% 50%,59% 62%,50% 100%,41% 62%,0 50%,41% 38%);filter:drop-shadow(0 0 4px #fff);opacity:0;pointer-events:none;animation:premium-sparkle 12s linear -9.6s infinite}
.premium-icons-unlock-label,.premium-icons-unlock-arrow{position:relative;z-index:1}
.premium-icons-lock{z-index:2}
@keyframes premium-sunbeam{0%,79%{transform:translateX(0) skewX(-23deg);opacity:0}81%{opacity:.5}87%{transform:translateX(560%) skewX(-23deg);opacity:.58}90%,100%{transform:translateX(560%) skewX(-23deg);opacity:0}}
@keyframes premium-sparkle{0%,80%,88%,100%{transform:scale(.4) rotate(-20deg);opacity:0}83%{transform:scale(1) rotate(0);opacity:.9}86%{transform:scale(.8) rotate(12deg);opacity:.45}}
.premium-icons-unlock[hidden]{display:none}
.premium-icons-unlock:focus-visible{outline:2px solid #B98415;outline-offset:2px}
.premium-icons-lock{position:absolute;top:8px;left:8px;width:46px;height:46px;border:1px solid #D7A53B;border-radius:12px;background:linear-gradient(145deg,#FFE9A1,#E5AD3E);box-shadow:0 2px 5px #80581730;display:grid;place-items:center;transform:translateX(var(--premium-lock-offset,0px));transition:transform .28s ease}
.premium-icons-unlock.is-dragging .premium-icons-lock{transition:none}
.premium-icons-lock-shackle{position:absolute;top:8px;left:50%;width:17px;height:16px;border:3px solid #67440B;border-bottom:0;border-radius:10px 10px 0 0;transform:translateX(-50%)}
.premium-icons-lock-body{position:absolute;top:20px;left:50%;width:23px;height:17px;border-radius:4px;background:#67440B;transform:translateX(-50%)}
.premium-icons-unlock-label{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px;line-height:18px;font-weight:800}
.premium-icons-unlock-label small{font-size:12px;font-weight:600;opacity:.8}
.premium-icons-unlock-arrow{margin-left:auto;padding-left:8px;font-size:25px;line-height:1}
:root[data-theme="dark"] .premium-icons-unlock{border-color:#B4852A;background:linear-gradient(110deg,#493817,#73521F 65%,#57401B);color:#FFE7AE;box-shadow:inset 0 1px #fff2}
:root[data-theme="dark"] .premium-icons-lock{border-color:#D6A243;background:linear-gradient(145deg,#F5CE73,#C58829);box-shadow:0 2px 6px #0005}
.premium-icons-dialog{--category-accent:#C59332;border-color:#C59332}
.premium-icons-dialog .category-form>p{margin:0;color:var(--text);font-size:14px;line-height:21px}
.premium-icons-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.premium-icons-summary span{padding:7px 9px;border:1px solid var(--outline);border-radius:10px;background:var(--surface-variant);font-size:12px;font-weight:800;text-align:center}
.premium-icons-summary span:nth-child(1){color:#00A67D}.premium-icons-summary span:nth-child(2){color:#168BD4}.premium-icons-summary span:nth-child(3){color:#7C5CFF}.premium-icons-summary span:nth-child(4){color:#FF3D4F}
.premium-icons-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:2px}
.premium-icons-preview.is-expanded{max-height:min(330px,45dvh);overflow-y:auto;scrollbar-width:thin}
.premium-icons-preview span{height:62px;display:grid;place-items:center;border:1px solid color-mix(in srgb,#C59332 32%,var(--outline));border-radius:14px;background:color-mix(in srgb,#C59332 7%,var(--surface))}
.premium-icons-preview img{width:42px;height:42px;object-fit:contain}
.premium-icons-more{align-self:center;min-height:36px;padding:3px 14px;border:0;background:transparent;color:#A36E13;font:inherit;font-size:13px;font-weight:800}
.premium-icons-more[hidden]{display:none}
.premium-icons-more:focus-visible{outline:2px solid #B98415;border-radius:8px}
.premium-icons-checkout{position:relative;min-height:48px;width:100%;overflow:hidden;border:1px solid #C58B22;border-radius:12px;background:linear-gradient(120deg,#FFE9AC,#F3C35D 48%,#D99D29);color:#49300A;font:inherit;font-size:15px;font-weight:800;box-shadow:inset 0 1px #fff9,0 2px 7px #986B2433;transition:transform .16s ease,box-shadow .16s ease}
.premium-icons-checkout-label{position:relative;z-index:1}
.premium-icons-checkout-sparkle{position:absolute;width:13px;height:13px;background:#FFFBE4;clip-path:polygon(50% 0,59% 40%,100% 50%,59% 60%,50% 100%,41% 60%,0 50%,41% 40%);filter:drop-shadow(0 0 4px #fff);opacity:0;pointer-events:none;animation:premium-checkout-sparkle 8s ease-in-out infinite}
.premium-icons-checkout-sparkle-one{top:9px;left:13%;animation-delay:-1s}
.premium-icons-checkout-sparkle-two{right:18%;bottom:6px;width:10px;height:10px;animation-delay:-3.7s}
.premium-icons-checkout-sparkle-three{top:5px;right:8%;width:8px;height:8px;animation-delay:-6.3s}
.premium-icons-checkout:active{transform:translateY(1px);box-shadow:inset 0 1px #fff9,0 1px 3px #986B2433}
@keyframes premium-checkout-sparkle{0%,8%,15%,100%{transform:scale(.35) rotate(-25deg);opacity:0}10%{transform:scale(1) rotate(0);opacity:1}12%{transform:scale(.75) rotate(15deg);opacity:.65}}
.premium-icons-checkout:focus-visible{outline:2px solid #B98415;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.premium-icons-lock,.premium-icons-checkout{transition:none}.premium-icons-unlock::before,.premium-icons-unlock::after,.premium-icons-checkout-sparkle{animation:none}}
.category-save{height:56px;min-height:56px;width:100%;border:0;border-radius:16px;background:var(--category-accent);color:#fff;font-size:16px;font-weight:700;margin-top:8px}
.category-save:disabled{opacity:.35;cursor:default}
.transaction-dialog{--category-accent:#20124D;position:fixed;left:0;right:0;top:max(16px,env(safe-area-inset-top));margin:0 auto}
.transaction-dialog:not([data-kind]){top:50%;transform:translateY(-50%)}
:root[data-theme="dark"] .transaction-dialog:not([data-kind]){--category-accent:#BFAACC}
.transaction-dialog button:focus-visible{outline-color:var(--category-accent)}
.transaction-dialog:focus{outline:none}
.transaction-type-fieldset,.transaction-source-fieldset{min-width:0;margin:0;padding:0;border:0}
.transaction-type-fieldset legend,.transaction-source-fieldset legend{margin-bottom:8px;font-size:14px;line-height:20px;font-weight:700}
.transaction-type-grid,.transaction-category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.transaction-type-grid button{--transaction-choice-color:#00CC99;height:52px;width:100%;padding:8px 10px;border:1px solid color-mix(in srgb,var(--transaction-choice-color) 50%,var(--outline));border-radius:16px;background:transparent;color:var(--transaction-choice-color);font-size:15px;font-weight:700}
.transaction-type-grid button[data-transaction-type="savings"]{--transaction-choice-color:#31AFFE}
.transaction-type-grid button[data-transaction-type="expense"]{--transaction-choice-color:#FF3D4F}
.transaction-type-grid button[data-transaction-type="credit"]{--transaction-choice-color:#7C5CFF}
.transaction-type-grid button[data-transaction-type="loan"]{--transaction-choice-color:#7C5CFF}
.transaction-dialog[data-editing="true"] .transaction-type-grid button[aria-pressed="true"]{border-width:2px;background:color-mix(in srgb,var(--transaction-choice-color) 9%,var(--surface))}
.transaction-type-grid button:last-child:nth-child(odd){grid-column:1/-1}
.transaction-type-grid button:focus-visible{outline:none;border-width:2px}
.transaction-fields{display:flex;flex-direction:column;gap:12px}
.transaction-plan-row{display:flex;align-items:center;gap:10px;color:var(--text);font-size:14px;line-height:20px}
.transaction-plan-row[hidden]{display:none}
.transaction-plan-row input[type="checkbox"]{appearance:auto;accent-color:var(--category-accent);width:20px;height:20px;min-height:20px;padding:0;flex:none}
#transaction-plan-value{margin-left:auto;color:var(--muted);font-weight:600;white-space:nowrap}
.transaction-amount-field{position:relative}
.transaction-amount-field input{padding-right:46px}
.transaction-amount-field span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--category-accent);font-size:15px;font-weight:700;pointer-events:none}
.transaction-credit-details{display:flex;flex-direction:column;gap:6px}
.transaction-credit-details[hidden]{display:none}
.transaction-credit-details>small{color:var(--muted);font-size:12px;line-height:18px}
.transaction-credit-interest-fields{display:block}
.transaction-credit-interest-fields[hidden]{display:none}
.transaction-credit-interest-fields summary{cursor:pointer;color:var(--category-accent);font-size:13px;font-weight:700}
.transaction-credit-interest-content{display:flex;flex-direction:column;gap:6px;padding-top:8px}
.transaction-credit-interest-content>small{color:var(--muted);font-size:12px;line-height:18px}
.transaction-overpayment{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin:8px 0 0;padding:0;border:0}
.transaction-overpayment[hidden]{display:none}
.transaction-overpayment legend{margin-bottom:7px;font-size:13px;font-weight:700}
.transaction-overpayment label{position:relative;display:inline-flex;align-items:center;min-height:36px;padding:7px 11px;border:1px solid var(--outline);border-radius:12px;color:var(--text);font-size:13px;font-weight:700;cursor:pointer}
.transaction-overpayment label:has(input:checked){border:2px solid var(--category-accent);padding:6px 10px;color:var(--category-accent)}
.transaction-overpayment input{position:absolute;width:100%;height:100%;inset:0;margin:0;opacity:0;cursor:pointer}
.transaction-overpayment label:has(input:focus-visible){outline:2px solid var(--category-accent);outline-offset:2px}
.transaction-category-choice{display:flex;align-items:center;gap:8px;min-width:0;min-height:58px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--category-accent) 34%,var(--outline));border-radius:14px;background:var(--surface);color:var(--text);text-align:left}
.transaction-category-choice[aria-pressed="true"]{border:2px solid var(--category-accent);padding:8px 9px;background:color-mix(in srgb,var(--category-accent) 7%,var(--surface))}
.transaction-category-choice .category-icon-mask,.transaction-category-choice img{width:24px;height:24px;object-fit:contain;flex:none}
.transaction-category-choice span:last-child{min-width:0;font-size:12px;line-height:16px;font-weight:600;overflow-wrap:anywhere}
.transaction-category-choice[aria-pressed="true"] span:last-child{font-weight:700}
.transaction-dialog[data-kind="expense"] .transaction-category-picker{display:flex;flex-wrap:wrap}
.transaction-dialog[data-kind="expense"] .transaction-category-choice{flex:0 1 auto;width:max-content;max-width:100%}
.transaction-category-group-title{grid-column:1/-1;margin:5px 0 0;color:var(--muted);font-size:12px;line-height:18px;font-weight:700}
.transaction-dialog[data-kind="expense"] .transaction-category-group-title{flex:0 0 100%}
.transaction-category-group-title:first-child{margin-top:0}
.transaction-source-picker{display:flex;flex-direction:column;gap:8px}
.transaction-source-row{display:flex;align-items:stretch;gap:7px;min-width:0}
.transaction-source-choice{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:46px;padding:9px 12px;border:1px solid var(--outline);border-radius:13px;background:var(--surface);color:var(--text);text-align:left;font-size:13px;font-weight:600}
.transaction-source-choice[aria-checked="true"]{border:2px solid var(--category-accent);padding:8px 11px;background:color-mix(in srgb,var(--category-accent) 7%,var(--surface))}
.transaction-source-choice:disabled{opacity:.55;cursor:default}
.transaction-source-choice img,.transaction-source-choice .category-icon-mask{width:23px;height:23px;object-fit:contain}
.transaction-source-choice .transaction-source-dot{width:16px;height:16px;flex:none;border:2px solid var(--outline-strong);border-radius:50%}
.transaction-source-choice[aria-checked="true"] .transaction-source-dot{border-color:var(--category-accent);background:var(--category-accent);box-shadow:inset 0 0 0 3px var(--surface)}
.transaction-source-copy{display:flex;flex-direction:column;min-width:0;line-height:17px}
.transaction-source-label{overflow-wrap:anywhere}
.transaction-source-available{color:var(--muted);font-size:11px;line-height:15px;font-weight:500}
.transaction-source-visibility{flex:none;width:92px;min-height:46px;padding:6px 7px;border:1px solid var(--outline);border-radius:13px;background:var(--surface-variant);color:var(--muted);font-size:11px;line-height:15px;font-weight:600}
.transaction-source-more{align-self:stretch;min-height:42px;padding:8px 12px;border:1px solid var(--outline);border-radius:13px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:700}
.transaction-source-hidden-label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:46px;padding:9px 12px;border:1px solid var(--outline);border-radius:13px;color:var(--muted);font-size:13px;font-weight:600;overflow-wrap:anywhere}
.transaction-source-hidden-label img,.transaction-source-hidden-label .category-icon-mask{width:23px;height:23px;object-fit:contain;flex:none}
.transaction-dialog .credit-date-trigger{border-color:color-mix(in srgb,var(--category-accent) 45%,var(--outline));color:var(--text)}
.transaction-dialog .credit-date-trigger .material-icon{color:var(--category-accent)}
.category-form .transaction-start-period-row{display:flex;align-items:center;gap:10px;padding:2px 0;font-size:14px;line-height:20px;font-weight:600}
.category-form .transaction-start-period-row[hidden]{display:none}
.category-form .transaction-start-period-row input[type="checkbox"]{appearance:auto;accent-color:var(--category-accent);width:20px;height:20px;min-height:20px;padding:0;flex:none}
.transaction-period-target-row{display:flex;flex-direction:column;gap:6px}
.transaction-period-target-row[hidden]{display:none}
.transaction-period-target-row label{font-size:13px;line-height:18px;font-weight:700}
.transaction-period-target-row select{min-height:44px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--category-accent) 45%,var(--outline));border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:14px}
.transaction-period-note{margin-top:-10px;color:var(--muted);font-size:11px;line-height:16px}
.transaction-period-note[data-state="error"]{color:var(--red)}
.transaction-dialog textarea{width:100%;min-height:68px;resize:vertical;padding:12px 16px;border:1px solid color-mix(in srgb,var(--category-accent) 45%,var(--outline));border-radius:14px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;outline:none}
.transaction-dialog textarea:focus{border:2px solid var(--category-accent);padding:11px 15px}
.transaction-dialog textarea::placeholder{color:var(--muted)}
.transaction-optional{color:var(--muted);font-size:12px;font-weight:400}
.transaction-date-dialog{--category-accent:#20124D}
.transaction-date-dialog .credit-date-grid button[aria-pressed="true"]{border-color:var(--category-accent);background:var(--category-accent)}
.transaction-date-dialog .credit-date-grid button:focus-visible{outline-color:var(--category-accent)}
.transaction-empty{grid-column:1/-1;margin:0;padding:12px 0;color:var(--muted);font-size:13px;line-height:18px}
#transaction-hint[data-state="error"]{color:var(--red)}
.transaction-delete-error{color:var(--red)!important}
.category-delete-dialog{--category-accent:var(--red)}
.category-delete-dialog p{font-size:15px;line-height:22px;margin:0;color:var(--muted);overflow-wrap:anywhere}
.category-delete-actions{display:flex;gap:10px;margin-top:12px}
.category-delete-actions button{flex:1;height:48px;border-radius:14px;font-size:15px;font-weight:700}
#cancel-delete-category{border:1px solid var(--outline);background:var(--surface);color:var(--text)}
#confirm-delete-category{border:0;background:var(--red);color:#fff}
.savings-page{padding:24px 16px calc(32px + env(safe-area-inset-bottom));--savings-blue:#008CFF}
.savings-total,.savings-goal-card{background:var(--surface);border:1px solid var(--outline);border-radius:20px}
.savings-total{--sheen-center:#ffffffb8;--sheen-edge:#008cff16;position:relative;overflow:hidden;padding:16px;display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--savings-blue) 6%,var(--surface)),var(--surface) 70%);border-color:color-mix(in srgb,var(--savings-blue) 24%,var(--outline));box-shadow:0 6px 22px color-mix(in srgb,var(--savings-blue) 10%,transparent)}
:root[data-theme="dark"] .savings-total{--sheen-center:#ffffff38;--sheen-edge:#54b9ff30}
.savings-total::after{content:"";position:absolute;left:-35%;top:0;width:26%;height:100%;pointer-events:none;background:linear-gradient(90deg,transparent,var(--sheen-edge) 20%,var(--sheen-center) 50%,var(--sheen-edge) 80%,transparent);transform:translateX(0) skewX(-20deg);animation:savings-total-shine 8s ease-in-out infinite}
@keyframes savings-total-shine{0%,70%{transform:translateX(0) skewX(-20deg)}85%,100%{transform:translateX(650%) skewX(-20deg)}}
@media(prefers-reduced-motion:reduce){.savings-total::after{animation:none}}
.savings-total-ring{width:84px;height:84px;flex:none;position:relative;display:grid;place-items:center;color:var(--savings-blue)}
.savings-total-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.savings-total-ring circle{fill:none;stroke-width:7}
.savings-ring-track{stroke:var(--surface-variant)}
.savings-ring-fill{stroke:var(--savings-blue);stroke-linecap:round;transition:stroke-dashoffset 350ms ease}
.savings-total-ring span{position:relative;font-size:14px;line-height:20px;font-weight:700}
.savings-total-copy{min-width:0;flex:1}
.savings-total h1{font-size:16px;line-height:24px;font-weight:700;color:var(--savings-blue);margin:0 0 7px}
.savings-total strong{display:block;font-size:24px;line-height:32px;font-weight:700;font-variant-numeric:tabular-nums}
.savings-total p{font-size:11px;line-height:16px;letter-spacing:.5px;color:var(--muted);margin:5px 0 0}
.savings-total .savings-total-shortfall{display:flex;flex-direction:column;gap:1px;margin-top:9px;letter-spacing:0}
.savings-total-shortfall b{font-size:17px;line-height:24px;color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
#savings-goal-detail{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.savings-goal-card{padding:16px}
.savings-goal-card>h2{font-size:16px;line-height:24px;font-weight:700;margin:0}
.savings-goal-heading{display:flex;align-items:center;gap:10px;min-height:44px}
.savings-goal-heading .category-icon-frame{--category-color:#31AFFE;margin-right:0}
.savings-goal-heading h2{font-size:16px;line-height:23px;font-weight:700;margin:0;min-width:0;flex:1;overflow-wrap:anywhere}
.card-order-handle{display:none;width:40px;height:40px;flex:none;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:26px;line-height:1;touch-action:none;user-select:none;cursor:grab}
.card-ordering .card-order-handle{display:flex}
.card-order-handle:active{cursor:grabbing}
.card-is-dragging{opacity:.78;box-shadow:0 10px 24px color-mix(in srgb,var(--text) 13%,transparent);z-index:2;position:relative}
.card-ordering .credit-back-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.savings-goal-edit{width:44px;height:44px;border:0;background:none;color:var(--muted);display:grid;place-items:center;padding:0;flex:none}
.savings-goal-edit .material-icon{width:19px;height:19px}
.savings-goal-empty-text{font-size:14px;line-height:21px;color:var(--muted);margin:14px 0 18px}
.savings-goal-button{height:52px;width:100%;border:0;border-radius:16px;background:var(--savings-blue);color:#fff;font-size:15px;font-weight:700}
.savings-goal-button.savings-goal-setup{border:1px solid color-mix(in srgb,var(--savings-blue) 50%,var(--outline));background:transparent;color:var(--savings-blue)}
.savings-progress-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:14px}
.savings-progress-heading span{font-size:11px;line-height:16px;letter-spacing:.5px;color:var(--muted)}
.savings-progress-heading strong{font-size:16px;line-height:24px;color:var(--savings-blue);font-weight:700}
.savings-goal-amounts{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin-top:14px;font-variant-numeric:tabular-nums}
.savings-goal-amounts strong{font-size:20px;line-height:28px;color:var(--savings-blue);font-weight:700}
.savings-goal-amounts span{font-size:14px;line-height:20px;color:var(--muted)}
.savings-progress-track{height:12px;width:100%;position:relative;border-radius:6px;background:var(--surface-variant);overflow:hidden;margin-top:8px}
.savings-progress-fill{height:100%;border-radius:6px;background:var(--savings-blue);position:relative;overflow:hidden}
.savings-progress-fill::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transform:translateX(-100%);animation:savings-progress-sheen 2s linear infinite}
@keyframes savings-progress-sheen{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.savings-progress-fill::after{animation:none}}
.savings-goal-remaining{font-size:12px;line-height:16px;color:var(--muted);margin:8px 0 0}
.savings-goal-dialog{--category-accent:#008CFF}
.savings-goal-dialog-name{display:flex;align-items:center;gap:10px;font-size:16px;line-height:24px;font-weight:700;margin:0 0 4px;overflow-wrap:anywhere}
.savings-goal-dialog-name .category-icon-frame{--category-color:#31AFFE;margin-right:0}
.savings-field-hint{font-size:12px;line-height:16px;color:var(--muted);font-weight:400;margin-top:-8px}
.credit-page{--savings-blue:#7C5CFF}
.credit-total{--sheen-edge:#7c5cff16}
:root[data-theme="dark"] .credit-total{--sheen-edge:#a58fff30}
.credit-total .savings-total-ring{width:clamp(96px,28vw,112px);height:clamp(96px,28vw,112px)}
.credit-total .savings-total-ring span{font-size:18px;line-height:24px}
.credit-total .savings-total-ring[hidden]{display:none}
.credit-total .credit-total-row{display:flex;flex-direction:column;gap:1px;margin-top:9px;letter-spacing:0}
.credit-total .credit-total-row[hidden]{display:none}
.credit-total-row b{font-size:17px;line-height:24px;color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.credit-total .credit-total-paid{margin-top:7px}
.credit-total-paid b{font-size:14px;line-height:20px;color:var(--muted)}
.credit-card-total b{color:#7C5CFF}
.credit-total .credit-card-total{border-top:1px solid var(--outline);padding-top:9px;margin-top:11px}
#credit-detail{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.credit-flip-scene{perspective:1000px;touch-action:pan-y}
.credit-flip-inner{display:grid;position:relative;transform-style:preserve-3d;transition:transform .55s ease}
.credit-flip-scene.is-flipped .credit-flip-inner{transform:rotateY(180deg)}
.credit-flip-face{grid-area:1/1;min-width:0;display:flex;flex-direction:column;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.credit-flip-back{position:absolute;inset:0;transform:rotateY(180deg)}
.credit-flip-scene.is-flipped .credit-flip-front{position:absolute;inset:0}
.credit-flip-scene.is-flipped .credit-flip-back{position:relative;inset:auto}
.credit-flip-face[aria-hidden="true"]{pointer-events:none}
.credit-back-title{font-size:16px;line-height:24px;font-weight:700;margin:6px 0 0;overflow-wrap:anywhere}
.credit-flip-control{align-self:center;min-height:40px;margin-top:auto;padding:14px 8px 0;border:0;background:none;color:#7C5CFF;font:inherit;font-size:12px;line-height:18px;font-weight:700}
@media(prefers-reduced-motion:reduce){.credit-flip-inner{transition:none}}
.credit-page .savings-goal-heading .category-icon-frame{--category-color:#7C5CFF}
.credit-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;min-width:0;flex:1}
.credit-title-line h2{flex:0 1 auto}
.credit-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:13px;margin-top:14px;font-variant-numeric:tabular-nums}
.credit-amounts>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.credit-amounts small{font-size:11px;line-height:16px;color:var(--muted)}
.credit-forecast-amount small,.credit-remaining-amount small{min-height:32px}
.credit-amounts strong{font-size:clamp(16px,4.9vw,20px);line-height:28px;color:var(--savings-blue);font-weight:700;white-space:nowrap}
.credit-remaining-amount strong{color:var(--text)}
.credit-forecast-interest{font-size:10px;line-height:14px;color:var(--muted)}
.credit-original-amount strong,.credit-paid-amount strong{font-size:14px;line-height:20px;color:var(--muted);font-weight:700}
.credit-card-front .credit-amounts{margin-top:14px}
.credit-card-front .credit-amounts strong{white-space:normal;overflow-wrap:anywhere}
.credit-payday-front .credit-payday-date strong{font-size:16px}
.credit-incomplete{font-size:12px;line-height:17px;color:var(--muted);margin:14px 0 0}
.credit-balance-date{font-size:11px;line-height:16px;letter-spacing:.5px;color:var(--muted);margin:12px 0 0}
.credit-dialog{--category-accent:#7C5CFF}
.credit-dialog .savings-goal-dialog-name .category-icon-frame{--category-color:#7C5CFF}
.credit-date-trigger{height:56px;min-height:56px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border:1px solid color-mix(in srgb,#7C5CFF 45%,var(--outline));border-radius:14px;background:var(--surface);color:var(--text);text-align:left;font-size:16px}
.credit-date-trigger .material-icon{width:20px;height:20px;color:#7C5CFF}
.credit-date-trigger .credit-date-value.is-empty{color:var(--muted)}
.credit-date-trigger:focus-visible{outline:2px solid #7C5CFF;outline-offset:2px}
.credit-date-dialog{--category-accent:#7C5CFF;width:min(380px,calc(100vw - 48px))}
.credit-date-picker{padding:20px}
.credit-date-year{margin:12px 0 8px}
.credit-date-month{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.credit-date-month strong{font-size:16px;line-height:24px;text-transform:capitalize}
.credit-date-month button{width:44px;height:44px;border:1px solid var(--outline);border-radius:12px;background:var(--surface-variant);color:var(--text);font-size:26px;line-height:1}
.credit-date-weekdays,.credit-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.credit-date-weekdays{margin-bottom:6px;color:var(--muted);font-size:11px;line-height:20px;font-weight:700}
.credit-date-grid button{min-width:0;height:40px;border:1px solid transparent;border-radius:10px;background:var(--surface-variant);color:var(--text);font-size:14px;font-weight:700}
.credit-date-grid button[aria-pressed="true"]{border-color:#7C5CFF;background:#7C5CFF;color:#fff}
.credit-date-grid button:focus-visible{outline:2px solid #7C5CFF;outline-offset:1px}
.credit-form-fields{display:flex;flex-direction:column;gap:12px}
.credit-form-fields[hidden]{display:none}
.credit-contract-correction{border:1px solid var(--outline);border-radius:12px;padding:10px 12px}
.credit-contract-correction summary{color:#7C5CFF;font-size:13px;font-weight:700;cursor:pointer}
.credit-contract-correction[open] label{display:block;margin-top:12px}
.credit-contract-correction[open] small{display:block;margin-top:4px}
.credit-contract-correction[open] input{display:block;width:100%;margin-top:8px}
.credit-kind-fieldset{border:0;padding:0;margin:0;min-width:0}
.credit-kind-fieldset legend{font-size:14px;line-height:20px;font-weight:700;margin-bottom:8px}
.credit-kind-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.credit-kind-option{position:relative;display:flex;align-items:center;justify-content:center;min-height:38px;padding:6px 10px;border:1px solid var(--outline);border-radius:999px;background:var(--surface-variant);font-size:12px!important;line-height:16px!important;text-align:center}
.credit-kind-option:has(input:checked),.credit-kind-option:focus-within{border:2px solid #7C5CFF;padding:5px 9px;background:color-mix(in srgb,#7C5CFF 11%,var(--surface));color:#7C5CFF}
.credit-kind-option.is-future{opacity:.55;cursor:default}
.category-form .credit-kind-option input[type="radio"]{position:absolute;width:1px;height:1px;min-height:1px;padding:0;opacity:0}
.credit-kind-note,.credit-reminder-note{font-size:11px;line-height:16px;color:var(--muted);margin-top:-8px}
.category-form .credit-reminder-toggle{display:flex;align-items:center;gap:10px;padding:2px 0;font-size:14px;line-height:20px}
.category-form .credit-reminder-toggle input[type="checkbox"]{appearance:auto;accent-color:#7C5CFF;width:20px;height:20px;min-height:20px;padding:0;flex:none}
.credit-type-tag{display:inline-flex;align-items:center;flex:none;padding:4px 8px;border-radius:8px;background:color-mix(in srgb,#7C5CFF 12%,var(--surface));color:#7C5CFF;font-size:11px;line-height:16px;letter-spacing:.5px;font-weight:700;white-space:nowrap}
.credit-plan{margin-top:15px;padding-top:13px;border-top:1px solid var(--outline)}
.credit-plan-main{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.credit-plan-main span,.credit-plan-row span{font-size:12px;line-height:17px;color:var(--muted)}
.credit-plan-main strong{font-size:18px;line-height:26px;font-weight:700;font-variant-numeric:tabular-nums;color:#7C5CFF}
.credit-plan-row{display:flex;justify-content:space-between;gap:10px;margin-top:6px}
.credit-plan-row b{font-size:12px;line-height:17px;font-weight:700;text-align:right}
.credit-interest-estimate{margin-top:11px;padding:11px 12px;border-radius:12px;background:var(--surface-variant)}
.credit-interest-title{display:block;font-size:12px;line-height:17px;color:#7C5CFF;margin-bottom:5px}
.credit-interest-estimate .credit-plan-note{margin-top:9px}
.credit-plan-note{font-size:11px;line-height:16px;color:var(--muted);margin:8px 0 0}
.credit-plan-empty{border:0;background:none;color:#7C5CFF;font-size:12px;line-height:18px;font-weight:700;margin-top:14px;padding:0;text-align:left}
