/* Scoped menu styling keeps the account panel independent of older overrides. */
.ig-drawer.ig-menu-refined {
  display:flex; position:fixed; inset:10px auto 10px 10px; z-index:61;
  width:min(374px,calc(100vw - 20px)); max-height:calc(100dvh - 20px);
  flex-direction:column; overflow:hidden; border:1px solid #303033; border-radius:28px;
  background:#141416; color:#f5f5f7; box-shadow:0 24px 80px #0008;
  font-family:-apple-system,BlinkMacSystemFont,"Inter",sans-serif;
}
.ig-menu-refined .ig-drawer-head { flex-shrink:0; height:66px; }
.ig-menu-refined .ig-menu-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:16px; scrollbar-width:thin; }
.ig-menu-refined .ig-drawer-profile-card { margin:0 16px 18px; padding:10px; border:0; border-radius:20px; background:#222225; box-shadow:none; }
.ig-menu-refined .ig-drawer-user { padding:8px 3px 14px; gap:10px; }
.ig-menu-refined .ig-drawer-user strong { font-size:14px; white-space:normal; line-height:1.4; }
.ig-menu-refined .ig-drawer-user small { font-size:11px; color:#aaaab1; }
.ig-menu-refined .ig-drawer-guest-actions { padding:6px 0 0; border:0; }
.ig-menu-refined .ig-drawer-guest-actions a { min-height:44px; font-size:12px; }
.ig-menu-refined .ig-drawer-guest-actions a:last-child { color:#161618; background:#f5f5f7; }
.ig-menu-refined .ig-drawer-quick-links { display:none; }
.ig-menu-refined .ig-drawer-balance { min-height:52px; }
.ig-menu-refined .ig-drawer-balance strong { font-size:18px; letter-spacing:-.04em; }
.ig-menu-refined .ig-drawer-balance small { color:#64adff; font-size:10px; }
.ig-menu-refined .ig-menu-search { display:flex; align-items:center; gap:9px; margin:0 16px 14px; padding:0 12px; height:46px; border:1px solid transparent; border-radius:13px; background:#242427; color:#929298; }
.ig-menu-refined .ig-menu-search:focus-within { border-color:#659cda; }
.ig-menu-search>svg { width:17px; flex:none; }
.ig-menu-refined .ig-menu-search input { width:100%; min-width:0; color:#fff; background:transparent; border:0; outline:none; font-size:16px; }
.ig-menu-search input::placeholder { font-size:12px; color:#99999f; }
.ig-menu-search button { display:grid; place-items:center; min-width:28px; height:38px; }
.ig-menu-search button svg { width:16px; }
.ig-menu-refined .ig-menu-shortcuts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 16px 24px; }
.ig-menu-shortcuts a { display:grid; justify-items:start; gap:6px; padding:15px; border-radius:16px; background:#222225; color:#f5f5f7; }
.ig-menu-shortcuts svg { width:21px; height:21px; margin-bottom:4px; stroke-width:1.6; color:#d2d2d7; }
.ig-menu-shortcuts strong { font-size:12px; font-weight:550; }
.ig-menu-shortcuts small { color:#99999f; font-size:10px; }
.ig-menu-refined .ig-menu-label { margin:0 24px 8px; color:#99999f; font-size:9px; letter-spacing:.11em; font-weight:600; }
.ig-menu-refined nav { margin:0 16px 16px; padding:3px 6px; border:0; background:#222225; border-radius:17px; overflow:visible; }
.ig-menu-refined nav a { min-height:48px; }
.ig-menu-refined nav a strong { font-size:13px; }
.ig-menu-refined .ig-menu-help { display:flex; align-items:center; gap:12px; margin:0 16px; padding:14px 10px; color:#bebec4; }
.ig-menu-help>svg { width:20px; height:20px; flex-shrink:0; stroke-width:1.6; }
.ig-menu-help>svg:last-child { width:14px; margin-left:auto; }
.ig-menu-help span { display:grid; gap:4px; }
.ig-menu-help strong { font-size:12px; font-weight:550; }
.ig-menu-help small { font-size:10px; color:#929298; }
.ig-menu-refined .ig-drawer-account { flex-shrink:0; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.ig-menu-refined a:focus-visible,.ig-menu-refined button:focus-visible { outline:2px solid #64adff; outline-offset:2px; }
@media (max-width:360px) { .ig-menu-refined .ig-drawer-user { grid-template-columns:36px minmax(0,1fr) 14px; }.ig-menu-refined .ig-drawer-user i { width:36px; height:36px; } }
.ig-menu-refined .ig-drawer-balance small { color:#c7c7ce; }
.ig-menu-refined nav a.active .ig-drawer-link-icon { color:#f5f5f7; }
