
.wallet-panel { position:absolute; inset:0; display:grid; grid-template-columns:170px minmax(0,1fr); color:var(--nav-ink); font:12px/1.4 "Segoe UI",sans-serif; }
.wallet-panel[hidden],.wallet-panel [hidden] { display:none!important; }
.wallet-sidebar { padding:16px 13px; border-right:var(--hud-divider-width,1px) solid var(--nav-divider); display:flex; flex-direction:column; gap:12px; min-height:0; }
.wallet-sidebar h1,.wallet-screen h2 { margin:0; font-size:18px; }
.wallet-balance-screen { padding:12px; border:1px solid var(--nav-accent); border-radius:8px; background:linear-gradient(135deg,color-mix(in srgb,var(--nav-accent) 15%,var(--nav-background)),var(--nav-background)); display:flex; flex-direction:column; gap:3px; }
.wallet-balance-screen small { font-size:9px; letter-spacing:.08em; } .wallet-balance-screen strong { font-size:25px; } .wallet-balance-screen span { font-size:10px; opacity:.8; }
.wallet-account { display:flex; justify-content:space-between; gap:8px; font-size:11px; } .wallet-account strong { font-size:14px; }
.wallet-sidebar hr { width:100%; border:0; border-top:var(--hud-divider-width,1px) solid var(--nav-divider); margin:1px 0; }
.wallet-sidebar nav { display:grid; gap:7px; } .wallet-sidebar nav button { text-align:left; }
.wallet-panel button { font:inherit; color:var(--nav-ink); background:var(--nav-background); border:1px solid var(--nav-divider); border-radius:6px; padding:8px 10px; cursor:pointer; }
.wallet-panel button[aria-selected=true],.wallet-panel button[aria-pressed=true] { background:var(--nav-active); border-color:var(--nav-accent); }
.wallet-connection { margin-top:auto; font-size:10px; opacity:.8; }
.wallet-screen { min-height:0; min-width:0; padding:16px; display:flex; flex-direction:column; gap:14px; overflow:hidden; }
.wallet-screen>header { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:28px; }
.wallet-screen>header button { display:flex; align-items:center; gap:7px; min-height:36px; font-size:12px; font-weight:600; padding:8px 11px; border:0; background:linear-gradient(110deg,#245aa1,#6551a9); color:#fff; box-shadow:inset 0 -2px #62d5ff; white-space:nowrap; }
.wallet-screen>header button::before { content:"←"; font-size:17px; line-height:1; }
.wallet-history { flex:1; display:flex; flex-direction:column; gap:12px; min-height:0; } .wallet-history [role=tablist] { display:flex; gap:7px; }
.wallet-records { flex:1; border:1px solid var(--nav-divider); border-radius:8px; padding:18px; background:color-mix(in srgb,var(--nav-background) 50%,transparent); display:flex; flex-direction:column; justify-content:center; text-align:center; }
.wallet-records p { margin:0 0 6px; } .wallet-records small { opacity:.7; }
.wallet-action { min-height:0; overflow:auto; } .wallet-action form { display:grid; gap:10px; }
.wallet-action label { display:grid; gap:5px; font-size:11px; } .wallet-action input,.wallet-action select { width:100%; box-sizing:border-box; min-width:0; padding:9px; border:1px solid var(--nav-divider); border-radius:5px; font:12px "Segoe UI",sans-serif; background:var(--nav-background); color:var(--nav-ink); }
.wallet-panel button:disabled { opacity:.55; cursor:default; } .wallet-note { margin:0; font-size:10px; opacity:.8; }
.wallet-action-activity { margin-top:18px; padding-top:12px; border-top:var(--hud-divider-width,1px) solid var(--nav-divider); }
.wallet-action-activity h3 { margin:0 0 7px; font-size:12px; } .wallet-action-activity p { font-size:11px; opacity:.75; }
.wallet-records { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--nav-accent) transparent; justify-content:flex-start; text-align:left; }
.wallet-records article,.wallet-action-activity article { padding:8px 0; border-bottom:1px solid var(--nav-divider); }
.wallet-records article button { margin-right:6px; padding:5px 10px; }
.wallet-review { padding:16px; border:1px solid color-mix(in srgb,var(--nav-accent) 45%,transparent); border-radius:0; background:linear-gradient(135deg,color-mix(in srgb,var(--nav-active) 65%,var(--nav-background)),var(--nav-background)); box-shadow:inset 3px 0 #568eff,inset 0 1px #ffffff30; }
.wallet-review h3 { margin:0; font-size:14px; }

.wallet-feedback { font-size:11px; }
.wallet-sidebar [data-wallet-privacy] { padding:2px 6px; width:32px; height:24px; align-self:flex-end; display:grid; place-items:center; }
.wallet-sidebar [data-wallet-privacy] svg { width:20px; height:20px; }
.wallet-eye-slash { display:none; }
[data-wallet-privacy][aria-pressed=true] .wallet-eye-slash { display:block; }
/* Currency identity stays decorative and inherits the selected HUD palette. */
.wallet-brand { display:flex; align-items:center; gap:9px; }
.wallet-brand img { width:60px; height:60px; object-fit:contain; flex:none; }
.wallet-brand h1 small { display:block; font-size:9px; letter-spacing:.18em; font-weight:600; margin-top:2px; color:var(--nav-accent); }
.wallet-screen { overflow:clip; position:relative; isolation:isolate; background:radial-gradient(ellipse at 100% 100%,color-mix(in srgb,var(--nav-accent) 9%,transparent),transparent 70%); }
.wallet-screen::before,.wallet-screen::after { content:""; position:absolute; pointer-events:none; z-index:-1; }
.wallet-screen::before { width:310px; height:310px; right:-65px; bottom:-65px; background:url('g-coin-neura.png') center/contain no-repeat; opacity:var(--wallet-watermark-opacity,.17); transform:rotate(-18deg); }
.wallet-screen::after { width:440px; height:250px; right:-115px; bottom:-135px; border-radius:50%; transform:rotate(-25deg); background:repeating-radial-gradient(ellipse at center,transparent 0 8px,color-mix(in srgb,var(--nav-accent) 13%,transparent) 9px 10px,transparent 11px 15px); }
.wallet-balance-screen { position:relative; overflow:hidden; }
.wallet-balance-screen::after { content:""; position:absolute; width:100px; height:100px; right:-25px; bottom:-32px; border:1px solid color-mix(in srgb,var(--nav-accent) 16%,transparent); border-radius:50%; box-shadow:0 0 0 7px color-mix(in srgb,var(--nav-accent) 5%,transparent),0 0 0 14px color-mix(in srgb,var(--nav-accent) 4%,transparent); pointer-events:none; }
.wallet-sidebar { gap:6px; }
.wallet-balance-screen { flex-shrink:0; }

.wallet-sidebar nav button { display:flex; align-items:center; gap:10px; padding:5px 9px; font-weight:600; min-height:43px; border-color:color-mix(in srgb,var(--nav-accent) 48%,var(--nav-divider)); background:linear-gradient(120deg,color-mix(in srgb,var(--nav-accent) 20%,var(--nav-background)),var(--nav-background)); box-shadow:inset 0 1px 0 color-mix(in srgb,var(--nav-ink) 12%,transparent),0 2px 5px #00000012; }
.wallet-action-icon { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:9px; color:var(--nav-ink); background:linear-gradient(145deg,color-mix(in srgb,var(--nav-accent) 55%,var(--nav-background)),color-mix(in srgb,var(--nav-accent) 15%,var(--nav-background))); border:1px solid color-mix(in srgb,var(--nav-accent) 70%,transparent); box-shadow:inset 0 1px 2px #ffffff40,0 2px 5px #00000020; }
.wallet-action-icon svg { width:23px; height:23px; filter:drop-shadow(0 1px 1px #00000025); }
.wallet-sidebar nav button:hover,.wallet-sidebar nav button[aria-pressed=true] { border-color:var(--nav-accent); background:linear-gradient(120deg,color-mix(in srgb,var(--nav-accent) 36%,var(--nav-background)),var(--nav-active)); }
.wallet-brand img { filter:drop-shadow(0 0 4px color-mix(in srgb,var(--nav-accent) 35%,transparent)); }
/* Separate square wallet surfaces keep activity space independent. */

.wallet-panel { grid-template-columns:190px minmax(0,1fr); gap:0; }
.wallet-sidebar { border:0; padding:12px; gap:9px; background:transparent; }
.wallet-screen { background:transparent; padding:14px; }
.wallet-card-row { position:relative; display:flex; align-items:center; }
.wallet-balance-screen { min-width:0; flex:1; height:105px; padding:10px; gap:0; border:0; border-radius:0; color:#fff; background:radial-gradient(ellipse at 100% 0%,#7270f3,transparent 70%),linear-gradient(125deg,#12537b,#202958 70%,#7047a7); box-shadow:inset 0 1px #b3ddff70,0 3px 8px #0002; }
.wallet-card-brand { font-size:8px!important; font-weight:700; letter-spacing:.08em; opacity:1!important; }
.wallet-chip { display:block; width:19px; height:14px; margin:3px 0; border:1px solid #ffe8a4; background:linear-gradient(135deg,#f5db8c,#ab8233); border-radius:2px; }
.wallet-balance-screen small { font-size:8px; }
.wallet-balance-screen strong { font-size:21px; line-height:1.2; overflow-wrap:anywhere; }
.wallet-balance-screen>span:last-child { font-size:8px; }
.wallet-sidebar [data-wallet-privacy] { position:absolute; top:3px; right:3px; z-index:2; width:26px; height:26px; padding:3px; border:0; border-radius:0; background:transparent; color:#fff; }
.wallet-account { font-size:11px; }
.wallet-sidebar nav { gap:9px; margin-top:3px; }
.wallet-sidebar nav button { min-height:49px; border:0; border-radius:0; padding:7px 10px; gap:12px; font-size:13px; background:linear-gradient(110deg,color-mix(in srgb,var(--nav-accent) 32%,var(--nav-background)),var(--nav-background)); box-shadow:inset 3px 0 #568eff,inset 0 1px #ffffff28; }
.wallet-sidebar nav button::after { content:'›'; margin-left:auto; font-size:21px; color:var(--nav-accent); }
.wallet-action-icon { width:30px; height:30px; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--nav-accent); }
.wallet-action-icon svg { width:28px; height:28px; stroke-width:2; filter:drop-shadow(0 2px 1px #3973cc60); }
.wallet-panel button { border-radius:0; }
.wallet-records { border:0; border-radius:0; padding:12px; font-size:13px; }
.wallet-action-activity { border:0; padding:10px; background:color-mix(in srgb,var(--nav-background) 70%,transparent); }
.wallet-records article,.wallet-action-activity article { flex-shrink:0; border:0; padding:10px; margin-bottom:9px; background:var(--nav-background); }
.wallet-action label { font-size:12px; }
.wallet-action-activity p { font-size:12px; }

.wallet-card-coin { position:absolute; width:48px; height:48px; right:6px; bottom:7px; object-fit:contain; pointer-events:none; }
.wallet-balance-screen strong { position:relative; z-index:1; max-width:calc(100% - 43px); font-size:19px; }
.wallet-card-brand { padding-right:22px; }
.wallet-history [role=tablist] { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.wallet-history [role=tab] { border:0; padding:10px 8px; font-weight:650; background:var(--nav-background); }
.wallet-history [role=tab][aria-selected=true] { background:linear-gradient(110deg,#245aa1,#6551a9); color:#fff; box-shadow:inset 0 -3px #62d5ff; }
.wallet-records p { line-height:1.6; }
/* Incoming requests share the card's blue/violet identity and square edges. */
.wallet-records.wallet-incoming { display:block; overflow-y:auto; min-height:0; text-align:left; padding:10px 0; background:transparent; }
.wallet-records .wallet-request-card { padding:16px; margin:0 0 12px; border:1px solid color-mix(in srgb,var(--nav-accent) 45%,transparent); background:linear-gradient(135deg,color-mix(in srgb,var(--nav-active) 65%,var(--nav-background)),var(--nav-background)); box-shadow:inset 3px 0 #568eff,inset 0 1px #ffffff30,0 4px 12px #071d3910; }
.wallet-request-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-bottom:16px; font-size:9px; font-weight:700; letter-spacing:.08em; color:var(--nav-accent); }
.wallet-request-status { padding:4px 7px; background:color-mix(in srgb,var(--nav-accent) 12%,transparent); color:var(--nav-ink); font-size:9px; letter-spacing:0; font-weight:600; }
.wallet-request-summary { display:flex; align-items:center; gap:10px; }
.wallet-request-summary img { object-fit:contain; flex:none; filter:drop-shadow(0 2px 4px #477bca35); }
.wallet-request-person { display:flex; flex-direction:column; gap:2px; min-width:0; }
.wallet-request-person small { font-size:10px; opacity:.8; }
.wallet-request-person strong { font-size:17px; line-height:1.25; overflow-wrap:anywhere; }
.wallet-request-amount { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin:14px 0 6px; }
.wallet-request-amount strong { font-size:30px; line-height:1.1; letter-spacing:-.03em; overflow-wrap:anywhere; }
.wallet-request-amount span { font-size:10px; font-weight:700; letter-spacing:.12em; color:var(--nav-accent); }
.wallet-records .wallet-request-note { margin:8px 0 16px; font-size:11px; line-height:1.5; opacity:.85; }
.wallet-request-actions { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:9px; }
.wallet-request-actions button { min-height:40px; font-size:12px; font-weight:700; padding:9px; transition:background .15s,box-shadow .15s; }
.wallet-request-actions .wallet-request-pay { color:#fff; border:1px solid #628ff2; background:linear-gradient(110deg,#245aa1,#6551a9); box-shadow:inset 0 -3px #62d5ff,0 2px 5px #10295625; }
.wallet-request-actions .wallet-request-decline { border:1px solid color-mix(in srgb,var(--nav-accent) 65%,transparent); background:color-mix(in srgb,var(--nav-active) 60%,var(--nav-background)); }
.wallet-request-actions .wallet-request-pay:hover:not(:disabled) { background:linear-gradient(110deg,#2c6cc1,#7861c5); box-shadow:inset 0 -3px #a0edff,0 0 10px #568eff50; }
.wallet-request-actions .wallet-request-decline:hover:not(:disabled) { background:var(--nav-active); box-shadow:inset 0 -2px var(--nav-accent); }
.wallet-request-actions button:focus-visible { outline:2px solid var(--nav-accent); outline-offset:3px; }
.wallet-request-actions button:active:not(:disabled) { transform:translateY(1px); }

.wallet-review-account { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; margin:12px 0; background:color-mix(in srgb,var(--nav-accent) 10%,transparent); font-size:11px; }
.wallet-review .wallet-request-note { font-size:11px; line-height:1.5; margin:12px 0 16px; opacity:.85; }

/* Activity scrolls inside the HUD beneath fixed navigation. */
.wallet-history [role=tablist],.wallet-screen>header { flex-shrink:0; }
.wallet-records .wallet-transaction,.wallet-action-activity .wallet-transaction { padding:12px; border:1px solid color-mix(in srgb,var(--nav-accent) 22%,transparent); box-shadow:inset 3px 0 var(--nav-accent); background:linear-gradient(120deg,color-mix(in srgb,var(--nav-active) 45%,var(--nav-background)),var(--nav-background)); }
.wallet-transaction-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.wallet-transaction-heading strong { font-size:12px; overflow-wrap:anywhere; }
.wallet-transaction-status { flex:none; font-size:9px; padding:3px 6px; background:color-mix(in srgb,var(--nav-accent) 15%,transparent); }
.wallet-records .wallet-transaction p,.wallet-action-activity .wallet-transaction p { margin:6px 0; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.wallet-transaction-meta { display:block; font-size:9px; color:var(--nav-accent); }

/* Unified payment forms with compact controls and Neura currency artwork. */
.wallet-action form { position:relative; isolation:isolate; overflow:hidden; padding:16px; grid-template-columns:minmax(0,1fr) 125px; gap:14px 12px; border:1px solid color-mix(in srgb,var(--nav-accent) 35%,transparent); background:linear-gradient(125deg,color-mix(in srgb,var(--nav-active) 65%,var(--nav-background)),var(--nav-background)); box-shadow:inset 3px 0 #568eff,inset 0 1px #ffffff30; }
.wallet-action form::after { content:""; position:absolute; z-index:-1; pointer-events:none; width:190px; height:190px; right:-65px; bottom:-70px; background:url('g-coin-neura.png') center/contain no-repeat; opacity:.09; transform:rotate(-20deg); }
.wallet-form-heading { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid color-mix(in srgb,var(--nav-accent) 20%,transparent); }
.wallet-form-heading img { width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 2px 4px #477bca35); }
.wallet-form-heading div { display:flex; flex-direction:column; gap:3px; }
.wallet-form-heading span { font-size:8px; font-weight:700; letter-spacing:.13em; color:var(--nav-accent); }
.wallet-form-heading strong { font-size:17px; line-height:1.2; }
.wallet-action form label { min-width:0; align-content:start; font-size:10px; font-weight:600; gap:6px; }
.wallet-action form input,.wallet-action form select { height:36px; padding:7px 9px; border-radius:0; border:1px solid color-mix(in srgb,var(--nav-accent) 35%,transparent); background:color-mix(in srgb,var(--nav-background) 85%,transparent); font-size:12px; }
.wallet-action form .wallet-amount-field input { font-size:17px; font-weight:700; }
.wallet-action form input:focus,.wallet-action form select:focus { outline:2px solid var(--nav-accent); outline-offset:1px; }
.wallet-action form button[type="submit"] { grid-column:1/-1; justify-self:start; width:160px; min-height:36px; font-weight:700; color:white; border:1px solid #628ff2; background:linear-gradient(110deg,#245aa1,#6551a9); box-shadow:inset 0 -2px #62d5ff; }
.wallet-action form button[type="submit"]:hover:not(:disabled) { background:linear-gradient(110deg,#2c6cc1,#7861c5); }
.wallet-action form .wallet-note { grid-column:1/-1; font-size:10px; line-height:1.4; }
.wallet-action-activity { margin-top:12px; padding:12px; border:1px solid color-mix(in srgb,var(--nav-accent) 15%,transparent); }
.wallet-action-activity h3 { font-size:11px; }
.wallet-action-activity p { margin:0; font-size:10px; line-height:1.5; }

/* Transaction monitor mirrors the original HUD's status hierarchy. */
.wallet-records .wallet-monitor { --monitor-color:#219c86; flex:none; padding:16px; margin:0 0 12px; border:1px solid color-mix(in srgb,var(--nav-accent) 28%,transparent); border-radius:10px; background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--monitor-color) 9%,transparent),transparent 65%),color-mix(in srgb,var(--nav-background) 90%,white 10%); box-shadow:0 6px 18px #1736590c,inset 0 1px #ffffff35; text-align:center; }
.wallet-monitor.is-waiting { --monitor-color:#dc920d; }
.wallet-monitor.is-failed { --monitor-color:#d75472; }
.wallet-monitor header { display:flex; flex-direction:column; gap:2px; }
.wallet-monitor header strong { font-size:17px; letter-spacing:-.4px; }
.wallet-monitor header small { font-size:9px; }
.wallet-monitor-icon { margin:12px auto 8px; width:48px; height:48px; display:grid; place-items:center; border-radius:50%; color:var(--monitor-color); border:1px solid var(--monitor-color); background:color-mix(in srgb,var(--monitor-color) 12%,transparent); box-shadow:0 0 24px color-mix(in srgb,var(--monitor-color) 16%,transparent); font-size:28px; }
.wallet-monitor-kicker { color:var(--monitor-color); font-size:8px; font-weight:750; letter-spacing:.12em; }
.wallet-monitor h3 { margin:4px 0; font-size:17px; }
.wallet-records .wallet-monitor-description { font-size:10px; line-height:1.4; max-width:300px; margin:0 auto 10px; opacity:.8; }
.wallet-monitor dl { margin:10px 0; border:1px solid color-mix(in srgb,var(--nav-accent) 20%,transparent); border-radius:6px; overflow:hidden; background:color-mix(in srgb,var(--nav-background) 80%,transparent); }
.wallet-monitor dl div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:7px 10px; border-bottom:1px solid color-mix(in srgb,var(--nav-accent) 12%,transparent); font-size:10px; }
.wallet-monitor dl div:last-child { border:0; }
.wallet-monitor dt { opacity:.7; }
.wallet-monitor dd { margin:0; font-weight:650; overflow-wrap:anywhere; text-align:right; }
.wallet-monitor footer { margin-top:10px; padding:6px; border-radius:5px; font-size:9px; color:var(--monitor-color); background:color-mix(in srgb,var(--monitor-color) 12%,transparent); }
.wallet-monitor .wallet-request-actions:empty { display:none; }

/* HUD activity is paged: every action stays visible without scrolling. */
.wallet-history { gap:8px; }
.wallet-history .wallet-records,.wallet-history .wallet-records.wallet-incoming { overflow:hidden; padding:0; background:transparent; display:flex; min-height:0; }
.wallet-history .wallet-records .wallet-monitor { box-sizing:border-box; width:100%; height:100%; min-height:0; margin:0; padding:10px 14px; display:flex; flex-direction:column; justify-content:center; }
.wallet-history .wallet-monitor header strong { font-size:15px; }
.wallet-history .wallet-monitor-icon { width:34px; height:34px; font-size:23px; margin:6px auto; }
.wallet-history .wallet-monitor h3 { font-size:15px; margin:3px 0; }
.wallet-history .wallet-monitor-description { margin:0 auto 5px; font-size:10px; line-height:1.3; }
.wallet-history .wallet-monitor dl { margin:5px 0; flex-shrink:0; }
.wallet-history .wallet-monitor dl div { padding:5px 9px; }
.wallet-history .wallet-monitor footer { margin-top:5px; padding:4px; }
.wallet-history .wallet-monitor .wallet-request-actions button { min-height:30px; padding:5px; font-size:11px; }
.wallet-activity-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-shrink:0; height:32px; }
.wallet-activity-pager button { padding:5px 12px; min-height:30px; font-weight:650; border-color:var(--nav-accent); }
.wallet-activity-pager span { font-size:10px; opacity:.8; }

.wallet-action { overflow:hidden; }
.wallet-action-activity { margin-top:8px; padding:8px; }
.wallet-action-activity p { margin:0; font-size:10px; }
.wallet-feedback:empty { display:none; }
/* Keep the amount field consistent with the HUD instead of native white spinners. */
.wallet-action input[name="amount"] { appearance:textfield; -moz-appearance:textfield; }
.wallet-action input[name="amount"]::-webkit-inner-spin-button,
.wallet-action input[name="amount"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.wallet-amount-control { position:relative; display:block; min-width:0; }
.wallet-action form .wallet-amount-control input { padding-right:30px; }
.wallet-amount-steps { position:absolute; top:1px; bottom:1px; right:1px; width:25px; display:grid; grid-template-rows:1fr 1fr; }
.wallet-action form .wallet-amount-steps button { display:grid; place-items:center; padding:0; margin:0; min-height:0; width:25px; border:0; border-left:1px solid var(--nav-divider); border-radius:0; background:color-mix(in srgb,var(--nav-accent) 15%,var(--nav-background)); color:var(--nav-ink); font-size:13px; line-height:1; box-shadow:none; }
.wallet-action form .wallet-amount-steps button + button { border-top:1px solid var(--nav-divider); }
.wallet-action form .wallet-amount-steps button:hover { background:color-mix(in srgb,var(--nav-accent) 30%,var(--nav-background)); }
