/* Подсказка «?» (B8): кнопка и облако со скруглёнными краями и хвостиком. Фон облака около 75 % непрозрачности, текст непрозрачный.
   Светлая тема: тёмное облако со светлым текстом; тёмная: светлое облако с тёмным текстом (контраст не ниже AA на любом фоне под облаком). */
:root { --tip-bg: rgba(28, 35, 51, 0.75); --tip-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --tip-bg: rgba(232, 236, 245, 0.75); --tip-ink: #10141f; } }
.tip { display: inline-block; vertical-align: middle; margin-left: 6px; position: relative; }
.tip-btn { appearance: none; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--field-line); background: var(--card); color: var(--brand-dark);
  font: 700 13px/1 system-ui, sans-serif; cursor: pointer; position: relative; }
.tip-btn::after { content: ""; position: absolute; inset: -10px; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { background: var(--soft); border-color: var(--brand); }
.tip-body { position: fixed; z-index: 100; width: max-content; max-width: min(320px, calc(100vw - 16px)); box-sizing: border-box; padding: 10px 12px; border-radius: 12px;
  background: var(--tip-bg); color: var(--tip-ink); font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); overflow-wrap: anywhere; }
.tip-body[hidden] { display: none; }
.tip-body::before { content: ""; position: absolute; left: var(--tail-x, 16px); margin-left: -7px; width: 0; height: 0; border: 7px solid transparent; }
.tip-body.below::before { bottom: 100%; border-bottom-color: var(--tip-bg); border-top-width: 0; }
.tip-body.above::before { top: 100%; border-top-color: var(--tip-bg); border-bottom-width: 0; }
.lblrow { display: flex; align-items: center; margin-bottom: 4px; }
.lblrow .lbl { margin-bottom: 0; }
