/* ==========================================================================
   MOBILE: bottom sheets (menus, selects, overflow nav)
   A sheet is full-width by construction, so a menu can never render too narrow
   to read or push off the edge of the screen.
   ========================================================================== */
.msheet{ position:fixed; inset:0; z-index:400; }
.msheet.hidden{ display:none; }
.msheet-backdrop{ position:absolute; inset:0; background:rgba(17,20,24,0.42); animation:msheetFade .18s ease; }
.msheet-panel{
  position:absolute; left:0; right:0; bottom:0;
  background:var(--white); border-radius:20px 20px 0 0;
  padding:8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  max-height:82vh; display:flex; flex-direction:column;
  box-shadow:0 -12px 40px rgba(17,20,24,0.22);
  animation:msheetUp .26s cubic-bezier(.22,.9,.3,1.04);
}
@keyframes msheetFade{ from{opacity:0} to{opacity:1} }
@keyframes msheetUp{ from{transform:translateY(100%)} to{transform:translateY(0)} }
@media (prefers-reduced-motion: reduce){
  .msheet-backdrop, .msheet-panel{ animation:none; }
}
.msheet-grip{ width:38px; height:4px; border-radius:99px; background:var(--line); margin:4px auto 10px; flex:0 0 auto; }
.msheet-title{
  font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-soft); padding:0 22px 10px; flex:0 0 auto;
}
.msheet-body{
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:0 max(12px, env(safe-area-inset-left)) 4px max(12px, env(safe-area-inset-right));
}
.msheet-item{
  display:flex; align-items:center; gap:13px; width:100%;
  padding:15px 12px; background:none; border:none; border-radius:13px;
  font-family:inherit; font-size:16px; font-weight:600; color:var(--ink);
  text-align:left; cursor:pointer; position:relative; min-height:52px;
}
.msheet-item .icon{ width:21px; height:21px; flex:0 0 auto; color:var(--ink-soft); }
.msheet-item:active{ background:var(--paper-dim); }
.msheet-item.selected{ color:#185fa5; font-weight:700; }
.msheet-item.selected .icon{ color:#185fa5; }
.msheet-item .msheet-check{ margin-left:auto; flex:0 0 auto; color:#185fa5; }
.msheet-item > span:not(.msheet-check):not(.notif-dot){
  flex:1 1 auto; min-width:0; overflow-wrap:anywhere;
}
.msheet-item .notif-dot{ position:static; margin-left:auto; }
.msheet-sep{ height:1px; background:var(--line); margin:7px 14px; }
body.msheet-open{ overflow:hidden; }

/* The short tab labels and the More tab exist only for the phone tab bar — desktop's
   sidebar already lists every destination. */
@media (min-width:761px){
  .mtab-short{ display:none !important; }
  .mtab-more{ display:none !important; }
}

/* Desktop keeps its own inline dropdowns — sheets are phone-only. */
@media (min-width:761px){ .msheet{ display:none !important; } }

