/* ============================================================
   COZY PASTEL THEME - BASE DESIGN TOKENS
   These feed styles.css's shared :root token translation
   (--bg, --bg-elev, --text, --accent, --chip, etc.). Without
   them defined here, those shared tokens resolve to invalid
   values under this theme, leaving surfaces (e.g. the Market
   purchase dialog) transparent/unreadable in light mode.
   ============================================================ */
[data-theme="cozy-pastel"] {
  --background-primary: #f4f8f7;
  --surface-primary: #ffffff;
  --surface-secondary: #eef3f1;
  --text-primary: #182629;
  --text-secondary: #496066;
  --accent-primary: #2f7f89;
  --accent-primary-hover: #25636b;

  --cozy-navy: #36546b;
  --cozy-slate: #5c7480;
  --cozy-steel: #5f7f96;
  --cozy-blue: #4f7fae;
  --cozy-teal: #5f9e9a;
  --cozy-forest: #2f6b50;
  --cozy-amber: #d49b45;
  --cozy-sand: #d5be92;
  --cozy-readable: #243442;
  --cozy-readable-soft: #52646c;
}




[data-theme="cozy-pastel"] .app-bg {
  background: radial-gradient(circle at 10% 5%, rgba(95, 127, 150, 0.18), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(95, 158, 154, 0.17), transparent 32%),
    radial-gradient(circle at 45% 95%, rgba(213, 190, 146, 0.14), transparent 34%),
    linear-gradient(180deg, #f5f3ec, #eef2f1);
}




[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .results-type-row,
[data-theme="cozy-pastel"] .filter-row,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-session-card,
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-draft-prompt,
[data-theme="cozy-pastel"] .chore-game-mode-status,
[data-theme="cozy-pastel"] .topbar,
[data-theme="cozy-pastel"] .time-picker-card,
[data-theme="cozy-pastel"] .motivation-modal-card,
[data-theme="cozy-pastel"] .suggestions-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  border-radius: 20px;
}




[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .results-type-row,
[data-theme="cozy-pastel"] .filter-row,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-session-card,
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-draft-prompt,
[data-theme="cozy-pastel"] .chore-game-mode-status,
[data-theme="cozy-pastel"] .motivation-hero-card,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .editable-row,
[data-theme="cozy-pastel"] .chart-preference-row,
[data-theme="cozy-pastel"] .diagnostics-row,
[data-theme="cozy-pastel"] .kv-item,
[data-theme="cozy-pastel"] .stat-card,
[data-theme="cozy-pastel"] .time-record-display,
[data-theme="cozy-pastel"] .state-choice,
[data-theme="cozy-pastel"] .choice-card,
[data-theme="cozy-pastel"] .hamburger-item {
  background: var(--surface-primary);
}




/* Reveal only on Cozy Pastel */
/* Theme icon default: structural .cp-icon spans are excluded from the broad
   span text rule, so their color comes from here (or a component rule). */
[data-theme="cozy-pastel"] .cp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cozy-ink-soft);
}




[data-theme="cozy-pastel"] .cp-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}




/* ── Home action cards — icon layout ───────────────────────── */

[data-theme="cozy-pastel"] .primary-action-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
}




[data-theme="cozy-pastel"] .primary-action-card .cp-icon svg {
  width: 30px;
  height: 30px;
}




/* ── Empty state icons ──────────────────────────────────────── */

[data-theme="cozy-pastel"] .empty-state {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 20px;
}




[data-theme="cozy-pastel"] .empty-state:not(.hidden) {
  display: flex;
}




[data-theme="cozy-pastel"] .empty-state .cp-icon svg {
  width: 44px;
  height: 44px;
  color: var(--cozy-steel);
  opacity: 0.55;
}




[data-theme="cozy-pastel"] .topbar h1 {
  background: linear-gradient(90deg, var(--cozy-navy), var(--cozy-steel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}




[data-theme="cozy-pastel"] .tagline {
  color: var(--cozy-slate);
}




[data-theme="cozy-pastel"] .stat-card {
  background: linear-gradient(145deg, rgba(114, 151, 179, 0.14), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 127, 150, 0.34);
  box-shadow: var(--shadow-soft);
}




[data-theme="cozy-pastel"] .stat-card .label {
  color: var(--cozy-slate);
}




[data-theme="cozy-pastel"] .stat-card .value {
  color: var(--cozy-navy);
}




[data-theme="cozy-pastel"] #homeGameModeTotalPoints {
  color: var(--cozy-amber);
}




[data-theme="cozy-pastel"] #homeGameModeCurrentRank,
[data-theme="cozy-pastel"] #homeGameModeWeekPoints {
  color: var(--cozy-steel);
}




[data-theme="cozy-pastel"] #homeGameModeNextRank {
  color: var(--cozy-amber);
}




[data-theme="cozy-pastel"] .home-game-mode-progress {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft);
}




[data-theme="cozy-pastel"] .home-game-mode-progress-fill {
  background: linear-gradient(90deg, var(--cozy-steel), var(--cozy-teal), var(--cozy-navy));
}




[data-theme="cozy-pastel"] .primary-btn {
  border-radius: 14px;
  min-height: 48px;
  border-width: 1px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(38, 52, 66, 0.14);
}




[data-theme="cozy-pastel"] .primary-btn:hover {
  filter: saturate(1.02);
}




[data-theme="cozy-pastel"] .primary-btn:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .primary-btn,
[data-theme="cozy-pastel"] .screen[data-screen="results"] .primary-btn,
[data-theme="cozy-pastel"] .home-primary-grid .primary-action-card.urge-card {
  background: linear-gradient(135deg, var(--cozy-navy), var(--cozy-amber));
  border-color: rgba(54, 84, 107, 0.72);
  color: #1f2f38;
}




[data-theme="cozy-pastel"] .screen[data-screen="chore"] .primary-btn,
[data-theme="cozy-pastel"] .screen[data-screen="end-week"] .primary-btn,
[data-theme="cozy-pastel"] .screen[data-screen="chore-settings"] .primary-btn,
[data-theme="cozy-pastel"] .screen[data-screen="end-week-settings"] .primary-btn {
  background: linear-gradient(135deg, var(--cozy-forest), var(--cozy-teal));
  border-color: rgba(95, 158, 154, 0.8);
  color: #1f2f38;
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .primary-action-card.avoidance-card,
[data-theme="cozy-pastel"] .screen[data-screen="add"] .primary-btn,
[data-theme="cozy-pastel"] .delete-btn,
[data-theme="cozy-pastel"] .action-btn.danger,
[data-theme="cozy-pastel"] .chip-btn.danger {
  background: linear-gradient(135deg, rgba(184, 95, 88, 0.14), rgba(119, 136, 148, 0.12));
  border-color: rgba(184, 95, 88, 0.72);
  color: #6f3430;
}




[data-theme="cozy-pastel"] .screen[data-screen="add"] .primary-btn {
  background: linear-gradient(135deg, var(--cozy-amber), #c87955);
  border-color: rgba(212, 155, 69, 0.86);
  color: #2f2418;
}




[data-theme="cozy-pastel"] .screen[data-screen="motivation"] .primary-btn {
  background: linear-gradient(135deg, var(--cozy-teal), var(--cozy-sand));
  border-color: rgba(95, 158, 154, 0.8);
  color: #243b3b;
}




[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .action-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .theme-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.95));
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 12px;
}




[data-theme="cozy-pastel"] .chip-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 238, 236, 0.96));
}




[data-theme="cozy-pastel"] .action-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .theme-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.95));
}




