.notif-tpl-list { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
  .notif-tpl-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
}
.notif-tpl-group { border: 1px solid var(--border); border-radius: 6px; }
.notif-tpl-group__head {
  padding: 8px 12px; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-soft);
}
.notif-tpl-group__items { padding: 4px 0; }
.notif-tpl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
}
.notif-tpl-row:hover { background: var(--bg-hover); }
.notif-tpl-row__label { flex: 1; }
.notif-tpl-row__badge {
  font-size: 11px; padding: 1px 6px; border-radius: 3px;
  background: #fef3c7; color: #92400e; margin-left: 8px;
}
.notif-tpl-vars { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.notif-tpl-var {
  font-family: monospace; font-size: 12px;
  padding: 2px 6px; background: var(--bg-soft); border-radius: 3px;
  cursor: pointer; user-select: all;
}
.notif-tpl-var:hover { background: var(--bg-hover); }
.notif-tpl-textarea {
  width: 100%; min-height: 160px; font-family: monospace; font-size: 13px;
  padding: 8px;
}
.notif-tpl-preview {
  margin-top: 8px; padding: 8px; border: 1px dashed var(--border);
  border-radius: 4px; white-space: pre-wrap; font-family: monospace;
  font-size: 13px; min-height: 60px; background: var(--bg-soft);
}

.notif-cheatsheet {
  border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 12px; background: var(--bg-soft);
}
.notif-cheatsheet__head {
  padding: 8px 12px; cursor: pointer; font-weight: 600;
}
.notif-cheatsheet__body { padding: 8px 12px 12px; }
.notif-cheatsheet__group { margin-top: 12px; }
.notif-cheatsheet__group:first-child { margin-top: 0; }
.notif-cheatsheet__group-title {
  font-weight: 600; font-size: 13px; margin-bottom: 4px;
  color: var(--text-muted);
}
.notif-cheatsheet__dl {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 4px 12px; margin: 0;
}
.notif-cheatsheet__dl dt {
  font-family: monospace; font-size: 12px; white-space: nowrap;
}
.notif-cheatsheet__dl dt code {
  background: var(--bg-hover); padding: 1px 4px; border-radius: 3px;
}
.notif-cheatsheet__dl dd { margin: 0; font-size: 13px; }

/* ── Модалка настроек уведомлений пользователя (v0.18.6) ─────────────── */

.notif-tg-warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.notif-dnd-fieldset {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.notif-dnd-help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-userconfig__roles {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.notif-userconfig__group { margin-bottom: 6px; }
.notif-userconfig__group-head {
  cursor: pointer;
  padding: 6px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-weight: 600;
}
.notif-userconfig__group-body { padding: 6px 6px 6px 12px; }

.notif-evt-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px dashed transparent;
}
.notif-evt-row:not(:last-child) { border-bottom-color: var(--border); }
.notif-evt-row > input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.notif-evt-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.notif-evt-row__label {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.notif-evt-row__hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.notif-evt-row__badge--default {
  background: #dcfce7;
  color: #166534;
}
.notif-evt-row__badge--off {
  background: #f1f5f9;
  color: #64748b;
}
