/* R4.6.26.22 — mobile/Android top-header contrast repair.
   Scope: single-subsystem users only. No business views, routes or permissions are changed. */
body.single-subsystem-user.system-research{
  --r462622-header-start:#06488d;
  --r462622-header-mid:#0879bd;
  --r462622-header-end:#0aa3cc;
  --r462622-control-ink:#075083;
  --r462622-control-border:rgba(7,78,132,.22);
}
body.single-subsystem-user.system-daily{
  --r462622-header-start:#0a4b92;
  --r462622-header-mid:#116fc3;
  --r462622-header-end:#159ac8;
  --r462622-control-ink:#084d83;
  --r462622-control-border:rgba(8,77,131,.22);
}

@media (max-width:768px),(pointer:coarse) and (max-width:980px){
  body.single-subsystem-user .mobile-header-r390{
    min-height:68px!important;
    padding:max(9px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left))!important;
    gap:9px!important;
    align-items:center!important;
    color:#fff!important;
    background:linear-gradient(132deg,var(--r462622-header-start) 0%,var(--r462622-header-mid) 58%,var(--r462622-header-end) 100%)!important;
    border-bottom:1px solid rgba(4,58,111,.34)!important;
    box-shadow:0 8px 24px rgba(4,56,105,.22)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    isolation:isolate!important;
  }
  body.single-subsystem-user .mobile-header-r390::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background:
      radial-gradient(circle at 18% 0%,rgba(255,255,255,.18),transparent 34%),
      linear-gradient(90deg,transparent,rgba(255,255,255,.045));
  }
  body.single-subsystem-user .mobile-header-r390 .brand{
    flex:1 1 auto!important;
    min-width:0!important;
    padding:0!important;
    color:#fff!important;
  }
  body.single-subsystem-user .mobile-header-r390 .brand-mark{
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    border:1px solid rgba(255,255,255,.58)!important;
    border-radius:13px!important;
    background:linear-gradient(145deg,#25b9e7,#0878bd)!important;
    color:#fff!important;
    box-shadow:0 7px 18px rgba(0,38,76,.28),inset 0 1px 0 rgba(255,255,255,.36)!important;
  }
  body.single-subsystem-user .mobile-header-r390 .brand b{
    display:block!important;
    max-width:min(46vw,260px)!important;
    overflow:hidden!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:850!important;
    line-height:1.2!important;
    letter-spacing:.02em!important;
    text-overflow:ellipsis!important;
    text-shadow:0 1px 3px rgba(0,35,74,.30)!important;
    white-space:nowrap!important;
  }
  body.single-subsystem-user .mobile-header-r390 .brand small{
    display:block!important;
    margin-top:3px!important;
    color:#dff7ff!important;
    font-size:10px!important;
    font-weight:700!important;
    line-height:1.15!important;
    letter-spacing:.08em!important;
    opacity:1!important;
  }
  body.single-subsystem-user .mobile-tools-r390{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:1601!important;
  }
  body.single-subsystem-user .mobile-tools-r390 summary,
  body.single-subsystem-user .mobile-logout-r390{
    display:flex!important;
    min-width:62px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 13px!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:14px!important;
    font-size:13px!important;
    font-weight:850!important;
    line-height:1!important;
    text-shadow:none!important;
    -webkit-text-fill-color:currentColor!important;
  }
  body.single-subsystem-user .mobile-tools-r390 summary{
    gap:5px!important;
    border:1px solid rgba(255,255,255,.92)!important;
    background:#fff!important;
    color:var(--r462622-control-ink)!important;
    box-shadow:0 6px 17px rgba(0,38,75,.20),inset 0 1px 0 rgba(255,255,255,.92)!important;
  }
  body.single-subsystem-user .mobile-tools-r390 summary i{
    color:#0b83bb!important;
    font-style:normal!important;
    font-weight:900!important;
  }
  body.single-subsystem-user .mobile-tools-r390[open] summary{
    border-color:#8bd9f2!important;
    background:#eaf9ff!important;
    color:#064c80!important;
    box-shadow:0 0 0 3px rgba(87,196,233,.22),0 8px 20px rgba(0,38,75,.20)!important;
  }
  body.single-subsystem-user .mobile-header-r390>form{
    display:block!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
  }
  body.single-subsystem-user .mobile-logout-r390{
    border:1px solid rgba(255,255,255,.88)!important;
    background:#fff7f7!important;
    color:#9b2633!important;
    box-shadow:0 6px 17px rgba(0,38,75,.18),inset 0 1px 0 rgba(255,255,255,.92)!important;
  }
  body.single-subsystem-user .mobile-logout-r390:active{
    background:#ffe9eb!important;
    color:#7d1724!important;
    transform:translateY(1px)!important;
  }
  body.single-subsystem-user .mobile-tools-panel-r390{
    top:48px!important;
    right:0!important;
    z-index:1700!important;
    border:1px solid rgba(12,95,151,.18)!important;
    background:#fff!important;
    box-shadow:0 20px 48px rgba(0,42,82,.30)!important;
  }
  body.single-subsystem-user .mobile-tools-panel-r390 a{
    color:#174a70!important;
    background:#fff!important;
    border-color:rgba(16,91,143,.10)!important;
    -webkit-text-fill-color:#174a70!important;
  }
  body.single-subsystem-user .mobile-tools-panel-r390 a:hover,
  body.single-subsystem-user .mobile-tools-panel-r390 a:active{
    color:#064f86!important;
    background:#eaf7ff!important;
  }
}

@media (max-width:410px){
  body.single-subsystem-user .mobile-header-r390{gap:7px!important;padding-left:9px!important;padding-right:9px!important}
  body.single-subsystem-user .mobile-header-r390 .brand{gap:7px!important}
  body.single-subsystem-user .mobile-header-r390 .brand-mark{flex-basis:38px!important;width:38px!important;height:38px!important;border-radius:12px!important}
  body.single-subsystem-user .mobile-header-r390 .brand b{max-width:31vw!important;font-size:13px!important}
  body.single-subsystem-user .mobile-header-r390 .brand small{font-size:9px!important}
  body.single-subsystem-user .mobile-tools-r390 summary,
  body.single-subsystem-user .mobile-logout-r390{min-width:55px!important;height:39px!important;min-height:39px!important;padding:0 10px!important;font-size:12px!important}
}

@media (prefers-contrast:more){
  body.single-subsystem-user .mobile-tools-r390 summary,
  body.single-subsystem-user .mobile-logout-r390{border-width:2px!important}
  body.single-subsystem-user .mobile-header-r390 .brand b{font-weight:900!important}
}
