:root {
  --pos: #198754;
  --neg: #dc3545;
  --muted: #6c757d;
}

body { background: #f6f7fb; }

.brand-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: middle;
}

.kpi {
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e8ebf1;
}
.kpi .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font-size: 1.6rem; font-weight: 600; margin-top: 4px; }
.kpi.positive .value { color: var(--pos); }
.kpi.negative .value { color: var(--neg); }

.card-soft {
  background: white;
  border: 1px solid #e8ebf1;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.money-pos { color: var(--pos); font-variant-numeric: tabular-nums; }
.money-neg { color: var(--neg); font-variant-numeric: tabular-nums; }
.money-zero { color: var(--muted); font-variant-numeric: tabular-nums; }

.table > tbody > tr > td { vertical-align: middle; }

.group-row td {
  background: #f1f3f9;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .06em;
  color: #495057;
}

.assign-input {
  width: 110px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.account-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: .8rem;
}
.account-pill.credit { background: #fef3c7; color: #92400e; }
.account-pill.savings { background: #dcfce7; color: #166534; }
.account-pill.cash { background: #e0e7ff; color: #3730a3; }
.account-pill.investment { background: #f3e8ff; color: #6b21a8; }

.progress-thin { height: 8px; }

.spend-bar {
  position: relative;
  height: 22px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
}
.spend-fill {
  position: absolute;
  inset: 0;
  width: calc(var(--w, 0) * 1%);
  border-radius: 5px;
}
.spend-fill--ok   { background: #198754; }
.spend-fill--warn { background: #f59e0b; }
.spend-fill--over { background: #dc3545; }
.spend-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  pointer-events: none;
}

.chart-wrap { position: relative; height: 280px; }
.chart-wrap.tall { height: 360px; }
