/* Wiser: a Wise-style phone app. Scrolling content above a fixed bottom nav; full-screen pages for spending and details */
:root{
  --bg:#FFFFFF; --surface:#F1F2EE; --surface2:#E6E8E2; --line:#DCDED8;
  --ink:#0E0F0C; --muted:#454745; --soft:#6A6C6A;
  --green:#9FE870; --forest:#163300; --pill-dark:#E2F6D5; --pill-dark-fg:#163300;
  --pos:#2F7D12; --danger:#A8200D; --scrim:rgba(14,15,12,.5); --nav:#F1F2EE;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
/* Dark mode follows the phone unless a theme is picked in Account */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#121511; --surface:#2A2C29; --surface2:#363835; --line:#3A3D39;
  --ink:#FFFFFF; --muted:#C8CAC5; --soft:#9EA19B;
  --pill-dark:#1E3307; --pill-dark-fg:#9FE870;
  --pos:#9FE870; --danger:#FFA28B; --scrim:rgba(0,0,0,.6); --nav:#1C1E1B;
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#121511; --surface:#2A2C29; --surface2:#363835; --line:#3A3D39;
  --ink:#FFFFFF; --muted:#C8CAC5; --soft:#9EA19B;
  --pill-dark:#1E3307; --pill-dark-fg:#9FE870;
  --pos:#9FE870; --danger:#FFA28B; --scrim:rgba(0,0,0,.6); --nav:#1C1E1B;
  color-scheme:dark;
}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}
button,input{font-family:inherit;color:inherit;font-size:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:disabled,[aria-disabled="true"]{opacity:.45}
:focus-visible{outline:3px solid var(--green);outline-offset:2px}
h1,h2,p{margin:0;text-wrap:pretty}
[hidden]{display:none!important}
.app{height:100%;display:flex;flex-direction:column;max-width:520px;margin:0 auto;position:relative;padding-top:env(safe-area-inset-top,0px);overflow:hidden}
.scroll{flex:1;overflow-y:auto}
.screen{display:flex;flex-direction:column;gap:22px;padding:16px max(16px,env(safe-area-inset-right,0px)) 32px max(16px,env(safe-area-inset-left,0px))}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.num{font-variant-numeric:tabular-nums}
.small,.tsub{font-size:14px;color:var(--muted);font-weight:400;line-height:1.4}
.muted{color:var(--muted)}
.h1{font-size:30px;font-weight:800;letter-spacing:-.6px;line-height:1.15}
.h3{font-size:20px;font-weight:700}
.danger{color:var(--danger)!important}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px}
.avatar{border-radius:999px;background:#6B4436;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;flex:none;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.pill{height:44px;padding:0 18px;border-radius:999px;font-size:16px;font-weight:600;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.pill.green{background:var(--green);color:var(--forest)}
.pill.dark{background:var(--pill-dark);color:var(--pill-dark-fg)}
.pill.big{height:48px;padding:0 20px;font-size:17px}

/* balance */
.bal{display:flex;flex-direction:column;gap:4px}
.ballbl{font-size:17px;font-weight:500}
.balrow{gap:12px;flex-wrap:wrap}
.balamt{font-size:34px;font-weight:700;letter-spacing:-.8px;margin-right:4px}
.round{width:44px;height:44px;border-radius:999px;background:var(--surface);color:var(--pos);display:flex;align-items:center;justify-content:center;flex:none}
.round.sm{width:36px;height:36px}
.actions{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none}
.actions::-webkit-scrollbar{display:none}

/* account card */
.acct{background:var(--surface);border-radius:32px;padding:10px 10px 22px;display:flex;flex-direction:column}
.tab{background:var(--green);color:var(--forest);border-radius:999px;height:52px;padding:0 20px 0 24px;display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:16px;position:relative;margin-bottom:10px}
.acct-head{display:flex;align-items:center;gap:8px;text-align:left;padding:14px 14px 10px}
.acct-title{font-size:20px;font-weight:800;letter-spacing:-.4px}
.acct-sub{font-size:17px;color:var(--muted)}
.arow{display:flex;align-items:center;gap:14px;padding:12px 14px;font-size:19px;font-weight:500}
.arow .small{font-size:14px}
.flag{width:36px;height:36px;flex:none;border-radius:999px}
.mini{width:36px;height:36px;border-radius:999px;background:var(--surface2);display:flex;align-items:center;justify-content:center;flex:none}
.chipbtn{align-self:flex-start;margin:10px 14px 0;height:44px;padding:0 18px;border-radius:999px;background:var(--surface2);display:inline-flex;align-items:center;gap:8px;font-weight:600}

/* transactions */
.sect{display:flex;flex-direction:column;gap:4px}
.sect h2{font-size:26px;font-weight:800;letter-spacing:-.4px}
.seeall{color:var(--pos);font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:44px;font-size:16px}
.txn{display:flex;align-items:center;gap:16px;padding:12px 0;width:100%;text-align:left}
.ticon{width:50px;height:50px;border-radius:999px;border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.ticon.photo{border:0}
.ticon img{width:100%;height:100%;object-fit:cover}
.tmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tname{font-size:17px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tamt{text-align:right;font-size:17px;font-weight:600;white-space:nowrap}
.pos{color:var(--pos)}
.dayhead{display:flex;justify-content:space-between;gap:8px;font-size:14px;color:var(--muted);font-weight:600;padding:18px 0 4px;border-bottom:1px solid var(--line)}

/* cards and lists */
.card{background:var(--surface);border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:10px}
.card.prof{flex-direction:row;align-items:center;gap:14px}
.card.list{padding:6px 18px;gap:0}
.lrow{display:flex;align-items:center;gap:14px;padding:14px 0;text-align:left;width:100%;border-bottom:1px solid var(--line);font-weight:600}
.lrow:last-child{border-bottom:0}
.lrow .tsub{font-weight:400}
.yearbar{height:10px;border-radius:999px;background:var(--surface2);overflow:hidden}
.yearbar div{height:100%;background:var(--green);border-radius:999px}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:4px}
.stats div{background:var(--bg);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.stats b{font-size:19px}

/* buttons */
.btn{height:52px;border-radius:999px;font-size:17px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:0 20px;flex-shrink:0}
.btn.primary{background:var(--green);color:var(--forest)}
.btn.forest{background:var(--forest);color:var(--green)}
.btn.outline{border:1.5px solid currentColor}
.btn.text{color:var(--pos);height:48px}

/* bottom nav */
nav{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:var(--nav);padding:8px max(4px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px))}
.navb{min-width:0;padding:0;white-space:nowrap;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);font-size:11px;font-weight:500;min-height:48px;justify-content:center}
.avbtn{border-radius:999px;flex:none}
.navb.on{color:var(--pos);font-weight:600}

/* full-screen pages */
.page{flex:1;display:flex;flex-direction:column;overflow-y:auto;background:var(--bg)}
.ptop{display:flex;align-items:center;justify-content:space-between;padding:16px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
.ptop .round{color:var(--ink);margin:6px 0}
.pbody{display:flex;flex-direction:column;gap:18px;padding:18px max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));flex:1}
.pbody>*{flex-shrink:0}
.amtbox{border:1.5px solid var(--line);border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.amtbox:focus-within{border-color:var(--ink)}
.amtin{flex:1;min-width:0;border:0;background:transparent;font-size:36px;font-weight:700;outline:none;letter-spacing:-.5px}
.cur{display:flex;align-items:center;gap:8px;font-weight:600;font-size:17px}
.cur .flag{width:28px;height:28px}
.availrow{margin-top:-8px}
.flabel{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600}
.input{height:56px;border:1.5px solid var(--line);border-radius:14px;padding:0 16px;font-size:17px;background:var(--bg);width:100%;font-weight:400}
.input:focus{border-color:var(--ink);outline:none}
.photopick{height:120px;border:2px dashed var(--line);border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-weight:500;cursor:pointer}
.photoprev{position:relative;border-radius:20px;overflow:hidden;background:var(--surface)}
.photoprev img{display:block;width:100%;max-height:320px;object-fit:cover}
.photoprev .round{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff}
.err{color:var(--danger);font-weight:600;font-size:15px}
/* Spend and Deposit: the form scrolls, the save button sits in a fixed bar below it */
.page.formpage{overflow:hidden;padding-bottom:var(--kb,0px)}
.pscroll{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}
.formpage .pbody{padding-bottom:8px}
.actbar{flex:none;position:relative;z-index:2;background:var(--bg);padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));box-shadow:0 -8px 20px -6px rgba(0,0,0,.14)}
.formpage .actbar{padding-bottom:12px}
.actbar::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:20px;background:linear-gradient(to top,var(--bg),transparent);pointer-events:none}

