/* Yoonix messenger styles for MES/HRM */
.chat-messenger {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  min-height: calc(100vh - 9.5rem);
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(58, 110, 194, 0.28);
  background:
    linear-gradient(165deg, rgba(8, 18, 44, 0.96), rgba(4, 10, 28, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.chat-messenger__sidebar {
  border-right: 1px solid rgba(58, 110, 194, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.55), rgba(6, 14, 34, 0.35));
}

.chat-messenger__sidebar-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
}

.chat-messenger__sidebar-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0f6ff;
}

.chat-messenger__title-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
  flex-shrink: 0;
}

.chat-messenger__search {
  padding: 0 1rem 0.75rem;
  margin: 0;
}

.chat-messenger__search input {
  width: 100%;
  padding: 0.62rem 0.85rem 0.62rem 2.35rem;
  border-radius: 12px;
  border: 1px solid rgba(58, 110, 194, 0.32);
  background:
    rgba(4, 10, 26, 0.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238fa8d8' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E")
    no-repeat 0.75rem center;
  color: #eef4ff;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-messenger__search input:focus {
  outline: none;
  border-color: rgba(106, 158, 240, 0.65);
  box-shadow: 0 0 0 3px rgba(58, 110, 194, 0.2);
}

.chat-conversations {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.9rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 158, 240, 0.45) transparent;
}

.chat-conversations::-webkit-scrollbar {
  width: 6px;
}

.chat-conversations::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(106, 158, 240, 0.35);
}

.chat-conversations__empty {
  padding: 1.25rem 0.65rem;
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: #8fa7d0;
}

.chat-messenger__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(99, 102, 241, 0.08), transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(37, 99, 235, 0.07), transparent 38%),
    rgba(4, 10, 28, 0.35);
}

.chat-messenger__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.75rem;
  gap: 0.55rem;
}

.chat-messenger__empty-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(106, 158, 240, 0.28);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.16);
  position: relative;
}

.chat-messenger__empty-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.65rem;
  height: 1.35rem;
  border-radius: 0.55rem;
  border: 2px solid rgba(191, 219, 254, 0.85);
  box-shadow: inset 0 -0.35rem 0 rgba(191, 219, 254, 0.15);
}

.chat-messenger__empty-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  width: 0;
  height: 0;
  transform: translateX(-35%);
  border-left: 0.45rem solid transparent;
  border-right: 0.45rem solid transparent;
  border-top: 0.55rem solid rgba(191, 219, 254, 0.75);
}

.chat-messenger__empty h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #eef4ff;
}

.chat-messenger__empty p {
  max-width: 22rem;
  line-height: 1.5;
}

.chat-messenger__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-messenger__unread-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.chat-messenger__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.65rem;
}

.chat-filter {
  border: 1px solid rgba(58, 110, 194, 0.28);
  background: rgba(6, 15, 38, 0.55);
  color: #a8bee8;
  border-radius: 999px;
  padding: 0.32rem 0.78rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.chat-filter:hover {
  border-color: rgba(106, 158, 240, 0.45);
  color: #e8f1ff;
}

.chat-filter--active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(124, 58, 237, 0.45));
  color: #fff;
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.22);
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(58, 110, 194, 0.32);
  background: rgba(6, 15, 38, 0.72);
  color: #dbeafe;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-action-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(106, 158, 240, 0.48);
  transform: translateY(-1px);
}

.chat-action-btn--accent {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: rgba(147, 197, 253, 0.35);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.chat-action-btn--wide {
  margin: 0 1rem 0.65rem;
  width: calc(100% - 2rem);
  padding: 0.55rem 0.9rem;
  border-style: dashed;
  border-color: rgba(106, 158, 240, 0.35);
  background: rgba(8, 20, 48, 0.45);
  color: #c8daf8;
}

.chat-action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
}

.chat-filter--todo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-thread__back {
  display: none;
  border: none;
  background: rgba(58, 110, 194, 0.2);
  color: #c8dcff;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-right: 0.15rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .chat-messenger {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    min-height: 28rem;
  }
  .chat-messenger__sidebar {
    border-right: none;
    border-bottom: none;
    max-height: none;
  }
  .chat-messenger--thread .chat-messenger__sidebar {
    display: none;
  }
  .chat-messenger--thread .chat-messenger__main {
    grid-row: 1 / -1;
  }
  .chat-messenger:not(.chat-messenger--thread) .chat-messenger__main {
    display: none;
  }
  .chat-thread__back {
    display: inline-flex;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] { display: none; }

