/* menu-lateral.css — pílula flutuante à esquerda com as telas que ficam no "Mais" (telas grandes).
   Ícones pequenos que crescem perto do mouse (como o Dock do Mac) e uma pílula escura que desliza até a tela aberta.
   Só vale quando body tem a classe .ml-on (colocada pelo menu-lateral.js se houver itens). */
#ml-pilula, #ml-tip { display: none; }
@media (min-width: 1100px) {
  body.ml-on #ml-pilula {
    --ml-s: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    position: fixed; left: 14px; top: calc(50% + 38px); transform: translateY(-50%); z-index: 900; /* abaixo das janelas (popups) */
    width: calc(var(--ml-s) + 12px); padding: 6px 0; border-radius: 99px; box-sizing: border-box;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(16, 19, 28, 0.12);
    max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none;
  }
  body.ml-on #ml-pilula::-webkit-scrollbar { display: none; }
  #ml-pilula .ml-b {
    position: relative; z-index: 1; flex: none; width: var(--ml-s); height: var(--ml-s); min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: transparent; color: var(--muted); box-shadow: none; transition: color 0.3s ease;
  }
  #ml-pilula .ml-b i { display: inline-block; font-size: calc(var(--ml-s) * 0.6); line-height: 1; transform: scale(var(--e, 1)); transform-origin: center; transition: transform 0.12s ease-out; pointer-events: none; }
  #ml-pilula .ml-b:hover { color: var(--txt); }
  #ml-pilula .ml-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  #ml-pilula .ml-b.on, #ml-pilula .ml-b.on:hover { color: var(--card); }
  /* pílula escura que desliza até a tela aberta (mesmo efeito da barra do topo) */
  #ml-ind { position: absolute; left: 5px; top: 0; z-index: 0; width: var(--ml-s); height: var(--ml-s); border-radius: 50%; background: var(--txt); pointer-events: none; opacity: 0; will-change: transform; }
  #ml-ind.pronta { transition: transform 0.45s cubic-bezier(0.5, 0, 0.15, 1), opacity 0.2s ease; }
  #ml-pilula .ml-sep { flex: none; width: calc(var(--ml-s) - 10px); height: 1px; margin: 4px 0; background: var(--border); }
  body.ml-on #ml-tip {
    display: block; position: fixed; z-index: 3200; pointer-events: none; opacity: 0; transform: translate(-4px, -50%);
    padding: 6px 11px; border-radius: 8px; font: 600 12.5px/1.2 var(--font-body, inherit); white-space: nowrap;
    background: var(--txt); color: var(--card); transition: opacity 0.15s ease, transform 0.15s ease;
  }
  body.ml-on #ml-tip.on { opacity: 1; transform: translate(0, -50%); }

  /* a seta "Mais ▾" some: as telas passam a ficar na pílula */
  body.ml-on #dt-mais, body.ml-on #dt-mais-menu { display: none !important; }
  /* barra superior com as abas bem no centro */
  body.ml-on .side-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  /* a busca vira um ícone; ao clicar (ou Ctrl+K) o campo desce numa caixa logo abaixo da barra, sem cobrir os botões */
  body.ml-on #dt-busca { flex: none; width: 44px; height: 44px; min-width: 0; max-width: none; margin-left: auto; align-self: center; }
  body.ml-on #dt-busca > i { left: 0; top: 50%; width: 44px; margin-top: -9px; text-align: center; z-index: 3; }
  body.ml-on #dt-busca input { position: absolute; right: 0; top: 0; width: 44px; height: 44px; padding: 0 !important; color: transparent; cursor: pointer; background: transparent; border-color: transparent; box-shadow: none; }
  body.ml-on #dt-busca input::placeholder { color: transparent; }
  body.ml-on #dt-busca input::-webkit-search-cancel-button { display: none; }
  body.ml-on #dt-busca .dt-atalho { display: none; }
  body.ml-on #dt-busca:hover input { background: var(--card-hover); }
  body.ml-on #dt-busca:focus-within input { top: 58px; width: min(460px, calc(100vw - 32px)); padding: 0 16px 0 16px !important; color: var(--txt); cursor: text; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 18px 50px rgba(16, 19, 28, 0.22), 0 0 0 3px rgba(249, 115, 22, 0.15); z-index: 3200; }
  body.ml-on #dt-busca:focus-within input::placeholder { color: var(--muted); }
  body.ml-on #dt-busca:focus-within > i { color: var(--accent); }
  body.ml-on #dt-busca-res { top: 112px; width: min(460px, calc(100vw - 32px)); z-index: 3200; }
  /* o conteúdo não fica por baixo da pílula */
  body.ml-on .main-content { padding-left: 70px; }
}
