/* /opt/skynet-portal/app/static/css/notifications.css */
/* v0.6.0 — пятая цифра «Սպասում են փակման» и блок «Հայտեր, որոնց հետևում եք» (раздел 4а) */
/* 10.11.2026: v0.6.0; 24.10.2026: v0.5.0 светлая тема (секция 7); 17.10.2026: v0.4.0 центр оповещений заново, только токены портала */

/* =====================================================================
   1. Цвета категорий (значок, чип, полоса «Ո՞վ է զանգում»)
   ===================================================================== */
.cat-auth     { --cat: #a78bfa; }
.cat-tickets  { --cat: #60a5fa; }
.cat-call     { --cat: #2dd4bf; }
.cat-system   { --cat: #f472b6; }
.cat-telegram { --cat: #38bdf8; }
.cat-cron     { --cat: #818cf8; }
[data-theme="light-pearl"] .cat-auth     { --cat: #7c3aed; }
[data-theme="light-pearl"] .cat-tickets  { --cat: #2563eb; }
[data-theme="light-pearl"] .cat-call     { --cat: #0d9488; }
[data-theme="light-pearl"] .cat-system   { --cat: #db2777; }
[data-theme="light-pearl"] .cat-telegram { --cat: #0284c7; }
[data-theme="light-pearl"] .cat-cron     { --cat: #4f46e5; }

/* Значок категории: плитка с мягкой заливкой цвета категории */
.ntf-cat-ico {
  --ic: var(--cat, var(--accent-bright));
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 24%, transparent);
}
.ntf-cat-ico svg { width: 17px; height: 17px; }
.ntf-cat-ico.is-xs { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; background: transparent; }
.ntf-cat-ico.is-xs svg { width: 15px; height: 15px; }
.ntf-cat-ico.is-sm { width: 30px; height: 30px; border-radius: 9px; }
.ntf-cat-ico.is-sm svg { width: 15px; height: 15px; }
.ntf-cat-ico.is-lg { width: 42px; height: 42px; border-radius: 12px; }
.ntf-cat-ico.is-lg svg { width: 19px; height: 19px; }
.ntf-cat-ico.is-xl { width: 56px; height: 56px; border-radius: 16px; }
.ntf-cat-ico.is-xl svg { width: 26px; height: 26px; }

/* Переключатель (вкл/выкл) — кнопка с role="switch" */
.ntf-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.ntf-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-tertiary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base), background var(--transition-base);
}
.ntf-switch.is-on {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ntf-switch.is-on::after { transform: translateX(18px); background: #fff; }
.ntf-switch.is-lg { width: 54px; height: 30px; }
.ntf-switch.is-lg::after { width: 24px; height: 24px; }
.ntf-switch.is-lg.is-on::after { transform: translateX(24px); }
.ntf-switch:disabled { opacity: 0.45; cursor: not-allowed; }
.ntf-switch:focus-visible { outline: none; box-shadow: var(--ring-strong); }

/* Время «N րոպե առաջ» */
.ntf-when { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Мини-чип «մատյան» */
.ntf-mini-chip {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: var(--fw-semibold);
  color: var(--text-tertiary);
  background: var(--bg-surface-3);
}

/* Точка «не прочитано» — на углу значка категории */
.ntf-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--bg-surface), 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
  pointer-events: none;
}

/* =====================================================================
   2. Колокольчик и бейдж (топбар)
   ===================================================================== */
.ntf-bell { position: relative; }
.ntf-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: #fff;
  background: var(--danger);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-canvas);
  font-variant-numeric: tabular-nums;
  animation: ntfPulse 2.6s ease-in-out infinite;
}
@keyframes ntfPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 40%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 0%, transparent); }
}

/* =====================================================================
   3. Окно колокольчика
   ===================================================================== */
.ntf-menu {
  width: 412px;
  max-width: calc(100vw - 16px);
  padding: 0;
  overflow: hidden;
}
.ntf-menu[hidden] { display: none; }
.ntfd-loading { padding: 28px; text-align: center; color: var(--text-tertiary); font-size: var(--fs-sm); }

.ntfd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px 16px;
}
.ntfd-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.ntfd-new {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}
.ntfd-head-acts { display: inline-flex; align-items: center; gap: 4px; }
.ntfd-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--accent-bright);
  font: inherit;
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.ntfd-link svg { width: 15px; height: 15px; }
.ntfd-link:hover { background: var(--bg-hover); }
.ntfd-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--text-tertiary);
}
.ntfd-gear svg { width: 16px; height: 16px; }
.ntfd-gear:hover { background: var(--bg-hover); color: var(--text-primary); }

.ntfd-tabs {
  display: flex;
  gap: 3px;
  margin: 0 14px 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}
.ntfd-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.ntfd-tab:hover { color: var(--text-primary); }
.ntfd-tab.is-active {
  background: var(--bg-surface-3);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm), var(--edge-light);
}
.ntfd-tab-n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.64rem;
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--danger);
}

