.login-mobile-tools,.login-password-toggle{display:none}
@media screen and (max-width:700px){
 html:has(#loginView:not([hidden])),html:fullscreen:has(#loginView:not([hidden])){height:100%!important;overflow:hidden!important;background:var(--theme-background,#fffdf5)!important}
 body:has(#loginView:not([hidden])){height:100dvh!important;overflow:hidden!important;margin:0;background:var(--theme-background,#fffdf5)!important;color:var(--theme-font,#3b352a)!important}
 html body #loginView:not([hidden]){position:relative;display:flex!important;flex-direction:column;justify-content:flex-start;width:100%;height:100dvh!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:calc(18px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom))!important;background:var(--theme-background,#fffdf5)!important;gap:0!important;grid-template-columns:none}
 #loginView::-webkit-scrollbar{display:none}html body #loginView .login-art{display:none!important}
 html body #loginView .login-mobile-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;width:100%;max-width:460px;margin:0 auto 24px}
 .login-mobile-tools>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--theme-font,#3b352a);text-decoration:none;font:13px var(--theme-font-family,system-ui)}
 .login-mobile-tools button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--admin-border,#dde2db);border-radius:14px;background:color-mix(in srgb,var(--theme-button,#c88700) 7%,var(--theme-background,#fffdf5));color:var(--theme-font,#3b352a);padding:10px;touch-action:manipulation}
 .login-mobile-tools svg{width:20px;height:20px;flex-shrink:0}
 html body #loginView .login-card{flex:0 0 auto;width:100%;max-width:460px;margin:0 auto!important;padding:0!important;min-height:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none;animation:none}
 html body #loginView .login-brand{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 30px!important;min-height:48px}
 html body #loginView .login-brand img{width:46px;height:46px;border-radius:14px;padding:3px;background:color-mix(in srgb,var(--theme-button,#c88700) 9%,var(--theme-background,#fffdf5));box-shadow:none}
 html body #loginView .login-brand .store-name{font-size:17px!important;line-height:1.4;font-weight:600;overflow-wrap:anywhere;color:var(--theme-font,#3b352a)}
 html body #loginView .login-brand small{font-size:12px;line-height:1.5;color:var(--admin-muted,#768378)}
 html body #loginView .eyebrow{font-size:10px;letter-spacing:.14em;color:var(--theme-primary,#3f3a2e)}
 html body #loginView h1{font:600 29px/1.2 var(--theme-font-family,system-ui)!important;letter-spacing:-.7px;margin:10px 0 12px!important;color:var(--theme-font,#3b352a)}
 html body #loginView .login-card>p{font:13px/1.65 var(--theme-font-family,system-ui);color:var(--admin-muted,#768378);margin:0 0 28px!important}
 html body #loginView #loginForm{display:flex!important;flex-direction:column;gap:0!important;padding:0!important;background:transparent!important}
 html body #loginView #loginForm>label:not(.remember-login){font:500 13px/1.5 var(--theme-font-family,system-ui);color:var(--theme-font,#3b352a);margin:0 0 8px!important;display:block}
 html body #loginView #loginForm>:is(input,select),html body #loginView .login-password-field input{width:100%;height:50px!important;min-height:50px!important;border:1px solid var(--admin-border,#dde2db)!important;border-radius:14px!important;background:color-mix(in srgb,var(--theme-button,#c88700) 4%,var(--theme-background,#fffdf5))!important;color:var(--theme-font,#3b352a)!important;font:16px var(--theme-font-family,system-ui)!important;padding:12px 14px!important;transform:none!important;margin:0 0 20px!important;box-shadow:none}
 html body #loginView #loginForm>select{padding-right:34px!important}
 .login-password-field{position:relative;width:100%;margin:0 0 20px}
 html body #loginView .login-password-field input{margin:0!important;padding-right:52px!important}
 html body #loginView .login-password-toggle{display:grid;place-items:center;position:absolute;right:4px;top:3px;width:44px;height:44px;border:0;border-radius:11px;background:transparent;color:var(--admin-muted,#768378);padding:12px;touch-action:manipulation}
 .login-password-toggle svg{width:20px;height:20px}
 html body #loginView .remember-login{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px!important;margin:0 0 22px!important;border:1px solid var(--admin-border,#dde2db);border-radius:14px;background:color-mix(in srgb,var(--theme-button,#c88700) 5%,var(--theme-background,#fffdf5))}
 html body #loginView .remember-login input{width:20px!important;height:20px!important;min-height:20px!important;margin:2px 0 0!important;padding:0!important;flex:0 0 20px;accent-color:var(--theme-button,#c88700)}
 html body #loginView .remember-login span{display:grid;gap:4px;min-width:0}.remember-login strong{font-size:13px!important}.remember-login small{font-size:11px!important;line-height:1.5!important;color:var(--admin-muted,#768378)}
 html body #loginView .primary-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px!important;height:auto!important;padding:14px 18px!important;border:0!important;border-radius:14px!important;background:var(--theme-button,#c88700)!important;color:var(--theme-button-text,#fff)!important;box-shadow:none!important;font:600 14px var(--theme-font-family,system-ui)!important;transform:none!important}
 html body #loginView .primary-button:disabled{cursor:wait;opacity:.65}.primary-button:disabled>span{font-size:0}.primary-button:disabled>span:after{content:'';display:block;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:login-mobile-spin .8s linear infinite}
 html body #loginView .form-error{padding:12px 14px;margin:0 0 16px!important;font:12px/1.6 var(--theme-font-family,system-ui);border-radius:12px;overflow-wrap:anywhere}
 html body #loginView .back-link{display:none!important}
 @media(max-height:600px){html body #loginView .login-brand{margin-bottom:18px!important}html body #loginView .login-mobile-tools{margin-bottom:16px}html body #loginView .login-card>p{margin-bottom:20px!important}}
 @media(prefers-reduced-motion:reduce){.primary-button:disabled>span:after{animation-duration:1.6s}}
}
@keyframes login-mobile-spin{to{transform:rotate(360deg)}}
@media screen and (max-width:700px){
 html body #loginView:not([hidden]){padding-left:24px!important;padding-right:24px!important}
 html body #loginView .login-mobile-tools{margin-bottom:30px}
 html body #loginView .login-brand{margin-bottom:26px!important}
 html body #loginView h1{font-size:26px!important;line-height:1.3!important;letter-spacing:-.5px;margin-bottom:10px!important}
 html body #loginView .login-card>p{font-size:13px;line-height:1.7;margin-bottom:28px!important}
 html body #loginView .eyebrow{font-weight:500;letter-spacing:.11em}
 html body #loginView #loginForm>:is(input,select),html body #loginView .login-password-field input{background:color-mix(in srgb,var(--theme-button) 2%,var(--theme-background))!important;border-color:color-mix(in srgb,var(--theme-font) 12%,transparent)!important;border-radius:15px!important}
 html body #loginView .remember-login{border:0;background:color-mix(in srgb,var(--theme-button) 4%,var(--theme-background));padding:15px!important;border-radius:15px;gap:12px}
 html body #loginView .remember-login strong{font-weight:500}
 html body #loginView .primary-button{font-weight:500!important;min-height:50px!important;border-radius:15px!important}
 html body #loginView .login-brand .store-name{font-size:16px!important;font-weight:600}
}
.login-mobile-bottom{display:none}
@media screen and (max-width:700px){
 html body #loginView:not([hidden]){padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:100px}
 html body #loginView .login-card>:is(.eyebrow,h1,p){display:none!important}
 html body #loginView .login-mobile-tools{justify-content:flex-end;margin-bottom:20px}
 html body #loginView .login-mobile-tools>a,html body #loginView #loginForm>.primary-button{display:none!important}
 html body #loginView #loginLocation{appearance:none!important;-webkit-appearance:none!important;padding-right:48px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7788' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-position:right 18px center!important;background-repeat:no-repeat!important;background-size:18px!important}
 html body #loginView .login-mobile-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:fixed;bottom:0;left:0;right:0;z-index:100;padding:10px 18px calc(10px + env(safe-area-inset-bottom));background:var(--theme-background,#fffdf5);border-top:1px solid color-mix(in srgb,var(--theme-font) 12%,transparent)}
 html body #loginView .login-mobile-bottom :is(a,button){display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:10px 16px;border:0;border-radius:15px;color:var(--theme-font);background:color-mix(in srgb,var(--theme-button) 7%,var(--theme-background));font:500 14px var(--theme-font-family,system-ui);text-decoration:none;touch-action:manipulation}
 html body #loginView .login-mobile-bottom button{background:var(--theme-button);color:var(--theme-button-text,#fff)}
 html body #loginView .login-mobile-bottom svg{width:21px;height:21px;flex-shrink:0}
 html body #loginView .login-mobile-bottom button:disabled{opacity:.6;cursor:wait}
}
@media screen and (max-width:700px){
 html body #loginView .login-mobile-bottom{gap:8px;padding:9px 12px calc(12px + env(safe-area-inset-bottom))}
 html body #loginView .login-mobile-bottom :is(a,button){flex-direction:column;gap:6px;min-height:62px;padding:8px 6px;border-radius:16px;background:transparent;color:var(--theme-font);font-size:11px;font-weight:400}
 html body #loginView .login-mobile-bottom button{background:color-mix(in srgb,var(--theme-button) 9%,var(--theme-background));color:var(--theme-primary,var(--theme-font))}
 html body #loginView .login-mobile-bottom svg{width:23px;height:23px}
}
/* Compact login header and evenly spaced fields, using each store's palette. */
@media screen and (max-width:700px){
 html body #loginView:not([hidden]){padding-top:calc(24px + env(safe-area-inset-top))!important;padding-inline:20px!important;padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:112px}
 html body #loginView .login-brand{display:flex;align-items:center;gap:11px;width:100%;min-height:78px;margin:0 0 26px!important;padding:15px 14px;border:1px solid color-mix(in srgb,var(--theme-font) 9%,transparent);border-radius:19px;background:color-mix(in srgb,var(--theme-button) 4%,var(--theme-background));box-sizing:border-box}
 html body #loginView .login-brand img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;border-radius:13px}
 html body #loginView .login-brand>div{flex:1;min-width:0;display:grid;gap:3px}
 html body #loginView .login-brand .store-name{font:600 16px/1.35 var(--theme-font-family,system-ui)!important;letter-spacing:-.3px;overflow-wrap:anywhere}
 html body #loginView .login-brand small{font:400 11px/1.5 var(--theme-font-family,system-ui);color:color-mix(in srgb,var(--theme-font) 65%,var(--theme-background))}
 html body #loginView .login-brand .login-mobile-tools{flex:0 0 40px;max-width:40px;width:40px;margin:0!important;gap:0}
 html body #loginView .login-mobile-tools button{width:40px;height:40px;min-height:40px;border-radius:12px;padding:10px;background:var(--theme-background);border-color:color-mix(in srgb,var(--theme-font) 12%,transparent)}
 html body #loginView #loginForm>label:not(.remember-login){margin-bottom:8px!important;font:500 12px/1.5 var(--theme-font-family,system-ui)}
 html body #loginView #loginForm>:is(input,select),html body #loginView .login-password-field input{height:50px!important;min-height:50px!important;border-radius:13px!important;margin-bottom:19px!important;background:color-mix(in srgb,var(--theme-button) 2%,var(--theme-background))!important}
 html body #loginView .login-password-field{margin:0 0 19px!important}
 html body #loginView .login-password-field input{margin-bottom:0!important}
 html body #loginView #loginForm>:is(input,select):focus,html body #loginView .login-password-field input:focus{outline:0!important;border-color:var(--theme-button)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-button) 12%,transparent)!important;transform:none!important}
 html body #loginView .remember-login{margin:3px 0 16px!important;padding:14px!important;border-radius:13px;background:color-mix(in srgb,var(--theme-button) 4%,var(--theme-background));align-items:center}
 html body #loginView .remember-login input{margin:0!important}
 html body #loginView .remember-login strong{font:500 12px/1.5 var(--theme-font-family,system-ui)!important}
 html body #loginView .remember-login small{font:400 11px/1.6 var(--theme-font-family,system-ui)!important;color:color-mix(in srgb,var(--theme-font) 65%,var(--theme-background))}
 html body #loginView .login-mobile-bottom{padding-inline:max(16px,env(safe-area-inset-left));gap:10px}
}
/* Keep the mobile password wrapper out of the desktop form layout. */
@media screen and (min-width:701px){
 html body #loginView .login-password-field{display:contents}
 html body #loginView .login-password-field>#password{width:100%;min-width:0;box-sizing:border-box}
 html body #loginView :is(.login-password-toggle,.login-mobile-tools,.login-mobile-bottom){display:none!important}
}
