/* ============================================================
   Marty — wallet / accounts page styles (F2)
   Uses core tokens + components from app.css only.
   ============================================================ */

.wallet-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------------------------------------------- net worth ---- */

.wa-networth { margin-bottom: 12px; }
.wa-nw-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wa-nw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.wa-nw-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-spark {
  position: relative;
  height: 48px;
  margin-top: 10px;
}
.wa-spark canvas { display: block; }

/* ---------------------------------------- liquidity insight -- */

.wa-liquid {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--green-softer), var(--green-soft));
}
.wa-mascot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-mascot svg { display: block; }
.wa-mascot-fallback { font-size: 27px; line-height: 1; }
.wa-liquid-line {
  font-size: 14px;
  min-width: 0;
}
.wa-liquid-line strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------ filters ---- */

.wa-filters { margin-bottom: 12px; }

/* ------------------------------------------- account cards --- */

.wa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.wa-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-softer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.wa-body { flex: 1; min-width: 0; }
.wa-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.wa-amts { text-align: right; flex-shrink: 0; }
.wa-bal {
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wa-base {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: 1px;
}

/* credit usage block spans the full card width */
.wa-credit {
  flex-basis: 100%;
  min-width: 100%;
  margin-top: 2px;
}
.wa-credit .progress { margin-bottom: 6px; }
.wa-credit-cap {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------- drag states --- */

.wa-card.wa-dragging { opacity: .5; }
.wa-card.wa-lifted {
  opacity: .92;
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(34, 49, 43, .2);
  position: relative;
  z-index: 5;
}

/* ----------------------------------------------- archived ---- */

.wa-card.wa-archived { opacity: .65; }
.wa-card.wa-archived .wa-ico { filter: grayscale(.8); }
.wa-arch-head {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wa-arch-chev { font-size: 12px; }

/* -------------------------------------------- add button ----- */

.wa-add-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--green-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .06s ease, border-color .15s ease;
}
.wa-add-btn:active {
  transform: scale(.99);
  border-color: var(--green);
}

/* ------------------------------------------- action sheet ---- */

.wa-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.wa-sheet-head .modal-title { margin-bottom: 2px; }
.wa-sheet-info { min-width: 0; }
.wa-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -------------------------------------------- form extras ---- */

.wa-emoji-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wa-emoji-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.wa-emoji-btn:active { background: var(--green-softer); }

.wa-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px;
}
.wa-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(34, 49, 43, .08);
  -webkit-tap-highlight-color: transparent;
}
.wa-swatch.selected {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink);
}
