:root {
    /* VaultX · Obsidian Aurora —— 与离线端 src-ui/assets/vaultx.css 对齐：冷黑曜石底 + 极光青绿主色 */
    --vx-bg: #070a12;
    --vx-bg-2: #0a1322;
    --vx-shell: rgba(13, 20, 37, 0.86);
    --vx-surface: rgba(17, 27, 47, 0.72);
    --vx-surface-strong: rgba(6, 11, 22, 0.62);
    --vx-border: rgba(120, 142, 178, 0.30);
    --vx-border-soft: rgba(96, 117, 156, 0.22);
    --vx-border-strong: rgba(52, 224, 208, 0.34);
    --vx-text: #ecf2fb;
    --vx-muted: #93a4c0;
    --vx-accent: #34e0d0;
    --vx-accent-strong: #14b8a6;
    --vx-accent-soft: rgba(52, 224, 208, 0.16);
    --vx-accent-2: #56b6ff;
    --vx-accent-3: #b79cff;
    --vx-info: #56b6ff;
    --vx-warn: #f0cf63;
    --vx-danger: #fb7185;
    --vx-success: #34e0d0;
    --vx-radius-lg: 1.25rem;
    --vx-radius-xl: 1.6rem;
    --vx-ring: 0 0 0 3px rgba(52, 224, 208, 0.22);
    --vx-shadow: 0 34px 90px -28px rgba(0, 0, 0, 0.78);
    --vx-shadow-soft: 0 20px 56px -26px rgba(2, 8, 20, 0.7);
    --vx-glow: 0 18px 46px -14px rgba(52, 224, 208, 0.45);
    --vx-grad-accent: linear-gradient(135deg, #53dccb 0%, #34e0d0 48%, #22d3ee 100%);
    --vx-grad-brand: linear-gradient(118deg, #53dccb, #56b6ff 52%, #b79cff);
}
.vaultx-app {
    background-color: var(--vx-bg);
    color: var(--vx-text);
    /* 与离线端一致：-apple-system 打头，让 WebKit 按字号自动选光学尺寸，中文不发虚 */
    font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-image:
        radial-gradient(1100px 620px at 6% -8%, rgba(52, 224, 208, 0.13), transparent 60%),
        radial-gradient(980px 600px at 100% 2%, rgba(86, 182, 255, 0.11), transparent 58%),
        radial-gradient(900px 760px at 50% 120%, rgba(183, 156, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #070a12 0%, #080e1a 52%, #070a12 100%);
    background-attachment: fixed;
}
/* 中文字重收敛：PingFang SC 最重仅 Semibold(600)，font-black/extrabold/bold 会被 WebKit 合成假粗→发虚。统一降 600，与离线端一致。 */
.vaultx-app .font-black,
.vaultx-app .font-extrabold,
.vaultx-app .font-bold {
    font-weight: 600;
}
.vx-shell {
    max-width: 64rem;
}
.vx-panel {
    background:
        linear-gradient(180deg, rgba(19, 29, 51, 0.74), rgba(12, 19, 35, 0.6));
    border: 1px solid var(--vx-border-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vx-subpanel {
    background: var(--vx-surface-strong);
    border: 1px solid var(--vx-border-soft);
}
.vx-status-card {
    background:
        linear-gradient(180deg, rgba(17, 27, 47, 0.7), rgba(9, 15, 28, 0.58));
    border: 1px solid var(--vx-border-soft);
    border-radius: var(--vx-radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vx-button-primary {
    background: var(--vx-grad-accent) !important;
    color: #03130f !important;
    border: 1px solid rgba(94, 234, 212, 0.55);
    box-shadow: var(--vx-glow);
    transition: transform 160ms ease, box-shadow 200ms ease, filter 160ms ease;
}
.vx-button-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 22px 54px -14px rgba(45, 212, 191, 0.6);
}
.vx-button-primary:active {
    transform: translateY(0);
}
.vx-button-secondary {
    background: rgba(17, 27, 47, 0.72);
    border: 1px solid var(--vx-border-soft);
    color: var(--vx-text);
    transition: border-color 160ms ease, background 160ms ease;
}
.vx-button-secondary:hover {
    border-color: var(--vx-border-strong);
    background: rgba(22, 34, 58, 0.82);
}
.vx-kicker {
    color: var(--vx-accent);
    letter-spacing: 0.2em;
}
.brand-mark {
    background:
        linear-gradient(150deg, rgba(45, 212, 191, 0.22), rgba(56, 189, 248, 0.12) 55%, rgba(167, 139, 250, 0.16)),
        linear-gradient(145deg, rgba(13, 20, 37, 0.96), rgba(20, 30, 53, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 34px -14px rgba(20, 184, 166, 0.55);
}
.workbench-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.35rem;
    border: 1px solid var(--vx-border-soft);
    border-radius: 1.1rem;
    background: rgba(7, 12, 24, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}
.workbench-tab {
    position: relative;
    min-height: 2.45rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 900;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.workbench-tab + .workbench-tab::before {
    content: "";
    position: absolute;
    left: -0.25rem;
    top: 0.52rem;
    bottom: 0.52rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.36), transparent);
}
.workbench-tab.is-active {
    border-color: rgba(94, 234, 212, 0.48);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(56, 189, 248, 0.16));
    color: #ccfbf1;
    box-shadow: 0 10px 26px -14px rgba(20, 184, 166, 0.55);
}
.header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.header-title-row h1 {
    min-width: 0;
}
.header-integrity {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
}
.header-check-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
@media (min-width: 768px) {
    .header-integrity {
        align-items: center;
    }
}
.workbench-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: 1rem;
    align-items: start;
}
.workbench-layout > [data-workbench-panel] {
    grid-column: 1 / -1;
}
.workbench-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: 1rem;
    align-items: start;
}
.workbench-form-column,
.workbench-result-column {
    min-width: 0;
}
.workbench-result-column {
    position: sticky;
    top: 4.25rem;
}
.advanced-panel summary,
#watchWalletStoragePanel summary {
    list-style: none;
}
.advanced-panel summary::-webkit-details-marker,
#watchWalletStoragePanel summary::-webkit-details-marker {
    display: none;
}
.wallet-add-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
    align-items: stretch;
    grid-auto-rows: minmax(2.85rem, auto);
}
.wallet-add-actions > #scanFromAddressBtn,
.wallet-add-actions > #walletManualToggleBtn {
    min-height: 0;
    height: 2.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
.wallet-manual-toggle {
    border-radius: 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.16);
    padding: 0.7rem 1rem;
    background: rgba(8, 47, 73, 0.52);
    color: #cffafe;
    text-align: center;
}
.wallet-manual-toggle[aria-expanded="true"] {
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 47, 73, 0.7);
}
.wallet-add-actions > #walletAdvancedPanel {
    grid-column: 1 / -1;
    border-color: rgba(51, 65, 85, 0.7);
    background: rgba(2, 6, 23, 0.34);
}
.watch-wallet-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
    gap: 0.5rem;
    max-height: 8.25rem;
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
}
.watch-wallet-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}
.watch-wallet-chip {
    min-width: 0;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.48);
    padding: 0.55rem 0.8rem;
    color: #94a3b8;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.watch-wallet-chip:hover {
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 47, 73, 0.46);
}
.watch-wallet-chip.is-active {
    border-color: rgba(45, 212, 191, 0.56);
    background: rgba(20, 184, 166, 0.18);
    color: #ccfbf1;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 12px 28px rgba(8, 145, 178, 0.1);
}
.watch-wallet-chip-title,
.watch-wallet-chip-count {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.watch-wallet-chip-title {
    font-size: 0.72rem;
    font-weight: 950;
}
.watch-wallet-chip-count {
    margin-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 800;
    color: rgba(186, 230, 253, 0.66);
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(8, 13, 24, 0.6); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2dd4bf, #38bdf8); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #5eead4, #22d3ee); }
/* 必须 !important：tokenFields 等容器同时带 Tailwind 的 grid/flex(display:grid/flex)，
   同特异性下会压过普通的 display:none，导致 field-hidden 失效、原生币时 token 字段藏不住。 */
.field-hidden { display: none !important; }
#qrScanModal { display: none; }
#qrScanModal.active { display: flex; }
#broadcastConfirmModal { display: none; }
#broadcastConfirmModal.active { display: flex; }
.panel {
    border: 1px solid var(--vx-border-soft);
    background: var(--vx-surface);
}
.notice {
    border: 1px solid rgba(45, 212, 191, 0.24);
    background: rgba(45, 212, 191, 0.08);
}
.warning {
    border: 1px solid rgba(251, 191, 36, 0.26);
    background: rgba(251, 191, 36, 0.09);
}
.qr-chunk-card {
    width: min(100%, 29rem);
    max-width: 100%;
}
.qr-chunk-frame {
    width: 100%;
    overflow: hidden;
}
.qr-chunk-target {
    flex: 0 0 auto;
    line-height: 0;
    contain: layout paint;
    aspect-ratio: 1 / 1;
    width: 420px;
    max-width: min(100%, 420px);
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
.qr-chunk-target canvas,
.qr-chunk-target img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}
.select-shell {
    position: relative;
}
.select-shell::after {
    content: "⌄";
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}
select {
    appearance: none;
}
#packageQrBox,
#packageQr {
    max-width: 100%;
    min-width: 0;
}
#evmUnsignedSection,
#dogeUnsignedSection {
    overflow: hidden;
}
body.vaultx-app #evmUnsignedSection .compact-header {
    margin-bottom: 0.9rem;
}
body.vaultx-app #evmUnsignedSection .compact-header h2 {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}
body.vaultx-app #evmUnsignedSection .compact-header p {
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.6rem !important;
    line-height: 1.5;
}
#evmUnsignedSection .space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#evmUnsignedSection .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0 !important;
}
#evmUnsignedSection .mobile-grid-2,
#evmUnsignedSection .mobile-grid-3,
#dogeUnsignedSection > .grid {
    gap: 0.85rem !important;
}
#evmUnsignedSection label,
#dogeUnsignedSection label {
    margin-bottom: 0.3rem;
    color: #8491a7;
    font-size: 0.56rem !important;
    font-weight: 900;
    letter-spacing: 0.06em;
}
#evmUnsignedSection input,
#evmUnsignedSection select,
#dogeUnsignedSection input {
    min-height: 2.45rem;
    border-radius: 0.85rem;
    border-color: rgba(71, 85, 105, 0.7);
    background: rgba(15, 23, 42, 0.64);
    padding-left: 0.82rem;
    padding-right: 0.82rem;
    color: #f1f5f9;
    font-size: 0.72rem !important;
    font-weight: 800;
}
#evmUnsignedSection #amount.amount-has-error {
    border-color: rgba(251, 113, 133, 0.92) !important;
    box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.16), 0 0 18px rgba(244, 63, 94, 0.12);
}
#evmUnsignedSection #amountWarningIcon {
    width: 0.72rem;
    height: 0.72rem;
    font-size: 0.5rem;
    transform: translateY(-0.02rem);
}
#evmUnsignedSection input::placeholder,
#dogeUnsignedSection input::placeholder {
    color: rgba(148, 163, 184, 0.76);
}
#evmUnsignedSection .select-shell::after {
    right: 1rem;
    font-size: 0.82rem;
}
#evmUnsignedSection .mobile-scan-btn,
#dogeUnsignedSection .mobile-scan-btn,
#evmUnsignedSection #sendAllAmountBtn,
#dogeUnsignedSection #sendAllUtxoAmountBtn {
    right: 0.55rem;
    border-radius: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 900;
}
#evmUnsignedSection #toAddress,
#evmUnsignedSection #tokenContract,
#dogeUnsignedSection #dogeToAddress {
    padding-right: 4.25rem;
}
#evmUnsignedSection #amount,
#dogeUnsignedSection #dogeAmount {
    padding-right: 4rem;
}
#evmUnsignedSection #availableAmountHint,
#dogeUnsignedSection #utxoAvailableAmountHint {
    min-height: 0.35rem;
    padding-top: 0.15rem;
    color: #fda4af;
    font-size: 0.55rem !important;
    font-weight: 800;
    line-height: 1.35;
}
#evmUnsignedSection #queryStatus,
#dogeUnsignedSection #dogePackageStatus {
    color: #8491a7;
    font-size: 0.72rem;
    line-height: 1.5;
}
#evmUnsignedSection .mobile-build-btn,
#dogeUnsignedSection .mobile-build-btn {
    min-height: 2.2rem;
    border-radius: 0.75rem;
    font-size: 0.66rem !important;
    font-weight: 900;
}
#evmUnsignedSection .evm-action-panel,
#dogeUnsignedSection .utxo-action-panel {
    border-radius: 0.95rem;
    padding: 0.6rem;
}
@media (max-width: 767px) {
    body.vaultx-app {
        padding: 0.75rem !important;
        overflow-x: hidden;
    }
    .vx-shell,
    .panel,
    .compact-card,
    .mobile-grid-2 > *,
    .mobile-grid-3 > * {
        min-width: 0;
    }
    .vx-shell > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }
    .workbench-tabs {
        top: 0.35rem;
        gap: 0.25rem;
        padding: 0.25rem;
        border-radius: 0.95rem;
    }
    .workbench-tab {
        min-height: 2.1rem;
        padding: 0 0.35rem;
        font-size: 0.62rem;
        line-height: 1.15;
    }
    .workbench-layout,
    .workbench-compose-grid {
        display: block;
    }
    .workbench-form-column > :not([hidden]) ~ :not([hidden]),
    .workbench-result-column > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem;
    }
    .workbench-result-column {
        position: static;
        margin-top: 0.75rem;
    }
    .wallet-add-actions {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    .wallet-add-actions > #scanFromAddressBtn,
    .wallet-add-actions > #walletManualToggleBtn {
        height: 2.45rem;
        font-size: 0.68rem;
    }
    .watch-wallet-chip-list {
        grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr));
        max-height: 7.4rem;
    }
    .watch-wallet-actions {
        justify-content: flex-start;
    }
    .watch-wallet-chip {
        padding: 0.48rem 0.68rem;
    }
    .watch-wallet-chip-title {
        font-size: 0.64rem;
    }
    .watch-wallet-chip-count {
        font-size: 0.52rem;
    }
    .vx-kicker {
        font-size: 0.56rem;
    }
    .vaultx-app .panel {
        border-radius: 1.1rem !important;
    }
    .vaultx-app .panel.p-5,
    .vaultx-app .panel.p-4 {
        padding: 0.9rem !important;
    }
    #onlineWorkbench {
        padding: 0.35rem !important;
    }
    #workbenchStatusStrip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.3rem !important;
    }
    .mobile-status-cell {
        min-width: 0;
        padding: 0.38rem 0.45rem !important;
    }
    .mobile-status-cell > div:first-child {
        font-size: 0.5rem;
    }
    .mobile-status-hint {
        display: none;
    }
    .workbench-chain-badge {
        max-width: 8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #watchWalletJsonInput {
        min-height: 3.5rem;
    }
    #watchWalletStorageHint {
        display: none;
    }
    .mobile-manual-import {
        padding: 0.65rem 0.75rem !important;
    }
    .mobile-manual-import summary {
        font-size: 0.72rem;
    }
    .mobile-manual-import:not([open]) {
        background: rgba(15, 23, 42, 0.42);
    }
    .mobile-wallet-actions button:disabled {
        display: none;
    }
    #watchWalletEmpty {
        margin-top: 0.75rem !important;
        padding: 0.75rem !important;
    }
    .compact-card { padding: 0.9rem; border-radius: 1.1rem; }
    .compact-card input,
    .compact-card select,
    #evmUnsignedSection input,
    #evmUnsignedSection select,
    #dogeUnsignedSection input {
        min-height: 2.45rem;
        padding-left: 0.78rem;
        padding-right: 0.78rem;
        font-size: 0.72rem !important;
        border-radius: 0.85rem;
    }
    #evmUnsignedSection #toAddress,
    #evmUnsignedSection #tokenContract,
    #dogeUnsignedSection #dogeToAddress {
        padding-right: 3.9rem;
    }
    #evmUnsignedSection #amount,
    #dogeUnsignedSection #dogeAmount {
        padding-right: 3.7rem;
    }
    .compact-card label,
    #evmUnsignedSection label,
    #dogeUnsignedSection label {
        font-size: 0.54rem !important;
        letter-spacing: 0.04em;
    }
    .compact-header {
        align-items: flex-start;
        gap: 0.75rem;
    }
    .compact-header h2 { font-size: 1.55rem; line-height: 1.15; }
    .compact-header p { font-size: 0.68rem; }
    #evmUnsignedSection .compact-header h2 {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
    #evmUnsignedSection .compact-header p {
        font-size: 0.58rem !important;
    }
    .compact-query-btn {
        flex: 0 0 auto;
        padding: 0.8rem 1rem;
        min-width: 6.5rem;
        border-radius: 1rem;
        font-size: 0.75rem;
    }
    .mobile-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .mobile-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .mobile-span-2 { grid-column: span 2 / span 2 !important; }
    .mobile-compact-gap { gap: 0.85rem !important; }
    .mobile-scan-btn,
    #evmUnsignedSection .mobile-scan-btn,
    #dogeUnsignedSection .mobile-scan-btn,
    #evmUnsignedSection #sendAllAmountBtn,
    #dogeUnsignedSection #sendAllUtxoAmountBtn {
        padding: 0.22rem 0.55rem;
        font-size: 0.68rem;
        border-radius: 0.7rem;
    }
    .mobile-short-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-build-btn {
        min-height: 3.5rem;
        border-radius: 1.1rem;
        font-size: 1rem;
    }
    #evmUnsignedSection .mobile-build-btn,
    #dogeUnsignedSection .mobile-build-btn {
        min-height: 2.15rem;
        border-radius: 0.75rem;
        font-size: 0.66rem !important;
        white-space: nowrap;
    }
    #evmUnsignedSection input,
    #evmUnsignedSection select {
        font-size: 0.72rem !important;
    }
    #evmUnsignedSection .mobile-build-btn {
        font-size: 0.66rem !important;
    }
    #evmUnsignedSection .evm-action-panel,
    #dogeUnsignedSection .utxo-action-panel {
        border-radius: 0.95rem;
        padding: 0.55rem;
    }
    #evmUnsignedSection .evm-action-panel > .grid {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }
    #evmUnsignedSection .evm-action-panel .mobile-build-btn {
        min-width: 0;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    #evmUnsignedSection .space-y-4 {
        gap: 1.05rem;
    }
    #evmUnsignedSection .mobile-grid-2,
    #evmUnsignedSection .mobile-grid-3,
    #dogeUnsignedSection > .grid {
        gap: 0.8rem !important;
    }
    #availableAmountHint,
    #queryStatus,
    #watchWalletMeta,
    #packageStatus {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
