/* LVL shell rescue 1627 — final fixed bottom navigation + migration recovery */
html,body{max-width:100%;overflow-x:hidden}
html body .main-content{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
html body :is(#sidebar,#sidebarScrim,#menuBtn,.sidebar,.sidebar-scrim,.bottom-nav,.mobile-bottom-nav,#view-review,[data-view="review"],[data-view-jump="review"]){display:none!important}

.lvl-shell-dock{position:fixed!important;z-index:2147483000!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;min-height:68px!important;padding:0 6px env(safe-area-inset-bottom)!important;border:0!important;border-top:1px solid var(--lvl-color-border)!important;border-radius:0!important;background:color-mix(in srgb,var(--lvl-color-surface) 96%,transparent)!important;box-shadow:0 -10px 28px rgba(0,0,0,.18)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;display:block!important;visibility:visible!important;opacity:1!important}
.lvl-shell-dock-inner{width:min(100%,620px)!important;min-height:68px!important;margin:0 auto!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important}
.lvl-shell-dock button{appearance:none!important;position:relative!important;display:flex!important;min-width:0!important;min-height:68px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:4px!important;padding:7px 2px 6px!important;border:0!important;background:transparent!important;color:var(--lvl-color-text-muted)!important;font:inherit!important;font-size:11px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.lvl-shell-dock button>span:last-child{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
.lvl-shell-dock button::before{content:"";position:absolute;top:0;left:50%;width:30px;height:2px;transform:translateX(-50%) scaleX(0);background:var(--lvl-color-accent);border-radius:0 0 99px 99px}
.lvl-shell-dock button.is-active,.lvl-shell-dock button[aria-current="page"]{color:var(--lvl-color-accent)!important}
.lvl-shell-dock button.is-active::before,.lvl-shell-dock button[aria-current="page"]::before{transform:translateX(-50%) scaleX(1)}
.lvl-shell-dock svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.lvl-shell-dock-fallback-icon{height:22px!important;display:grid!important;place-items:center!important;font-size:20px!important;line-height:1!important}

/* Remove migration artifacts and keep header compact/stable. */
body>.\5c n{display:none!important}
.topbar{width:100%!important;min-width:0!important}
.topbar,.top-actions,.user-pill,.notification-wrap{box-sizing:border-box!important}

.lvl-shell-rescue-view{padding:18px 0 4px!important}
.lvl-shell-rescue-card{padding:18px!important;border:1px solid var(--lvl-color-border)!important;border-radius:16px!important;background:var(--lvl-color-surface)!important;color:var(--lvl-color-text)!important}
.lvl-shell-rescue-card>span{display:block;margin-bottom:6px;color:var(--lvl-color-accent)!important;font-size:11px!important;font-weight:900!important;letter-spacing:.08em!important}
.lvl-shell-rescue-card h2{margin:0 0 6px!important;color:var(--lvl-color-text-strong)!important;font-size:20px!important}
.lvl-shell-rescue-card p{margin:0!important;color:var(--lvl-color-text-muted)!important;font-size:13px!important;line-height:1.5!important}
.lvl-shell-rescue-card button{margin-top:14px;min-height:38px;padding:0 14px;border:1px solid var(--lvl-color-border);border-radius:10px;background:var(--lvl-color-surface-soft);color:var(--lvl-color-text);font:inherit;font-weight:800}

@media(max-width:720px){
  html body .main-content{width:calc(100% - 24px)!important;padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  .lvl-shell-dock,.lvl-shell-dock-inner{min-height:64px!important}
  .lvl-shell-dock button{min-height:64px!important;font-size:10px!important;gap:3px!important}
  .lvl-shell-dock svg{width:19px!important;height:19px!important}
  .lvl-shell-dock-fallback-icon{height:20px!important;font-size:18px!important}
}