/* Wallet management (#/wallets, app/js/views/wallets.js). Uses the theme variables from styles.css only. */
.wm-card { margin-top: 0; }
.wm-tab { display: inline-flex; align-items: center; gap: 7px; }
.wm-tab .ic { color: var(--muted); }
.wm-tab.on .ic { color: var(--text); }
.wm-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--raise); border: 1px solid var(--line); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; color: var(--muted); }
.wm-pane { padding: 18px; }
.wm-pane .empty-state { padding: 40px 16px; }

/* My Wallets header */
.wm-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wm-head .grow, .wm-foot .grow, .wm-form-acts .grow { flex: 1; }
.wm-total { display: flex; flex-direction: column; gap: 2px; }
.wm-total-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wm-total-n { font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.wm-total-usd { font-size: 15px; font-weight: 500; }
.wm-total-row .wm-ib { align-self: center; }
.wm-gen { display: inline-flex; align-items: center; gap: 6px; }

/* Table */
.wm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.wm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.wm-table th { background: var(--raise); color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.wm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.wm-table tbody tr:last-child td { border-bottom: 0; }
.wm-table tbody tr:hover td { background: color-mix(in srgb, var(--raise) 55%, transparent); }
.wm-table .l { text-align: left; } .wm-table .r { text-align: right; } .wm-table .c { text-align: center; }
.wm-table td.r strong { display: block; font-weight: 600; }
.wm-sub { display: block; font-size: 12px; }

.wm-who { display: flex; flex-direction: column; gap: 3px; }
.wm-name-row { display: flex; align-items: center; gap: 6px; }
.wm-star { color: var(--warn); font-size: 14px; line-height: 1; }
.wm-name { font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin-left: -6px; width: 170px; max-width: 100%; }
.wm-name:hover { border-color: var(--line); }
.wm-name:focus { outline: none; border-color: var(--text); background: var(--panel); }
.wm-addr { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.wm-addr img { border-radius: 99px; flex: none; }
.wm-addr .mono { word-break: normal; }
.wm-addr .copy-btn { margin-left: 0; width: 22px; height: 22px; }
.wm-evm { display: inline-grid; place-items: center; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--raise); border: 1px solid var(--line); font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: var(--muted); }

/* Use-for-buys switch */
.wm-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; vertical-align: middle; }
.wm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wm-switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background .15s; pointer-events: none; }
.wm-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.wm-switch input:checked + i { background: var(--accent); }
.wm-switch input:checked + i::after { transform: translateX(16px); background: var(--accent-ink); }
.wm-switch input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent); }

/* Icon buttons */
.wm-acts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.wm-acts .btn.small { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; }
.wm-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.wm-ib:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.wm-ib:disabled { opacity: .4; cursor: not-allowed; }

/* Footer: lock state and key actions */
.wm-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.wm-lock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.wm-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--muted); flex: none; }
.wm-dot.on { background: var(--up); }
.wm-note { margin: 12px 0 0; }

/* Deposit */
.wm-form-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.wm-pick { display: flex; flex-direction: column; gap: 4px; min-width: 260px; max-width: 100%; }
.wm-deps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.wm-dep { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.wm-dep-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wm-dep-head img { border-radius: 99px; }
.wm-dep-addr { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; background: var(--raise); }
.wm-dep-addr .mono { font-size: 15px; font-weight: 600; word-break: break-all; flex: 1; line-height: 1.45; }
.wm-dep-addr .copy-btn { width: 32px; height: 32px; flex: none; margin-left: 0; }
.wm-dep p { margin: 0; }
.wm-chains { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-chainchip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.wm-chainchip img { border-radius: 99px; }

/* Withdraw */
.wm-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.wm-field { display: flex; flex-direction: column; gap: 5px; }
.wm-field-k { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.wm-field-k .muted { font-weight: 400; }
.wm-form p { margin: 0; }
.wm-form-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.wm-make .fw-sec { max-width: 560px; }
.wm-make .fw-make { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 720px) {
  .wm-pane { padding: 14px; }
  .wm-total-n { font-size: 24px; }
  .wm-head .grow { display: none; }
  .wm-pick { min-width: 0; width: 100%; }
}