[data-theme="cozy-pastel"] .range-btn.active,
[data-theme="cozy-pastel"] .results-type-btn.active,
[data-theme="cozy-pastel"] .nav-btn.active,
[data-theme="cozy-pastel"] .choice-card.selected,
[data-theme="cozy-pastel"] .state-choice.selected,
[data-theme="cozy-pastel"] .chore-game-mode-toggle .chip-btn.active {
  background: linear-gradient(135deg, rgba(54, 84, 107, 0.14), rgba(95, 127, 150, 0.12));
  color: #294353;
  border-color: rgba(54, 84, 107, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--sand {
  background: linear-gradient(135deg, rgba(213, 190, 146, 0.42), rgba(255, 255, 255, 0.96));
  border-color: rgba(197, 168, 120, 0.72);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--teal {
  background: linear-gradient(135deg, rgba(95, 158, 154, 0.34), rgba(255, 255, 255, 0.96));
  border-color: rgba(95, 158, 154, 0.68);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--blue {
  background: linear-gradient(135deg, rgba(114, 151, 179, 0.34), rgba(255, 255, 255, 0.96));
  border-color: rgba(95, 127, 150, 0.68);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--green {
  background: linear-gradient(135deg, rgba(139, 168, 148, 0.38), rgba(255, 255, 255, 0.96));
  border-color: rgba(100, 138, 114, 0.66);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--navy {
  background: linear-gradient(135deg, rgba(54, 84, 107, 0.24), rgba(255, 255, 255, 0.96));
  border-color: rgba(54, 84, 107, 0.58);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--amber {
  background: linear-gradient(135deg, rgba(212, 155, 69, 0.32), rgba(255, 255, 255, 0.96));
  border-color: rgba(212, 155, 69, 0.68);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--slate {
  background: linear-gradient(135deg, rgba(119, 136, 148, 0.28), rgba(255, 255, 255, 0.96));
  border-color: rgba(119, 136, 148, 0.66);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--sand.selected {
  background: linear-gradient(135deg, rgba(213, 190, 146, 0.52), rgba(255, 255, 255, 0.98));
  border-color: rgba(197, 168, 120, 0.86);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--teal.selected {
  background: linear-gradient(135deg, rgba(95, 158, 154, 0.44), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 158, 154, 0.86);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--blue.selected {
  background: linear-gradient(135deg, rgba(114, 151, 179, 0.44), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 127, 150, 0.86);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--green.selected {
  background: linear-gradient(135deg, rgba(139, 168, 148, 0.46), rgba(255, 255, 255, 0.98));
  border-color: rgba(100, 138, 114, 0.86);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--navy.selected {
  background: linear-gradient(135deg, rgba(54, 84, 107, 0.34), rgba(255, 255, 255, 0.98));
  border-color: rgba(54, 84, 107, 0.82);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--amber.selected {
  background: linear-gradient(135deg, rgba(212, 155, 69, 0.44), rgba(255, 255, 255, 0.98));
  border-color: rgba(212, 155, 69, 0.86);
}




[data-theme="cozy-pastel"] .choice-card.cozy-category--slate.selected {
  background: linear-gradient(135deg, rgba(119, 136, 148, 0.38), rgba(255, 255, 255, 0.98));
  border-color: rgba(119, 136, 148, 0.86);
}




[data-theme="cozy-pastel"] input,
[data-theme="cozy-pastel"] select,
[data-theme="cozy-pastel"] textarea,
[data-theme="cozy-pastel"] .details-select,
[data-theme="cozy-pastel"] .wheel-select,
[data-theme="cozy-pastel"] .time-record-display {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
}






[data-theme="cozy-pastel"] input:focus-visible,
[data-theme="cozy-pastel"] select:focus-visible,
[data-theme="cozy-pastel"] textarea:focus-visible,
[data-theme="cozy-pastel"] .details-select:focus-visible,
[data-theme="cozy-pastel"] .wheel-select:focus-visible {
  outline: none;
  border-color: var(--cozy-steel);
  box-shadow: 0 0 0 3px rgba(95, 127, 150, 0.16);
}




[data-theme="cozy-pastel"] .screen[data-screen="chore"] input:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="chore"] select:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="chore"] textarea:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="end-week"] input:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="end-week"] select:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="end-week"] textarea:focus-visible {
  border-color: var(--cozy-teal);
  box-shadow: 0 0 0 3px rgba(95, 158, 154, 0.16);
}




[data-theme="cozy-pastel"] .screen[data-screen="add"] input:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="add"] select:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="add"] textarea:focus-visible {
  border-color: var(--cozy-amber);
  box-shadow: 0 0 0 3px rgba(212, 155, 69, 0.16);
}




[data-theme="cozy-pastel"] .screen[data-screen="results"] input:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="results"] select:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="results"] textarea:focus-visible {
  border-color: var(--cozy-blue);
  box-shadow: 0 0 0 3px rgba(95, 127, 150, 0.16);
}




[data-theme="cozy-pastel"] .screen[data-screen="motivation"] input:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="motivation"] select:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="motivation"] textarea:focus-visible {
  border-color: var(--cozy-teal);
  box-shadow: 0 0 0 3px rgba(95, 158, 154, 0.16);
}




[data-theme="cozy-pastel"] .chore-checklist-item input,
[data-theme="cozy-pastel"] .end-week-task-row input,
[data-theme="cozy-pastel"] .life-bonus-option input {
  accent-color: var(--success);
}




[data-theme="cozy-pastel"] .chart-preference-row,
[data-theme="cozy-pastel"] .diagnostics-row,
[data-theme="cozy-pastel"] .kv-item,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .editable-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
  border: 1px solid var(--border-soft);
}




[data-theme="cozy-pastel"] .edit-entry-btn {
  background: linear-gradient(135deg, rgba(95, 127, 150, 0.14), rgba(95, 158, 154, 0.12));
  color: var(--cozy-navy);
  border: 1px solid rgba(95, 127, 150, 0.42);
}




[data-theme="cozy-pastel"] .delete-btn {
  color: #6f3430;
  border-color: rgba(184, 95, 88, 0.7);
  background: linear-gradient(135deg, rgba(184, 95, 88, 0.14), rgba(255, 255, 255, 0.96));
}




[data-theme="cozy-pastel"] .editable-row {
  background: linear-gradient(145deg, rgba(95, 158, 154, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 158, 154, 0.28);
}




[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .chart-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
}




[data-theme="cozy-pastel"] .summary-panel {
  border-top-color: var(--cozy-steel);
}




[data-theme="cozy-pastel"] .follow-up-block {
  background: linear-gradient(145deg, rgba(95, 127, 150, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 127, 150, 0.3);
}




[data-theme="cozy-pastel"] .optional-group {
  background: linear-gradient(145deg, rgba(248, 251, 250, 0.98), rgba(233, 238, 236, 0.96));
  border-color: rgba(197, 205, 201, 0.9);
}




[data-theme="cozy-pastel"] .type-chip {
  background: linear-gradient(135deg, rgba(95, 127, 150, 0.14), rgba(213, 190, 146, 0.16));
  color: var(--cozy-navy);
}




[data-theme="cozy-pastel"] .safety,
[data-theme="cozy-pastel"] .end-week-completion-state {
  background: linear-gradient(145deg, rgba(212, 155, 69, 0.14), rgba(255, 255, 255, 0.98));
  border-color: rgba(212, 155, 69, 0.34);
}




[data-theme="cozy-pastel"] .chore-session-card,
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .chore-draft-prompt,
[data-theme="cozy-pastel"] .chore-game-mode-status {
  background: linear-gradient(145deg, rgba(95, 158, 154, 0.09), rgba(100, 138, 114, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(95, 158, 154, 0.34);
}




/* Decorative check ornament; the checkbox remains the state indicator. */
[data-theme="cozy-pastel"] .chore-checklist-item:has(input:checked)::after,
[data-theme="cozy-pastel"] .end-week-task-row:has(input:checked)::after {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  margin-left: auto;
}




/* Results text contract (results.css). */
[data-theme="cozy-pastel"] .screen[data-screen="results"] {
  --results-heading: var(--cozy-ink-strong);
  --results-section-title: var(--cozy-ink-strong);
  --results-text: var(--cozy-ink-soft);
  --results-empty-title: var(--cozy-ink-soft);
  --results-empty-text: var(--cozy-ink-soft);
}




[data-theme="cozy-pastel"] .results-section-title,
[data-theme="cozy-pastel"] .settings-block > h2,
[data-theme="cozy-pastel"] .summary-panel > h2 {
  color: var(--cozy-navy);
  border-left: 3px solid var(--cozy-blue);
  padding-left: 8px;
}




[data-theme="cozy-pastel"] .filter-row {
  border-top: 3px solid var(--cozy-blue);
}




[data-theme="cozy-pastel"] .summary-panel {
  border-top: 3px solid var(--cozy-steel);
}




[data-theme="cozy-pastel"] .results-section-title,
[data-theme="cozy-pastel"] .step-label,
[data-theme="cozy-pastel"] .field-help,
[data-theme="cozy-pastel"] .type-chip,
[data-theme="cozy-pastel"] .chart-summary,
[data-theme="cozy-pastel"] .empty-state-subtitle,
[data-theme="cozy-pastel"] .history-controls label,
[data-theme="cozy-pastel"] .k {
  color: var(--text-secondary);
}




/* ============================================================
   COZY PASTEL - PREMIUM GRAPHIC PASS
   ============================================================ */

[data-theme="cozy-pastel"] {
  --cozy-orchid: #8c79b0;
  --cozy-mist: #edf4f5;
  --cozy-cloud: #ffffff;
  --cozy-highlight: rgba(255, 255, 255, 0.72);
  --cozy-shadow-xl: 0 24px 56px rgba(45, 69, 88, 0.22);
}




[data-theme="cozy-pastel"] body {
  background:
    radial-gradient(140% 90% at 8% -10%, rgba(212, 155, 69, 0.16), transparent 58%),
    radial-gradient(120% 88% at 95% 6%, rgba(95, 158, 154, 0.18), transparent 62%),
    radial-gradient(110% 80% at 40% 104%, rgba(95, 127, 150, 0.12), transparent 66%),
    linear-gradient(170deg, #f8f6ef 0%, #eef4f4 54%, #edf1f6 100%);
}




[data-theme="cozy-pastel"] .app-bg {
  background:
    radial-gradient(38% 30% at 12% 14%, rgba(212, 155, 69, 0.20), transparent 78%),
    radial-gradient(35% 34% at 84% 18%, rgba(95, 158, 154, 0.22), transparent 76%),
    radial-gradient(26% 24% at 82% 84%, rgba(95, 127, 150, 0.18), transparent 74%),
    radial-gradient(22% 22% at 18% 84%, rgba(184, 95, 88, 0.12), transparent 72%),
    repeating-linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.24) 0 18px,
      rgba(255, 255, 255, 0) 18px 36px
    );
  opacity: 0.96;
}




[data-theme="cozy-pastel"] .app-shell::before,
[data-theme="cozy-pastel"] .app-shell::after {
  content: "";
  position: fixed;
  width: 42vmax;
  height: 42vmax;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
}




[data-theme="cozy-pastel"] .app-shell::before {
  top: -20vmax;
  right: -18vmax;
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 66% 68%, rgba(95, 158, 154, 0.22), rgba(95, 158, 154, 0) 58%);
}




[data-theme="cozy-pastel"] .app-shell::after {
  bottom: -24vmax;
  left: -20vmax;
  background:
    radial-gradient(circle at 64% 38%, rgba(212, 155, 69, 0.20), rgba(212, 155, 69, 0) 62%),
    radial-gradient(circle at 30% 70%, rgba(95, 127, 150, 0.20), rgba(95, 127, 150, 0) 56%);
}




[data-theme="cozy-pastel"] .topbar {
  background:
    linear-gradient(126deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 250, 0.92) 52%, rgba(238, 246, 248, 0.88)),
    repeating-linear-gradient(
      160deg,
      rgba(95, 127, 150, 0.08) 0 1px,
      transparent 1px 13px
    );
  border: 1px solid rgba(95, 127, 150, 0.24);
  box-shadow:
    0 16px 34px rgba(44, 64, 82, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}




[data-theme="cozy-pastel"] .topbar h1 {
  text-shadow: 0 2px 10px rgba(54, 84, 107, 0.14);
}




[data-theme="cozy-pastel"] .tagline {
  letter-spacing: 0.01em;
}




[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .results-type-row,
[data-theme="cozy-pastel"] .filter-row,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-session-card,
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-draft-prompt,
[data-theme="cozy-pastel"] .motivation-modal-card,
[data-theme="cozy-pastel"] .time-picker-card,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .motivation-hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 250, 0.94)),
    radial-gradient(140% 100% at 108% -8%, rgba(95, 127, 150, 0.11), transparent 64%);
  border-color: rgba(95, 127, 150, 0.20);
  box-shadow:
    0 14px 34px rgba(45, 69, 88, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}




[data-theme="cozy-pastel"] .card::after,
[data-theme="cozy-pastel"] .chart-card::after,
[data-theme="cozy-pastel"] .summary-panel::after,
[data-theme="cozy-pastel"] .settings-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% -10%, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 92% 92%, rgba(95, 158, 154, 0.08), rgba(95, 158, 154, 0) 40%);
}




[data-theme="cozy-pastel"] .primary-action-card .btn-title {
  font-weight: 800;
  letter-spacing: 0.01em;
}




[data-theme="cozy-pastel"] .home-game-mode-progress {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(236, 245, 247, 0.70));
  border-color: rgba(95, 127, 150, 0.22);
}




