/* tg-bot-page-fix — max specificity */
html.tg-bot-page main.ph-main .ph-page .tabs{
  display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;margin:0 0 12px!important;
}
html.tg-bot-page main.ph-main .ph-page .tabs .tab-status{margin-left:auto!important;display:flex!important;gap:8px!important;align-items:center!important}
html.tg-bot-page main.ph-main .ph-page .tabs button.tab{
  appearance:none!important;min-height:34px!important;height:auto!important;padding:6px 14px!important;
  font-size:13px!important;font-weight:650!important;border-radius:999px!important;cursor:pointer!important;
  background:transparent!important;color:#94a3b8!important;border:1px solid rgba(148,163,184,.28)!important;box-shadow:none!important;
}
html.tg-bot-page main.ph-main .ph-page .tabs button.tab.on{
  background:rgba(59,130,246,.18)!important;color:#e2e8f0!important;border-color:#3b82f6!important;
}
html.tg-bot-page:not([data-theme="dark"]) main.ph-main .ph-page .tabs button.tab.on{
  background:#eef2ff!important;color:#0f172a!important;border-color:#4f46e5!important;
}
html.tg-bot-page main.ph-main .ph-page form.form{display:block!important;max-width:none!important;width:100%!important}
html.tg-bot-page main.ph-main .ph-page .pane{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px 18px!important;align-items:start!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label{
  display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;
  font-size:13px!important;font-weight:600!important;color:#94a3b8!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label>small{font-size:12px!important;font-weight:500!important;color:#64748b!important}
html.tg-bot-page main.ph-main .ph-page .pane>label>input:not([type=checkbox]):not([type=radio]),
html.tg-bot-page main.ph-main .ph-page .pane>label>textarea,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .pane>label>input:not([type=checkbox]):not([type=radio]),
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .pane>label>textarea{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  min-height:28px!important;height:auto!important;padding:9px 12px!important;
  font-size:14px!important;font-weight:400!important;line-height:1.35!important;
  border:1px solid rgba(255,255,255,.14)!important;border-radius:8px!important;
  background:#141922!important;color:#eef2f7!important;box-shadow:none!important;transform:none!important;appearance:auto!important;
}
html.tg-bot-page:not([data-theme="dark"]) main.ph-main .ph-page .pane>label>input:not([type=checkbox]):not([type=radio]),
html.tg-bot-page:not([data-theme="dark"]) main.ph-main .ph-page .pane>label>textarea{
  background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.14)!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label>textarea{min-height:88px!important;resize:vertical!important}
html.tg-bot-page main.ph-main .ph-page .pane>label:has(>textarea),
html.tg-bot-page main.ph-main .ph-page .pane>.actions{grid-column:1/-1!important}
html.tg-bot-page main.ph-main .ph-page .pane>label.check{
  grid-column:1/-1!important;flex-direction:row!important;align-items:center!important;gap:8px!important;max-width:max-content!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label.check>input[type=checkbox],
html.tg-bot-page main.ph-main .ph-page input[type=checkbox]{
  width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;margin:0!important;padding:0!important;
  flex:0 0 16px!important;transform:none!important;appearance:auto!important;-webkit-appearance:checkbox!important;
  accent-color:#3b82f6!important;background:transparent!important;border:none!important;box-shadow:none!important;
}
html.tg-bot-page main.ph-main .ph-page .actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:4px!important}
html.tg-bot-page main.ph-main .ph-page .actions .btn,
html.tg-bot-page main.ph-main .ph-page .pane .btn,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .actions .btn,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page button.btn{
  width:auto!important;min-height:22px!important;height:22px!important;max-height:22px!important;padding:0 8px!important;font-size:11px!important;font-weight:550!important;line-height:1!important;border-radius:7px!important;box-shadow:none!important;
  font-size:13px!important;font-weight:650!important;border-radius:8px!important;box-shadow:none!important;
  display:inline-flex!important;align-items:center!important;
}
html.tg-bot-page main.ph-main .ph-page .actions .btn:not(.btn-ghost),
html.tg-bot-page main.ph-main .ph-page .actions .btn.btn-primary,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .actions .btn:not(.btn-ghost),
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .actions .btn.btn-primary,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page button.btn.btn-primary{
  background:#2563eb!important;background-color:#2563eb!important;color:#fff!important;border:1px solid transparent!important;
}
html.tg-bot-page main.ph-main .ph-page .actions .btn.btn-ghost,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page .actions .btn.btn-ghost,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page button.btn.btn-ghost{
  background:transparent!important;color:#e2e8f0!important;border:1px solid rgba(148,163,184,.3)!important;
}
html.tg-bot-page main.ph-main .ph-page span.pill,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page span.pill{
  display:inline-flex!important;align-items:center!important;padding:.25rem .65rem!important;
  border-radius:999px!important;font-size:12px!important;font-weight:700!important;border:1px solid transparent!important;
}
html.tg-bot-page main.ph-main .ph-page span.pill.on,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page span.pill.on{
  background:rgba(34,197,94,.16)!important;color:#86efac!important;border-color:rgba(34,197,94,.32)!important;
}
html.tg-bot-page main.ph-main .ph-page span.pill.off,
html.tg-bot-page[data-theme="dark"] main.ph-main .ph-page span.pill.off{
  background:rgba(239,68,68,.14)!important;color:#fca5a5!important;border-color:rgba(239,68,68,.32)!important;
}
html.tg-bot-page:not([data-theme="dark"]) main.ph-main .ph-page span.pill.on{background:#dcfce7!important;color:#166534!important}
html.tg-bot-page:not([data-theme="dark"]) main.ph-main .ph-page span.pill.off{background:#fee2e2!important;color:#991b1b!important}
@media (max-width:720px){html.tg-bot-page main.ph-main .ph-page .pane{grid-template-columns:1fr!important}}

/* fallback removed — was bleeding to other .ph-page forms (Ödeme yöntemleri etc.) */

/* TG COMPACT — buttons + type (preview) */
html.tg-bot-page main.ph-main .ph-page .actions .btn,
html.tg-bot-page main.ph-main .ph-page .actions button.btn,
html.tg-bot-page main.ph-main .ph-page .pane .actions .btn,
html.tg-bot-page main.ph-main .ph-page .pane .btn,
html.tg-bot-page main.ph-main .ph-page form.form .actions .btn,
html.tg-bot-page main.ph-main .ph-page form.form .actions button.btn,
html.tg-bot-page main.ph-main .ph-page button.btn.btn-primary,
html.tg-bot-page main.ph-main .ph-page button.btn.btn-ghost,
html.tg-bot-page .ph-page .actions .btn,
html.tg-bot-page .ph-page .actions button.btn,
html.tg-bot-page .ph-page button.btn:not(.tab){
  box-sizing:border-box!important;
  min-height:22px!important;height:22px!important;max-height:22px!important;
  padding:0 8px!important;margin:0!important;
  font-size:11px!important;font-weight:600!important;line-height:1!important;
  letter-spacing:0!important;border-radius:5px!important;
  width:auto!important;min-width:0!important;max-width:max-content!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:none!important;transform:none!important;filter:none!important;
}
html.tg-bot-page main.ph-main .ph-page .actions .btn.btn-primary,
html.tg-bot-page main.ph-main .ph-page button.btn.btn-primary,
html.tg-bot-page .ph-page .actions .btn.btn-primary,
html.tg-bot-page .ph-page .actions .btn:not(.btn-ghost){
  background:#3b82f6!important;color:#fff!important;border:1px solid transparent!important;
}
html.tg-bot-page main.ph-main .ph-page .actions .btn.btn-ghost,
html.tg-bot-page main.ph-main .ph-page button.btn.btn-ghost,
html.tg-bot-page .ph-page .actions .btn.btn-ghost{
  background:transparent!important;color:#94a3b8!important;border:1px solid rgba(148,163,184,.3)!important;font-weight:500!important;
}
html.tg-bot-page main.ph-main .ph-page .actions{gap:6px!important;margin-top:2px!important;align-items:center!important}
html.tg-bot-page main.ph-main .ph-page .pane>label{
  font-size:11.5px!important;font-weight:600!important;gap:4px!important;color:#94a3b8!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label>small{
  font-size:10.5px!important;font-weight:400!important;line-height:1.35!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label>input:not([type=checkbox]):not([type=radio]),
html.tg-bot-page main.ph-main .ph-page .pane>label>textarea{
  min-height:28px!important;height:auto!important;padding:4px 8px!important;
  font-size:12px!important;font-weight:400!important;line-height:1.3!important;
  border-radius:6px!important;
}
html.tg-bot-page main.ph-main .ph-page .pane>label>textarea{min-height:64px!important}
html.tg-bot-page main.ph-main .ph-page .tabs button.tab{
  min-height:26px!important;height:auto!important;padding:3px 10px!important;
  font-size:11.5px!important;font-weight:600!important;
}
html.tg-bot-page main.ph-main .ph-page span.pill{
  font-size:10.5px!important;padding:1px 7px!important;font-weight:700!important;
}

