/* PPC · ajustes de integração. Todas as regras dependem de html.embed,
   que só existe quando a página roda dentro da plataforma. */

/* Mesma família tipográfica em todos os módulos */
html.embed body,
html.embed h1,html.embed h2,html.embed h3,html.embed h4,
html.embed button,html.embed input,html.embed select,html.embed textarea,
html.embed label,html.embed .btn,html.embed th,html.embed td{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}

/* Faixa com as telas internas do módulo */
html.embed .emb-sub{
  position:sticky;top:52px;z-index:19;
  display:flex;align-items:center;gap:4px;overflow-x:auto;
  padding:6px 16px;background:var(--surface);border-bottom:1px solid var(--line);
  scrollbar-width:thin;
}
html.embed .emb-sub > *{
  display:flex!important;flex-direction:row!important;align-items:center;gap:4px;
  padding:0!important;margin:0!important;border:0!important;
}
html.embed .emb-sub button{width:auto!important;white-space:nowrap;flex:none}
html.embed .emb-sub .navlabel{display:none}

/* Diagnóstico e Avaliação Psicológica */
html.emb-diagnostico .app,html.emb-avaliacao .app{grid-template-columns:minmax(0,1fr)!important}
html.emb-diagnostico .side,html.emb-avaliacao .side{display:none!important}
html.emb-diagnostico #theme,html.emb-avaliacao #theme{display:none!important}
html.emb-diagnostico .mobnav,html.emb-avaliacao .mobnav{display:none!important}

/* Capacitações */
html.emb-capacitacoes .app{grid-template-columns:minmax(0,1fr)!important}
html.emb-capacitacoes .side{display:none!important}
html.emb-capacitacoes #theme{display:none!important}
html.emb-capacitacoes .emb-sub{top:58px}

/* Gestão de Rotinas */
html.emb-rotinas .side{display:none!important}
html.emb-rotinas #themeBtn{display:none!important}

/* Projetos e Consultoria */
html.emb-projetos header.stage h1,html.emb-projetos .stage-sub{display:none!important}
html.emb-projetos .stage{padding-top:14px!important;padding-bottom:12px!important}

/* Campanhas SSO e Canal de Denúncias */
html.emb-campanhas .topbar .brand,html.emb-denuncias .topbar .brand{display:none!important}
html.emb-campanhas .topbar,html.emb-denuncias .topbar{justify-content:flex-end!important}
html.emb-campanhas .wrap > .note{display:none!important}

/* Canal de Sugestões */
html.emb-sugestoes .shell{grid-template-columns:minmax(0,1fr)!important;min-height:calc(100vh - 52px)}
html.emb-sugestoes .side{display:none!important}
html.emb-sugestoes .proto > div:first-child{display:none!important}
html.emb-sugestoes .proto{justify-content:flex-end!important}

/* ajustes finos */
html.emb-projetos .app-top{display:none!important}
html.emb-projetos .app{box-shadow:none!important}
html.emb-sugestoes .proto{background:var(--surface)!important;color:var(--fg)!important;border-bottom:1px solid var(--line);padding:8px 20px!important;justify-content:flex-end!important}
html.emb-sugestoes .proto::before{content:"Ver como";font-size:12.5px;color:var(--fg-2);margin-right:auto}
html.emb-sugestoes .proto .seg{background:var(--surface-2)!important}
html.emb-sugestoes .proto .seg button{color:var(--fg-2)!important}
html.emb-sugestoes .proto .seg button[aria-pressed="true"]{background:var(--brand)!important;color:var(--on-strong)!important}
