.telegram-campaign-page { padding: 34px 8px 26px; color: #14213d; }
.telegram-campaign-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; margin-top: 30px; }
.telegram-campaign-form-panel { min-width: 0; padding: 30px; background: #fff; border: 1px solid #dfe9f6; border-radius: 8px; box-shadow: 0 18px 45px #122e5c14; }
.telegram-campaign-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; scroll-margin-top: 110px; }
.telegram-campaign-header-icon { display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 auto; border-radius: 8px; background: #eef5ff; color: #1769ff; }
.telegram-campaign-header h1 { font-size: 28px; font-weight: 600; margin: 0; line-height: 1.2; }
.telegram-campaign-header p { margin: 8px 0 0; color: #607087; font-weight: 600; }
.telegram-campaign-header > a { margin-left: auto; }
.telegram-campaign-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dfe8f6; border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.telegram-campaign-steps button { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 64px; border: 0; border-right: 1px solid #dfe8f6; background: #f8fbff; color: #526681; font-size: 13px; font-weight: 600; text-align: left; }
.telegram-campaign-steps button:last-child { border-right: 0; }
.telegram-campaign-steps button > span { display: grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; flex: 0 0 auto; background: #93a4c0; color: white; }
.telegram-campaign-steps button.is-active { background: white; box-shadow: inset 0 -3px #1769ff; color: #14213d; }
.telegram-campaign-steps button.is-active > span, .telegram-campaign-steps button.is-completed > span { background: #1769ff; }
.telegram-campaign-fields { min-width: 0; border: 0; margin: 0; padding: 0; }
.telegram-campaign-fields .google-campaign-picker { margin-top: 24px; }
.telegram-campaign-fields h2 { font-size: 22px; margin: 0 0 20px; font-weight: 600; }
.telegram-campaign-fields label { display: block; margin: 18px 0 8px; font-weight: 600; }
.telegram-campaign-page .form-control { min-height: 48px; font-weight: 600; }
.telegram-campaign-fields small, .telegram-campaign-muted { display: block; color: #607087; font-size: 13px; font-weight: 500; margin-top: 8px; }
.telegram-campaign-error { color: #d92d20; font-size: 13px; font-weight: 600; margin: 6px 0; }
.telegram-campaign-channel { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid #a5c9ff; border-radius: 8px; background: #f5f9ff; }
.telegram-campaign-channel img { width: 48px; height: 48px; object-fit: contain; }
.telegram-campaign-channel div { display: grid; gap: 4px; flex: 1; }
.telegram-campaign-channel strong { font-size: 18px; }
.telegram-campaign-channel span { font-size: 13px; font-weight: 600; color: #607087; }
.telegram-campaign-channel > svg { color: #16865e; }

.telegram-campaign-primary, .telegram-campaign-secondary, .telegram-campaign-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; min-height: 44px; padding: 10px 18px; font-size: 14px; font-weight: 600; }
.telegram-campaign-primary { border: 1px solid #1769ff; background: #1769ff; color: white; }
.telegram-campaign-secondary, .telegram-campaign-icon { border: 1px solid #cbd8ec; background: #fff; color: #14213d; }
.telegram-campaign-icon { width: 44px; padding: 0; margin-top: 10px; }
.telegram-campaign-page button:disabled { opacity: .55; cursor: not-allowed; }
.telegram-campaign-page :focus-visible { outline: 2px solid #1769ff; outline-offset: 3px; }
.telegram-campaign-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 28px; border-top: 1px solid #dfe8f6; }
.telegram-campaign-emojis { max-width: 360px; }
.telegram-campaign-preview { position: sticky; top: 92px; min-width: 0; border: 1px solid #dfe8f6; border-radius: 8px; background: #fff; overflow: hidden; }
.telegram-campaign-preview header { display: flex; gap: 12px; align-items: center; padding: 20px; background: #f8fbff; border-bottom: 1px solid #edf2f7; color: #1769ff; }
.telegram-campaign-preview h2 { font-size: 18px; color: #14213d; margin: 0; }
.telegram-campaign-preview dl { display: grid; gap: 12px; padding: 18px; margin: 0; }
.telegram-campaign-preview dl > div { padding: 14px; border: 1px solid #edf2f7; border-radius: 8px; background: #fbfdff; overflow-wrap: anywhere; }
.telegram-campaign-preview dt { color: #66758e; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.telegram-campaign-preview dd { font-size: 14px; font-weight: 600; margin: 0; }
.telegram-campaign-preview small { display: block; color: #66758e; font-size: 12px; margin-top: 4px; }
.telegram-campaign-message-preview { white-space: pre-wrap; max-height: 240px; overflow: auto; }
@media (max-width: 1100px) { .telegram-campaign-workspace { grid-template-columns: minmax(0, 1fr); } .telegram-campaign-preview { position: static; } }
@media (max-width: 640px) { .telegram-campaign-form-panel { padding: 18px; } .telegram-campaign-header { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; } .telegram-campaign-header-icon { width: 54px; height: 54px; } .telegram-campaign-header h1 { font-size: 22px; overflow-wrap: anywhere; } .telegram-campaign-header > div { min-width: 0; } .telegram-campaign-header > a { grid-column: 2; justify-self: end; margin-left: 0; } .telegram-campaign-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .telegram-campaign-steps button { min-height: 72px; } .telegram-campaign-footer { gap: 8px; } .telegram-campaign-primary, .telegram-campaign-secondary { padding: 10px 12px; } }
