/* OfficialOS RC10.21 â€” approved mobile shell
   Phone only. Desktop/tablet behavior remains unchanged. */

@media (max-width:760px){
  html,body{
    max-width:100%;
    overflow-x:hidden!important;
  }

  body.r19-shell{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
    padding-bottom:86px!important;
  }

  /* Desktop navigation must never render as the phone menu. */
  body.r19-shell .tabs,
  body.r19-shell.r17-home-ready[data-oos-screen="home"] .tabs{
    display:none!important;
  }

  body.r19-shell main,
  body.r19-shell:not([data-oos-screen="home"]) main{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:96px!important;
    box-sizing:border-box!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] main{
    width:100vw!important;
    max-width:100vw!important;
    margin-left:0!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:96px!important;
    overflow-x:hidden!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] #rc1017Dashboard{
    left:0!important;
    width:100%!important;
    max-width:100%!important;
    padding-bottom:96px!important;
    overflow-x:hidden!important;
    font-size:16px!important;
    line-height:1.35!important;
  }

  body.r19-shell .small,
  body.r19-shell.r17-home-ready[data-oos-screen="home"] #rc1017Dashboard small{
    font-size:13px!important;
    line-height:1.35!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] #rc1017Dashboard button{
    min-height:44px;
  }

  /* Approved Day Route layout. */
  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-context{
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:14px!important;
    gap:10px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-context-head>span{
    font-size:11px!important;
    line-height:1.2!important;
    letter-spacing:.11em!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-context-head>b{
    font-size:18px!important;
    line-height:1.18!important;
    margin-top:4px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-context-head>small{
    font-size:13px!important;
    line-height:1.4!important;
    margin-top:5px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stops{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop{
    display:grid!important;
    grid-template-columns:34px 88px minmax(0,1fr)!important;
    column-gap:16px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:76px!important;
    padding:12px 14px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop>i{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    flex:0 0 34px!important;
    font-size:17px!important;
    line-height:34px!important;
    border-radius:999px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop>time{
    width:88px!important;
    min-width:88px!important;
    font-size:15px!important;
    line-height:1.15!important;
    font-weight:800!important;
    text-align:left!important;
    white-space:nowrap!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop>span{
    min-width:0!important;
    display:block!important;
    padding-left:2px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop>span>b{
    display:block!important;
    font-size:14px!important;
    line-height:1.22!important;
    margin-bottom:3px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-stop>span>small{
    display:block!important;
    font-size:12px!important;
    line-height:1.28!important;
    white-space:normal!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-day-facts{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-day-fact{
    min-width:0!important;
    padding:10px 11px!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-day-fact span{
    font-size:10px!important;
    line-height:1.2!important;
    letter-spacing:.1em!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-day-fact b{
    margin-top:5px!important;
    font-size:16px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  body.r19-shell.r17-home-ready[data-oos-screen="home"] .r16-route-trust{
    font-size:12px!important;
    line-height:1.3!important;
    padding:8px 10px!important;
  }

  /* These are duplicated inside More on phone. */
  .r15-routebuttons,
  .r16-routebuttons,
  .r16-route-tools{
    display:none!important;
  }

  .oos-mobile-hide-duplicate{
    display:none!important;
  }

  #oosMobileBottomNav{
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    z-index:2147483000;
    height:68px;
    padding:5px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:3px;
    border:1px solid #174867;
    border-radius:16px;
    background:rgba(3,16,27,.98);
    box-shadow:0 14px 42px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter:blur(16px);
  }

  #oosMobileBottomNav button{
    min-width:0!important;
    min-height:54px!important;
    padding:4px 2px!important;
    border:0!important;
    border-radius:11px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    background:transparent!important;
    color:#9eb7c7!important;
    box-shadow:none!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.05!important;
  }

  #oosMobileBottomNav .oos-mnav-icon{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:9px;
    color:#62dcff;
    font-size:18px;
    line-height:1;
  }

  #oosMobileBottomNav button.active{
    background:linear-gradient(180deg,rgba(11,115,177,.28),rgba(5,48,76,.36))!important;
    color:#fff!important;
    box-shadow:inset 0 0 0 1px rgba(46,200,255,.22)!important;
  }

  #oosMobileMoreBackdrop{
    position:fixed;
    inset:0;
    z-index:2147483001;
    background:rgba(0,0,0,.60);
    opacity:0;
    pointer-events:none;
    transition:opacity .16s ease;
  }

  #oosMobileMoreSheet{
    position:fixed;
    left:8px;
    right:8px;
    bottom:84px;
    z-index:2147483002;
    max-height:calc(100vh - 118px);
    overflow:auto;
    padding:12px;
    border:1px solid #174867;
    border-radius:18px;
    background:#061824;
    box-shadow:0 22px 65px rgba(0,0,0,.56);
    transform:translateY(18px);
    opacity:0;
    pointer-events:none;
    transition:transform .16s ease,opacity .16s ease;
  }

  body.oos-mobile-more-open #oosMobileMoreBackdrop{
    opacity:1;
    pointer-events:auto;
  }

  body.oos-mobile-more-open #oosMobileMoreSheet{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  .oos-mobile-more-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
  }

  .oos-mobile-more-head strong{
    font-size:18px;
    color:#f7fbff;
  }

  .oos-mobile-more-close{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    border-radius:12px!important;
    font-size:21px!important;
  }

  .oos-mobile-more-label{
    margin:0 0 8px 2px;
    color:#63dcff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  .oos-mobile-more-section{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #17435d;
  }

  .oos-mobile-more-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .oos-mobile-more-grid button{
    min-height:54px!important;
    padding:10px 12px!important;
    border-radius:12px!important;
    text-align:left!important;
    font-size:14px!important;
    font-weight:800!important;
  }

  .oos-mobile-more-grid .oos-signout{
    grid-column:1/-1;
    color:#c5d3dc!important;
  }
}