
html, body, #root { max-width: 100%; overflow-x: hidden; }
body.tgn-admin-recovery { padding-bottom: 5.75rem; }
body.tgn-admin-drawer-open, body.tgn-public-menu-open { overflow: hidden !important; }

#tgn-admin-menu-button {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 2147483640;
  display: none; align-items: center; gap: .65rem;
  border: 0; border-radius: .9rem; padding: .85rem 1rem;
  background: #1a1a1a; color: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.28);
  font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
#tgn-admin-menu-button span:first-child { color: #eab308; font-size: 1.1rem; }
#tgn-admin-drawer-backdrop {
  position: fixed; inset: 0; z-index: 2147483641; display: none;
  background: rgba(0,0,0,.58); backdrop-filter: blur(4px);
}
#tgn-admin-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 2147483642; width: min(86vw, 21rem);
  transform: translateX(-105%); transition: transform .22s ease;
  background: #fff; border-right: 1px solid #e5e7eb; box-shadow: 18px 0 45px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
}
body.tgn-admin-drawer-open #tgn-admin-drawer { transform: translateX(0); }
body.tgn-admin-drawer-open #tgn-admin-drawer-backdrop { display: block; }
.tgn-admin-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:1rem; border-bottom:1px solid #e5e7eb; }
.tgn-admin-drawer-title { font:900 .8rem/1.2 system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.tgn-admin-drawer-title small { display:block; margin-top:.35rem; color:#ca8a04; font-size:.58rem; letter-spacing:.15em; }
#tgn-admin-drawer-close { border:0; background:#f3f4f6; border-radius:.7rem; width:2.5rem; height:2.5rem; font-size:1.35rem; }
.tgn-admin-drawer-nav { overflow-y:auto; padding:.75rem; overscroll-behavior:contain; }
.tgn-admin-drawer-nav a { display:flex; align-items:center; padding:.85rem .9rem; margin:.18rem 0; border-radius:.65rem; color:#4b5563; text-decoration:none; font:800 .68rem/1.2 system-ui,sans-serif; letter-spacing:.06em; text-transform:uppercase; }
.tgn-admin-drawer-nav a:hover, .tgn-admin-drawer-nav a[aria-current="page"] { background:#eab308; color:#fff; }

@media (max-width: 767px) {
  #tgn-admin-menu-button { display: flex; }
  body.tgn-admin-recovery main header { padding-left: .75rem !important; padding-right: .75rem !important; }
  body.tgn-admin-recovery main header form input { min-width: 0 !important; }
}

@media (min-width: 768px) {
  body.tgn-admin-recovery { padding-bottom: 0; }
  body.tgn-admin-recovery aside[class*="h-screen"] { overflow-y: auto !important; overscroll-behavior: contain; }
  body.tgn-admin-recovery aside[class*="h-screen"] nav { padding-bottom: 8rem !important; }
  body.tgn-admin-recovery aside[class*="h-screen"] > div[class*="absolute"][class*="bottom-0"] { position: sticky !important; bottom: 0 !important; }
}

/* Keep the compact public menu available on tablets where the full navigation is crowded. */
@media (min-width: 1024px) and (max-width: 1279px) {
  body:not(.tgn-admin-recovery) header nav[class*="hidden"][class*="lg:flex"] { display: none !important; }
  body:not(.tgn-admin-recovery) header button[class*="lg:hidden"] { display: inline-flex !important; }
  body:not(.tgn-admin-recovery) div[class*="fixed"][class*="inset-x-0"][class*="top-16"][class*="lg:hidden"] { display: block !important; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  body:not(.tgn-admin-recovery) div[class*="fixed"][class*="inset-x-0"][class*="top-16"][class*="overflow-y-auto"] {
    top: 6.5rem !important; max-height: calc(100svh - 6.5rem) !important;
  }
}
