/* SES Solar Pro official identity V4 — visual only; no business logic. */
/* Artwork supplied by owner. Full logo is kept intact and cropped only from blank margins. */
#sesWebRoot .ses-brand{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:0!important;padding:19px 8px 20px!important;
  background:linear-gradient(155deg,#fff,#eaf5ff)!important;
}
#sesWebRoot .ses-brand img{
  display:block!important;width:min(100%,215px)!important;height:auto!important;
  min-width:0!important;min-height:0!important;max-width:215px!important;
  aspect-ratio:955/628!important;object-fit:contain!important;
  padding:5px!important;margin:auto!important;background:white!important;
  border:1.5px solid #b9d9f7!important;border-radius:15px!important;
  box-shadow:inset 0 2px 3px #fff,0 10px 21px #0a529033,0 3px 0 #d6eaff!important;
  filter:none!important;
}
#sesWebRoot .ses-brand>div{display:none!important}
#sesWebRoot .ses-page-head .ses-h2-identity{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:12px!important;
}
#sesWebRoot .ses-page-head .ses-h2-identity img{
  display:block!important;width:clamp(150px,17vw,205px)!important;
  max-width:min(100%,205px)!important;height:auto!important;
  min-height:0!important;max-height:none!important;aspect-ratio:955/628!important;
  object-fit:contain!important;padding:5px!important;
  border:1.5px solid #d2e3f8!important;border-radius:15px!important;
  background:#fff!important;box-shadow:0 10px 25px #032b5f66,inset 0 2px 2px white!important;
}
#sesWebRoot .ses-page-head .ses-h2-identity>div{min-width:0}
#sesWebRoot .ses-page-head .ses-h2-identity strong{line-height:1.5!important}
/* V8 dashboard legacy logo is now also the complete official mark. */
#sesWebRoot #dashboardWelcome .hero-sun{
  width:clamp(125px,15vw,175px)!important;height:auto!important;
  min-height:85px!important;padding:5px!important;border-radius:15px!important;
}
#sesWebRoot #dashboardWelcome .hero-sun .ses-official-mark{
  display:block!important;width:100%!important;height:auto!important;
  max-width:100%!important;object-fit:contain!important;aspect-ratio:955/628!important;
}
#authGate .ses-official-login{
  width:min(320px,100%)!important;max-height:none!important;
  height:auto!important;aspect-ratio:955/628!important;
  object-fit:contain!important;filter:none!important;
}
#authGate .auth-sun{max-width:100%!important}
/* Header of the original layout, if rendered separately. */
#appShell .brand-logo-wrap .ses-logo-card{
  width:155px!important;height:auto!important;min-height:100px!important;padding:5px!important;
}
#appShell .brand-logo-wrap .ses-official-mark{
  width:100%!important;height:auto!important;max-width:100%!important;
  aspect-ratio:955/628!important;object-fit:contain!important;
}
/* Customer portal: replace square logo slot with a full, readable mark. */
body .top .brand img.logo{
  width:clamp(122px,13vw,180px)!important;
  height:auto!important;aspect-ratio:955/628!important;
  padding:5px!important;border-radius:14px!important;
  background:#fff!important;object-fit:contain!important;
  box-shadow:0 8px 20px #021c394d!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  #sesWebRoot .ses-brand img{width:min(100%,222px)!important;max-width:222px!important}
  #sesWebRoot .ses-page-head .ses-h2-identity img{width:clamp(130px,39vw,170px)!important}
  #sesWebRoot #dashboardWelcome .hero-sun{width:125px!important;min-height:79px!important}
  body .top .brand img.logo{width:clamp(110px,31vw,150px)!important}
  body .top .brand{gap:8px!important}
  body .top .brand h1{font-size:13px!important}
  body .top .brand .english{font-size:8px!important;letter-spacing:.2px!important}
}
@media(max-width:390px){
  #sesWebRoot .ses-page-head .ses-h2-identity{gap:8px!important}
  #sesWebRoot .ses-page-head .ses-h2-identity img{width:129px!important}
  #sesWebRoot .ses-page-head .ses-h2-identity strong{font-size:14px!important}
  #authGate .ses-official-login{width:min(270px,100%)!important}
}
