:root{
  color-scheme:light;--ink:#123668;--muted:#496886;--blue:#003cb4;--navy:#112981;--ice:#edf6ff;--line:#dae5ef;--mint:#b6efdc;--vh:100dvh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;color:var(--ink);background:#eaf0f7;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{background:radial-gradient(ellipse at 50% 30%,#f7faff,#e7edf5);-webkit-text-size-adjust:100%}
button,input,select{font:inherit;color:inherit}
button{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:default}
button:active:not(:disabled){filter:brightness(.88)}
button:focus-visible,select:focus-visible{outline:3px solid #4f8cf1;outline-offset:2px}
button>svg{flex-shrink:0}
input{min-width:0;border:0;outline:0;max-width:100%;border-radius:0;appearance:none;background:transparent}
input::placeholder{color:#62778c;opacity:1}
h1,h2,h3,p{margin:0}
h1{font-size:1.75rem;line-height:1.14;letter-spacing:-.035em}
h2{font-size:.95rem;line-height:1.35}
small{font-size:.875rem}
[hidden]{display:none!important}
#app{position:fixed;inset:var(--vtop,0px) 0 auto;margin:auto;width:100%;max-width:480px;height:var(--vh);display:flex;flex-direction:column;background:white;padding-top:env(safe-area-inset-top,0px);overflow:hidden;isolation:isolate;box-shadow:0 0 70px #15376714}
#app:before{content:"";position:absolute;z-index:5;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--navy);pointer-events:none}
.stage,.screen{flex:1;min-height:0;position:relative;overflow:hidden}
.screen{height:100%;width:100%;display:flex;flex-direction:column;background:white}
.screen.leaving{position:absolute;inset:0;pointer-events:none}
.scroll,.home-scroll{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;min-height:0;scrollbar-width:none}
.scroll::-webkit-scrollbar,.home-scroll::-webkit-scrollbar,.carousel::-webkit-scrollbar{display:none}
.inset,.foot{padding-left:16px;padding-right:16px}
.tabs{display:flex;flex:none;min-height:58px;align-items:stretch;padding-bottom:max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;z-index:3}
.tabs button{flex:1;position:relative;min-width:0;min-height:50px;flex-direction:column;gap:3px;color:#45668b;font-size:.69rem;font-weight:550}
.tabs button[aria-current]{color:var(--blue)}
.tabs button[aria-current]:before{content:"";position:absolute;top:-1px;width:42px;height:3px;border-radius:0 0 2px 2px;background:#196dc6}
.screen-home{background:white}
.home-scroll{background:white}
.navy{background:var(--navy);color:white;padding-bottom:22px}
.carousel{display:flex;gap:16px;overflow:auto hidden;scroll-snap-type:x mandatory;scroll-padding-inline:8.5%;padding:0 8.5%;scrollbar-width:none}
.story{position:relative;flex:0 0 100%;min-width:0;border-radius:9px;overflow:hidden;scroll-snap-align:start;background:var(--blue);color:white}
.story-open{width:100%;height:100%;display:flex;align-items:stretch;flex-direction:column;gap:0;text-align:left}
.story-art{display:grid;place-items:center;width:100%;height:clamp(100px,34.6vw,152px);color:#a9f1dd;background:#2f69cd}
.story-copy{display:flex;flex-direction:column;gap:7px;padding:15px 16px 14px;line-height:1.25;min-height:76px;font-size:.94rem}
.story-copy strong{font-weight:570}
.story-close{position:absolute;right:8px;top:8px;width:40px;height:40px;color:white}
.story-close:before{content:"";position:absolute;width:25px;height:25px;border-radius:100%;background:#153783}
.story-close svg{z-index:1}
.clear-card{min-height:180px;display:grid;justify-items:center;align-content:center;gap:12px}
.partner-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 6.5% 8px;font-size:.9rem;min-height:58px}
.light-link{color:#fff;font-weight:600;min-height:36px;font-size:.88rem}
.partner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 2.5%}
.partner{min-width:0;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;padding:0 2px}
.partner>span{width:56px;height:56px;display:grid;place-items:center;border-radius:15px;background:#073ca7;color:#c3ddff}
.partner strong{font-size:.825rem;line-height:1.16;font-weight:650;max-width:84px}
.home-actions{display:flex;align-items:flex-start;justify-content:space-evenly;gap:4px;padding:clamp(24px,5.2vh,52px) 9% 18px}
.round-action{flex:1;flex-direction:column;gap:10px;color:#173b67}
.round-action span{width:56px;height:56px;border-radius:50%;background:var(--blue);color:white;display:grid;place-items:center}
.round-action strong{font-size:.84rem}
.pay-bar,.foot{padding:14px 16px 16px;background:#fff;flex:none}
.primary{background:var(--blue);color:white;border-radius:4px;min-height:49px;width:100%;font-size:1rem;font-weight:650;line-height:1.2;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px}
.primary:disabled{color:#74777d;background:#f2f3f5}
.top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;min-height:48px;padding:0 9px;flex:none;background:#fff;gap:3px}
.top h1{text-align:center;letter-spacing:-.015em;font-size:1.04rem;line-height:1.2;color:#172e4c;white-space:nowrap}
.top button{color:#1767a4;font-size:.95rem;min-height:44px}
.top .back{justify-self:start;justify-content:flex-start;gap:2px;min-width:0;max-width:100%}
.back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top .cancel{justify-self:end}
.large{padding-top:clamp(20px,5.6vh,49px)}
.large h1{margin:0 0 13px}
.search{display:flex;align-items:center;gap:8px;background:#eff0f3;border-radius:10px;min-height:36px;padding:2px 10px;color:#637688}
.search:focus-within,.phone-field:focus-within,.field:focus-within,.amount-card:focus-within{box-shadow:inset 0 0 0 1.5px #568dc6}
.search input{width:100%;font-size:16px;min-height:32px}
.chip{min-height:36px;border-radius:18px;background:#d6eafb;color:#0d4278;font-size:.82rem;font-weight:700;margin-top:18px;padding:0 14px}
.chip.chosen{color:white;background:var(--blue)}
.month,.contacts h2,.large>h2{margin:28px 0 18px;color:#153f70}
.row{display:flex;text-align:left;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:66px;padding:7px 0;font-size:.94rem}
.row .rowtext{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
.rowtext strong,.rowtext small,.recipient b{font-weight:500;overflow-wrap:anywhere}
.rowtext small,.recipient small{color:var(--muted);line-height:1.25}
.bubble,.avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border-radius:50%;background:#d5e8fb;color:#164c87}
.avatar{background:var(--ice);font-size:.83rem}
.value{text-align:right;align-self:flex-start;padding-top:7px;font-variant-numeric:tabular-nums;white-space:nowrap}
.value small{display:block;font-size:.7rem}
.detail{padding-top:12px}
.summary{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:var(--ice);border-radius:8px;padding:22px 24px;color:#174273}
.summary>b{font-size:1rem}
.summary span,.summary .link{font-size:.91rem}
.summary-bottom{width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:12px}
.summary-bottom strong,.review-sum h2{font-size:1.7rem;letter-spacing:-.025em;color:#092f70;font-variant-numeric:tabular-nums}
.detail h2{margin:24px 0 7px}
.detail p,.extra p,.inset>p,.sheet-head+p{line-height:1.5}
.message-area{border-top:1px solid var(--line);margin-top:22px;padding:28px 0}
.message-area p{max-width:82%;margin-left:auto;background:var(--ice);border-radius:12px 12px 2px 12px;padding:14px 16px;overflow-wrap:anywhere;white-space:pre-wrap}
.amount-body,.manual{min-height:0;flex:1;display:flex;flex-direction:column}
.amount-body{padding:12px 16px max(16px,env(safe-area-inset-bottom));gap:16px}
.amount-card{position:relative;display:grid;place-items:center;flex:1;min-height:80px;background:var(--ice);border-radius:5px}
.amount-card input{width:100%;height:100%;text-align:center;font-size:1.85rem;font-weight:650;caret-color:#2267bc;color:#123f77;font-variant-numeric:tabular-nums}
.amount-card input::placeholder{color:#41699c}
.contacts-head{padding:7px 16px}
.contacts-head .search{background:#e3e9f1}
.contacts>.row:first-child{margin:19px 0 10px}
.contacts h2{margin:22px 0 12px}
.picked .avatar{background:#bfefdf}
.field,.phone-field{border:1px solid #a4bfdb;background:var(--ice);border-radius:4px;min-height:56px;margin:16px 0 0;padding:8px 14px}
.field{display:flex;flex-direction:column;gap:3px;font-size:.8rem;color:#315d86}
.field input,.field select,.phone-field input,.phone-field select{font-size:16px}
.field input{flex:1}
.field select,.phone-field select{background:transparent;border:0;min-height:32px}
.phone-field{display:flex;align-items:center;gap:8px}
.phone-field input{width:100%;height:36px}
.phone-field input::placeholder{color:#708da8}
.toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;font-size:.92rem;padding:24px 2px;cursor:pointer}
.toggle-row input{position:absolute;right:0;width:50px;height:30px;opacity:0}
.toggle-row input:focus-visible+.switch{outline:2px solid var(--blue)}
.switch{width:50px;height:30px;border-radius:20px;background:#e2e4e7;padding:3px;display:flex;align-items:center}
.switch:before{content:"";width:24px;height:24px;border-radius:100%;background:white;box-shadow:0 1px 3px #0002;transition:transform .18s}
.toggle-row input:checked+.switch{background:var(--blue)}
.toggle-row input:checked+.switch:before{transform:translateX(20px)}
.manual .foot,.screen-contacts .foot{padding-bottom:max(16px,env(safe-area-inset-bottom))}
#manual-error{color:#a52d26;font-size:.9rem}
.review-sum{position:relative;text-align:center;padding-top:12px}
.review-sum h2{margin:9px 0 0}
.rule{margin:clamp(16px,4vh,42px) 16px 0;display:flex;align-items:center;gap:15px;font-size:.73rem;font-weight:700;letter-spacing:.05em}
.rule:before,.rule:after{content:"";height:1px;background:var(--line);flex:1}
.recipient{display:flex;align-items:center;flex-direction:column;margin:clamp(18px,5vh,48px) 16px 20px;gap:5px}
.big.avatar{width:104px;height:104px;font-size:1.85rem;margin-bottom:10px}
.recipient b{font-size:1.13rem;text-align:center}
.recipient small{font-size:1rem}
.compose{border-top:1px solid var(--line);padding:0 16px max(20px,calc(env(safe-area-inset-bottom) + 5.7vh));flex:none}
.message-input{min-height:54px;display:flex;align-items:center;gap:6px}
.message-input input{flex:1;width:100%;height:44px}
.message-input .bubble{width:34px;height:34px;background:var(--ice)}
.emojis{display:flex;justify-content:space-between;gap:1px;margin:2px 0 clamp(14px,4.8vh,42px)}
.emojis button{height:44px;min-width:36px;font-size:1.4rem}
.keyboard .compose{padding-bottom:10px}
.keyboard .emojis{margin-bottom:6px}
.share-list{padding:5px 24px 18px}
.share-list p{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.share-list p span{overflow-wrap:anywhere}
.extra{padding-bottom:28px}
.extra p,.extra h2,.extra .primary,.feature-art+h2,.field+.primary{margin:16px 0}
.extra h2,.feature-art+h2{font-size:1.25rem}
.feature-art,.wheel-art,.scanner{display:grid;place-items:center;min-height:162px;margin-top:12px;background:var(--ice);color:var(--blue);border-radius:10px}
.scanner{border:2px dashed #79a5d0;background:#f2f8ff}
.wheel-art{background:var(--navy);color:#abf0dc}
.empty,.notice{padding:16px;color:var(--muted);line-height:1.5;background:var(--ice);border-radius:8px;margin:18px 0}
.link{color:var(--blue);font-weight:550;min-height:32px}
.splash,.lock-screen{height:100%;width:100%;display:flex;align-items:center;flex-direction:column}
.splash{justify-content:center;background:var(--blue);color:white;text-align:center}
.splash img{border-radius:22px;animation:appear .5s ease-out}
.splash h1{font-size:1.65rem;margin:18px 0}
.splash p{position:absolute;bottom:7%;font-weight:600;color:#d8e8ff}
.lock-screen{overflow:auto;padding:clamp(30px,7vh,70px) 16px max(24px,env(safe-area-inset-bottom));color:var(--blue)}
.lock-screen h1{margin:clamp(25px,5vh,54px) 0 20px;text-align:center}
.pin-boxes input{position:absolute;inset:0;width:100%;height:100%;z-index:1;color:transparent;caret-color:transparent;font-size:16px;cursor:text}.pin-boxes{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%;max-width:390px}
.pin-boxes i{display:grid;place-items:center;height:clamp(46px,14vw,61px);border:1.5px solid #a6c9f4;background:var(--ice);border-radius:4px}
.pin-boxes input+i:not(.filled),.pin-boxes i.filled+i:not(.filled){border-color:#156de8}
.pin-boxes b{border:1.5px solid #70a7e9;width:13px;height:13px;border-radius:50%;background:transparent}
.pin-boxes .filled b{border-color:var(--blue);background:var(--blue)}
.lock-screen p{margin:22px 0 9px;color:var(--muted);font-size:.9rem}
.unlock-action{width:100%;margin-top:clamp(38px,17vh,160px)}
#toast{position:absolute;z-index:6;top:calc(env(safe-area-inset-top) + 7px);left:16px;right:16px;display:flex;align-items:center;gap:9px;border-radius:6px;background:var(--mint);color:#164f49;padding:4px 10px;min-height:41px;box-shadow:0 3px 12px #10275b24;font-size:.9rem;animation:appear .18s ease-out}
#toast span{flex:1}
#toast button{min-height:36px;min-width:34px}
dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,480px);max-width:100%;max-height:80dvh;padding:10px 20px max(24px,env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;color:var(--ink);box-shadow:0 -5px 30px #001b5318}
dialog[open]{animation:sheet-in .2s ease-out}
dialog::backdrop{background:#081c3e66}
dialog .link{margin-top:12px;width:100%}
dialog p{line-height:1.5;margin:12px 0 18px}
.sheet-handle{width:38px;height:4px;margin:0 auto 12px;background:#c4d1df;border-radius:3px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sheet-head h2{font-size:1.25rem}
.receipt-id{font:600 .95rem/1.5 ui-monospace,monospace;overflow-wrap:anywhere;background:var(--ice);padding:14px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes sheet-in{from{transform:translateY(40%);opacity:0}to{transform:none;opacity:1}}
@media(max-width:350px){.top h1{font-size:.95rem}.top button{font-size:.85rem}.partner strong{font-size:.77rem}.partner>span{width:49px;height:49px}.partner-head{padding-inline:4%}.story-copy{font-size:.88rem}.tabs button{font-size:.67rem}}
@media(max-height:590px){.home-brand{height:40px}.story-art{height:94px}.navy{padding-bottom:14px}.home-actions{padding-top:17px}.big.avatar{width:68px;height:68px}.review-sum{padding-top:4px}.rule,.recipient{margin-top:10px}.compose{padding-bottom:12px}.emojis{margin-bottom:8px}.lock-screen{padding-top:18px}.unlock-action{margin-top:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
.navy{padding-top:clamp(42px,7vh,66px)}
.screen:not(.screen-home,.screen-lock){padding-top:clamp(5px,1.2vh,12px)}
.lock-screen{padding-top:clamp(60px,13vh,130px)}
.lock-screen h1{margin:0 0 22px}
.lock-screen .code-error{min-height:18px;margin:6px 0;color:#9e3f35}
.lock-screen .unlock-action{margin-top:clamp(48px,22vh,170px)}
.keyboard .lock-screen{padding-top:22px}
.keyboard .unlock-action{margin-top:20px}
.pin-hint,.pick{color:var(--blue);font-weight:650;font-size:1.65rem;letter-spacing:.04em}
.summary-bottom small{font-size:.78rem;color:var(--muted)}
.journal-empty{text-align:center;padding:46px 14px}
.journal-empty .bubble{margin:0 auto 12px}
.journal-empty p{margin:8px 0 14px;line-height:1.5}
.splash h1{font-size:2.5rem;font-weight:620;letter-spacing:-.055em;animation:appear .4s ease-out}
#entry-form .primary{margin:16px 0 4px}
dialog:not([open]){display:none}
@media(max-height:500px){.navy{padding-top:22px}.lock-screen{padding-top:20px}.lock-screen .unlock-action{margin-top:16px}}

.keyboard dialog{bottom:max(0px,calc(100dvh - var(--vh) - var(--vtop,0px)));max-height:calc(var(--vh) - 12px);overflow:auto}
