.wallet-page{max-width:820px;margin:0 auto;padding-bottom:16px;min-width:0}
.wallet-page-heading,.wallet-section-heading,.wallet-address-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.wallet-page-heading{margin-bottom:24px}.wallet-page-heading h1{margin:5px 0 0;font-size:clamp(28px,4vw,40px);line-height:1.3}.wallet-kicker{margin:0;color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.16em;line-height:1.5}
.shell .wallet-refresh{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border-radius:50%;background:transparent;color:var(--ink);border:1px solid var(--line)}
.wallet-balance-card{padding:30px;border-radius:24px;background:linear-gradient(120deg,#143c32,#27614d);color:#fff;box-shadow:0 10px 26px #12352b12;overflow:hidden}
.wallet-balance-top{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:#deeee3}.wallet-coin-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #bbd7ba8c;font:italic 24px Georgia,serif;color:#e1eacb}
.wallet-amount{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;margin:14px 0 0;line-height:1.15}.wallet-amount strong{font-size:clamp(36px,7vw,64px);font-weight:450;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}.wallet-amount>span{color:#d3e4d9;font-size:18px}.wallet-coin-name{font-size:13px;color:#d3e4d9;margin:9px 0 24px}
.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shell .wallet-actions button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:13px 12px;border-radius:14px;font-size:16px;line-height:1.4;font-weight:600;letter-spacing:0;box-shadow:none}.shell .wallet-actions .wallet-send{background:#f4f6e9;border:1px solid #f4f6e9;color:#173e33}.shell .wallet-actions .wallet-receive{background:#ffffff12;border:1px solid #c0d6c999;color:#fff}.shell .wallet-actions .wallet-send:hover{background:#e6ebce}.shell .wallet-actions .wallet-receive:hover{background:#ffffff26}.shell .wallet-actions button:disabled{opacity:.55;cursor:not-allowed}.wallet-optional{margin:14px 0 24px;font-size:13px;text-align:center;color:var(--muted)}.wallet-paused{font-size:13px;margin:16px 0 0;color:#f4f6e9}
.wallet-address-card{border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--paper);margin:0 0 28px}.wallet-address-head{align-items:flex-start}.wallet-address-head h2{font-weight:600;line-height:1.5;margin:5px 0 14px;font-size:16px}.wallet-address-head>.icon{color:var(--muted);flex:none}.wallet-address{display:block;font:13px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.015em;overflow-wrap:anywhere;white-space:normal;color:var(--ink);margin:0 0 15px}.wallet-address-actions{display:flex;gap:8px;flex-wrap:wrap}.shell .wallet-address-actions button{min-height:42px;padding:8px 12px;font-size:13px;border-radius:10px}
.wallet-history{padding:0 0 12px}.wallet-section-heading h2{font-size:21px;margin:0}.wallet-section-heading>.muted{font-size:12px}.wallet-history-filters,.wallet-send-modes{display:flex;gap:6px;margin:18px 0 8px;flex-wrap:wrap}.shell .wallet-history-filters button,.wallet-send-modes button{border:1px solid transparent;background:transparent;color:var(--muted);font-size:13px;min-height:40px;padding:8px 14px;border-radius:24px;line-height:1.4}.shell .wallet-history-filters button[aria-pressed="true"],.wallet-send-modes button[aria-pressed="true"]{background:#e6eee6;color:#204b37;border-color:#ccdacb;font-weight:600}
.wallet-entry{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:13px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start}.wallet-entry-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#edf0eb;color:#56685c}.wallet-entry-icon.incoming{background:#e2eee4;color:#286242}.wallet-entry-icon svg{width:20px;height:20px}.wallet-entry-copy{min-width:0;line-height:1.5}.wallet-entry-copy>strong{font-size:14px;font-weight:550}.wallet-entry-person{display:block;font-size:13px;overflow-wrap:anywhere}.wallet-entry-copy time{display:block;font-size:11px;color:var(--muted);margin-top:3px}.wallet-entry-copy p{font-size:12px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.wallet-entry-amount{text-align:right;align-self:center;max-width:220px;overflow-wrap:anywhere}.wallet-entry-amount strong{font-size:18px;font-weight:550;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.wallet-entry-amount small{display:block;font-size:10px;color:var(--muted)}.wallet-entry-amount.incoming{color:#286242}.wallet-empty{padding:24px 0;color:var(--muted);font-size:14px}
.wallet-details{border-top:1px solid var(--line);margin-top:12px}.wallet-details summary{padding:20px 0;cursor:pointer;font-size:14px;font-weight:550}.wallet-details>div{padding:0 0 22px}.wallet-details p{font-size:13px;line-height:1.9}.wallet-details dl{font-size:13px}.wallet-details dl>div{display:flex;justify-content:space-between;gap:16px;margin:8px 0}.wallet-details dd{margin:0}.wallet-membership .nft-grid{margin-top:18px}
dialog.wallet-dialog{max-width:500px;width:calc(100% - 24px);border-radius:22px;padding:30px 24px;max-height:calc(100dvh - 40px);overflow-y:auto}.wallet-dialog-content{min-width:0}.wallet-dialog-content h2{font-size:26px;line-height:1.4;margin:8px 0 20px;padding-right:24px}.wallet-send-balance{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:0}.wallet-send-balance strong{color:var(--ink);font-weight:550}.wallet-dialog-content label{font-size:13px}.wallet-dialog-content input,.wallet-dialog-content select{font-size:16px;min-height:48px;min-width:0}.wallet-dialog-content .wallet-amount-input{font-size:30px;letter-spacing:-.025em;padding:14px}.wallet-field-hint{font-size:12px;color:var(--muted);margin:4px 0 16px}.wallet-dialog-content .wallet-optional{margin:20px 0 14px}.wallet-dialog-content .wide{min-height:50px;border-radius:12px;font-size:15px}.wallet-dialog-content .wallet-edit{margin-top:8px}.wallet-send-modes{display:grid;grid-template-columns:1fr 1fr;margin:20px 0}.wallet-send-modes button{border-radius:10px;padding:10px 6px}
.wallet-receive-panel{text-align:center}.wallet-receive-panel h2{padding:0;margin-bottom:8px}.wallet-owner{font-size:14px;overflow-wrap:anywhere;margin:0 0 20px}.wallet-qr{background:#fff;color:#173e33;border:1px solid #e5e9e1;border-radius:16px;width:min(100%,244px);min-height:200px;aspect-ratio:1;margin:0 auto 24px;display:grid;place-items:center;padding:10px}.wallet-qr svg{width:100%;height:auto;display:block;shape-rendering:crispEdges}.wallet-qr p{font-size:13px;padding:12px}.wallet-receive-panel label{text-align:left}.wallet-receive-panel .wallet-address-input{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:0;min-height:48px;padding:10px 8px}.wallet-receive-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px}.wallet-receive-actions button{min-height:46px;border-radius:12px}.wallet-receive-panel>.muted{font-size:13px;line-height:1.8;margin:18px 0 8px}.wallet-receive-empty{padding:28px 0}.wallet-receive-empty .icon{width:52px;height:52px}.wallet-receive-empty p{font-size:14px;margin-top:14px}.wallet-confirm-recipient{display:flex;gap:12px;align-items:center;margin:16px 0}.wallet-confirm-recipient div{min-width:0}.wallet-confirm-recipient span{font-size:12px;color:var(--muted)}.wallet-confirm-recipient strong{display:block;font-size:17px;overflow-wrap:anywhere}.wallet-confirm-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:30px 0}.wallet-confirm-amount strong{font-size:44px;font-weight:500;letter-spacing:-.04em;overflow-wrap:anywhere;max-width:100%}.wallet-confirm-amount>span{font-size:16px;color:var(--muted)}.wallet-confirm-note{overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px}.wallet-dialog-content>.muted{font-size:13px}.wallet-dialog textarea[readonly]{font-family:ui-monospace,monospace;min-height:120px}
[data-theme="dark"] .wallet-address-card{background:#151e18}[data-theme="dark"] .wallet-entry-icon{background:#293b30;color:#c3d3c8}[data-theme="dark"] .wallet-entry-icon.incoming{background:#234432;color:#c2e9cc}[data-theme="dark"] .wallet-entry-amount.incoming{color:#aed9b9}[data-theme="dark"] .wallet-history-filters button[aria-pressed="true"],[data-theme="dark"] .wallet-send-modes button[aria-pressed="true"]{background:#2a4935;color:#d7eddb;border-color:#52735c}
.wallet-receive-address-label{font-size:13px;color:var(--muted);margin:0 0 8px}.wallet-receive-panel .wallet-address{font-size:14px;line-height:1.8;max-width:100%;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.wallet-nfts{border-top:1px solid var(--line);padding-top:28px;margin-top:10px}.wallet-nft-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.shell .wallet-nft-actions button{display:flex;gap:6px;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;font-size:13px;border-radius:12px}.wallet-nft-actions svg{width:18px;height:18px}.wallet-nft-item{min-width:0}.wallet-nft-item>.wide{margin-top:10px;min-height:46px}.wallet-nft-item>.wallet-field-hint{text-align:center;margin-top:12px}.wallet-nft-preview{display:flex;flex-direction:column;align-items:center;gap:12px;margin:22px 0;padding:20px;border:1px solid var(--line);border-radius:16px}.wallet-nft-preview img{max-width:100%;height:180px;object-fit:contain;border-radius:10px}.wallet-nft-preview strong{overflow-wrap:anywhere;max-width:100%;font-size:19px}.wallet-nft-preview span{font-size:12px;color:var(--muted)}.wallet-village{margin-top:28px;border:1px solid var(--line);border-radius:18px;padding:22px;display:grid;gap:16px;grid-template-columns:1fr}.wallet-village h2{font-size:21px;margin:6px 0}.wallet-village p:not(.wallet-kicker){font-size:14px;margin:0;color:var(--muted)}.wallet-village>div:last-child{display:flex;flex-wrap:wrap;gap:10px}.shell .wallet-village button{min-height:46px;font-size:14px;border-radius:12px}
@media(max-width:600px){.wallet-page-heading{margin-bottom:20px}.wallet-balance-card{padding:24px 22px;border-radius:22px}.wallet-amount strong{font-size:clamp(34px,12vw,54px)}.wallet-address-card{padding:18px}.wallet-entry{grid-template-columns:34px minmax(0,1fr) minmax(70px,auto);gap:10px}.wallet-entry-icon{width:34px;height:34px}.wallet-entry-amount{max-width:128px}.wallet-entry-amount strong{font-size:16px}.wallet-section-heading h2{font-size:20px}.wallet-address-actions button{flex:1}.wallet-actions{gap:10px}}
@media(max-width:360px){.wallet-balance-card{padding:20px 16px}.wallet-actions{gap:8px}.shell .wallet-actions button{font-size:14px;gap:6px}.wallet-history-filters{gap:2px}.shell .wallet-history-filters button{padding:8px 10px}dialog.wallet-dialog{padding:28px 18px}}
/* The scan action stays one full-width tap below send / receive on small screens. */
.shell .wallet-scan-entry{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;min-height:50px;padding:12px;border:1px solid #bdd5c7;border-radius:14px;background:#fff;color:#173e33;font-size:16px;font-weight:600;line-height:1.5}.shell .wallet-scan-entry:disabled{opacity:.55;cursor:not-allowed}
.wallet-dialog-content .wallet-scan-button{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;background:var(--green,#173e33);color:white;border:1px solid #32604b}.wallet-scan-button svg{flex:none}.wallet-scanned-recipient{display:flex;gap:12px;align-items:center;padding:14px;background:#eaf2eb;border-radius:12px;margin-top:16px;color:#173e33}.wallet-scanned-recipient div{min-width:0}.wallet-scanned-recipient span{font-size:14px}.wallet-scanned-recipient strong{display:block;font-size:18px;overflow-wrap:anywhere}
.wallet-scan-view{position:relative;width:100%;aspect-ratio:1;max-height:42dvh;overflow:hidden;border-radius:18px;background:#102c24}.wallet-scan-view video{display:block;width:100%;height:100%;object-fit:cover}.wallet-scan-frame{position:absolute;inset:16%;border:3px solid #fff;border-radius:18px;box-shadow:0 0 0 150px #00160d55;pointer-events:none}.wallet-scanner [data-scan-status]{font-size:16px;line-height:1.65;min-height:3.3em;margin:18px 0;color:var(--ink);overflow-wrap:anywhere}.wallet-scan-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wallet-scan-controls button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;font-size:14px;line-height:1.5;padding:10px 8px;border-radius:12px}.wallet-scan-controls svg{flex:none;width:20px;height:20px}.wallet-scanner .wallet-scan-back{margin-top:12px}.wallet-scanner .wallet-field-hint{text-align:center;font-size:14px;margin:12px 0 0}.wallet-scanner input[hidden]{display:none}
[data-theme="dark"] .wallet-scanned-recipient{background:#244535;color:#deeee3}@media(max-width:360px){.wallet-scan-controls{grid-template-columns:1fr}.wallet-scanner h2{font-size:24px}}
