:root {
  --axis-gold-text: #241607;
  --axis-helper-text: #aeb9cf;
  --axis-focus-ring: #ffd27b;
}

/* На главной четыре реальные карточки: без пустой пятой колонки. */
.home-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Тёмный текст на светлом золоте сохраняет читаемость кнопок и сообщений. */
.message.user,
.lucy-message-row.user .lucy-message-bubble,
.money-row-actions .money-pay-button,
.task-check[aria-pressed="true"],
.habit-check[aria-pressed="true"],
.habits-day-picker button.active,
.notification-category.active .notification-category-check,
.home-lucy-actions > button:not(.home-text-button),
.home-screen .home-secondary-action,
.home-evening-carryover-head button,
.home-dialog-actions > button:last-child,
.money-screen .money-toolbar > button,
.money-screen .money-inline-actions > button,
.money-screen .money-empty > button,
.money-dialog .money-form-actions > button:not(.secondary-button),
.tasks-hero-actions > button:not(.secondary-button),
.tasks-add-button,
.tasks-empty > button,
.tasks-form-actions > button:not(.secondary-button),
.health-hero-actions > button:not(.secondary-button),
.health-add-button,
.health-card-actions > button:not(.secondary-button),
.health-form-actions > button:not(.secondary-button),
.health-goal-form button,
.health-sobriety-card > button,
.habits-hero-actions > button:not(.secondary-button),
.habits-add-button,
.habits-form-actions > button:not(.secondary-button),
.goals-hero-actions > button:not(.secondary-button),
.goals-toolbar > button:not(.secondary-button),
.goals-screen .tasks-empty > button,
.goals-form .tasks-form-actions > button:not(.secondary-button),
.notification-settings-buttons button:not(.secondary-button),
.notification-settings-footer button:not(.secondary-button) {
  color: var(--axis-gold-text) !important;
}

.muted-text,
.money-field > small,
.tasks-field > small,
.health-field > small,
.habits-field > small,
.goals-form label > small,
.people-form-grid label > small,
.receipt-hint,
.axis-finance-horizons-actions small {
  color: var(--axis-helper-text) !important;
}

:where(button, a[href], input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--axis-focus-ring) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #07101f !important;
}

[role="tab"][aria-selected="true"] {
  border-color: rgba(255, 210, 123, 0.58) !important;
}

@media (max-width: 1180px) {
  .home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .home-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .home-summary-card:last-child {
    grid-column: auto !important;
  }
}
