.top .right{display:flex;align-items:center;gap:8px}
.top .lang,.solana-wallet-button{border-radius:999px}
.solana-wallet-button{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:174px;height:42px;padding:7px 10px 7px 38px;border:1px solid #880ae1;background:transparent;color:#760bc4;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s;animation:wallet-border-glow 2s ease-in-out infinite}
.solana-wallet-button::before{content:"";position:absolute;left:7px;top:50%;width:28px;height:28px;border-radius:50%;background:#880ae1;transform:translateY(-50%)}
.solana-wallet-button::after{content:"";position:absolute;left:14px;top:50%;width:14px;height:17px;background:#fff;clip-path:polygon(50% 0,94% 18%,90% 62%,73% 86%,50% 100%,27% 86%,10% 62%,6% 18%);transform:translateY(-50%)}
.solana-wallet-button:hover,.solana-wallet-button:focus-visible{background:rgba(136,10,225,.07);outline-offset:2px}
.top .solana-wallet-button.is-connected{background:#f0dfff;border-color:#880ae1;color:#57008e;box-shadow:none;animation:none}
.top .solana-wallet-button.is-connected{min-width:174px;font-size:12px;letter-spacing:-.02em}
.solana-wallet-button:disabled{opacity:.65;cursor:wait}
.solana-wallet-chooser[hidden]{display:none}
.solana-wallet-chooser{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}
.solana-wallet-chooser-card{box-sizing:border-box;width:min(100%,412px);max-height:min(85vh,680px);overflow:auto;border:1px solid rgba(255,255,255,.13);border-radius:30px;background:#090909;color:#fff;box-shadow:0 24px 68px #000c}
.solana-wallet-chooser-head{position:relative;padding:29px 26px 24px}
.solana-wallet-eyebrow{margin:0 0 12px;color:#70e9d3;font-size:11px;font-weight:800;letter-spacing:.16em}
.solana-wallet-chooser-head h2{max-width:290px;margin:0;color:#fff;font-size:clamp(20px,5vw,25px);line-height:1.28;letter-spacing:-.025em}
.solana-wallet-security{display:flex;align-items:center;gap:8px;max-width:340px;margin-top:18px;color:#b9bebd;font-size:11px;line-height:1.45}
.solana-wallet-security svg{flex:0 0 18px;width:18px;height:18px;fill:#70e9d3}
.solana-wallet-detected-count{display:inline-block;margin-top:10px;color:#79e9d4;font-size:11px;font-weight:600}
.solana-wallet-close{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:10px;background:#1b1b1b;color:#b7b7b7;font-size:18px;font-weight:400;line-height:1;cursor:pointer}
.solana-wallet-close:hover,.solana-wallet-close:focus-visible{background:#303030;color:#fff}
.solana-wallet-list{display:grid;gap:8px;padding:0 18px 22px}
.solana-wallet-option{box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:62px;gap:12px;padding:10px 12px;border:0;border-radius:17px;background:#242424;color:#fff;text-align:left;cursor:pointer;transition:background .15s}
.solana-wallet-option:not(:disabled):hover,.solana-wallet-option:not(:disabled):focus-visible{background:#343434;outline:2px solid #78e9d5;outline-offset:1px}
.solana-wallet-option:disabled{color:#b8b8b8;cursor:default}
.solana-wallet-option-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:750}
.solana-wallet-option-detected{margin-left:auto;color:#f4f4f4;font-size:11px;white-space:nowrap}
.solana-wallet-option:disabled .solana-wallet-option-detected{color:#a4a4a4}
.solana-wallet-icon{box-sizing:border-box;flex:0 0 38px;display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:0;border-radius:11px;background:#181818}
.solana-wallet-icon img{width:100%;height:100%;object-fit:contain}
.security-beacon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:94px;margin-top:auto;margin-bottom:10px;pointer-events:none}
.security-beacon-symbol{position:relative;display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;animation:security-glow 3.6s ease-in-out infinite}
.security-beacon-symbol::before{content:"";position:absolute;inset:-12px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,transparent 245deg,rgba(119,229,207,.12) 285deg,#77e5cf 345deg,transparent 360deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));animation:security-scan 2.6s linear infinite}
.security-beacon-symbol::after{content:"";position:absolute;top:-11px;left:50%;width:6px;height:6px;border-radius:50%;background:#bafff0;box-shadow:0 0 8px #77e5cf;transform-origin:0 45px;animation:security-scan 2.6s linear infinite}
.security-beacon-symbol svg{position:relative;width:56px;height:56px;fill:#77e5cf}
.security-beacon-copy{display:grid;min-width:0;gap:4px;text-align:left}
.security-beacon-brand{color:#f5f4f7;font-size:13px;font-weight:800;letter-spacing:.025em;white-space:nowrap}
.security-beacon-caption{color:#b8c9c5;font-size:9px;font-weight:600;line-height:1.35;letter-spacing:.01em}
.security-beacon-detail{color:#98b9b3;font-size:9px;font-weight:600;line-height:1.25;letter-spacing:.015em}
.security-beacon-label{color:#b8c9c5;white-space:nowrap}
#side>.logout{margin-top:0}
@keyframes security-glow{0%,100%{filter:drop-shadow(0 0 2px rgba(100,235,210,.12));opacity:.7}50%{filter:drop-shadow(0 0 9px rgba(100,235,210,.52));opacity:1}}
@keyframes security-scan{to{transform:rotate(360deg)}}
@keyframes wallet-border-glow{0%,100%{border-color:#880ae1;box-shadow:0 0 0 0 rgba(136,10,225,0)}50%{border-color:#c350ff;box-shadow:0 0 0 3px rgba(136,10,225,.19),0 0 18px rgba(136,10,225,.48)}}
@media(prefers-reduced-motion:reduce){.security-beacon-symbol,.security-beacon-symbol::before,.security-beacon-symbol::after{animation:none;opacity:.85}.solana-wallet-button{animation:none}}
@media(max-width:900px){.solana-wallet-button{min-width:130px}}
@media(max-width:560px){.top .member-chip{display:none!important}.solana-wallet-button,.top .solana-wallet-button.is-connected{min-width:130px;height:38px;max-width:135px;overflow:hidden;text-overflow:ellipsis;padding:6px 7px 6px 37px;font-size:11px}.solana-wallet-chooser-card{width:min(100%,380px)}.solana-wallet-chooser-head{padding:25px 22px 21px}.solana-wallet-list{padding:0 14px 16px}}
.wallet-change-panel{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.wallet-change-panel h3{margin:0 0 5px}
.wallet-change-panel p{margin:0;color:#647087;font-size:13px;line-height:1.5}
.wallet-change-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#walletChangeStatus{font-size:13px;color:#525e73;overflow-wrap:anywhere}
@media(max-width:600px){.wallet-change-panel{align-items:stretch}.wallet-change-actions{width:100%}.wallet-change-actions .btn{width:100%}}
/* Security: PIN and recovery above; the wallet request uses the old session row. */
#security{--security-card-gap:10px}
#security .security-single{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;gap:var(--security-card-gap)!important}
#security .security-single > .pin-card{margin-top:0!important}
#security .security-bottom-single{width:100%!important;grid-template-columns:minmax(0,calc((100% - var(--security-card-gap))/2))!important;justify-content:start!important}
#security .security-bottom-single .wallet-change-panel{display:flex;align-items:stretch;flex-direction:column;justify-content:initial;flex-wrap:nowrap;gap:0;margin:0;min-width:0;width:100%}
#security .security-bottom-single .wallet-change-panel .pin-card-body{width:100%}
#security .wallet-change-fields{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:10px 12px;margin-top:14px}
#security .wallet-change-fields label{font-size:13px;font-weight:850;color:#171b23}
#security .wallet-change-fields input{box-sizing:border-box;width:100%;min-width:0;height:42px;padding:8px 11px;border:1px solid #dcdfe9;border-radius:10px;background:#fff;color:#171b23;font-family:inherit;font-size:12px;font-weight:600}
#security .wallet-change-fields input[readonly]{background:#f7f8fa;color:#394251}
#security .wallet-change-fields input:focus-visible{outline:2px solid #61d9c5;outline-offset:1px}
#security .wallet-change-status{min-height:17px;margin-top:8px;font-size:12px;color:#525e73;overflow-wrap:anywhere}
#security .wallet-change-status:empty{display:none}
#security .wallet-change-panel .action-bottom{width:100%;white-space:normal;min-height:44px}
/* Previous 205px session-row limit clipped the new address form and button. */
#security{height:auto!important;min-height:100%}
#security .pin-actions-grid{flex:0 0 auto!important}
#security .security-bottom{margin-top:var(--security-card-gap)!important;height:auto!important;min-height:0!important;flex:0 0 auto!important}
#security .security-bottom > .wallet-change-panel{height:auto!important;min-height:0!important;overflow:visible!important;margin-top:0!important}
#security .security-bottom .wallet-change-panel .action-bottom{margin-top:8px!important}
@media(max-width:900px){#security .security-single,#security .security-bottom-single{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:560px){#security .wallet-change-fields{grid-template-columns:1fr;gap:5px}#security .wallet-change-fields label:not(:first-child){margin-top:5px}#security .wallet-change-panel .action-bottom{font-size:13px}}

/* R37.1: mint label only for the mobile app launch action. */
.solana-wallet-option-detected.is-app-open{color:#6fe8cf}

/* R50: verified registration is calm without claiming a live connection. */
.top .solana-wallet-button.is-registered{background:#f0dfff;border-color:#880ae1;color:#57008e;box-shadow:none;animation:none;min-width:174px;font-size:12px;letter-spacing:-.02em}
@media(max-width:560px){.top .solana-wallet-button.is-registered{min-width:130px;max-width:135px;font-size:11px}}
