.wallet-qr-input{display:flex!important;align-items:center;position:relative;width:100%;min-width:0}.wallet-qr-input input{width:100%;min-width:0;padding-right:52px!important}.wallet-qr-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:8px!important;background:transparent;color:var(--text,var(--ink));border:0;border-radius:10px;cursor:pointer}.wallet-qr-button:disabled{opacity:.35;cursor:default}.wallet-qr-input .wallet-qr-button{position:absolute;right:5px;top:50%;transform:translateY(-50%)}.wallet-qr-button:focus-visible{outline:2px solid #4389e9;outline-offset:2px}.wallet-qr-dialog{width:min(430px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box}.wallet-qr-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.wallet-qr-dialog h2{font-size:1.2rem}.wallet-qr-body video{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#16191d;border-radius:16px}.wallet-qr-body video[hidden]{display:none}.wallet-qr-body p{font-size:.9rem;line-height:1.6}.wallet-qr-code{background:white;padding:8px;border-radius:14px;margin:12px auto;width:min(280px,100%);box-sizing:border-box}.wallet-qr-code svg{display:block;width:100%;height:auto}.wallet-qr-address{overflow-wrap:anywhere;text-align:center;font-family:monospace}.wallet-qr-dialog::backdrop{background:#0009}.wallet-qr-dialog .notice{overflow-wrap:anywhere}

/* Keep controls inside their address bars, including narrow mobile profiles. */
.runtime .private-allocation .wallet-qr-input{display:block!important;position:relative;min-width:0;width:100%;box-sizing:border-box}
.runtime .private-allocation .wallet-qr-input input{display:block;width:100%;min-width:0;box-sizing:border-box;padding-right:42px!important}
.runtime .private-allocation .wallet-qr-input .wallet-qr-button{display:flex;position:absolute;inset:auto 4px auto auto;top:50%;transform:translateY(-50%);width:30px;min-width:30px;max-width:30px;height:30px;min-height:0;max-height:calc(100% - 4px);padding:4px!important;margin:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;box-sizing:border-box;line-height:1}
.runtime .private-allocation .wallet-qr-input .wallet-qr-button svg{display:block;width:20px;height:20px;flex:none}

.runtime .profile-address-shell,.hero .token-address-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:6px;min-width:0}
.runtime .profile-address-bar{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;grid-auto-flow:column;align-items:center;gap:6px!important;min-width:0;box-sizing:border-box}
.runtime .profile-address-bar #profileAddress,.hero .token-address-bar #tokenAddress{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;min-width:0}
.runtime .profile-address-bar #profileAddress{grid-column:1;grid-row:1}
.runtime .profile-address-bar #showWalletQr,.runtime .profile-address-shell #copyProfileAddress,.hero .token-address-shell #copyToken{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;padding:6px!important;margin:0;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:var(--card);box-shadow:none;line-height:1}
.runtime .profile-address-bar #showWalletQr{grid-column:2;grid-row:1;border:0;background:transparent}
.runtime .profile-address-shell #copyProfileAddress,.hero .token-address-shell #copyToken{grid-column:2;grid-row:1}
.runtime .profile-address-shell .profile-address-bar,.hero .token-address-shell .token-address-bar{grid-column:1;grid-row:1;min-width:0}
.runtime .profile-address-shell #copyProfileAddress svg,.runtime #showWalletQr svg,.hero #copyToken svg{display:block;width:19px;height:19px;flex:none}
.runtime .profile-address-shell #copyProfileStatus,.hero .token-address-shell #copyTokenStatus{grid-column:1/-1;grid-row:2;margin:0}
#copyProfileStatus[data-state=success],#copyTokenStatus[data-state=success]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.runtime .profile-address-shell #copyProfileAddress.complete,.hero .token-address-shell #copyToken.complete{color:var(--green);border-color:var(--green);background:var(--greenbg)}
