.firestore-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f7fa;
  color: #132033;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.firestore-gate section {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 32, 51, 0.1);
}

.firestore-gate h1 { margin: 4px 0 10px; }
.firestore-gate p { line-height: 1.5; }
.firestore-gate__eyebrow { color: #52647a; font-size: 0.8rem; text-transform: uppercase; }
.firestore-gate__button { border: 0; border-radius: 6px; padding: 11px 14px; background: #101c2d; color: #fff; font-weight: 700; cursor: pointer; }

.firestore-gate__title--sm { margin: 4px 0 6px; font-size: 1.17rem; font-weight: 700; }
.firestore-gate__hint { margin: 0 0 18px; font-size: 0.85rem; color: #52647a; line-height: 1.5; }
.firestore-gate__progress {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.firestore-gate__progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #101c2d;
  transition: width 0.35s ease;
}

.finance-persistence-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  font: 12px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.finance-persistence-status.saving { border-color: #f59e0b; }
.finance-persistence-status.saved,
.finance-persistence-status.ready { border-color: #16a34a; }
.finance-persistence-status.error { border-color: #dc2626; color: #991b1b; }
.finance-persistence-status button { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .finance-persistence-status { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; }
}
