/* ══════════════════════════════════════════════════════════════
   ВСЕ СВОИ — ДИЗАЙН-СИСТЕМА ОТДЕЛА ИТ
   Цвета: Корпоративный сапфир #003D7C, глубокая глубина #001a35
   Текст: Мягкий светло-серый #cbd5e1 / #e2e8f0 (без едкого белого)
   Эффекты: Матовое «жидкое стекло», 3D-кнопки с зеркальной фаской
══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  /* Базовый фон страницы и подложек (глубокий темный сапфир/обсидиан) */
  --bg:          #070e1b;
  --bg-dark:     #040912;
  --s1:          rgba(255, 255, 255, 0.05);
  --s2:          rgba(255, 255, 255, 0.08);
  --s3:          rgba(255, 255, 255, 0.12);
  --card-inner:  rgba(10, 18, 32, 0.65);
  
  /* Границы и разделители */
  --border:       rgba(255, 255, 255, 0.08);
  --bd2:          rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.22);
  --divider:      rgba(255, 255, 255, 0.06);

  /* Корпоративные сапфировые цвета */
  --blue:        #0060A8;
  --blue-hover:  #0072C6;
  --cyan:        #38bdf8;
  --cyan2:       #0ea5e9;
  --cyan3:       #7dd3fc;
  --amber:       #f59e0b;
  --amb2:        #fbbf24;

  /* Статусные индикаторы */
  --ok:          #10b981;
  --ok-text:     #34d399;
  --warn:        #f59e0b;
  --danger:      #ef4444;
  --danger-text: #f87171;
  --info:        #38bdf8;

  /* ТЕКСТ: ИСКЛЮЧИТЕЛЬНО МЯГКИЙ СВЕТЛО-СЕРЫЙ (БЕЗ РЕЗКОГО БЕЛОГО) */
  --txt:         #cbd5e1;       /* Основной текст для комфортного чтения */
  --txt-bright:  #e2e8f0;       /* Заголовки и имена */
  --muted:       #94a3b8;       /* Второстепенная информация */
  --muted2:      #64748b;       /* Метки и деактивированные элементы */

  /* Скругления и размеры */
  --r:    18px;
  --r2:   12px;
  --r3:   8px;
  --wrap: 1240px;               /* Полноценная ширина десктопного веб-дашборда */
  --hdr:  76px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overscroll-behavior-y: none;
  color-scheme: dark !important;
  forced-color-adjust: none !important;
}

body {
  color-scheme: dark !important;
  forced-color-adjust: none !important;
  background-color: #070e1b;
  background: transparent;
  color: var(--txt);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* ════════ ИНТЕРАКТИВНЫЙ ЖИВОЙ CANVAS-ФОН ════════ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* ════════ МАТОВОЕ СТЕКЛО (FROSTED GLASS) ════════ */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 18, 32, 0.72) 100%) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.10),
    0 10px 28px -4px rgba(2, 6, 16, 0.55) !important;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}

/* ════════ LAYOUT КОНТЕЙНЕРА ════════ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
@media (max-width: 680px) {
  .wrap {
    padding: 0 14px;
  }
}

.main {
  padding-top: 14px;
}

/* ════════ ШАПКА БРЕНДА ════════ */
.header-top-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 10px;
}
.top-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 8px 24px 8px 16px;
  box-shadow: 0 8px 32px rgba(0, 30, 70, 0.40);
}
.top-brand-owl,
.top-brand-flame {
  height: 28px;
  width: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 114, 206, 0.55));
}
.top-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #ffffff;
  text-transform: uppercase;
}

.profile-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 18, 32, 0.72) 100%) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 20px !important;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.10),
    0 10px 28px -4px rgba(2, 6, 16, 0.55) !important;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.avatar-wrap:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.avatar-wrap svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.75);
}
.online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #07101e;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.profile-sub-tag {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.profile-role {
  font-size: 0.80rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.notif-bell-btn,
.icon-btn-round {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.notif-bell-btn:hover,
.icon-btn-round:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
.notif-bell-btn svg,
.icon-btn-round svg {
  width: 20px;
  height: 20px;
}
.notif-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
  border: 2px solid #07101e;
}