/* Полоса «Ո՞վ է զանգում» */
.ntfd-calls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 4px;
  padding: 9px 10px 9px 9px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--cat) 26%, var(--border-subtle));
  background: color-mix(in srgb, var(--cat) 7%, var(--bg-surface));
}
.ntfd-calls.is-off { border-color: var(--border-default); background: var(--bg-surface-2); }
.ntfd-calls.is-off .ntf-cat-ico { --ic: var(--text-tertiary); }
.ntfd-calls-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ntfd-calls-txt b { font-size: 0.8rem; font-weight: var(--fw-bold); color: var(--text-primary); }
.ntfd-calls-txt span { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntfd-calls.is-paused .ntfd-calls-txt span { color: var(--warning-text); }
.ntfd-calls.is-off .ntfd-calls-txt span { color: var(--text-tertiary); }
.ntfd-calls-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  color: var(--text-on-accent);
  background: var(--gradient-accent);
  box-shadow: 0 4px 14px -6px var(--accent-glow);
  white-space: nowrap;
}

/* Лента окна */
.ntfd-list {
  max-height: min(56vh, 470px);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ntfd-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 2px 0;
  border-radius: 12px;
  transition: background var(--transition-fast), opacity 0.2s ease, transform 0.2s ease;
}
.ntfd-item:hover { background: var(--bg-hover); }
.ntfd-item.is-unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ntfd-item.is-unread:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ntfd-item.is-gone { opacity: 0; transform: translateX(14px); }
.ntfd-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}
.ntfd-item.sev-success::before { background: var(--success); }
.ntfd-item.sev-warning::before { background: var(--warning); }
.ntfd-item.sev-danger::before { background: var(--danger); }
.ntfd-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 36px 10px 11px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ntfd-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntfd-ttl {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--text-primary);
}
.ntfd-item.is-unread .ntfd-ttl { font-weight: var(--fw-bold); }
.ntfd-txt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  word-break: break-word;
}
.ntfd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}
.ntfd-dotsep { opacity: 0.6; }
.ntfd-item .ntf-dot { top: 8px; left: 40px; }
.ntfd-x {
  position: absolute;
  top: 8px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.ntfd-x svg { width: 13px; height: 13px; }
.ntfd-x:hover, .ntfd-x:focus-visible { background: var(--bg-surface-3); color: var(--text-primary); outline: none; }
.ntfd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px 26px;
  text-align: center;
}
.ntfd-empty-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: var(--success-text);
  background: var(--success-soft);
}
.ntfd-empty-ic svg { width: 22px; height: 22px; }
.ntfd-empty b { font-size: 0.86rem; color: var(--text-primary); }
.ntfd-empty span { font-size: 0.74rem; color: var(--text-tertiary); }
.ntfd-foot {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-surface-2) 55%, transparent);
}
.ntfd-all {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
}
.ntfd-all svg { width: 14px; height: 14px; }
.ntfd-all:hover { background: var(--bg-hover); }
.ntfd-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.74rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.ntfd-clear svg { width: 14px; height: 14px; }
.ntfd-clear:hover { color: var(--danger-text); background: var(--danger-soft); }

/* =====================================================================
   4. Страница центра (/notifications/) и общая шапка с настройками
   ===================================================================== */
.ntfc { display: flex; flex-direction: column; gap: 16px; }
.ntfc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ntfc-head-l { display: flex; align-items: center; gap: 14px; flex: 1 1 380px; min-width: 0; }
.ntfc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--text-on-accent);
  background: var(--gradient-accent);
  box-shadow: 0 10px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ntfc-logo svg { width: 23px; height: 23px; }
.ntfc-head-txt { min-width: 0; }
.ntfc-h1 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  color: var(--text-primary);
}
.ntfc-sub { margin-top: 3px; font-size: var(--fs-sm); color: var(--text-tertiary); }
.ntfc-head-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 1 auto; }

