/* Phone layout: More tab + sheet, stacked boards, contained tables */
#navMore { display: none; }
#moreSheet[hidden] { display: none; }
@media (max-width: 720px) {
  #navMore { display: flex; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='5' cy='12' r='1.9'/%3E%3Ccircle cx='12' cy='12' r='1.9'/%3E%3Ccircle cx='19' cy='12' r='1.9'/%3E%3C/svg%3E"); }
  .bar nav a[data-view="flows"] { display: none; }
  #moreSheet { position: fixed; inset: 0; z-index: 3000; }
  .msBack { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
  .msPanel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow-y: auto; background: var(--surface, #fff); border-radius: 18px 18px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.18); animation: msUp .2s ease-out; }
  @keyframes msUp { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
  .msGrab { width: 40px; height: 5px; border-radius: 3px; background: rgba(118,118,128,.3); margin: 4px auto 8px; }
  .msSec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 4px; }
  .msItem { display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
  .msItem.on { background: rgba(0,113,227,.10); color: var(--tint); font-weight: 600; }
  .msItem:active { background: rgba(118,118,128,.12); }
  .msItem .nbadge { position: static; }
  body.msOpen { overflow: hidden; }
  /* Win flows: stages stacked instead of a sideways board */
  .board { display: flex !important; flex-direction: column; gap: 10px; overflow: visible !important; }
  .board .bcol { width: auto !important; min-width: 0 !important; min-height: 0 !important; flex: none !important; }
  /* Wide tables scroll inside their card, never the page */
  #app table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #app .card { max-width: 100%; }
  .qnav { gap: 6px; } .qnav a { padding: 6px 10px; }
}
