:root{color-scheme:light;--green:#173e31;--muted:#6b7b70;--paper:#f4f6ef;--yellow:#e5ec75;--line:#dfe6d9}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--green);font:15px/1.5 system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;font-weight:650}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7eac49;outline-offset:3px}.app{max-width:500px;margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 22px max(12px,env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column}header{display:flex;justify-content:space-between;align-items:center;padding:8px 0 18px}header a{text-decoration:none;color:var(--green);font-size:23px;font-weight:800;letter-spacing:-.9px}.mark{color:#507747;font-size:26px}.brand-light{font-weight:450}.icon{border:1px solid var(--line);background:transparent;border-radius:50%;width:32px;height:32px;color:var(--green)}main{flex:1;padding-top:20px}h1{font-size:38px;letter-spacing:-1.8px;line-height:1.12;margin:10px 0 15px}h2{font-size:22px;letter-spacing:-.6px;margin:12px 0}p{color:var(--muted);margin:10px 0 20px}label{display:block;font-size:13px;font-weight:600;margin:18px 0 7px}input,select,textarea{width:100%;background:white;border:1px solid var(--line);border-radius:13px;padding:14px;color:var(--green)}textarea{font:15px/1.6 system-ui;resize:vertical;min-height:110px}input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:13px;line-height:1.5}.check input{margin:2px 0}.btn{width:100%;padding:15px 18px;border-radius:14px;background:#e3ebdc;color:var(--green);margin-top:12px;min-height:50px}.primary{background:var(--yellow)}.quiet{background:transparent;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#6d805d}.tiny{font-size:12px;color:var(--muted);line-height:1.6}.small{font-size:13px}.pill{display:inline-block;border-radius:24px;padding:5px 10px;font-size:11px;background:#e4edda;color:#456d38}.balance{background:var(--green);color:white;border-radius:23px;padding:26px;margin:22px 0}.balance .eyebrow{color:#bdd2ae}.funds{font-size:36px;font-weight:700;letter-spacing:-1.5px;margin:14px 0 5px;font-variant-numeric:tabular-nums}.funds small{font-size:14px;font-weight:450;letter-spacing:0}.balance .tiny{color:#c1d0bb}.split{display:flex;gap:10px;align-items:center}.split>*{flex:1}.row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.row:last-child{border:0}.box{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;margin:17px 0}.address{font:14px/1.7 ui-monospace,monospace;overflow-wrap:anywhere;user-select:all}.qr{display:block;width:min(230px,100%);height:auto;margin:24px auto;background:white;image-rendering:pixelated}.words{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0;user-select:none}.word{padding:10px 5px;background:white;border:1px solid var(--line);border-radius:9px;font-size:13px}.word span{font-size:10px;opacity:.6;margin-right:5px}.banner{font-size:12px;border:1px solid #d8dfad;background:#edf0d6;border-radius:12px;padding:10px;margin:5px 0;line-height:1.5}.banner button{background:transparent;text-decoration:underline;color:var(--green)}.warn{color:#8c522d;background:#fff1df;border:1px solid #f0dbc2;padding:12px;border-radius:12px;font-size:12px}.hidden{display:none!important}.error{color:#9b3c34;font-size:13px;margin-top:12px}.positive{color:#367546}.state{margin-top:16px;color:var(--muted);font-size:13px}.state::before{content:'';display:inline-block;width:10px;height:10px;margin-right:8px;border:2px solid #b5c7aa;border-top-color:var(--green);border-radius:100%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}footer{display:flex;justify-content:space-between;color:#829077;font-size:9px;letter-spacing:1px;padding:28px 0 5px}dialog{border:0;border-radius:22px;padding:25px;color:var(--green);max-width:450px;width:calc(100% - 32px);max-height:85dvh}dialog::backdrop{background:#173e3180;backdrop-filter:blur(4px)}.dialog-close{float:right;background:transparent;color:var(--muted);font-size:24px;padding:0 6px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;max-width:90vw;font-size:13px;padding:12px 18px;border-radius:13px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.stat{font-variant-numeric:tabular-nums;font-size:14px}.separator{height:1px;background:var(--line);margin:20px 0}details{font-size:13px;color:var(--muted)}summary{cursor:pointer;color:var(--green);font-weight:600}ul{padding-left:20px}.install{padding:12px;border:1px dashed #b9c8ab;background:transparent;margin-top:22px}body.busy main button,body.busy main input,body.busy main select{pointer-events:none}body.busy main button{opacity:.5}@media(min-width:700px){.app{padding-top:35px}main{padding-top:35px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Madiba's compact homepage. Long recovery and payment screens remain readable. */
:root{--green:#075237;--yellow:#f5cf35}
body.home-screen{background:#075237;color:#fff;overflow:hidden}
body.home-screen .app{height:100dvh;min-height:0;max-width:480px;padding:clamp(12px,3dvh,26px) 24px max(12px,env(safe-area-inset-bottom));overflow:hidden}
body.home-screen header{flex:0 0 auto;padding:0 0 12px}
body.home-screen header a{color:white;font-size:24px}
body.home-screen header .mark{color:var(--yellow)}
body.home-screen .brand-light{color:#d6e7dc}
body.home-screen .icon{color:var(--yellow);border-color:#ffffff40;width:30px;height:30px}
body.home-screen main{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:0;gap:0}
body.home-screen main>.eyebrow{color:#b5d3bf;font-size:10px;letter-spacing:1.6px}
body.home-screen h1{white-space:pre-line;font-size:clamp(32px,5.8dvh,46px);line-height:1.08;letter-spacing:-1.7px;margin:12px 0}
body.home-screen main>p{color:#c9ded0;font-size:14px;line-height:1.45;margin:0 0 22px}
body.home-screen select{color:#fff;background:#ffffff0c;border-color:#ffffff40;min-height:44px;padding:11px 13px;font-size:13px;border-radius:12px}
body.home-screen select option{color:#075237;background:#fff}
body.home-screen main>.home-note{font-size:11px;color:#f5d969;line-height:1.35;margin:10px 0}
body.home-screen main>.home-backup{font-size:11px;color:#bcd6c6;text-align:center;margin:15px 0 2px}
body.home-screen .btn{min-height:46px;padding:12px 16px;margin-top:10px;border-radius:12px;background:#ffffff12;color:#fff}
body.home-screen .btn.primary{background:var(--yellow);color:#123d24}
body.home-screen .btn.home-secondary{background:transparent;color:white;box-shadow:inset 0 0 0 1px #ffffff55}
body.home-screen .btn.home-install{min-height:30px;padding:5px;font-size:12px;color:#f5d969;background:transparent;margin-top:6px}
body.home-screen label{color:#dcebe2;font-size:12px;margin:9px 0 5px}
body.home-screen input{min-height:44px;padding:11px 13px}
body.home-screen footer{flex:0 0 auto;padding:12px 0 0;font-size:8px;letter-spacing:1px;color:#b1cbbb}
body.home-screen .balance{background:#ffffff0a;border:1px solid #ffffff32;border-radius:18px;padding:23px 18px;margin:18px 0 12px;text-align:center}
body.home-screen .balance .eyebrow{color:#bad4c3;font-size:10px}
body.home-screen .funds{font-size:clamp(25px,7.3vw,36px);letter-spacing:-1px;white-space:nowrap;margin:12px 0 6px;font-weight:750}
body.home-screen .balance .tiny{font-size:11px;color:#c5ddcd}
body.home-screen .home-tools{display:flex;justify-content:space-between;gap:12px;margin-top:10px}
body.home-screen .home-tools .btn{flex:1;min-height:32px;padding:6px;font-size:12px;background:transparent;color:#d6e9dd;margin:0}
body.home-screen .banner{flex:0 0 auto;background:#ffffff12;border-color:#ffffff33;color:#fff;font-size:10px;padding:6px 9px;margin:3px 0}
body.home-screen .banner button{color:var(--yellow)}
body.home-screen .error{font-size:12px;line-height:1.35;color:#ffe5cd;max-height:54px;overflow:auto;margin-top:10px}
body.home-screen .state{font-size:12px;line-height:1.35;color:#d0e4d7;margin-top:8px}
body.home-screen dialog{color:#075237;background:#f4f6ef}
body.home-screen dialog .btn{background:#e3ebdc;color:#075237}
body.home-screen dialog .tiny{color:#6b7b70}
@media(max-height:650px){body.home-screen .app{padding-top:12px;padding-bottom:10px}body.home-screen h1{font-size:32px;margin:9px 0}body.home-screen main>p{margin-bottom:12px;font-size:13px}body.home-screen .btn{min-height:42px;padding:10px 14px;margin-top:8px}body.home-screen main>.home-backup{margin-top:11px}body.home-screen .balance{padding:16px;margin:12px 0 8px}body.home-screen footer{padding-top:8px}}
@media(max-height:460px){body.home-screen .app{max-width:840px;padding:8px 20px}body.home-screen header{padding-bottom:4px}body.home-screen h1{font-size:27px;margin:6px 0}body.home-screen main{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;align-content:center;align-items:center}body.welcome-screen main>.eyebrow,body.welcome-screen main>h1,body.welcome-screen main>p:first-of-type{grid-column:1}body.welcome-screen main>select{grid-column:2;grid-row:1 / 3}body.welcome-screen main>.home-note{grid-column:2;grid-row:3}body.welcome-screen main>.primary,body.welcome-screen main>.home-secondary,body.welcome-screen main>label,body.welcome-screen main>input{grid-column:2}body.welcome-screen main>.home-backup,body.welcome-screen main>.home-install{grid-column:1;margin:4px 0}body.home-screen .balance{padding:10px;margin:4px 0;grid-column:1;grid-row:2 / 5}body.dashboard-screen main>.split,body.dashboard-screen main>.home-tools,body.dashboard-screen main>.home-backup,body.dashboard-screen main>.home-note{grid-column:2}body.home-screen .funds{font-size:25px;margin:4px 0}body.home-screen .btn{min-height:36px;padding:7px 12px}body.home-screen footer{padding-top:4px}}

.password-field{position:relative;width:100%;flex-shrink:0}.password-field input{width:100%;padding-right:76px;box-sizing:border-box}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);min-height:44px;min-width:56px;padding:6px 10px;background:transparent;border:0;border-radius:8px;color:inherit;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.password-toggle:focus-visible{outline:2px solid #c6a600;outline-offset:1px}
body.home-screen select{appearance:none;-webkit-appearance:none;padding-right:48px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 20px center;background-size:16px}body.welcome-screen main>.password-field{grid-column:2}
