.telegram-connection { scroll-margin-top: 24px; }
.telegram-connection-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.telegram-connection-controls > p, .telegram-connection-controls > ol, .telegram-consent { flex-basis: 100%; }
.telegram-connection-controls > ol { padding-left: 22px; }
.telegram-consent { display: flex; align-items: flex-start; gap: 10px; }
.telegram-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--crm-accent, #7c9154); }
.telegram-connection-controls small { display: inline-block; margin-left: 8px; }
.telegram-notification-settings { flex-basis: 100%; min-width: 0; border-top: 1px solid var(--crm-border); padding-top: 16px; }
.telegram-notification-settings fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.telegram-preference-field { display: grid; gap: 6px; }
.telegram-quiet-hours { display: flex; gap: 16px; }
.telegram-quiet-hours label { display: grid; gap: 6px; max-width: 110px; }
.crm-root .telegram-bot-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 999px; background: var(--crm-highlight); color: var(--crm-ink); font-weight: 600; text-decoration: none; }
.crm-root .telegram-connection-controls > .crm-actions { flex-basis: 100%; margin: 0; }
.crm-root .telegram-connection-controls .crm-actions > :is(button, a) { max-width: 100%; white-space: normal; text-align: center; }
.crm-root .telegram-connection-controls > small { flex-basis: 100%; margin-left: 0; }
.crm-root .telegram-step-content .telegram-connection-controls { margin-top: 12px; gap: 12px; }
.crm-root .telegram-step-content .telegram-connection-controls > ol { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }
.crm-root .telegram-step-content .telegram-connection-controls > .crm-small { font-size: 12px; }
.crm-root .telegram-connection-steps > li:has(.telegram-connection-controls) .telegram-step-content { grid-column: 2 / -1; }
