/* og-secoes (01/12/2026): troca de seção de tela no desenho do menu "Conversas" (casca.css #convFlyout).
   Só tokens da pele 2026 (claro e escuro sem cor fixa). Ver assets/js/og-secoes.js. */

/* a barra de abas antiga fica no lugar (com os seus eventos), escondida: quem aparece é o botão */
html.og-sec-on [data-og-secoes]{display:none !important}

.og-sec-host{display:flex;align-items:center;min-width:0;margin:0 0 12px}
.og-sec-host.og-sec-inline{margin:0}
.og-sec-host[hidden]{display:none !important}
.og-sec{position:relative;display:inline-flex;max-width:100%;min-width:0}
.og-sec[hidden]{display:none !important}

/* botão: ícone em quadrado + nome da seção em destaque + selo + ▾ */
/* !important nas medidas e cores: o botão é o mesmo em toda tela (algumas telas têm regra de button por #id) */
html body .og-sec-btn{
  display:inline-flex !important;align-items:center;gap:10px;max-width:100%;min-width:0;min-height:44px;height:auto !important;
  margin:0 !important;padding:5px 12px 5px 5px !important;border:1px solid var(--line) !important;border-radius:12px !important;
  background:var(--panel) !important;color:var(--ink) !important;box-shadow:var(--e1);
  font:inherit;font-family:var(--font-body);font-size:15px !important;font-weight:700 !important;letter-spacing:-.005em;line-height:1.2;
  text-align:left;text-transform:none;cursor:pointer;transition:border-color .12s,box-shadow .12s,background .12s;
}
html body .og-sec-btn:hover{border-color:var(--accent-line) !important}
html body .og-sec-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html body .og-sec-aberto .og-sec-btn{border-color:var(--accent) !important;box-shadow:0 0 0 3px var(--accent-soft)}
.og-sec-btn .og-sec-nome{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.og-sec-btn .og-sec-ic{width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent-ink)}
.og-sec-chev{flex:0 0 auto;color:var(--ink-3);transition:transform .15s var(--ease,ease)}
.og-sec-aberto .og-sec-chev{transform:rotate(180deg)}

/* quadrado do ícone (o mesmo .conv-ic do Conversas) */
.og-sec-ic{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:var(--bg);color:var(--accent-ink)}
.og-sec-ic svg{display:block}

/* selo: cinza = contagem; vermelho = pede ação */
.og-sec-n{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 7px;border-radius:999px;
  background:var(--chip);color:var(--ink-2);font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.og-sec-n.og-sec-n-urg{background:var(--red);color:var(--panel)}

/* a lista (mora no <body>) */
.og-sec-pop{
  position:fixed;z-index:2147483000;min-width:240px;max-width:min(380px, calc(100vw - 24px));overflow:auto;overscroll-behavior:contain;
  background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 44px rgba(8,18,15,.22);padding:8px;font-family:var(--font-body);
  animation:ogSecEntra .12s var(--ease,ease);
}
@keyframes ogSecEntra{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.og-sec-cap{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);font-weight:800;padding:4px 8px 8px}
.og-sec-lista{display:flex;flex-direction:column;gap:2px}
html body .og-sec-item{
  display:flex;align-items:center;gap:11px;width:100%;margin:0;padding:8px 10px;min-height:48px;
  border:1px solid transparent;border-radius:10px;background:none;box-shadow:none;cursor:pointer;
  font:inherit;font-family:var(--font-body);font-size:13.5px;font-weight:600;color:var(--ink);text-align:left;
  transition:background .12s,border-color .12s;
}
html body .og-sec-item:hover, html body .og-sec-item:focus-visible{background:var(--bg);border-color:var(--accent-line);outline:none}
html body .og-sec-item[aria-checked="true"]{background:var(--accent-50);border-color:var(--accent-line);font-weight:700}
html body .og-sec-item[aria-checked="true"] .og-sec-ic{background:var(--accent-soft);color:var(--accent-ink)}
html body .og-sec-item[aria-disabled="true"]{opacity:.55;cursor:default}
.og-sec-item .og-sec-nome{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.og-sec-sub{font-size:11px;font-weight:600;color:var(--muted)}
.og-sec-ok{flex:0 0 18px;display:grid;place-items:center;color:var(--accent-ink)}

/* celular: folha embaixo (não é janela no meio da tela) */
.og-sec-veu{position:fixed;inset:0;z-index:2147482999;background:rgba(8,18,15,.32);animation:ogSecVeu .15s ease}
@keyframes ogSecVeu{from{opacity:0}to{opacity:1}}
.og-sec-pop.og-sec-folha{
  left:0 !important;right:0;bottom:0;top:auto !important;width:auto;max-width:none;min-width:0 !important;max-height:78vh;
  border-radius:18px 18px 0 0;border-bottom:0;padding:10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -12px 40px rgba(8,18,15,.28);animation:ogSecSobe .18s var(--ease,ease);
}
.og-sec-pop.og-sec-folha::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:var(--line-2);margin:0 auto 10px}
.og-sec-pop.og-sec-folha .og-sec-cap{padding:2px 6px 10px;font-size:11px}
html body .og-sec-pop.og-sec-folha .og-sec-item{min-height:54px;font-size:14.5px;padding:9px 10px}
@keyframes ogSecSobe{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}

@media (max-width:640px){
  .og-sec-host{width:100%}
  .og-sec{width:100%}
  html body .og-sec-btn{width:100%;min-height:48px}
}
@media (prefers-reduced-motion:reduce){.og-sec-pop,.og-sec-veu,.og-sec-chev{animation:none;transition:none}}
