.telegram-integration-modal .modal-dialog {
    max-width: 620px;
}

.telegram-integration-card {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem;
    background: #f8fbff;
}

.telegram-integration-icon {
    align-items: center;
    background: linear-gradient(135deg, #35a4ff, #1676f3);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.telegram-integration-icon-email {
    background: linear-gradient(135deg, #ff934f, #ff6b35);
}

.forwarding-channel-switch {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forwarding-channel-button {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.forwarding-channel-button:hover {
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.08);
}

.forwarding-channel-button.active {
    background: #eef6ff;
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.1);
}

.forwarding-channel-badge {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.forwarding-channel-badge-telegram {
    background: linear-gradient(135deg, #35a4ff, #1676f3);
}

.forwarding-channel-badge-email {
    background: linear-gradient(135deg, #ff934f, #ff6b35);
}

.forwarding-channel-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.forwarding-channel-title {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.2;
}

.forwarding-channel-text {
    color: #6b7280;
    display: block;
    font-size: 0.84rem;
    line-height: 1.25;
}

.telegram-code-box {
    background: #0f172a;
    border-radius: 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 1rem;
    text-align: center;
}

.telegram-actions-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telegram-action-span-full {
    grid-column: 1 / -1;
}

.telegram-state-list {
    margin: 0;
    padding-left: 1.1rem;
}

.telegram-state-list li + li {
    margin-top: 0.35rem;
}

.telegram-mailbox-pill {
    background: #e8f3ff;
    border: 1px solid #cfe5ff;
    border-radius: 999px;
    color: #0f4fa8;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin: 0 6px 6px 0;
    padding: 6px 10px;
}

.telegram-mailbox-pill-action {
    align-items: center;
    gap: 8px;
    padding-right: 6px;
}

.telegram-mailbox-pill-remove {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c7dcfb;
    border-radius: 999px;
    color: #0f4fa8;
    cursor: pointer;
    display: inline-flex;
    font-size: 10px;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    width: 20px;
}

.telegram-mailbox-pill-remove:hover {
    background: #0f4fa8;
    border-color: #0f4fa8;
    color: #ffffff;
}

.telegram-muted-note {
    color: #6c757d;
    font-size: 0.93rem;
}

.forwarding-input-stack .form-control {
    border-radius: 12px;
    min-height: 46px;
}

@media (max-width: 575px) {
    .forwarding-channel-switch,
    .telegram-actions-grid {
        grid-template-columns: 1fr;
    }

    .forwarding-channel-button {
        padding: 12px 14px;
    }
}
