/* cash-flow-overview
   Cash Flow page shell + Overview and Totals tabs. Exact values from the
   Figma "home" (18614:394095) and "totals" (18622:397641) frames. */

/* --- Shared bits --- */

.cf-page {
  /* .groove-content gives 48px; the Figma content column starts at 80px. */
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cf-page p,
.cf-page :is(h1, h2, h3, h4) {
  margin: 0;
}

/* Headings and lists that replaced styled p/div elements (WCAG 1.3.1) keep
   the look of what they replaced. Zero specificity, so every class rule
   still wins. */
:where(.cf-page) :where(h1, h2, h3, h4) {
  font-size: inherit;
  font-weight: inherit;
}

:where(.cf-page) :where(ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-card {
  background: var(--navy-card);
  border-radius: 12px;
}

.cf-rule {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  background: var(--navy-border);
}

.cf-empty-text {
  color: var(--light-gray);
  font-size: 16px;
}

.cf-coral-text { color: #D1817E; }
.cf-green-text { color: var(--link-green); }

.cf-mask-icon {
  display: inline-block;
  flex-shrink: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.cf-icon-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-icon-badge img {
  display: block;
}

/* --- Placeholder states --- */

.cf-placeholder {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.4;
}

.cf-placeholder-link {
  align-self: flex-start;
  height: 45px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 24px;
  background: var(--white);
  color: #122238;
  font-size: 14px;
  font-weight: 500;
}

/* --- Header + tabs --- */

.cf-header-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-header-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-header-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
}

/* Presentation mode flag: sits right after the title (auto right margin
   beats the heading's space-between), on every tab. */
.pm-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 12px;
  padding: 3px 8px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cf-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cf-header-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 40px;
  background: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-header-icon img {
  display: block;
}

.cf-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cf-tab {
  height: 40px;
  padding: 6px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--navy-card);
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.cf-tab.active {
  background: var(--white);
  color: var(--navy-mid);
}

.cf-tab-content {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* --- TO DO review links --- */

/* Presentation mode banner: obfuscated numbers must never pass as real. */
.pm-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Sits closer to the TO DO block than the tab content's 48px gap. */
  margin-bottom: -24px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--navy-card);
  color: var(--gold);
  text-decoration: none;
}

.pm-banner-label {
  flex: 1;
  min-width: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.pm-banner:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.cf-todo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-todo-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
}

.cf-todo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cf-todo-cards > li {
  display: flex;
}

.cf-todo-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid;
  border-radius: 8px;
  background: var(--navy-card);
}

.cf-todo-card-label {
  flex: 1;
  min-width: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

/* --- Overview --- */

.cf-overview {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cf-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cf-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cf-info-button {
  /* 24px target (WCAG 2.5.8) around the 18px icon; the negative margin keeps
     the 18px footprint. */
  width: 24px;
  height: 24px;
  margin: -3px;
  padding: 3px;
  border: 0;
  background: none;
  display: flex;
}

.cf-info-button img {
  display: block;
}

/* Current month */

.cf-current-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cf-current-card {
  width: 569px;
  flex-shrink: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.cf-reauth {
  margin: -24px -24px 0;
  padding: 8px 24px;
  background: #E8475F;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.cf-current-insights {
  display: flex;
  gap: 8px;
  text-align: center;
}

.cf-current-insight {
  flex: 1 0 0;
  min-width: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-current-insight-title {
  color: var(--light-gray);
  font-size: 14px;
}

.cf-current-insight-amount {
  color: var(--white);
  font-size: 32px;
  white-space: nowrap;
}

.cf-current-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-money-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-money-bar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.2;
}

.cf-money-bar-label {
  flex: 1;
  font-size: 16px;
}

.cf-money-bar-value {
  font-size: 18px;
}

.cf-money-bar-track {
  height: 16px;
  display: flex;
  gap: 4px;
}

.cf-money-seg {
  height: 16px;
  border-radius: 2px;
  flex-shrink: 1;
  min-width: 2px;
}

.cf-money-seg-solid {
  background: var(--seg-color);
}

/* Diagonal stripes (Upcoming) - thin navy lines over the segment color. */
.cf-money-seg-diagonal {
  background:
    repeating-linear-gradient(-45deg, var(--seg-color) 0 1.6px, transparent 1.6px 3.4px),
    var(--navy-card);
}

/* Cross-hatch (Rollover). */
.cf-money-seg-cross {
  background:
    repeating-linear-gradient(45deg, rgba(22, 41, 74, 0.55) 0 1px, transparent 1px 3.4px),
    repeating-linear-gradient(-45deg, rgba(22, 41, 74, 0.55) 0 1px, transparent 1px 3.4px),
    var(--seg-color);
}

/* Horizontal stripes (Saved). */
.cf-money-seg-horizontal {
  background:
    repeating-linear-gradient(180deg, var(--seg-color) 0 2px, rgba(22, 41, 74, 0.7) 2px 3px);
}

.cf-current-key {
  padding-top: 12px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.cf-current-key-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.cf-swatch {
  width: 12px;
  height: 4px;
  border-radius: 1px;
  flex-shrink: 0;
}

.cf-swatch-posted { background: #959393; }
.cf-swatch-overage { background: #C96B67; }

.cf-swatch.cf-pattern-cross {
  background:
    repeating-linear-gradient(45deg, #959393 0 1px, transparent 1px 2.5px),
    repeating-linear-gradient(-45deg, #959393 0 1px, transparent 1px 2.5px);
}

.cf-swatch.cf-pattern-diagonal {
  background: repeating-linear-gradient(-45deg, #959393 0 1.2px, transparent 1.2px 2.6px);
}

.cf-swatch.cf-pattern-horizontal {
  background: repeating-linear-gradient(180deg, var(--gold) 0 1px, transparent 1px 2px);
}

/* Available-to-spend insight */

.cf-available {
  flex: 1 0 0;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-available-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-available-title {
  flex: 1 0 0;
  min-width: 0;
  color: var(--white);
  font-size: 18px;
}

.cf-available-amount {
  font-size: 32px;
  text-align: right;
  white-space: nowrap;
}

.cf-available-detail {
  font-size: 16px;
  line-height: 1.4;
}

.cf-available-goal {
  text-decoration: none;
  height: 45px;
  padding: 1px 16px 0 0;
  border-radius: 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cf-available-goal span {
  width: 190px;
  color: #122238;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-align: right;
}

/* Account balances + activity */

.cf-overview-pair {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cf-pair-item {
  flex: 1 0 0;
}

.cf-balances {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-balance-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}

.cf-balance-row img {
  display: block;
  flex-shrink: 0;
}

.cf-balance-name {
  flex: 1 0 0;
  min-width: 0;
  font-size: 16px;
}

.cf-balance-amount {
  font-size: 18px;
  text-align: right;
  white-space: nowrap;
}

.cf-activity {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.cf-activity-gauge {
  width: 168px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cf-gauge {
  position: relative;
  width: 96px;
  height: 49px;
}

.cf-gauge .groove-chart {
  pointer-events: none;
}

.cf-gauge-needle {
  position: absolute;
  inset: 0;
  display: block;
}

.cf-activity-label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cf-activity-value {
  font-size: 18px;
}

.cf-activity-bars {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cf-activity-bar-card {
  flex: 1 0 0;
  min-width: 0;
  height: 88px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cf-activity-bar {
  width: 96px;
  height: 8px;
  background: var(--navy-card-secondary);
  overflow: hidden;
}

.cf-activity-bar-fill {
  height: 100%;
  background: var(--figma-green);
}

.cf-activity-divider {
  width: 1px;
  flex-shrink: 0;
  background: var(--navy-border);
}

/* Snapshot */

.cf-snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-snapshot-arrows {
  display: flex;
  gap: 8px;
}

.cf-snapshot-arrow {
  width: 40px;
  height: 40px;
  padding: 10px 7px;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
}

.cf-snapshot-arrow img {
  display: block;
}

.cf-snapshot-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.cf-snapshot-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-snapshot-subheader {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-snapshot-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-snapshot-heading-text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-snapshot-title {
  font-size: 18px;
}

.cf-snapshot-range {
  color: var(--light-gray);
  font-size: 14px;
}

.cf-snapshot-body {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.cf-stat {
  width: 406px;
  flex-shrink: 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--navy-card-secondary);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-stat-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cf-stat-label {
  flex: 1 0 0;
  min-width: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-stat-tag {
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--navy-mid);
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.cf-stat-amounts {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.cf-stat-amount {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-stat-per {
  color: var(--light-gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cf-stat-detail {
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}

.cf-snapshot-visual {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

.cf-snapshot-visual-inner {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cf-snapshot-visual-inner > .groove-chart {
  width: 100%;
}

.cf-snapshot-footer {
  padding-top: 12px;
  border-top: 1px solid var(--navy-border);
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
}

.cf-snapshot-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.cf-snapshot-dot {
  position: relative;
  width: 26px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--navy-border);
  border-radius: 2px;
  background: transparent;
}

.cf-snapshot-dot::before {
  /* 30x24 hit area (WCAG 2.5.8) - meets its 4px-apart neighbours' without
     overlapping. */
  content: '';
  position: absolute;
  inset: -9px -3px;
}

.cf-snapshot-dot.active {
  border-color: var(--white);
  background: var(--white);
}

/* Snapshot key */

.cf-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
}

.cf-key-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cf-key-marker {
  width: 12px;
  padding: 4px 0;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.cf-key-swatch {
  flex: 1 0 0;
  height: 4px;
  border-radius: 1px;
}

.cf-key-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cf-key-label {
  color: var(--light-gray);
  font-size: 14px;
}

.cf-key-value {
  color: var(--white);
  font-size: 16px;
}

/* Lifestyle donut */

.cf-donut {
  position: relative;
  width: 144px;
}

.cf-donut-center {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cf-donut-caption {
  color: var(--light-gray);
  font-size: 12px;
}

.cf-donut-total {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

/* --- Modals (info + month picker) --- */

.cf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 31, 56, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cf-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cf-modal-title {
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: var(--navy-card-secondary);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
}

.cf-modal-paragraph {
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}

.cf-modal-paragraph strong {
  font-weight: 700;
}

.cf-month-picker-year {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-size: 32px;
  font-weight: 500;
}

.cf-month-picker-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  background: var(--navy-card-secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-month-picker-arrow:disabled,
.cf-month-picker-month:disabled {
  opacity: 0.4;
  cursor: default;
}

.cf-month-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cf-month-picker-month {
  height: 48px;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  background: var(--navy-card-secondary);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.cf-month-picker-month.active {
  background: var(--white);
  color: var(--navy-mid);
}

/* --- Totals --- */

.cf-totals {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cf-totals-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-totals-col-left {
  width: 480px;
  flex-shrink: 0;
}

.cf-totals-col-right {
  flex: 1 0 0;
  min-width: 0;
}

.cf-totals-card {
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.cf-totals-card-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-totals-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-totals-card-text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-totals-card-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.cf-totals-card-subtitle {
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.cf-totals-card-amount {
  align-self: flex-start;
  margin-left: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.cf-totals-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-totals-row {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.cf-totals-row.is-static {
  cursor: default;
}

.cf-totals-row.is-zero {
  opacity: 0.5;
  border-color: transparent;
}

.cf-totals-row.is-zero .cf-totals-row-value {
  color: var(--light-gray);
}

.cf-totals-row-name {
  flex: 1 0 0;
  min-width: 0;
  font-size: 16px;
}

.cf-totals-row-value {
  font-size: 18px;
  text-align: right;
  white-space: nowrap;
}

/* --- Reflow (WCAG 1.4.10 / 1.4.4) ---
   Desktop (>= 1024px) is untouched. Below that, side-by-side columns stack
   and fixed Figma widths give way to the available width. */

@media (max-width: 1023.98px) {
  .cf-current-row,
  .cf-overview-pair,
  .cf-snapshot-body,
  .cf-totals {
    flex-direction: column;
    align-items: stretch;
  }

  .cf-current-card,
  .cf-stat,
  .cf-totals-col-left {
    width: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .cf-available,
  .cf-pair-item,
  .cf-snapshot-visual,
  .cf-totals-col-right {
    flex: 0 0 auto;
  }
}

@media (max-width: 767.98px) {
  .cf-header-heading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cf-header-title,
  .cf-section-title,
  .cf-stat-label,
  .cf-totals-card-subtitle,
  .cf-key-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cf-section-title {
    flex-wrap: wrap;
  }

  .cf-tabs {
    flex-wrap: wrap;
  }

  .cf-todo-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-current-card,
  .cf-available,
  .cf-balances,
  .cf-activity,
  .cf-snapshot-card,
  .cf-stat {
    padding: 16px;
  }

  .cf-current-insights {
    flex-wrap: wrap;
  }

  .cf-current-insight {
    flex: 1 1 120px;
  }

  .cf-available-heading,
  .cf-snapshot-heading,
  .cf-totals-card-heading,
  .cf-stat-heading {
    flex-wrap: wrap;
  }

  .cf-available-goal {
    height: auto;
    min-height: 45px;
    padding: 6px 16px;
  }

  .cf-available-goal span {
    width: auto;
    min-width: 0;
  }

  .cf-activity-bars {
    flex-wrap: wrap;
  }

  .cf-activity-bar-card {
    flex: 1 1 100px;
    height: auto;
    min-height: 88px;
  }

  .cf-activity-label,
  .cf-stat-amounts {
    flex-wrap: wrap;
    white-space: normal;
  }

  .cf-key {
    gap: 12px 24px;
  }

  .cf-totals-card-amount {
    margin-left: 0;
  }

  .cf-month-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Loading skeleton: the page's column layout under the visually hidden h1. */
.cf-skeleton {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
