.mobile-remember{display:flex;align-items:center;gap:10px;font-size:14px;text-align:left;margin:16px 0;line-height:1.6}.mobile-remember input{width:20px;height:20px;flex-shrink:0;accent-color:#bd1e72}
.mobile-tools{margin:20px 0;padding:16px;background:#fff;border:1px solid #edd2df;border-radius:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#354355}.mobile-tools button,.mobile-tools a{font:inherit;font-size:14px;padding:11px 16px;border:1px solid #bc246f;border-radius:10px;background:white;color:#a51b60;cursor:pointer;min-height:44px;text-decoration:none}.mobile-tools p{margin:0;flex:1;min-width:180px;font-size:14px}.mobile-quick{display:none}.mobile-help{border:0;border-radius:18px;padding:24px;width:min(430px,calc(100% - 32px));box-sizing:border-box;color:#24364a}.mobile-help::backdrop{background:#0007}.mobile-help h2{font-size:21px}.mobile-help p{line-height:1.8}.mobile-help button{padding:12px 20px;min-height:44px;font:inherit;border:0;border-radius:8px;background:#ae1b67;color:white}.mobile-help:focus{outline:none}
@media(max-width:860px){input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important} .mobile-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}.mobile-quick a{display:flex;align-items:center;gap:10px;min-height:62px;background:#fff;border:1px solid #dbe4ed;padding:14px 12px;border-radius:12px;color:#24516a;text-decoration:none;font-size:15px;line-height:1.5}.mobile-quick a i{font-size:21px;color:#a72470}.mobile-quick-title{grid-column:1/-1;font-size:17px;margin:0;color:#304658}.mobile-tools{padding:12px;gap:8px}.mobile-tools p{flex-basis:100%}.mobile-tools button{flex:1}.portal-art{min-height:100px!important}.portal-info{padding:14px!important}body.modern-layout #modern-content{min-width:0} .modal-footer{gap:8px} .modal-footer .btn{min-height:44px}input[type=file]{max-width:100%}}
@media(max-width:400px){.mobile-quick a{padding:12px 8px;font-size:14px}.login-card,.login-box{padding:24px 18px!important}}

/* Floating access control is visible only on small screens. */
.mobile-tools{display:none}
.mobile-help-actions{display:flex;gap:10px;flex-wrap:wrap}.mobile-help-actions button{flex:1}.mobile-help-actions .mobile-help-close{background:#eef1f5;color:#354355}
@media(max-width:860px){
 body.mobile-access-floating{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
 .mobile-tools{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:1040;display:flex;max-width:calc(100vw - 32px);margin:0;padding:0;border:0;border-radius:16px;background:transparent;box-shadow:0 5px 20px #3e278b38}
 .mobile-tools button{flex:none;min-height:48px;padding:12px 18px;border:1px solid #ffffff50;border-radius:16px;background:#4938c9;color:#fff;font-weight:600;line-height:1.5;box-shadow:none}
 .mobile-tools button:focus-visible{outline:3px solid #c4baff;outline-offset:3px}
 body:has(dialog[open]) .mobile-tools,body.modal-open .mobile-tools{visibility:hidden}
}
@media(display-mode:standalone){.mobile-tools{display:none}}

.mobile-help{width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #e1e5ed;border-radius:22px;padding:24px;color:#243044;background:#fff;box-shadow:0 18px 70px #17154445}
.mobile-help::backdrop{background:#151c54a8;backdrop-filter:blur(3px)}
.mobile-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.mobile-help-heading h2{font-size:21px;line-height:1.4;margin:0;font-weight:700}
.mobile-help-heading .mobile-help-close{min-height:36px;padding:6px 12px;border-radius:10px;background:#f1f4f8;color:#53637a;font-size:14px;flex-shrink:0}
.mobile-help .mobile-help-install,.mobile-help .mobile-help-share{display:block;width:100%;min-height:48px;box-sizing:border-box;border-radius:12px;padding:12px 16px;font-size:15px;line-height:1.5}
.mobile-help .mobile-help-install{background:#4938c9;color:#fff;font-weight:600}
.mobile-help .mobile-help-share{background:#fff;border:1px solid #dce3ee;color:#35455d;margin-top:18px}
.mobile-help .mobile-help-guide{font-size:13px;line-height:1.8;color:#667b98;margin:12px 0 0;outline-offset:4px}
.mobile-help .mobile-help-status{font-size:13px;color:#4938c9;margin:8px 0 0}
.mobile-help-qr{display:block;width:196px;max-width:100%;margin:18px auto 0;line-height:0}
.mobile-help-qr img{display:block;width:100%;height:auto;background:#fff}
.mobile-help .mobile-help-caption{text-align:center;font-size:12px;color:#667b98;margin:14px 0 0;line-height:1.7}
@media(max-height:620px){.mobile-help{padding:18px}.mobile-help-qr{width:150px;margin-top:10px}.mobile-help .mobile-help-share{margin-top:12px}.mobile-help .mobile-help-caption{margin-top:8px}}

/* Keep page header rules from wrapping the mobile app bar. */
@media(max-width:860px){
 #modern-chrome #modern-topbar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:0 12px!important;box-sizing:border-box}
 #modern-chrome #modern-topbar>div:first-child{display:flex!important;align-items:center!important;flex:1 1 0!important;min-width:0!important;width:auto!important;gap:8px!important}
 #modern-chrome #modern-topbar>div:first-child>div{flex:1 1 0;min-width:0;overflow:hidden}
 #modern-chrome #modern-topbar>div+div{display:flex!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important}
 #modern-chrome #modern-topbar .title{display:block;font-size:14px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #modern-chrome #modern-topbar .title+br{display:none}
 #modern-chrome #modern-topbar small{display:block;max-width:100%;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #modern-chrome #modern-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:44px;padding:0}
 #modern-chrome #modern-topbar .modern-topbar-logout{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;white-space:nowrap;margin:0;line-height:1.4}
 .mobile-quick{padding:14px 12px 0;margin-bottom:18px;box-sizing:border-box}
 .mobile-quick-title{font-size:16px;line-height:1.5;margin:0 0 2px}
 .mobile-quick a{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:420px){
 #modern-chrome #modern-topbar .modern-topbar-logout{width:44px;padding:0;flex:0 0 44px;font-size:18px}
 #modern-chrome #modern-topbar .modern-logout-label{display:none}
}
