/* AIHOSTING2_R130_GLOBAL_WHITE_BUTTONS
 * Single action-button contrast/interaction policy across light and dark modes.
 * Does not alter link targets, forms, authorization or hosting operations. */
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"],
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"]:is(:hover,:focus,:active,:focus-visible,:disabled),
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"][aria-disabled="true"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration-color: currentColor;
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"] :is(svg, i) {
  color: inherit !important;
  stroke: currentColor;
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"] {
  transition-property: transform, translate, box-shadow, filter, border-color, background-color, color !important;
  transition-duration: 180ms !important;
  transition-timing-function: ease-out !important;
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"]:not(:disabled):not([aria-disabled="true"]):hover {
  translate: 0 -1px;
  filter: brightness(1.045);
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"]:not(:disabled):not([aria-disabled="true"]):active {
  translate: 0 0;
  filter: brightness(.97);
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"]:focus-visible {
  outline: 3px solid rgba(68, 145, 255, .65) !important;
  outline-offset: 2px !important;
}
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"]:disabled,
:where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"][aria-disabled="true"] {
  translate: 0 0;
  filter: none;
  cursor: not-allowed !important;
}
/* For an explicitly white-text action whose computed surface is nearly white,
 * the companion script adds this small, reversible contrast fallback. */
:where(button, a, input[type="button"], input[type="submit"], [role="button"]).aih2-r130-white-surface,
:where(button, a, input[type="button"], input[type="submit"], [role="button"]).aih2-r130-white-surface:is(:hover,:focus,:active) {
  background: linear-gradient(110deg, #147bea, #3458e7) !important;
  border-color: #2867db !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* The original authenticated SSH Access Control form/button is retained. */
button[data-aih2-r130-ssh-toggle="1"] {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  border: 1px solid #2563eb !important;
  border-radius: 11px !important;
  background: linear-gradient(110deg, #147bea, #3458e7) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: transform .18s ease, translate .18s ease, filter .18s ease, box-shadow .18s ease !important;
}
button[data-aih2-r130-ssh-toggle="1"]:not(:disabled):hover {
  translate: 0 -1px !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.23) !important;
}
button[data-aih2-r130-ssh-toggle="1"]:disabled { opacity: .55 !important; cursor: not-allowed !important; }
button[data-aih2-r130-ssh-toggle="1"] :is(span,svg,i) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.aih2-r130-terminal-card { align-self: start !important; height: auto !important; min-height: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  :where(button, a, input[type="button"], input[type="submit"], [role="button"])[class~="text-white"],
  button[data-aih2-r130-ssh-toggle="1"] {
    transition-duration: 0ms !important;
    translate: 0 0 !important;
  }
}
