.accounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .accounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.account-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1rem;
}

.account-card.debt {
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.account-card.debt .account-top {
  color: #fcd34d;
}

.account-balance {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.account-card.debt .account-balance {
  color: #fde68a;
}

.account-sub {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.credit-meta {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(252, 211, 77, 0.85);
}

.progress-track {
  margin-top: 0.35rem;
  height: 0.4rem;
  width: 100%;
  border-radius: 9999px;
  background: rgba(69, 26, 3, 0.85);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #fbbf24;
}

.progress-fill.high {
  background: #fb7185;
}

/* Termómetro TC */
.thermometer-card {
  border-radius: 1rem;
  border: 1px solid var(--emerald-border);
  background: rgba(6, 78, 59, 0.22);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thermometer-card.deficit {
  border-color: var(--rose-border);
  background: rgba(136, 19, 55, 0.2);
}

.thermometer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.thermometer-desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.thermometer-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thermometer-amount {
  margin: 0.15rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.kpi-value {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* Obligaciones y Conceptos */
.resumen-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.obligation-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.obligation-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.7);
  padding: 0.65rem 0.85rem;
}

.obligation-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dot-status {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: #fbbf24;
  flex-shrink: 0;
}

.dot-status.paid {
  background: #34d399;
}

.obligation-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}

.obligation-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.obligation-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.obligation-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cat-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cat-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.cat-bar-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: #020617;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: #6366f1;
}

.cat-bar-fill.arq {
  background: #8b5cf6;
}
