
body.drawer-open { overflow: hidden; }
.side-drawer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.side-drawer::backdrop { background: rgba(8, 22, 48, .42); }
.drawer-panel { width: min(330px, 86vw); height: 100%; box-sizing: border-box; display: flex; flex-direction: column; background: #fff; box-shadow: 12px 0 36px #071a3d18; padding-top: env(safe-area-inset-top); animation: drawer-enter .2s ease-out; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.drawer-top b { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; background: #f4f6fa; font-size: 24px; color: var(--muted); }
.drawer-account { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px 20px; text-align: left; }
.drawer-avatar { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; background: #edf2ff; color: var(--blue); font-size: 20px; font-weight: 700; }
.drawer-identity { min-width: 0; flex: 1; }
.drawer-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.drawer-identity small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.drawer-arrow { color: #a3adbd; font-size: 20px; }
.drawer-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 20px 14px; }
.drawer-shortcuts button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px; background: #edf3ff; color: var(--blue); border-radius: 8px; font-size: 13px; font-weight: 600; }
.drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 12px; }
.drawer-group + .drawer-group { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.drawer-group h3 { color: var(--muted); font-size: 11px; font-weight: 500; margin: 12px 12px 5px; }
.drawer-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 7px; text-align: left; color: var(--ink); font-size: 13px; }
.drawer-link > span:nth-child(2) { flex: 1; }
.drawer-link.active { color: var(--blue); background: #f0f5ff; font-weight: 600; }
.drawer-link:active, .drawer-account:active { background: #f3f6fa; }
.side-drawer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.drawer-footer { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-footer button { width: 100%; min-height: 44px; border-radius: 7px; background: #fff3f4; color: var(--red); font-size: 13px; }
.side-drawer button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@keyframes drawer-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }

.drawer-language { font-size: 11px; color: var(--muted); white-space: nowrap; }
