/* Componente único de retorno das telas externas à interface inicial.
   Tema escuro só quando a tela declara data-theme="dark" (ou tem tema escuro próprio, como o Eden, em eden.css):
   as telas avulsas têm cabeçalho claro, e seguir o modo escuro do sistema pintava o logo de branco sobre branco. */
a.hv-return{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;box-sizing:border-box;width:auto;min-height:38px;padding:8px 12px;border:1px solid var(--ed-border,var(--ltrx-border,#e1e6ee));border-radius:var(--star-radius-md,8px);background:var(--ed-surface,var(--ltrx-surface,#fff));color:var(--ed-text,var(--ltrx-text,#1a2433));font-family:var(--star-font-family,var(--ed-font,"Quicksand",sans-serif));font-size:13px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap}
a.hv-return svg{display:block;flex:0 0 16px;width:16px;height:16px}
a.hv-return:hover{color:var(--ed-accent,#0056fe);border-color:var(--ed-accent,#0056fe)}
a.hv-return:focus-visible{outline:2px solid var(--ed-accent,#0056fe);outline-offset:3px}
:root[data-theme="dark"] a.hv-return{background:var(--ed-surface,#161b22);color:var(--ed-text,#e7ebf1);border-color:var(--ed-border,#323c49)}
@media(max-width:640px){a.hv-return{min-height:44px;padding:10px;font-size:12px}}
.hv-return-brand{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;max-width:100%;vertical-align:middle}
.hv-return-brand img.hv-return-logo{display:block;flex:0 0 auto;width:auto;height:22px;max-width:none;object-fit:contain}
@media(max-width:640px){.hv-return-brand{gap:8px}.hv-return-brand img.hv-return-logo{height:20px}}
:root[data-theme="dark"] .hv-return-logo{filter:brightness(0) invert(1) opacity(.92)}

/* Cabeçalho padrão das telas avulsas: [← Voltar] [logo] │ [nome da tela] (starPageBrand em bootstrap/branding.php).
   Regras com !important de propósito: o bloco entra em cabeçalhos de módulos diferentes e não pode herdar
   flex-direction, quebra de linha, tamanho de h1 ou margens deles. */
.hv-brand-bar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;flex:0 1 auto!important;min-width:0!important;max-width:100%;margin:0!important;padding:0!important}
.hv-brand-bar>a.hv-return,.hv-brand-bar>img.hv-return-logo,.hv-brand-bar>.hv-brand-bar__divider{flex:0 0 auto!important;margin:0!important}
/* O "Voltar" é igual em todas as telas: o CSS do módulo (links e botões do cabeçalho) não muda cor, tamanho nem borda. */
.hv-brand-bar>a.hv-return{display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:38px!important;padding:8px 12px!important;color:var(--ed-text,var(--ltrx-text,#1a2433))!important;background:var(--ed-surface,var(--ltrx-surface,#fff))!important;border:1px solid var(--ed-border,var(--ltrx-border,#e1e6ee))!important;border-radius:var(--star-radius-md,8px)!important;font-family:var(--star-font-family,"Quicksand",sans-serif)!important;font-size:13px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;opacity:1!important;box-shadow:none!important}
.hv-brand-bar>a.hv-return:hover,.hv-brand-bar>a.hv-return:focus-visible{color:var(--ed-accent,#0056fe)!important;border-color:var(--ed-accent,#0056fe)!important}
.hv-brand-bar>a.hv-return>span{display:inline!important;margin:0!important;padding:0!important;color:inherit!important;background:none!important;border:0!important;font:inherit!important;letter-spacing:inherit!important;text-transform:none!important;opacity:1!important}
.hv-brand-bar>a.hv-return svg{display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important}
:root[data-theme="dark"] .hv-brand-bar>a.hv-return{color:var(--ed-text,#e7ebf1)!important;background:var(--ed-surface,#161b22)!important;border-color:var(--ed-border,#323c49)!important}
.hv-brand-bar>img.hv-return-logo{display:block!important;width:auto!important;height:22px!important;max-width:none!important}
/* Selo da versão (OS1, starOsSeal) logo depois do logo; tem cor própria, então não inverte no tema escuro. */
.hv-return-brand img.hv-os-seal,.hv-brand-bar>img.hv-os-seal{display:block!important;flex:0 0 auto!important;width:38px!important;height:38px!important;max-width:none!important;margin:0 0 0 -5px!important}
.hv-brand-bar__divider{display:block!important;width:1px!important;height:28px!important;background:var(--ed-border,var(--ltrx-border,#e1e6ee))}
.hv-brand-bar__title{display:flex!important;flex-direction:column!important;justify-content:center;gap:1px;flex:0 1 auto!important;min-width:0!important;text-align:left!important}
.hv-brand-bar .hv-brand-bar__name{display:block;margin:0!important;padding:0!important;overflow:hidden;color:var(--ed-text,var(--ltrx-text,#1a2433));font-family:var(--star-font-family,"Quicksand",sans-serif)!important;font-size:16px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;text-overflow:ellipsis;white-space:nowrap}
.hv-brand-bar .hv-brand-bar__sub,.hv-brand-bar .hv-brand-bar__eyebrow{display:block;overflow:hidden;color:var(--ed-muted,var(--ltrx-muted,#6b7789));font-family:var(--star-font-family,"Quicksand",sans-serif);font-size:12px;font-weight:500;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.hv-brand-bar .hv-brand-bar__eyebrow[hidden]{display:none!important}
:root[data-theme="dark"] .hv-brand-bar__divider{background:var(--ed-border,#323c49)}
@media(max-width:640px){
  .hv-brand-bar{gap:8px!important}
  .hv-brand-bar>a.hv-return{justify-content:center!important;width:38px!important;padding:0!important}
  .hv-brand-bar>a.hv-return>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hv-brand-bar>img.hv-return-logo{height:18px!important}
  .hv-brand-bar>img.hv-os-seal{width:31px!important;height:31px!important}
  .hv-brand-bar__divider{height:22px!important}
  .hv-brand-bar .hv-brand-bar__name{font-size:14px!important}
  .hv-brand-bar .hv-brand-bar__sub{display:none}
}
/* Quem vem depois do bloco: por padrão encosta nele; telas com ferramentas à direita usam hv-brand-bar--grow. */
.hv-brand-bar.hv-brand-bar--grow{flex:1 1 auto!important}
