/* mobile-fix.css - phone layout fixes for the Dashboard header and the floating helpers (version chip, privacy shield, Notes tab, chat bubble).
   Added 22 Nov 2026. Only active on screens up to 820px wide. Desktop is not touched. */
@media (max-width:820px){
  html{--sl-bot:8px}

  /* ---- Dashboard header: title, short sub-line, then a tidy grid of controls ---- */
  .dash-hdr{display:block!important}
  .dash-hdr>div:first-child{margin-bottom:10px}
  .dash-hdr>div:first-child>div:first-child{font-size:20px!important;line-height:1.2}
  .dash-sub{font-size:11.5px!important;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .dash-ctl{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px!important;align-items:stretch!important;width:100%}
  .dash-ctl>*{grid-column:span 2;min-width:0!important;box-sizing:border-box}
  .dash-ctl>select,.dash-ctl>input[type=date]{grid-column:span 3;width:100%!important;height:42px;font-size:14px}
  .dash-ctl>select:only-of-type{grid-column:1/-1}
  .dash-ctl>label,.dash-ctl>span{grid-column:span 3;display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:36px;white-space:nowrap;font-size:13px!important}
  .dash-ctl>label input[type=checkbox]{width:20px;height:20px;margin:0;flex:none}
  .dash-ctl>span{justify-content:center;border:1px solid #CFE3E0;border-radius:10px;background:#F3FAF9}
  .dash-ctl>button{height:40px;padding:0 6px!important;font-size:12.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}

  /* ---- floating helpers: smaller, tucked to the edge, and they step aside while you scroll ---- */
  #sl-ver-chip{left:8px!important;bottom:calc(var(--sl-bot) + env(safe-area-inset-bottom,0px))!important;font-size:10px!important;padding:2px 8px!important;opacity:.72!important;transition:opacity .25s ease!important}
  #dpdp-fab{width:26px!important;height:26px!important;font-size:13px!important;bottom:calc(var(--sl-bot) + env(safe-area-inset-bottom,0px) - 2px)!important;opacity:.72!important;transition:opacity .25s ease!important}
  .sl-notes-dock{width:26px!important;padding:8px 0!important;border-radius:10px 0 0 10px!important;opacity:.85;transition:right .25s ease,opacity .25s ease!important}
  .sl-notes-dock>div:first-child{font-size:15px!important}
  .sl-notes-dock>div:nth-child(2){display:none!important}
  .sl-chat-fab{transform:scale(.85);transform-origin:100% 100%;transition:opacity .25s ease!important}
  html.mfx-scroll #sl-ver-chip,html.mfx-scroll #dpdp-fab,html.mfx-scroll .sl-notes-dock,html.mfx-scroll .sl-chat-fab{opacity:0!important;pointer-events:none!important}
}
