.publication-workspace, .publication-list { display: grid; gap: 16px; min-width: 0; }
.publication-workspace .crm-panel, .telegram-channel { min-width: 0; }
.publication-body, .publication-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.publication-message { border-radius: 16px; background: #eaf1e6; color: #163b2c; padding: 18px; margin: 16px 0; }
.publication-preview > label { display: grid; gap: 8px; }
.publication-preview .crm-actions { margin-top: 16px; }
.crm-root .telegram-channel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.crm-root .telegram-channel-heading h2 { margin: 0; }
.crm-root .telegram-channel-caption { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.crm-root .telegram-connected-channel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.crm-root .telegram-connected-channel p, .crm-root .telegram-connected-channel .crm-actions { margin: 0; }
.crm-root .telegram-channel-setup { margin-top: 16px; }
.crm-root .telegram-connection-steps { list-style: none; counter-reset: telegram-step; max-width: 900px; padding: 0; margin: 0; }
.crm-root .telegram-connection-steps > li { counter-increment: telegram-step; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 12px; max-width: none; padding: 12px 0; margin: 0; border-top: 1px solid var(--crm-border); }
.crm-root .telegram-connection-steps > li::before { content: counter(telegram-step); color: var(--crm-muted); font-size: 13px; font-weight: 600; line-height: 20px; }
.crm-root .telegram-step-content h3 { margin: 0; font-size: 14px; line-height: 20px; }
.crm-root .telegram-step-content p { margin: 4px 0 0; max-width: 75ch; font-size: 13px; line-height: 1.5; }
.crm-root .telegram-connection-steps > li > .crm-actions { align-self: center; margin: 0; }
.crm-root .telegram-channel-step .telegram-step-content { grid-column: 2 / -1; }
.crm-root .telegram-channel-setup .telegram-channel-form { max-width: 760px; gap: 6px; margin: 8px 0 0; }
.crm-root .telegram-channel-fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.crm-root .telegram-channel-fields > label { flex: 1 1 220px; min-width: 0; display: grid; gap: 6px; font-size: 12px; }
.crm-root .telegram-channel-fields .crm-form-footer { margin: 0; padding: 0; border: 0; flex: 0 0 auto; }
.crm-root .telegram-channel-fields input, .crm-root .telegram-channel-fields button { height: 36px; min-height: 36px; }
.crm-root .telegram-channel .telegram-channel-fields .crm-form-footer > button { height: 36px; min-height: 36px; }
.crm-root .telegram-channel-setup small { color: var(--crm-muted); font-size: 12px; line-height: 1.5; }
.telegram-channel > p, .publication-list .crm-panel > p { max-width: 75ch; }
.telegram-account-link { display: inline-block; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.crm-root .telegram-connection-steps .telegram-account-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }
.publication-workspace a { overflow-wrap: anywhere; }
.publication-workspace .crm-actions { flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
  .publication-preview .crm-actions > button { width: 100%; }
  .crm-root .telegram-channel { padding: 16px; }
  .crm-root .telegram-connection-steps > li { grid-template-columns: 20px minmax(0, 1fr); gap: 6px 8px; }
  .crm-root .telegram-connection-steps > li > .crm-actions { grid-column: 2; }
  .crm-root .telegram-channel-fields > label { flex-basis: 100%; }
  .crm-root .telegram-channel-fields input, .crm-root .telegram-channel-fields button, .crm-root .telegram-connection-steps .telegram-account-link { min-height: 44px; height: 44px; }
  .crm-root .telegram-channel .telegram-channel-fields .crm-form-footer > button { height: 44px; min-height: 44px; }
}
