/* Самостоятельные переносы длинного текста и короткие группы в гибких строках. */
.text-lines { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.measure-text { max-width: 65ch; }
.minwidth0 { min-width: 0; }
/* Горизонтальный пунктир наследует цвет текста, не требует отдельной темы. */
.dotted-rule { border: 0; border-top: 1px dotted currentColor; margin: 0; }
/* Общие размеры действий и выравнивание соседнего текста по их внутреннему краю. */
.clear-control, .control-inset { --control-rim: 1px; --control-inline-padding: 0.3em; }
.control-inset { padding-inline: calc(var(--control-rim) + var(--control-inline-padding)); }
/* Прозрачные компактные действия: одинаковое оформление ссылок и кнопок. */
.clear-control { --control-block-padding: 0.2em; appearance: none; display: inline-flex; align-items: center; background: transparent !important; border: var(--control-rim) solid transparent !important; box-shadow: none !important; gap: 0.3em; padding: var(--control-block-padding) var(--control-inline-padding); margin: 0; font-family: inherit; font-size: inherit; line-height: 1; text-decoration: none !important; cursor: pointer; }
:where(.clear-control) { color: inherit; }
.clear-control.blue { color: var(--clr-blue); }
.clear-control:disabled { cursor: default; }
.clear-control:hover:not(:disabled), .clear-control:focus-visible { border-color: LightGray !important; }
/* Место под нижний оверлей вычисляется из его высоты и отступов. */
.bottom-inset-space { --bottom-inset-height: 1.5rem; --bottom-inset-edge: 0px; --bottom-inset-gap: 0.2rem; position: relative; padding-bottom: calc(var(--bottom-inset-height) + var(--bottom-inset-edge) + var(--bottom-inset-gap)) !important; }
.bottom-inset-row { position: absolute; right: 0.5rem; bottom: var(--bottom-inset-edge); height: var(--bottom-inset-height); }

/* Составной значок остаётся в квадрате стандартного символа; метка не участвует в строке. */
.corner-symbol { display: inline-block; position: relative; width: 1em; height: 1em; line-height: 1; vertical-align: middle; }
/* Сдвиг компенсирует свободное поле под клавиатурной *; видимые отступы от листа равны. */
.corner-symbol > .corner-mark { --corner-mark-inset: 0.12em; --corner-mark-baseline-fit: 0.57em; position: absolute; right: var(--corner-mark-inset); bottom: calc(var(--corner-mark-inset) - var(--corner-mark-baseline-fit)); font-size: 0.8em; line-height: 1; }
/* Плотная группа переключателей: состояние выделяется фоном из палитры приложения. */
.pressed-fill > :is([aria-pressed="true"], :focus-visible) { background: var(--clr-back-light2); }
.pressed-fill > .blue { color: var(--clr-blue); }
/* Обычный закреплённый блок внутри своей области прокрутки. */
.sticky-top { position: sticky; top: 0; z-index: 2; }

/* Квадратное действие сохраняет высоту обычной кнопки и центрирует значок. */
.clear-control.square-control { --control-side: calc(1em + 2 * (var(--control-block-padding) + var(--control-rim))); box-sizing: border-box; flex: none; width: var(--control-side); height: var(--control-side); padding: 0; justify-content: center; }

/* Подпись закрепляется под панелью и уходит вместе со своей группой. */
.sticky-group-heading { position: sticky; top: var(--sticky-header-bottom, 0px); z-index: 1; }
