/* Precision Sun/Moon switch — 2026-11-19.
   Fast, synchronized GPU transforms; crisp SVG icons; visible night twinkle. */
html[data-af-appearance="store"] .af-appearance-choices{
  display:flex!important;justify-content:flex-start!important;align-items:center!important;
  width:100%!important;min-height:30px!important;padding:0!important;margin:5px 0 8px!important;
  gap:0!important;grid-template-columns:none!important;
}
html[data-af-appearance="store"] .af-appearance-caption,
html[data-af-appearance="store"] .af-sky-toggle-label{display:none!important}
html[data-af-appearance="store"] .af-sky-toggle{
  --af-rail-ease:cubic-bezier(.22,.75,.3,1);
  -webkit-appearance:none;appearance:none;display:block!important;position:relative!important;
  isolation:isolate;flex:0 0 66px!important;width:66px!important;min-width:66px!important;max-width:66px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  margin:0!important;padding:0!important;border-radius:999px!important;box-sizing:border-box!important;
  border:1px solid rgba(126,168,210,.78)!important;overflow:hidden!important;
  background:#cfedfd!important;color:#21456c!important;
  box-shadow:inset 0 1px 2px rgba(41,91,145,.12),0 2px 5px rgba(53,81,138,.10)!important;
  cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  transition:border-color .24s ease,box-shadow .24s ease!important;
}
html[data-af-appearance="store"] .af-sky-toggle::before,
html[data-af-appearance="store"] .af-sky-toggle::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
  transition:opacity .24s ease!important;
}
html[data-af-appearance="store"] .af-sky-toggle::before{
  opacity:1;background:linear-gradient(135deg,#c7eeff 5%,#edf9ff 72%,#f5fcff)!important;
}
html[data-af-appearance="store"] .af-sky-toggle::after{
  opacity:0;background:linear-gradient(135deg,#131f48 4%,#33295e 95%)!important;
}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-toggle{
  border-color:rgba(151,132,226,.77)!important;
  box-shadow:inset 0 1px 3px rgba(5,5,24,.30),0 2px 6px rgba(70,52,165,.18)!important;
}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-toggle::before{opacity:0!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-toggle::after{opacity:1!important}
html[data-af-appearance="store"] .af-sky-scenery{position:absolute;inset:0;z-index:1;pointer-events:none}
html[data-af-appearance="store"] .af-sky-thumb{
  position:absolute;top:2px;left:2px;z-index:2;width:23px;height:23px;box-sizing:border-box;
  border-radius:50%!important;border:1px solid rgba(253,236,165,.96)!important;
  background:linear-gradient(145deg,#fff1a0 0%,#ffd05a 54%,#fca442 100%)!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 1px 3px rgba(189,107,26,.21)!important;
  transform:translate3d(0,0,0);will-change:transform;
  transition:transform .24s var(--af-rail-ease),background-color .24s ease,box-shadow .24s ease,border-color .24s ease!important;
  pointer-events:none;
}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-thumb{
  transform:translate3d(36px,0,0);
  border-color:rgba(255,255,255,.96)!important;
  background:linear-gradient(155deg,#fff 0%,#e4e8ff 68%,#b6c0f4 100%)!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 1px 4px rgba(170,163,255,.24)!important;
}
html[data-af-appearance="store"] .af-sky-icon{
  position:absolute;z-index:3;top:5px;width:19px;height:19px;display:grid!important;place-items:center!important;
  transform:scale(1);transform-origin:center;pointer-events:none;
  transition:opacity .22s ease,transform .24s var(--af-rail-ease),filter .24s ease!important;
}
html[data-af-appearance="store"] .af-sky-icon-sun{left:4px;opacity:1}
html[data-af-appearance="store"] .af-sky-icon-moon{right:4px;opacity:.84;transform:scale(.94)}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-icon-sun{opacity:.66;transform:scale(.83)}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-sun path{stroke:#aea0ee!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-sun circle{fill:#bbb0f2!important;stroke:#a99bec!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-icon-moon{opacity:1;transform:scale(1)}
html[data-af-appearance="store"] .af-sky-icon svg{display:block;width:19px;height:19px;overflow:visible;shape-rendering:geometricPrecision}
html[data-af-appearance="store"] .af-sky-sun{transform-origin:50% 50%;animation:af-sky-sunspin 12s linear infinite!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-sun{animation:none!important}
html[data-af-appearance="store"] .af-sky-moon{filter:drop-shadow(0 0 1px rgba(255,255,255,.18))!important;animation:none!important}
html[data-af-appearance="store"] .af-sky-cloud{
  position:absolute;top:8px;left:28px;z-index:1;width:8px;height:4px;border-radius:8px;
  opacity:.9;background:rgba(255,255,255,.95);box-shadow:3px -3px 0 rgba(255,255,255,.95),6px 0 0 rgba(255,255,255,.88);
  animation:af-cloud-drift 5s ease-in-out infinite alternate!important;
  transition:opacity .18s ease!important;
}
html[data-af-appearance="store"] .af-sky-cloud-two{top:20px;left:35px;width:5px;height:3px;opacity:.58;animation-delay:-2.5s!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-cloud{opacity:0!important;animation:none!important}
html[data-af-appearance="store"] .af-sky-star{
  position:absolute;z-index:1;display:block;width:5px;height:5px;transform:scale(.5);
  background:#e5ddff;clip-path:polygon(50% 0%,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
  opacity:0;transition:opacity .2s ease!important;
}
html[data-af-appearance="store"] .af-sky-star-one{left:26px;top:5px;width:6px;height:6px;animation-delay:-.4s!important}
html[data-af-appearance="store"] .af-sky-star-two{left:35px;top:17px;width:4px;height:4px;animation-delay:-1.2s!important}
html[data-af-appearance="store"] .af-sky-star-three{left:28px;top:22px;width:3px;height:3px;animation-delay:-2.6s!important}
html[data-af-appearance="store"] .af-sky-star-four{left:37px;top:6px;width:4px;height:4px;animation-delay:-2.1s!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-star{
  opacity:1;animation:af-star-twinkle 1.6s ease-in-out infinite alternate!important;
}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-star-one{animation-delay:-.4s!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-star-two{animation-delay:-1.2s!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-star-three{animation-delay:-2.6s!important}
html[data-af-appearance="store"][data-af-ux="nova"] .af-sky-star-four{animation-delay:-2.1s!important}
@keyframes af-sky-sunspin{to{transform:rotate(360deg)}}
@keyframes af-cloud-drift{from{transform:translateX(-2px)}to{transform:translateX(2px)}}
@keyframes af-star-twinkle{0%,100%{transform:scale(.7);opacity:.58}50%{transform:scale(1.18);opacity:1}}
html[data-af-appearance="store"] .af-sky-toggle:focus-visible{outline:2px solid #8c6bec!important;outline-offset:3px!important}
html[data-af-appearance="store"] .af-sky-toggle:active{filter:brightness(1.07)}
/* Account menu: solid in both themes, independent of backdrop-filter support. */
html[data-af-appearance="store"][data-af-ux="nova"] #userMenu {
  background:linear-gradient(150deg,rgba(34,37,72,.80) 0%,rgba(22,25,55,.76) 52%,rgba(14,18,39,.78) 100%)!important;
  background-color:rgba(21,26,51,.78)!important;
  color:#f4f3ff!important;border:1px solid rgba(134,127,185,.48)!important;
  box-shadow:0 16px 42px rgba(2,6,23,.34),0 0 0 1px rgba(152,137,220,.14)!important;
  backdrop-filter:blur(18px) saturate(180%)!important;-webkit-backdrop-filter:blur(18px) saturate(180%)!important;
  opacity:1!important;
}
html[data-af-appearance="store"][data-af-ux="luma"] #userMenu {
  background:linear-gradient(155deg,rgba(248,252,255,.80) 0%,rgba(236,246,251,.76) 54%,rgba(227,239,247,.74) 100%)!important;
  background-color:rgba(230,245,251,.76)!important;
  color:#163a55!important;border:1px solid rgba(154,200,223,.62)!important;
  box-shadow:0 16px 36px rgba(39,83,107,.18),0 0 0 1px rgba(255,255,255,.52)!important;
  backdrop-filter:blur(18px) saturate(180%)!important;-webkit-backdrop-filter:blur(18px) saturate(180%)!important;
  opacity:1!important;
}
/* Keep the menu on screen rather than spreading content across a huge overlay. */
html[data-af-appearance="store"] #userMenu {box-sizing:border-box;max-width:calc(100vw - 20px);border-radius:18px!important;overflow-x:hidden}
html[data-af-ux="luma"] #userMenu [data-profile-user-name],html[data-af-ux="luma"] #userMenu > div > a:not(.af-msg-menu-link) {color:#193d58!important}
html[data-af-ux="nova"] #userMenu [data-profile-user-name],html[data-af-ux="nova"] #userMenu > div > a:not(.af-msg-menu-link) {color:#f3efff!important}
html[data-af-ux="luma"] #userMenu button.af-choice {color:#204c67!important}
html[data-af-ux="nova"] #userMenu button.af-choice {color:#ece8ff!important}

/* Login: compact right-aligned corner switch, no full-width button bar. */
html[data-af-appearance="store"] body.af-auth-ui .page > .af-login-appearance {
  justify-content:flex-end!important;
  max-width:400px!important;
  padding-inline:0!important;
}

html[data-af-appearance="store"][data-af-ux] body.af-auth-ui > .page > .af-login-appearance > .af-appearance-choices {
  display:flex!important;justify-content:flex-end!important;grid-template-columns:none!important;
  width:66px!important;min-width:66px!important;max-width:66px!important;min-height:30px!important;margin:0!important;gap:0!important;
}
html[data-af-appearance="store"] body.af-auth-ui .af-appearance-caption {display:none}
html[data-af-appearance="store"] body.af-auth-ui .page > .glass-card {
  border-radius:25px!important;border:1px solid #9286c86b!important;
  background:linear-gradient(146deg,#252042eb 0%,#100e27f5 55%,#11182ded 100%)!important;
  box-shadow:0 20px 60px #05051f95,0 0 20px #754fe321,inset 0 1px 0 #ffffff32!important;
}
html[data-af-ux="luma"] body.af-auth-ui .page > .glass-card {
  background:linear-gradient(155deg,#f7fdffed,#e9f3fcf5 65%,#e2eafaef)!important;
  border-color:#b4d1e8!important;box-shadow:0 18px 42px #39617b38,inset 0 1px 0 #fff!important;
}
/* Google controls their own signed-in iframe. Clip its visible corners instead of
   replacing the Google SDK UI or touching token/credential handling. */
html[data-af-appearance="store"] body.af-auth-ui #googleSection {max-width:100%;min-width:0}
html[data-af-appearance="store"] body.af-auth-ui #googleBtnContainer.af-google-pill {
  position:relative;box-sizing:border-box;width:100%;max-width:400px;
  min-width:0;min-height:40px;max-height:44px;overflow:hidden;border-radius:999px!important;
  background:#fff!important;box-shadow:0 4px 17px #17123d34,0 0 0 1px #aba5d75e!important;
  isolation:isolate;
  clip-path:inset(0 round 999px);
}
html[data-af-appearance="store"] body.af-auth-ui #googleBtnContainer.af-google-pill iframe,
html[data-af-appearance="store"] body.af-auth-ui #googleBtnContainer.af-google-pill > div {
  border-radius:999px!important;max-width:100%!important;overflow:hidden;
}
html[data-af-appearance="store"] body.af-auth-ui #googleRetry {border-radius:999px!important;min-height:42px}
@media(max-width:350px){html[data-af-appearance="store"] #userMenu{right:8px!important}}


/* Retain essential theme state transition for the specific toggle with reduced-motion
   devices, without overriding site-wide motion behavior elsewhere. */
/* The essential Sun/Moon visual state and twinkle remain available even when
   a user requests reduced system motion; no layout movement is introduced. */

/* Theme-dependent opaque backdrop referenced by the menu's critical inline paint.
   Unlike the old glass background, the menu never becomes see-through,
   including on slow devices before ux-theme.js has executed. */
html[data-af-appearance="store"][data-af-ux="nova"] {
  --af-menu-opaque-surface:linear-gradient(145deg,rgba(30,33,67,.92) 0%,rgba(23,26,55,.90) 52%,rgba(16,22,41,.92) 100%);
}
html[data-af-appearance="store"][data-af-ux="luma"] {
  --af-menu-opaque-surface:linear-gradient(155deg,rgba(248,252,255,.92) 0%,rgba(236,246,251,.89) 54%,rgba(227,239,247,.90) 100%);
}
/* Only the compact control is changed; it remains keyboard focusable. */
