/* V12D mobile landing: use original auth actions inside #dock. */
@media(max-width:760px){
  #topbar{left:0!important;right:0!important;top:0!important;min-height:66px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:8px 12px!important;box-sizing:border-box!important;pointer-events:none}
  #topbar #mobileMenu,#topbar #mobileNav,#topbar #am12c-mobile-auth{display:none!important}
  #topbar #dock{display:flex!important;align-items:center!important;justify-content:center!important;
    gap:clamp(8px,2.7vw,14px)!important;width:min(100%,440px)!important;
    min-width:0!important;max-width:100%!important;min-height:54px!important;
    padding:4px 8px!important;margin:0!important;pointer-events:auto!important;
    box-sizing:border-box!important;flex:0 1 440px!important}
  #topbar #dock .dock-brand,#topbar #dock .dock-rule,#topbar #dock .dock-link,
  #topbar #dock .dock-contact:not([data-auth-action="login"]):not([data-auth-action="register"]){display:none!important}
  #topbar #dock button[data-auth-action="login"],#topbar #dock button[data-auth-action="register"]{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:6px!important;box-sizing:border-box!important;flex:1 1 0!important;
    width:auto!important;min-width:0!important;max-width:190px!important;
    min-height:44px!important;padding:10px clamp(8px,2.8vw,16px)!important;
    margin:0!important;border-radius:11px!important;font-size:clamp(12px,3.7vw,14px)!important;
    line-height:1.2!important;font-weight:700!important;white-space:nowrap!important;
    text-align:center!important;cursor:pointer!important;pointer-events:auto!important;
    opacity:1!important;visibility:visible!important;transform:none!important}
  #topbar #dock button[data-auth-action="login"]{
    order:1!important;background:#c9273c!important;border:1px solid #e14c5e!important;color:white!important}
  #topbar #dock button[data-auth-action="register"]{
    order:2!important;background:#236ccd!important;border:1px solid #418ff1!important;color:white!important}
  #topbar #dock button[data-auth-action="login"]:focus-visible,
  #topbar #dock button[data-auth-action="register"]:focus-visible{outline:2px solid #e9f4ff!important;outline-offset:3px!important}
  #topbar #dock button[data-auth-action] span[aria-hidden="true"]{display:none!important}
}

/* V12E: mobile auth buttons stay above decorative landing layers. */
@media (max-width:760px){
  html body #topbar{position:fixed!important;z-index:2147483000!important;isolation:isolate!important;pointer-events:auto!important}
  html body #topbar::before,html body #topbar::after,html body #dock::before,html body #dock::after{pointer-events:none!important}
  html body #topbar #dock{position:relative!important;z-index:1!important;pointer-events:auto!important}
  html body #topbar #dock button.am12e-auth-button{position:relative!important;z-index:3!important;pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important}
  html body #topbar #dock .dock-brand{display:none!important}
}
