:root{color-scheme:light;--bg:#f4f7fc;--text:#17233c;--muted:#718097;--blue:#087fff;--surface:rgba(255,255,255,.74);--line:rgba(108,133,176,.13);--soft:#edf5ff;--shadow:0 12px 36px #3a62900a, inset 0 1px 0 #ffffffdd;--danger:#dd4255;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.5;min-height:100vh}body.dark{color-scheme:dark;--bg:#0e1625;--text:#edf4ff;--muted:#9aabc5;--blue:#52a4ff;--surface:rgba(27,40,61,.8);--line:rgba(166,189,225,.12);--soft:#233957;--shadow:0 12px 36px #0002,inset 0 1px 0 #ffffff0c}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.5}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #75b5ff;outline-offset:4px}svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 20% 5%,#b2d9ff38,transparent 50%),radial-gradient(ellipse at 90% 50%,#d6c8ff26,transparent 40%)}.app{position:relative;width:min(100%,520px);margin:auto;padding:32px 24px calc(130px + env(safe-area-inset-bottom))}.brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.brand>a{display:flex;align-items:center;color:var(--text);font-size:23px;font-weight:750;letter-spacing:-1px}.brand>a>span:last-child{color:var(--blue)}.brand-icon{color:white;display:grid;place-items:center;background:linear-gradient(145deg,#4eacff,#0871ed);border-radius:11px;width:34px;height:34px;margin-right:9px;box-shadow:0 4px 9px #087fff24}.brand-icon svg{width:23px}.local-label{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px}.local-label i{height:5px;width:5px;border-radius:50%;background:#3dbf94}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.eyebrow{color:var(--muted);font-size:12px;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;margin:0 0 6px}h1{font-size:36px;line-height:1.15;letter-spacing:-1.5px;margin:0;font-weight:750}h2{font-size:19px;letter-spacing:-.4px;margin:0}h3{font-size:17px;letter-spacing:-.3px;margin:0}p{margin:8px 0}.muted{color:var(--muted)}.small{font-size:14px}.glass,.card{background:var(--surface);border:1px solid #ffffff88;border-color:var(--line);box-shadow:var(--shadow);backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%);border-radius:28px}.icon-button{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:15px}.icon-button.primary{color:white;background:var(--blue);box-shadow:0 5px 12px #087fff25;border:0}.summary{padding:27px 26px 0;background:linear-gradient(125deg,#fff9,#e8f3ff80);overflow:hidden;margin-bottom:31px}.dark .summary{background:linear-gradient(125deg,#263c55aa,#192e4480)}.summary-label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.summary-label svg{color:var(--blue);width:18px}.total{font-size:46px;letter-spacing:-2px;font-weight:720;line-height:1.3;margin:8px 0 18px;overflow-wrap:anywhere}.total .cents{font-size:30px;color:var(--muted);font-weight:450}.summary-footer{display:flex;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.summary-footer strong{color:var(--text);font-weight:650;margin-right:4px}.summary-footer span{display:flex;gap:5px;align-items:center}.summary-footer svg{width:15px;height:15px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 2px 14px}.count{font-size:12px;padding:3px 9px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--muted)}.goal-card{padding:21px;margin:0 0 15px;position:relative}.goal-main{display:flex;gap:17px;align-items:center;cursor:pointer}.ring{width:72px;height:72px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--goal-color,var(--blue)) var(--progress),var(--line) 0);display:grid;place-items:center;transform:rotate(-0deg)}.ring-inner{width:60px;height:60px;border:5px solid var(--surface);background:var(--bg);border-radius:50%;display:grid;place-items:center;font-size:26px}.goal-info{min-width:0;flex:1}.goal-info h3{overflow-wrap:anywhere}.goal-info p{font-size:14px;color:var(--muted);margin:5px 0 0}.goal-info p strong{color:var(--text);font-weight:650}.chevron{color:var(--muted);width:17px}.goal-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:20px 0 13px}.goal-meta strong{font-weight:600;color:var(--goal-color,var(--blue))}.button{display:flex;gap:8px;align-items:center;justify-content:center;padding:13px 18px;border:0;border-radius:15px;background:var(--blue);color:white;font-weight:600;font-size:15px;min-height:46px;text-align:center}.button svg{width:18px;height:18px}.button.soft{color:var(--blue);background:var(--soft)}.button.full{width:100%}.button.quiet{background:transparent;color:var(--muted)}.button.danger{background:#f14f6510;color:var(--danger)}.goal-card .button{padding:10px;min-height:40px}.hint{text-align:center;color:var(--muted);font-size:13px;margin:24px 0;display:flex;align-items:center;justify-content:center;gap:7px}.hint svg{width:16px;height:16px}.bottom-nav{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),472px);display:flex;justify-content:space-around;z-index:10;padding:8px;border:1px solid var(--line);box-shadow:0 8px 40px #33496f12,inset 0 1px 0 #ffffff60}.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 3px;color:var(--muted);font-size:11px;font-weight:550;border-radius:20px}.bottom-nav a.active{color:var(--blue);background:var(--soft)}.bottom-nav svg{width:22px;height:22px}.empty{text-align:center;padding:38px 25px}.empty .empty-icon{margin:0 auto 18px;width:68px;height:68px;display:grid;place-items:center;background:var(--soft);color:var(--blue);border-radius:23px}.empty-icon svg{width:32px;height:32px}.empty p{font-size:14px;max-width:270px;margin:8px auto 23px;color:var(--muted)}.sheet{position:fixed;top:auto;bottom:0;margin:0 auto;padding:30px 26px;width:min(100%,520px);max-height:90dvh;border-radius:32px 32px 0 0;overflow:auto;background:var(--bg);color:var(--text);border:1px solid var(--line);padding-bottom:calc(28px + env(safe-area-inset-bottom))}.sheet[open]{animation:slide-up .25s ease-out}.sheet::backdrop{background:#101e3c55;backdrop-filter:blur(5px)}.sheet-handle{height:4px;width:36px;border-radius:9px;background:var(--line);position:absolute;top:10px;left:calc(50% - 18px)}.close-sheet{position:absolute;right:19px;top:21px;width:32px;height:32px;border:0;background:var(--soft)}.close-sheet svg{width:18px}.sheet h2{font-size:25px;padding-right:30px;margin:6px 0 20px}.field{display:block;font-size:14px;font-weight:550;margin:17px 0}.field input,.field select,.field textarea{display:block;width:100%;margin-top:7px;padding:12px 14px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:13px;min-height:47px}.field textarea{resize:vertical}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.options{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 20px}.chip{padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:13px}.color-choice{height:32px;width:32px;border-radius:50%;border:4px solid var(--bg);outline:1px solid var(--line)}.color-choice.selected{outline:2px solid var(--blue)}.sheet form>.button{margin-top:23px}.panel{padding:23px;margin-bottom:18px}.row{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0;padding-bottom:0}.row:first-child{padding-top:0}.row-info{flex:1;min-width:0}.row-info strong{font-size:15px;display:block;overflow-wrap:anywhere}.row-info p{font-size:13px;color:var(--muted);margin:3px 0}.row-icon{height:39px;width:39px;border-radius:13px;background:var(--soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0}.row .amount{color:#269e7b;font-size:15px;font-weight:650;white-space:nowrap}.row button{border:0;background:transparent}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0}.setting-row select{max-width:130px;padding:7px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--text)}.switch{appearance:none;width:44px;height:27px;border-radius:20px;background:var(--line);position:relative;cursor:pointer;flex-shrink:0}.switch:checked{background:var(--blue)}.switch:before{content:'';position:absolute;left:3px;top:3px;width:21px;height:21px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.switch:checked:before{transform:translateX(17px)}.detail-hero{text-align:center;padding:28px 22px}.detail-hero .ring{width:150px;height:150px;margin:0 auto 20px}.detail-hero .ring-inner{width:128px;height:128px;font-size:47px}.detail-hero .total{font-size:37px;margin-bottom:0}.detail-hero .button{margin-top:24px}.detail-actions{display:flex;gap:8px;margin:18px 0}.detail-actions button{flex:1;font-size:13px;padding:10px 5px}.success{color:#219776;background:#35bb8612;padding:15px;border-radius:16px;text-align:center;margin-top:17px}.premium-hero{text-align:center;padding:24px 10px}.gem{width:82px;height:82px;display:grid;place-items:center;border-radius:26px;color:var(--blue);background:linear-gradient(135deg,#b4d9ff50,#d7c6ff50);box-shadow:inset 0 1px 0 #fff8;margin:0 auto 22px}.gem svg{height:40px;width:40px}.premium-hero h1{font-size:33px}.premium-hero p{color:var(--muted);font-size:15px;margin:12px auto;max-width:310px}.price{font-size:40px;font-weight:700;letter-spacing:-1px}.price span{font-size:15px;color:var(--muted);font-weight:400;letter-spacing:0}.badge{color:var(--blue);background:var(--soft);font-size:12px;display:inline-block;padding:5px 10px;border-radius:8px}.footer{text-align:center;color:var(--muted);font-size:12px;margin:28px 0}.footer a{font-weight:600}.bar-chart{display:flex;gap:12px;height:150px;align-items:flex-end;margin:25px 0 10px}.bar-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.bar{background:linear-gradient(#65b8ff,#087fff);border-radius:7px 7px 4px 4px;width:100%;min-height:3px}.bar-col small{font-size:10px}.text-button{background:none;border:0;color:var(--blue);font-size:13px;padding:8px}#toast{position:fixed;bottom:115px;left:50%;transform:translate(-50%,12px);background:var(--text);color:var(--bg);padding:12px 20px;border-radius:15px;font-size:14px;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;top:-20px;z-index:60;width:8px;height:12px;animation:fall 1.7s ease-in forwards;pointer-events:none}@keyframes slide-up{from{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fall{to{transform:translateY(100vh) rotate(600deg);opacity:0}}@media(min-width:700px){.app{padding-top:45px}.sheet{bottom:35px;border-radius:32px}.brand{margin-bottom:44px}}@media(max-width:360px){.app{padding-left:16px;padding-right:16px}.goal-card{padding:17px}.total{font-size:39px}.field-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the compact phone layout; use the extra space on tablets and desktops. */
[hidden]{display:none!important}
.goal-grid{display:grid;gap:15px}
.goal-grid .goal-card{margin:0;display:flex;flex-direction:column}
.goal-grid .goal-main{flex:1}
.presets{gap:8px;max-height:160px;overflow:auto;padding:3px}
.presets .chip[aria-pressed="true"]{background:var(--soft);border-color:var(--blue);color:var(--blue)}
.sheet.encouragement{inset:0;margin:auto;width:min(420px,calc(100% - 36px));height:fit-content;max-height:calc(100dvh - 40px);border-radius:30px;text-align:center;padding:38px 28px 28px}
.encouragement .sheet-handle{display:none}
.encouragement-icon{font-size:40px;width:80px;height:80px;border-radius:26px;background:var(--soft);display:grid;place-items:center;margin:8px auto 24px}
.encouragement h2{padding:0;font-size:28px;line-height:1.2;margin:12px 0}
.encouragement p.muted{margin:14px 0 26px;line-height:1.65}
.encouragement .close-sheet{top:14px;right:14px}
.page-heading h1{overflow-wrap:anywhere}
.page-heading>div{min-width:0}
.page-heading>.icon-button{flex-shrink:0;margin-left:14px}
@media(min-width:700px){
  .app{width:min(100%,960px);padding:40px 36px 130px}
  .goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .goal-card{padding:24px}
  .summary{padding:30px 32px 0}
  .summary .total{font-size:52px}
  .summary-footer{justify-content:flex-start;gap:40px}
  #main[data-page="settings"],#main[data-page="goal"]{max-width:740px;margin:auto}
  .sheet:not(.encouragement){inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 64px)}
  .bottom-nav a{font-size:12px}
}
@media(min-width:1100px){
  .app{width:100%;max-width:1520px;padding:52px 48px 60px 288px}
  .brand{position:fixed;top:48px;left:36px;margin:0;z-index:11}
  .brand>a{font-size:27px}
  .brand-icon{width:40px;height:40px;border-radius:13px}
  .brand .local-label{position:fixed;left:40px;bottom:38px}
  .bottom-nav{left:24px;top:124px;bottom:82px;transform:none;width:208px;flex-direction:column;justify-content:flex-start;gap:8px;padding:12px;border-radius:26px}
  .bottom-nav a{flex:none;flex-direction:row;justify-content:flex-start;gap:14px;padding:16px 18px;font-size:15px;border-radius:16px}
  .bottom-nav a:last-child{margin-top:0}
  .bottom-nav svg{width:23px;height:23px}
  .page-heading{margin-bottom:30px}
  h1{font-size:40px}
  .section-heading{margin-top:30px}
  .empty{padding:48px 30px}
  .empty .button{max-width:320px;margin:auto}
  #main[data-page="settings"],#main[data-page="goal"]{margin:0 auto}
  #toast{bottom:30px}
}
.sidebar{display:contents}
#sidebar-summary{display:none}
@media(min-width:1100px){
  html{scrollbar-width:thin;scrollbar-color:#151515 transparent}
  *{scrollbar-width:thin;scrollbar-color:#151515 transparent}
  ::-webkit-scrollbar{width:6px;height:6px}
  ::-webkit-scrollbar-track{background:transparent}
  ::-webkit-scrollbar-thumb{background:#151515;border-radius:20px}
  .sidebar{display:flex;flex-direction:column;gap:20px;position:fixed;left:24px;top:124px;bottom:80px;width:208px;overflow:auto;z-index:10}
  .sidebar .bottom-nav{position:static;flex:none;transform:none;width:100%;height:auto}
  #sidebar-summary{display:block}
  #sidebar-summary .summary{padding:21px 18px 0;margin:0;border-radius:24px}
  #sidebar-summary .total{font-size:29px;letter-spacing:-1px;margin:12px 0 18px}
  #sidebar-summary .cents{font-size:20px}
  #sidebar-summary .summary-footer{flex-direction:column;gap:10px;padding:16px 0}
  #main .goals-summary{display:none}
}

.onboarding .close-sheet{display:none}
.encouragement form{text-align:left}