[data-theme="cozy-pastel"] .home-game-mode-progress-fill {
  background: linear-gradient(90deg, #4f7d9f, #5c9f9b, #d29a42);
}




[data-theme="cozy-pastel"] .theme-toggle,
[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .action-btn,
[data-theme="cozy-pastel"] .choice-card,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .time-record-display {
  border: 1px solid rgba(95, 127, 150, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 247, 0.90));
  box-shadow:
    0 8px 18px rgba(45, 69, 88, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}




[data-theme="cozy-pastel"] .primary-btn {
  border: 1px solid rgba(54, 84, 107, 0.24);
  color: #1f2f38;
  background:
    linear-gradient(125deg, #436f92, #5a8ba6 52%, #5e9b95);
  box-shadow:
    0 12px 26px rgba(45, 69, 88, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}




[data-theme="cozy-pastel"] .primary-btn:hover {
  box-shadow:
    0 18px 34px rgba(45, 69, 88, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}




[data-theme="cozy-pastel"] .choice-card.selected,
[data-theme="cozy-pastel"] .state-choice.selected,
[data-theme="cozy-pastel"] .results-type-btn.active,
[data-theme="cozy-pastel"] .range-btn.active,
[data-theme="cozy-pastel"] .nav-btn.active {
  border-color: rgba(54, 84, 107, 0.38);
  background:
    linear-gradient(136deg, rgba(95, 127, 150, 0.23), rgba(95, 158, 154, 0.22));
  color: var(--cozy-navy);
}




[data-theme="cozy-pastel"] .stat-card {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.97), rgba(241, 248, 249, 0.94));
  border-color: rgba(95, 127, 150, 0.18);
  box-shadow: 0 10px 22px rgba(45, 69, 88, 0.10);
}




[data-theme="cozy-pastel"] .safety {
  background:
    linear-gradient(136deg, rgba(255, 247, 230, 0.92), rgba(255, 238, 212, 0.94));
  border: 1px solid rgba(212, 155, 69, 0.30);
  box-shadow: 0 10px 24px rgba(142, 104, 46, 0.14);
}




[data-theme="cozy-pastel"] .screen.active {
  animation: cozyFadeLift 0.26s ease;
}




@keyframes cozyFadeLift {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: saturate(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: saturate(1);
  }
}




@media (prefers-reduced-motion: reduce) {
  [data-theme="cozy-pastel"] .screen.active {
    animation: none;
  }}




@media (max-width: 720px) {
  [data-theme="cozy-pastel"] .app-shell::before,
  [data-theme="cozy-pastel"] .app-shell::after {
    width: 56vmax;
    height: 56vmax;
  }}




/* ============================================================
   COZY PASTEL - HOME SCREEN ART DIRECTION PASS
   ============================================================ */

[data-theme="cozy-pastel"] .screen[data-screen="home"] {
  position: relative;
}




[data-theme="cozy-pastel"] .screen[data-screen="home"]::before,
[data-theme="cozy-pastel"] .screen[data-screen="home"]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}




[data-theme="cozy-pastel"] .screen[data-screen="home"]::before {
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(44% 28% at 8% 10%, rgba(212, 155, 69, 0.14), rgba(212, 155, 69, 0) 74%),
    radial-gradient(36% 24% at 92% 12%, rgba(95, 158, 154, 0.16), rgba(95, 158, 154, 0) 72%),
    radial-gradient(42% 26% at 82% 86%, rgba(95, 127, 150, 0.12), rgba(95, 127, 150, 0) 72%);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"]::after {
  top: 18px;
  right: 20px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 64% 64%, rgba(95, 127, 150, 0.24), rgba(95, 127, 150, 0) 72%);
  filter: blur(0.4px);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] > * {
  position: relative;
  z-index: 1;
}




[data-theme="cozy-pastel"] #trackerStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}




[data-theme="cozy-pastel"] #trackerStats .stat-card {
  border-radius: 16px;
  padding: 12px 12px;
}