/* success */
.page.done{background:var(--green);color:var(--forest)}
.page.done .round{background:rgba(22,51,0,.1);color:var(--forest)}
.center{justify-content:center}
.bigcheck{width:96px;height:96px;border-radius:999px;background:var(--forest);color:var(--green);display:flex;align-items:center;justify-content:center}
.display{font-size:44px;line-height:1;font-weight:900;letter-spacing:-1.5px;text-transform:uppercase;overflow-wrap:anywhere}
.donesub{font-size:18px;line-height:1.45;font-weight:500}
.stack{display:flex;flex-direction:column;gap:10px;margin-top:12px}

/* transaction detail */
.txhead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:8px 0}
.txhead .ticon{width:72px;height:72px}
.txamt{font-size:22px;font-weight:700}
.txphoto{border-radius:24px;overflow:hidden;background:var(--surface);min-height:120px;display:flex;align-items:center;justify-content:center}
.txphoto img{display:block;width:100%}

/* sheets */
.scrim{position:absolute;inset:0;background:var(--scrim);display:flex;align-items:flex-end;z-index:5}
.sheet{width:100%;background:var(--bg);border-radius:28px 28px 0 0;padding:20px max(20px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:14px;max-height:92%;overflow-y:auto;animation:up .22s ease-out;line-height:1.5}
.sheet>*{flex-shrink:0}
.grabber{width:40px;height:5px;border-radius:999px;background:var(--line);align-self:center;margin:-6px 0 2px}
@keyframes up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){.sheet{animation:none}}

