/* === Каталог — мобильная раскладка (< 1024px, без промежуточного состояния) === */
@media (max-width: 1023px) {
  .catalog-toolbar { flex-wrap: wrap; gap: 0; padding: 0; border-bottom: none; background: #fff; z-index: 11; }
  .catalog-count { display: none; }
  .catalog-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px var(--pad-x);
    border: 1px solid var(--border);
    background: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }
  .catalog-filters {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 10px var(--pad-x);
    border-bottom: 1px solid var(--border);
  }
  .catalog-filters.open { display: flex; }
  .catalog-filter-select { font-size: 11px; padding: 5px 24px 5px 8px; flex: 1; min-width: 0; }
  /* Карточка каталога — 2 колонки */
  .cat-card {
    grid-template-columns: 38% 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
    padding: 12px;
    margin: 8px calc(-1 * var(--pad-x) + 8px);
  }
  .cat-card__img {
    grid-row: 1 / 2;
    grid-column: 1;
  }
  .cat-card__right {
    grid-row: 1;
    grid-column: 2;
    border-left: none;
    border-top: none;
    padding-left: 0;
    padding-top: 0;
  }
  .cat-card__type { display: none; }
  .cat-card__name { font-size: 20px; margin-bottom: 4px; }
  .cat-card__sub { display: none; }
  .cat-card__vollabel { display: none; }
  .cat-card__stars { font-size: 12px; margin-bottom: 8px; }
  .cat-vols { margin-bottom: 10px; gap: 4px; }
  .cat-card__price { font-size: 22px; margin-bottom: 10px; }
  .cat-card__add { padding: 11px; font-size: 12px; }
  .cat-card__body {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 12px;
  }
  .cat-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .cat-card__mood {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 10px;
  }
  .cat-card__desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #555;
    -webkit-line-clamp: 4;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .cat-card__notes { font-size: 11px; gap: 2px; }
}

/* === Карточка товара — мобильный + планшет === */
@media (max-width: 1023px) {
  /* Карточка товара */
  .product-page { padding: 0 0 32px; }
  .product-h1 { font-size: 22px; }
  .product-top { grid-template-columns: 1fr; }
  .product-photo { display: block; position: static; overflow: hidden; }
  .product-photo img { position: static; transform: none; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
  .product-info { padding: 16px 0; }
  .product-price-name { grid-template-columns: 1fr; gap: 8px; }
  .product-price { justify-content: flex-start; font-size: 24px; }
  .product-name-block { justify-self: start; }
  .product-rating-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-name { font-size: 22px; letter-spacing: 2px; }

  /* Sticky бар — сверху на мобиле */
  .product-sticky-inner { flex-wrap: wrap; padding: 6px var(--pad-x); gap: 8px; }
  .product-sticky-vols { display: none; }
  .product-sticky-quick { display: none; }
  .product-sticky-info { flex: 1; }
  .product-sticky-name { font-size: 12px; }
  .product-sticky-price { font-size: 16px; }
  .product-sticky-add { padding: 6px 14px; font-size: 11px; }

  /* Отзывы — одноколоночный */
  .reviews-layout { grid-template-columns: 1fr; gap: 16px; }
  .reviews-right { position: static; order: -1; }
  .reviews-photo-thumb { width: 100px; height: 100px; }
    .product-sticky-bar { top: 56px; }
  .reviews-right-title { display: none; }
.reviews-summary__avg { font-size: 32px; }
}

/* ===================================================================
   ШТОРКА ПОДБОРА — внутренние элементы
   (каркас теперь через .fs-modal в base.css)
   =================================================================== */

/* Товар в подборе — единая раскладка:
   [фото] [название+объём+состав] [цена+кол-во] [×] */
.sheet-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  position: relative;
}

.sheet-item__img {
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.sheet-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheet-item__body {
  flex: 1;
  min-width: 0;
}

.sheet-item__name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
}
.sheet-item__name:hover { text-decoration: underline; }

.sheet-item__vol {
  font-size: 12px;
  color: var(--muted);
}

/* Правая колонка: [цена ×] сверху, [− 1 +] под ними */
.sheet-item__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sheet-item__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-item__price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.sheet-item__del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--fast);
}
.sheet-item__del:hover { color: var(--primary); }

.sheet-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sheet-item__qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background var(--fast);
}
.sheet-item__qty-btn:hover { background: #f5f3f0; }

.sheet-item__qty-val {
  font-size: 13px;
  min-width: 18px;
  text-align: center;
}

/* Подарок в подборе */
.sheet-item--gift {
  background: #faf8f5;
  padding: 12px 8px;
  margin: 0 -8px;
}
.sheet-item__price--gift {
  color: #4a9d5a;
  font-weight: 500;
  font-size: 13px;
}
.sheet-gift__pick {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  color: var(--primary);
  transition: border-color var(--fast);
}
.sheet-gift__pick:hover { border-color: var(--primary); }

/* Итого — сетка (лейбл | сумма) с визуальным разделением */
.sheet-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  margin-bottom: 24px;
}
.sheet-total b {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}
.sheet-total span:nth-child(even) {
  text-align: right;
}