[data-theme="cozy-pastel"] .secondary-nav-grid {
  position: sticky;
  bottom: calc(24px + env(safe-area-inset-bottom));
  padding: 9px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(238, 246, 247, 0.84));
  border: 1px solid rgba(95, 127, 150, 0.24);
  box-shadow:
    0 18px 32px rgba(45, 69, 88, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}




[data-theme="cozy-pastel"] .secondary-nav-grid .action-btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.9rem;
}




@media (min-width: 920px) {
  [data-theme="cozy-pastel"] .screen[data-screen="home"].active {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
      "hero stats"
      "life stats"
      "safety quote"
      "actions actions"
      "tiles tiles"
      "dock dock";
    gap: 12px;
    align-items: start;
  }}


@media (min-width: 920px) {[data-theme="cozy-pastel"] #homeGameModeProgress {
    grid-area: life;
    margin: 0;
  }

  [data-theme="cozy-pastel"] .safety.card {
    grid-area: safety;
    margin: 0;
  }}


@media (min-width: 920px) {[data-theme="cozy-pastel"] #trackerStats {
    grid-area: tiles;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  [data-theme="cozy-pastel"] .secondary-nav-grid {
    grid-area: dock;
  }}


@media (max-width: 780px) {[data-theme="cozy-pastel"] #trackerStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-theme="cozy-pastel"] .secondary-nav-grid {
    position: static;
    backdrop-filter: none;
  }}




/* ============================================================
   COZY PASTEL - HOME TYPOGRAPHY & SPACING POLISH
   ============================================================ */

[data-theme="cozy-pastel"] .screen[data-screen="home"] {
  --cozy-home-gap: clamp(10px, 1.6vw, 14px);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] h2 {
  font-size: clamp(1.08rem, 1.1vw + 0.82rem, 1.34rem);
  line-height: 1.16;
  letter-spacing: 0.012em;
}




[data-theme="cozy-pastel"] .home-motivation-card p,
[data-theme="cozy-pastel"] .home-game-mode .field-help,
[data-theme="cozy-pastel"] .safety p {
  line-height: 1.5;
  letter-spacing: 0.003em;
}




[data-theme="cozy-pastel"] #homeLifeXpLine,
[data-theme="cozy-pastel"] #homeLifeStreakLine {
  font-size: 0.84rem;
  line-height: 1.4;
}




[data-theme="cozy-pastel"] #trackerStats .stat-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}




[data-theme="cozy-pastel"] #trackerStats .stat-card .label {
  font-size: 0.74rem;
  line-height: 1.22;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: rgba(82, 97, 109, 0.88);
}




[data-theme="cozy-pastel"] #trackerStats .stat-card .value {
  margin-top: 0;
  font-size: clamp(1.06rem, 0.3vw + 0.99rem, 1.18rem);
  line-height: 1.18;
  letter-spacing: 0.006em;
}




[data-theme="cozy-pastel"] .secondary-nav-grid {
  gap: 8px;
}




[data-theme="cozy-pastel"] .secondary-nav-grid .action-btn {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}




[data-theme="cozy-pastel"] #viewLifeStatsBtn {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}




[data-theme="cozy-pastel"] .safety.card {
  padding: 14px;
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] > .secondary-nav-grid {
  margin-bottom: 0;
}


@media (min-width: 920px) {[data-theme="cozy-pastel"] #trackerStats .stat-card {
    min-height: 96px;
  }}




@media (max-width: 780px) {
  [data-theme="cozy-pastel"] .screen[data-screen="home"] {
    --cozy-home-gap: 10px;
  }

  [data-theme="cozy-pastel"] .secondary-nav-grid .action-btn {
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .home-motivation-card p,
[data-theme="cozy-pastel"] .screen[data-screen="home"] .safety p,
[data-theme="cozy-pastel"] .screen[data-screen="home"] .field-help {
  color: rgba(49, 64, 77, 0.9);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .secondary-nav-grid .action-btn {
  color: rgba(31, 46, 61, 0.96);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .theme-toggle:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="home"] .action-btn:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="home"] .primary-btn:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="home"] .chip-btn:focus-visible,
[data-theme="cozy-pastel"] .screen[data-screen="home"] #viewLifeStatsBtn:focus-visible {
  outline: 3px solid rgba(40, 72, 99, 0.88);
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px rgba(199, 225, 241, 0.62),
    0 10px 22px rgba(45, 69, 88, 0.18);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] #viewLifeStatsBtn {
  border-color: rgba(54, 84, 107, 0.30);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .home-game-mode-progress {
  border-color: rgba(72, 97, 118, 0.34);
}




