#firebasePanel .firebase-panel-content {
  display: grid;
  gap: 18px;
  max-width: 1440px;
}

#firebasePanel .firebase-panel-content > section {
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid #d8e3f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 43, 75, .06);
}

#firebasePanel .firebase-usage-section {
  margin: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

#firebasePanel .storage-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

#firebasePanel .storage-status-header h3 {
  margin: 4px 0 0;
  color: #102b4b;
  font-size: clamp(19px, 2vw, 23px);
}

#firebasePanel .firebase-billing-grid,
#firebasePanel .firebase-usage-grid,
#firebasePanel .backup-summary-grid {
  display: grid;
  gap: 12px;
}

#firebasePanel .firebase-billing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#firebasePanel .firebase-usage-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

#firebasePanel .backup-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

#firebasePanel .storage-card,
#firebasePanel .firebase-billing-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d8e3f1;
  border-radius: 13px;
  background: #f5f8fc;
  box-shadow: none;
}

#firebasePanel .firebase-billing-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #102b4b;
  font-size: clamp(18px, 2vw, 24px);
}

#firebasePanel .firebase-billing-card span,
#firebasePanel .firebase-billing-card p {
  color: #526985;
}

#firebasePanel .firebase-billing-card p {
  margin: 0 0 9px;
  font-size: 13px;
}

#firebasePanel .firebase-billing-card a {
  color: #165999;
  font-weight: 700;
}

#firebasePanel .firebase-billing-note {
  margin: 14px 0 0;
  color: #526985;
  font-size: 13px;
}

#firebasePanel .firebase-usage-card .storage-card-title strong {
  color: #102b4b;
  font-size: clamp(23px, 2.5vw, 30px);
}

#firebasePanel .firebase-usage-subtitle {
  margin: 10px 0 0;
}

#firebasePanel .backup-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  #firebasePanel .firebase-billing-grid { grid-template-columns: 1fr; }
  #firebasePanel .storage-status-header { flex-direction: column; }
  #firebasePanel .backup-header-actions { width: 100%; }
  #firebasePanel .backup-header-actions button { flex: 1 1 170px; }
}