/* Пусто */
.sheet-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Форма */
.sheet-form__title {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.sheet-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--primary);
  background: transparent;
  outline: none;
  transition: border-color var(--fast);
  margin-bottom: 4px;
}
.sheet-input:focus { border-color: var(--primary); }
.sheet-input::placeholder { color: var(--muted); }
.sheet-input.input-error { border-color: #e53e3e !important; }

.sheet-textarea { resize: none; }

.sheet-submit {
  width: 100%;
  padding: 14px 0;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity var(--fast);
}
.sheet-submit:disabled { opacity: 0.4; cursor: default; }
.sheet-submit:not(:disabled):hover { opacity: 0.85; }

.sheet-result {
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--green, #22C55E);
}

/* Экран успеха после оформления */
.sheet-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 320px;
}
.sheet-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green, #22C55E);
  color: #fff;
  font-size: 32px;
  line-height: 64px;
  margin-bottom: 24px;
}
.sheet-success__title {
  font-family: var(--font-heading, 'Poiret One', serif);
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}
.sheet-success__number {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.sheet-success__text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.sheet-success__btn {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sheet-success__btn:hover { opacity: 0.85; }
.sheet-success__btn + .sheet-success__btn { margin-top: 12px; }
.sheet-success__btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
a.sheet-success__btn { text-align: center; text-decoration: none; }

/* === Блок выбора доставки (общий для шторки и модалки) === */
.delivery-hidden { display: none; }
.delivery-choice { margin: 12px 0 4px; max-width: 100%; }
.delivery-choice__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary);
}
.delivery-choice__options { display: flex; flex-direction: column; gap: 8px; }
.delivery-choice__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.15s;
}
.delivery-choice__opt:has(input:checked) {
  border-color: var(--primary);
  background: rgba(0,0,0,0.02);
}
.delivery-choice__opt input[type="radio"] { margin: 0; accent-color: var(--primary); }
.delivery-choice__hint { font-size: 12px; color: var(--muted); }
.delivery-choice__price { font-size: 12px; color: var(--primary); font-weight: 600; }

/* СДЭК — поля */
.delivery-cdek { margin-top: 12px; }
.delivery-cdek__field { position: relative; }
.delivery-cdek__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.delivery-cdek__input:focus { border-color: var(--primary); }
.delivery-cdek__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: var(--z-dropdown, 100);
}
.delivery-cdek__suggestion {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.delivery-cdek__suggestion:hover { background: #f8f8f8; }
.delivery-cdek__suggestion:last-child { border-bottom: none; }
.delivery-cdek__region { color: var(--muted); font-size: 12px; }
.delivery-cdek__no-results {
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.delivery-cdek__loading {
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ПВЗ — список */
.delivery-cdek__hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.delivery-cdek__pvz-wrap { margin-top: 12px; overflow: hidden; max-width: 100%; }
.delivery-cdek__pvz-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary);
}
/* Карта ПВЗ */
.delivery-cdek__map {
  width: 100%;
  max-width: 100%;
  height: 200px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #f0f0f0;
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .delivery-cdek__map { height: 280px; }
}
/* Загрузка карты — спиннер */
.delivery-cdek__map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.delivery-cdek__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 9999px;
  animation: delivery-spin 0.6s linear infinite;
}
@keyframes delivery-spin { to { transform: rotate(360deg); } }

.delivery-cdek__map-select {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.delivery-cdek__map-select:hover { opacity: 0.85; }
.delivery-cdek__pvz-search { margin-bottom: 8px; }
.delivery-cdek__pvz-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.delivery-cdek__pvz-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s;
}
.delivery-cdek__pvz-item:hover { background: #f8f8f8; }
.delivery-cdek__pvz-item:last-child { border-bottom: none; }
.delivery-cdek__pvz-addr { font-size: 14px; }
.delivery-cdek__pvz-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

.delivery-cdek__cost {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* Адрес самовывоза — всегда виден внутри блока pickup */
.delivery-pickup__address { display: block; }

/* ПВЗ — выбранный */
.delivery-cdek__selected {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8f8f6;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.delivery-cdek__change {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 8px;
}

/* === Мобильный bottom-sheet выбора ПВЗ === */
/* Используется вместо балуна Яндекс.Карт на мобилке (балун обрезается экраном). */
.pvz-sheet {
  position: fixed;
  inset: 0;
  z-index: 450; /* выше карты/модалок выбора, ниже тостов */
  display: none;
  pointer-events: none;
}
.pvz-sheet--open { display: block; pointer-events: auto; }
.pvz-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: pvzSheetFade 180ms ease-out;
}
.pvz-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 24px max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  animation: pvzSheetSlide 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pvz-sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.pvz-sheet__address {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 8px;
}
.pvz-sheet__time,
.pvz-sheet__phone,
.pvz-sheet__note {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin-bottom: 4px;
}
.pvz-sheet__note { color: #888; }
.pvz-sheet__select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
}
.pvz-sheet__select:active { opacity: 0.85; }
.pvz-sheet__cancel {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px;
  background: transparent;
  color: #888;
  border: none;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
@keyframes pvzSheetFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pvzSheetSlide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Мобильные отступы шторки — теперь через .fs-modal__body */

/* === Мессенджер (Переписка) === */

.msg-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 200px);
}

/* Левая панель — пул диалогов */
.msg-pool {
  width: 340px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.msg-pool__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-pool__filters {
  display: flex;
  gap: 6px;
}

.msg-filter {
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all var(--fast);
  color: var(--secondary);
}
.msg-filter:hover { border-color: var(--border-hover); color: var(--primary); }
.msg-filter--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.msg-pool__search {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: transparent;
  outline: none;
  transition: border-color var(--fast);
}
.msg-pool__search:focus { border-color: var(--border-hover); }

.msg-pool__list {
  flex: 1;
  overflow-y: auto;
}

/* Элемент диалога в пуле */
.msg-dialog {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--fast);
}
.msg-dialog:hover { background: rgba(0, 0, 0, 0.02); }
.msg-dialog--active { background: rgba(0, 0, 0, 0.04); }
.msg-dialog--unread { background: rgba(184, 176, 164, 0.08); }

.msg-dialog__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msg-dialog__name {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
}
.msg-dialog--unread .msg-dialog__name { font-weight: 600; }

.msg-dialog__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--secondary);
}