[data-theme="cozy-pastel"] .screen[data-screen="home"] .home-game-mode-progress-fill {
  background: linear-gradient(90deg, #3e6484 0%, #4f8f8b 56%, #b17b30 100%);
}




/* ============================================================
   COZY PASTEL - READABILITY PATCH (APP-WIDE)
   ============================================================ */

[data-theme="cozy-pastel"] .field-help,
[data-theme="cozy-pastel"] .step-help,
[data-theme="cozy-pastel"] .step-label,
[data-theme="cozy-pastel"] .chart-summary,
[data-theme="cozy-pastel"] .empty-state-subtitle,
[data-theme="cozy-pastel"] .history-controls label,
[data-theme="cozy-pastel"] .k,
[data-theme="cozy-pastel"] .input-hint,
[data-theme="cozy-pastel"] .tagline,
[data-theme="cozy-pastel"] .motivation-hero-reference {
  color: var(--cozy-readable-soft);
}




[data-theme="cozy-pastel"] .choice-card span,
[data-theme="cozy-pastel"] .suggestion-summary,
[data-theme="cozy-pastel"] .suggestion-meta,
[data-theme="cozy-pastel"] .diagnostics-row .field-help,
[data-theme="cozy-pastel"] .editable-row .field-help,
[data-theme="cozy-pastel"] .chart-preference-row label,
[data-theme="cozy-pastel"] .field-row label,
[data-theme="cozy-pastel"] .stat-card .label,
[data-theme="cozy-pastel"] .type-chip {
  color: var(--cozy-readable);
}




[data-theme="cozy-pastel"] .history-item p,
[data-theme="cozy-pastel"] .summary-panel p,
[data-theme="cozy-pastel"] .settings-block p,
[data-theme="cozy-pastel"] .motivation-hero-text,
[data-theme="cozy-pastel"] .safety p {
  color: var(--cozy-readable);
}







[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .action-btn,
[data-theme="cozy-pastel"] .theme-toggle {
  color: var(--cozy-readable);
}




[data-theme="cozy-pastel"] .results-type-btn.active,
[data-theme="cozy-pastel"] .range-btn.active,
[data-theme="cozy-pastel"] .nav-btn.active,
[data-theme="cozy-pastel"] .choice-card.selected,
[data-theme="cozy-pastel"] .state-choice.selected,
[data-theme="cozy-pastel"] .chore-game-mode-toggle .chip-btn.active {
  color: #253c4a;
}




[data-theme="cozy-pastel"] .results-section-title,
[data-theme="cozy-pastel"] .settings-block > h2,
[data-theme="cozy-pastel"] .summary-panel > h2 {
  color: #2a4152;
}




@media (prefers-contrast: more) {
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .home-primary-grid .primary-action-card,
  [data-theme="cozy-pastel"] .screen[data-screen="tracker"] #trackerStats .stat-card,
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .home-game-mode,
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .home-motivation-card,
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .secondary-nav-grid {
    border-color: rgba(45, 66, 84, 0.50);
    box-shadow:
      0 0 0 1px rgba(45, 66, 84, 0.22),
      0 10px 24px rgba(45, 69, 88, 0.16);
  }

  [data-theme="cozy-pastel"] .screen[data-screen="home"] .home-motivation-card p,
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .safety p,
  [data-theme="cozy-pastel"] .screen[data-screen="home"] .field-help {
    color: rgba(22, 34, 46, 0.98);
  }

  [data-theme="cozy-pastel"] .screen[data-screen="tracker"] #trackerStats .stat-card .label {
    color: rgba(36, 51, 64, 0.96);
  }}




[data-theme="cozy-pastel"] {
  --read-text-main: #2a3e4b;
  --read-text-soft: #415767;
  --read-text-muted: #526a79;
  --read-control-text: #273a46;
  --read-primary-button-text: #1f2f38;
  --read-placeholder: var(--cozy-ink-muted);
  --read-input-text: var(--cozy-ink-strong);
}




/* Cozy control/badge text colour: single source is the --cozy-ink-strong rule at the end of this file. */




/* Absolute dark-text lock for Cozy Pastel theme. */
[data-theme="cozy-pastel"] {
  --cozy-absolute-dark: #18252e;
}




/* Absolute-dark lock for inline/control text. Headings, body text and the other text roles
   are coloured once by the DARKER TEXT HARMONY layer below (AGENTS.md section 7). The plain
   `button` entry is live (it beats legacy component colours on non-class buttons) but yields
   to a cosmetic-skinned host. */
[data-theme="cozy-pastel"] strong,
[data-theme="cozy-pastel"] em,
[data-theme="cozy-pastel"] small,
[data-theme="cozy-pastel"] dt,
[data-theme="cozy-pastel"] dd,
[data-theme="cozy-pastel"] a,
[data-theme="cozy-pastel"] legend,
[data-theme="cozy-pastel"] summary,
[data-theme="cozy-pastel"] button:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] option,
[data-theme="cozy-pastel"] .type-chip,
[data-theme="cozy-pastel"] .time-record-display {
  color: var(--cozy-absolute-dark) !important;
}




[data-theme="cozy-pastel"] .hamburger-item::before,
[data-theme="cozy-pastel"] .results-section-title::before,
[data-theme="cozy-pastel"] .choice-card.selected::after,
[data-theme="cozy-pastel"] .stat-card::after {
  color: var(--cozy-absolute-dark) !important;
}




/* ============================================================
   COZY PASTEL - READABILITY-FIRST VISUAL RESET
   Keeps all text very dark with high-contrast light surfaces.
   ============================================================ */