/* welcome */
.welcome{flex:1;display:flex;flex-direction:column;gap:20px;background:var(--green);color:var(--forest);padding:calc(40px + env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px));margin-top:calc(-1 * env(safe-area-inset-top,0px));overflow-y:auto}
.welcome>*{flex-shrink:0}
.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:800;letter-spacing:-.4px}
.wtext{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;gap:16px}
.welcome h1{font-size:46px;line-height:.98;font-weight:900;letter-spacing:-1.6px;text-transform:uppercase}
.welcome p{font-size:18px;line-height:1.45;font-weight:500}
.welcome .btn.primary{background:var(--forest);color:var(--green)}
.welcome .btn.text{color:var(--forest)}
.welcome .input{background:#fff;border-color:transparent;color:#0E0F0C}
.welcome .note{font-weight:600}
.toast{position:absolute;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:22px;font-weight:600;font-size:15px;z-index:9;width:max-content;max-width:calc(100% - 32px);text-align:center;line-height:1.35}
.banner{gap:14px}
.banner b{font-size:17px}
.lrow .seeall{min-height:0}
.actions .pill{flex:1;justify-content:center}

/* Deposit, switches */
.pill.static{cursor:default}
.switch{width:52px;height:32px;border-radius:999px;background:var(--surface2);position:relative;flex:none;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
[aria-checked="true"] .switch{background:var(--green)}
[aria-checked="true"] .switch::after{transform:translateX(20px)}
.formnote{font-size:14px;color:var(--muted);line-height:1.4}
.round.back{color:var(--ink)}

.ntprev{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:var(--surface)}
.ntprev b{font-weight:700}
.ntprev span{color:var(--soft)}
.selbtn{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:0 18px 0 16px;cursor:pointer;color:var(--ink)}
.selbtn svg{flex:none;transform:rotate(90deg);transition:transform .15s}
.selbtn.open svg{transform:rotate(-90deg)}
.hourlist{margin-top:8px;max-height:220px;overflow-y:auto;border:1.5px solid var(--line);border-radius:14px;background:var(--bg);padding:4px}
.hopt{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:0 14px;border-radius:10px;font-size:16px;color:var(--ink);text-align:left}
.hopt.on{background:var(--surface);font-weight:600}
textarea.input.note{height:auto;min-height:92px;padding:14px 16px;line-height:1.45;resize:none;font-family:inherit;overflow-y:auto}
.notetext{white-space:pre-wrap;overflow-wrap:anywhere}
.legal{font-size:13px;line-height:1.5;text-align:center;color:var(--muted,inherit);opacity:.8;padding:8px 0 4px}
.legal a{color:inherit;text-decoration:underline}
.welcome .legal{color:var(--forest);white-space:nowrap;font-size:11px;opacity:.7;padding:6px 0 0}
.welcome.c .wtext{align-items:center;text-align:center;gap:18px}
.welcome.c h1{text-transform:none;font-size:36px;line-height:1.06;letter-spacing:-1.2px}
.welcome.c p{max-width:320px}
.wlogo{background:var(--forest);display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none}
.welcome.c .wsub{font-size:20px;line-height:1.4;font-weight:600}
.ntsheet{gap:10px}
.ntsheet .h3{margin:0}
.ntsheet .input{height:48px}
.ntsheet .flabel{gap:6px;font-size:14px}
.ntsheet .ntprev{padding:10px 14px}
.ntsheet p{margin:0}
.sheet{touch-action:pan-y;overscroll-behavior:contain}
.month{border-bottom:1px solid var(--line);padding-bottom:6px}
.monthhead{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;text-align:left;color:var(--ink)}
.monthhead .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.monthhead b{font-size:17px}
.mchev{flex:none;transform:rotate(90deg);transition:transform .15s;color:var(--muted)}
.mchev.open{transform:rotate(-90deg)}
.dailysum{cursor:default}
#hq{margin-bottom:4px}
.page nav{flex:none;position:sticky;bottom:0;z-index:3;margin-top:auto}
html[data-kb="1"] .page nav{display:none}
.top .round[data-act=find]{color:var(--ink)}

/* Terms, Privacy, Refunds inside the app */
.doc{gap:8px}
.docbody{display:block;padding-top:8px}
.docbody h2{font-size:17px;font-weight:700;margin:24px 0 6px;line-height:1.3}
.docbody p,.docbody li{color:var(--muted);font-size:15.5px;line-height:1.55;margin:0 0 10px}
.docbody ul{margin:0 0 10px;padding-left:20px}
.docbody li{margin:0 0 6px}
.docbody a{color:var(--pos)}
.doc .legal{margin-top:22px;padding-bottom:16px}
/* Welcome: logo, words and button stay together in the middle; the small legal line sits at the bottom */
.welcome.c{gap:30px}
.welcome.c>.wtext{flex:0 0 auto;margin-top:auto}
.welcome.c>.legal{margin-top:auto}
