/* Barra Alfred compartilhada — LP, autenticação, veículo, PF e parceiro. */
:root{
  --alfred-bar-height:84px;
  --alfred-bar-height-mobile:72px;
  --alfred-bar-shell:1180px;
  --alfred-bar-gutter:24px;
  --alfred-bar-logo:112px;
  --alfred-bar-logo-mobile:96px;
}

#screen-busca .ar-header,
#screen-detalhe .alfred-unified-header,
#screen-cadastro .cad-header,
#screen-conta .alfred-unified-header,
#screen-partner-login .partner-auth-header,
#screen-partner-signup .partner-header,
#screen-partner-dashboard .partner-topbar,
.auth-header,
.seo-header{
  position:sticky!important;
  z-index:300!important;
  top:0!important;
  width:100%!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid rgba(17,17,15,.12)!important;
  background:rgba(247,246,241,.94)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

.ar-header>.ar-nav,
.alfred-unified-header-inner,
.cad-header>.cad-top-row,
.partner-auth-header>.alfred-unified-nav,
.partner-header>.alfred-unified-nav,
.partner-topbar>.partner-dashboard-header-inner,
.auth-header>.auth-header-inner,
.seo-header>.seo-nav{
  width:min(var(--alfred-bar-shell),calc(100% - (var(--alfred-bar-gutter) * 2)))!important;
  max-width:var(--alfred-bar-shell)!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}

.alfred-unified-header-inner>.alfred-lp-nav,
.alfred-unified-header-inner>.alfred-unified-nav{
  width:100%!important;
  max-width:none!important;
  min-height:inherit!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}

.ar-brand,
.alfred-header-brand,
.nav-logo>a,
.cad-brand-link,
.auth-header-inner>a:first-child,
.seo-nav>a:first-child{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

#screen-busca .ar-header .ar-brand{
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  flex-basis:var(--alfred-bar-logo)!important;
}
#screen-busca .ar-header .ar-brand picture{
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
}

#screen-busca .ar-header .ar-brand .alfred-header-logo,
#screen-detalhe .alfred-lp-nav .nav-logo .alfred-header-logo,
#screen-cadastro .cad-header .cad-brand-link .alfred-header-logo,
#screen-conta .alfred-unified-nav .nav-logo .alfred-header-logo,
#screen-partner-login .partner-auth-header .nav-logo .alfred-header-logo,
#screen-partner-signup .partner-header .nav-logo .alfred-header-logo,
#screen-partner-dashboard .partner-topbar .nav-logo .alfred-header-logo,
.auth-header .alfred-header-logo,
.auth-header .logo,
.seo-header img{
  display:block!important;
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  max-width:var(--alfred-bar-logo)!important;
  height:auto!important;
  max-height:80px!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  border:0!important;
  background:transparent!important;
}

.ar-nav-links{flex:1 1 auto!important}
.ar-nav-actions,.alfred-nav-actions,.seo-nav-actions{margin-left:auto!important;flex:0 0 auto!important}

.alfred-bar-action{
  display:inline-flex!important;
  min-height:46px!important;
  align-items:center!important;
  justify-content:center!important;
  margin-left:auto!important;
  padding:0 18px!important;
  border:1px solid rgba(17,17,15,.15)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.8)!important;
  color:#11110f!important;
  box-shadow:none!important;
  font-family:'Manrope',system-ui,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.alfred-bar-action:hover{border-color:rgba(17,17,15,.28)!important;background:#fff!important}

#screen-partner-login .partner-auth-back{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:46px!important;
  height:46px!important;
  margin-left:auto!important;
  padding:0 18px!important;
  font-size:13px!important;
  line-height:1!important;
  overflow:visible!important;
  white-space:nowrap!important;
  transform:none!important;
}
#screen-partner-login .partner-auth-back::before{content:none!important;display:none!important}
#alfred-auth-header.auth-header .auth-header-inner>.alfred-bar-action{
  box-sizing:border-box!important;
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 0 0 auto!important;
  padding:0 18px!important;
  overflow:visible!important;
  border:1px solid rgba(17,17,15,.15)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.8)!important;
  color:#11110f!important;
  box-shadow:none!important;
  font-family:'Manrope',system-ui,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  transform:none!important;
}
#alfred-auth-header.auth-header .auth-header-inner>.alfred-bar-action:hover{border-color:rgba(17,17,15,.28)!important;background:#fff!important}
#screen-conta .alfred-nav-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;margin-left:auto!important}
#screen-partner-dashboard .partner-topbar.alfred-unified-dashboard-nav{
  position:sticky!important;
  top:0!important;
  z-index:300!important;
  width:100%!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-bottom:1px solid rgba(17,17,15,.12)!important;
  background:rgba(247,246,241,.94)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