[data-theme="cozy-pastel"] body {
  background: linear-gradient(180deg, #f4f7f8 0%, #eef3f5 100%);
}




[data-theme="cozy-pastel"] .app-bg {
  background:
    radial-gradient(circle at 12% 10%, rgba(180, 198, 214, 0.18), transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(195, 215, 210, 0.20), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}




[data-theme="cozy-pastel"] .topbar,
[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .motivation-hero-card,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .chore-session-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state {
  background: linear-gradient(160deg, #ffffff 0%, #f6fafb 100%) !important;
}

/* Border lock yields to Market module skins (data-module-skin), which paint border/shadow only. */
[data-theme="cozy-pastel"] .topbar:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .summary-panel:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .settings-block:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .history-item:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chart-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .time-record-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .optional-group:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .follow-up-block:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .motivation-hero-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .suggestion-result:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-session-card:where(:not([data-cosmetic-skin])):where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-settings-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-selection-summary:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-game-mode-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-group-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-progress-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-completion-state:where(:not([data-module-skin])) {
  border-color: rgba(64, 82, 97, 0.26) !important;
}




[data-theme="cozy-pastel"] .topbar h1 {
  color: #18252e !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}




/* Shared button border/shadow and .active text/border are set once in HIGH-END ART DIRECTION;
   backgrounds per variant in VIBRANT COLOR VARIETY (.time-record-display keeps the HIGH-END
   surface); text in DARKER TEXT HARMONY. */




/* Card text lock. The surface is owned by the later Home-card surface rules; a
   cosmetic-skinned card takes its text from the cosmetic host layer. */
[data-theme="cozy-pastel"] .home-primary-grid .primary-action-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .urge-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .avoidance-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chore-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .motivation-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .outcome-card {
  color: #18252e !important;
}




[data-theme="cozy-pastel"] .home-game-mode .rank-badge,
[data-theme="cozy-pastel"] .home-game-mode .points-badge,
[data-theme="cozy-pastel"] .home-game-mode .week-badge,
[data-theme="cozy-pastel"] .type-chip {
  background: linear-gradient(180deg, #eef3f6 0%, #e2ebf1 100%) !important;
  border: 1px solid rgba(58, 78, 95, 0.34) !important;
  color: #18252e !important;
}




[data-theme="cozy-pastel"] a {
  color: #152733 !important;
  text-decoration-color: rgba(21, 39, 51, 0.55);
}




/* ============================================================
   COZY PASTEL - HIGH-END ART DIRECTION
   ============================================================ */

/* --cozy-ink-strong/-soft/-muted have one definition: DARKER TEXT HARMONY below. */
[data-theme="cozy-pastel"] {
  --cozy-accent-sky: #8bb8df;
  --cozy-accent-mint: #9fd7bf;
  --cozy-accent-peach: #f2bea7;
  --cozy-accent-rose: #e9a8c5;
  --cozy-accent-iris: #a9b6e8;
  --cozy-glass-border: rgba(47, 70, 86, 0.22);
  --cozy-glass-shadow: 0 16px 34px rgba(33, 52, 66, 0.16);
  --cozy-glow-soft: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}




[data-theme="cozy-pastel"] body {
  color: var(--cozy-ink-strong);
  background:
    radial-gradient(circle at 8% 10%, rgba(139, 184, 223, 0.42), transparent 40%),
    radial-gradient(circle at 84% 16%, rgba(159, 215, 191, 0.44), transparent 41%),
    radial-gradient(circle at 24% 88%, rgba(233, 168, 197, 0.26), transparent 39%),
    radial-gradient(circle at 72% 102%, rgba(242, 190, 167, 0.32), transparent 44%),
    linear-gradient(180deg, #f9fcfd 0%, #eff5f8 56%, #e8eff3 100%);
  background-attachment: fixed;
}




[data-theme="cozy-pastel"] .app-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 7%, rgba(139, 184, 223, 0.30), transparent 37%),
    radial-gradient(circle at 85% 24%, rgba(159, 215, 191, 0.28), transparent 42%),
    radial-gradient(circle at 38% 94%, rgba(233, 168, 197, 0.17), transparent 43%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.03));
}




[data-theme="cozy-pastel"] .app-bg::before,
[data-theme="cozy-pastel"] .app-bg::after {
  content: "";
  position: fixed;
  width: 44vw;
  max-width: 520px;
  height: 44vw;
  max-height: 520px;
  pointer-events: none;
  filter: blur(2px);
  z-index: 0;
}




[data-theme="cozy-pastel"] .app-bg::before {
  top: -14vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(139, 184, 223, 0.42) 0%, rgba(139, 184, 223, 0) 66%);
  animation: cozyGlowFloatA 18s ease-in-out infinite;
}




[data-theme="cozy-pastel"] .app-bg::after {
  bottom: -18vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(159, 215, 191, 0.44) 0%, rgba(159, 215, 191, 0) 68%);
  animation: cozyGlowFloatB 22s ease-in-out infinite;
}




[data-theme="cozy-pastel"] .topbar,
[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .motivation-hero-card,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .chore-session-card,
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state,
[data-theme="cozy-pastel"] .time-picker-card,
[data-theme="cozy-pastel"] .motivation-modal-card,
[data-theme="cozy-pastel"] .sheet,
[data-theme="cozy-pastel"] .modal-sheet {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}


/* Glass surface; a cosmetic-skinned checklist card takes its surface from the cosmetic layer. */
[data-theme="cozy-pastel"] .topbar,
[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .time-record-card,
[data-theme="cozy-pastel"] .optional-group,
[data-theme="cozy-pastel"] .follow-up-block,
[data-theme="cozy-pastel"] .motivation-hero-card,
[data-theme="cozy-pastel"] .suggestion-result,
[data-theme="cozy-pastel"] .chore-session-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chore-settings-card,
[data-theme="cozy-pastel"] .chore-selection-summary,
[data-theme="cozy-pastel"] .chore-game-mode-card,
[data-theme="cozy-pastel"] .end-week-group-card,
[data-theme="cozy-pastel"] .end-week-progress-card,
[data-theme="cozy-pastel"] .end-week-completion-state,
[data-theme="cozy-pastel"] .time-picker-card,
[data-theme="cozy-pastel"] .motivation-modal-card,
[data-theme="cozy-pastel"] .sheet,
[data-theme="cozy-pastel"] .modal-sheet {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(242, 249, 252, 0.88) 46%, rgba(233, 243, 249, 0.87) 100%) !important;
}

/* Glass border/shadow yields to Market module skins (data-module-skin). */
[data-theme="cozy-pastel"] .topbar:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .summary-panel:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .settings-block:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .history-item:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chart-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .time-record-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .optional-group:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .follow-up-block:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .motivation-hero-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .suggestion-result:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-session-card:where(:not([data-cosmetic-skin])):where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-settings-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-selection-summary:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .chore-game-mode-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-group-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-progress-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .end-week-completion-state:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .time-picker-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .motivation-modal-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .sheet:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .modal-sheet:where(:not([data-module-skin])) {
  border: 1px solid var(--cozy-glass-border) !important;
  box-shadow: var(--cozy-glass-shadow), var(--cozy-glow-soft) !important;
}




[data-theme="cozy-pastel"] .card::before,
[data-theme="cozy-pastel"] .summary-panel::before,
[data-theme="cozy-pastel"] .settings-block::before,
[data-theme="cozy-pastel"] .history-item::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(139, 184, 223, 0.70), rgba(159, 215, 191, 0.65), rgba(233, 168, 197, 0.60));
  opacity: 0.72;
  pointer-events: none;
}




[data-theme="cozy-pastel"] .topbar {
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.95), rgba(236, 248, 252, 0.91)) !important;
  border-bottom: 1px solid rgba(39, 61, 76, 0.20) !important;
}




[data-theme="cozy-pastel"] .topbar h1,
[data-theme="cozy-pastel"] h1,
[data-theme="cozy-pastel"] h2,
[data-theme="cozy-pastel"] h3 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
}

/* Heading and body text colours: single source in "DARKER TEXT HARMONY" below. */




[data-theme="cozy-pastel"] .primary-btn,
[data-theme="cozy-pastel"] .action-btn:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .theme-toggle,
[data-theme="cozy-pastel"] .time-record-display {
  border: 1px solid rgba(40, 61, 76, 0.28) !important;
  background:
    linear-gradient(152deg, rgba(250, 254, 255, 0.98) 0%, rgba(232, 244, 251, 0.95) 54%, rgba(224, 238, 247, 0.94) 100%) !important;
  box-shadow:
    0 9px 20px rgba(53, 76, 94, 0.17),
    0 0 0 1px rgba(255, 255, 255, 0.54) inset !important;
}




[data-theme="cozy-pastel"] .primary-btn:hover,
[data-theme="cozy-pastel"] .action-btn:hover,
[data-theme="cozy-pastel"] .chip-btn:hover,
[data-theme="cozy-pastel"] .range-btn:hover,
[data-theme="cozy-pastel"] .results-type-btn:hover,
[data-theme="cozy-pastel"] .nav-btn:hover,
[data-theme="cozy-pastel"] .theme-toggle:hover {
  transform: translateY(-1px);
}

/* A cosmetic-skinned card keeps its cosmetic shadow on hover. */
[data-theme="cozy-pastel"] .primary-btn:hover,
[data-theme="cozy-pastel"] .action-btn:where(:not([data-cosmetic-skin])):hover,
[data-theme="cozy-pastel"] .chip-btn:hover,
[data-theme="cozy-pastel"] .range-btn:hover,
[data-theme="cozy-pastel"] .results-type-btn:hover,
[data-theme="cozy-pastel"] .nav-btn:hover,
[data-theme="cozy-pastel"] .theme-toggle:hover {
  box-shadow:
    0 12px 24px rgba(45, 66, 84, 0.21),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset !important;
}




[data-theme="cozy-pastel"] .results-type-btn.active,
[data-theme="cozy-pastel"] .range-btn.active,
[data-theme="cozy-pastel"] .nav-btn.active,
[data-theme="cozy-pastel"] .choice-card.selected,
[data-theme="cozy-pastel"] .state-choice.selected,
[data-theme="cozy-pastel"] .chore-game-mode-toggle .chip-btn.active {
  color: var(--cozy-ink-strong) !important;
  border-color: rgba(39, 61, 76, 0.48) !important;
}




[data-theme="cozy-pastel"] .home-primary-grid .primary-action-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .urge-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .avoidance-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chore-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .motivation-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .outcome-card,
[data-theme="cozy-pastel"] .safety,
[data-theme="cozy-pastel"] .home-motivation-card,
[data-theme="cozy-pastel"] .home-game-mode {
  background:
    linear-gradient(157deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 248, 252, 0.92) 46%, rgba(229, 242, 249, 0.90) 100%) !important;
}

/* Border/shadow sibling: module skins (Home welcome header, Home layout accent
   edge) keep their accent layer. */
[data-theme="cozy-pastel"] .home-primary-grid:where(:not([data-module-stripe])) .primary-action-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] :where(:not([data-module-stripe])) > .urge-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] :where(:not([data-module-stripe])) > .avoidance-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] :where(:not([data-module-stripe])) > .chore-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] :where(:not([data-module-stripe])) > .motivation-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .outcome-card,
[data-theme="cozy-pastel"] .safety,
[data-theme="cozy-pastel"] .home-motivation-card:where(:not([data-module-skin])),
[data-theme="cozy-pastel"] .home-game-mode {
  border: 1px solid rgba(42, 63, 78, 0.24) !important;
  box-shadow:
    0 15px 32px rgba(45, 69, 88, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.50) inset !important;
}




