/* Habits: a wall calendar with a marker. Each habit is a row of seven days, ticked days filled in a warm
   marigold, and one big round button for today. Cream page, deep brown ink. */
:root { --page: #f6f3ec; --card: #ffffff; --ink: #231d12; --soft: #625a4c; --line: #ddd5c4; --field: #efeadf; --act: #8a5a00; --on-act: #ffffff; --stop: #b3261e; --mark: #e0a100; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #14130f; --card: #1e1c17; --ink: #f1ece1; --soft: #aea592; --line: #37322a; --field: #14130f; --act: #f2bb4b; --on-act: #2a1c00; --stop: #ff8a80; --mark: #e0a100; color-scheme: dark; }
}
.habits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.habit { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.habit h2 { font-size: 19px; overflow-wrap: anywhere; }
.habit .count { color: var(--soft); font-size: 15px; }
.habit .count b { color: var(--ink); }
.today { width: 64px; height: 64px; min-height: 64px; padding: 0; border-radius: 50%; border: 3px solid var(--mark); background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; grid-row: 1 / span 2; grid-column: 2; }
.today[aria-pressed="true"] { background: var(--mark); color: #2a1c00; }
.today svg { width: 30px; height: 30px; display: block; margin: 0 auto; }
.week { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 44px; padding: 0; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; color: var(--soft); font-size: 13px; font-weight: 600; display: grid; place-items: center; line-height: 1.1; }
.day[aria-pressed="true"] { background: var(--mark); border-color: var(--mark); color: #2a1c00; }
.day.is-today { border-color: var(--ink); }
.foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
