/* Notification templates (System → Notifications → Templates).
 * Rows are `.list` items grouped in one card per channel; the editor
 * is a `.modal` (notif-templates.js) with placeholder chips and a
 * server-rendered preview of the draft. */

.tpl__head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.tpl__type { font-weight: 600; }
.tpl__key { font-size: var(--fs-xxs); word-break: break-all; }
.tpl__row--edited { border-left: 2px solid var(--color-warning); padding-left: var(--sp-3); }
.tpl__current { white-space: pre-wrap; }
.tpl__current strong { display: block; color: var(--color-text); }

/* Live preview of the draft inside the editor modal. */
.tpl__preview {
    padding: var(--sp-3);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 2.5rem;
}
.tpl__preview strong {
    display: block;
    color: var(--color-text);
    margin-bottom: var(--sp-half);
}

/* Filter box above the channel groups — same shape as the settings filter. */
.tpl__search { width: 100%; margin-bottom: var(--sp-4); }
