/* Centre each complete heading/card group below the fixed navigation. */
body .ss-choice-menu,
body .ss-baseline-area-content,
body .ss-progress-choice-screen {
  box-sizing: border-box;
  min-height: 100svh;
  padding: 144px 24px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ss-baseline-area-content { flex: 1; }
.ss-choice-grid,
.ss-baseline-area-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}
.ss-choice-grid > *,
.ss-baseline-area-grid > * {
  box-sizing: border-box;
  flex: 0 1 360px;
  width: min(100%, 360px);
  min-width: 0;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ss-dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px;
  min-height: 352px;
}
.ss-dashboard-card > img,
.ss-dashboard-card > svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  margin-bottom: 16px;
}
.ss-dashboard-card > h2 {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.ss-dashboard-card > p { min-height: 44px; margin: 0; }
.ss-dashboard-card > .mt-4 { min-height: 104px; width: 100%; }
.ss-progress-choice-body { min-height: 0; }
.ss-progress-choice-header { text-align: center; margin-bottom: 32px; }
.ss-progress-choice-header h1 { font-size: 30px; line-height: 1.25; }
.ss-progress-choice-header > button {
  position: fixed;
  top: 96px;
  left: 24px;
  z-index: 20;
  background: rgba(255,255,255,.95);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #065f46;
}
.ss-choice-grid > button:focus-visible,
.ss-baseline-area-grid > button:focus-visible {
  outline: 3px solid #34d399;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .ss-choice-menu,.ss-baseline-area-content,.ss-progress-choice-screen { padding: 144px 16px 72px; }
  .ss-choice-grid,.ss-baseline-area-grid { gap: 16px; }
  .ss-choice-grid > *,.ss-baseline-area-grid > * { flex-basis: 100%; }
  .ss-progress-choice-header h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-choice-grid > *,.ss-baseline-area-grid > * { transition: none; }
}

.ss-baseline-area-grid > button { min-height: 264px; }
/* Four choices form two balanced rows rather than three cards plus one. */
.ss-choice-grid:has(> :nth-child(4):last-child),
.ss-baseline-area-grid:has(> :nth-child(4):last-child) {
  max-width: 744px;
  margin-inline: auto;
}
.ss-dashboard-card .space-y-2 .justify-between { gap: 12px; }
.ss-dashboard-card .space-y-2 .justify-between > span:first-child { min-width: 0; }
.ss-dashboard-card .space-y-2 .justify-between > span:last-child { flex-shrink: 0; white-space: nowrap; }

/* The fixed navigation is 72px tall. Equal space around the group within
   the remaining viewport requires a 72px difference between top/bottom. */
body .ss-choice-menu { padding: 108px 24px 36px; }
/* Page headings share one scale; card and section headings stay subordinate. */
body #root h1 { font-size: 30px; font-weight: 600; line-height: 1.25; }
/* Keep the staging notice visible without adding hidden space under the nav. */
.ss-staging-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 4px 8px !important; font-size: 11px !important; line-height: 16px !important; }
@media (max-width: 640px) {
  body .ss-choice-menu { padding: 108px 16px 36px; }
  body #root h1 { font-size: 26px; }
}