/* Цифры-фильтры (пятая — «Սպասում են փակման», блок «Հայտեր, որոնց հետևում եք», раздел 4а) */
.ntfc-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ntfc-kpi {
  --k: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-sm), var(--edge-light);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.ntfc-kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--k) 70%, transparent), transparent);
  opacity: 0.55;
}
.ntfc-kpi:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--k) 40%, var(--border-default));
  box-shadow: var(--shadow-md), var(--edge-light);
}
.ntfc-kpi.is-active {
  border-color: color-mix(in srgb, var(--k) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--k) 12%, var(--bg-surface)) 0%, var(--bg-surface) 70%);
}
.ntfc-kpi.is-active::before { opacity: 1; }
.ntfc-kpi.k-today { --k: var(--info); }
.ntfc-kpi.k-alert { --k: var(--warning); }
.ntfc-kpi.k-total { --k: var(--text-secondary); }
.ntfc-kpi.k-watch { --k: var(--cat, var(--accent)); }   /* цвет категории «Հայտեր» (класс cat-tickets) */
.ntfc-kpi-ic {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--k);
  background: color-mix(in srgb, var(--k) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 22%, transparent);
}
.ntfc-kpi-ic svg { width: 19px; height: 19px; }
.ntfc-kpi-v {
  font-size: 1.45rem;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.ntfc-kpi-l { font-size: 0.78rem; font-weight: var(--fw-semibold); color: var(--text-tertiary); }

/* Панель: категории + инструменты */
.ntfc-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-card), var(--edge-light);
}
.ntfc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ntfc-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.ntfc-cat:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ntfc-cat.is-active {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--cat, var(--accent)) 15%, var(--bg-surface-2));
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 48%, transparent);
  box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--cat, var(--accent)) 70%, transparent);
}
.ntfc-cat-n {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--text-tertiary);
  background: var(--bg-surface-3);
  font-variant-numeric: tabular-nums;
}
.ntfc-cat.is-active .ntfc-cat-n { color: var(--text-primary); background: color-mix(in srgb, var(--cat, var(--accent)) 22%, var(--bg-surface-3)); }
.ntfc-cat-u {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.64rem;
  font-weight: var(--fw-bold);
  color: var(--text-on-accent);
  background: var(--accent);
}
.ntfc-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.ntfc-search { position: relative; flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; }
.ntfc-search-ic { position: absolute; left: 11px; display: inline-flex; color: var(--text-tertiary); pointer-events: none; }
.ntfc-search-ic svg { width: 15px; height: 15px; }
.ntfc-search-in {
  width: 100%;
  height: 36px;
  padding: 0 34px;
  border-radius: 10px;
  border: var(--border-base) solid var(--border-default);
  background: var(--bg-input);
  box-shadow: var(--shadow-inset);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ntfc-search-in::placeholder { color: var(--text-muted); }
.ntfc-search-in:hover { border-color: var(--border-strong); }
.ntfc-search-in:focus { border-color: var(--accent); box-shadow: var(--ring); }
.ntfc-search-in::-webkit-search-cancel-button { display: none; }
.ntfc-search-x {
  position: absolute;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--text-tertiary);
}
.ntfc-search-x svg { width: 13px; height: 13px; }
.ntfc-search-x:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.ntfc-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}
.ntfc-seg-o {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.ntfc-seg-o:hover { color: var(--text-primary); }
.ntfc-seg-o.is-active { background: var(--bg-surface-3); color: var(--text-primary); box-shadow: var(--shadow-sm), var(--edge-light); }
.ntfc-tgl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 9px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.ntfc-tgl:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ntfc-tgl-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  color: transparent;
}
.ntfc-tgl-box svg { width: 12px; height: 12px; }
.ntfc-tgl.is-on { color: var(--text-primary); border-color: var(--border-accent); background: var(--accent-soft); }
.ntfc-tgl.is-on .ntfc-tgl-box { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.ntfc-tgl.is-alert.is-on { border-color: color-mix(in srgb, var(--warning) 45%, transparent); background: var(--warning-soft); }
.ntfc-tgl.is-alert.is-on .ntfc-tgl-box { background: var(--warning); border-color: var(--warning); color: #1a1205; }
.ntfc-grow { flex: 1 1 auto; }
.ntfc-bulk-b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--surface-gradient-2);
  box-shadow: var(--edge-light);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.ntfc-bulk-b svg { width: 15px; height: 15px; }
.ntfc-bulk-b:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ntfc-bulk-b.is-danger:hover { color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.ntfc-bulk-b.is-accent { color: var(--accent-bright); border-color: var(--border-accent); background: var(--accent-soft); }
.ntfc-bulk-b.is-accent:hover { color: var(--text-primary); }
.ntfc-bulk-b:disabled { opacity: 0.45; cursor: not-allowed; }

/* Полоса «новое оповещение» над лентой */
.ntfc-live {
  position: sticky;
  top: calc(var(--topbar-height) + 8px);
  z-index: 5;
  display: flex;
  justify-content: center;
  height: 0;
  overflow: visible;
}
.ntfc-live[hidden] { display: none; }
.ntfc-live-b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  color: var(--accent-bright);
  font: inherit;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  cursor: pointer;
  animation: ntfcLiveIn 0.3s var(--ease-out-soft) both;
}
.ntfc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ntfPulseDot 1.6s ease-in-out infinite; }
@keyframes ntfcLiveIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ntfPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Лента страницы */
.ntfc-list { display: flex; flex-direction: column; gap: 8px; }
.ntfc-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--text-tertiary);
}
.ntfc-day:first-child { margin-top: 0; }
.ntfc-day::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border-subtle); }
.ntfc-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px 16px 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-sm), var(--edge-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), opacity 0.25s ease, transform 0.25s ease;
}
.ntfc-item[data-ntf-link] { cursor: pointer; }
.ntfc-item:hover { border-color: color-mix(in srgb, var(--cat, var(--accent)) 34%, var(--border-default)); box-shadow: var(--shadow-md), var(--edge-light); }
.ntfc-item.is-unread {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border-default));
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 8%, var(--bg-surface)) 0%, var(--bg-surface) 55%);
}
.ntfc-item.is-gone { opacity: 0; transform: translateX(16px); }
.ntfc-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}
.ntfc-item.sev-success::before { background: var(--success); }
.ntfc-item.sev-warning::before { background: var(--warning); }
.ntfc-item.sev-danger::before { background: var(--danger); }
.ntfc-item .ntf-dot { top: 10px; left: 51px; }
.ntfc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ntfc-row1 { display: flex; align-items: baseline; gap: 12px; }
.ntfc-ttl {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--text-primary);
  text-decoration: none;
  word-break: break-word;
}
a.ntfc-ttl:hover { color: var(--accent-bright); }
.ntfc-item.is-unread .ntfc-ttl { font-weight: var(--fw-bold); }
.ntfc-item.is-silent .ntfc-ttl { font-weight: var(--fw-medium); color: var(--text-secondary); }
.ntfc-time { flex-shrink: 0; font-size: 0.76rem; color: var(--text-tertiary); }
.ntfc-txt { font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary); word-break: break-word; }
.ntfc-row3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ntfc-chip {
  --cc: var(--cat, var(--text-tertiary));
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 22%, transparent);
  white-space: nowrap;
}
.ntfc-chip.is-danger { --cc: var(--danger-text); }
.ntfc-chip.is-warning { --cc: var(--warning-text); }
.ntfc-chip.is-success { --cc: var(--success-text); }
.ntfc-chip.is-muted { --cc: var(--text-tertiary); }
.ntfc-acts { display: inline-flex; align-items: center; gap: 6px; }
.ntfc-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.74rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.ntfc-act svg { width: 13px; height: 13px; }
.ntfc-act:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ntfc-act.is-open { color: var(--accent-bright); border-color: var(--border-accent); background: var(--accent-soft); }
.ntfc-act.is-open:hover { color: var(--text-primary); }
.ntfc-act.is-del { width: 28px; padding: 0; justify-content: center; }
.ntfc-act.is-del:hover { color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.ntfc-act:disabled { opacity: 0.5; cursor: progress; }
.ntfc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 46px 20px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
  background: var(--surface-gradient);
  text-align: center;
}
.ntfc-empty-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--accent-bright);
  background: var(--accent-soft);
}
.ntfc-empty-ic svg { width: 26px; height: 26px; }
.ntfc-empty b { font-size: 0.95rem; color: var(--text-primary); }
.ntfc-empty span { font-size: 0.82rem; color: var(--text-tertiary); }
.ntfc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ntfc-shown { font-size: 0.8rem; color: var(--text-tertiary); }
.ntfc-pager { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ntfc-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.ntfc-pg svg { width: 15px; height: 15px; }
.ntfc-pg:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ntfc-pg.is-active { color: var(--text-on-accent); background: var(--gradient-accent); border-color: transparent; box-shadow: 0 6px 16px -8px var(--accent-glow); }
.ntfc-pg.is-gap { border-color: transparent; background: transparent; min-width: 20px; padding: 0; }
.ntfc-pg.is-off { opacity: 0.35; pointer-events: none; }

/* =====================================================================
   4а. «Հայտեր, որոնց հետևում եք» — категория «Հայտեր» страницы центра: открытые заявки,
       о закрытии которых придёт оповещение (index.html, services/ticket_watch.py mine).
       Рамка блока — цвет категории (--cat), строка — цвет работы заявки (--wc)
   ===================================================================== */
.ntfw {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--cat) 30%, var(--border-default));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--cat) 9%, transparent) 0%, transparent 55%),
    var(--surface-gradient);
  box-shadow: var(--shadow-card), var(--edge-light);
  overflow: hidden;
}
.ntfw::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cat) 80%, transparent), transparent);
}
.ntfw-hd { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ntfw-hd-txt { min-width: 0; }
.ntfw-h2 { margin: 0; font-size: 1.02rem; font-weight: var(--fw-bold); line-height: 1.3; color: var(--text-primary); }
.ntfw-sub { margin: 3px 0 0; max-width: 860px; font-size: 0.8rem; line-height: 1.5; color: var(--text-tertiary); }
.ntfw-warn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--warning-text);
  background: var(--warning-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 28%, transparent);
}
.ntfw-warn > svg { width: 17px; height: 17px; flex-shrink: 0; }
.ntfw-warn > span { flex: 1 1 260px; min-width: 0; }
.ntfw-list { display: flex; flex-direction: column; gap: 8px; }
.ntfw-item {
  --wc: var(--cat);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-default);
  background: linear-gradient(100deg, color-mix(in srgb, var(--wc) 8%, var(--bg-surface)) 0%, var(--bg-surface) 52%);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), opacity 0.25s ease, transform 0.25s ease;
}
.ntfw-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--wc);
  box-shadow: 0 0 8px color-mix(in srgb, var(--wc) 60%, transparent);
}
.ntfw-item:hover { border-color: color-mix(in srgb, var(--wc) 40%, var(--border-default)); box-shadow: var(--shadow-md), var(--edge-light); }
.ntfw-item.is-gone { opacity: 0; transform: translateX(16px); }
.ntfw-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--wc);
  background: color-mix(in srgb, var(--wc) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wc) 28%, transparent);
}
.ntfw-ic svg { width: 19px; height: 19px; }
.ntfw-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ntfw-r1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; min-width: 0; }
.ntfw-job {
  font-size: 0.92rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: color-mix(in srgb, var(--wc) 70%, var(--text-primary));
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ntfw-job:hover { text-decoration: underline; }
.ntfw-id { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }
.ntfw-st {
  --sc: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 21px;
  padding: 0 9px 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  color: color-mix(in srgb, var(--sc) 80%, var(--text-primary));
  background: color-mix(in srgb, var(--sc) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 30%, transparent);
}
.ntfw-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 6px var(--sc); }
.ntfw-st.st-new { --sc: #f59e0b; }
.ntfw-st.st-sent { --sc: #a855f7; }
.ntfw-st.st-in_progress { --sc: #0ea5e9; }
.ntfw-st.st-delayed { --sc: #818cf8; }
.ntfw-fil {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--warning-text);
  background: var(--warning-soft);
}
.ntfw-r2,
.ntfw-r3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.ntfw-r2 { font-size: 0.84rem; color: var(--text-secondary); }
.ntfw-r2 b { font-weight: var(--fw-semibold); color: var(--text-primary); }
.ntfw-r2.is-down { flex-wrap: nowrap; align-items: flex-start; gap: 7px; color: var(--warning-text); }
.ntfw-r2.is-down svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.ntfw-r2.is-down > span { flex: 1 1 auto; min-width: 0; }
.ntfw-r3 { font-size: 0.74rem; color: var(--text-tertiary); }
.ntfw-f { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ntfw-f svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-muted); }
.ntfw-r3 .ntfw-f svg { width: 12px; height: 12px; }
.ntfw-acts { display: inline-flex; align-items: center; gap: 6px; }
.ntfc-act.is-off:hover { color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.ntfw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.ntfw-empty-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 13px;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 13%, transparent);
}
.ntfw-empty-ic svg { width: 21px; height: 21px; }
.ntfw-empty b { font-size: 0.9rem; color: var(--text-primary); }
.ntfw-empty span { font-size: 0.8rem; color: var(--text-tertiary); }

/* =====================================================================
   5. Настройки (/notifications/prefs)
   ===================================================================== */
.ntfs-grid { display: grid; gap: 16px; align-items: start; }
.ntfs-grid.has-calls { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.ntfs-grid.no-calls .ntfs-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ntfs-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ntfs-card {
  position: relative;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-card), var(--edge-light);
}
.ntfs-card-hd { margin-bottom: 4px; }
.ntfs-h2 { margin: 0; font-size: 1.02rem; font-weight: var(--fw-bold); color: var(--text-primary); line-height: 1.3; }
.ntfs-card-sub { margin: 4px 0 0; font-size: 0.8rem; color: var(--text-tertiary); line-height: 1.45; }
.ntfs-rows { display: flex; flex-direction: column; }
.ntfs-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
}
.ntfs-row:first-child { border-top: none; }
.ntfs-row.is-dlv .ntf-cat-ico { --ic: var(--accent-bright); }
.ntfs-row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ntfs-row-txt b { font-size: 0.88rem; font-weight: var(--fw-semibold); color: var(--text-primary); }
.ntfs-row-txt > span { font-size: 0.78rem; line-height: 1.45; color: var(--text-tertiary); }
.ntfs-who { font-style: normal; font-size: 0.7rem; font-weight: var(--fw-semibold); color: var(--text-muted); }
.ntfs-who.is-warn { color: var(--warning-text); }
.ntfs-who[hidden] { display: none; }
.ntfs-try {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  height: 24px;
  margin-top: 5px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.ntfs-try svg { width: 10px; height: 10px; }
.ntfs-try:hover { color: var(--text-primary); border-color: var(--border-strong); }

/* «Ո՞վ է զանգում» */
.ntfs-calls { overflow: hidden; scroll-margin-top: calc(var(--topbar-height) + 16px); }
.ntfs-calls::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cat) 80%, transparent), transparent);
  opacity: 0.5;
}
.ntfs-calls.is-on {
  border-color: color-mix(in srgb, var(--cat) 30%, var(--border-default));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--cat) 9%, transparent) 0%, transparent 55%),
    var(--surface-gradient);
}
.ntfs-calls.is-on::before { opacity: 1; }
.ntfs-calls-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.ntfs-calls-hd { min-width: 0; }
.ntfs-calls .ntfs-h2 { font-size: 1.18rem; }
.ntfs-lead { margin: 5px 0 0; max-width: 600px; font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary); }
.ntfs-master { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.ntfs-state {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  color: var(--text-tertiary);
  background: var(--bg-surface-3);
}
.ntfs-calls.is-on .ntfs-state { color: var(--success-text); background: var(--success-soft); }
.ntfs-calls.is-paused .ntfs-state { color: var(--warning-text); background: var(--warning-soft); }
.ntfs-calls-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.ntfs-steps { display: flex; flex-direction: column; gap: 11px; justify-content: center; }
.ntfs-step { display: flex; align-items: flex-start; gap: 11px; font-size: 0.83rem; line-height: 1.45; color: var(--text-secondary); }
.ntfs-step-n {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 28%, transparent);
}
.ntfs-preview-lbl { margin-bottom: 7px; font-size: 0.68rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); color: var(--text-tertiary); }
.ntfs-pp {
  position: relative;
  padding: 12px 13px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ntfs-pp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cat); opacity: 0.85; }
