.walletCompact[data-has-crypto="true"] .walletCompactCopy { transform: translateY(-7px); }
.walletCryptoCompact { position: absolute; left: 52px; right: 24px; bottom: 7px; display: flex; align-items: center; gap: 5px; height: 18px; }
.walletCryptoCompact[hidden], .walletCryptoPanel[hidden], .walletCryptoSetup[hidden] { display: none; }
.walletCryptoRow { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 0; }
.walletCryptoRow + .walletCryptoRow { border-top: 1px solid #edf1f6; }
.walletCryptoAsset { padding: 1px 0 10px; }
.walletCryptoAsset + .walletCryptoAsset { border-top: 1px solid #edf1f6; }
.walletCryptoReserve { display: flex; align-items: end; gap: 8px; margin: 0; }
.walletCryptoReserve label { display: grid; flex: 1; min-width: 0; gap: 4px; color: #66758d; font-size: 10px; }
.walletCryptoReserve .walletCryptoReserveInput { width: 100%; min-width: 0; height: 28px; min-height: 28px; padding: 4px 8px; border: 1px solid #ced9e9; border-radius: 6px; color: #17243a; background: #fff; font-size: 11px; }
.walletCryptoReserve .walletCryptoReserveInput:focus { outline: 2px solid #dce8ff; border-color: #84adff; }
.walletCryptoReserve .walletCryptoReserveSave { min-height: 28px; padding: 4px 9px; border: 1px solid #c9d9f3; border-radius: 6px; background: #edf4ff; color: #155eef; font-size: 10px; box-shadow: none; }
.walletCryptoReserve .walletCryptoReserveSave:hover:not(:disabled), .walletCryptoReserve .walletCryptoReserveSave:focus-visible { background: #dceaff; color: #004eeb; border-color: #84adff; }
.walletCryptoReserve .walletCryptoReserveSave:disabled { background: #f1f4f9; color: #8593a8; cursor: wait; }
.walletCryptoSurplus { display: block; margin-top: 5px; color: #66758d; font-size: 10px; line-height: 1.4; }
.walletCryptoRow.is-compact { flex: 1; padding: 0; gap: 4px; font-size: 10px; line-height: 14px; }
.walletCryptoIdentity { display: grid; flex: 1; min-width: 0; gap: 3px; color: #17243a; font-size: 12px; }
.walletCryptoIdentity > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walletCryptoIdentity > small { color: #66758d; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-compact .walletCryptoIdentity { font-size: 10px; }
.walletCryptoIdentity b { font-weight: 600; }
.walletCryptoAmount { font-variant-numeric: tabular-nums; }
.walletCryptoEstimate { color: #66758d; font-size: 10px; white-space: nowrap; }
.walletCryptoAction { position: relative; flex: 0 0 18px; display: inline-grid; }
.walletCryptoExchange { position: relative; display: grid; width: 18px; height: 18px; min-height: 18px; place-items: center; border: 0; border-radius: 3px; background: transparent; color: #16181c; padding: 0; cursor: pointer; box-shadow: none; transition: background-color 140ms ease, color 140ms ease, transform 120ms ease; }
.walletCryptoExchange svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.walletCryptoExchange:hover, .walletCryptoExchange:focus-visible { background: #edf4fc; color: #4f6b8a; outline: 1px solid #c4d5eb; }
.walletCryptoExchange:active { transform: scale(.86); }
.walletCryptoExchange[aria-disabled="true"] { color: #98a2b3; }
.walletCryptoExchange.is-running svg { animation: wallet-crypto-spin 1.5s linear infinite; }
.walletCryptoExchange.is-done { background: #edf4fc; color: #4f6b8a; animation: wallet-crypto-pulse 760ms ease-out both; }
.walletCryptoTooltip { position: absolute; z-index: 10; top: calc(100% + 7px); right: -4px; width: min(285px, calc(100vw - 44px)); padding: 10px 12px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; color: #344054; box-shadow: 0 8px 25px #10213f24; font-size: 11px; line-height: 1.5; text-align: left; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity 140ms ease; }
.walletCryptoAction:hover .walletCryptoTooltip, .walletCryptoAction:focus-within .walletCryptoTooltip { visibility: visible; opacity: 1; }
.walletCryptoMore { padding: 0 3px; border: 0; background: #eef4ff; color: #3568b1; border-radius: 4px; min-height: 16px; font-size: 9px; cursor: pointer; box-shadow: none; }
.walletCryptoPanel { margin: 12px 15px 0; padding: 10px 12px; border: 1px solid #dce4f0; border-radius: 12px; background: #fff; }
.walletPopover:not([hidden]):has(.walletCryptoPanel:not([hidden])) { display: block; overflow-y: auto; max-height: min(820px, calc(100dvh - var(--wallet-crypto-top, 96px) - 12px)); }
.walletCryptoHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.walletCryptoHead > strong { color: #17243a; font-size: 12px; }
.walletCryptoSetupToggle, .walletCryptoErrors button, .walletCryptoResume { min-height: 22px; padding: 0; background: transparent; box-shadow: none; border: 0; color: #526d91; font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.walletCryptoErrors p { margin: 7px 0 0; color: #9c6509; font-size: 10px; line-height: 1.5; }
.walletCryptoStatus { margin: 6px 0 0; color: #087750; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.walletCryptoStatus:empty { display: none; }
.walletCryptoStatus[data-error="true"] { color: #a15c00; }
.walletCryptoSetup { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5ebf4; }
.walletCryptoSetup label { display: grid; gap: 4px; color: #53627a; font-size: 11px; }
.walletCryptoSetup input:not([type=checkbox]), .walletCryptoSetup select { width: 100%; min-width: 0; height: 32px; border: 1px solid #ced9e9; border-radius: 7px; padding: 5px 8px; color: #17243a; background: #fff; font-size: 11px; }
.walletCryptoSetup .walletCryptoPermission { display: flex; align-items: center; gap: 6px; }
.walletCryptoPermission input { margin: 0; width: 14px; height: 14px; accent-color: #2f6df6; }
.walletCryptoKeyHelp { color: #66758d; font-size: 10px; line-height: 1.5; }
.walletCryptoSetup .walletCryptoSaveKey { border: 0; border-radius: 7px; min-height: 32px; background: #2f6df6; color: #fff; font-size: 11px; font-weight: 600; transition: background-color 140ms ease; }
.walletCryptoSetup .walletCryptoSaveKey:hover:not(:disabled), .walletCryptoSetup .walletCryptoSaveKey:focus-visible { background: #155eef; color: #fff; }
.walletCryptoSetup .walletCryptoSaveKey:focus-visible { outline: 2px solid #84adff; outline-offset: 2px; }
.walletCryptoSetup .walletCryptoSaveKey:disabled { background: #91b1fa; color: #fff; opacity: 1; cursor: wait; }
@keyframes wallet-crypto-spin { to { transform: rotate(360deg); } }
@keyframes wallet-crypto-pulse { 0% { transform: scale(.88); box-shadow: 0 0 0 0 #4f6b8a47; } 45% { transform: scale(1.04); box-shadow: 0 0 0 4px #4f6b8a1f; } 100% { transform: scale(1); box-shadow: 0 0 0 0 #4f6b8a00; } }
@media (prefers-reduced-motion: reduce) { .walletCryptoExchange, .walletCryptoExchange.is-done, .walletCryptoExchange.is-running svg { animation: none; transition: none; } }
