.mobile-menu-toggle,.mobile-menu-backdrop{display:none}
@media(max-width:820px){
  body{overflow-x:hidden}
  .sidebar{position:relative;inset:auto;width:100%;height:78px;min-height:78px;padding:10px 16px;border-right:0;border-bottom:1px solid var(--border);display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background:linear-gradient(135deg,#fff,#f6f9ff);overflow:visible;z-index:80}
  .sidebar .brand{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;margin:0;padding:0 64px 0 0;min-width:0;gap:8px;font-size:25px;font-weight:800;letter-spacing:.035em;line-height:1;color:#091432;text-decoration:none;transform:none}
  .sidebar .brandmark{display:block;width:54px;height:54px;min-width:54px;flex:0 0 54px;background-image:url('assets/heyarvis-v2-logo.jpg');background-repeat:no-repeat;background-size:92px 92px;background-position:center -10px;border:0;border-radius:0;box-shadow:none}
  .sidebar .brand strong{display:block;white-space:nowrap;font-size:25px;font-weight:800;letter-spacing:.035em;color:#091432}
  .sidebar .main-nav,.sidebar .worker-nav,.sidebar .nav-section-title,.sidebar .sidebar-bottom{display:none}
  .mobile-menu-toggle{display:inline-flex;position:absolute;top:16px;right:16px;width:46px;height:46px;align-items:center;justify-content:center;gap:4px;border:1px solid #dce6f6;border-radius:14px;background:#fff;box-shadow:0 7px 20px #244f8c12;color:#1a3157;z-index:83}
  .mobile-menu-toggle span{display:block;width:5px;height:5px;border-radius:50%;background:currentColor}
  .mobile-menu-toggle[aria-expanded="true"]{background:#e7efff;color:#135fff;border-color:#c8d9fb}
  .mobile-menu-backdrop{position:fixed;inset:0;background:#07142f66;backdrop-filter:blur(2px);z-index:78}
  body.mobile-menu-open{overflow:hidden}
  body.mobile-menu-open .mobile-menu-backdrop{display:block}
  body.mobile-menu-open .sidebar{position:fixed;top:0;left:0;bottom:0;width:min(86vw,360px);height:100dvh;min-height:100dvh;display:block;padding:16px 14px 24px;overflow-y:auto;overscroll-behavior:contain;border-bottom:0;border-right:1px solid #dbe6f7;box-shadow:18px 0 48px #07142f26}
  body.mobile-menu-open .sidebar .brand{margin:0 58px 18px 4px;padding:0;gap:8px}
  body.mobile-menu-open .sidebar .brandmark{width:50px;height:50px;min-width:50px;flex-basis:50px;background-size:86px 86px;background-position:center -9px}
  body.mobile-menu-open .sidebar .brand strong{font-size:24px}
  body.mobile-menu-open .sidebar .main-nav{display:grid;gap:7px}
  body.mobile-menu-open .sidebar .main-nav button,
  body.mobile-menu-open .sidebar .main-nav a{width:100%;min-height:50px;display:flex;align-items:center;justify-content:flex-start;gap:13px;padding:12px 14px;border-radius:11px;text-align:left;font-size:16px}
  body.mobile-menu-open .sidebar .main-nav button.active{background:#dee9ff;color:#135fff;font-weight:600}
  body.mobile-menu-open .sidebar .nav-section-title{display:flex;margin:22px 10px 10px}
  body.mobile-menu-open .sidebar .worker-nav{display:grid;gap:5px;overflow:visible;padding:0}
  body.mobile-menu-open .sidebar .worker-nav button{width:100%;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px 13px;border-radius:10px;font-size:14px;text-align:left}
  body.mobile-menu-open .sidebar .worker-nav button img,
  body.mobile-menu-open .sidebar .worker-nav button [data-icon]{width:24px;height:24px}
  body.mobile-menu-open .mobile-menu-toggle{position:absolute;top:14px;right:14px}
  .app{margin-left:0}
  .command-center{width:100%;max-width:100%;overflow:hidden}
  .arvis-core{width:100%;max-width:100%;margin-inline:auto;align-items:center;justify-content:center;text-align:center}
  .core-logo{margin-inline:auto}
  .core-rings{top:0;bottom:0;left:50%;right:auto;width:260px;transform:translateX(-50%)}
  .arvis-core>strong,.arvis-core>small{width:100%;text-align:center}
}
@media(max-width:470px){
  .sidebar{height:76px;min-height:76px;padding:10px 14px}
  .sidebar .brand{gap:7px;padding-right:60px}
  .sidebar .brandmark{width:52px;height:52px;min-width:52px;flex-basis:52px;background-size:90px 90px;background-position:center -10px}
  .sidebar .brand strong{font-size:24px}
  .mobile-menu-toggle{top:16px;right:14px;width:44px;height:44px}
  body.mobile-menu-open .sidebar{width:min(90vw,340px)}
  .core-rings{width:248px}
}
