/* Боковое меню генератора (слева): кнопка в шапке + выезжающая панель. Цвета — токены ui.css */
.menu-btn { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); cursor: pointer; transition: background-color .15s var(--ease); }
.menu-btn:hover { background: var(--raised); }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.drawer-ov { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.drawer-ov.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 10001; width: min(320px, 86vw); display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line-strong); transform: translateX(-102%); transition: transform .25s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.dr-head { flex: none; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dr-head .t { flex: 1; font: 600 1rem var(--font); color: var(--text); }
.dr-close { width: 34px; height: 34px; padding: 0; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text-2); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.dr-close:hover { background: var(--raised); color: var(--text); }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.dr-sec { margin: 14px 8px 6px; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; margin: 1px 0; text-align: left; background: none; border: 0; border-radius: var(--r); color: var(--text-2); font: 500 .95rem var(--font); cursor: pointer; text-decoration: none; }
.dr-item:hover, .dr-item:focus-visible { background: var(--raised); color: var(--text); outline: none; }
.dr-item.active { color: var(--accent-text); }
.dr-item.main { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }
.dr-item.main:hover { background: var(--raised); }
.dr-item .em { margin-left: auto; font: 400 .78rem var(--mono); color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-foot { flex: none; padding: 10px 18px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.dr-foot a { color: var(--accent-text); }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-ov { transition: none; } }

