.telegram-settings{display:grid;gap:18px;max-width:1120px}.telegram-card{padding:22px}.telegram-card>header{margin-bottom:18px}.telegram-card h2{margin:0 0 5px;font-size:18px}.telegram-card p{margin:0;color:#64748b}.telegram-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.telegram-fields label,.telegram-template>label{display:grid;gap:6px;font-weight:600}.telegram-fields small{display:block;color:#64748b;font-weight:400}.telegram-fields input,.telegram-template textarea{width:100%;border:1px solid #d5dfed;border-radius:10px;padding:11px 12px;background:#fff;color:#17233d;font:inherit}.telegram-switches{margin:20px 0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.telegram-switches label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 16px}.telegram-switches label+label{border-top:1px solid #e2e8f0}.telegram-switches small{display:block;margin-top:4px;color:#64748b}.telegram-switches input{width:18px;height:18px;accent-color:#3764ee}.telegram-template p{margin:5px 0 10px}.telegram-template textarea{min-height:190px;resize:vertical;font-family:ui-monospace,monospace;line-height:1.5}.telegram-template-meta{display:flex;align-items:center;justify-content:space-between;margin:8px 0;color:#64748b}.telegram-preview{white-space:pre-wrap;background:#f7faff;border:1px solid #dbe5f2;border-radius:10px;padding:14px;line-height:1.5}.telegram-variables{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:12px;color:#64748b}.telegram-variables button{border:0;border-radius:6px;background:#eef3fb;color:#48618d;padding:5px 7px;cursor:pointer}.telegram-card footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.telegram-table{overflow:auto}.telegram-table table{width:100%;border-collapse:collapse}.telegram-table th,.telegram-table td{text-align:left;padding:10px;border-bottom:1px solid #e2e8f0}.telegram-table small{display:block;color:#64748b}.telegram-status{display:inline-block;text-transform:capitalize;border-radius:20px;background:#eef2f7;padding:3px 9px}.telegram-status.accepted{background:#dcfce7;color:#166534}.telegram-status.failed,.telegram-status.unknown{background:#fef3c7;color:#92400e}@media(max-width:700px){.telegram-fields{grid-template-columns:1fr}.telegram-card{padding:16px}.telegram-switches label{align-items:flex-start}}
.telegram-settings form{display:grid;gap:18px}.telegram-channel-switch{display:flex;align-items:center;gap:10px;margin:12px 0 18px;font-weight:600}.telegram-channel-switch input{width:19px;height:19px;accent-color:#3764ee}.telegram-channel-destination{display:flex;align-items:end;gap:10px}.telegram-channel-destination label{display:grid;gap:7px;flex:1;font-weight:600}.telegram-channel-destination input{width:100%;border:1px solid #d5dfed;border-radius:10px;padding:11px 12px;background:#fff;color:#17233d;font:inherit}.telegram-channel-destination button{white-space:nowrap}.telegram-card .telegram-hint{margin:7px 0 20px;font-size:12px}.telegram-template-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.telegram-template-heading label{font-weight:600}.telegram-template-heading button{white-space:nowrap}.telegram-actions{display:flex;justify-content:flex-end}.telegram-actions button{min-height:40px}.telegram-preview[hidden]{display:none}@media(max-width:700px){.telegram-channel-destination{align-items:stretch;flex-direction:column}.telegram-template-heading{align-items:flex-start;flex-direction:column}}
.telegram-channel-switch input{order:2;margin-left:auto;flex:none}.telegram-channel-switch small{display:block;margin-top:4px;color:#64748b;font-weight:400}
