header .admin-menu{position:relative;display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;margin-left:auto}
header .admin-store-link{border:1px solid var(--line);border-radius:12px;background:white;color:var(--brand);font-weight:700;padding:10px 14px;min-height:44px;flex-shrink:0}
header .admin-store-link.active{background:var(--brand-tint)}
header .admin-store-link:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
body header .admin-menu-panel button[hidden]{display:none!important}
header .admin-menu-toggle{display:flex;align-items:center;min-height:44px;max-width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:var(--brand-tint);color:var(--brand);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header .admin-menu-toggle:focus-visible,header .admin-menu-panel button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
body header .admin-menu>.tabs.admin-menu-panel{display:none;position:absolute;right:0;top:calc(100% + 10px);width:280px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 100px);overflow-y:auto;overflow-x:hidden;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 48px color-mix(in srgb,var(--deep) 15%,transparent);z-index:50;flex-direction:column;gap:3px}
body header .admin-menu.is-open>.tabs.admin-menu-panel{display:flex}
body header .admin-menu>.tabs.admin-menu-panel button{width:100%;text-align:left;white-space:normal;min-height:44px;padding:12px 14px;border-radius:9px;flex:none}
body header .admin-menu>.tabs.admin-menu-panel button:hover{background:var(--brand-tint);transform:none}
body header .admin-menu>.tabs.admin-menu-panel button.active{background:var(--brand-tint);color:var(--brand);box-shadow:inset 3px 0 var(--brand)}
@media(max-width:600px){header .admin-menu-toggle{font-size:.85rem;padding:9px 10px;max-width:180px}header .admin-menu{position:static}body header .admin-menu>.tabs.admin-menu-panel{right:12px;top:calc(100% + 6px);width:calc(100vw - 24px)} }
/* Reuse the existing navigation buttons; permission visibility is untouched. */
body header .admin-menu>.tabs.admin-menu-panel{width:360px;padding:10px;gap:4px;overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(100dvh - 110px)}
body header .admin-menu>.tabs.admin-menu-panel button{display:flex!important;align-items:center;gap:12px;padding:10px 12px;min-height:60px;color:var(--ink);font-weight:400;transition:background .16s,box-shadow .16s}
body header .admin-menu>.tabs.admin-menu-panel button[style*="display: none"],body header .admin-menu>.tabs.admin-menu-panel button[style*="display:none"],body header .admin-menu>.tabs.admin-menu-panel button[hidden]{display:none!important}
.admin-menu-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;background:var(--soft);color:var(--brand);border-radius:11px}
.admin-menu-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-menu-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.admin-menu-label{font-size:.95rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.admin-menu-description{font-size:.76rem;line-height:1.3;color:var(--muted)}
.admin-menu-chevron{font-size:25px;color:var(--muted);flex:none}
body header .admin-menu>.tabs.admin-menu-panel button.active .admin-menu-icon{background:var(--brand-tint)}
body header .admin-menu>.tabs.admin-menu-panel button.admin-menu-session{order:10;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:5px;padding-top:14px}
@media(max-width:600px){body header .admin-menu>.tabs.admin-menu-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 140px)}.admin-menu-description{display:none}body header .admin-menu>.tabs.admin-menu-panel button{min-height:52px;padding:8px 10px}}
@media(max-height:700px){.admin-menu-description{display:none}body header .admin-menu>.tabs.admin-menu-panel button{min-height:48px;padding:6px 10px}}
@media(prefers-reduced-motion:reduce){header .admin-menu button{transition:none!important}}
