/* 0.25.3: стартовая YPEC+ рассылка больше не имеет отдельного пункта.
   Предрелизное сообщение отправляется вручную через раздел «Сообщения». */
.plus-launch-card-v24 { display:none !important; }

.v24-message-snippet {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.v24-message-snippet.expanded { display:block; -webkit-line-clamp:unset; }
.v24-message-quick { display:flex; flex-wrap:wrap; gap:8px; margin-top:9px; }
.v24-message-quick > span {
  display:inline-flex; align-items:center; min-height:30px; padding:5px 9px;
  border-radius:9px; background:var(--tg-theme-secondary-bg-color,#202020);
  color:var(--tg-theme-link-color,var(--tg-theme-button-color,#2481cc));
  font-size:11px; font-weight:650;
}

.v24-message-toolbar,
.v24-message-editor,
.v24-user-message-state,
.v24-smart-actions,
.v24-collector-result {
  border-radius:14px;
  background:var(--tg-theme-secondary-bg-color,#202020);
}
.v24-message-toolbar { margin:0 0 12px; padding:12px; }
.v24-message-toolbar-head,
.v24-user-message-state-head,
.v24-collector-result-head {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.v24-message-edit-note { margin-top:7px; font-size:11px; line-height:1.4; }
.v24-message-toolbar-actions,
.v24-message-editor-actions,
.v24-user-message-state-actions,
.v24-smart-actions {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px;
}
.v24-message-toolbar-actions { margin-top:10px; }
.v24-message-toolbar-actions button,
.v24-message-editor-actions button,
.v24-user-message-state-actions button,
.v24-smart-actions button { min-width:0; width:100%; min-height:38px; white-space:normal; }
.v24-broadcast-status {
  flex:0 0 auto; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:700;
  background:var(--tg-theme-bg-color,#111); color:var(--tg-theme-hint-color,#999);
}
.v24-broadcast-status.sent { color:#35c759; }
.v24-broadcast-status.processing,
.v24-broadcast-status.pending { color:var(--tg-theme-link-color,var(--tg-theme-button-color,#2481cc)); }
.v24-broadcast-status.warning { color:#ff9f0a; }

.v24-message-editor { margin:0 0 12px; padding:12px; }
.v24-message-editor textarea {
  width:100%; min-height:150px; max-height:50vh; resize:vertical; box-sizing:border-box;
  padding:10px 11px; border-radius:10px;
  color:var(--tg-theme-text-color,#fff); background:var(--tg-theme-bg-color,#111);
  border:1px solid var(--tg-theme-section-separator-color,#444); line-height:1.45;
}
.v24-message-editor small { display:block; margin:5px 0 9px; text-align:right; }
.v24-user-message-state { margin:0 0 12px; padding:12px; }
.v24-user-message-state-actions { margin-top:9px; }
.v24-smart-actions { margin-top:12px; padding:10px; }
.v24-delivery-message .message-preview { white-space:pre-wrap; overflow-wrap:anywhere; }
.v24-delivery-message > button { width:100%; margin-top:8px; }

.v24-collector-result { margin-top:10px; padding:10px 11px; text-align:left; }
.v24-collector-result-head span { font-size:11px; color:var(--tg-theme-hint-color,#999); }
.v24-collector-result-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 5px; }
.v24-collector-result-chips > span {
  padding:5px 8px; border-radius:9px; background:var(--tg-theme-bg-color,#111);
  font-size:11px; overflow-wrap:anywhere;
}
.v24-collector-result > small { display:block; margin-top:5px; }

.v24-transition-ghost {
  position:fixed; z-index:9998; pointer-events:none; overflow:hidden;
  border-radius:16px; background:var(--tg-theme-bg-color,#1c1c1e);
  box-shadow:0 14px 45px rgba(0,0,0,.28); opacity:1;
  transition:opacity .14s ease, transform .14s ease;
}
.v24-transition-ghost.leaving { opacity:0; transform:translateY(3px) scale(.995); }
.v24-transition-surface { height:100%; overflow:hidden; padding:0; }
.v24-transition-surface button,
.v24-transition-surface input,
.v24-transition-surface textarea,
.v24-transition-surface select { pointer-events:none; }

#message-dialog[open], #user-dialog[open], #delivery-dialog[open] {
  animation:v24-dialog-in .14s ease-out;
}
@keyframes v24-dialog-in {
  from { opacity:.88; transform:translateY(4px) scale(.996); }
  to { opacity:1; transform:none; }
}

@media (max-width:520px) {
  .v24-message-toolbar-actions,
  .v24-user-message-state-actions,
  .v24-smart-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v24-message-editor-actions { grid-template-columns:1fr 1fr; }
  .v24-message-toolbar-head,
  .v24-user-message-state-head,
  .v24-collector-result-head { align-items:flex-start; }
}
@media (max-width:350px) {
  .v24-message-toolbar-actions,
  .v24-user-message-state-actions,
  .v24-smart-actions { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .v24-transition-ghost, #message-dialog[open], #user-dialog[open], #delivery-dialog[open] {
    animation:none; transition:none;
  }
}
