/* Channel invitation */
#telegram-community{padding-top:10px;padding-bottom:20px}.telegram-invite{position:relative;isolation:isolate;display:flex;align-items:center;gap:30px;overflow:hidden;max-width:1100px;margin:auto;padding:25px 42px;border-radius:20px;background:radial-gradient(ellipse at 5% 10%,#54bde5a1,transparent 55%),linear-gradient(115deg,#1b8fc5,#125489 68%,#173e66);color:#fff;box-shadow:0 12px 32px #126a9b1c;direction:rtl}.tg-public-art{flex:0 0 190px;position:relative;z-index:1;text-align:center}.tg-robot{width:195px;max-width:100%;height:auto;filter:drop-shadow(0 7px 8px #0e4d7633);animation:tg-bot-float 5s ease-in-out infinite}.tg-bot-label{display:block;font-size:10px;color:#c3eafa;margin-top:0;letter-spacing:.3px}.tg-public-copy{flex:1;position:relative;z-index:1}.tg-public-eyebrow{font-size:12px;font-weight:600;color:#b9e8fa}.tg-public-copy h2{color:#fff;font-size:29px;line-height:1.6;margin:6px 0}.tg-public-copy p{font-size:15px;line-height:1.9;color:#d5edf8;margin:5px 0 16px;max-width:37em}.tg-public-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.tg-subscribe{display:inline-flex;align-items:center;gap:9px;background:#fff;color:#176a9a!important;padding:11px 20px;border-radius:8px;box-shadow:0 4px 14px #0b486d26;font-size:14px;font-weight:700;text-decoration:none}.tg-subscribe svg{width:22px;height:22px}.tg-subscribe:hover{background:#e8f7ff;transform:translateY(-1px)}.tg-admin-action{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#d4edf9!important;text-decoration:none}.tg-admin-action>svg{width:16px;height:16px;color:#a9d9f1}.tg-admin-action small{font-size:10px;color:#9dd4ee}.tg-admin-action:hover{color:#f3d795!important}.tg-public-watermark{position:absolute;left:-25px;bottom:-70px;width:245px;opacity:.055;transform:rotate(-13deg);z-index:0}.tg-public-watermark svg{width:100%}@keyframes tg-bot-float{50%{transform:translateY(-6px)}}
/* Owner's Telegram workspace */
.telegram-admin .tg-page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.tg-page-title>div{display:flex;align-items:center;gap:12px}.telegram-admin .tg-page-title h1{margin:0;font-size:25px}.tg-app-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#e1f1fa;color:#2689bc}.tg-app-icon svg{width:25px;height:25px}.tg-channel-link{display:inline-flex;align-items:center;gap:7px;color:#3584ad;font-size:12px}.tg-channel-link svg{width:16px;height:16px}.tg-connection-status{font-size:13px;color:#8b6d38;padding:12px 16px;background:#f8efd9;border-radius:9px}.tg-connection-status.is-ready{color:#3d7f69;background:#e5f1e9}.tg-config-block{background:#fff;border-radius:13px;margin:18px 0;box-shadow:0 5px 18px #203b5006;overflow:hidden}.tg-config-block>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:18px 21px;cursor:pointer;font-weight:700;color:#3c5b70}.tg-config-block>summary::-webkit-details-marker{display:none}.tg-config-block>summary>span:first-child{display:flex;align-items:center;gap:10px;font-size:15px}.tg-config-block summary svg{width:23px;height:23px;color:#b48b45}.tg-config-block summary small{font-size:10px;font-weight:400;color:#95a4ae;margin-inline-start:auto}.tg-config-block summary small.is-saved{color:#3c8d75}.tg-chevron{color:#95acbb}.tg-config-content{padding:0 22px 20px;border-top:1px solid #eef2f5}.tg-setup-note{font-size:12px;line-height:1.9;color:#6d8493;background:#f0f6f9;padding:11px 14px;border-radius:7px;margin:17px 0}.tg-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.telegram-admin form label{display:grid;gap:6px;font-size:12px;color:#5c798b;font-weight:500}.telegram-admin form input:not([type=checkbox]),.telegram-admin form textarea{width:100%;border:1px solid #dce5ec;background:#f7f9fb;min-height:39px;padding:9px 12px;border-radius:7px;color:#203b50;font:inherit;font-size:13px;box-sizing:border-box}.telegram-admin form input:focus,.telegram-admin form textarea:focus{outline:2px solid #a9cee3;outline-offset:1px}.telegram-admin .tg-token-field{grid-column:1/-1}.tg-token-field>span{position:relative;display:flex;align-items:center}.tg-token-field>span>svg{position:absolute;right:13px;width:18px;height:18px;color:#a18755}.telegram-admin #tg-token{padding-right:40px}.telegram-admin form label>small{font-size:11px;font-weight:400;color:#93a2ac}.tg-switches{display:flex;align-items:center;flex-wrap:wrap;gap:18px 28px;margin:20px 0}.telegram-admin .tg-switches label{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px;position:relative}.tg-switches input{position:absolute;width:1px;height:1px;opacity:0}.tg-switch{width:37px;height:21px;background:#b4bec6;border-radius:20px;position:relative;flex:none;transition:background .2s}.tg-switch:before{content:'';position:absolute;width:15px;height:15px;border-radius:50%;background:white;left:3px;top:3px;box-shadow:0 1px 3px #0002;transition:transform .2s}.tg-switches input:checked+.tg-switch{background:#349b83}.tg-switches input:checked+.tg-switch:before{transform:translateX(16px)}.tg-switches input:focus-visible+.tg-switch{outline:3px solid #b48b45;outline-offset:2px}.tg-config-actions,.tg-compose-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.telegram-admin button[data-icon-preserve]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;font-size:13px;border:0;border-radius:7px;padding:9px 16px}.telegram-admin button[data-icon-preserve]>svg{width:18px;height:18px}.telegram-admin #tg-save-config,.telegram-admin #tg-publish{background:#238ac1;color:white}.telegram-admin button.secondary{background:#eaf0f5;color:#557386}.telegram-admin button:disabled{opacity:.5;cursor:not-allowed}.tg-config-content p[role=status]{font-size:12px;color:#5b8775;margin-bottom:0}.tg-compose-section,.tg-post-log{background:white;padding:22px;border-radius:13px;margin:20px 0;box-shadow:0 5px 18px #203b5006}.tg-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.telegram-admin .tg-section-heading h2{display:flex;align-items:center;gap:9px;font-size:18px;margin:0}.tg-section-heading h2 svg{width:21px;height:21px;color:#2b92c6}.tg-section-heading>span{font-size:11px;color:#91a4b1}.tg-muted{font-size:12px;color:#7f95a4}.tg-compose-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:25px;align-items:start}.telegram-admin #tg-compose{display:grid;gap:13px}.telegram-admin #tg-compose label>small{display:inline;color:#98a9b4}.telegram-admin #tg-compose textarea{min-height:160px;resize:vertical;line-height:1.8}.telegram-admin #tg-character-count{text-align:left;font-size:10px}.tg-preview{background:linear-gradient(125deg,#d3e8ef,#e4f0e4);padding:18px;border-radius:12px;min-height:300px}.tg-preview-label{font-size:11px;color:#81a4ae;margin-bottom:17px}.tg-message-preview{background:#fff;border-radius:12px 12px 3px 12px;padding:15px;box-shadow:0 3px 12px #1b61731c;overflow-wrap:anywhere}.tg-preview-brand{display:flex;align-items:center;gap:8px;margin-bottom:13px;color:#2587b6}.tg-preview-brand>span{display:grid;place-items:center;width:29px;height:29px;flex:none;border-radius:50%;background:#249bd1;color:white}.tg-preview-brand svg{width:17px;height:17px}.tg-preview-brand b{font-size:10px;line-height:1.6}.tg-message-preview>strong{font-size:13px;color:#305570}.tg-message-preview>p{font-size:12px;color:#526c7c;line-height:1.9;white-space:pre-wrap;margin:8px 0}.tg-message-preview>#tg-preview-link{display:block;color:#2397c6;font-size:10px;direction:ltr;text-align:right}.tg-message-preview>small{display:block;text-align:left;color:#9aacb8;font-size:9px;margin-top:18px}.telegram-admin #tg-post-feedback{font-size:12px;line-height:1.8;color:#348775;margin:0}.telegram-admin #tg-post-feedback.is-error{color:#b36957}.telegram-admin .tg-uncertain-confirm{display:flex!important;align-items:center;gap:8px;padding:10px;background:#fff0df;border-radius:7px;color:#a27945;font-size:11px}.telegram-admin .tg-uncertain-confirm[hidden]{display:none!important}.tg-post-state,.fact-telegram-state{display:inline-block;border-radius:5px;padding:4px 8px;font-size:11px;white-space:nowrap;background:#edf2f6;color:#7b92a3}.tg-post-state.is-sent,.fact-telegram-state.is-sent{background:#e3f2eb;color:#38896c}.tg-post-state.is-failed,.fact-telegram-state.is-failed{background:#fbe9e5;color:#b26d60}.tg-post-state.is-uncertain,.fact-telegram-state.is-uncertain{background:#fff0d7;color:#a38247}.tg-post-state.is-sending,.fact-telegram-state.is-sending{background:#e1f0fa;color:#3588b5}.tg-post-log td{font-size:12px}.tg-post-log td>small{display:block;color:#a48e84;font-size:10px;line-height:1.7;max-width:280px;margin-top:5px}.tg-post-log td>a{color:#258cc0}.tg-post-log p{font-size:12px;color:#90a2af}.admin-layout .platform-row-action[data-row-action=telegram]{--row-action-bg:#2c96c9}
@media(max-width:800px){.telegram-invite{padding:24px;gap:20px}.tg-public-art{flex-basis:135px}.tg-public-copy h2{font-size:24px}.tg-public-copy p{font-size:13px}.tg-public-actions{gap:13px}.tg-compose-layout{grid-template-columns:1fr}.tg-preview{min-height:0}.tg-config-grid{grid-template-columns:1fr}.telegram-admin .tg-token-field{grid-column:auto}}@media(max-width:550px){.telegram-invite{display:block;padding:22px;border-radius:15px}.tg-public-art{float:left;width:95px;margin:0 0 8px 7px}.tg-robot{width:95px}.tg-bot-label{display:none}.tg-public-copy h2{font-size:22px}.tg-public-copy p{font-size:12px}.tg-public-actions{clear:both;padding-top:9px}.tg-subscribe{padding:10px 14px;font-size:13px}.tg-admin-action{font-size:11px}.tg-public-watermark{width:160px}.tg-page-title{align-items:flex-start!important}.telegram-admin .tg-page-title h1{font-size:21px}.tg-config-block>summary{padding:15px}.tg-config-block>summary>span:first-child{font-size:13px}.tg-config-content,.tg-compose-section,.tg-post-log{padding:16px}.tg-config-block summary small{font-size:9px}}@media(prefers-reduced-motion:reduce){.tg-robot{animation:none}.tg-switch,.tg-switch:before{transition:none}}

