/* notify.css — «Интеграции» → «Уведомления клиентам» (notify.js). Только токены styles.css, светлая и тёмная темы. */
.nt { max-width: 980px; }
.nt-lead { margin: 0 0 16px; max-width: 760px; line-height: 1.5; color: var(--text-dim); font-size: 14px; }
.nt-loading { padding: 14px 0; color: var(--text-dim); font-size: 14px; }

/* выбор канала: три крупные кнопки с иконками */
.nt-chans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.nt-ch { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-l); cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .1s; }
.nt-ch:hover { border-color: var(--border-strong, var(--border)); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nt-ch:active { transform: scale(.99); }
.nt-ch.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nt-ch.off { opacity: .6; }
.nt-ch-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-ch-txt b { font-size: 16px; }
.nt-ch-st { font-size: 12.5px; color: var(--text-dim); }
.nt-ch-st.ok { color: var(--accent-text); }
.nt-ch-st.warn { color: var(--warn-text); }
.nt-ch-st.bad { color: var(--danger-text); }
.nt-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c); }
.nt-ico svg { width: 19px; height: 19px; }
.nt-ico.big { width: 48px; height: 48px; border-radius: 14px; }
.nt-ico.big svg { width: 29px; height: 29px; }

/* панель выбранного канала */
.nt-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 16px 18px; margin-bottom: 14px; }
.nt-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nt-sec-head h4 { margin: 0; font-size: 15px; }
.nt-grow { flex: 1 1 auto; }
.nt-empty { padding: 14px; border: 1.5px dashed var(--border); border-radius: var(--radius-m); color: var(--text-dim); font-size: 13.5px; text-align: center; line-height: 1.45; }
.nt-note { font-size: 12.5px; color: var(--text-dim); margin: 4px 2px 0; max-width: 760px; line-height: 1.45; }
.nt-sub { font-size: 12.5px; color: var(--text-dim); }
.nt-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.nt-btns a.in-btn { text-decoration: none; display: inline-block; }
.nt-steps { margin: 6px 0 4px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }

/* строки: аккаунты, группы Telegram */
.nt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-m); margin-bottom: 8px; background: var(--surface); }
.nt-row.todo { border-color: var(--warn-text); background: var(--warn-soft); }
.nt-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.nt-row-main > div { min-width: 0; }
.nt-row-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-kind { font-size: 18px; line-height: 1; flex: none; }
.nt-x { flex: none; width: 30px; height: 30px; border-radius: var(--radius-s); border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; font-size: 14px; }
.nt-x:hover { background: var(--danger-soft); color: var(--danger-text); }

/* форма привязки */
.nt-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px; background: var(--surface-2, var(--bg)); border-radius: var(--radius-m); margin-bottom: 14px; }
.nt-form label, .nt-fld, .nt-wiz label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-dim); min-width: 180px; }
.nt-dest-f { flex: 1 1 240px; }
.nt-select, .nt-input { padding: 8px 10px; font: 14px var(--font-ui); max-width: 100%; }
.nt-seg { display: inline-flex; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.nt-seg button { padding: 8px 12px; border: 0; background: none; color: var(--text-dim); font: 500 13.5px var(--font-ui); cursor: pointer; white-space: nowrap; }
.nt-seg button.active { background: var(--accent); color: #fff; }

/* привязки по компаниям */
.nt-cos { display: flex; flex-direction: column; gap: 10px; }
.nt-co { border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.nt-co-name { padding: 8px 14px; font-weight: 600; font-size: 14px; background: var(--surface-2, var(--bg)); }
.nt-dest { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.nt-dest-name { font-size: 14px; overflow-wrap: anywhere; }

/* мастера подключения */
.nt-wiz { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin-bottom: 12px; border: 1.5px solid var(--accent); border-radius: var(--radius-m); background: var(--accent-soft); }
.nt-wiz p { margin: 0; }
.nt-wiz .nt-input { width: 100%; box-sizing: border-box; max-width: 340px; }
.nt-qr { flex-direction: row; gap: 20px; align-items: center; flex-wrap: wrap; }
.nt-qr img { width: 220px; height: 220px; background: #fff; border-radius: var(--radius-m); padding: 8px; box-sizing: border-box; flex: none; }

@media (max-width: 760px) {
  .nt-chans { grid-template-columns: 1fr; }
  .nt-ch { padding: 12px 14px; }
  .nt-form label, .nt-fld, .nt-seg { width: 100%; }
  .nt-seg button { flex: 1; }
  .nt-qr img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
  .nt-row-act { width: 100%; }
  .nt-row-act .nt-select { flex: 1 1 100%; }
}

.nt-chk { --ck: 16px; display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; cursor: pointer; }
.nt-topic { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.nt-cs { display: inline-block; min-width: 240px; max-width: 100%; }
.nt-fld > .nt-cs { display: block; margin-top: 4px; }

.nt-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.15)); user-select: all; }
