.nav .brand.brand-image {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

/* Alpha 1.124: self-contained account/plan widget. */
.dashboard-plan-widget{display:inline-grid;grid-template-columns:minmax(0,auto);align-items:center;justify-self:end;gap:6px;width:max-content;max-width:min(100%,430px);min-width:0;padding:10px 12px;border:1px solid rgba(87,155,218,.35);border-radius:13px;background:linear-gradient(145deg,rgba(15,35,55,.98),rgba(8,23,38,.98));box-shadow:0 12px 30px rgba(0,0,0,.2)}
.dashboard-plan-main{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}.dashboard-plan-main>strong{min-width:0;color:#f4f8ff;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-plan-widget>span{color:#8fa8c1;font-size:11px}.dashboard-plan-widget .subscription-plan-badge,.dashboard-plan-widget .subscription-upgrade-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:25px;padding:4px 10px;border:1px solid rgba(88,174,255,.58);border-radius:999px;background:rgba(30,136,255,.16);color:#8fc8ff;font-size:10px;font-weight:800;letter-spacing:.045em;line-height:1;text-decoration:none;text-transform:uppercase;white-space:nowrap}.dashboard-plan-widget .subscription-upgrade-button{background:rgba(30,136,255,.22);color:#fff}.dashboard-plan-widget .subscription-upgrade-button:hover{background:#1e88ff;border-color:#55adff}
.dashboard-plan-widget .developer-badge,.dashboard-plan-widget .subscription-plan-badge.plan-developer{border-color:#ff6572!important;background:#c62836!important;color:#fff!important;box-shadow:0 0 12px rgba(255,75,92,.25)!important}.live-date-separator{color:#526d86;font-style:normal}.live-poll-state time{margin-left:0!important;padding-left:0!important;border-left:0!important}
.dashboard-top-stack{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;margin:0 0 2px!important}.dashboard-top-stack>.noc-head,.dashboard-top-stack>.live-status-bar,.dashboard-top-stack>.live-activity-strip{margin:0!important}.noc-head{align-items:center!important}.live-status-bar{position:static!important}.live-activity-strip{gap:3px!important}.live-activity-strip>a{padding:9px 11px!important}#dashboardWidgetCanvas{margin-top:2px!important;gap:8px!important}.wan-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
@media(max-width:760px){.dashboard-plan-widget{width:100%;min-width:0}.noc-head{align-items:stretch!important}}

/* Direct page refinements */
.customer-nav a[href="/notifications"]{display:none!important}
.report-filter{display:grid!important;grid-template-columns:180px 180px auto auto!important;align-items:end!important;justify-content:start!important;gap:10px!important}
.report-filter .mini-btn{width:auto!important;min-width:96px!important;height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
.report-filter .report-export{min-width:112px!important}
.site-account-tools{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.site-account-tools .dashboard-plan-widget{margin:0!important}
@media(max-width:700px){.report-filter{grid-template-columns:1fr 1fr!important}.report-filter .mini-btn{width:100%!important}.site-account-tools{width:100%;margin-left:0}}
@media(max-width:520px){.dashboard-plan-main{flex-wrap:wrap}.dashboard-plan-main>strong{flex:1 0 100%}}
@media(max-width:430px){.wan-heading-actions{justify-content:flex-start}}

/* Alpha 1.121: four-slot live operations activity strip. */
.live-activity-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 7px}
.live-activity-strip>a{display:grid;gap:4px;min-width:0;padding:11px 13px;border:1px solid rgba(120,160,200,.22);border-radius:11px;background:rgba(10,24,39,.94);color:#e8eef8;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.live-activity-strip>a:hover{border-color:rgba(67,165,255,.65);background:rgba(15,38,61,.96)}
.live-activity-strip span{color:#86a5c3;font-size:10px;font-weight:700;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-activity-strip strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-activity-strip small{color:#6f8ba6;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.live-activity-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.live-activity-strip{grid-template-columns:1fr}.live-activity-strip>a{padding:9px 11px}}

/* Alpha 1.119: compact mobile header that never covers the page. */
@media(max-width:760px){
  header.nav{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    width:100%!important;
    min-height:58px!important;
    height:58px!important;
    padding:5px 8px!important;
    overflow:hidden!important;
  }
  header.nav>a.brand.brand-fixed{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:132px!important;
    min-height:44px!important;
    height:44px!important;
    gap:6px!important;
    padding:2px 4px 2px 0!important;
  }
  .brand-fixed .brand-fixed-icon{
    flex:0 0 36px!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    max-height:36px!important;
  }
  .brand-fixed .brand-fixed-text{font-size:15px!important;gap:3px!important}
  header.nav nav{
    display:flex!important;
    flex:1 1 auto!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:3px!important;
    min-width:0!important;
    max-height:48px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  header.nav nav::-webkit-scrollbar{display:none!important}
  header.nav nav>a,
  header.nav nav>span{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:7px 8px!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  main.dash,.section{padding-left:12px!important;padding-right:12px!important}
}

/* Alpha 1.157: unified WenzOS Cloud banner branding. */
header.nav>a.brand.brand-fixed.brand-banner{
  position:relative!important;
  display:block!important;
  flex:0 0 250px!important;
  width:250px!important;
  min-width:250px!important;
  max-width:250px!important;
  min-height:62px!important;
  height:62px!important;
  margin:0!important;
  padding:3px!important;
  overflow:hidden!important;
  border:1px solid rgba(78,164,255,.25)!important;
  border-radius:14px!important;
  background:#020817!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 22px rgba(0,0,0,.28)!important;
}
header.nav>a.brand.brand-fixed.brand-banner>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:none!important;
  transform:none!important;
}
header.nav>a.brand.brand-fixed.brand-banner:before,
header.nav>a.brand.brand-fixed.brand-banner:after{
  content:none!important;
  display:none!important;
}
.auth-brand.auth-banner{
  display:block!important;
  width:min(360px,100%)!important;
  margin:0 auto 16px!important;
}
.auth-brand.auth-banner img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  border:1px solid rgba(78,164,255,.25)!important;
  border-radius:14px!important;
  object-fit:contain!important;
  box-shadow:0 10px 30px rgba(0,0,0,.28)!important;
}
.auth-brand.auth-banner strong{display:none!important}
@media(max-width:760px){
  header.nav>a.brand.brand-fixed.brand-banner{
    flex:0 0 150px!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    min-height:44px!important;
    height:44px!important;
    padding:2px!important;
    border-radius:10px!important;
  }
  header.nav>a.brand.brand-fixed.brand-banner>img{border-radius:7px!important}
  .auth-brand.auth-banner{width:min(310px,100%)!important}
}

.nav .brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 235px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .nav .brand-logo {
    height: 44px;
    max-width: 190px;
  }
}
/* Alpha 1.110: universal server-rendered brand fallback. */
header.nav>a.brand.brand-image{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:202px!important;
  min-height:54px!important;
  padding:4px 8px 4px 0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
header.nav>a.brand.brand-image>img.brand-logo{
  display:block!important;
  position:static!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
  transform:none!important;
  filter:drop-shadow(0 0 7px rgba(31,145,255,.34))!important;
}
header.nav>a.brand.brand-image:not(.brand-icon-wordmark)::after{
  content:'WenzOS Cloud';
  display:inline-block!important;
  color:#f7fbff!important;
  font-size:21px!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:-.35px!important;
  white-space:nowrap!important;
  text-shadow:0 0 10px rgba(48,145,255,.2)!important;
}
@media(max-width:760px){
  header.nav>a.brand.brand-image{min-width:170px!important;min-height:48px!important;gap:8px!important}
  header.nav>a.brand.brand-image>img.brand-logo{flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;max-height:40px!important}
  header.nav>a.brand.brand-image:not(.brand-icon-wordmark)::after{font-size:18px!important}
}

/* Alpha 1.114: customer header logo independent of its child image node. */
header.nav>a.brand[href='/dashboard']{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:202px!important;
  min-height:54px!important;
  overflow:visible!important;
}
header.nav>a.brand[href='/dashboard']::before{
  content:''!important;
  display:block!important;
  position:static!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  border-radius:50%!important;
  background-color:#0878ed!important;
  background-image:url('/favicon.png?v=300114')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
  filter:drop-shadow(0 0 7px rgba(31,145,255,.34))!important;
}
header.nav>a.brand[href='/dashboard']>img{display:none!important}
@media(max-width:760px){
  header.nav>a.brand[href='/dashboard']{min-width:170px!important;min-height:48px!important;gap:8px!important}
  header.nav>a.brand[href='/dashboard']::before{flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important}
}

/* Alpha 1.113: final server-rendered header, immune to old JS replacement. */
header.nav>a.brand.brand-fixed{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:202px!important;
  min-height:54px!important;
  padding:4px 8px 4px 0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.brand-fixed .brand-fixed-icon{
  display:block!important;
  position:static!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  transform:none!important;
  filter:drop-shadow(0 0 7px rgba(31,145,255,.34))!important;
}
.brand-fixed .brand-fixed-text{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:5px!important;
  color:#f7fbff!important;
  font-size:21px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:-.35px!important;
  white-space:nowrap!important;
}
.brand-fixed-text b{color:#fff!important;font:inherit!important}
.brand-fixed-text b span{color:#43a5ff!important}
@media(max-width:760px){
  header.nav>a.brand.brand-fixed{min-width:170px!important;min-height:48px!important;gap:8px!important}
  .brand-fixed .brand-fixed-icon{flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;max-height:40px!important}
  .brand-fixed .brand-fixed-text{font-size:18px!important}
}

/* Alpha 1.112: customer map + OLT pair. The earlier inline plan rule hid it. */
body main.dash .noc-command-center.pro-map-only{
  display:grid!important;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr)!important;
  align-items:stretch!important;
}
body main.dash .noc-command-center.pro-map-only .noc-health-card{display:none!important}
body main.dash .noc-command-center.pro-map-only .noc-topology-card,
body main.dash .noc-command-center.pro-map-only .olt-dashboard-card{display:block!important}

/* Keep the two account actions visible together on the mobile homepage. */
@media(max-width:760px){
  header.nav nav:has(a[href='/register']){
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }
  header.nav nav:has(a[href='/register']) a[href='#features'],
  header.nav nav:has(a[href='/register']) a[href='#pricing']{display:none!important}
  header.nav nav:has(a[href='/register']) a[href='/login'],
  header.nav nav:has(a[href='/register']) a[href='/register']{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    margin:0!important;
    padding:8px 10px!important;
    white-space:nowrap!important;
  }
  body main.dash .noc-command-center.pro-map-only{grid-template-columns:1fr!important}
}

/* Alpha 1.119 final cascade: compact, single-row, horizontally scrollable mobile navigation. */
@media(max-width:760px){
  header.nav{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;min-height:58px!important;height:58px!important;padding:5px 8px!important;overflow:hidden!important}
  header.nav>a.brand.brand-fixed{flex:0 0 auto!important;width:auto!important;min-width:132px!important;min-height:44px!important;height:44px!important;gap:6px!important;padding:2px 4px 2px 0!important}
  .brand-fixed .brand-fixed-icon{flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;max-height:36px!important}
  .brand-fixed .brand-fixed-text{font-size:15px!important;gap:3px!important}
  header.nav nav{display:flex!important;flex:1 1 auto!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;min-width:0!important;max-height:48px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  header.nav nav::-webkit-scrollbar{display:none!important}
  header.nav nav>a,header.nav nav>span{flex:0 0 auto!important;width:auto!important;max-width:none!important;margin:0!important;padding:7px 8px!important;font-size:12px!important;line-height:1.1!important;white-space:nowrap!important}
  main.dash,.section{padding-left:12px!important;padding-right:12px!important}
}

/* Alpha 1.158: larger readable banner, compact navigation, Operations fix. */
header.nav>a.brand.brand-fixed.brand-banner,
header.nav>a.brand.brand-fixed.brand-banner[href='/dashboard']{
  display:block!important;
  flex:0 0 310px!important;
  width:310px!important;
  min-width:310px!important;
  max-width:310px!important;
  min-height:76px!important;
  height:76px!important;
  padding:3px!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
}
header.nav>a.brand.brand-fixed.brand-banner>img,
header.nav>a.brand.brand-fixed.brand-banner[href='/dashboard']>img{
  display:block!important;
  visibility:visible!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  opacity:1!important;
  object-fit:cover!important;
  object-position:center!important;
}
header.nav>a.brand.brand-fixed.brand-banner:before,
header.nav>a.brand.brand-fixed.brand-banner:after,
header.nav>a.brand.brand-fixed.brand-banner[href='/dashboard']:before,
header.nav>a.brand.brand-fixed.brand-banner[href='/dashboard']:after{
  content:none!important;
  display:none!important;
}
header.nav nav{gap:5px!important}
header.nav nav>a,
header.nav nav>span{
  padding:7px 8px!important;
  font-size:11px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
/* Alpha 1.159: restore the customer header's normal, bold navigation.
   Admin and public headers remain compact so their larger menus still fit. */
header.nav.customer-nav nav>a,
header.nav.customer-nav nav>span{
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
@media(max-width:760px){
  header.nav>a.brand.brand-fixed.brand-banner,
  header.nav>a.brand.brand-fixed.brand-banner[href='/dashboard']{
    flex:0 0 175px!important;
    width:175px!important;
    min-width:175px!important;
    max-width:175px!important;
    min-height:50px!important;
    height:50px!important;
    padding:2px!important;
  }
  header.nav nav{gap:2px!important}
  header.nav nav>a,
  header.nav nav>span{
    padding:6px!important;
    font-size:10px!important;
  }
  header.nav.customer-nav nav>a,
  header.nav.customer-nav nav>span{
    font-size:12px!important;
    font-weight:700!important;
  }
}