#screen-partner-dashboard .partner-topbar.alfred-unified-dashboard-nav>.partner-dashboard-header-inner{
  width:min(var(--alfred-bar-shell),calc(100% - (var(--alfred-bar-gutter) * 2)))!important;
  max-width:var(--alfred-bar-shell)!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  overflow:visible!important;
}
#screen-partner-dashboard .partner-topbar .nav-logo{
  display:flex!important;
  width:var(--alfred-bar-logo)!important;
  min-width:0!important;
  max-width:var(--alfred-bar-logo)!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  flex:0 0 var(--alfred-bar-logo)!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
#screen-partner-dashboard .partner-logo-static.alfred-header-brand{
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  max-width:var(--alfred-bar-logo)!important;
  height:auto!important;
  min-height:0!important;
  max-height:80px!important;
  flex:0 0 var(--alfred-bar-logo)!important;
  overflow:visible!important;
  line-height:0!important;
}
#screen-partner-dashboard #partner-dashboard-logo{
  display:block!important;
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  max-width:var(--alfred-bar-logo)!important;
  height:auto!important;
  min-height:0!important;
  max-height:80px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  transform:none!important;
}
.alfred-session-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;margin-left:auto!important;min-width:0!important}
#screen-partner-dashboard .partner-name-inline{min-width:0!important;max-width:min(34vw,360px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#screen-partner-dashboard .logout-btn{width:auto!important;min-width:78px!important;max-width:none!important;height:46px!important;min-height:46px!important;flex:0 0 auto!important;margin-left:0!important;padding:0 18px!important;font-size:13px!important}

/* Camada final: neutraliza dimensões históricas de alta especificidade. */
#alfred-auth-header.auth-header{
  position:sticky!important;
  z-index:300!important;
  top:0!important;
  width:100%!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid rgba(17,17,15,.12)!important;
  background:rgba(247,246,241,.94)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
#screen-busca .ar-header>.ar-nav,
#screen-partner-login .partner-auth-header>.partner-auth-nav,
#screen-conta .alfred-unified-header>.alfred-unified-header-inner,
#alfred-auth-header.auth-header>.auth-header-inner{
  box-sizing:border-box!important;
  width:min(var(--alfred-bar-shell),calc(100% - (var(--alfred-bar-gutter) * 2)))!important;
  max-width:var(--alfred-bar-shell)!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
#screen-conta .alfred-unified-header-inner>.alfred-unified-nav{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  height:var(--alfred-bar-height)!important;
  min-height:var(--alfred-bar-height)!important;
  max-height:var(--alfred-bar-height)!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
