/* R16.1: Android already reserves the system navigation inset; do not reserve it twice. */
/* Only the app bridge + explicit embedded flag can enable this class. */
html.smd-embedded .site-header,html.smd-embedded #app>footer,
html.smd-embedded .smd-human-chat{display:none!important}
html.smd-embedded body{margin:0;background:var(--smd-backend-background,#030e19)}
html.smd-embedded .admin-workspace{min-height:100dvh!important}
html.smd-embedded .admin-workspace>.admin-main{padding:14px 12px calc(84px + env(safe-area-inset-bottom))!important}
html.smd-embedded .smd-mobile-bottom-nav{bottom:0!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;padding:4px 8px 0!important;box-shadow:none!important}
html.smd-embedded .dashboard-welcome{padding-right:0;gap:10px}
html.smd-embedded .dashboard-welcome h2{font-size:22px}
html.smd-embedded .dashboard-card{min-height:88px;padding:12px}
/* Keep notifications accessible in the document flow instead of floating over content. */
html.smd-embedded .smd-notification-center{position:relative!important;inset:auto!important;display:flex;justify-content:flex-end;padding:4px 12px}
html.smd-embedded .smd-notification-bell{position:relative!important;inset:auto!important;width:44px;height:44px}
html.smd-embedded .smd-notification-drawer{position:fixed!important;top:52px!important;right:8px!important;left:8px!important;width:auto!important;max-height:calc(100dvh - 140px)!important}
html.smd-embedded .smd-mobile-menu-open>.admin-sidebar{height:100dvh!important;max-height:100dvh!important}

html.smd-embedded .admin-workspace,html.smd-embedded .admin-workspace.sidebar-collapsed{display:block!important;width:100%;max-width:100%;background:var(--smd-backend-background,#030e19)}
html.smd-embedded .admin-workspace>.admin-sidebar{display:none!important}
html.smd-embedded .admin-workspace>.admin-main{width:100%;min-width:0;box-sizing:border-box}

html.smd-embedded .smd-mobile-bottom-nav{display:flex!important;position:fixed!important;inset:auto 0 0;z-index:1000;align-items:stretch;gap:6px;background:#04121ff5;border-top:1px solid #14546c}
html.smd-embedded .smd-mobile-bottom-nav button{flex:1;min-width:0;min-height:54px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:0;background:transparent;color:#91afc0;font:600 10px/1.2 system-ui}
html.smd-embedded .smd-mobile-bottom-nav svg{width:23px;height:23px;color:#00dcf3}
html.smd-embedded .smd-mobile-menu-open>.admin-sidebar{display:flex!important;flex-direction:column;position:fixed!important;inset:0!important;width:100%!important;overflow-y:auto;z-index:1100;padding:16px;box-sizing:border-box;background:var(--admin-sidebar-bg,#04121f)}
html.smd-embedded .smd-mobile-menu-open .smd-mobile-menu-head{display:flex;justify-content:space-between}
html.smd-embedded .smd-mobile-menu-open .admin-sidebar-head{display:none}
html.smd-embedded .smd-mobile-menu-open .admin-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html.smd-embedded .smd-mobile-menu-open .admin-menu-label{display:block!important;opacity:1!important;white-space:normal}
html.smd-embedded .smd-mobile-menu-open .smd-mobile-bottom-nav{display:none!important}
html.smd-embedded body.smd-mobile-menu-body-open .smd-notification-center{visibility:hidden!important;pointer-events:none!important}
