/* TS WhatsApp 13.0.32 — cross-theme control corrections.
   This file deliberately does not enable a disabled control or change authorization. */
html[data-theme="light"] body.ts-studio {
  --tsui-control-bg:#ffffff;
  --tsui-control-ink:#1b2a42;
  --tsui-control-line:#d7e0ec;
  --tsui-control-hover:#edf3ff;
  --tsui-control-muted:#64758f;
  --tsui-focus:#3569e7;
  color-scheme:light;
}
html[data-theme="dark"] body.ts-studio {
  --tsui-control-bg:#172338;
  --tsui-control-ink:#eef3ff;
  --tsui-control-line:#394963;
  --tsui-control-hover:#243656;
  --tsui-control-muted:#a7b7ce;
  --tsui-focus:#9db5ff;
  color-scheme:dark;
}
html[data-theme] body.ts-studio :is(button, a.btn, [role="button"], summary, select, input[type="checkbox"], input[type="radio"]):not(:disabled):not([aria-disabled="true"]):not(.disabled) {
  cursor:pointer!important;
}
/* Do not present busy / disabled controls as usable. They remain noninteractive. */
html[data-theme] body.ts-studio :is(button, .btn):disabled,
html[data-theme] body.ts-studio :is(button, .btn)[aria-disabled="true"] {
  opacity:.62!important;
  cursor:default!important;
  filter:none!important;
}
html[data-theme] body.ts-studio .content :is(button, a.btn, select, input, textarea, summary):focus-visible {
  outline:2px solid var(--tsui-focus)!important;
  outline-offset:2px!important;
}
html[data-theme] body.ts-studio .content :is(select, input, textarea) {
  color-scheme:inherit;
}
html[data-theme] body.ts-studio :is(select, select option, select optgroup) {
  background-color:var(--tsui-control-bg);
  color:var(--tsui-control-ink);
}
/* Give standard secondary actions a clearly clickable, theme-aware state. */
html[data-theme] body.ts-studio .content :is(a.btn.ghost, a.btn.secondary, button.ghost, button.secondary):not(:disabled) {
  background:var(--tsui-control-bg)!important;
  border:1px solid var(--tsui-control-line)!important;
  color:var(--tsui-control-ink)!important;
  opacity:1!important;
  filter:none!important;
  text-decoration:none!important;
}
html[data-theme] body.ts-studio .content :is(a.btn.ghost, a.btn.secondary, button.ghost, button.secondary):not(:disabled):hover {
  background:var(--tsui-control-hover)!important;
  border-color:var(--tsui-focus)!important;
}
html[data-theme] body.ts-studio :is(details,summary){color:var(--studio-ink)}
/* Accessible hit areas for compact general controls, without changing their state. */
html[data-theme] body.ts-studio .content :is(.btn,button):not(.icon-btn):not(.mini):not(.tiny) {
  text-decoration:none;
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] body.ts-studio .content :is(button,a.btn){transition:none!important;transform:none!important}
}
