.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 > .telegram-profile-confirmation { flex-basis: 100%; display: grid; gap: 4px; min-width: 0; }
.crm-root .telegram-profile-confirmation strong { font-size: 16px; overflow-wrap: anywhere; }
.crm-root .telegram-profile-confirmation span { color: var(--crm-muted); font-size: 13px; overflow-wrap: anywhere; }
.crm-root .telegram-profile-confirmation p { margin: 4px 0 0; font-size: 13px; }
.crm-root .telegram-text-action { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--crm-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.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; }

.crm-root .profile-city-settings { display: grid; gap: 8px; }
.crm-root .profile-city-settings p { margin: 0; }
.crm-root .profile-city-current { color: var(--crm-ink); font-size: 14px; }
.crm-root .profile-city-settings > small { font-size: 11px; line-height: 1.5; }
.crm-root .profile-city-settings > small a { display: inline; margin: 0; font-size: inherit; }
.crm-root .profile-city-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.crm-root .profile-city-heading .ds-btn-secondary { min-height: 44px; padding: 6px 14px; font-size: 13px; }
.crm-root .profile-city-editor { display: grid; gap: 8px; margin-top: 4px; }
.crm-root .profile-city-search { display: grid; gap: 6px; max-width: 420px; font-size: 13px; }
.crm-root .profile-city-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.crm-root .profile-city-results button { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--crm-border); border-radius: 8px; background: var(--crm-surface); color: var(--crm-ink); text-align: left; font: inherit; overflow-wrap: anywhere; }
.crm-root .profile-city-results button:hover:not(:disabled) { background: var(--crm-bg); }

.crm-root .crm-account-page { display: grid; gap: 20px; padding: 0; width: min(780px, 100%); }
.crm-root .crm-account-page-heading { display: grid; gap: 8px; }
.crm-root .crm-account-page-heading h1 { font-size: 26px; letter-spacing: -0.02em; }
.crm-root .crm-account-page-heading a { display: inline-flex; align-items: center; min-height: 36px; width: fit-content; margin: 0; font-size: 13px; }
.crm-root .crm-account-page > .crm-panel { margin: 0; padding: 20px; }
.crm-root .crm-account-page .telegram-connection-controls { margin-top: 16px; }
.crm-root .crm-account-page .crm-support-form { margin-top: 16px; }
.crm-root .crm-account-page .crm-support-form > label { display: grid; gap: 6px; font-size: 13px; }
.crm-root .crm-account-page .crm-support-form .crm-form-footer { border: 0; padding: 0; margin: 0; }
.crm-root .crm-account-page > .crm-account-links { margin: 0; padding-top: 16px; font-size: 12px; }
@media (max-width: 600px) {
  .crm-root .crm-account-page { gap: 16px; }
  .crm-root .crm-account-page > .crm-panel { padding: 16px; }
  .crm-root .crm-account-page-heading h1 { font-size: 22px; }
}