@media (max-width: 480px) {
    .mobile-grid-2,
    .mobile-grid-3 {
        grid-template-columns: 1fr !important;
    }
    #evmUnsignedSection .evm-action-panel > .grid {
        grid-template-columns: 1fr !important;
    }
    #evmUnsignedSection .evm-action-panel .mobile-build-btn {
        white-space: nowrap;
    }
    .mobile-span-2 {
        grid-column: auto !important;
    }
    .compact-header h2 {
        font-size: 1.35rem;
    }
    #evmUnsignedSection .compact-header h2 {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
}

/* ===== 观察钱包余额区（资产页重做） ===== */
.watch-view-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.45);
}
.watch-view-tab {
    border: 1px solid transparent;
    border-radius: 0.55rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(165, 243, 252, 0.62);
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.watch-view-tab:hover {
    color: #cffafe;
    background: rgba(34, 211, 238, 0.08);
}
.watch-view-tab.is-active {
    border-color: rgba(45, 212, 191, 0.5);
    background: rgba(20, 184, 166, 0.16);
    color: #ccfbf1;
}
.watch-balance-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(8, 47, 73, 0.3));
}
.watch-balance-hero-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #d1fae5;
    overflow-wrap: anywhere;
}
.watch-balance-hero-symbol {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(110, 231, 183, 0.85);
}
.watch-balance-hero-note {
    width: 100%;
    font-size: 0.62rem;
    color: rgba(148, 163, 184, 0.85);
}
.watch-asset-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 0.85rem;
    background: rgba(2, 6, 23, 0.38);
}
.watch-asset-row.is-native {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.08);
}
.asset-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ecfeff;
    background: linear-gradient(140deg, #0e7490, #155e75);
    border: 1px solid rgba(103, 232, 249, 0.28);
}
.watch-asset-row.is-native .asset-badge {
    background: linear-gradient(140deg, #047857, #065f46);
    border-color: rgba(110, 231, 183, 0.3);
}
.watch-asset-name {
    min-width: 0;
    flex: 1 1 auto;
}
.watch-asset-name-main {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.watch-asset-name-sub {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.8);
}
.watch-asset-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f0fdfa;
    text-align: right;
    overflow-wrap: anywhere;
}
.watch-address-picker {
    position: relative;
}
.watch-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.watch-address-picker-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.55);
    color: #cffafe;
    font-size: 0.74rem;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease;
}
.watch-address-picker-btn:hover:not(:disabled) {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(8, 47, 73, 0.5);
}
.watch-address-picker-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.watch-address-picker-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.watch-address-picker-chevron {
    width: 0.85rem;
    height: 0.85rem;
    flex: none;
    color: rgba(103, 232, 249, 0.7);
    transition: transform 160ms ease;
}
.watch-address-picker-btn[aria-expanded="true"] .watch-address-picker-chevron {
    transform: rotate(180deg);
}
.watch-address-picker-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 0.85rem;
    background: rgba(2, 6, 23, 0.97);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.65);
}
.watch-address-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    text-align: left;
    transition: background 140ms ease;
}
.watch-address-option:hover {
    background: rgba(8, 47, 73, 0.6);
}
.watch-address-option.is-active {
    background: rgba(20, 184, 166, 0.16);
}
.watch-address-option-index {
    flex: none;
    min-width: 2rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: rgba(103, 232, 249, 0.75);
}
.watch-address-option-address {
    min-width: 0;
    flex: 1 1 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.watch-address-option-balance {
    flex: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.64rem;
    color: rgba(110, 231, 183, 0.9);
}
.watch-address-option-balance.is-empty {
    color: rgba(100, 116, 139, 0.8);
}
.watch-aggregate-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 0.85rem;
    background: rgba(2, 6, 23, 0.38);
}
.watch-aggregate-meta {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.8);
}
.watch-coverage-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    color: rgba(165, 243, 252, 0.8);
}
.watch-coverage-warn {
    color: #fcd34d;
}
.watch-coverage-error {
    color: #fda4af;
}
.vx-skeleton {
    border-radius: 0.85rem;
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.35) 25%, rgba(94, 116, 148, 0.45) 50%, rgba(51, 65, 85, 0.35) 75%);
    background-size: 200% 100%;
    animation: vx-skeleton-pulse 1.3s ease-in-out infinite;
}
@keyframes vx-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.watch-address-option-extend {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.6rem;
    border-top: 1px dashed rgba(34, 211, 238, 0.22);
    border-radius: 0 0 0.6rem 0.6rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #67e8f9;
    transition: background 140ms ease;
}
.watch-address-option-extend:hover:not(:disabled) {
    background: rgba(8, 47, 73, 0.6);
}
.watch-address-option-extend:disabled {
    cursor: not-allowed;
    color: rgba(100, 116, 139, 0.85);
}
.vx-result-flash {
    animation: vx-result-flash 1.6s ease-out 1;
}
@keyframes vx-result-flash {
    0% { box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.75), 0 0 34px rgba(45, 212, 191, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

/* ===== 移动端输入体验 =====
   iOS 聚焦输入框自动放大由 viewport 的 maximum-scale=1 拦截（iOS 10+ 手动双指缩放不受影响）。
   曾试过触屏输入框提 16px 的双保险方案，因破坏移动端紧凑观感回退，勿再加回；若个别机型仍放大，
   走"16px + 降字重 + 加内距"的精修方案。overscroll-behavior 禁下拉刷新，防缩放/滚动误触刷掉表单。 */
html, body {
    overscroll-behavior-y: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
