/* Cashback Pro 36.9.2: centered modal, balanced gear control, theme-aware refresh. */
html body #tab-finance .auto-payout-row {align-items:center;}
html body #tab-finance .auto-payout-row .cb-auto-description {flex:1 1 auto;min-width:0;}
html body #tab-finance .cb-auto-actions {display:flex;flex:0 0 50px;flex-direction:column;align-items:center;justify-content:center;gap:12px;}
html body #tab-finance .cb-auto-actions .switch-control {margin:0;flex-shrink:0;}
html body #tab-finance .cb-auto-settings-gear {
  box-sizing:border-box;display:grid;place-items:center;align-self:center;width:40px;height:40px;padding:0;margin:0;
  border:0;background:transparent;color:var(--text-main,#ecf0ff);box-shadow:none;cursor:pointer;line-height:0;
}
html body #tab-finance .cb-auto-settings-gear svg {display:block;width:24px;height:24px;max-width:24px;max-height:24px;margin:0;flex:none;}
html body #tab-finance .cb-auto-settings-gear:is(:hover,:focus-visible) {outline:2px solid var(--purple,#9564f8);outline-offset:2px;}

/* The modal must be a child of <body>, independent of the scrolling card. */
html body #auto-payout-settings-modal.cb-auto-settings-backdrop {
  position:fixed!important;inset:0!important;width:100vw;height:100dvh;max-height:none!important;
  overflow-y:auto!important;z-index:101000!important;display:flex!important;align-items:center!important;
  justify-content:center!important;padding:18px!important;background:rgba(2,6,17,.75)!important;
  backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important;
}
html body #auto-payout-settings-modal.cb-auto-settings-backdrop.hidden {display:none!important;}
html body #auto-payout-settings-modal .cb-auto-settings-card {
  position:relative!important;box-sizing:border-box;width:min(100%,520px);max-width:520px;max-height:calc(100dvh - 36px);
  overflow-y:auto;margin:auto!important;padding:clamp(22px,5vw,32px);background:var(--bg-surface,#17223d);
  color:var(--text-main,#fff);border:1px solid var(--border-color,rgba(149,162,193,.35));border-radius:18px;
}
html body #auto-payout-settings-modal .modal-head {display:flex;align-items:center;justify-content:space-between;gap:8px;}
html body #auto-payout-settings-modal .form-label {font-size:15px;font-weight:750;color:var(--text-main,#fff);}
html body #auto-payout-settings-modal .form-control {min-height:50px;}
html body #auto-payout-settings-modal .cb-auto-time-trigger {
  width:100%;min-height:54px;padding:12px 16px;display:flex;align-items:center;gap:15px;
  text-align:left;color:var(--text-main,#fff);font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;
  background:var(--bg-surface-2,#10172b);border:1px solid var(--border-color,rgba(149,162,193,.35));
  border-radius:12px;cursor:pointer;
}
html body #auto-payout-settings-modal .cb-auto-time-trigger svg {width:24px;height:24px;flex:0 0 24px;}
html body #auto-payout-settings-modal .cb-auto-settings-note {font-size:13px;line-height:1.65;margin:7px 0 22px;color:var(--text-muted,#b1c1d9);}
html body #auto-payout-settings-modal .cb-auto-settings-save {display:block;width:100%;min-height:54px;}
html body #auto-payout-settings-modal .cb-auto-settings-switch-row {
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;
}
html body #auto-payout-settings-modal .cb-auto-settings-switch-row .form-label {display:block;margin:0 0 4px;}
html body #auto-payout-settings-modal .cb-auto-settings-subtext {
  margin:0;color:var(--text-muted,#b1c1d9);font-size:13px;line-height:1.55;
}
html body #auto-payout-settings-modal .cb-auto-settings-switch {
  flex:0 0 auto;margin:0 0 0 auto;
}
html body #auto-payout-settings-modal #cb-auto-time-section[hidden] {display:none!important;}
html body #auto-payout-settings-modal .cb-auto-time-trigger span {
  font-variant-numeric:tabular-nums;
}

