/* Brodlin numbered marks (contract 27.11.2026, item 5.2): the settings row. Calm and flat: 1 px grey borders,
   the accent #4D6EF0 for what is chosen, no shadows, no pills, no gradients. The marks themselves are SVG
   drawn by the component (circle in the chosen colour, white inside, the sign in the colour). */
:root .brodlin-count-marks { display: grid; gap: 12px; margin: 0; }
:root .brodlin-count-marks__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root .brodlin-count-marks__settings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
:root .brodlin-count-marks__caption { color: #4b5563; font-size: 13px; margin-inline-end: 2px; }
:root .brodlin-count-marks__btn {
  box-sizing: border-box; min-height: 36px; padding: 0 12px; margin: 0;
  border: 1px solid #a5aeb9; border-radius: 3px; background: #fff; color: #14171c;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer; box-shadow: none;
}
:root .brodlin-count-marks__btn:hover { border-color: #4D6EF0; }
:root .brodlin-count-marks__btn:focus-visible { outline: 2px solid #4D6EF0; outline-offset: 1px; }
:root .brodlin-count-marks__kind { font-weight: 600; color: var(--brodlin-count-mark-color, #4D6EF0); min-width: 92px; }
/* sizes: three empty circles of growing size */
:root .brodlin-count-marks__size { width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
:root .brodlin-count-marks__size::before { content: ""; box-sizing: border-box; border: 2px solid #4b5563; border-radius: 50%; }
:root .brodlin-count-marks__size--s::before { width: 12px; height: 12px; }
:root .brodlin-count-marks__size--m::before { width: 17px; height: 17px; }
:root .brodlin-count-marks__size--l::before { width: 23px; height: 23px; }
:root .brodlin-count-marks__size[aria-pressed="true"] { border: 2px solid #4D6EF0; }
:root .brodlin-count-marks__size[aria-pressed="true"]::before { border-color: #4D6EF0; }
/* colours: a filled square of the colour, the chosen one in a 2 px accent ring */
:root .brodlin-count-marks__color { width: 28px; min-height: 28px; padding: 0; border: 1px solid #a5aeb9; background: var(--brodlin-count-mark-color); }
:root .brodlin-count-marks__color[aria-pressed="true"] { outline: 2px solid #4D6EF0; outline-offset: 2px; }
:root .brodlin-count-marks__start { display: inline-flex; align-items: center; gap: 8px; }
:root .brodlin-count-marks__start input {
  box-sizing: border-box; width: 64px; height: 36px; padding: 0 8px; margin: 0;
  border: 1px solid #a5aeb9; border-radius: 3px; font: inherit; color: inherit; background: #fff;
}
:root .brodlin-count-marks__start input[aria-invalid="true"] { border-color: #ED1A38; }
:root .brodlin-count-marks__renumber { justify-self: start; }
/* 28.11 Denis on the look («таблетки не ставь… без скобок, без квадратиков, без обводок… кругляшки просто поставь…
   кнопка посередине, нашего стиля»). These rules stand after the first ones and win over them:
   - the kinds are plain words: the chosen one accent and 600, the others the text colour and 400; each word keeps the
     width of its bold form, so nothing moves when the choice changes;
   - the sizes are plain circles, no squares around them, the chosen one accent;
   - the rows stand at equal distances; the field is 33 px, no blue focus frame;
   - "Renumber" stands in the middle as a main button (36 px, corners 8 px, 14/500, white on the accent). */
:root .brodlin-count-marks { gap: 14px; }
:root .brodlin-count-marks__settings { gap: 14px 22px; }
:root .brodlin-count-marks__group, :root .brodlin-count-marks__start { min-height: 33px; margin: 0; }
:root .brodlin-count-marks > .brodlin-count-marks__group { gap: 8px 22px; }
:root .brodlin-count-marks__kind {
  display: inline-grid; justify-items: center; align-content: center; min-width: 0; min-height: 33px; padding: 0; border: 0; background: none;
  font-size: 16px; font-weight: 400; color: #14171c;
}
:root .brodlin-count-marks__kind::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
:root .brodlin-count-marks__kind[aria-pressed="true"] { color: #4D6EF0; font-weight: 600; }
:root .brodlin-count-marks__kind:hover { border: 0; color: #4D6EF0; }
:root .brodlin-count-marks__size, :root .brodlin-count-marks__size[aria-pressed="true"] { width: 30px; min-height: 30px; border: 0; background: none; }
:root .brodlin-count-marks__start input { height: 33px; border-color: #c7cdd4; border-radius: 8px; outline: none; }
:root .brodlin-count-marks__start input:focus { border-color: #14171c; outline: none; box-shadow: none; }
:root .brodlin-count-marks__renumber, :root .brodlin-count-marks__renumber:hover {
  justify-self: center; height: 36px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px;
  background: #4D6EF0; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
}
:root .brodlin-count-marks__renumber:hover { background: #3E5CD6; }
/* a mark on the page */
:root svg.brodlin-count-mark { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; user-select: none; }
