/* Оповещения гостя (Д-2186): карточка «Включить оповещения», строка в «Моё», экран «Сигнал».
   Закрытый модуль `guest-opoveshcheniya.js`: селекторы только op-*, цвета только из tokens.css (макет `docs/mockups/d2186-uvedomleniya-gostya/`). */
.op-host { display: contents; }
.op-tile { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-wash-soft); color: var(--accent); }
.op-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.op-tile.ok { background: color-mix(in srgb, var(--open-signal) 18%, transparent); color: var(--open-signal); }
.op-tile.warn { background: var(--warn-wash); color: var(--warn); }
.op-tile.mute { background: var(--panel-2); color: var(--muted); }

/* карточка поверх страницы: внизу экрана на телефоне, по центру на компьютере */
.op-wrap { position: fixed; inset: 0; z-index: 51; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.op-dim { position: fixed; inset: 0; background: var(--ten-60); pointer-events: auto; }
.op-card { position: relative; pointer-events: auto; box-sizing: border-box; width: 100%; max-width: 480px; max-height: 96vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px max(12px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 20px 20px 0 0; background: var(--panel); color: var(--text); }
@media (min-width: 700px) { .op-wrap { align-items: center; } .op-card { border-radius: 20px; padding-bottom: 16px; } }
.op-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.op-h .op-tile { width: 44px; height: 44px; border-radius: 12px; }
.op-h .op-tile svg { width: 24px; height: 24px; }
.op-h h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.op-lead { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.op-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.op-g h3 { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--text); }
.op-ty { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-lg, 14px); background: var(--panel-2); }
.op-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.op-tx b { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.op-tx span { font-size: 13px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.op-cons { display: flex; align-items: flex-start; gap: 12px; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg, 14px); background: var(--panel); font-size: 14px; line-height: 1.35; color: var(--text); }
.op-cons.on { border-color: var(--accent); background: var(--accent-wash-soft); }
.op-cons-t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.op-box { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 2px solid var(--edge); border-radius: 6px; background: transparent; color: transparent; }
.op-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.op-cons.on .op-box { border-color: var(--accent); background: var(--accent); color: var(--on-solid); }
.op-cons .pol-ssylka { margin: -8px 0 -6px 0; } /* общая ссылка политики сдвинута на 38 px под галочку: здесь она под текстом согласия */
.op-card .primary, .op-card .op-later { box-sizing: border-box; width: 100%; min-height: 50px; margin: 0; font-size: 17px; font-weight: 800; }
.op-later { border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; }
.op-note { margin: -2px 0 0; font-size: 13px; line-height: 1.3; color: var(--muted); text-align: center; }

/* строка «Оповещения» в «Моё» (тот же .me-row, что у соседей) */
.me-row.op-row { align-items: center; }
.me-row.op-row.anon, .me-row.op-row.vykl, .me-row.op-row.zapret, .me-row.op-row.oshibka { cursor: default; }
.op-sign { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent); }
.op-sign svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.op-sign.mute { color: var(--muted); }
.op-row .me-text { flex: 1; min-width: 0; }
.op-mini { flex: 0 0 auto; box-sizing: border-box; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-solid); font: inherit; font-size: 14px; font-weight: 800; }
.op-hint { box-sizing: border-box; margin: -2px 0 8px; padding: 10px 14px; border: 1px solid var(--warn-edge); border-radius: var(--radius-lg, 14px); background: var(--warn-wash); color: var(--text); font-size: 13px; line-height: 1.4; }

/* экран «Сигнал» */
.op-types { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.op-types .me-group { margin-top: 8px; }
.op-sw-row { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: 64px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg, 14px); background: var(--panel); color: var(--text); min-width: 0; }
.op-sw-row.dis { opacity: 0.5; }
.op-sw { flex: 0 0 auto; position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 15px; background: var(--line); box-sizing: border-box; }
.op-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); opacity: 0.8; }
.op-sw.on { background: var(--accent); }
.op-sw.on::after { left: 25px; opacity: 1; background: var(--on-solid); }
.op-sw:disabled { cursor: default; }
.op-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--warn-edge); border-radius: var(--radius-pill, 999px); background: var(--warn-wash); color: var(--warn); font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap; }
.op-link { margin: 2px 0 0; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; min-height: 24px; }
.op-quiet { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
.op-off { box-sizing: border-box; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid var(--bad-edge); border-radius: 14px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; }