/* Reuses the established themed clock panel and clock-face styling. */
html body .cb-schedule-clock-overlay {z-index:102000!important;position:fixed!important;inset:0!important;}
html body .cb-schedule-clock-overlay[hidden] {display:none!important;}
html body .cb-schedule-clock-overlay .cp-picker-panel {width:min(94vw,470px)!important;}
html body .cb-schedule-clock-overlay .cb-schedule-clock-content {padding:18px 16px 12px;max-height:calc(100dvh - 110px);overflow-y:auto;}
html body .cb-schedule-clock-overlay .cp-clock {border-top:1px solid var(--border-color,rgba(145,158,196,.3));padding:16px 0;}
html body .cb-schedule-clock-overlay .cb-schedule-time-labels {display:flex;justify-content:center;gap:42px;color:var(--text-muted,#b5c5dc);font-size:14px;}
html body .cb-schedule-clock-overlay .cb-schedule-inputs {display:flex;align-items:end;justify-content:center;gap:14px;margin:32px auto 50px;}
html body .cb-schedule-clock-overlay .cb-schedule-inputs label {display:grid;gap:8px;text-align:center;font-size:14px;color:var(--text-muted,#b5c5dc);}
html body .cb-schedule-clock-overlay .cb-schedule-inputs input {box-sizing:border-box;max-width:110px;width:25vw;min-height:68px;border-radius:14px;border:2px solid var(--purple,#865af1);background:var(--bg-surface-2,#17213e);color:var(--text-main,#fff);text-align:center;font-size:24px;font-weight:750;}
html body .cb-schedule-clock-overlay .cb-schedule-inputs > span {margin-bottom:18px;font-size:26px;font-weight:bold;color:var(--text-main,#fff);}
html body .cb-schedule-clock-overlay .cp-clock-digital .cp-clock-time-button.is-active {
  border:2px solid var(--purple,#865af1)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--purple,#865af1) 20%,transparent)!important;
  background:color-mix(in srgb,var(--purple,#865af1) 14%,var(--bg-surface-2,#152039))!important;
}
html body .cb-schedule-clock-overlay .cp-clock-time-button {font-variant-numeric:tabular-nums;}
html body .cb-schedule-clock-overlay .cb-schedule-clock-actions {border-top:1px solid var(--border-color,rgba(145,158,196,.3));margin-top:12px;padding-top:14px;}
html body .cb-schedule-clock-overlay .cb-clock-mode-toggle {min-width:48px;height:45px;border:1px solid var(--border-color,rgba(145,158,196,.4));border-radius:12px;background:var(--bg-surface-2,#151e37);color:var(--text-main,#fff);font-size:25px;cursor:pointer;}

/* One class for all "Làm mới" buttons except the home page button. */
html body button.cb-theme-refresh:not(#dashboard-refresh),
html body #tab-finance .customer-withdrawals-card .customer-withdrawals-refresh.cb-theme-refresh,
html body #admin-users-refresh.cb-theme-refresh,
html body #admin-bank-accounts-refresh.cb-theme-refresh {
  background:color-mix(in srgb,var(--bg-surface,#17243e) 78%,var(--purple,#9270fa) 22%)!important;
  background-image:none!important;color:var(--text-main,#eef4ff)!important;
  border:1px solid color-mix(in srgb,var(--purple,#9270fa) 42%,var(--border-color,#5b6280))!important;
  box-shadow:0 2px 10px rgba(10,12,27,.13)!important;
}
html body button.cb-theme-refresh:not(#dashboard-refresh):focus-visible {outline:2px solid var(--purple,#9270fa)!important;outline-offset:2px;}
@media (max-width:560px) {
  html body #tab-finance .auto-payout-row {gap:12px;}
  html body #tab-finance .cb-auto-actions {flex-basis:50px;}
  html body #auto-payout-settings-modal .cb-auto-settings-card {max-height:calc(100dvh - 24px);}
}

html body #tab-finance .customer-withdrawals-card .customer-withdrawals-refresh.cb-theme-refresh:hover:not(:active) {
  background:color-mix(in srgb,var(--bg-surface,#17243e) 73%,var(--purple,#9270fa) 27%)!important;
  color:var(--text-main,#eef4ff)!important;
  border-color:var(--purple,#9270fa)!important;
}

/* 36.9.4: keep the gear centred on the switch's axis across mobile themes. */
html body #tab-finance .cb-auto-actions {
  box-sizing:border-box!important; width:54px!important; min-width:54px!important; flex:0 0 54px!important;
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; grid-auto-rows:min-content!important;
  justify-items:center!important; align-content:center!important; gap:10px!important; padding:0!important;
}
html body #tab-finance .cb-auto-actions .switch-control,
html body #tab-finance .cb-auto-actions .cb-auto-settings-gear {
  justify-self:center!important; align-self:center!important; margin:0!important;
  float:none!important; position:relative!important; inset:auto!important; transform:none!important;
}
html body #tab-finance .cb-auto-actions .cb-auto-settings-gear {
  width:40px!important; height:40px!important; display:flex!important;
  align-items:center!important; justify-content:center!important; padding:0!important;
}
html body #tab-finance .cb-auto-actions .cb-auto-settings-gear svg {
  width:24px!important; height:24px!important; display:block!important;
  flex:none!important; transform:none!important;
}
/* Identical icon alignment in both clock pickers, even with theme styles targeting buttons. */
html body .cb-schedule-clock-overlay .cb-clock-mode-toggle,
html body .cp-picker-overlay .cp-clock-mode-toggle {
  display:inline-flex!important; justify-content:center!important; align-items:center!important;
  width:48px!important; min-width:48px!important; height:46px!important; padding:0!important;
  text-align:center!important; line-height:1!important; font-size:18px!important; flex-shrink:0!important;
}
html body .cb-schedule-clock-overlay .cb-clock-mode-toggle svg,
html body .cp-picker-overlay .cp-clock-mode-toggle svg {
  display:block!important; width:23px!important; height:23px!important; flex:none!important;
  margin:auto!important; transform:none!important;
}
html body .cb-schedule-clock-overlay .cb-schedule-inputs input::placeholder,
html body .cp-picker-overlay .cb-filter-clock-inputs input::placeholder {
  color:var(--text-muted,#aeb6ca)!important; opacity:.57!important;
}
html body .cb-schedule-clock-overlay .cb-schedule-inputs input:focus,
html body .cp-picker-overlay .cb-filter-clock-inputs input:focus {
  outline:2px solid var(--purple,#9464f8)!important; outline-offset:2px!important;
}
html body .cb-schedule-clock-overlay .cp-clock-face {touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;}
html body .cb-schedule-clock-overlay .cp-clock-face.is-dragging .cp-clock-hand {transition:none!important;}
html body .cp-picker-overlay .cb-filter-clock-inputs {
  display:flex;align-items:end;justify-content:center;gap:12px;width:100%;padding:20px 0 24px;
}
html body .cp-picker-overlay .cb-filter-clock-inputs label {
  display:grid;gap:8px;text-align:center;color:var(--text-muted,#aeb6ca);font-size:14px;
}
html body .cp-picker-overlay .cb-filter-clock-inputs input {
  display:block;box-sizing:border-box;width:min(24vw,110px);min-width:65px;max-width:110px;height:62px;
  border-radius:12px;border:2px solid var(--purple,#9464f8);background:var(--bg-surface-2,#161d36);
  color:var(--text-main,#f1f5ff);text-align:center;font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;
}
html body .cp-picker-overlay .cb-filter-clock-inputs > span {
  margin-bottom:15px;font-size:25px;font-weight:800;color:var(--text-main,#f1f5ff);
}
html body .cp-picker-overlay .cp-clock-keyboard {width:100%;}
html body .cp-picker-overlay .cb-filter-clock-actions {gap:6px!important;}
html body .cp-picker-overlay .cb-filter-clock-actions .cp-clock-mode-toggle {border-radius:12px!important;}
@media (max-width:390px) {
  html body .cp-picker-overlay .cb-filter-clock-actions {gap:5px!important;}
  html body .cp-picker-overlay .cb-filter-clock-actions .cp-clock-mode-toggle {width:43px!important;min-width:43px!important;}
  html body .cp-picker-overlay .cb-filter-clock-actions button {padding-left:8px!important;padding-right:8px!important;}
}

/* 36.9.6: remove white square wrappers while keeping real input/button surfaces. */
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group,
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group > .form-label,
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group::before,
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group::after {
  background:transparent!important;background-image:none!important;box-shadow:none!important;
  border:0!important;outline:0!important;
}
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group::before,
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group::after {content:none!important;}
html body #tab-finance .auto-payout-row .cb-auto-actions {
  flex:0 0 58px!important;width:58px!important;min-width:58px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:stretch!important;margin:0!important;padding:0!important;
}
html body #tab-finance .auto-payout-row .cb-auto-actions .cb-auto-settings-gear {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  position:static!important;transform:none!important;align-self:center!important;
  width:54px!important;height:54px!important;padding:0!important;margin:0!important;
  border:1px solid var(--border-color,rgba(149,162,193,.4))!important;
  border-radius:15px!important;
  background:color-mix(in srgb,var(--bg-surface,#f3f6ff) 93%,var(--purple,#7477c9) 7%)!important;
  box-shadow:0 2px 7px rgba(30,45,75,.08)!important;
}
html body #tab-finance .auto-payout-row .cb-auto-actions .cb-auto-settings-gear svg {
  display:block!important;width:26px!important;height:26px!important;margin:0!important;
}

/* V36.9.7: warning toast must appear in front of both nested clock dialogs. */
html body #toast-container {z-index:250000!important;}
html body #auto-payout-settings-modal #cb-auto-config-fields[hidden] {display:none!important;}
html body #admin-pane-ai-settings .ai-manager-toolbar {display:flex;flex-wrap:wrap;gap:9px;margin:10px 0;align-items:center;}
html body #admin-pane-ai-settings .ai-manager-extra[hidden],
html body #admin-pane-ai-settings [hidden] {display:none!important;}
html body #admin-pane-ai-settings .ai-manager-extra {margin:12px 0;padding:14px;border:1px solid var(--border-color,#c5ccdd);border-radius:13px;background:var(--bg-surface-2,rgba(127,140,172,.08));}
html body #admin-pane-ai-settings .ai-manager-extra label {display:block;margin-top:9px;}
html body #admin-pane-ai-settings .ai-key-row {flex-wrap:nowrap;}
html body #admin-pane-ai-settings .ai-key-row input {flex:1;min-width:0;}
html body #admin-pane-ai-settings .ai-clear-key-label {display:flex;gap:8px;align-items:center;font-size:13px;margin:10px 0;}
html body #admin-pane-ai-settings .ai-saved-models {display:flex;flex-wrap:wrap;gap:8px;margin:9px 0;}
html body #admin-pane-ai-settings .ai-saved-models .ai-model-chip {border:1px solid var(--border-color,#c5ccdd);border-radius:10px;padding:5px 8px;display:inline-flex;align-items:center;gap:8px;font-size:12px;max-width:100%;overflow-wrap:anywhere;}
html body #admin-pane-ai-settings .ai-saved-models .ai-model-chip button {min-width:26px;border:none;background:transparent;color:var(--text-main);cursor:pointer;}

/* V36.9.8: No white square wrappers in the automatic payout settings modal. */
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group,
html body #auto-payout-settings-modal .cb-auto-settings-card > .form-group > label,
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group,
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group > label,
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group::before,
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group::after {
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;outline:0!important;
}
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group::before,
html body #auto-payout-settings-modal #cb-auto-config-fields .form-group::after {content:none!important;}
/* AI add / edit forms are centered viewport dialogs, not inline cards. */
html body #cb-ai-editor-modal.cb-ai-editor-backdrop {
 position:fixed!important;inset:0!important;width:100vw;height:100dvh;z-index:120000!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:16px!important;overflow-y:auto!important;background:rgba(2,8,24,.72)!important;
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
html body #cb-ai-editor-modal.cb-ai-editor-backdrop.hidden {display:none!important;}
html body #cb-ai-editor-modal .cb-ai-editor-card {
 box-sizing:border-box!important;width:min(100%,510px)!important;max-width:510px!important;
 max-height:calc(100dvh - 32px);overflow-y:auto;margin:auto!important;padding:22px!important;
 background:var(--bg-surface,#1b2540);color:var(--text-main,#ecf0ff);
 border:1px solid var(--border-color,rgba(155,162,187,.35));border-radius:19px;
}
html body #cb-ai-editor-modal .modal-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px;}
html body #cb-ai-editor-modal [hidden] {display:none!important;}
html body #cb-ai-editor-modal .form-label {display:block;margin:12px 0 7px;font-weight:700;}
html body #cb-ai-editor-modal input.form-control {display:block;width:100%;box-sizing:border-box;min-height:50px;}
html body #cb-ai-editor-modal .cb-ai-editor-actions {display:flex;gap:10px;justify-content:flex-end;margin-top:22px;}
html body #cb-ai-editor-modal .cb-ai-editor-actions button {min-height:46px;}
html body #admin-pane-ai-settings .ai-manager-toolbar button[hidden] {display:none!important;}

/* V36.9.9: destructive action inside edit modal, not in the page toolbar. */
html body #cb-ai-editor-modal .cb-ai-editor-actions {flex-wrap:wrap;}
html body #cb-ai-editor-modal .cb-ai-editor-actions .cb-ai-delete:not([hidden]) {
  display:inline-flex;margin-right:auto;color:var(--danger,#dc4444);border-color:color-mix(in srgb,var(--danger,#dc4444) 50%,transparent);
}

/* V36.10.1 — confirmation must always cover the AI editor (z-index 120000). */
html body.cb-ai-confirming #theme-dialog-overlay {
    z-index: 160000 !important;
}
html body.cb-ai-confirming #cb-ai-editor-modal {
    pointer-events: none !important;
}


/* V36.10.3: reorganized AI configuration layout with balanced button grids and theme-matched inline icons. */
html body #admin-pane-ai-settings .ai-settings-config {
  display:grid;
  gap:16px;
}
html body #admin-pane-ai-settings .ai-config-block {
  display:grid;
  gap:10px;
}
html body #admin-pane-ai-settings .ai-config-block > label {
  margin:0;
  font-weight:700;
}
html body #admin-pane-ai-settings .ai-config-block-actions {
  margin-top:2px;
}
html body #admin-pane-ai-settings .ai-action-grid {
  display:grid;
  gap:10px;
  width:100%;
  align-items:stretch;
}
html body #admin-pane-ai-settings .ai-action-grid-two {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
html body #admin-pane-ai-settings .ai-action-grid-single {
  grid-template-columns:minmax(0,1fr);
}
html body #admin-pane-ai-settings .ai-action-button,
html body #admin-pane-ai-settings .ai-primary-button {
  width:100%;
  min-width:0;
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}
html body #admin-pane-ai-settings .ai-action-button span,
html body #admin-pane-ai-settings .ai-primary-button span {
  min-width:0;
  overflow-wrap:anywhere;
}
html body #admin-pane-ai-settings .ai-action-button .ui-line-icon,
html body #admin-pane-ai-settings .ai-primary-button .ui-line-icon {
  width:18px;
  height:18px;
  flex:0 0 auto;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html body #admin-pane-ai-settings .ai-primary-button {
  min-height:54px;
}
html body #admin-pane-ai-settings .ai-status-stack {
  display:grid;
  gap:10px;
}
html body #admin-pane-ai-settings .ai-status-note {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid color-mix(in srgb,var(--border-color,#7b89a6) 82%,transparent);
  background:color-mix(in srgb,var(--bg-surface-2,rgba(127,140,172,.08)) 88%,transparent);
  line-height:1.55;
}
html body #admin-pane-ai-settings .ai-template-block {
  padding-top:6px;
  border-top:1px solid color-mix(in srgb,var(--border-color,#7b89a6) 70%,transparent);
}
html body #admin-pane-ai-settings .ai-template-status {
  display:block;
  line-height:1.55;
  padding:2px 2px 0;
}
html body #admin-pane-ai-settings .ai-danger-button {
  color:var(--danger,#cf425f);
  border-color:color-mix(in srgb,var(--danger,#cf425f) 65%,transparent);
  background:color-mix(in srgb,var(--danger,#cf425f) 10%,transparent);
}
html body #admin-pane-ai-settings .ai-danger-button:hover {
  background:color-mix(in srgb,var(--danger,#cf425f) 14%,transparent);
}
html body #admin-pane-ai-settings .ai-manager-toolbar button[hidden],
html body #admin-pane-ai-settings .ai-action-grid button[hidden] {display:none!important;}
@media (max-width:640px){
  html body #admin-pane-ai-settings .ai-action-grid-two {
    grid-template-columns:minmax(0,1fr);
  }
}


/* V36.10.4: Theme-token Telegram group settings, desktop two-column / mobile single. */
#admin-pane-telegram-forums .tg-forum-warning {
  padding:14px 16px;
  margin:14px 0;
  border:1px solid color-mix(in srgb,var(--border-color,#8b92a8) 82%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--bg-surface-2,rgba(122,130,170,.12)) 86%,transparent);
  color:var(--text-main);
  line-height:1.55;
}
#admin-pane-telegram-forums .tg-forum-layout {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:start;
}
#admin-pane-telegram-forums .tg-forum-card {
  min-width:0;
  padding:17px;
  border:1px solid var(--border-color,#939aac);
  border-radius:17px;
  background:color-mix(in srgb,var(--bg-surface,#fff) 92%,transparent);
  display:grid;
  gap:11px;
}
#admin-pane-telegram-forums .tg-forum-card-title {display:flex;align-items:center;gap:10px;}
#admin-pane-telegram-forums .tg-forum-card-title h4 {margin:0;font-size:1.05rem;}
#admin-pane-telegram-forums .ui-line-icon {
  width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#admin-pane-telegram-forums label:not(.tg-forum-toggle) {font-weight:650;}
#admin-pane-telegram-forums .tg-forum-toggle {display:flex;align-items:center;gap:10px;cursor:pointer;}
#admin-pane-telegram-forums .tg-forum-toggle input {width:18px;height:18px;flex:0 0 auto;}
#admin-pane-telegram-forums .tg-forum-hint {line-height:1.55;margin:0;}
#admin-pane-telegram-forums .tg-forum-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#admin-pane-telegram-forums .tg-forum-actions button,
#admin-pane-telegram-forums .tg-forum-sync {
  width:100%;min-width:0;min-height:46px;display:flex;gap:9px;align-items:center;
  justify-content:center;text-align:center;
}
#admin-pane-telegram-forums .tg-forum-actions span,
#admin-pane-telegram-forums .tg-forum-sync span {min-width:0;overflow-wrap:anywhere;}
#admin-pane-telegram-forums .tg-forum-feedback {min-height:1.6em;line-height:1.5;}
@media(max-width:850px){
  #admin-pane-telegram-forums .tg-forum-layout {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:420px){
  #admin-pane-telegram-forums .tg-forum-actions {grid-template-columns:minmax(0,1fr);}
}

/* V36.10.5: owner-only group spans the width of the two operations cards. */
#admin-pane-telegram-forums .tg-forum-superadmin {grid-column:1 / -1;}
#admin-pane-telegram-forums .tg-forum-superadmin .tg-forum-hint {max-width:880px;}
