/* Mobile preview fixes; production and catalogue candidate remain separate. */
@media(max-width:800px){
 .mobile-brand-bar nav{gap:4px}
 .mobile-brand-bar nav a,.mobile-brand-bar nav a.mobile-login{width:44px;height:44px;min-height:44px;padding:0;box-sizing:border-box;border:0;border-radius:12px;background:transparent}
 .mobile-brand-bar nav a:hover,.mobile-brand-bar nav a:focus-visible{background:#ffffff24;outline:2px solid #ffffffa0;outline-offset:-3px}
 .mobile-brand-bar nav svg{display:block;width:22px;height:22px;flex:none}
 .home-current .home-switch{display:inline-flex}
 .home-record-grid .home-history tbody tr{height:auto;min-height:0;padding:12px 0;border-bottom:1px solid #edeef2}
 .home-record-grid .home-history tbody td:first-child{margin-bottom:7px}
 .home-history.kind-ydh .inline-nums{grid-template-columns:repeat(6,minmax(0,27px));gap:7px!important}
 .home-history .inline-nums{row-gap:7px!important}
 .home-picker-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .home-picker-categories button{min-height:40px;font-size:11px;padding:6px 3px}
 .home-picker-categories small{font-size:9px}
 .home-lottery-dialog{box-sizing:border-box;max-height:calc(100dvh - 24px)}
 .home-chooser-grid{overscroll-behavior:contain}
}

/* A polled replacement starts at the current clock position, never at zero. */
@media(max-width:800px){
 #home-plan-live>.home-active-plan::after{transition:none}
 #home-plan-live>.home-active-plan.progress-ready::after{transition:width .85s linear}
}
@media(prefers-reduced-motion:reduce){#home-plan-live>.home-active-plan.progress-ready::after{transition:none}}