.ntfs-pp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ntfs-pp-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 16%, transparent);
}
.ntfs-pp-ic svg { width: 13px; height: 13px; }
.ntfs-pp-num { font-family: var(--font-mono); font-size: 0.82rem; font-weight: var(--fw-bold); color: var(--text-primary); }
.ntfs-pp-ext { margin-left: auto; font-size: 0.68rem; font-weight: var(--fw-semibold); color: var(--text-tertiary); }
.ntfs-pp-name { font-size: 0.86rem; font-weight: var(--fw-bold); color: var(--text-primary); margin-bottom: 5px; }
.ntfs-pp-row { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--text-secondary); margin-top: 3px; }
.ntfs-pp-row svg { width: 12px; height: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.ntfs-pp-row.is-mono span { font-family: var(--font-mono); }
.ntfs-pp-btn {
  margin-top: 10px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}
.ntfs-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.ntfs-picker-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ntfs-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: var(--fw-bold); color: var(--text-primary); }
.ntfs-lbl-n {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 14%, transparent);
}
.ntfs-picker-sub { font-size: 0.78rem; color: var(--text-tertiary); }
.ntfs-wild {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-surface-2);
}
.ntfs-wild.is-on { border-style: solid; border-color: var(--border-accent); background: var(--accent-soft); }
.ntfs-wild-ic { display: inline-flex; color: var(--accent-bright); }
.ntfs-wild-ic svg { width: 20px; height: 20px; }
.ntfs-wild-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ntfs-wild-txt b { font-size: 0.84rem; color: var(--text-primary); }
.ntfs-wild-txt span { font-size: 0.74rem; color: var(--text-tertiary); }
.ntfs-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--warning-text);
  background: var(--warning-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 28%, transparent);
}
.ntfs-note svg { width: 18px; height: 18px; flex-shrink: 0; }
.ntfs-search { position: relative; display: flex; align-items: center; }
.ntfs-search svg { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.ntfs-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  border: var(--border-base) solid var(--border-default);
  background: var(--bg-input);
  box-shadow: var(--shadow-inset);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
}
.ntfs-search input::placeholder { color: var(--text-muted); }
.ntfs-search input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.ntfs-exts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ntfs-ext {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px 7px 7px;
  border-radius: 11px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.ntfs-ext[hidden] { display: none; }
.ntfs-ext:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ntfs-ext:disabled { opacity: 0.6; cursor: progress; }
.ntfs-ext-n {
  min-width: 46px;
  height: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  background: var(--bg-input);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.ntfs-ext-nm {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  color: var(--text-primary);
}
.ntfs-ext-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntfs-ext-nm em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: var(--fw-bold);
  color: var(--accent-bright);
}
.ntfs-ext-ck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.ntfs-ext-ck svg { width: 12px; height: 12px; }
.ntfs-ext.is-mine { border-style: dashed; border-color: var(--border-accent); }
.ntfs-ext.is-on {
  border-style: solid;
  border-color: color-mix(in srgb, var(--cat) 55%, transparent);
  background: color-mix(in srgb, var(--cat) 10%, var(--bg-surface-2));
}
.ntfs-ext.is-on .ntfs-ext-n { color: var(--cat); background: color-mix(in srgb, var(--cat) 16%, var(--bg-input)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 35%, transparent); }
.ntfs-ext.is-on .ntfs-ext-ck { background: var(--cat); border-color: var(--cat); color: #fff; }
[data-theme="light-pearl"] .ntfs-ext.is-on .ntfs-ext-ck { color: #fff; }
.ntfs-exts-empty { padding: 14px; text-align: center; font-size: 0.82rem; color: var(--text-tertiary); }
.ntfs-exts-empty[hidden] { display: none; }
.ntfs-calls-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.ntfs-calls-foot .btn svg { width: 15px; height: 15px; }

/* =====================================================================
   6. Экран поуже: планшет и телефон
   ===================================================================== */
@media (max-width: 1180px) {
  .ntfs-grid.has-calls { grid-template-columns: minmax(0, 1fr); }
  .ntfs-grid.has-calls .ntfs-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
}
@media (max-width: 920px) {
  .ntfc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntfc-kpi.k-watch { grid-column: 1 / -1; }
  .ntfs-grid.has-calls .ntfs-side, .ntfs-grid.no-calls .ntfs-side { grid-template-columns: minmax(0, 1fr); }
  .ntfs-calls-body { grid-template-columns: minmax(0, 1fr); }
  .ntfs-preview { max-width: 320px; }
}
@media (max-width: 720px) {
  .ntfc { gap: 12px; }
  .ntfc-logo { width: 42px; height: 42px; border-radius: 12px; }
  .ntfc-h1 { font-size: var(--fs-lg); }
  .ntfc-sub { font-size: 0.8rem; }
  .ntfc-kpi { padding: 12px; column-gap: 10px; }
  .ntfc-kpi-ic { width: 36px; height: 36px; }
  .ntfc-kpi-v { font-size: 1.2rem; }
  .ntfc-head-acts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntfc-head-acts .ntfc-bulk-b { justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }
  .ntfc-head-acts .ntfc-bulk-b.is-accent { grid-column: 1 / -1; }
  .ntfs .ntfc-head-acts { display: flex; }
  .ntfc-tgl { flex: 1 1 0; justify-content: center; }
  .ntfc-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
  .ntfc-cats::-webkit-scrollbar { display: none; }
  .ntfc-search { flex: 1 1 100%; max-width: none; }
  .ntfc-seg { flex: 1 1 100%; }
  .ntfc-seg-o { flex: 1 1 0; justify-content: center; padding: 0 6px; }
  .ntfc-grow { display: none; }
  .ntfc-item { padding: 12px; gap: 11px; }
  .ntfc-item .ntf-cat-ico.is-lg { width: 36px; height: 36px; }
  .ntfc-item .ntf-dot { left: 41px; top: 8px; }
  .ntfc-row1 { flex-direction: column; gap: 2px; }
  .ntfc-acts { width: 100%; margin-top: 4px; }
  .ntfc-act.is-open { flex: 1 1 auto; justify-content: center; }
  .ntfw { padding: 14px; }
  .ntfw-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .ntfw-ic { width: 36px; height: 36px; border-radius: 11px; }
  .ntfw-acts { grid-column: 1 / -1; }
  .ntfw-acts .ntfc-act { flex: 1 1 0; justify-content: center; height: 34px; }
  .ntfs-card { padding: 16px; }
  .ntfs-calls-hero { grid-template-columns: auto minmax(0, 1fr); }
  .ntfs-master { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--bg-surface-2); }
  .ntf-cat-ico.is-xl { width: 46px; height: 46px; border-radius: 13px; }
  .ntfs-exts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ntf-menu {
    position: fixed;
    top: calc(var(--topbar-height) + 6px);
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
  }
  .ntfd-list { max-height: calc(100vh - var(--topbar-height) - 230px); }
}
@media (hover: none) {
  .ntfd-x { color: var(--text-tertiary); }
}

/* =====================================================================
   7. Светлая тема (light-pearl)
   Переключатель — белая ручка на светлой дорожке; вкладки окна и сегменты
   страницы — дорожка темнее, выбранное — белая плашка с тенью; значки цифр —
   в чернилах (янтарный значок .k-alert на белом иначе не читается); у полей
   поиска рамка видна сразу. Цвета категорий светлой темы — в секции 1.
   :where() не добавляет веса.
   ===================================================================== */
:where(html[data-theme="light-pearl"]) .ntf-switch {
  background: #dfe4ee;
  border-color: rgba(16, 24, 48, 0.10);
}
:where(html[data-theme="light-pearl"]) .ntf-switch::after {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 48, 0.28);
}
:where(html[data-theme="light-pearl"]) .ntf-switch.is-on {
  box-shadow: 0 4px 10px -4px var(--accent-glow);
}
:where(html[data-theme="light-pearl"]) .ntf-switch:focus-visible {
  box-shadow: var(--ring-strong);
}
:where(html[data-theme="light-pearl"]) .ntfd-tabs,
:where(html[data-theme="light-pearl"]) .ntfc-seg {
  background: var(--bg-surface-3);
  border-color: transparent;
}
:where(html[data-theme="light-pearl"]) .ntfd-tab.is-active,
:where(html[data-theme="light-pearl"]) .ntfc-seg-o.is-active {
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 48, 0.12), 0 1px 1px rgba(16, 24, 48, 0.04);
}
:where(html[data-theme="light-pearl"]) .ntfc-kpi-ic {
  color: color-mix(in oklab, var(--k) 78%, #0b1020);
}
:where(html[data-theme="light-pearl"]) .ntfc-search-in,
:where(html[data-theme="light-pearl"]) .ntfs-search input {
  border-color: var(--border-input);
}
/* «Հայտեր, որոնց հետևում եք»: название работы, значок и статус — глубокими тонами на белом */
:where(html[data-theme="light-pearl"]) .ntfw-job { color: color-mix(in oklab, var(--wc) 66%, #0b1020); }
:where(html[data-theme="light-pearl"]) .ntfw-ic { color: color-mix(in oklab, var(--wc) 72%, #0b1020); }
:where(html[data-theme="light-pearl"]) .ntfw-st { color: color-mix(in oklab, var(--sc) 62%, #0b1020); }
:where(html[data-theme="light-pearl"]) .ntfw-item { background: linear-gradient(100deg, color-mix(in srgb, var(--wc) 6%, #ffffff) 0%, #ffffff 52%); }