/* ════════ ПЛАШКА PWA ════════ */
.pwa-install-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}
.pwa-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pwa-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.pwa-icon-box svg {
  width: 22px;
  height: 22px;
}
.pwa-text-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt-bright);
}
.pwa-text-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
.pwa-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-pwa-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  line-height: 1;
}
.btn-pwa-close:hover {
  color: var(--txt);
}

/* ════════ СЕКЦИЯ 1: СЕРВИСЫ ОБЕСПЕЧЕНИЯ ════════ */
.section-meta-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-label-h2 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-sub-branch {
  font-size: 0.76rem;
  color: var(--muted2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ════════ СЕКЦИЯ: СЕРВИСЫ ОБЕСПЕЧЕНИЯ (LIQUID GLASS БЛОКИ В СТИЛЕ РАСКАТ) ════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 899px) {
  .section-meta-head,
  .services-grid {
    display: none !important;
  }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.service-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
  cursor: pointer !important;
  user-select: none !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 18, 32, 0.75) 100%) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px -6px rgba(2, 6, 16, 0.55) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease !important;
  text-decoration: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
}

.service-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    0 16px 36px -6px rgba(0, 0, 0, 0.60) !important;
}

.service-card:active {
  transform: scale(0.98) !important;
}

.service-card.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(12, 24, 44, 0.82) 100%) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  border-top-color: rgba(56, 189, 248, 0.70) !important;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 0 22px rgba(0, 114, 206, 0.25) !important;
}

.service-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.service-icon-box {
  width: 58px !important;
  height: 58px !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.20) !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}

.service-card:hover .service-icon-box {
  transform: scale(1.05) !important;
}

.service-icon-box.glow-cyan    { border-color: rgba(56, 189, 248, 0.40) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(56, 189, 248, 0.25) !important; }
.service-icon-box.glow-emerald { border-color: rgba(52, 211, 153, 0.40) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(52, 211, 153, 0.25) !important; }
.service-icon-box.glow-sky     { border-color: rgba(14, 165, 233, 0.40) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(14, 165, 233, 0.25) !important; }
.service-icon-box.glow-amber   { border-color: rgba(245, 158, 11, 0.40) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(245, 158, 11, 0.25) !important; }
.service-icon-box.glow-purple  { border-color: rgba(168, 85, 247, 0.40) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(168, 85, 247, 0.25) !important; }
.service-icon-box.glow-blue    { border-color: rgba(0, 114, 206, 0.50) !important;  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 18px rgba(0, 114, 206, 0.30) !important; }

.service-icon-box svg {
  width: 44px !important;
  height: 44px !important;
  display: block !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45)) !important;
  pointer-events: none !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover .service-icon-box svg {
  transform: scale(1.06) !important;
}

.service-corner-icon {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) !important;
  pointer-events: none !important;
}

.service-status-chip {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.service-status-chip.online {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.30) !important;
}

.service-status-chip.active {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.30) !important;
}

.service-status-chip .status-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  box-shadow: 0 0 6px currentColor !important;
}

.service-content h3 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.01em !important;
}

.service-content p {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
}

.service-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.service-port {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--muted2) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.service-open-btn {
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  color: var(--cyan) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
}

.service-card:hover .service-open-btn {
  gap: 7px !important;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .service-card {
    padding: 14px 14px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
  .service-icon-box {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
  }
  .service-icon-box svg {
    width: 38px !important;
    height: 38px !important;
  }
  .service-content h3 {
    font-size: 0.95rem !important;
  }
  .service-content p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
  .service-footer {
    padding-top: 8px !important;
  }
}

/* ════════ СЕКЦИЯ 2: ОПЕРАТИВНЫЙ КОНТРОЛЬ • ОНЛАЙН ════════ */
.op-control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.live-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-online-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399, 0 0 16px rgba(52, 211, 153, 0.5);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ════════ ВКЛАДКИ КОНТЕНТА ════════ */
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ════════ БАННЕР ДЕЖУРНОГО ТС ════════ */
.duty-banner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 18, 32, 0.75) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 10px 28px -4px rgba(2, 6, 16, 0.55) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
}
.duty-banner.is-delegated {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(14, 26, 48, 0.80) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.duty-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.duty-avatar-box {
  width: 58px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duty-avatar-3d {
  width: 58px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.duty-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.duty-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.duty-banner-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.35;
}
.btn-duty-vacation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(20, 32, 52, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.25);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  flex-shrink: 0;
}
.btn-duty-vacation:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(30, 48, 76, 0.82) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  border-top-color: rgba(56, 189, 248, 0.7);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 20px rgba(0, 114, 206, 0.3);
  transform: translateY(-1.5px);
  color: #ffffff;
}
.btn-duty-vacation:active {
  transform: scale(0.96);
}

