/* habit-tracker: styles only it uses, split out of site.css by scripts/split-css.mjs. */
.todo-tool, .habit-tool { display: flex; flex-direction: column; gap: 14px; }
.todo-add { display: flex; flex-wrap: wrap; gap: 8px; }
.todo-add input[type="text"] { flex: 1 1 240px; min-width: 0; }
.todo-add input[type="date"] { flex: 0 1 170px; }
.todo-empty { margin: 10px 0; color: var(--slate); text-align: center; }
.todo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--slate); font-size: 0.9rem; }
.habit-month { display: flex; align-items: center; justify-content: center; gap: 14px; }
.habit-month h2 { margin: 0; min-width: 11ch; text-align: center; font-size: 1.25rem; }
.habit-wrap { overflow-x: auto; }
.habit-grid { border-collapse: separate; border-spacing: 3px; }
.habit-grid th { font-weight: 600; font-size: 0.72rem; color: var(--slate); text-align: center; }
.habit-grid thead th small { display: block; font-size: 0.62rem; font-weight: 500; }
.habit-grid thead th.is-today { color: var(--signal-ink); }
.habit-name-col { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 220px; padding-right: 8px; background: var(--paper); text-align: left !important; }
.habit-grid tbody th { font-size: 0.92rem; color: var(--ink); }
.habit-grid tbody th span { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; border-left: 4px solid var(--habit); padding-left: 8px; }
.habit-del { margin-left: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--slate-2); cursor: pointer; vertical-align: middle; }
.habit-del:hover { background: var(--mist); color: var(--bad); }
.habit-day { display: block; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); cursor: pointer; }
.habit-day.is-on { border-color: var(--habit); background: var(--habit); }
.habit-day.is-today { box-shadow: 0 0 0 2px var(--signal-soft); }
.habit-day:disabled { opacity: 0.35; cursor: default; }
.habit-stat { padding: 0 8px; font: 700 0.85rem var(--text); color: var(--ink); white-space: nowrap; text-align: center; }
