/* Writing patterns panel (habits.js, 25 Nov 2026). The underline in the text is ink, not vermilion: a pattern is not a
   mark and not part of the score. */
.hb-note { margin: 0 0 12px; color: var(--ink-2); }
.hb h4 { margin: 18px 0 6px; font: 600 15px/1.3 var(--font-text); }
.hb-pats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hb-pats li { border-bottom: 1px solid var(--line); }
.hb-pats button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%;
  padding: 8px 4px; cursor: pointer; border-radius: var(--r); }
.hb-pats button:hover { background: var(--paper-2); }
.hb-pats button:focus-visible, .hb-words button:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.hb-name { font-weight: 600; }
.hb-pats .hb-n { font-size: 13px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.hb-why { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.hb-step:not(:empty)::before { content: " · "; }
.hb-words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-words button { font: inherit; font-size: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent;
  color: var(--ink); padding: 3px 8px; min-height: 32px; cursor: pointer; }
.hb-words button:hover { border-color: var(--ink-2); background: var(--paper-2); }
.hb-words .hb-n { color: var(--ink-3); font-size: 13px; margin-left: 2px; }
.hb-words .hb-step { color: var(--ink-3); font-size: 13px; }
.hb .hb-toggle { margin-top: 14px; }
.doc .ov-patterns { text-decoration-line: underline; text-decoration-style: dashed; text-decoration-color: var(--ink-2);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media print { .doc .ov-patterns { text-decoration: none; } }
