:root{--ink:#071625;--navy:#0b2034;--navy2:#102a41;--mint:#52e0cf;--paper:#f4f7f9;--white:#fff;--muted:#647483;--line:#dce4e9;--green:#177d67;--amber:#a56814;--red:#b44949;--shadow:0 18px 50px rgba(7,22,37,.12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{background:var(--ink)}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden;background:linear-gradient(180deg,var(--ink) 0 260px,var(--paper) 260px);font-size:16px}.shell{min-height:100vh;padding-bottom:94px}.topbar{height:76px;max-width:1120px;margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;color:white}.brand{display:flex;align-items:center;gap:11px;font-weight:760;letter-spacing:-.02em}.brandmark{width:35px;height:35px;border-radius:11px;background:var(--mint);color:var(--ink);display:grid;place-items:center;font-weight:900}.top-actions{display:flex;align-items:center;gap:10px}.dev-pill,.secure-pill{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:8px 11px;color:#b7c5cf}.secure-pill{display:none}.avatar{width:38px;height:38px;border:0;border-radius:50%;background:#17344c;color:#d7e3ea;font-weight:700;cursor:pointer}.main{width:min(calc(100% - 28px),1120px);margin:0 auto}.view{display:none}.view.active{display:block}.page-head{color:#fff;margin:20px 4px 30px}.page-head h1{font-size:clamp(1.8rem,5vw,2.35rem);margin:0 0 7px;letter-spacing:-.04em}.page-head p{color:#aebdca;margin:0;line-height:1.5}.balance-card{background:var(--white);border-radius:26px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}.balance-card:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-82px;top:-92px;border:38px solid rgba(82,224,207,.14)}.eyebrow{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.09em;font-weight:720}.balance{font-size:clamp(2.55rem,10vw,4.1rem);letter-spacing:-.065em;margin:8px 0 2px;font-weight:760;line-height:1}.unit{font-size:.42em;color:var(--muted);letter-spacing:0}.usd{color:var(--muted);font-size:.94rem}.split{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:16px}.metric span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:5px}.metric strong{font-size:1rem}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 24px}.action{min-height:82px;background:#fff;border:1px solid rgba(7,22,37,.06);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--ink);text-decoration:none;font-weight:700;font-size:.85rem;box-shadow:0 8px 24px rgba(7,22,37,.06);cursor:pointer}.action svg{width:21px;height:21px;stroke:var(--ink);fill:none;stroke-width:1.8}.section{margin:24px 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-title h2{font-size:1.05rem;margin:0;letter-spacing:-.02em}.section-title button{border:0;background:none;color:#285f78;font-weight:700;cursor:pointer;padding:10px}.card{background:#fff;border-radius:20px;border:1px solid rgba(7,22,37,.055)}.activity{list-style:none;margin:0;padding:4px 16px}.tx{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid var(--line)}.tx:last-child{border-bottom:0}.tx-icon{width:40px;height:40px;border-radius:13px;background:#edf5f4;display:grid;place-items:center;color:var(--green);font-weight:800}.tx-main strong,.tx-value strong{display:block;font-size:.9rem}.tx-main span,.tx-value span{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}.tx-value{text-align:right}.positive{color:var(--green)}.negative{color:var(--ink)}.reserve{padding:18px;display:flex;align-items:center;gap:14px}.ring{width:46px;height:46px;border-radius:50%;background:#fff;border:6px solid #d9e4e7;border-top-color:var(--mint);position:relative}.ring:after{content:"";position:absolute;inset:7px;border-radius:50%;background:white}.reserve-copy strong{display:block;font-size:.92rem}.reserve-copy span{display:block;color:var(--muted);font-size:.78rem;line-height:1.45;margin-top:4px}.reserve .status{margin-left:auto;color:var(--amber);background:#fff6e8;border-radius:999px;padding:7px 10px;font-size:.72rem;font-weight:750}.form-card{padding:22px}.field{margin-bottom:18px}.field label{display:block;font-size:.82rem;font-weight:720;margin-bottom:8px}.input-wrap{display:flex;align-items:center;border:1px solid #cfd9df;border-radius:15px;padding:0 14px;background:#fff;transition:.2s}.input-wrap:focus-within{border-color:#318c88;box-shadow:0 0 0 3px rgba(82,224,207,.2)}input{width:100%;border:0;outline:0;background:transparent;min-height:52px;font:inherit;color:var(--ink)}.suffix{font-weight:750;color:var(--muted)}.hint{font-size:.76rem;color:var(--muted);margin-top:7px;line-height:1.45}.quote{background:#f3f8f8;border-radius:16px;padding:7px 15px;margin:18px 0}.quote-row{display:flex;justify-content:space-between;padding:11px 0;font-size:.84rem;border-bottom:1px solid #dae8e7}.quote-row:last-child{border:0}.quote-row span{color:var(--muted)}.quote-row strong{font-weight:750}.primary{width:100%;min-height:54px;border:0;border-radius:16px;background:var(--ink);color:#fff;font-size:.94rem;font-weight:750;cursor:pointer;transition:.2s}.primary:hover{background:var(--navy2);transform:translateY(-1px)}.primary:disabled{opacity:.48;cursor:not-allowed;transform:none}.disclaimer{color:var(--muted);font-size:.74rem;line-height:1.55;text-align:center;margin:13px 6px 0}.settlement{display:none;margin-top:14px;padding:15px;border-radius:14px;background:#edf8f5;color:var(--green);font-size:.82rem}.settlement.show{display:block}.filters{display:flex;gap:8px;overflow:auto;padding:0 0 12px;scrollbar-width:none}.filter{border:1px solid #d4dde2;background:#fff;color:var(--muted);border-radius:999px;padding:9px 14px;white-space:nowrap;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}.filter.active{background:var(--ink);border-color:var(--ink);color:#fff}.history-card .tx{padding:15px 16px}.status-ok{color:var(--green)!important}.status-pending{color:var(--amber)!important}.profile-grid{display:grid;gap:14px}.profile-card{padding:20px}.profile-card h2{font-size:1rem;margin:0 0 15px}.setting{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;border-top:1px solid var(--line)}.setting:first-of-type{border-top:0}.setting div strong{display:block;font-size:.86rem}.setting div span{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}.segmented{display:flex;background:#edf2f5;border-radius:11px;padding:3px}.segmented button{min-height:38px;min-width:42px;border:0;border-radius:9px;background:transparent;font-weight:750;color:var(--muted);cursor:pointer}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(7,22,37,.08)}.link-btn{color:#275b73;text-decoration:none;font-size:.84rem;font-weight:700;padding:12px 0}.bottom-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:7px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(7,22,37,.06)}.nav-item{min-height:56px;border:0;background:none;color:#7a8995;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;font-size:.68rem;font-weight:680;cursor:pointer}.nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.nav-item.active{color:var(--ink)}.toast{position:fixed;z-index:30;left:50%;bottom:94px;transform:translate(-50%,20px);background:var(--ink);color:white;border-radius:12px;padding:12px 16px;font-size:.82rem;opacity:0;pointer-events:none;transition:.25s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:760px){body{background:linear-gradient(180deg,var(--ink) 0 310px,var(--paper) 310px)}.topbar{height:86px;padding:0 30px}.main{width:min(calc(100% - 60px),1120px)}.secure-pill{display:block}.page-head{margin:35px 0 30px}.home-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:20px;align-items:start}.balance-card{padding:32px}.quick-actions{margin-top:20px}.home-side .section:first-child{margin-top:0}.form-card{max-width:630px;padding:30px}.history-card{max-width:800px}.profile-grid{grid-template-columns:1fr 1fr}.bottom-nav{top:17px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:auto;display:flex;border:1px solid rgba(255,255,255,.1);background:rgba(17,43,65,.65);box-shadow:none;border-radius:16px;padding:4px;backdrop-filter:blur(16px)}.nav-item{min-height:44px;min-width:92px;flex-direction:row;font-size:.77rem;border-radius:12px}.nav-item svg{width:17px}.nav-item.active{background:#fff;color:var(--ink)}.toast{bottom:30px}.shell{padding-bottom:40px}}
@media(max-width:600px){.dev-pill{display:none}.balance-card{padding:20px}.balance{font-size:2.3rem}.quick-actions{gap:7px}.action{min-height:76px}.main{width:min(calc(100% - 20px),1120px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Mobile comfort pass: compact chrome, thumb-safe actions, and unobstructed scrolling. */
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid rgba(82,224,207,.72);outline-offset:3px}
@media(max-width:600px){
  body{background:linear-gradient(180deg,var(--ink) 0 244px,var(--paper) 244px)}
  .shell{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
  .topbar{height:70px;padding:0 14px}
  .avatar{width:38px;height:38px}
  .main{width:calc(100% - 20px)}
  .page-head{margin:28px 4px 28px}
  .page-head h1{font-size:1.82rem}
  .page-head p{max-width:34ch}
  .balance-card{padding:21px 20px;border-radius:24px}
  .balance{font-size:2.42rem}
  .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px}
  .action{min-height:74px;border-radius:17px;font-size:.82rem}
  .section{margin:26px 0}
  .card{border-radius:19px}
  .activity{padding-inline:16px}
  .tx{grid-template-columns:42px minmax(0,1fr) auto;gap:10px}
  .tx-main{min-width:0}
  .tx-main strong,.tx-main span{overflow-wrap:anywhere}
  .tx-value{min-width:76px;max-width:104px}
  .tx-value strong{font-size:.82rem;white-space:nowrap}
  .form-card{padding:24px 22px}
  .quote-row{gap:14px}
  .quote-row strong{max-width:58%;text-align:right;overflow-wrap:anywhere}
  .bottom-nav{padding-top:6px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .nav-item{min-height:58px;font-size:.75rem}
}
.connection-note{display:flex;gap:11px;align-items:flex-start;margin-top:20px;padding:14px;border-radius:15px;background:#f2f6f7;color:var(--muted);font-size:.78rem;line-height:1.45}.connection-note strong{display:block;color:var(--ink);font-size:.84rem;margin-bottom:3px}.connection-dot{width:9px;height:9px;flex:0 0 auto;margin-top:5px;border-radius:50%;background:#9aa8b1;box-shadow:0 0 0 4px #e2e8eb}.connection-banner{display:flex;align-items:center;gap:11px;margin-bottom:22px;padding:13px 14px;border-radius:14px;background:#f2f6f7;color:var(--muted);font-size:.82rem;font-weight:700}.connection-banner .connection-dot{margin-top:0}.action:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}.empty-state{min-height:190px;padding:30px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#edf3f5;color:#82919b;font-weight:800;margin-bottom:13px}.empty-state strong{font-size:.92rem}.empty-state p{max-width:34ch;margin:7px 0 0;color:var(--muted);font-size:.78rem;line-height:1.5}.disconnected-card:after{border-color:rgba(154,168,177,.11)}