.tg-photo-field{padding:18px;border:1px solid #dce8ee;border-radius:16px;background:linear-gradient(120deg,#f4f9fc,#fafcfc);margin:4px 0 18px}.tg-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tg-photo-heading small{font-weight:400;color:#8094a3;margin-inline-start:6px}.tg-photo-upload{position:relative!important;display:grid!important;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;padding:17px!important;background:white;border:1px dashed #a7c6d8;border-radius:12px;color:#247da6;cursor:pointer}.tg-photo-upload svg{grid-row:1/3}.tg-photo-upload span{overflow-wrap:anywhere}.tg-photo-upload small{color:#8295a3}.tg-photo-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.tg-photo-upload:focus-within{outline:2px solid #239aca;outline-offset:3px}.tg-photo-field select{width:100%;padding:11px;border:1px solid #cfdee8;border-radius:9px;font:inherit;color:#203b50;background:white;margin-top:6px}.tg-photo-preview{width:100%;height:auto;max-height:380px;object-fit:contain;display:block;border-radius:10px;margin:14px 0;background:#f1f5f7}.tg-photo-preview[hidden],.tg-photo-field [hidden]{display:none!important}#tg-photo-feedback{color:#b44b50;font-size:12px;margin:8px 0 0}.tg-photo-heading button{padding:7px 10px!important;min-height:0!important}
.tg-channel-manager{padding:20px;margin-bottom:22px;background:#f2f7fa;border:1px solid #d9e6ee;border-radius:15px;display:grid;grid-template-columns:1fr auto;gap:12px}.tg-channel-manager h3{margin:0 0 5px}.tg-channel-manager p{margin:0;font-size:12px;color:#728b9a}.tg-channel-manager label,.tg-channel-manager>p{grid-column:1/-1}.tg-channel-manager select{width:100%;padding:12px;border:1px solid #cfdee8;border-radius:10px;background:white;color:#203b50;font:inherit}.tg-channel-picker{border:1px solid #cfe0eb;border-radius:15px;padding:16px;margin:0 0 20px;min-width:0;background:#f7fafc}.tg-channel-picker legend{font-weight:700;padding:0 8px;color:#245574}.tg-channel-picker>p{font-size:12px;color:#7b91a0;margin:0 0 12px}#tg-channel-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tg-channel-choice{display:flex!important;align-items:center;gap:10px;padding:13px!important;border:1px solid #dce6ed;border-radius:11px;background:white;cursor:pointer}.tg-channel-choice:has(input:checked){border-color:#2499c8;background:#eaf6fc;box-shadow:0 0 0 1px #2499c81a}.tg-channel-choice input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#218fbd;flex:none}.tg-channel-choice span{min-width:0;display:grid;gap:4px}.tg-channel-choice strong{font-size:12px;overflow-wrap:anywhere}.tg-channel-choice small{font-size:11px;color:#7b91a0}.tg-channel-choice.is-disabled{opacity:.55;cursor:default}#tg-channel-count{display:block;margin-top:10px;color:#2185ac}.tg-delivery-results{display:grid;gap:8px}.tg-delivery-result{padding:12px;border:1px solid #dbe6ec;border-radius:11px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.tg-delivery-result strong{font-size:12px;margin-inline-end:auto}.tg-delivery-result small{width:100%;color:#a66549}.tg-post-state.is-partial{background:#fff1d2;color:#996f23}@media(max-width:600px){#tg-channel-choices{grid-template-columns:1fr}.tg-channel-manager{padding:14px}.tg-channel-manager>div{grid-column:1/-1}}

/* Match the site's other settings accordions; stack channel fields. */
.settings-accordion.settings-telegram{--setting-tint:#fff;--setting-ink:#a18145;margin:0;min-width:0}
#settings-telegram .tg-config-grid{grid-template-columns:minmax(0,1fr);gap:18px}
#settings-telegram .tg-config-grid>label{display:grid;gap:7px;min-width:0}
#settings-telegram .tg-config-grid input{width:100%;box-sizing:border-box}
#settings-telegram .tg-token-field{grid-column:auto}
#settings-telegram #tg-token{padding-right:42px}
#settings-telegram .tg-switches label{display:flex;align-items:center;gap:9px;position:relative;cursor:pointer}
#settings-telegram .tg-config-actions{gap:10px}

#settings-telegram .tg-id-guide{margin:18px 0;border:1px solid #c9e3d4;border-radius:12px;background:#edf7f0;overflow:hidden}#settings-telegram .tg-id-guide>summary{padding:14px 16px;cursor:pointer;font-weight:600;color:#35664a;font-size:13px}#settings-telegram .tg-id-guide>div{padding:0 18px 16px;background:#edf7f0;color:#456755;font-size:13px;line-height:1.9}#settings-telegram .tg-id-guide p{margin:8px 0 12px}#settings-telegram .tg-command-copy{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#settings-telegram .tg-command-copy input{flex:1;min-width:200px;padding:10px 12px;background:#fff;border:1px solid #dce3e8;border-radius:8px;font:13px monospace;color:#245775}#settings-telegram .tg-id-guide ol{padding-inline-start:20px;margin:14px 0}#settings-telegram .tg-id-guide li{margin:7px 0}#settings-telegram .tg-id-guide small{color:#72838e;font-size:12px}#tg-copy-feedback:empty{display:none}

#tg-channel-choices{direction:rtl;align-items:start;gap:18px}.tg-destination-group{min-width:0}.tg-destination-group h3{font-size:14px;color:#29465d;margin:0 0 5px}.tg-destination-group>p{font-size:11px;line-height:1.8;color:#758b99;margin:0 0 12px}.tg-destination-list{display:grid;gap:10px}.tg-destination-empty{padding:18px 12px;border:1px dashed #d5dfe6;border-radius:10px;color:#82949f;font-size:12px;margin:0;background:#fff8}.tg-destination-group .tg-channel-choice{min-height:74px;box-sizing:border-box}@media(max-width:600px){#tg-channel-choices{gap:22px}}

.tg-destination-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.tg-destination-heading h3{margin:0}.telegram-admin .tg-destination-heading .tg-select-all{display:grid;place-items:center;min-height:30px;width:32px;padding:5px;border:1px solid #d2e1ea;border-radius:8px;color:#47758c;background:white;flex:none;box-shadow:none}.tg-destination-heading .tg-select-all:hover{background:#eaf5fa;color:#1679a1}.tg-destination-heading .tg-select-all[aria-pressed=true]{background:#e3f2f9;color:#147aa4;border-color:#8cc7e0}.tg-destination-heading .tg-select-all:focus-visible{outline:2px solid #248db7;outline-offset:2px}.tg-destination-heading .tg-select-all:disabled{opacity:.4;cursor:default}

.telegram-admin #tg-compose>label{margin:0 0 16px}.telegram-admin #tg-compose .tg-compose-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:10px}.telegram-admin #tg-compose .tg-compose-actions>button{width:100%;min-width:0;min-height:44px;box-sizing:border-box;white-space:normal;line-height:1.6}.telegram-admin .tg-photo-heading:has(button[hidden]){display:none}.telegram-admin .tg-photo-heading{justify-content:flex-end}.telegram-admin .tg-compose-layout>*{min-width:0}.telegram-admin .tg-photo-field{padding:14px;margin-bottom:18px}.telegram-admin #tg-compose input::placeholder,.telegram-admin #tg-compose textarea::placeholder{color:#778e9d;opacity:1}

.telegram-admin .tg-log-toolbar{margin:16px 0}.telegram-admin .tg-log-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px}.telegram-admin .tg-log-toolbar select{padding:7px 10px;border:1px solid #d8e2e9;border-radius:8px;background:white;font:inherit;color:#29465d}.telegram-admin .tg-post-log .pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #e1e8ed}.telegram-admin .tg-post-log .pagination>div{display:flex;align-items:center;gap:12px}.telegram-admin .tg-post-log .pagination button{min-height:36px;padding:8px 14px}.telegram-admin .tg-post-log .data-table th{font-weight:600}.telegram-admin .tg-post-log .data-table td{vertical-align:middle}@media(max-width:550px){.telegram-admin .tg-post-log .pagination>div{width:100%;justify-content:space-between}}

/* Keep the fieldset border flush with the preview; the legend must not add a top inset. */
.telegram-admin .tg-channel-picker{position:relative;padding-top:23px}
.telegram-admin .tg-channel-picker>legend{position:absolute;top:0;right:16px;transform:translateY(-50%);width:auto;max-width:calc(100% - 32px);box-sizing:border-box;background:#f7fafc;line-height:1.8;margin:0}
.telegram-admin .tg-compose-layout>form,.telegram-admin .tg-compose-layout>.tg-preview{margin-top:0;align-self:start}

#settings-telegram #tg-add-channel,#settings-telegram .tg-config-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 16px;border-radius:9px;line-height:1.5}#settings-telegram #tg-add-channel svg,#settings-telegram .tg-config-actions>button>svg{display:block;width:20px;height:20px;flex:none;visibility:visible;opacity:1}#settings-telegram #tg-add-channel{background:#216b87;border:1px solid #216b87;color:#fff;box-shadow:0 3px 8px #216b8714}#settings-telegram #tg-add-channel:hover{background:#18566f;border-color:#18566f}#settings-telegram #tg-test.is-connected{background:#278260;border:1px solid #278260;color:#fff}#settings-telegram #tg-test.is-connected:hover{background:#206d51;border-color:#206d51}#settings-telegram #tg-test.is-connected:disabled{opacity:.65}

#settings-telegram .tg-id-guide>summary{background:#e5f3e9}#settings-telegram .tg-id-guide small{color:#587563}#settings-telegram .tg-id-guide h4{color:#315d43}

/* Publishing workspace typography. Scoped so site settings and public cards retain their type scale. */
main.telegram-admin{font-size:17px;line-height:1.8}
.telegram-admin .tg-message-preview>p,.telegram-admin .tg-message-preview>strong,.telegram-admin .tg-channel-choice strong,.telegram-admin .tg-destination-group h3,.telegram-admin .tg-post-log .data-table th,.telegram-admin .tg-post-log .data-table td,.telegram-admin .tg-delivery-result strong{font-size:17px;line-height:1.8}
.telegram-admin form input:not([type=checkbox]),.telegram-admin form textarea,.telegram-admin form select,.telegram-admin button,.telegram-admin button[data-icon-preserve],.telegram-admin .tg-log-toolbar select,.telegram-admin .tg-post-log .pagination button{font-size:16px;line-height:1.75}
.telegram-admin form label,.telegram-admin form label>small,.telegram-admin .tg-section-heading>span,.telegram-admin .tg-muted,.telegram-admin .tg-preview-label,.telegram-admin .tg-preview-brand b,.telegram-admin .tg-message-preview>#tg-preview-link,.telegram-admin .tg-message-preview>small,.telegram-admin .tg-channel-link,.telegram-admin .tg-channel-picker>p,.telegram-admin .tg-channel-choice small,.telegram-admin .tg-destination-group>p,.telegram-admin .tg-destination-empty,.telegram-admin .tg-post-state,.telegram-admin .tg-post-log td>small,.telegram-admin .tg-post-log p,.telegram-admin .tg-log-toolbar label,.telegram-admin .tg-post-log .pagination,.telegram-admin .tg-delivery-result small,.telegram-admin #tg-post-feedback,.telegram-admin #tg-log-feedback,.telegram-admin #tg-photo-feedback,.telegram-admin #tg-character-count,.telegram-admin #tg-channel-count,.telegram-admin .tg-uncertain-confirm,.telegram-admin .tg-photo-upload small{font-size:15px;line-height:1.8}
.telegram-admin .tg-channel-picker legend{font-size:17px}.telegram-admin .tg-photo-upload{min-height:88px}.telegram-admin .tg-channel-choice{padding:14px!important}.telegram-admin .tg-preview-brand{align-items:flex-start}.telegram-admin .tg-preview-brand b{overflow-wrap:anywhere}.telegram-admin .tg-destination-heading .tg-select-all{min-width:34px;height:34px}.telegram-admin .tg-post-log .data-table td{overflow-wrap:anywhere}

.telegram-admin .tg-photo-upload>span{font-size:16px}.telegram-admin .page-label{font-size:15px}

.telegram-admin #compose>.tg-compose-layout{margin-top:28px}

/* Destination names use regular text weight in pickers and delivery lists. */
.admin-layout .tg-channel-choice strong,.admin-layout .tg-delivery-result strong,.tg-channel-manager :is(select,option){font-weight:400}

.tg-log-toolbar{align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}.tg-log-search{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.tg-log-search input{min-width:220px;max-width:100%;font-size:16px}.tg-log-search label{display:flex;align-items:center;gap:8px;font-size:15px}.tg-log-search select{min-width:160px;max-width:260px;font-size:15px}.tg-log-search label[hidden],th[data-tg-publisher-column][hidden]{display:none}@media(max-width:600px){.tg-log-search{width:100%}.tg-log-search input{width:100%;min-width:0}.tg-log-search select{max-width:100%}}

/* Plain destination rows; keep only a soft fill for checked choices. */
.telegram-admin .tg-channel-choice{border:0;background:transparent;box-shadow:none}
.telegram-admin .tg-channel-choice:has(input:checked){border:0;background:#eaf6fc;box-shadow:none}
.telegram-admin .tg-channel-choice strong{font-size:16px;font-weight:400}
.telegram-admin .tg-channel-choice small{font-size:14px}

.telegram-admin .tg-page-title{flex-wrap:wrap;gap:12px}.tg-history-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border:1px solid #cbdfea;border-radius:7px;background:#fff;color:#2a84a4;text-decoration:none;font:400 16px/1.6 Tajawal,Arial,sans-serif;white-space:nowrap}.tg-history-button svg{width:18px;height:18px;flex:none}.telegram-posts-page .tg-post-log{margin-top:0}.telegram-posts-page .data-table :is(th,td):first-child{width:54px;white-space:nowrap;overflow-wrap:normal;text-align:center}.telegram-admin .tg-photo-upload[data-field-layout="custom"]{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 12px;align-content:center}.telegram-admin .tg-photo-upload[data-field-layout="custom"]>span{grid-column:2;grid-row:1;position:static;transform:none;line-height:1.7}.telegram-admin .tg-photo-upload[data-field-layout="custom"]>small{grid-column:2;grid-row:2;position:static;line-height:1.6}.telegram-admin .tg-photo-upload[data-field-layout="custom"]>svg{grid-column:1;grid-row:1/3;align-self:center}.telegram-admin .tg-photo-upload[data-field-layout="custom"]>input{position:absolute;inset:0;opacity:0;width:100%;height:100%}

/* Keep post discovery beside the title and search controls on one row. */
.telegram-admin .tg-page-title>div{flex-wrap:wrap;gap:12px 18px;min-width:0}.telegram-admin .tg-page-title .tg-history-button{background:#eaf5fb;border-color:#9bc8dc;color:#216b87;font-weight:500}.telegram-admin .tg-page-title>.tg-channel-link{margin-inline-start:auto;white-space:nowrap}
.telegram-admin .tg-log-toolbar{display:flex;align-items:center;gap:14px 20px}.telegram-admin #tg-log-search{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;flex:1 1 640px;width:100%;max-width:880px;min-width:0;margin:0}.telegram-admin #tg-log-search>input{flex:1 1 0;width:0;min-width:0;max-width:none;height:44px;margin:0}.telegram-admin #tg-log-search>label{flex:0 1 180px;min-width:0;margin:0}.telegram-admin #tg-log-search select{width:100%;min-width:0;max-width:none;height:44px;margin:0}.telegram-admin #tg-log-search>button{flex:none;min-width:82px;min-height:44px;margin:0;white-space:nowrap}.telegram-admin #tg-log-search>label[hidden]{display:none}@media(max-width:600px){.telegram-admin #tg-log-search{gap:7px}.telegram-admin #tg-log-search>label{flex-basis:130px}.telegram-admin #tg-log-search>button{min-width:65px;padding-inline:10px}.telegram-admin #tg-log-search select{padding-inline:7px}.telegram-admin #tg-log-search>input{padding-inline:9px}}

.telegram-admin #tg-log-search :is(input,select,button){box-sizing:border-box;height:46px;min-height:46px}.telegram-admin #tg-log-search>button{padding-block:8px}

.telegram-admin .tg-page-title .tg-channel-link.tg-history-button{font:500 16px/1.6 Tajawal,Arial,sans-serif}.telegram-admin .tg-page-title .tg-channel-link.tg-history-button svg{width:18px;height:18px}

.publication-signature-text{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 Tajawal,Tahoma,sans-serif;border-top:1px solid #dce6ec;padding-top:12px;margin-top:14px}

.tg-header-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tg-header-actions .tg-history-button{margin:0}.tg-header-actions .tg-setup-button{order:0}.tg-header-actions .tg-channel-link{order:1}

.telegram-admin .tg-page-title .tg-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-start}.telegram-admin .tg-page-title .tg-header-actions .tg-history-button{background:#fff;border-color:#c6ddea;color:#347e9e;font:400 16px/1.6 Tajawal,Arial,sans-serif;min-height:38px;box-sizing:border-box;padding:8px 13px}.telegram-admin .tg-page-title{gap:18px;align-items:center}.telegram-admin .tg-page-title>div:first-child{flex:none}.tg-header-actions .tg-setup-button,.tg-header-actions .tg-channel-link{order:0}