.modal__box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__box:has(.searchable-select.is-open) {
.modal__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-messenger__thread-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(58, 110, 194, 0.22);
  background: rgba(8, 20, 48, 0.55);
  backdrop-filter: blur(8px);
}

.chat-thread__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(90, 157, 255, 0.45);
  flex-shrink: 0;
}

.chat-thread__avatar--ph {
  display: grid;
  place-items: center;
  background: rgba(12, 32, 72, 0.95);
  color: #9eb8e8;
  font-weight: 700;
  font-size: 1rem;
}

.chat-thread__info {
  min-width: 0;
}

.chat-messenger__thread-head h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-thread__id {
  display: block;
  font-size: 0.8rem;
  color: #9eb8e8;
  margin-top: 0.1rem;
}

.chat-messenger__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(58, 110, 194, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(90, 157, 255, 0.06), transparent 40%);
}

.chat-messages__empty {
  margin: auto;
  text-align: center;
}

.chat-conv {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  margin: 0;
  border: 1px solid rgba(58, 110, 194, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(12, 26, 58, 0.88), rgba(8, 16, 38, 0.72));
  color: #eef4ff;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

.chat-conv:hover {
  background:
    linear-gradient(145deg, rgba(18, 38, 82, 0.95), rgba(10, 22, 52, 0.82));
  border-color: rgba(106, 158, 240, 0.32);
  box-shadow: 0 8px 22px rgba(15, 40, 90, 0.22);
  transform: translateY(-1px);
}

.chat-conv--active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(88, 28, 135, 0.18));
  border-color: rgba(147, 197, 253, 0.42);
  box-shadow:
    inset 3px 0 0 #60a5fa,
    0 8px 24px rgba(37, 99, 235, 0.2);
}

.chat-conv--unread {
  border-color: rgba(96, 165, 250, 0.38);
  background:
    linear-gradient(145deg, rgba(16, 36, 78, 0.96), rgba(10, 24, 56, 0.86));
}

.chat-conv--unread .chat-conv__name {
  color: #fff;
}

.chat-conv--unread .chat-conv__preview {
  color: #dbeafe;
  font-weight: 500;
}

.chat-conv__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-conv__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(147, 197, 253, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.chat-conv__avatar--ph,
.chat-conv__avatar--group {
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      hsl(var(--conv-hue, 220) 62% 48%),
      hsl(calc(var(--conv-hue, 220) + 36) 58% 34%)
    );
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chat-conv__online,
.chat-conv__offline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(6, 15, 38, 0.9);
}

.chat-conv__online {
  background: #3dd68c;
}

.chat-conv__offline {
  background: #6b7f9e;
}

.chat-conv__main {
  flex: 1;
  min-width: 0;
}

.chat-conv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-conv__name,
.chat-conv strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5ff;
}

