/* ============================================================
   Marty — home / dashboard page styles (F1)
   Uses core tokens + components from app.css only.
   ============================================================ */

/* ---------------------------------------------- greeting ---- */

.home-greeting { min-width: 0; }
.home-greeting h1 {
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.home-avatar { -webkit-tap-highlight-color: transparent; }

/* ---------------------------------------- mascot insight ----
   .mascot-card / .mascot-bubble proper styling belongs to
   mascot.css (F7). The :where() rules below are zero-specificity
   fallbacks so the card still lays out nicely if mascot.css has
   not shipped yet — any real rule in mascot.css overrides them. */

.home-insight { margin: 12px 0; }
:where(.home-insight.mascot-card) {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
:where(.home-insight .mascot-bubble) {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.home-mascot {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-mascot svg { display: block; }
.home-mascot-fallback { font-size: 40px; line-height: 1; }

/* --------------------------------------------- stat cards --- */

.home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.home-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.home-stat-value {
  font-size: clamp(15px, 5.5vw, 24px); /* big amounts shrink instead of truncating */
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-payday-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.home-payday-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* -------------------------------------------- 7-day chart --- */

.home-chart-card { margin-top: 12px; }
.home-chart-wrap {
  position: relative;
  height: 140px;
  margin-top: 10px;
}

/* -------------------------------------------------- lists --- */

.home-list-card { padding: 6px 16px; }
.home-month-card { padding-top: 14px; }
.home-month-card + .home-month-card { margin-top: 12px; }

.home-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}
.home-list-head h3 { font-size: 16px; }
.home-list-total {
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* ------------------------------------------------ budgets card -- */
.home-sec-link { float: right; font-size: 12.5px; font-weight: 700; }
.home-budget-row { padding: 8px 0; }
.home-budget-row + .home-budget-row { border-top: 1px solid var(--line); }
.home-budget-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.home-budget-name { font-weight: 700; font-size: 14.5px; }
.home-budget-rem { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.home-budget-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
