.portal-panel{position:fixed;inset:auto 22px 22px auto;margin:0;width:min(420px,calc(100vw - 30px));height:min(640px,calc(100dvh - 40px));padding:0;border:1px solid #3a3e49;background:#161a23;color:#e4e8f0;border-radius:4px;box-shadow:0 12px 45px #0009;font:14px/1.5 Arial,sans-serif}.portal-panel::backdrop{background:#05071166}.portal-panel[open]{display:flex;flex-direction:column}.portal-header{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #303644}.portal-header strong{font-size:17px}.portal-close{display:grid;place-items:center;background:transparent;border:0;color:#ced3dc;width:32px;height:32px;cursor:pointer}.portal-close svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.5}.portal-conversation{flex:1;overflow:auto;padding:18px;scrollbar-color:#555b68 #161a23}.portal-message{max-width:88%;margin:0 0 16px;padding:10px 12px;background:#272d3a;border-radius:4px}.portal-message.from-member{margin-left:auto;background:#633174}.portal-message-text{white-space:pre-wrap;overflow-wrap:anywhere}.portal-message time{display:block;margin-top:6px;font-size:11px;color:#c7c9d1}.portal-empty{color:#c5cad4;margin:10px 0}.portal-error{color:#f5c9c9}.portal-composer{padding:12px 16px;display:flex;align-items:flex-end;gap:10px;border-top:1px solid #303644}.portal-composer textarea{flex:1;min-width:0;resize:none;background:#222837;border:1px solid #687184;border-radius:3px;color:#fff;font:inherit;padding:8px}.portal-composer textarea::placeholder{color:#afb8c8}.portal-send{border:0;border-radius:3px;background:#c40ad8;color:white;padding:10px 16px;cursor:pointer}.portal-send:disabled{opacity:.5;cursor:wait}.portal-panel button:focus-visible,.portal-panel textarea:focus-visible{outline:2px solid #e78cf2;outline-offset:3px}@media(max-width:600px){.portal-panel{inset:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0}.portal-composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
.portal-confirm{width:min(450px,92vw);border:1px solid #454b59;border-radius:4px;padding:25px;background:#202634;color:#eef0f5}.portal-confirm::backdrop{background:#0009}.portal-confirm h2{margin:0 0 20px;font-size:20px}.portal-address{overflow-wrap:anywhere;color:#c9cfdb}.portal-confirm input{width:100%;padding:12px;border:1px solid #6d778a;border-radius:3px;background:#293140;color:#fff;font:inherit}.portal-confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.portal-confirm-actions button{padding:10px 18px;border:0;border-radius:3px;cursor:pointer}.portal-confirm input:focus-visible{outline:2px solid #d94ce7;outline-offset:2px}

/* Recharge interaction states retain the source palette and dimensions. */
.recharge-dialog [role=button]:focus-visible{outline:2px solid #c138dc;outline-offset:3px}
.recharge-dialog [aria-disabled=true]{opacity:.5;cursor:not-allowed}
.recharge-dialog .upload-box[aria-busy=true]{opacity:.5;cursor:wait}
.recharge-dialog .dialog-btn[aria-busy=true]{cursor:wait}
.recharge-dialog .address-back .db{overflow-wrap:anywhere}

.deposit-success .btn:focus-visible{outline:2px solid #c138dc;outline-offset:4px}
.portal-launcher{position:fixed;inset-inline-end:20px;bottom:20px;z-index:1000;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#9b07b5;color:#fff;box-shadow:0 5px 16px #0009;cursor:pointer;transition:background-color .15s ease-out}
.portal-launcher svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-launcher:hover{background:#633174}.portal-launcher:focus-visible{outline:2px solid #e78cf2;outline-offset:4px}.portal-launcher:active{background:#9b07b5}
@media(max-width:600px){.portal-launcher{inset-inline-end:16px;bottom:calc(74px + env(safe-area-inset-bottom,0px))}.portal-composer textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.portal-launcher{transition:none}}
