/* habits checklist and month calendar */
.hb-edit summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--muted); margin-top: 8px; }
.hb-cur { display: grid; gap: 4px; margin: 6px 0; padding: 0; list-style: none; }
.hb-cur li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.hb-add { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hc-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-nav h3 { margin: 0; font-size: 1.05rem; }
.hc-nav .cl-ghost { min-width: 44px; }
.hc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 6px; padding: 0; list-style: none; }
.hc-w { text-align: center; font-size: .72rem; color: var(--muted); }
.hc-d { display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 40px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--fg); font: 600 .85rem var(--font); cursor: pointer; }
.hc-d span { line-height: 1; }
.hc-dots { font-style: normal; font-size: .6rem; line-height: .6; color: var(--brand-ink, var(--brand)); letter-spacing: -1px; }
.hc-done { background: color-mix(in srgb, #ff6a2b 22%, transparent); border-color: color-mix(in srgb, #ff6a2b 45%, transparent); }
.hc-rest { background: color-mix(in srgb, #7fb0ff 14%, transparent); }
.hc-missed { border-style: dashed; border-color: var(--line); color: var(--muted); }
.hc-future, .hc-before { color: var(--muted); opacity: .55; }
.hc-d.is-today { outline: 2px solid var(--brand); outline-offset: 1px; }
.hc-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; font-size: .78rem; color: var(--muted); }
.hc-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.hc-key .hc-done, .hc-key .hc-rest, .hc-key .hc-missed { background: none; border: 0; }
.hc-key .hc-done::before { background: color-mix(in srgb, #ff6a2b 45%, transparent); }
.hc-key .hc-rest::before { background: color-mix(in srgb, #7fb0ff 35%, transparent); }
.hc-key .hc-missed::before { border: 1px dashed var(--muted); }
.hc-key span:last-child::before { display: none; }
