*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* Default theme = the Whisper Valley logo: teal #25A2A5, red #ED2027, blue #0E7DC2, yellow #FFC214, green #74C044.
   --brand is a deeper teal so white text stays readable; the logo teal is --brand-2. */
:root{--brand:#0E6E73;--brand-d:#0A5459;--brand-2:#25A2A5;--accent:#FFC214;--accent-ink:#3A2A00;--bg:#EEF6F6;--surface:#fff;--ink:#10292B;--muted:#53706F;--line:#DDE9E8;--tint:#DCEFEE;--link:#0B5E63;--ok:#1B7A34;--ok-bg:#DDF1D2;--warn:#85570A;--warn-bg:#FFF0C2;--bad:#B3131B;--bad-bg:#FDDDDE;
--wv-red:#ED2027;--wv-blue:#0E7DC2;--wv-yellow:#FFC214;--wv-green:#74C044;
--red-t:#FDE4E5;--red-i:#C4161D;--blue-t:#DDEEFA;--blue-i:#0B63A0;--yellow-t:#FFF2C6;--yellow-i:#8A6200;--green-t:#E5F4DA;--green-i:#3B7A19;
--shadow:0 1px 2px rgba(16,41,43,.05),0 10px 24px -14px rgba(14,110,115,.45);--r:20px}
/* To change the colour theme, set data-theme on <body> to: jacaranda, neem or midnight. Leave empty for the Whisper Valley colours. */
[data-theme=jacaranda]{--brand:#35276F;--brand-d:#271C57;--brand-2:#6150C0;--accent:#F3705F;--accent-ink:#3B0D07;--bg:#F3F0FA;--ink:#1B1736;--muted:#675F86;--line:#E1DCF0;--tint:#E8E3F7;--link:#35276F;--shadow:0 12px 24px -14px rgba(53,39,111,.45)}
[data-theme=neem]{--brand:#1D4A2C;--brand-d:#143821;--brand-2:#2F7A47;--accent:#D9A441;--accent-ink:#392600;--bg:#F0F4EC;--ink:#14231A;--muted:#5C7062;--line:#DCE5D6;--tint:#E0ECD9;--link:#1D4A2C;--shadow:0 12px 24px -14px rgba(29,74,44,.45)}
[data-theme=midnight]{--brand:#0A1C30;--brand-d:#07131F;--brand-2:#1B4A74;--accent:#E8B84B;--accent-ink:#2E2000;--bg:#0E1926;--surface:#162434;--ink:#EAF0F6;--muted:#9AABBC;--line:#25394E;--tint:#1D3249;--link:#E8B84B;--ok:#72D8A3;--ok-bg:#16392B;--warn:#F2BB6C;--warn-bg:#3A2D14;--bad:#F29C8C;--bad-bg:#40211C;--shadow:0 12px 24px -14px rgba(0,0,0,.6)}
html{background:var(--bg)}
body{margin:0;font:400 16px/1.45 'Figtree',system-ui,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
#app{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;position:relative;background:var(--bg)}
@media(min-width:520px){body{background:linear-gradient(135deg,var(--tint),var(--bg) 60%)}#app{box-shadow:0 0 0 1px var(--line),0 30px 80px -30px rgba(14,110,115,.35)}}

/* ---------- header ---------- */
.h{position:relative;overflow:hidden;background-color:var(--brand);background-image:radial-gradient(120% 90% at 100% 0,var(--brand-2) 0,transparent 62%),linear-gradient(180deg,transparent 40%,rgba(0,0,0,.18));color:#fff;padding:calc(26px + env(safe-area-inset-top)) 20px 74px;display:flex;flex-direction:column;gap:18px}
.h::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--wv-red) 0 25%,var(--wv-blue) 25% 50%,var(--wv-yellow) 50% 75%,var(--wv-green) 75%);z-index:2}
.h::after{content:"";position:absolute;right:-30px;bottom:-6px;width:240px;height:120px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='13'%3E%3Cpath d='M8 100a92 92 0 0 1 184 0'/%3E%3Cpath d='M30 100a70 70 0 0 1 140 0' stroke-opacity='.12'/%3E%3Cpath d='M52 100a48 48 0 0 1 96 0' stroke-opacity='.09'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain}
.h>*{position:relative;z-index:1}
.ht{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hb{display:flex;align-items:center;gap:11px;min-width:0}
.hb b{display:block;font:700 21px/1.1 'Bricolage Grotesque',sans-serif;letter-spacing:-.01em}
.hb span{display:block;font-size:11.5px;opacity:.85;letter-spacing:.02em;margin-top:2px}
.lg{width:48px;height:48px;border-radius:50%;flex:none;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.55),0 6px 14px -4px rgba(0,0,0,.35)}
.lgx{display:block;width:124px;height:124px;border-radius:50%;margin:6px 0 4px;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.35),0 18px 34px -10px rgba(0,0,0,.45)}
.hw small{display:block;font-size:13.5px;opacity:.9;letter-spacing:.01em}
.hw h1{margin:4px 0 0;font:700 30px/1.08 'Bricolage Grotesque',sans-serif;letter-spacing:-.02em;max-width:76%}
.hero-l{align-items:flex-start}
.av{width:44px;height:44px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font:700 18px 'Bricolage Grotesque',sans-serif;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.5)}
button.av{border:0;padding:0;cursor:pointer}

/* ---------- layout and cards ---------- */
.b{position:relative;flex:1;padding:0 18px 22px;margin-top:-52px;display:flex;flex-direction:column;gap:14px;animation:up .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.b{animation:none}*{transition:none!important}}
.c{position:relative;background:var(--surface);border-radius:var(--r);padding:14px 16px;box-shadow:var(--shadow);border:1px solid var(--line)}
form.c{display:flex;flex-direction:column;gap:12px;padding:18px}
.c.row{padding-left:20px}
.c[class*=" s-"]::before,.c[class^="s-"]::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:5px;border-radius:0 6px 6px 0;background:var(--sc)}
.s-ok{--sc:var(--wv-green)}.s-warn{--sc:var(--wv-yellow)}.s-bad{--sc:var(--wv-red)}.s-blue{--sc:var(--wv-blue)}.s-mute{--sc:#A9BBBA}
.b>.eb:first-child{color:rgba(255,255,255,.9);margin-bottom:6px}
.eb{font:700 11.5px 'Figtree',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:6px 2px -4px}
.t{font-size:13.5px;color:var(--muted);margin:0}.k{font-weight:700}
.amt{font:700 44px/1.02 'Bricolage Grotesque',sans-serif;letter-spacing:-.03em;margin:6px 0 8px}

/* balance hero */
.bal{padding:20px 20px 18px;overflow:hidden}
.bal::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--wv-red) 0 25%,var(--wv-blue) 25% 50%,var(--wv-yellow) 50% 75%,var(--wv-green) 75%)}
.bal .rowx{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.how{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:11px 12px;border-radius:14px;background:var(--tint);font-size:13.5px;color:var(--ink)}
.how svg{flex:none;width:20px;height:20px;stroke:var(--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}

/* quick actions */
.qa{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.qa a{display:flex;flex-direction:column;align-items:center;gap:7px;text-decoration:none;color:var(--ink);font:600 12.5px 'Figtree',sans-serif;text-align:center}
.qi{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;box-shadow:var(--shadow);border:1px solid var(--line);transition:transform .15s}
.qa a:active .qi{transform:scale(.93)}
.qi svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.q-blue{background:var(--blue-t);color:var(--blue-i)}.q-red{background:var(--red-t);color:var(--red-i)}.q-green{background:var(--green-t);color:var(--green-i)}.q-yellow{background:var(--yellow-t);color:var(--yellow-i)}

/* notices */
.nt{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.nt:first-of-type{border-top:0;padding-top:6px}
.nd{flex:none;width:10px;height:10px;border-radius:50%;margin-top:7px}
.nt b{display:block;font-weight:700}
.nt p{margin:3px 0 0;font-size:14px;color:var(--muted)}
.nt time{font-size:12px;color:var(--muted);opacity:.85}
.hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}
.hd .k{font:700 18px 'Bricolage Grotesque',sans-serif;letter-spacing:-.01em}

/* stat tiles */
.stat{display:flex;flex-direction:column;gap:2px;padding:14px}
.stat .si{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;margin-bottom:6px}
.stat .si svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.stat .k{font:700 22px 'Bricolage Grotesque',sans-serif;letter-spacing:-.02em}
.prog{height:10px;border-radius:99px;background:var(--tint);overflow:hidden;margin:10px 0 6px}
.prog i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--wv-green),var(--brand-2))}

