body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1 {
  margin: 0 0 32px;
  font-size: 2.25rem;
  font-weight: 700;
}

.month-card {
  margin-bottom: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.month-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.month-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.month-title-row h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.month-change {
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 700;
}

.positive {
  color: #059669;
}

.negative {
  color: #dc2626;
}

.balance {
  color: #64748b;
  font-size: 0.95rem;
}

.balance strong {
  color: #334155;
  font-weight: 600;
}

.arrow {
  padding: 0 6px;
  color: #94a3b8;
}

.expense {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.expense:last-child {
  border-bottom: 0;
}

.expense-info {
  min-width: 0;
}

.expense-category {
  color: #0f172a;
}

.description {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.92rem;
}

.expense-amount {
  flex-shrink: 0;
  white-space: nowrap;
  color: #334155;
  font-weight: 600;
}

.loading {
  color: #64748b;
  font-size: 1.1rem;
}

.error {
  padding: 16px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .container {
    padding: 24px 12px 40px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: 1.7rem;
  }

  .month-header {
    padding: 16px;
  }

  .month-title-row {
    display: block;
  }

  .month-title-row h2 {
    font-size: 1.5rem;
  }

  .month-change {
    margin-top: 4px;
    font-size: 1.3rem;
  }

  .expense {
    padding: 12px 16px;
  }
}