.msg-dialog__channel {
  font-size: 11px;
  opacity: 0.6;
}

.msg-dialog__badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  padding: 0 5px;
}

.msg-dialog__preview {
  margin-top: 4px;
  font-size: 13px;
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Правая панель — чат */
.msg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-chat__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 14px;
}

.msg-chat__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msg-chat__title {
  font-size: 15px;
  font-weight: 500;
}

.msg-chat__channels {
  display: flex;
  gap: 4px;
}

.msg-ch-tab {
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--secondary);
  transition: all var(--fast);
}
.msg-ch-tab:hover { border-color: var(--border-hover); }
.msg-ch-tab--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Область сообщений */
.msg-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Пузырь сообщения */
.msg-bubble-wrap {
  display: flex;
}
.msg-bubble-wrap--out { justify-content: flex-end; }
.msg-bubble-wrap--in { justify-content: flex-start; }

.msg-bubble {
  max-width: 70%;
  padding: 8px 12px;
}
.msg-bubble--out {
  background: var(--primary);
  color: #fff;
}
.msg-bubble--in {
  background: var(--bg-soft, #f5f5f3);
  color: var(--primary);
}

.msg-bubble__text {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-bubble__footer {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  font-size: 11px;
}
.msg-bubble--out .msg-bubble__footer { color: rgba(255, 255, 255, 0.6); }
.msg-bubble--in .msg-bubble__footer { color: var(--secondary); }

.msg-bubble__media {
  font-size: 12px;
  color: var(--secondary);
  padding: 4px 0;
  font-style: italic;
}

/* Разделитель дат */
.msg-date-sep {
  text-align: center;
  font-size: 11px;
  color: var(--secondary);
  padding: 8px 0;
}

/* Поле ввода */
.msg-chat__input {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.msg-chat__textarea {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: transparent;
  outline: none;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  transition: border-color var(--fast);
}
.msg-chat__textarea:focus { border-color: var(--border-hover); }

.msg-chat__send {
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity var(--fast);
}
.msg-chat__send:hover { opacity: 0.8; }
.msg-chat__send:disabled { opacity: 0.3; cursor: default; }

/* Статус каналов */
.msg-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
}

.msg-status__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.msg-status__dot--on { background: var(--green); }

/* Мобильная адаптация мессенджера */
@media (max-width: 1023px) {
  .msg-layout { flex-direction: column; height: calc(100vh - 160px); }
  .msg-pool { width: 100%; max-height: 40%; border-right: none; border-bottom: 1px solid var(--border); }
  .msg-chat { min-height: 60%; }
  .msg-bubble { max-width: 85%; }
}