@media (max-width: 680px) {
  .duty-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 14px 16px !important;
  }
  .duty-banner-left {
    width: 100% !important;
  }
  .btn-duty-vacation {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ════════ БЫСТРЫЕ ФИЛЬТРЫ ДАТ ════════ */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
/* АКТИВНЫЙ ЧИП (ОРГПОМОЩНИК — МАТОВОЕ СТЕКЛО БЕЗ ЕДКОГО СИНЕГО) */
.chip.active {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.40) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 16px rgba(0, 30, 70, 0.35) !important;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt);
}

/* ════════ КАРТОЧКИ МЕРОПРИЯТИЙ (ГАРМОНИЧНАЯ СЕТКА) ════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.m-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 18, 32, 0.75) 100%) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.10),
    0 10px 28px -4px rgba(2, 6, 16, 0.55) !important;
}
.m-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.45);
}

.m-card.is-live {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.22) !important;
}
.m-card.is-past {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.m-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.m-date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cyan);
}
.tag-ts-req {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.s-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sb-new       { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.sb-moved     { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.35); }
.sb-assigned  { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.sb-done      { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.sb-cancelled { background: rgba(239, 68, 68, 0.14);  color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }
.sb-live      { background: rgba(239, 68, 68, 0.2);   color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); font-weight: 800; animation: pulseLive 2s infinite; }
.sb-past      { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.m-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.m-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--txt);
}
.m-meta-item strong {
  color: var(--txt-bright);
}

.m-divider {
  height: 1px;
  background: var(--divider);
  margin: 12px 0;
}

.m-conducted {
  background: var(--card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.m-conducted-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  display: block;
}
.m-conducted-names {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.4;
}

.m-details-wrap {
  margin-bottom: 12px;
}
.m-details {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-details.expanded {
  -webkit-line-clamp: unset;
}
.m-expand {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

/* Назначенный инженер */
.ts-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 9px 12px;
  margin-bottom: 12px;
}
.ts-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.ts-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ts-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ts-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt-bright);
}

/* Кнопка подтверждения готовности ТС (эскалация 60м -> 50м -> 45м) */
.readiness-block {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(0, 119, 255, 0.25);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.readiness-block.is-confirmed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.readiness-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt);
}
.btn-confirm-ready {
  background: linear-gradient(135deg, var(--ok), #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-confirm-ready:hover {
  filter: brightness(1.1);
}

/* ════════ КАНБАН-ДОСКА (ВКЛАДКА ЗАДАЧИ) ════════ */
.kanban-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.kanban-col {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}
.kanban-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--txt-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kanban-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--s2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
}

