/* ==========================================================
   PSE Account Dock v0.1.0
   Bottom-left Google-only auth shell. Inspired by familiar compact
   account docks, but owned by the PSE layout contract.
   ========================================================== */
body > .psm-persistent-login.pse-auth-dock{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:7px 8px !important;
  pointer-events:auto !important;
  overflow:visible !important;
  z-index:1200 !important;
  background:#f8fafc !important;
  color:#0f172a !important;
  border-top:1px solid #cbd5e1 !important;
  border-right:1px solid #cbd5e1 !important;
}
.pse-auth-account-button{
  width:100%;
  height:42px;
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  padding:5px 7px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#0f172a;
  text-align:left;
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
.pse-auth-account-button:hover,
.pse-auth-account-button[aria-expanded="true"]{
  border-color:#dbe3ec;
  background:#eef2f7;
}
.pse-auth-account-button:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:1px;
}
.pse-auth-account-button:disabled{
  cursor:wait;
  opacity:.72;
}
.pse-auth-avatar{
  position:relative;
  flex:0 0 30px;
  width:30px;
  height:30px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d5dde7;
  border-radius:50%;
  background:#ffffff;
  color:#334155;
  font-size:12px;
  font-weight:900;
  line-height:1;
}
.pse-auth-avatar-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.pse-auth-avatar-image[hidden],
.pse-auth-avatar-fallback[hidden]{display:none !important}
.pse-auth-account-button[data-auth-state="signed-out"] .pse-auth-avatar-fallback{
  color:#2563eb;
  font-size:14px;
  font-family:Arial,sans-serif;
}
.pse-auth-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.pse-auth-primary{
  min-width:0;
  overflow:hidden;
  color:#0f172a;
  font-size:11px;
  font-weight:850;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pse-auth-secondary{
  min-width:0;
  overflow:hidden;
  color:#64748b;
  font-size:9px;
  font-weight:700;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pse-auth-chevron{
  flex:0 0 auto;
  color:#94a3b8;
  font-size:11px;
  transform:rotate(0deg);
  transition:transform .12s ease;
}
.pse-auth-account-button[aria-expanded="true"] .pse-auth-chevron{
  transform:rotate(180deg);
}
.pse-auth-account-button[data-auth-state="signed-out"] .pse-auth-chevron{display:none}
.pse-auth-menu{
  position:absolute;
  left:8px;
  bottom:calc(100% + 8px);
  width:258px;
  overflow:hidden;
  border:1px solid #d7dee8;
  border-radius:12px;
  background:#ffffff;
  color:#0f172a;
  box-shadow:0 18px 48px rgba(15,23,42,.18),0 2px 7px rgba(15,23,42,.08);
  z-index:2600;
}
.pse-auth-menu[hidden]{display:none !important}
.pse-auth-menu-account{
  padding:13px 14px 11px;
  border-bottom:1px solid #e5e7eb;
}
.pse-auth-menu-name{
  overflow:hidden;
  color:#0f172a;
  font-size:12px;
  font-weight:900;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pse-auth-menu-email{
  margin-top:3px;
  overflow:hidden;
  color:#64748b;
  font-size:10px;
  font-weight:650;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pse-auth-menu-section{
  display:grid;
  gap:7px;
  padding:11px 14px;
  border-bottom:1px solid #e5e7eb;
}
.pse-auth-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}
.pse-auth-meta-row strong{
  color:#0f172a;
  font-size:10px;
  font-weight:900;
}
.pse-auth-beta-value{
  display:inline-flex;
  align-items:center;
  padding:2px 6px;
  border:1px solid #bbf7d0;
  border-radius:999px;
  background:#f0fdf4;
  color:#15803d !important;
}
.pse-auth-notice{
  margin:10px 12px 0;
  padding:8px 9px;
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff7f7;
  color:#b91c1c;
  font-size:9px;
  font-weight:750;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.pse-auth-notice[hidden]{display:none !important}
.pse-auth-menu-actions{
  padding:8px;
}
.pse-auth-sign-out{
  width:100%;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#334155;
  font-size:11px;
  font-weight:800;
  text-align:left;
}
.pse-auth-sign-out:hover{background:#f1f5f9;color:#0f172a}
.pse-auth-sign-out:disabled{opacity:.55;cursor:wait}


/* ==========================================================
   PSE_AUTH_PROVIDER_MODAL_V1_5
   Extensible provider-shell login modal. Google is the only
   enabled provider in this release; future providers can be
   added as sibling .pse-auth-provider-button elements.
   ========================================================== */
.pse-auth-login-modal{
  position:fixed;
  inset:0;
  z-index:9800;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.pse-auth-login-modal[hidden]{display:none !important}
.pse-auth-login-dialog{
  width:min(404px,calc(100vw - 32px));
  overflow:hidden;
  border:1px solid rgba(148,163,184,.28);
  border-radius:18px;
  background:#ffffff;
  color:#0f172a;
  box-shadow:0 30px 80px rgba(15,23,42,.28),0 8px 24px rgba(15,23,42,.12);
  animation:pse-auth-modal-in .16s ease-out;
}
@keyframes pse-auth-modal-in{
  from{opacity:0;transform:translateY(6px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.pse-auth-login-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:21px 22px 12px;
}
.pse-auth-login-title{
  margin:0;
  color:#111827;
  font-size:22px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.025em;
}
.pse-auth-login-close{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#667085;
  cursor:pointer;
  font-family:Arial,sans-serif;
  font-size:25px;
  font-weight:300;
  line-height:1;
  transition:background .12s ease,color .12s ease;
}
.pse-auth-login-close:hover{background:#f2f4f7;color:#101828}
.pse-auth-login-close:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.pse-auth-login-body{
  display:grid;
  gap:14px;
  padding:12px 22px 22px;
}
.pse-auth-provider-button{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin:0;
  padding:0 18px;
  border:1px solid #d0d5dd;
  border-radius:11px;
  background:#ffffff;
  color:#1d2939;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  cursor:pointer;
  font-size:14px;
  font-weight:760;
  line-height:1;
  transition:border-color .12s ease,background .12s ease,box-shadow .12s ease,transform .08s ease;
}
.pse-auth-provider-button:hover{
  border-color:#b8c2d0;
  background:#f8fafc;
  box-shadow:0 3px 10px rgba(15,23,42,.07);
}
.pse-auth-provider-button:active{transform:translateY(1px)}
.pse-auth-provider-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.pse-auth-provider-button:disabled{cursor:wait;opacity:.64;transform:none}
.pse-auth-google-logo{
  flex:0 0 18px;
  width:18px;
  height:18px;
  display:block;
}
.pse-auth-login-notice{
  padding:9px 10px;
  border:1px solid #fecaca;
  border-radius:9px;
  background:#fff7f7;
  color:#b42318;
  font-size:11px;
  font-weight:650;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.pse-auth-login-notice[hidden]{display:none !important}
.pse-auth-login-legal{
  margin:2px 4px 0;
  color:#98a2b3;
  font-size:10.5px;
  font-weight:560;
  line-height:1.55;
  text-align:center;
}
.pse-auth-login-legal a{
  color:#667085;
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:#cbd5e1;
  text-underline-offset:2px;
  cursor:default;
}
@media (max-width:520px){
  .pse-auth-login-modal{padding:16px}
  .pse-auth-login-header{padding:19px 18px 10px}
  .pse-auth-login-body{padding:10px 18px 19px}
}
@media (prefers-reduced-motion:reduce){
  .pse-auth-login-dialog{animation:none}
}


/* PSE_STAGE4_2_DEV_PLAN_SWITCH_V1 */
.pse-auth-dev-plan-switch{
  display:grid;
  gap:6px;
  margin-top:3px;
  padding-top:9px;
  border-top:1px dashed #dbe3ec;
}
.pse-auth-dev-plan-switch[hidden]{display:none !important}
.pse-auth-dev-plan-label{
  color:#475569;
  font-size:9px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.pse-auth-dev-plan-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pse-auth-dev-plan-button{
  min-height:30px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  color:#475569;
  cursor:pointer;
  font-size:9px;
  font-weight:900;
}
.pse-auth-dev-plan-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}
.pse-auth-dev-plan-button.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.pse-auth-dev-plan-button:disabled{cursor:wait;opacity:.55}
.pse-auth-dev-plan-hint{color:#64748b;font-size:8.5px;font-weight:650;line-height:1.35}

/* PSE_WEB_EXTERNAL_DEPENDENCY_HARDENING_V1 */
#pseAuthRetryButton[hidden],#pseAuthVerifyRetryButton[hidden]{display:none !important}