/* providers */
.pv{display:flex;align-items:center;gap:12px;min-width:0}
.pa{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font:700 18px 'Bricolage Grotesque',sans-serif;flex:none}
.pa0{background:var(--red-t);color:var(--red-i)}.pa1{background:var(--blue-t);color:var(--blue-i)}.pa2{background:var(--yellow-t);color:var(--yellow-i)}.pa3{background:var(--green-t);color:var(--green-i)}
.call{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;text-decoration:none;flex:none;box-shadow:0 8px 16px -8px var(--brand)}
.call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.empty{text-align:center;padding:26px 16px;color:var(--muted);font-size:14px}

/* ---------- navigation ---------- */
.n{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));display:flex;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:26px;margin:0 14px 0;padding:7px;box-shadow:0 14px 30px -12px rgba(14,110,115,.5);z-index:20}
.n a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--muted);text-decoration:none;padding:8px 0 6px;border-radius:20px;transition:background .2s,color .2s}
.n a.on{background:var(--brand);color:#fff}
.n a.on .ni{stroke:#fff}
.ni{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#app>.b{padding-bottom:30px}

/* ---------- controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--accent);color:var(--accent-ink);border:0;border-radius:16px;padding:0 20px;font:700 15px 'Figtree',sans-serif;min-height:50px;cursor:pointer;box-shadow:0 8px 16px -10px rgba(138,98,0,.8);transition:transform .12s,filter .15s}
.btn:active{transform:scale(.97)}.btn:hover{filter:brightness(1.04)}
.alt{background:var(--tint);color:var(--link);box-shadow:none}
input,textarea,select{width:100%;border:1.5px solid var(--line);border-radius:14px;padding:13px 14px;font:16px 'Figtree',sans-serif;background:var(--surface);color:var(--ink);transition:border-color .15s,box-shadow .15s}
input:focus,textarea:focus,select:focus{outline:0;border-color:var(--brand-2);box-shadow:0 0 0 4px rgba(37,162,165,.2)}
.btn:focus-visible,.n a:focus-visible,.chip:focus-visible,.qa a:focus-visible,.call:focus-visible{outline:3px solid var(--wv-blue);outline-offset:2px}
label{display:block;font-size:13px;font-weight:600;color:var(--muted)}label input,label textarea,label select{margin-top:6px}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pill{display:inline-flex;align-items:center;gap:5px;font:600 12px 'Figtree',sans-serif;padding:3px 10px;border-radius:99px;background:var(--ok-bg);color:var(--ok)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.w{background:var(--warn-bg);color:var(--warn)}.mute{background:var(--line);color:var(--muted)}.bad{background:var(--bad-bg);color:var(--bad)}
a{color:var(--link);font-weight:600}
#lf.b{margin:-52px 18px 20px;padding:22px 18px;background:var(--surface);border-radius:24px;box-shadow:var(--shadow);border:1px solid var(--line);flex:none}
.b>.btn[data-act="out"]{margin:auto 0}
.pop{position:absolute;top:84px;right:18px;z-index:30;width:236px;background:var(--surface);border-radius:20px;box-shadow:0 22px 44px -14px rgba(0,0,0,.45);padding:16px;display:flex;flex-direction:column;gap:6px;color:var(--ink)}
.pop[hidden]{display:none}
.pop .btn{margin-top:8px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.chip{padding:9px 16px;border-radius:99px;background:var(--surface);border:1.5px solid var(--line);font:600 13px 'Figtree',sans-serif;text-decoration:none;color:var(--ink);white-space:nowrap;transition:all .15s}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 16px -10px var(--brand)}
.acts{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.acts .btn{min-height:38px;padding:6px 14px;font-size:13px;border-radius:12px;box-shadow:none}
.mo{margin:0}
.mo>summary{list-style:none;cursor:pointer;position:relative;display:flex;flex-direction:column;gap:2px;padding:13px 40px 13px 18px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);margin-bottom:10px}
.mo>summary::-webkit-details-marker{display:none}
.mo>summary::after{content:"\25BE";position:absolute;right:18px;top:16px;color:var(--muted)}
.mo[open]>summary::after{content:"\25B4"}
.mo .c{margin-bottom:10px}
#modal:empty{display:none}
.ov{position:fixed;inset:0;background:rgba(10,30,34,.6);backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.sheet{width:100%;max-width:480px;background:var(--surface);border-radius:28px 28px 0 0;padding:22px 18px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:92vh;overflow:auto;animation:up .3s ease both}
.sheet h2{margin:0;font:700 22px 'Bricolage Grotesque',sans-serif}
.toast{position:fixed;left:50%;bottom:104px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:16px;font-weight:600;font-size:14px;z-index:60;max-width:90vw;text-align:center;box-shadow:0 14px 30px -10px rgba(0,0,0,.5)}

/* accounts, statement, forms */
.ro{-webkit-user-select:none;user-select:none}
.bar{height:8px;border-radius:99px;background:var(--tint);overflow:hidden;margin-top:5px}
.bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--wv-blue),var(--brand-2))}
input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--brand)}
input[type=file]{padding:10px 12px;font-size:14px}
label.ck{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink)}
[hidden]{display:none!important}

/* contacts */
.map{display:block;width:100%;height:190px;border:0;border-radius:16px;margin:2px 0 12px;background:var(--tint)}
.ln{display:flex;flex-direction:column;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.call.wa{background:#1FA855;box-shadow:0 8px 16px -8px #1FA855}
.call.wa svg{width:22px;height:22px}

.lgm{width:76px;height:76px;border-radius:50%;flex:none;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.4),0 14px 28px -10px rgba(0,0,0,.45)}
.lb{gap:14px}.lb b{font-size:28px}.lb span{font-size:12.5px}
.hero-l .hw{margin-top:6px}

.tips{list-style:none;margin:0 18px 26px;padding:0;display:flex;flex-direction:column;gap:10px}
.tips li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);line-height:1.4}
.tips svg{flex:none;width:18px;height:18px;margin-top:1px;fill:none;stroke:var(--brand);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
