.mobile-site-header{display:none}
@media(max-width:767px){
 body .sidebar,body:has(.duomi-home) .sidebar,body .topbar,body:has(.duomi-home) .topbar{display:none!important}
 .mobile-site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-height:64px;padding:10px 24px;background:#fff;border-bottom:1px solid #eee}
 .mobile-nav-toggle{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:10px;background:transparent;color:#1d1d1f;flex-shrink:0}
 .mobile-nav-toggle svg{width:24px;height:24px}
 .mobile-site-brand{display:flex;align-items:center;gap:7px;margin-left:auto;text-decoration:none;color:#1d1d1f;white-space:nowrap}
 .mobile-site-brand img{width:23px;height:28px;object-fit:contain;flex-shrink:0}
 .mobile-site-brand strong{font-size:16px;font-weight:650;letter-spacing:-.5px}
 .mobile-site-brand small{font-size:12px;font-weight:600;line-height:1.4;border-left:1px solid #d9d9dd;padding-left:7px;margin-left:1px}
 .mobile-nav-toggle:focus-visible,.mobile-site-brand:focus-visible{outline:2px solid #0071e3;outline-offset:3px}
 .main{margin-top:0}
 dialog.mobile-navigation-dialog{position:fixed;inset:0 auto 0 0;margin:0;width:min(300px,85vw);max-width:85vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:24px 20px;box-sizing:border-box;overflow-y:auto;color:#1d1d1f;background:#fff}
 dialog.mobile-navigation-dialog[open]{display:flex;flex-direction:column}
 dialog.mobile-navigation-dialog::backdrop{background:#0006;backdrop-filter:blur(3px)}
 .mobile-navigation-dialog h2{font-size:20px;margin:0 48px 24px 0;min-height:36px;display:flex;align-items:center}
 .mobile-navigation-dialog .close{top:20px;right:16px;width:44px;height:44px;background:#f5f5f7;border-radius:10px}
 .mobile-drawer-links,.mobile-drawer-account-links{display:grid;gap:8px}
 .mobile-drawer-links button,.mobile-drawer-account-links button{min-height:48px;padding:12px 14px;border:0;border-radius:12px;text-align:left;font-size:16px;background:transparent;color:#313139}
 .mobile-drawer-links button[aria-current="page"]{background:#eaf3ff;color:#0071e3;font-weight:600}
 .mobile-drawer-account{margin-top:auto;padding-top:24px;border-top:1px solid #e5e5ea}
 .mobile-drawer-profile{display:flex;align-items:center;gap:12px;padding:12px 0}
 .mobile-drawer-profile .account-avatar{width:36px;height:36px;flex:0 0 36px;font-size:14px}
 .mobile-drawer-profile>div{display:grid;gap:4px;min-width:0}
 .mobile-drawer-profile strong{font-size:15px;overflow-wrap:anywhere}
 .mobile-drawer-profile small{font-size:13px;color:#777}
 .mobile-drawer-account-links{gap:4px;margin-bottom:env(safe-area-inset-bottom)}
 .mobile-drawer-account-links button{font-size:14px;min-height:44px}
}

@media(max-width:767px){.mobile-drawer-account-links .mobile-drawer-quota{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-drawer-quota span:last-child{font-size:13px;color:#777;white-space:nowrap}}

/* A compact account overview, with details one tap away. */
dialog.account-profile-dialog{width:420px;max-width:calc(100vw - 32px);padding:24px;border-radius:22px;box-sizing:border-box}
.account-profile-dialog>h2{font-size:22px;line-height:1.4;margin:0 44px 8px 0}
.account-profile-dialog .account-email{font-size:14px;color:#777;overflow-wrap:anywhere;margin:0 0 20px;line-height:1.6}
.account-profile-dialog .compact-account{padding:18px;margin:0 0 20px;background:#f5f5f7;border-radius:16px;box-shadow:none}
.account-profile-dialog .account-summary{gap:12px;align-items:flex-start;margin-bottom:18px}
.account-profile-dialog .account-plan{gap:6px;min-width:0}
.account-profile-dialog .account-plan>.muted{font-size:13px}
.account-profile-dialog .account-plan>strong{font-size:16px;line-height:1.5}
.account-profile-dialog .account-plan .tag{font-size:12px;padding:4px 8px}
.account-profile-dialog .account-summary>button{font-size:13px;padding:8px 0;min-height:44px;white-space:nowrap;color:#0066cc}
.account-profile-dialog .account-balance{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:0}
.account-profile-dialog .account-balance>span:first-child{font-size:14px;color:#777}
.account-profile-dialog .account-balance>strong{font-size:30px;line-height:1.3;letter-spacing:-.5px;overflow-wrap:anywhere}
.account-profile-dialog .account-held{flex-basis:100%;font-size:13px}
.account-profile-dialog .account-expiry{font-size:13px;line-height:1.6;margin:12px 0 0}
.account-profile-dialog .account-signout{width:100%;min-height:44px;padding:10px;background:transparent;border:1px solid #dddde3;border-radius:12px;color:#686873;font-size:14px}

@media(max-width:767px){
 .mobile-drawer-section-title{font-size:12px;font-weight:500;color:#86868b;margin:14px 14px 2px;line-height:1.5}
 .mobile-drawer-links{gap:4px;margin-bottom:24px}
 dialog.mobile-navigation-dialog[open]{animation:mobile-drawer-enter 260ms cubic-bezier(.2,.8,.2,1)}
 dialog.mobile-navigation-dialog[open]::backdrop{animation:mobile-drawer-backdrop-enter 260ms ease}
}
@keyframes mobile-drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes mobile-drawer-backdrop-enter{from{background:transparent;backdrop-filter:blur(0)}to{background:#0006;backdrop-filter:blur(3px)}}
@media(prefers-reduced-motion:reduce){dialog.mobile-navigation-dialog[open],dialog.mobile-navigation-dialog[open]::backdrop{animation:none}}

@media(max-width:767px){
 .mobile-drawer-brand{margin:0 44px 16px 0;min-height:44px;justify-content:flex-start}
 .mobile-navigation-dialog .close{background:transparent;border:0;box-shadow:none;font-size:25px;color:#73737c}
 .mobile-drawer-links button,.mobile-drawer-account-links button{display:flex;align-items:center;gap:12px}
 .mobile-drawer-links :is(.ui-icon,.demo-motion-icon),.mobile-drawer-account-links .account-menu-icon{width:18px;height:18px;flex:0 0 18px;margin:0}
 .mobile-drawer-account-links .mobile-drawer-quota{justify-content:flex-start}
 .mobile-drawer-quota span:last-child{margin-left:auto}
}

@media(max-width:767px){.mobile-drawer-profile[role=button]{cursor:pointer;border-radius:10px;min-height:44px}.mobile-drawer-profile[role=button]:focus-visible{outline:2px solid #0071e3;outline-offset:3px}.mobile-drawer-account-links:empty{display:none}}

dialog.topup-checkout-dialog{width:420px;max-width:calc(100vw - 32px);padding:24px;border-radius:22px;box-sizing:border-box}
.topup-checkout-dialog h2{font-size:22px;line-height:1.4;margin:0 44px 24px 0}
.topup-checkout-amount{display:grid;gap:8px;margin-bottom:24px}
.topup-checkout-amount>span{font-size:14px;color:#777}
.topup-checkout-amount>strong{font-size:36px;line-height:1.2;letter-spacing:-.8px;color:#1d1d1f}
.topup-checkout-discount{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px}
.topup-checkout-discount del{color:#86868b}
.topup-checkout-discount span{background:#eaf3ff;color:#0066cc;border-radius:6px;padding:4px 8px}
.topup-checkout-details{display:grid;gap:14px;background:#f5f5f7;border-radius:12px;padding:16px;margin:0 0 20px}
.topup-checkout-details>div{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.5}
.topup-checkout-details dt{color:#777}.topup-checkout-details dd{margin:0;color:#1d1d1f;font-weight:600}
.topup-checkout-dialog #billing-checkout-error:empty{display:none}
.topup-checkout-dialog #membership-pay{width:100%;min-height:48px;font-size:16px;border-radius:12px;margin-top:0}

@media(min-width:768px){dialog.mobile-navigation-dialog[open]{display:none}dialog.mobile-navigation-dialog::backdrop{background:transparent;backdrop-filter:none}}

.account-profile-dialog .account-summary{margin-bottom:0;display:block}
.account-profile-dialog .account-plan{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 16px}
.account-profile-dialog .account-plan>strong{justify-self:end;text-align:right}
.account-profile-dialog .account-plan .tag{grid-column:2;justify-self:end}
.account-profile-dialog .account-balance{justify-content:space-between;border-top:1px solid #e2e2e8;margin-top:16px;padding-top:16px;align-items:center}
.account-profile-dialog .account-balance>strong{font-size:26px}
.account-profile-dialog .compact-account{padding:16px;margin-bottom:16px}
.account-profile-dialog .account-email{margin-bottom:16px}