.chat-conv__role {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  color: #b6c9ee;
  margin-top: 0.12rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(58, 110, 194, 0.16);
  border: 1px solid rgba(106, 158, 240, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.chat-conv__preview {
  font-size: 0.78rem;
  color: #a8bee8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-conv__time {
  font-size: 0.7rem;
  color: #7a94c4;
  flex-shrink: 0;
}

.chat-conv__badge {
  flex-shrink: 0;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.45);
}

.chat-date-sep {
  display: flex;
  justify-content: center;
  margin: 0.55rem 0;
}

.chat-date-sep span {
  font-size: 0.72rem;
  color: #9eb8e8;
  background: rgba(12, 32, 72, 0.75);
  border: 1px solid rgba(58, 110, 194, 0.25);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row--out {
  justify-content: flex-end;
}

.chat-bubble-row--in {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: min(78%, 28rem);
  padding: 0.38rem 0.55rem 0.3rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.35;
  position: relative;
}

.chat-bubble--out {
  background: linear-gradient(135deg, rgba(45, 95, 180, 0.95), rgba(58, 110, 194, 0.85));
  border-bottom-right-radius: 4px;
  color: #f0f6ff;
}

.chat-bubble--in {
  background: rgba(12, 32, 72, 0.92);
  border: 1px solid rgba(47, 79, 138, 0.65);
  border-bottom-left-radius: 4px;
  color: #e8f1ff;
}

.chat-bubble__text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.chat-bubble__footer time {
  font-size: 0.66rem;
  opacity: 0.75;
}

.chat-bubble__ticks {
  font-size: 0.68rem;
  opacity: 0.8;
  letter-spacing: -0.12em;
}

.chat-bubble__ticks--read {
  color: #7ec8ff;
  opacity: 1;
}

.chat-typing {
  padding: 0.15rem 1rem 0.35rem;
  font-size: 0.78rem;
  color: #8fa7d0;
  font-style: italic;
}

.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid rgba(58, 110, 194, 0.22);
  background: rgba(6, 15, 38, 0.78);
  backdrop-filter: blur(10px);
}

.chat-composer__attach-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-composer__btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(58, 110, 194, 0.22);
  border-radius: 50%;
  background: rgba(8, 20, 48, 0.85);
  color: #c8dcff;
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.chat-composer__btn:hover:not(:disabled) {
  background: rgba(58, 110, 194, 0.28);
  border-color: rgba(106, 158, 240, 0.45);
  transform: translateY(-1px);
}

.chat-composer__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chat-composer__send {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: rgba(147, 197, 253, 0.35);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.chat-composer__send:hover:not(:disabled) {
  filter: brightness(1.06);
}

.chat-composer__mic {
  font-size: 0.9rem;
}

.chat-composer__emoji-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-composer__emoji {
  font-size: 1.1rem;
}

.chat-emoji-picker {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(58, 110, 194, 0.45);
  background: #0a1f47;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.chat-emoji-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.15rem;
  max-height: 11rem;
  overflow-y: auto;
}

.chat-emoji-picker__item {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.3rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.chat-emoji-picker__item:hover {
  background: rgba(58, 110, 194, 0.28);
}

.chat-composer__input {
  flex: 1;
  min-height: 2.35rem;
  max-height: 7.5rem;
  resize: none;
  border: 1px solid rgba(58, 110, 194, 0.32);
  border-radius: 1.15rem;
  padding: 0.58rem 0.95rem;
  background: rgba(4, 10, 26, 0.72);
  color: inherit;
  font: inherit;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-composer__input:focus {
  outline: none;
  border-color: rgba(106, 158, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(58, 110, 194, 0.18);
}

.chat-attach-menu {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 0;
  min-width: 9rem;
  background: rgba(10, 24, 56, 0.98);
  border: 1px solid rgba(58, 110, 194, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 5;
}

.chat-attach-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.84rem;
}

.chat-attach-menu button:hover {
  background: rgba(58, 110, 194, 0.22);
}

.chat-messenger__sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

@media (min-width: 1100px) {
  .chat-messenger__sidebar-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .chat-messenger__sidebar-actions {
    grid-template-columns: auto auto;
    flex-shrink: 0;
  }
}

.chat-messenger__standard-groups {
  margin: 0 1rem 0.65rem;
  width: calc(100% - 2rem);
}

.chat-conv__avatar--group {
  font-size: 1.2rem;
}

.chat-thread__group-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(58, 110, 194, 0.25);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.chat-thread__member-avatars {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.chat-thread__member-avatars img,
.chat-thread__member-avatars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(12, 32, 72, 0.9);
  border: 1px solid rgba(90, 157, 255, 0.35);
}

.chat-thread__actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chat-system-msg {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0;
}

.chat-system-msg span {
  font-size: 0.72rem;
  color: #8fa7d0;
  background: rgba(12, 32, 72, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-align: center;
}

.chat-bubble-row--group {
  align-items: flex-end;
  gap: 0.35rem;
}

.chat-bubble__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-bubble__avatar--ph {
  display: grid;
  place-items: center;
  background: rgba(12, 32, 72, 0.9);
  font-size: 0.7rem;
  color: #9eb8e8;
}

.chat-bubble__sender {
  font-size: 0.72rem;
  color: #7ec8ff;
  margin-bottom: 0.1rem;
}

.chat-group-modal__head,
.chat-group-info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-group-modal__steps {
  display: flex;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.chat-group-modal__step {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  background: rgba(58, 110, 194, 0.2);
  color: #9eb8e8;
}

.chat-group-modal__step--active {
  background: #3d8cff;
  color: #fff;
}

.chat-group-modal__foot,
.chat-group-info__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.chat-group-member-pick {
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-group-member-pick__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
}

.chat-group-info__icon {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 0.5rem;
}

.chat-group-info__members {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-group-info__members li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}


.modal__card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #e2e8f0;
  max-width: 520px;
  width: 100%;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.field > span { font-size: 0.82rem; color: #94a3b8; }
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.btn-chip { background: rgba(255,255,255,0.06); color: #e2e8f0; border: 1px solid rgba(148,163,184,0.35); padding: 0.35rem 0.65rem; font-size: 0.78rem; border-radius: 10px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mes-messenger-page { padding: 0; overflow: hidden; }
.mes-messenger-page .chat-messenger {
  min-height: 0;
  height: 100%;
  border-radius: 14px;
}
