/* MARINE / WORKSPACE V35 — compact functional mobile navigation.
   Preserve the existing desktop header, routes, search, notifications and language system. */
@media(max-width:940px){
  .topbar{
    height:62px;
    min-height:62px;
    padding:0 14px;
    gap:8px;
    background:#0c2031;
    border-bottom:1px solid #304a5c;
    z-index:48;
  }
  .mobile-top{gap:12px;flex:1 1 auto;min-width:0}
  .mobile-top .menu-launch{
    width:44px;
    min-width:44px;
    height:44px;
    border:1px solid #456477;
    border-radius:0;
    background:transparent;
    color:#ecf6f9;
    display:grid;
    place-items:center;
    padding:0;
  }
  .mobile-top .menu-launch:hover,.mobile-top .menu-launch:focus-visible{background:#213f52}
  .mobile-top .menu-launch svg{width:21px;height:21px}
  .mobile-brand{
    display:block;
    flex:0 1 auto;
    min-width:0;
    max-width:170px;
    white-space:normal;
    color:#e8f5f9;
    font-size:12px!important;
    font-weight:740;
    letter-spacing:.025em!important;
    line-height:1.22;
  }
  .mobile-brand-slash{color:#61bacd}
  .mobile-brand-second{display:block}
  .top-actions{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:7px!important;
  }
  .topbar .role-picker,.topbar .lng{display:none!important}
  .topbar .top-search,.topbar .topicon{
    height:44px;
    width:44px;
    min-width:44px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #426074;
    border-radius:0;
    background:transparent;
    color:#d6eaf1;
  }
  .topbar .top-search svg,.topbar .topicon svg{width:20px;height:20px}
  .topbar .top-search:hover,.topbar .topicon:hover,.topbar .topicon.active{background:#233f52}
  .topbar .top-search span,.topbar .top-search kbd{display:none}
  .mobile-nav{
    background:#0c2031;
    border-top:1px solid #3a5769;
    padding:7px 5px calc(7px + env(safe-area-inset-bottom, 0px));
    grid-template-columns:repeat(5,minmax(0,1fr));
    column-gap:3px;
    z-index:51;
  }
  .mobile-nav button{
    min-height:53px;
    padding:6px 2px 5px;
    gap:5px;
    font-size:10px;
    line-height:1.2;
    font-weight:580;
    color:#aec8d3;
    border-top:2px solid transparent;
  }
  .mobile-nav button svg{width:20px;height:20px;flex:none}
  .mobile-nav button.active{
    color:#ecfaff;
    border-top-color:#64bfd3;
    background:#1c384c;
  }
  .mobile-nav button:focus-visible{outline:2px solid #86e4f3;outline-offset:-3px}
  .content{padding-bottom:calc(105px + env(safe-area-inset-bottom, 0px))}
  .mobile-drawer{
    position:fixed;
    inset:0;
    z-index:120;
    background:#06111de0;
    display:flex;
    justify-content:flex-start;
  }
  .drawer-shade{
    position:absolute;
    z-index:0;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:transparent;
    cursor:pointer;
  }
  .drawer-inner{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    width:min(365px,89vw);
    height:100%;
    height:100dvh;
    padding:0 16px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y:auto;
    background:#0e2334;
    border-right:1px solid #466277;
  }
  .drawer-top{
    position:sticky;
    top:0;
    z-index:1;
    background:#0e2334;
    margin-bottom:4px;
    min-height:68px;
    padding:10px 1px;
    border-bottom:1px solid #324f62;
  }
  .drawer-top strong{font-size:13px;letter-spacing:.025em;font-weight:760}
  .drawer-top button{
    display:grid;
    place-items:center;
    min-height:44px;
    min-width:44px;
    border:1px solid #4a697b;
    border-radius:0;
    color:#ecf5fa;
    background:transparent;
    padding:8px;
  }
  .drawer-demo-intro{padding:12px 3px 15px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
  .drawer-demo-intro small{font-size:11px;color:#a7c3d1;line-height:1.45}
  .drawer-section-label{
    color:#88b6c7;
    font-size:10px;
    letter-spacing:.12em;
    text-transform:uppercase;
    font-weight:770;
    margin:12px 3px 9px;
  }
  .drawer-links{display:flex;flex-direction:column;gap:1px}
  .drawer-links .navitem{
    min-height:45px;
    padding:11px 12px;
    color:#c4d9e4;
    font-size:12px;
    border-radius:0;
  }
  .drawer-links .navitem.active{color:#fff;background:#22455a}
  .drawer-preferences{
    margin-top:18px;
    padding-top:12px;
    border-top:1px solid #365266;
  }
  .drawer-field-label{display:block;color:#bdd3dd;font-size:12px;margin:0 3px 7px}
  .drawer-role-picker{
    display:block;
    width:100%;
    max-width:100%;
    min-height:45px;
    border:1px solid #577487;
    border-radius:0;
    background:#1a374b;
    color:#f1f8fa;
    padding:8px 12px;
    font-size:13px;
  }
  .drawer-language{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:13px;
    padding:10px 2px;
    border-top:1px solid #2b485e;
    color:#bdd3df;
    font-size:12px;
  }
  .drawer-language button{
    min-height:44px;
    padding:8px 13px;
    color:#edf9fc;
    font-weight:650;
    background:#1d4056;
    border:1px solid #52788d;
    border-radius:0;
  }
}
@media(max-width:470px){
  .topbar{height:60px;min-height:60px;padding:0 12px;gap:6px}
  .mobile-top{gap:10px}
  .mobile-brand{font-size:11.5px!important;max-width:136px}
  .top-actions{gap:7px!important}
}
@media(max-width:355px){
  .topbar{padding:0 9px}
  .mobile-top{gap:7px}
  .mobile-brand{font-size:10.5px!important;max-width:104px}
  .top-actions{gap:5px!important}
  .mobile-nav{padding-left:3px;padding-right:3px;column-gap:0}
  .mobile-nav button{font-size:9.5px}
}