[data-theme="cozy-pastel"] .home-game-mode .rank-badge,
[data-theme="cozy-pastel"] .home-game-mode .points-badge,
[data-theme="cozy-pastel"] .home-game-mode .week-badge,
[data-theme="cozy-pastel"] .type-chip,
[data-theme="cozy-pastel"] .category-pill,
[data-theme="cozy-pastel"] .tag,
[data-theme="cozy-pastel"] .badge-pill {
  color: var(--cozy-ink-strong) !important;
  border: 1px solid rgba(41, 63, 79, 0.30) !important;
  background:
    linear-gradient(155deg, rgba(245, 252, 255, 0.98) 0%, rgba(227, 240, 248, 0.96) 50%, rgba(223, 241, 233, 0.95) 100%) !important;
  box-shadow: 0 5px 12px rgba(59, 83, 101, 0.16);
}




[data-theme="cozy-pastel"] .primary-btn,
[data-theme="cozy-pastel"] .nav-btn.active,
[data-theme="cozy-pastel"] .results-type-btn.active {
  border-color: rgba(43, 66, 83, 0.46) !important;
}




[data-theme="cozy-pastel"] .chart-card,
[data-theme="cozy-pastel"] .progress-wrapper,
[data-theme="cozy-pastel"] .progress-card {
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 247, 252, 0.92) 52%, rgba(229, 241, 248, 0.89) 100%) !important;
  border: 1px solid rgba(47, 71, 90, 0.24) !important;
}




[data-theme="cozy-pastel"] input,
[data-theme="cozy-pastel"] select,
[data-theme="cozy-pastel"] textarea,
[data-theme="cozy-pastel"] .details-select,
[data-theme="cozy-pastel"] .wheel-select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 249, 0.92)) !important;
  border-color: rgba(44, 66, 82, 0.32) !important;
}




[data-theme="cozy-pastel"] a {
  color: #132431 !important;
  text-decoration-color: rgba(19, 36, 49, 0.56);
}




[data-theme="cozy-pastel"] .section-header,
[data-theme="cozy-pastel"] section > h2,
[data-theme="cozy-pastel"] section > h3 {
  border-bottom: 1px solid rgba(48, 69, 86, 0.20);
  padding-bottom: 8px;
}




@keyframes cozyGlowFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(2vw, 1vw, 0) scale(1.04);
    opacity: 0.88;
  }
}




@keyframes cozyGlowFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.66;
  }
  50% {
    transform: translate3d(-2vw, -1vw, 0) scale(1.05);
    opacity: 0.84;
  }
}




@media (max-width: 860px) {
  [data-theme="cozy-pastel"] .app-bg::before,
  [data-theme="cozy-pastel"] .app-bg::after {
    width: 62vw;
    height: 62vw;
    opacity: 0.82;
  }}




@media (prefers-reduced-motion: reduce) {
  [data-theme="cozy-pastel"] .app-bg::before,
  [data-theme="cozy-pastel"] .app-bg::after {
    animation: none !important;
  }

  [data-theme="cozy-pastel"] .primary-btn:hover,
  [data-theme="cozy-pastel"] .action-btn:hover,
  [data-theme="cozy-pastel"] .chip-btn:hover,
  [data-theme="cozy-pastel"] .range-btn:hover,
  [data-theme="cozy-pastel"] .results-type-btn:hover,
  [data-theme="cozy-pastel"] .nav-btn:hover,
  [data-theme="cozy-pastel"] .theme-toggle:hover {
    transform: none;
  }}




/* ============================================================
   COZY PASTEL - VIBRANT COLOR VARIETY (PREMIUM)
   ============================================================ */

[data-theme="cozy-pastel"] {
  --cozy-vivid-cyan: #76b8e8;
  --cozy-vivid-teal: #63c7a5;
  --cozy-vivid-navy: #2f5f8d;
  --cozy-vivid-emerald: #2b7a5f;
  --cozy-vivid-ice: #9fd2ef;
  --cozy-vivid-forest: #1f5a46;
}




[data-theme="cozy-pastel"] body {
  background:
    radial-gradient(circle at 6% 14%, rgba(118, 184, 232, 0.42), transparent 38%),
    radial-gradient(circle at 88% 19%, rgba(120, 207, 177, 0.40), transparent 40%),
    radial-gradient(circle at 79% 82%, rgba(47, 95, 141, 0.22), transparent 41%),
    radial-gradient(circle at 16% 84%, rgba(43, 122, 95, 0.22), transparent 40%),
    radial-gradient(circle at 48% 102%, rgba(159, 210, 239, 0.30), transparent 44%),
    linear-gradient(180deg, #fafdff 0%, #eef5f9 54%, #e8f0f5 100%);
}




[data-theme="cozy-pastel"] .app-bg::before {
  background: radial-gradient(circle, rgba(118, 184, 232, 0.48) 0%, rgba(118, 184, 232, 0) 66%);
}




[data-theme="cozy-pastel"] .app-bg::after {
  background: radial-gradient(circle, rgba(120, 207, 177, 0.50) 0%, rgba(120, 207, 177, 0) 68%);
}




[data-theme="cozy-pastel"] .primary-btn {
  background:
    linear-gradient(145deg, rgba(239, 248, 255, 0.98) 0%, rgba(223, 240, 252, 0.96) 50%, rgba(214, 236, 248, 0.95) 100%) !important;
}




[data-theme="cozy-pastel"] .action-btn:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .theme-toggle {
  background:
    linear-gradient(145deg, rgba(243, 252, 248, 0.98) 0%, rgba(224, 245, 236, 0.96) 54%, rgba(214, 239, 229, 0.95) 100%) !important;
}




[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn {
  background:
    linear-gradient(145deg, rgba(243, 249, 255, 0.98) 0%, rgba(226, 238, 249, 0.96) 52%, rgba(214, 231, 246, 0.95) 100%) !important;
}




[data-theme="cozy-pastel"] .home-primary-grid .primary-action-card:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .card,
[data-theme="cozy-pastel"] .summary-panel,
[data-theme="cozy-pastel"] .settings-block,
[data-theme="cozy-pastel"] .history-item,
[data-theme="cozy-pastel"] .chart-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 248, 253, 0.92) 42%, rgba(233, 244, 250, 0.90) 100%) !important;
}




[data-theme="cozy-pastel"] .home-game-mode .rank-badge,
[data-theme="cozy-pastel"] .type-chip,
[data-theme="cozy-pastel"] .tag {
  background:
    linear-gradient(145deg, rgba(232, 244, 253, 0.98) 0%, rgba(210, 233, 249, 0.96) 100%) !important;
}




[data-theme="cozy-pastel"] .home-game-mode .points-badge,
[data-theme="cozy-pastel"] .category-pill,
[data-theme="cozy-pastel"] .badge-pill {
  background:
    linear-gradient(145deg, rgba(235, 250, 243, 0.98) 0%, rgba(210, 240, 228, 0.96) 100%) !important;
}




[data-theme="cozy-pastel"] .results-type-btn.active,
[data-theme="cozy-pastel"] .range-btn.active,
[data-theme="cozy-pastel"] .nav-btn.active,
[data-theme="cozy-pastel"] .choice-card.selected,
[data-theme="cozy-pastel"] .state-choice.selected,
[data-theme="cozy-pastel"] .chore-game-mode-toggle .chip-btn.active {
  background:
    linear-gradient(150deg, rgba(223, 240, 252, 0.98) 0%, rgba(209, 235, 249, 0.97) 45%, rgba(202, 236, 221, 0.96) 100%) !important;
}




