/* PUBLICBOOST · Google Sign-In visual refinement · 20261018.1
   Keep Google's official GIS button and OAuth credential callback.
   Google draws its iframe 20px wider / 4px taller than the intended button.
   Clip only that outer paint gutter, never hide the legitimate button. */

.auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:42px;
  height:42px;
  overflow:visible;
  padding:0;
  border:0;
  background:transparent;
}

.auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div {
  display:block;
  position:relative;
  flex:0 1 auto;
  max-width:100%;
  box-sizing:border-box;
  height:40px !important;
  min-height:40px;
  margin:auto !important;
  overflow:hidden !important;
  isolation:isolate;
  border-radius:999px;
  background:#131314;
  transition:box-shadow .18s ease,filter .18s ease;
}

.auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button iframe {
  /* Chrome can render an unwanted white frame gutter if its inherited
     color-scheme differs from the Google themed iframe. */
  color-scheme:normal;
}

@media (hover:hover) {
  .auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div:hover {
    box-shadow:0 0 0 2px rgba(157,120,245,.23),0 8px 24px rgba(119,84,227,.15);
    filter:brightness(1.045);
  }
}
.auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div:focus-within {
  outline:2px solid #a88cff;
  outline-offset:3px;
}

/* Google renders the matching official outline theme for light mode. */
:root[data-theme=light] .auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div {
  background:#fff;
}
:root[data-theme=light] .auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div:focus-within {
  outline-color:#7559da;
}
@media(prefers-reduced-motion:reduce) {
  .auth-gate:not([hidden]) .auth-panel.pb-auth-v5 .auth-google-button > div{
    transition:none;
  }
}
