.mobile-drawer:not([open]) { display: none; }
.mobile-drawer {
    position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
    width: min(360px, calc(100% - 40px)); max-width: none; height: 100%; height: 100dvh;
    max-height: none; background: #fff; color: var(--portal-ink); box-sizing: border-box;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer::backdrop { background: rgb(20 30 40 / 48%); }
.drawer-panel { display: flex; flex-direction: column; min-height: 100%; padding: 12px 20px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--portal-line); }
.drawer-header h2 { margin: 0; font-size: 20px; font-weight: 700; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--portal-ink); cursor: pointer; }
.drawer-close:hover { background: var(--portal-surface); }
#wrap .mobile-drawer .navigation { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 16px 0 0; border: 0; }
#wrap .mobile-drawer .navigation ul { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0; }
#wrap .mobile-drawer .navigation li { width: 100%; }
#wrap .mobile-drawer .navigation li a { width: 100%; min-height: 48px; padding: 12px; font-size: 16px; }
#wrap .mobile-drawer .navigation > .button1 { width: 100%; margin: 0; }
#wrap .mobile-drawer .navigation > .button1 a { width: 100%; }
.mobile-drawer .mobile-menu-account { margin: 0; padding-top: 16px; }
.mobile-drawer .mobile-menu-account .autorizline { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.mobile-drawer .mobile-menu-account a { padding: 8px 12px; min-height: 44px; box-sizing: border-box; }
body.mobile-drawer-open { overflow: hidden; }
.site-footer { margin-top: 32px; padding: 20px 0 24px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); }
#wrap > .site-footer { margin: 32px 16px 0; }
.footer-sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 16px; }
#wrap .footer-sections a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 0; color: var(--portal-muted); font-size: 12px; line-height: 1.4; text-decoration: none; }
#wrap .footer-sections a:hover { text-decoration: underline; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 12px; }
.footer-meta p { margin: 0; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
#wrap .footer-actions a, .footer-actions button { display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--portal-muted); font: inherit; font-size: 12px; line-height: 1.4; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#wrap .site-footer .footer-legal, #wrap .site-footer .footer-legal a { color: #687480; font-size: 10px; line-height: 1.5; }
.site-footer .footer-legal { margin: 12px 0 0; max-width: 100%; }
@media (max-width: 767px) {
    .footer-meta { display: block; }
    .footer-actions { margin-top: 8px; }
    .site-footer { margin-top: 24px; padding-top: 16px; }
    .footer-sections { gap: 4px 14px; margin-bottom: 12px; }
}