.task-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.task-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.task-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--txt-bright);
  line-height: 1.35;
}
.task-time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.task-details {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}
.task-assignee {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
}
.task-status-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* ════════ ЧАТ ════════ */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 400px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}
.chat-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}
.chat-date-separator {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.chat-date-separator span {
  background: var(--s2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 12px;
  border-radius: 999px;
}
.msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.msg-row.mine {
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.msg-bubble {
  max-width: 75%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 14px 6px;
}
.msg-row.mine .msg-bubble {
  background: rgba(0, 119, 255, 0.18);
  border-color: rgba(0, 119, 255, 0.4);
  border-radius: 14px 14px 4px 14px;
}
.msg-author {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 2px;
}
.msg-text {
  font-size: 0.88rem;
  color: var(--txt);
  line-height: 1.45;
}
.msg-time {
  font-size: 0.7rem;
  color: var(--muted2);
  margin-top: 4px;
  text-align: right;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.chat-input {
  flex: 1;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--txt);
  font: 0.9rem var(--font);
  padding: 10px 14px;
  outline: none;
}
.chat-input:focus {
  border-color: var(--cyan);
}

/* ════════ ПЛАВАЮЩИЙ НИЖНИЙ ДОК (ПАРЯЩАЯ КАПСУЛА ОРГПОМОЩНИКА) ════════ */
.bottom-dock-spacer {
  height: 120px;
  width: 100%;
  pointer-events: none;
}

@media (min-width: 900px) {
  .bottom-dock, .bottom-dock-spacer {
    display: none !important;
  }
  body {
    padding-bottom: 24px !important;
  }
}

@media (display-mode: standalone) {
  .bottom-dock {
    display: flex !important;
  }
  .bottom-dock-spacer {
    display: block !important;
    height: 120px !important;
  }
}

@media (max-width: 899px) {
  .tab-pane {
    padding-bottom: 130px !important;
  }
}

.bottom-dock {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.30) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 9999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 30, 70, 0.40) !important;
  z-index: 500;
  max-width: calc(100vw - 28px);
}

.dock-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.dock-pill svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease, stroke-width 0.2s ease;
}
.dock-pill span {
  display: none;
}
.dock-pill:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}
.dock-pill:active {
  transform: scale(0.92);
}
.dock-pill.active {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 4px 16px rgba(0, 30, 70, 0.35) !important;
  padding: 0 20px;
}
.dock-pill.active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.4 !important;
}
.dock-pill.active span {
  display: inline-block;
  margin-left: 4px;
  color: #ffffff !important;
  font-weight: 800;
}

/* ════════ КНОПКИ (ПРЕМИАЛЬНЫЙ ДИЗАЙН БЕЗ СИНИХ РАМОК) ════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 0.82rem/1 var(--font);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Премиальная объемная CTA кнопка */
.btn-primary, .btn-cyan {
  background: linear-gradient(to bottom, #008AE6 0%, #0060A8 100%) !important;
  border: 1px solid transparent !important;
  border-top-color: rgba(255, 255, 255, 0.30) !important;
  box-shadow:
    0 6px 20px rgba(0, 72, 153, 0.50),
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 10px 18px;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover:not(:disabled), .btn-cyan:hover:not(:disabled) {
  background: linear-gradient(to bottom, #18A0F5 0%, #0072C6 100%) !important;
  box-shadow:
    0 8px 24px rgba(0, 90, 180, 0.60),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled), .btn-cyan:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    0 2px 10px rgba(0, 72, 153, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* Матовое стекло кнопок */
.btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: var(--txt) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  padding: 8px 14px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--txt-bright) !important;
  transform: translateY(-1px);
}

.btn-outline-cyan {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: var(--cyan) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: 7px 12px;
}
.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

.btn-ready-confirmed {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2) !important;
  cursor: default !important;
}

.escalation-alert-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.06) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--r2);
  padding: 12px 16px;
  margin-bottom: 14px;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }
  50% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.45); }
}

.btn-xs { padding: 5px 10px; font-size: 0.76rem; border-radius: 8px; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ════════ МОДАЛЬНЫЕ ОКНА ════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--txt-bright);
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.who-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.who-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 10px 14px;
  cursor: pointer;
  color: var(--txt);
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}
.who-btn:hover {
  border-color: var(--border-hover);
  background: var(--s3);
  color: var(--txt-bright);
}

.who-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--s1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
}
.who-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.who-handle {
  font-size: 0.76rem;
  color: var(--muted);
}

.input-text {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--txt);
  font: 0.9rem var(--font);
  padding: 10px 14px;
  outline: none;
}
.input-text:focus {
  border-color: var(--cyan);
}

/* ════════ ЦЕНТР УВЕДОМЛЕНИЙ (DRAWER / MODAL) ════════ */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  max-height: 360px;
  overflow-y: auto;
}
.notif-item {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notif-item.unread {
  border-color: rgba(0, 119, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.08) 0%, var(--s2) 100%);
}
.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt-bright);
}
.notif-body {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.notif-time {
  font-size: 0.7rem;
  color: var(--muted2);
  margin-top: 4px;
}

/* ════════ SKELETON & EMPTY ════════ */
.skel {
  background: linear-gradient(90deg, var(--s1) 25%, var(--s2) 50%, var(--s1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.empty-ico {
  font-size: 42px;
  margin-bottom: 12px;
}

/* ════════ TOAST ════════ */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--s2);
  color: var(--txt-bright);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.84rem;
  font-weight: 700;
  max-width: 90vw;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
