:root{--accent:#356fa8;--brand:#244f7b;--ink:#263e58;--surface:#fff}
body,.theme-private,.theme-finance,.theme-admin{background:#f3f7fc;color:var(--ink);--accent:#356fa8}
.ht-header{display:block;background:#fff;color:var(--ink);padding:0;border-bottom:1px solid #dce6f2}
.ht-topbar,.ht-brand-row{max-width:1050px;margin:0 auto;padding:.65rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.ht-topbar{border-bottom:1px solid #edf3fa;min-height:56px}.ht-brand-row{padding-top:.7rem;padding-bottom:.7rem}
.ht-header .brand{color:#244f7b;font-size:20px;gap:.6rem}.ht-header .brand-icon{width:36px;height:36px;border-radius:9px}
.ht-topbar .language-picker{display:block;padding:0;margin:0;flex:none}.ht-topbar .language-picker select{font-size:14px;width:auto;min-height:38px;padding:.35rem 1.8rem .35rem .65rem;background:#f5f9fe;border:1px solid #cedeed;color:#365a80;border-radius:9px}
.ht-topbar .account-menu{position:relative;margin:0;min-width:0;font-size:14px}.account-menu>summary{padding:.35rem 0;min-height:38px;font-size:14px;color:#365a80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.account-popover{position:absolute;top:100%;left:0;z-index:60;min-width:235px;max-width:calc(100vw - 2rem);padding:.5rem;border:1px solid #d2e0ef;border-radius:12px;box-shadow:0 12px 32px #224c7614;background:#fff}
.account-popover>a{display:block;padding:.6rem .7rem;color:#365a80;text-decoration:none;border-radius:7px}.account-popover>a:hover{background:#eef5fd}.account-menu .account-popover form{display:block;margin:.35rem 0 0}.account-popover button{width:100%;text-align:left}
main{padding-top:1rem;padding-bottom:6rem}h1{font-size:1.5rem;color:#244f7b}.counters{margin:.4rem 0 1.2rem;gap:.65rem}.counters article,.counters article:nth-child(2),.counters article:nth-child(3){background:#e5effc;color:#285785;border:1px solid #cfdef1;border-radius:12px;box-shadow:none}.counters article:nth-child(2){background:#eaf5f0;border-color:#d4e8dd;color:#30684e}.counters article:nth-child(3){background:#edf4ff;border-color:#d6e4f7;color:#365f91}
.account-counters article,.account-counters article:nth-child(2),.account-counters article:nth-child(3){background:#e5effc;color:#285785;border:1px solid #cfdef1;border-radius:12px}.account-counters article:nth-child(2){background:#eaf5f0;border-color:#d4e8dd;color:#30684e}.account-counters article:nth-child(3){background:#edf4ff;border-color:#d6e4f7;color:#365f91}
button,.button{background:#356fa8;color:#fff;border-radius:9px;box-shadow:none}button:hover,.button:hover{background:#285b8d}.secondary{background:#e8f0fb;color:#365f87}.secondary:hover{background:#dae8f8}.panel,article,details.panel{border-color:#dbe5f1;box-shadow:0 2px 8px #224c7604}.badge{background:#e5effc;color:#365f87}.muted{color:#60738b}a{color:#2c639c}
nav.app-tabs{position:fixed;bottom:0!important;left:0;right:0;z-index:30;display:flex;justify-content:center;gap:.65rem;padding:.6rem 1rem max(.6rem,env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #d2e0ef}
.app-tabs a{background:transparent;color:#60738b;border-radius:10px;padding:.55rem 1.5rem!important;text-decoration:none;min-width:116px;text-align:center;font-size:14px;font-weight:600}.app-tabs a[aria-current="page"]{background:#dfecfc;color:#285b8d;outline:none}.app-tabs a:focus-visible{outline:3px solid #b96520}
@media(max-width:600px){.ht-topbar,.ht-brand-row{padding-left:.85rem;padding-right:.85rem}.ht-topbar{gap:.5rem}.account-menu>summary{max-width:205px;font-size:13px}.ht-topbar .language-picker select{font-size:13px;max-width:115px}.ht-brand-row{padding-top:.55rem;padding-bottom:.55rem}main{padding-bottom:6rem}.app-tabs a{min-width:110px}}

.task-controls{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:.3rem 0 1.1rem;gap:.5rem}.task-add{justify-self:center;min-width:130px;text-align:center}.task-filter{position:relative;margin:0}.task-filter>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #d2e0ef;border-radius:10px;background:#fff;color:#365f87;cursor:pointer;padding:0}.task-filter>summary::-webkit-details-marker{display:none}.task-filter[open]>summary{background:#dfecfc}.task-filter-menu{position:absolute;left:0;top:calc(100% + .5rem);z-index:20;width:250px;max-width:calc(100vw - 3rem);background:#fff;border:1px solid #d2e0ef;border-radius:12px;padding:.5rem;box-shadow:0 10px 28px #224c7618}.task-filter-menu>a{display:block;text-decoration:none;padding:.65rem .75rem;border-radius:7px;color:#365f87}.task-filter-menu>a[aria-current]{background:#dfecfc;font-weight:600}.task-filter-menu form{border-top:1px solid #dce6f2;margin:.5rem 0 0;padding:.5rem}.task-filter-menu button{width:100%}.task-controls+.list{margin-top:0}

/* Personal blue palette shared by Tasks, Wallet and account screens. */
input,select,textarea{border-color:#cbdced;color:#263e58}input:focus,select:focus,textarea:focus{border-color:#356fa8}
.row,.entry-balance,.balance-list li+li{border-color:#dce6f2}.eyebrow{color:#60738b}.account-preview{background:#e5effc;color:#285785}.payment-panel{border-color:#80a8ce}.done{color:#30684e}.entry-amount{color:#285785}
dialog{border-color:#cedeed;color:#263e58;box-shadow:0 20px 80px #224c7633}dialog::backdrop{background:#183e6566}summary:focus-visible,.balance-list a:focus-visible{outline-color:#b96520}.icon,.icon:hover{background:transparent;color:#356fa8}.task-filter-menu>a:hover{background:#eef5fd}
html{background:#f3f7fc;min-height:100%}body{min-height:100vh}
.login-panel{max-width:440px;margin:0 auto}.signup-invite{font-size:14px;font-weight:400;margin:1rem 0 .5rem}.signup-invite a{font-weight:400;text-decoration:none}.signup-invite a:hover{text-decoration:underline}
.login-panel .forgot-password{font-size:12px;line-height:1.5;margin:-.35rem 0 1rem}.forgot-password a{color:#526d8a;text-decoration:none}.forgot-password a:hover{text-decoration:underline}.login-panel .signup-invite{font-size:16px;line-height:1.6;margin:1.1rem 0}.signup-invite a{color:#285b8d}

.remember-device{font-size:13px;color:#526d8a;margin:.4rem 0 1rem}