[data-theme="cozy-pastel"] .card::before,
[data-theme="cozy-pastel"] .summary-panel::before,
[data-theme="cozy-pastel"] .settings-block::before,
[data-theme="cozy-pastel"] .history-item::before,
[data-theme="cozy-pastel"] .chart-card::before {
  background: linear-gradient(90deg, var(--cozy-vivid-cyan), var(--cozy-vivid-teal), var(--cozy-vivid-emerald), var(--cozy-vivid-ice), var(--cozy-vivid-navy), var(--cozy-vivid-forest));
  background-size: 220% 100%;
  animation: cozyAccentSweep 10s ease-in-out infinite;
}




@keyframes cozyAccentSweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}




@media (prefers-reduced-motion: reduce) {
  [data-theme="cozy-pastel"] .card::before,
  [data-theme="cozy-pastel"] .summary-panel::before,
  [data-theme="cozy-pastel"] .settings-block::before,
  [data-theme="cozy-pastel"] .history-item::before,
  [data-theme="cozy-pastel"] .chart-card::before {
    animation: none !important;
  }}




[data-theme="cozy-pastel"] .cp-icon {
  position: relative;
  border-radius: 999px;
  padding: 3px;
  background:
    linear-gradient(145deg, rgba(238, 248, 255, 0.84), rgba(228, 245, 238, 0.80), rgba(219, 236, 246, 0.78));
  box-shadow:
    0 4px 10px rgba(51, 77, 96, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.54) inset;
}




[data-theme="cozy-pastel"] .cp-icon svg {
  filter:
    saturate(1.30)
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.62))
    drop-shadow(0 2px 5px rgba(57, 83, 104, 0.22));
}




[data-theme="cozy-pastel"] .card img:not(.gr-icon),
[data-theme="cozy-pastel"] .summary-panel img:not(.gr-icon),
[data-theme="cozy-pastel"] .settings-block img:not(.gr-icon) {
  border-radius: 14px;
  border: 1px solid rgba(43, 68, 86, 0.20);
  box-shadow:
    0 10px 22px rgba(46, 72, 90, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.46) inset;
  filter: saturate(1.18) contrast(1.05) brightness(1.03);
}




/* ============================================================
   COZY PASTEL - DARKER TEXT HARMONY
   ============================================================ */

[data-theme="cozy-pastel"] {
  --cozy-ink-strong: #173f5f;
  --cozy-ink-soft: #245674;
  --cozy-ink-muted: #4b6f88;
}




/* Broad text colour skips cosmetic-skinned components and the Results text-contract roles (AGENTS.md section 7). */
[data-theme="cozy-pastel"] .btn-title:where(:not([data-cosmetic-skin] *)),
[data-theme="cozy-pastel"] .stat-card .value,
[data-theme="cozy-pastel"] .topbar h1,
[data-theme="cozy-pastel"] :is(h1, h2, h3, h4, h5, h6):where(:not([data-cosmetic-skin] *, .screen[data-screen="results"] :is(.chart-card h3, .results-section-title, .chart-summary, .chart-empty, .empty-state-title, .empty-state-subtitle))),
[data-theme="cozy-pastel"] .results-section-title:where(:not([data-cosmetic-skin] *, .screen[data-screen="results"] :is(.chart-card h3, .results-section-title, .chart-summary, .chart-empty, .empty-state-title, .empty-state-subtitle))) {
  color: var(--cozy-ink-strong) !important;
}




/* Broad text colour skips cosmetic-skinned components and the Results text-contract roles (AGENTS.md section 7). */
[data-theme="cozy-pastel"] li,
[data-theme="cozy-pastel"] .step-help,
[data-theme="cozy-pastel"] .step-label,
[data-theme="cozy-pastel"] .tagline,
[data-theme="cozy-pastel"] .history-controls label,
[data-theme="cozy-pastel"] .input-hint,
[data-theme="cozy-pastel"] .btn-sub:where(:not([data-cosmetic-skin] *)),
[data-theme="cozy-pastel"] .motivation-hero-label,
[data-theme="cozy-pastel"] .motivation-hero-text,
[data-theme="cozy-pastel"] .motivation-hero-reference,
[data-theme="cozy-pastel"] .k,
[data-theme="cozy-pastel"] .v,
[data-theme="cozy-pastel"] .stat-card .label,
[data-theme="cozy-pastel"] :is(p, span:where(:not(.cp-icon, .chore-item-text, .end-week-task-title, .end-week-task-points)), label):where(:not([data-cosmetic-skin] *, .screen[data-screen="results"] :is(.chart-card h3, .results-section-title, .chart-summary, .chart-empty, .empty-state-title, .empty-state-subtitle))),
[data-theme="cozy-pastel"] :is(.field-help, .chart-summary, .empty-state-subtitle):where(:not([data-cosmetic-skin] *, .screen[data-screen="results"] :is(.chart-card h3, .results-section-title, .chart-summary, .chart-empty, .empty-state-title, .empty-state-subtitle))) {
  color: var(--cozy-ink-soft) !important;
}




[data-theme="cozy-pastel"] .primary-btn,
[data-theme="cozy-pastel"] .action-btn:where(:not([data-cosmetic-skin])),
[data-theme="cozy-pastel"] .chip-btn,
[data-theme="cozy-pastel"] .range-btn,
[data-theme="cozy-pastel"] .results-type-btn,
[data-theme="cozy-pastel"] .nav-btn,
[data-theme="cozy-pastel"] .theme-toggle,
[data-theme="cozy-pastel"] .time-record-display,
[data-theme="cozy-pastel"] .delete-btn,
[data-theme="cozy-pastel"] .type-chip,
[data-theme="cozy-pastel"] .category-pill,
[data-theme="cozy-pastel"] .badge-pill,
[data-theme="cozy-pastel"] .home-game-mode .rank-badge,
[data-theme="cozy-pastel"] .home-game-mode .points-badge,
[data-theme="cozy-pastel"] .home-game-mode .week-badge {
  color: var(--cozy-ink-strong) !important;
}




[data-theme="cozy-pastel"] a {
  color: #123245 !important;
  text-decoration-color: rgba(18, 50, 69, 0.52);
}




/* ============================================================
   ACTIVE THEMES - NO BRIGHT WHITE TEXT
   ============================================================ */

[data-theme="cozy-pastel"] {
  --read-primary-button-text: #14232d;
}




/* ============================================================
   CHECKLIST READABILITY FIX (COZY)
   Chore checklist and End of Week rows use the shared --checklist-row-* contract
   (chore-mode.css, end-week.css); End of Week text uses --end-week-row-*.
   ============================================================ */

[data-theme="cozy-pastel"] {
  --checklist-row-bg: transparent;
  --checklist-row-border: rgba(91, 121, 141, 0.18);
  --checklist-row-checked-bg: linear-gradient(155deg, rgba(210, 238, 224, 0.96), rgba(190, 224, 208, 0.92));
  --checklist-row-checked-border: rgba(35, 102, 76, 0.46);
  --checklist-row-text: var(--cozy-ink-soft);
  --checklist-row-checked-text: #133626;
  --end-week-row-text: #10212d;
  --end-week-row-checked-text: var(--checklist-row-checked-text);
}




/* Checklist and End of Week rows: notebook-line shape; colours come from the row tokens above. */
[data-theme="cozy-pastel"] .chore-checklist-item,
[data-theme="cozy-pastel"] .end-week-task-row {
  border-style: none none solid;
  border-width: 0 0 1px;
  border-radius: 0;
  min-height: 2.5rem;
}




[data-theme="cozy-pastel"] .chore-checklist-item input:checked + .chore-item-text,
[data-theme="cozy-pastel"] .end-week-task-row input:checked ~ :is(.end-week-task-title, .end-week-task-points) {
  font-weight: 700;
}




[data-theme="cozy-pastel"] .end-week-task-title,
[data-theme="cozy-pastel"] .end-week-task-points {
  text-shadow: none !important;
}