:is(#screen-busca,#screen-conta,#screen-partner-login,#screen-partner-dashboard,#alfred-auth-header)
.alfred-header-brand.alfred-header-brand.alfred-header-brand{
  box-sizing:border-box!important;
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  max-width:var(--alfred-bar-logo)!important;
  height:auto!important;
  min-height:0!important;
  max-height:80px!important;
  flex:0 0 var(--alfred-bar-logo)!important;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  line-height:0!important;
  overflow:visible!important;
}
:is(#screen-busca,#screen-conta,#screen-partner-login,#screen-partner-dashboard,#alfred-auth-header)
.alfred-header-logo.alfred-header-logo.alfred-header-logo{
  box-sizing:border-box!important;
  display:block!important;
  width:var(--alfred-bar-logo)!important;
  min-width:var(--alfred-bar-logo)!important;
  max-width:var(--alfred-bar-logo)!important;
  height:auto!important;
  min-height:0!important;
  max-height:80px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}

/* Ações públicas da LP maiores, sem comprometer a barra no mobile. */
.ar-header .ar-nav-actions{gap:10px!important}
.ar-header .ar-nav-actions .ar-button{
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:14px!important;
  font-size:13px!important;
}

/* Rodapé preto usa a marca oficial diretamente, sem placa colorida. */
.ar-footer-brand picture,
.ar-footer-brand>img{
  display:block!important;
  width:clamp(132px,13vw,158px)!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.ar-footer-brand picture img,.ar-footer-brand>img{display:block!important;width:100%!important;height:auto!important;background:transparent!important;filter:none!important}
.ar-footer-brand>img{width:clamp(132px,13vw,158px)!important}

.alfred-unified-header .ar-button,
.partner-auth-back,
.inline-return,
.logout-btn{
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:14px!important;
  font-size:13px!important;
}

@media(max-width:820px){
  .ar-nav-links{display:none!important}
}

@media(max-width:640px){
  :root{--alfred-bar-gutter:16px}
  #screen-busca .ar-header,#screen-detalhe .alfred-unified-header,#screen-cadastro .cad-header,#screen-conta .alfred-unified-header,#screen-partner-login .partner-auth-header,#screen-partner-signup .partner-header,#screen-partner-dashboard .partner-topbar,.auth-header,.seo-header{
    height:var(--alfred-bar-height-mobile)!important;
    min-height:var(--alfred-bar-height-mobile)!important;
    max-height:var(--alfred-bar-height-mobile)!important;
  }
  .ar-header>.ar-nav,.alfred-unified-header-inner,.cad-header>.cad-top-row,.partner-auth-header>.alfred-unified-nav,.partner-header>.alfred-unified-nav,.partner-topbar>.partner-dashboard-header-inner,.auth-header>.auth-header-inner,.seo-header>.seo-nav{
    height:var(--alfred-bar-height-mobile)!important;
    min-height:var(--alfred-bar-height-mobile)!important;
    max-height:var(--alfred-bar-height-mobile)!important;
    gap:10px!important;
  }
  #screen-busca .ar-header .ar-brand .alfred-header-logo,#screen-detalhe .alfred-lp-nav .nav-logo .alfred-header-logo,#screen-cadastro .cad-header .cad-brand-link .alfred-header-logo,#screen-conta .alfred-unified-nav .nav-logo .alfred-header-logo,#screen-partner-login .partner-auth-header .nav-logo .alfred-header-logo,#screen-partner-signup .partner-header .nav-logo .alfred-header-logo,#screen-partner-dashboard .partner-topbar .nav-logo .alfred-header-logo,.auth-header .alfred-header-logo,.auth-header .logo,.seo-header img{
    width:var(--alfred-bar-logo-mobile)!important;
    min-width:var(--alfred-bar-logo-mobile)!important;
    max-width:var(--alfred-bar-logo-mobile)!important;
    max-height:68px!important;
  }
  #screen-busca .ar-header .ar-brand,#screen-busca .ar-header .ar-brand picture{width:var(--alfred-bar-logo-mobile)!important;min-width:var(--alfred-bar-logo-mobile)!important;flex-basis:var(--alfred-bar-logo-mobile)!important}
  .ar-header .ar-nav-actions{gap:5px!important}
  .ar-header .ar-nav-actions .ar-button{min-height:40px!important;padding:0 11px!important;font-size:11px!important;border-radius:12px!important}
  .partner-topbar .nav-logo{min-width:0!important;gap:9px!important}
  .partner-name-inline{max-width:30vw!important}
  .alfred-unified-header .ar-button,.partner-auth-back,.inline-return,.logout-btn{min-height:42px!important;padding:0 13px!important;font-size:11px!important}
  .alfred-bar-action{min-height:40px!important;padding:0 12px!important;border-radius:12px!important;font-size:11px!important}
  #screen-partner-login .partner-auth-back{width:auto!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;padding:0 12px!important;font-size:11px!important}
  #screen-partner-login .partner-auth-back::before{content:none!important;display:none!important}
  #alfred-auth-header.auth-header .auth-header-inner>.alfred-bar-action{width:auto!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 12px!important;border-radius:12px!important;font-size:11px!important}
  #screen-partner-dashboard .partner-topbar.alfred-unified-dashboard-nav{height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important}
  #screen-partner-dashboard .partner-topbar.alfred-unified-dashboard-nav>.partner-dashboard-header-inner{width:min(var(--alfred-bar-shell),calc(100% - (var(--alfred-bar-gutter) * 2)))!important;max-width:var(--alfred-bar-shell)!important;height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important;display:flex!important;gap:10px!important;overflow:visible!important}
  #screen-partner-dashboard .partner-topbar .nav-logo{width:var(--alfred-bar-logo-mobile)!important;min-width:0!important;max-width:var(--alfred-bar-logo-mobile)!important;height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important;flex:0 0 var(--alfred-bar-logo-mobile)!important}
  #screen-partner-dashboard .partner-logo-static.alfred-header-brand,#screen-partner-dashboard #partner-dashboard-logo{width:var(--alfred-bar-logo-mobile)!important;min-width:var(--alfred-bar-logo-mobile)!important;max-width:var(--alfred-bar-logo-mobile)!important;height:auto!important;min-height:0!important;max-height:68px!important;flex-basis:var(--alfred-bar-logo-mobile)!important}
  #screen-partner-dashboard .logout-btn{width:auto!important;min-width:66px!important;max-width:none!important;height:42px!important;min-height:42px!important;padding:0 13px!important;font-size:11px!important}
  #alfred-auth-header.auth-header{height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important}
  #screen-busca .ar-header>.ar-nav,#screen-partner-login .partner-auth-header>.partner-auth-nav,#screen-conta .alfred-unified-header>.alfred-unified-header-inner,#alfred-auth-header.auth-header>.auth-header-inner{width:min(var(--alfred-bar-shell),calc(100% - (var(--alfred-bar-gutter) * 2)))!important;max-width:var(--alfred-bar-shell)!important;height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important;gap:10px!important}
  #screen-conta .alfred-unified-header-inner>.alfred-unified-nav{height:var(--alfred-bar-height-mobile)!important;min-height:var(--alfred-bar-height-mobile)!important;max-height:var(--alfred-bar-height-mobile)!important;gap:10px!important}
  :is(#screen-busca,#screen-conta,#screen-partner-login,#screen-partner-dashboard,#alfred-auth-header) .alfred-header-brand.alfred-header-brand.alfred-header-brand,
  :is(#screen-busca,#screen-conta,#screen-partner-login,#screen-partner-dashboard,#alfred-auth-header) .alfred-header-logo.alfred-header-logo.alfred-header-logo{width:var(--alfred-bar-logo-mobile)!important;min-width:var(--alfred-bar-logo-mobile)!important;max-width:var(--alfred-bar-logo-mobile)!important;height:auto!important;min-height:0!important;max-height:68px!important;flex-basis:var(--alfred-bar-logo-mobile)!important}
}

@media(max-width:380px){
  :root{--alfred-bar-logo-mobile:84px;--alfred-bar-gutter:12px}
  .ar-header .ar-nav-actions .ar-button{padding:0 9px!important;font-size:10px!important}
  .ar-header .ar-nav-actions .ar-partner-link{padding-inline:7px!important;font-size:9px!important}
}
