/*
  UA Footer Guards
  Static shell/dropdown/accent/footer guards extracted from footer.php.
  Keep this loaded from footer.php to preserve its late compatibility cascade.
*/

/* Shell QA guard: keep the top stats strip inside the viewport on dense pages. */
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  grid-template-columns:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:color-mix(in srgb,var(--ua-accent) 45%,transparent) transparent!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-chip>summary,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary{
  flex:0 0 auto!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand){
  width:auto!important;
  max-width:168px!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
  width:auto!important;
  max-width:210px!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip>summary{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  flex:0 0 38px!important;
  padding-inline:0!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-name,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-caret{
  display:none!important;
}

/* Shell typography contract: stats strip and window strip follow the template scale. */
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-chip>summary,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary{
  font-size:var(--ua-fs-xs,11px)!important;
  line-height:1.15!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{
  font-size:var(--ua-fs-sm,12px)!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico{
  font-size:var(--ua-fs-xs,11px)!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab{
  font-size:var(--ua-fs-xs,11px)!important;
  line-height:1.15!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab span{
  font-size:inherit!important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab i,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn i{
  font-size:var(--ua-fs-xs,11px)!important;
}

/* Theme Studio accent bridge: make old fixed shell/page colors follow --ua-accent. */
body.ua-design-v2{
  --ua-accent-soft:color-mix(in srgb,var(--ua-accent) 18%,transparent);
  --ua-accent-softer:color-mix(in srgb,var(--ua-accent) 10%,transparent);
  --ua-accent-line:color-mix(in srgb,var(--ua-accent) 34%,var(--ua-ds-line,rgba(255,255,255,.12)));
  --ua-accent-ink:color-mix(in srgb,var(--ua-accent) 86%,white 14%);
}

body.ua-design-v2.ua-authed :is(.ua-topbar.ua-topbar-stats,.ua-unified-shell-block.ua-unified-stats){
  border-color:var(--ua-accent-line)!important;
  background:
    radial-gradient(circle at 100% 0%, var(--ua-accent-soft), transparent 38%),
    linear-gradient(180deg,var(--ua-ds-surface),var(--ua-ds-surface-2))!important;
}
body.ua-design-v2.ua-authed :is(.ua-topbar.ua-topbar-stats,.ua-unified-shell-block.ua-unified-stats)::before,
body.ua-design-v2.ua-authed .ua-shell-gold-line{
  background:linear-gradient(90deg,transparent 0%,var(--ua-accent-softer) 16%,var(--ua-accent-ink) 50%,var(--ua-accent-softer) 84%,transparent 100%)!important;
  box-shadow:0 0 12px color-mix(in srgb,var(--ua-accent) 28%,transparent)!important;
}
body.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip--brand{
  background:color-mix(in srgb,var(--ua-accent) 18%,rgba(255,255,255,.055))!important;
  border-color:color-mix(in srgb,var(--ua-accent) 32%,transparent)!important;
}
body.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico,
body.ua-design-v2.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(i,.fa,svg){
  color:var(--ua-accent-ink)!important;
}
body.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) :is(.is-yellow,.is-green,.is-purple) .nocx-stat-ico{
  color:var(--ua-accent-ink)!important;
}
body.ua-design-v2.ua-authed .nocx-alert-popover :is(.nocx-alert-line__count,.nocx-alert-line__close){
  background:var(--ua-accent-soft)!important;
  border-color:var(--ua-accent-line)!important;
  color:var(--ua-accent-ink)!important;
}
body.ua-design-v2.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.nocx-alert-popover,.ua-sb3-flyout-host,.select2-dropdown){
  border-color:var(--ua-accent-line)!important;
  background:
    radial-gradient(circle at 100% 0%, var(--ua-accent-soft), transparent 36%),
    linear-gradient(180deg,var(--ua-ds-menu,rgba(6,30,36,.76)),rgba(3,16,25,.68))!important;
}
body.ua-design-v2.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(a:hover,button:hover,.dropdown-item:hover,.dropdown-item:focus,.ua-item:hover,.ua-head-item:hover,.ua-head-item.is-active,.select2-results__option--highlighted),
body.ua-design-v2.ua-authed .nocx-alert-popover .nocx-alert-line:hover{
  background:linear-gradient(90deg,var(--ua-accent-soft),var(--ua-accent-softer))!important;
}
body.ua-design-v2 :is(.nocx-gold-scrollbar,.ua-shell-scroll-nav){
  border-color:var(--ua-accent-line)!important;
}
body.ua-design-v2 :is(.nocx-gold-scrollbar__thumb,.ua-shell-scroll-thumb){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent))!important;
  box-shadow:0 0 18px color-mix(in srgb,var(--ua-accent) 34%,transparent)!important;
}

body.ua-design-v2 :is(.ua-atabs,.ua-comms-head,.ua-comms-modal__dialog,.secmon-hero,.secmon-card,.mtw-card){
  border-color:var(--ua-accent-line)!important;
}
body.ua-design-v2 :is(.ua-atab.is-active,.ua-comms-kicker,.ua-comms-card__icon,.ua-comms-card__top span,.ua-comms-modal__head span,.ua-router-card__head,.secmon-title,.secmon-card h2,.mtw-title){
  color:var(--ua-accent-ink)!important;
}
body.ua-design-v2 :is(.ua-atab.is-active,.ua-comms-card__icon,.ua-comms-card__top span,.ua-comms-alert--warn,.secmon-hero,.secmon-card,.mtw-card){
  background:
    radial-gradient(circle at 100% 0%, var(--ua-accent-soft), transparent 42%),
    linear-gradient(180deg,var(--ua-ds-surface),var(--ua-ds-surface-2))!important;
}
body.ua-design-v2 :is(.ua-comms-btn--primary,.ua-comms-btn--gold,.secmon-btn--gold,.mtw-btn.gold){
  border:1px solid color-mix(in srgb,var(--ua-accent) 55%,white 10%)!important;
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent))!important;
  color:#06111d!important;
}
body.ua-design-v2 :is(.secmon-table th,.mtw-table th){
  background:var(--ua-accent-soft)!important;
  color:var(--ua-accent-ink)!important;
}
body.ua-design-v2 :is(.secmon-table th,.secmon-table td,.mtw-table th,.mtw-table td){
  border-color:color-mix(in srgb,var(--ua-accent) 20%,transparent)!important;
}
body.ua-design-v2 .secmon-focus{
  outline-color:var(--ua-accent-ink)!important;
}

@media (max-width:760px){
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
    margin-inline:6px!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main{
    margin-inline:6px!important;
    width:auto!important;
    max-width:none!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page{
    width:auto!important;
    max-width:none!important;
  }
  html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
    margin-inline:6px!important;
  }
  html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main{
    margin-inline:6px!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
    width:auto!important;
    max-width:none!important;
    display:flex!important;
    grid-template-columns:none!important;
    justify-content:flex-start!important;
    gap:6px!important;
    direction:ltr!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    padding:6px 8px!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats::-webkit-scrollbar{
    width:0!important;
    height:0!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats > *{
    flex:0 0 auto!important;
    width:auto!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip,
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-chip>summary,
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary{
    width:auto!important;
    min-width:58px!important;
    max-width:150px!important;
    direction:rtl!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
    min-width:112px!important;
  }
  body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand):not(.ua-shell-traffic-chip){
    display:none!important;
  }
}

/* Unified dropdown language: one clean glass panel, no inner frames. */
body.ua-authed :is(
  .dropdown-menu,
  .ua-menu,
  .ua-head-dropdown,
  .nocx-user-menu-panel,
  .nocx-alert-popover,
  .ua-sb3-flyout-host,
  .select2-dropdown
){
  border:1px solid color-mix(in srgb,var(--ua-accent) 28%,var(--ua-ds-line,rgba(255,255,255,.14)))!important;
  border-radius:12px!important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb,var(--ua-accent) 13%,transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb,var(--ua-theme-menu) 76%,transparent), color-mix(in srgb,var(--ua-theme-page-bg) 68%,black 12%))!important;
  box-shadow:0 22px 56px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff))!important;
  padding:8px!important;
  direction:rtl!important;
  text-align:right!important;
  overflow:hidden!important;
  -webkit-backdrop-filter:blur(16px) saturate(132%)!important;
  backdrop-filter:blur(16px) saturate(132%)!important;
}
body.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(
  a,
  button,
  .dropdown-item,
  .ua-item,
  .ua-head-item,
  .select2-results__option
),
body.ua-authed .nocx-alert-popover :is(.nocx-alert-line,.nocx-empty){
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff))!important;
  border-radius:9px!important;
}
body.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(
  a,
  button,
  .dropdown-item,
  .ua-item,
  .ua-head-item,
  .select2-results__option
){
  min-height:34px!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  direction:rtl!important;
  text-align:right!important;
  text-decoration:none!important;
  font-weight:900!important;
}
body.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(
  a:hover,
  button:hover,
  .dropdown-item:hover,
  .dropdown-item:focus,
  .ua-item:hover,
  .ua-head-item:hover,
  .ua-head-item.is-active,
  .select2-results__option--highlighted
),
body.ua-authed .nocx-alert-popover .nocx-alert-line:hover{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 16%,transparent),color-mix(in srgb,var(--ua-accent-2) 8%,transparent))!important;
  color:var(--ua-ds-title,var(--ua-text,#fff))!important;
}
body.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(
  i,
  .fa,
  svg
){
  color:var(--ua-sem-icon,var(--ua-accent-ink,var(--ua-accent-2,#67e8f9)))!important;
}
body.ua-authed :is(.dropdown-divider,.divider),
body.ua-authed :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :is(hr){
  display:none!important;
}
body.ua-authed .nocx-alert-popover__head{
  border-bottom:0!important;
  background:transparent!important;
  padding:4px 6px 8px!important;
  box-shadow:none!important;
}
body.ua-authed .nocx-alert-popover .nocx-alert-feed{
  padding-top:4px!important;
}
body.ua-authed .nocx-alert-popover .nocx-alert-line::before,
body.ua-authed .nocx-alert-popover .nocx-alert-line::after{
  content:none!important;
  display:none!important;
}
body.ua-authed .nocx-alert-popover :is(.nocx-alert-line__count,.nocx-alert-line__close){
  box-shadow:none!important;
}

/* Subscriber modal pages: clean content, no nested frames, icon-first actions. */
body.ua-frame-context,
body.ua-tab-iframe-body{
  background:var(--ua-theme-page-bg,#ffffff)!important;
}
body.ua-frame-context.ua-design-v2,
body.ua-frame-context.ua-subscriber-modal-embed,
body.ua-tab-iframe-body.ua-design-v2{
  background:
    radial-gradient(720px 420px at 92% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 62%),
    linear-gradient(180deg,var(--ua-theme-modal,#111827),color-mix(in srgb,var(--ua-theme-page-bg,#07111f) 82%,black 18%))!important;
  color:var(--ua-ds-text,var(--ua-text,#f4fffc))!important;
}
body.ua-frame-context .ua-shell,
body.ua-frame-context .ua-main,
body.ua-frame-context .ua-page,
body.ua-frame-context .content-wrapper,
body.ua-frame-context section.content,
body.ua-tab-iframe-body .content-wrapper,
body.ua-tab-iframe-body section.content{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  background:var(--ua-theme-page-bg,#ffffff)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.ua-frame-context.ua-design-v2 .ua-shell,
body.ua-frame-context.ua-design-v2 .ua-main,
body.ua-frame-context.ua-design-v2 .ua-page,
body.ua-frame-context.ua-design-v2 .content-wrapper,
body.ua-frame-context.ua-design-v2 section.content,
body.ua-frame-context.ua-subscriber-modal-embed .ua-shell,
body.ua-frame-context.ua-subscriber-modal-embed .ua-main,
body.ua-frame-context.ua-subscriber-modal-embed .ua-page,
body.ua-frame-context.ua-subscriber-modal-embed .content-wrapper,
body.ua-frame-context.ua-subscriber-modal-embed section.content,
body.ua-tab-iframe-body.ua-design-v2 .content-wrapper,
body.ua-tab-iframe-body.ua-design-v2 section.content{
  background:transparent!important;
  color:var(--ua-ds-text,var(--ua-text,#f4fffc))!important;
}
body.ua-frame-context section.content,
body.ua-tab-iframe-body section.content{
  padding:12px!important;
}
body.ua-frame-context .content-header,
body.ua-frame-context .content-header .container-fluid,
body.ua-frame-context .ua-extracted-head,
body.ua-frame-context .ua-manual-head,
body.ua-tab-iframe-body .content-header,
body.ua-tab-iframe-body .content-header .container-fluid{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:10px 12px 6px!important;
  margin:0!important;
}
body.ua-frame-context .content-header h1,
body.ua-frame-context .content-header h2,
body.ua-frame-context .content-header h3,
body.ua-frame-context h1,
body.ua-frame-context h2,
body.ua-frame-context h3{
  color:var(--ua-ds-title,var(--ua-text,#102a2d))!important;
  font-size:18px!important;
  line-height:1.35!important;
  font-weight:950!important;
}
body.ua-frame-context :is(.card,.box,.panel,.history-card,.ua-compact-field),
#uaFixContentBody :is(.card,.box,.panel,.history-card,.ua-compact-field){
  border:0!important;
  border-radius:12px!important;
  background:var(--ua-theme-surface,#fff)!important;
  box-shadow:0 10px 26px rgba(15,95,97,.10)!important;
}
body.ua-frame-context.ua-design-v2 :is(.card,.box,.panel,.history-card,.ua-compact-field),
body.ua-frame-context.ua-subscriber-modal-embed :is(.card,.box,.panel,.history-card,.ua-compact-field),
body.ua-p-subscribers #uaFixContentBody :is(.card,.box,.panel,.history-card,.ua-compact-field){
  border:1px solid var(--ua-ds-line,rgba(255,255,255,.14))!important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 36%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff))!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
body.ua-frame-context :is(.card-header,.box-header,.panel-heading),
#uaFixContentBody :is(.card-header,.box-header,.panel-heading){
  border-bottom:0!important;
  background:transparent!important;
}
body.ua-frame-context :is(.btn,.ua-btn,.ua-compact-actions a,.history-shell a.btn),
#uaFixContentBody :is(.btn,.ua-btn,.ua-compact-actions a,.history-shell a.btn){
  min-width:0!important;
  border:0!important;
  border-radius:10px!important;
  box-shadow:0 7px 18px rgba(15,95,97,.12)!important;
}
body.ua-frame-context .ua-modal-icon-btn,
#uaFixContentBody .ua-modal-icon-btn{
  width:36px!important;
  min-width:36px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  border-radius:10px!important;
  font-size:0!important;
  line-height:1!important;
}
body.ua-frame-context .ua-modal-icon-btn i,
#uaFixContentBody .ua-modal-icon-btn i{
  font-size:15px!important;
  margin:0!important;
}
body.ua-frame-context .ua-modal-icon-btn .ua-modal-btn-text,
#uaFixContentBody .ua-modal-icon-btn .ua-modal-btn-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
body.ua-frame-context :is(.table-responsive,.subsx-table-card),
#uaFixContentBody :is(.table-responsive,.subsx-table-card){
  border:0!important;
  border-radius:12px!important;
  box-shadow:0 8px 20px rgba(15,95,97,.08)!important;
}

/* Logout confirmation modal ------------------------------------------------ */
.ua-logout-modal{position:fixed;inset:0;z-index:2147483600;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.58);backdrop-filter:blur(8px);direction:rtl}
.ua-logout-modal.is-open{display:flex}
.ua-logout-card{width:min(460px,94vw);border-radius:22px;border:1px solid rgba(255,210,102,.34);background:linear-gradient(180deg,rgba(8,18,33,.98),rgba(3,10,20,.98));box-shadow:0 26px 90px rgba(0,0,0,.58);color:#eef7ff;font-family:Tahoma,Arial,sans-serif;overflow:hidden}
.ua-logout-head{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08);font-weight:950;color:#ffd45a}
.ua-logout-head i{width:36px;height:36px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,196,45,.14);color:#ffd45a}
.ua-logout-body{padding:18px 20px 8px;font-size:14px;line-height:1.9;color:#e9f4ff;text-align:right}
.ua-logout-actions{display:flex;gap:10px;justify-content:flex-start;padding:14px 18px 18px;direction:ltr}
.ua-logout-btn{border:0;border-radius:14px;padding:11px 20px;font-weight:950;cursor:pointer;color:#06111f;box-shadow:0 10px 22px rgba(0,0,0,.24)}
.ua-logout-btn--yes{background:linear-gradient(135deg,#ffd75d,#f5a900)}
.ua-logout-btn--no{background:rgba(219,234,254,.14);color:#eaf5ff;border:1px solid rgba(255,255,255,.14);box-shadow:none}
.ua-logout-btn:hover{transform:translateY(-1px)}


/* ======================================================================
   Late Template Authority Guard
   Existing footer guard is the final cascade point. Keep this focused on
   binding late page-level CSS back to template_page.php variables.
   ====================================================================== */
body.ua-authed{
  background:
    radial-gradient(920px 560px at 86% 4%,color-mix(in srgb,var(--ua-accent) 13%,transparent),transparent 62%),
    radial-gradient(760px 480px at 14% 8%,color-mix(in srgb,var(--ua-accent-2) 9%,transparent),transparent 58%),
    linear-gradient(180deg,var(--ua-theme-page-bg),color-mix(in srgb,var(--ua-theme-page-bg) 76%,black 24%))!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed :is(.ua-topbar,.ua-unified-stats,.nocx-topbar,.navbar,.main-header,.ua-glass-topbar){background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-topbar) 90%,transparent),color-mix(in srgb,var(--ua-theme-topbar) 72%,black 18%))!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;font-size:var(--ua-bar-font-size)!important;}
html body.ua-authed :is(.ua-page-windowbar,.ua-windowbar,.ua-window-manager-bar){background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-windowbar) 92%,transparent),color-mix(in srgb,var(--ua-theme-windowbar) 76%,black 18%))!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;font-size:var(--ua-bar-font-size)!important;}
body.ua-authed :where(.ua-sb3,aside.ua-sb3,.ua-sidebar,.main-sidebar){background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent) 13%,transparent),transparent 24%),linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-sidebar) 96%,white 4%),color-mix(in srgb,var(--ua-theme-sidebar) 86%,black 14%))!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.ua-sb3-item:hover,.ua-sb3-item.is-active,.ua-sb3-item.is-open,.ua-sb3-link:hover,.ua-sb3-link.is-active,.sidebar-menu a:hover,.nav-sidebar .nav-link.active){background:color-mix(in srgb,var(--ua-theme-sidebar-item) 72%,transparent)!important;border-color:color-mix(in srgb,var(--ua-accent) 34%,transparent)!important;}
html body.ua-authed :is(.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.small-box,.info-box,.table-responsive,.ua-table-wrap,.ua-net-panel,.ua-net-stat,.ua-studio-hero,.ua-studio-card,.mk-stat-card,.subsx-body,.subsx-table-card,.daa-hero,.daa-card,.fin-dash-hero,.fin-period,.fin-kpi-grid>article,.fin-health-grid>article,.fin-panel,.fin-source-list>article,.fin-mini-list>div,.msg-page-hero,.msg-panel,.msg-table-shell,.sp-card){background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 34%),linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 92%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 82%,transparent))!important;color:var(--ua-ds-text)!important;border-color:var(--ua-ds-line)!important;}
html body.ua-authed :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text,.select2-selection){font-size:var(--ua-input-font-size)!important;min-height:var(--ua-ds-control-h)!important;background:color-mix(in srgb,var(--ua-theme-input) 88%,transparent)!important;color:var(--ua-theme-input-text)!important;border-color:var(--ua-ds-line)!important;}
html body.ua-authed :is(.table thead th,table thead th,.ua-table thead th){font-size:var(--ua-table-font-size)!important;background:color-mix(in srgb,var(--ua-theme-table-head) 92%,transparent)!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.table tbody tr:nth-child(odd)>*,table tbody tr:nth-child(odd)>td,.ua-table tbody tr:nth-child(odd)>td){background:color-mix(in srgb,var(--ua-theme-table-row) 68%,transparent)!important;}
body.ua-authed :where(.table tbody tr:nth-child(even)>*,table tbody tr:nth-child(even)>td,.ua-table tbody tr:nth-child(even)>td){background:color-mix(in srgb,var(--ua-theme-table-row-alt) 72%,transparent)!important;}
body.ua-authed :where(.table td,.table th,table td,table th,.ua-table td,.ua-table th){font-size:var(--ua-table-font-size)!important;color:var(--ua-ds-text)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.popover,.ua-sb3-flyout-host,.ua-flyout,.dropdown-content){font-size:var(--ua-menu-font-size)!important;background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 13%,transparent),transparent 36%),linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-menu) 82%,transparent),color-mix(in srgb,var(--ua-theme-menu) 66%,black 12%))!important;color:var(--ua-ds-text)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.modal-content,.ua-modal-v2,.swal2-popup,.bootbox .modal-content){font-size:var(--ua-modal-font-size)!important;background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 11%,transparent),transparent 34%),linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-modal) 90%,transparent),color-mix(in srgb,var(--ua-theme-modal) 76%,black 12%))!important;color:var(--ua-ds-text)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.alert,.ua-alert,.callout,.toast,.ua-toast){background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-alert) 86%,transparent),color-mix(in srgb,var(--ua-theme-alert) 66%,black 12%))!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;}
body.ua-authed :where(.alert-danger,.ua-alert-danger,.sec-alert,.security-alert,.ua-security-alert,.secmon-alert,.mtw-danger){background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-security-alert) 90%,transparent),color-mix(in srgb,var(--ua-theme-security-alert) 72%,black 10%))!important;color:var(--ua-ds-title)!important;border-color:color-mix(in srgb,var(--ua-theme-security-alert) 66%,white 10%)!important;}
body.ua-authed :where(h1,.content-header h1,.ua-page-title h1,.ua-extracted-head h1,.ua-manual-head h1){font-size:var(--ua-title-font-size)!important;}

/* Final template authority: colors and fonts must come from template_page.php. */
body.ua-authed,
body.ua-frame-context.ua-design-v2,
body.ua-tab-iframe-body.ua-design-v2{
  --ua-font-family:var(--ua-template-font-family,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif);
  --ua-font-size:var(--ua-template-font-size,15px);
  --ua-font-weight:var(--ua-template-font-weight,700);
  --ua-text:var(--ua-template-text,#eaf0ff);
  --ua-border:var(--ua-template-border,rgba(255,255,255,.14));
  --ua-border-strong:var(--ua-template-border-strong,var(--ua-template-border,rgba(255,255,255,.18)));
  --ua-ds-line:var(--ua-template-border,rgba(255,255,255,.14));
  --ua-ds-line-strong:var(--ua-template-border-strong,var(--ua-template-border,rgba(255,255,255,.18)));
  --ua-clean-frame-line:var(--ua-template-border,rgba(255,255,255,.14));
  --ua-clean-frame-line-soft:color-mix(in srgb,var(--ua-template-border,rgba(255,255,255,.14)) 62%,transparent);
  font-family:var(--ua-font-family)!important;
  font-size:var(--ua-font-size)!important;
  font-weight:var(--ua-font-weight)!important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff))!important;
}
body.ua-authed :where(button,input,select,textarea,.btn,.form-control,.form-select,.input-group-text,.dropdown-menu,.ua-menu,.card,.box,.panel,.table,.ua-table),
body.ua-frame-context.ua-design-v2 :where(button,input,select,textarea,.btn,.form-control,.form-select,.input-group-text,.dropdown-menu,.ua-menu,.card,.box,.panel,.table,.ua-table){
  font-family:inherit!important;
}
body.ua-authed :where(.fa,[class^="fa-"],[class*=" fa-"]),
body.ua-frame-context.ua-design-v2 :where(.fa,[class^="fa-"],[class*=" fa-"]){
  font-family:FontAwesome!important;
}
body.ua-authed :where(.ua-topbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar,.nocx-topbar,.navbar,.main-header,.ua-glass-topbar){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-topbar) 90%,transparent),color-mix(in srgb,var(--ua-theme-topbar) 72%,black 18%))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
  font-size:var(--ua-bar-font-size)!important;
}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar,
body.ua-authed.ua-page-dashboard .nocx-statsbar{
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-topbar) 90%,transparent),color-mix(in srgb,var(--ua-theme-topbar) 72%,black 18%))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
  font-size:var(--ua-bar-font-size)!important;
}
body.ua-authed :where(.ua-page-windowbar,.ua-page-windowbar--dashboard,.ua-windowbar,.ua-window-manager-bar){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 8%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-windowbar) 92%,transparent),color-mix(in srgb,var(--ua-theme-windowbar) 76%,black 18%))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
  font-size:var(--ua-bar-font-size)!important;
}
body.ua-authed.ua-page-dashboard .ua-page-windowbar--dashboard{
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 8%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-windowbar) 92%,transparent),color-mix(in srgb,var(--ua-theme-windowbar) 76%,black 18%))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
  font-size:var(--ua-bar-font-size)!important;
}
body.ua-authed :where(.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  color:var(--ua-ds-text)!important;
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
}
body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head{
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  color:var(--ua-ds-text)!important;
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
body.ua-authed :where(.nocx-panel,.nocx-mini-stat,.nocx-band-item,.nocx-receiver-station,.nocx-router-card,.sa-card,.se-edit-card,.mtw-card,.sec-card,.secmon-card,.sp-card,.ua-profile-card,.ua-users-perm-card,.vg-card,.up-stat),
body.ua-frame-context.ua-design-v2 :where(.card,.box,.panel,.history-card,.ua-compact-field),
body.ua-p-subscribers #uaFixContentBody :where(.card,.box,.panel,.history-card,.ua-compact-field){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 36%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
}
body.ua-authed :where(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.nocx-alert-popover,.ua-sb3-flyout-host,.select2-dropdown) :where(a,button,.dropdown-item,.ua-item,.ua-head-item,.select2-results__option),
body.ua-authed .nocx-alert-popover :where(.nocx-alert-line,.nocx-empty){
  color:var(--ua-ds-text)!important;
  font-size:var(--ua-menu-font-size)!important;
}
body.ua-authed :where(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :where(i,.fa,svg){
  color:var(--ua-accent-ink)!important;
}
body.ua-authed :where(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.ua-sb3-flyout-host) :where(a:hover,button:hover,.dropdown-item:hover,.dropdown-item:focus,.ua-item:hover,.ua-head-item:hover,.ua-head-item.is-active,.select2-results__option--highlighted),
body.ua-authed .nocx-alert-popover .nocx-alert-line:hover{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 16%,transparent),color-mix(in srgb,var(--ua-accent-2) 8%,transparent))!important;
  color:var(--ua-ds-title)!important;
}
body.ua-frame-context.ua-design-v2,
body.ua-frame-context.ua-subscriber-modal-embed,
body.ua-tab-iframe-body.ua-design-v2{
  background:
    radial-gradient(720px 420px at 92% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 62%),
    linear-gradient(180deg,var(--ua-theme-modal),color-mix(in srgb,var(--ua-theme-page-bg) 82%,black 18%))!important;
  color:var(--ua-ds-text)!important;
}
body.ua-frame-context.ua-design-v2 :where(.content-header h1,.content-header h2,.content-header h3,h1,h2,h3),
body.ua-frame-context.ua-subscriber-modal-embed :where(.content-header h1,.content-header h2,.content-header h3,h1,h2,h3){
  color:var(--ua-ds-title)!important;
  font-size:var(--ua-title-font-size)!important;
}

/* ======================================================================
   Semantic Theme Coverage
   This is the theme intelligence layer: buttons, icons, badges, charts,
   table chrome, dashboard cards, and page-specific controls inherit the
   selected theme palette instead of fixed page colors.
   ====================================================================== */
body.ua-authed{
  --ua-sem-title:color-mix(in srgb,var(--ua-text) 94%,white 6%);
  --ua-sem-muted:color-mix(in srgb,var(--ua-text) 68%,transparent);
  --ua-sem-faint:color-mix(in srgb,var(--ua-text) 46%,transparent);
  --ua-sem-surface:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 88%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 76%,transparent));
  --ua-sem-surface-glow:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 11%,transparent),transparent 38%);
  --ua-sem-control:color-mix(in srgb,var(--ua-theme-input) 78%,transparent);
  --ua-sem-control-2:color-mix(in srgb,var(--ua-theme-surface-2) 68%,transparent);
  --ua-sem-control-hover:color-mix(in srgb,var(--ua-accent) 16%,var(--ua-theme-input) 74%);
  --ua-sem-row-hover:color-mix(in srgb,var(--ua-accent) 10%,transparent);
  --ua-sem-icon:color-mix(in srgb,var(--ua-accent) 82%,white 18%);
  --ua-sem-icon-bg:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-surface) 86%);
  --ua-sem-primary:var(--ua-accent);
  --ua-sem-primary-2:var(--ua-accent-2);
  --ua-sem-on-accent:#06111d;
  --ua-sem-success:#10b981;
  --ua-sem-success-2:#34d399;
  --ua-sem-warning:#f59e0b;
  --ua-sem-warning-2:#fbbf24;
  --ua-sem-danger:#ef4444;
  --ua-sem-danger-2:#fb7185;
  --ua-sem-info:color-mix(in srgb,var(--ua-accent) 76%,#38bdf8 24%);
  --ua-sem-blue:#38bdf8;
  --ua-sem-purple:#a78bfa;
}
body.ua-theme-dark_blue,
body.ua-theme-whmcs_blue,
body.ua-theme-light_clean{
  --ua-sem-on-accent:#ffffff;
}
body.ua-theme-armoury_dark{
  --ua-sem-success:#16a34a;
  --ua-sem-success-2:#4ade80;
  --ua-sem-warning:#f59e0b;
  --ua-sem-warning-2:#facc15;
  --ua-sem-danger:#dc2626;
  --ua-sem-danger-2:#fb7185;
  --ua-sem-info:#38bdf8;
  --ua-sem-purple:#c084fc;
}
body.ua-theme-turquoise_isp{
  --ua-sem-on-accent:#042f35;
  --ua-sem-success:#10b981;
  --ua-sem-success-2:#34d399;
  --ua-sem-warning:#f59e0b;
  --ua-sem-warning-2:#fbbf24;
  --ua-sem-danger:#ef4444;
  --ua-sem-danger-2:#fb7185;
  --ua-sem-info:#67e8f9;
  --ua-sem-purple:#a78bfa;
}
body.ua-theme-dark_blue{
  --ua-sem-success:#22c55e;
  --ua-sem-success-2:#86efac;
  --ua-sem-warning:#f59e0b;
  --ua-sem-warning-2:#fde047;
  --ua-sem-danger:#ef4444;
  --ua-sem-danger-2:#f87171;
  --ua-sem-info:#60a5fa;
  --ua-sem-purple:#a78bfa;
}
body.ua-theme-whmcs_blue{
  --ua-sem-success:#15803d;
  --ua-sem-success-2:#22c55e;
  --ua-sem-warning:#d97706;
  --ua-sem-warning-2:#f59e0b;
  --ua-sem-danger:#dc2626;
  --ua-sem-danger-2:#ef4444;
  --ua-sem-info:#2563eb;
  --ua-sem-purple:#7c3aed;
}
body.ua-theme-light_clean{
  --ua-sem-success:#15803d;
  --ua-sem-success-2:#22c55e;
  --ua-sem-warning:#b45309;
  --ua-sem-warning-2:#f59e0b;
  --ua-sem-danger:#b91c1c;
  --ua-sem-danger-2:#ef4444;
  --ua-sem-info:#0f766e;
  --ua-sem-purple:#6d28d9;
}
body.ua-theme-neon_net{
  --ua-sem-on-accent:#031018;
  --ua-sem-success:#22c55e;
  --ua-sem-success-2:#a7f3d0;
  --ua-sem-warning:#facc15;
  --ua-sem-warning-2:#fde68a;
  --ua-sem-danger:#fb7185;
  --ua-sem-danger-2:#fda4af;
  --ua-sem-info:#22d3ee;
  --ua-sem-purple:#c084fc;
}
body.ua-theme-green_isp{
  --ua-sem-on-accent:#04140a;
  --ua-sem-success:#16a34a;
  --ua-sem-success-2:#4ade80;
  --ua-sem-warning:#eab308;
  --ua-sem-warning-2:#fde047;
  --ua-sem-danger:#dc2626;
  --ua-sem-danger-2:#fb7185;
  --ua-sem-info:#2dd4bf;
  --ua-sem-purple:#a78bfa;
}

/* Dashboard components use the same semantic contract as every other page.
   Page CSS owns geometry only; the selected template owns every painted color. */
html body.ua-authed.ua-page-dashboard,
html body.ua-authed.ua-page-dashboard .content-wrapper.nocx-page,
html body.ua-authed.ua-page-dashboard .content-wrapper.nocx-page > .content,
html body.ua-authed.ua-page-dashboard .content-wrapper.nocx-page .content{
  --nocx-bg:var(--ua-theme-page-bg);
  --nocx-bg-2:var(--ua-theme-surface-2);
  --nocx-panel:color-mix(in srgb,var(--ua-theme-surface) 88%,transparent);
  --nocx-panel-soft:color-mix(in srgb,var(--ua-theme-surface-2) 78%,transparent);
  --nocx-line:var(--ua-ds-line);
  --nocx-line-strong:var(--ua-ds-line-strong);
  --nocx-text:var(--ua-ds-text);
  --nocx-soft:var(--ua-sem-muted);
  --nocx-muted:var(--ua-sem-muted);
  --nocx-blue:var(--ua-sem-info);
  --nocx-cyan:var(--ua-accent-2);
  --nocx-green:var(--ua-sem-success);
  --nocx-yellow:var(--ua-sem-warning);
  --nocx-red:var(--ua-sem-danger);
  --nocx-orange:var(--ua-sem-warning-2);
  background:transparent!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed.ua-page-dashboard .nocx-shell{
  background:
    radial-gradient(circle at 16% -4%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 28%),
    radial-gradient(circle at 84% 1%,color-mix(in srgb,var(--ua-accent-2) 8%,transparent),transparent 24%),
    linear-gradient(180deg,var(--ua-theme-page-bg),color-mix(in srgb,var(--ua-theme-surface-2) 74%,var(--ua-theme-page-bg) 26%))!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed.ua-page-dashboard .nocx-shell::before{
  background-image:
    linear-gradient(color-mix(in srgb,var(--ua-accent) 5%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 5%,transparent) 1px,transparent 1px)!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-panel,.nocx-topbar--control,.nocx-statsbar,.nocx-dashboard-search-panel,.nocx-security-monitor-row){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 9%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 92%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 82%,transparent))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-summary-row,.nocx-mini-stat,.nocx-band-item,.nocx-receiver-station,.nocx-router-item,.nocx-traffic-source,.nocx-traffic-row,.nocx-table-wrap,.nocx-stat-chip,.nocx-search,.nocx-icon-action){
  background:color-mix(in srgb,var(--ua-theme-input) 76%,transparent)!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:none!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-summary-row,.nocx-receiver-station,.nocx-router-item,.nocx-traffic-source,.nocx-traffic-row,.nocx-stat-chip,.nocx-icon-action):hover{
  background:color-mix(in srgb,var(--ua-accent) 12%,var(--ua-theme-input) 88%)!important;
  border-color:var(--ua-ds-line-strong)!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-panel__head,.nocx-table th,.nocx-table td){
  border-color:var(--ua-ds-line)!important;
}
html body.ua-authed.ua-page-dashboard .nocx-chart-wrap{
  background:
    linear-gradient(color-mix(in srgb,var(--ua-accent) 5%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 5%,transparent) 1px,transparent 1px),
    color-mix(in srgb,var(--ua-theme-input) 72%,transparent)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
}
html body.ua-authed.ua-page-dashboard .nocx-table th{
  background:var(--ua-theme-table-head)!important;
  color:var(--ua-ds-title)!important;
}
html body.ua-authed.ua-page-dashboard .nocx-table tbody tr:nth-child(odd){background:var(--ua-theme-table-row)!important;}
html body.ua-authed.ua-page-dashboard .nocx-table tbody tr:nth-child(even){background:var(--ua-theme-table-row-alt)!important;}
html body.ua-authed.ua-page-dashboard :is(.nocx-panel__head h3,.nocx-topbar__title strong,.nocx-stat-chip strong,.nocx-summary-row strong,.nocx-mini-stat__value,.nocx-band-item strong,.nocx-search input){
  color:var(--ua-ds-title)!important;
  text-shadow:none!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-panel__head p,.nocx-topbar__title small,.nocx-stat-chip span:not(.dot):not(.nocx-stat-ico),.nocx-summary-row span,.nocx-mini-stat__label,.nocx-band-item span,.nocx-search input::placeholder){
  color:var(--ua-sem-muted)!important;
}
html body.ua-authed.ua-page-dashboard :is(.nocx-stat-ico,.nocx-search__icon){
  background:var(--ua-sem-icon-bg)!important;
  color:var(--ua-sem-icon)!important;
}

/* Partners and capital is a themed accounting page, not a separate dark skin. */
html body.ua-authed .fp-page{
  background:var(--ua-theme-page-bg)!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .fp-page :is(.fp-hero,.fp-kpis article,.fp-card){
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
html body.ua-authed .fp-page :is(.fp-card header,.fp-card th,.fp-card td){border-color:var(--ua-ds-line)!important;}
html body.ua-authed .fp-page :is(.fp-profit-grid,.fp-profit-grid div){background:var(--ua-theme-surface-2)!important;}
html body.ua-authed .fp-page .fp-profit-grid .net{background:color-mix(in srgb,var(--ua-sem-success) 12%,var(--ua-theme-surface-2))!important;}
html body.ua-authed .fp-page :is(input,select,textarea,.form-control,.form-select){
  background:var(--ua-theme-input)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
}
html body.ua-authed .fp-page :is(h1,h2,h3,b,strong,.fp-kpis b,.fp-profit-grid b){color:var(--ua-ds-title)!important;}
html body.ua-authed .fp-page :is(p,label,small,em,.fp-note,.fp-post,.fp-kpis span,.fp-profit-grid span,.fp-card td small){color:var(--ua-sem-muted)!important;}
html body.ua-authed .fp-page :is(.fp-hero span,.fp-card header span){color:var(--ua-sem-info)!important;}
html body.ua-authed .fp-page :is(.fp-form button,.fp-card button){
  background:linear-gradient(180deg,var(--ua-btn-primary-1),var(--ua-btn-primary-2))!important;
  color:var(--ua-btn-primary-text)!important;
}

/* Output devices uses the shared template palette, including its custom table. */
html body.ua-authed .ua-output-page{
  --od-bg:var(--ua-theme-page-bg);
  --od-card:var(--ua-theme-surface);
  --od-card2:var(--ua-theme-surface-2);
  --od-line:var(--ua-ds-line);
  --od-text:var(--ua-ds-text);
  --od-muted:var(--ua-sem-muted);
  --od-gold:var(--ua-accent);
  --od-cyan:var(--ua-sem-info);
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .ua-output-page :is(.ua-output-hero,.ua-output-stats article,.ua-output-device-card,.ua-output-routing,.ua-output-history){
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
html body.ua-authed .ua-output-page :is(.ua-output-device-list>div,.ua-output-table td){
  background:var(--ua-theme-table-row)!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .ua-output-page .ua-output-table tbody tr:nth-child(even)>td{background:var(--ua-theme-table-row-alt)!important;}
html body.ua-authed .ua-output-page .ua-output-table th{background:var(--ua-theme-table-head)!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;}
html body.ua-authed .ua-output-page :is(h1,h2,h3,strong,.ua-output-command strong,.ua-output-empty h3){color:var(--ua-ds-title)!important;}
html body.ua-authed .ua-output-page :is(p,small,.ua-output-command small,.ua-output-inline label span,.ua-output-savebar p){color:var(--ua-sem-muted)!important;}
html body.ua-authed .ua-output-page :is(input,select){background:var(--ua-theme-input)!important;color:var(--ua-theme-input-text)!important;border-color:var(--ua-ds-line)!important;}

/* SMS settings cards and controls follow the active template instead of a dark-only skin. */
html body.ua-authed.ua-p-settings-sms .ua-sms-settings-page{color:var(--ua-ds-text)!important;}
html body.ua-authed.ua-p-settings-sms :is(.sms-settings-heading,.sms-settings-card,.sms-save-bar){
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
html body.ua-authed.ua-p-settings-sms :is(.sms-provider-option,.sms-provider-option__icon,.sms-check-field,.sms-readiness span,.sms-device-details>div,.sms-advanced,.sms-test-result){
  background:var(--ua-theme-input)!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-theme-input-text)!important;
}
html body.ua-authed.ua-p-settings-sms :is(.sms-settings-heading h1,.sms-card-title h2,.sms-master-switch b,.sms-provider-option b,.sms-field>span,.sms-check-field b,.sms-device-details dd){color:var(--ua-ds-title)!important;}
html body.ua-authed.ua-p-settings-sms :is(.sms-settings-heading p,.sms-settings-heading span,.sms-card-title span,.sms-master-switch small,.sms-provider-option small,.sms-field>small,.sms-check-field small,.sms-device-details dt,.sms-advanced>summary,.sms-save-bar>div){color:var(--ua-sem-muted)!important;}

/* Server links/network management is part of the template, not a separate dark page. */
html body.ua-authed .ua-network-page{
  --network-bg:var(--ua-theme-page-bg);
  --network-panel:var(--ua-theme-surface);
  --network-panel-2:var(--ua-theme-surface-2);
  --network-line:var(--ua-ds-line);
  --network-text:var(--ua-ds-text);
  --network-muted:var(--ua-sem-muted);
  --network-accent:var(--ua-accent);
  --network-cyan:var(--ua-sem-info);
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .ua-network-page :is(.ua-network-hero,.ua-network-stat,.ua-network-card){
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft))!important;
}
html body.ua-authed .ua-network-page :is(.ua-network-connection,.ua-network-endpoint,.ua-network-empty,.ua-network-table td){background:var(--ua-theme-table-row)!important;border-color:var(--ua-ds-line)!important;color:var(--ua-ds-text)!important;}
html body.ua-authed .ua-network-page .ua-network-table tbody tr:nth-child(even)>td{background:var(--ua-theme-table-row-alt)!important;}
html body.ua-authed .ua-network-page .ua-network-table th{background:var(--ua-theme-table-head)!important;color:var(--ua-ds-title)!important;border-color:var(--ua-ds-line)!important;}
html body.ua-authed .ua-network-page :is(h1,h2,h3,strong,.ua-network-stat strong,.ua-network-table td strong){color:var(--ua-ds-title)!important;}
html body.ua-authed .ua-network-page :is(p,small,.ua-network-card__head p,.ua-network-table td small){color:var(--ua-sem-muted)!important;}
html body.ua-authed .ua-network-page :is(input,select,textarea){
  background:var(--ua-theme-input)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
}

/* AirMAX administration inherits the same semantic palette in its full page. */
html body.ua-authed .ua-airmax-scope{
  --ua-airmax-accent:var(--ua-accent);
  --ua-airmax-accent-2:var(--ua-accent-2);
  --ua-airmax-text:var(--ua-ds-text);
  --ua-airmax-title:var(--ua-ds-title);
  --ua-airmax-muted:var(--ua-sem-muted);
  --ua-airmax-line:var(--ua-ds-line);
  --ua-airmax-surface:var(--ua-theme-surface);
  --ua-airmax-surface-2:var(--ua-theme-surface-2);
  --ua-airmax-input:var(--ua-theme-input);
  --ua-airmax-table-head:var(--ua-theme-table-head);
  --ua-airmax-table-row:var(--ua-theme-table-row);
  --ua-airmax-table-alt:var(--ua-theme-table-row-alt);
  background:var(--ua-theme-page-bg)!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .ua-airmax-scope :is(.airmax-card,.rxr-page,.rxr-router-port-card,.rxr-router-port-official,.rxr-table-wrap){
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
}
html body.ua-authed .ua-airmax-scope :is(h1,h2,h3,strong,.card-title){color:var(--ua-ds-title)!important;}
html body.ua-authed .ua-airmax-scope :is(p,small,label,.rxr-muted,.airmax-subline,.airmax-vendor-os,.airmax-probe-result){color:var(--ua-sem-muted)!important;}
html body.ua-authed .ua-airmax-scope select option{background:var(--ua-theme-input)!important;color:var(--ua-theme-input-text)!important;}

body.ua-authed.ua-design-v2 :where(.ua-sb3,aside.ua-sb3,.ua-sidebar,.main-sidebar){
  --sb3-bg1:color-mix(in srgb,var(--ua-theme-sidebar) 96%,white 4%);
  --sb3-bg2:color-mix(in srgb,var(--ua-theme-sidebar) 88%,black 12%);
  --sb3-panel:color-mix(in srgb,var(--ua-theme-sidebar-item) 76%,transparent);
  --sb3-border:var(--ua-ds-line);
  --sb3-text:var(--ua-ds-title);
  --sb3-text-soft:var(--ua-sem-muted);
  --sb3-accent:var(--ua-accent);
  --sb3-cyan:var(--ua-accent-2);
  background:
    radial-gradient(540px 240px at 50% 0%,color-mix(in srgb,var(--ua-accent) 16%,transparent),transparent 70%),
    linear-gradient(180deg,var(--sb3-bg1),var(--sb3-bg2))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
}
body.ua-authed.ua-design-v2 :where(.ua-sb3-brand-head,.ua-sb3-foot){
  border-color:color-mix(in srgb,var(--ua-ds-line) 68%,transparent)!important;
}
body.ua-authed.ua-design-v2 :where(.ua-sb3-brand-wrap){
  background:color-mix(in srgb,var(--ua-theme-sidebar-item) 18%,transparent)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 18%,transparent)!important;
}
body.ua-authed.ua-design-v2 :where(.ua-sb3-item,.ua-sb3-link){
  color:var(--ua-ds-title)!important;
}
body.ua-authed.ua-design-v2 :where(.ua-sb3-ic){
  background:color-mix(in srgb,var(--ua-theme-input) 70%,transparent)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 18%,transparent)!important;
}
body.ua-authed.ua-design-v2 :where(.ua-sb3-item:hover,.ua-sb3-item.is-active,.ua-sb3-item.is-open,.ua-sb3-link:hover,.ua-sb3-link.is-active){
  background:color-mix(in srgb,var(--ua-theme-sidebar-item) 72%,transparent)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 34%,transparent)!important;
}

html body.ua-authed :is(
  .nocx-panel,.nocx-mini-stat,.nocx-band-item,.nocx-receiver-station,.nocx-router-card,.nocx-router-row,
  .nocx-table-wrap,.subsx-table-card,.subsx-gauge,.subsx-head.ua-page-head,.subsx-tools,
  .sa-card,.se-edit-card,.mtw-card,.sec-card,.secmon-card,.sp-card,.ua-profile-card,.ua-users-perm-card,.vg-card,.up-stat,
  .ua-net-panel,.ua-studio-card,.mk-stat-card,.subsx-body,.daa-hero,.daa-card,
  .fin-dash-hero,.fin-period,.fin-kpi-grid>article,.fin-health-grid>article,.fin-panel,
  .fin-source-list>article,.fin-mini-list>div,.msg-table-shell
){
  background:var(--ua-sem-surface-glow),var(--ua-sem-surface)!important;
  color:var(--ua-text)!important;
  border-color:var(--ua-ds-line)!important;
}

html body.ua-authed :is(
  .nocx-panel__head,.nocx-summary-row,.nocx-traffic-source,.nocx-traffic-row,
  .subsx-meta-chip,.subsx-search-input-wrap,.ua-search-input,.nocx-search,.nocx-title-search,
  .nocx-soft-badge,.nocx-status-badge,.subs-sector-badge,.subs-now-badge,
  .nocx-stat-chip,.nocx-dashboard-statsbar .nocx-stat-chip,.nocx-dashboard-statsbar .nocx-user-chip>summary,
  .daa-switch,.daa-phones>span,.fin-progress,.fin-module-nav>a
){
  background:var(--ua-sem-control)!important;
  color:var(--ua-sem-title)!important;
  border-color:var(--ua-ds-line)!important;
}

html body.ua-authed :is(
  .text-muted,.small,small,label,legend,.nocx-muted,.sec-muted,.secmon-muted,.mtw-muted,.sp-muted,
  .nocx-panel__head p,.nocx-summary-row span,.nocx-band-item span,.nocx-router-meta,
  .subsx-meta,.subsx-meta-chip,.subsx-table td,.nocx-table td,.nocx-stat-chip span:not(.nocx-stat-ico):not(.dot),
  .daa-hero p,.daa-title p,.daa-switch small,.fin-dash-hero p,.fin-period label,
  .fin-kpi-grid article>span,.fin-kpi-grid article>small,.fin-health-grid article>span,
  .fin-health-grid article>small,.fin-collection p,.fin-source-list small,.fin-mini-list span,.fin-trend time
){
  color:var(--ua-sem-muted)!important;
}

html body.ua-authed :is(
  h1,h2,h3,h4,h5,h6,.nocx-panel__head h3,.nocx-topbar__title strong,.subsx-page-title,
  .nocx-summary-row strong,.nocx-band-item strong,.nocx-mini-stat__value,.nocx-stat-chip strong,
  .subsx-table strong,.nocx-table strong,.daa-card h2,.fin-panel h2,.fin-source-list b,
  .fin-kpi-grid strong,.fin-health-grid strong,.fin-trend article>b
){
  color:var(--ua-sem-title)!important;
}

body.ua-authed :where(
  .btn,.ua-btn,.ua-icon-action,.nocx-icon-action,button.btn,a.btn,
  .subsx-actions .ua-icon-action,details.ua-head-menu>summary.ua-icon-action,
  .subsx-table .subs-row-actions .btn-sm,.nocx-refresh
){
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  color:var(--ua-sem-title)!important;
  border:1px solid var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 9%,transparent),0 8px 18px rgba(0,0,0,.14)!important;
}
body.ua-authed :where(.btn:hover,.ua-btn:hover,.ua-icon-action:hover,.nocx-icon-action:hover,.subsx-table .subs-row-actions .btn-sm:hover){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent) 18%,var(--ua-theme-surface-2)),var(--ua-sem-control-hover))!important;
  border-color:color-mix(in srgb,var(--ua-accent) 52%,var(--ua-ds-line))!important;
  color:var(--ua-sem-title)!important;
}
body.ua-authed :where(.btn-primary,.btn-success.ua-action-primary,.ua-action-primary,.nocx-stat-chip--brand,.ua-comms-btn--primary,.secmon-btn--gold,.mtw-btn.gold){
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  color:var(--ua-sem-on-accent)!important;
}
body.ua-authed :where(.btn-primary,.btn-success.ua-action-primary,.ua-action-primary,.nocx-stat-chip--brand) :where(i,.fa,span,strong){
  color:inherit!important;
}
body.ua-authed :where(.btn-success:not(.ua-action-primary),.ua-action-success){
  background:linear-gradient(180deg,var(--ua-sem-success-2),var(--ua-sem-success))!important;
  color:#052017!important;
  border-color:color-mix(in srgb,var(--ua-sem-success) 65%,white 12%)!important;
}
body.ua-authed :where(.btn-danger,.ua-action-danger){
  background:linear-gradient(180deg,var(--ua-sem-danger-2),var(--ua-sem-danger))!important;
  color:#fff!important;
  border-color:color-mix(in srgb,var(--ua-sem-danger) 68%,white 8%)!important;
}
body.ua-authed :where(.btn-warning,.ua-action-warning){
  background:linear-gradient(180deg,var(--ua-sem-warning-2),var(--ua-sem-warning))!important;
  color:#1f1300!important;
  border-color:color-mix(in srgb,var(--ua-sem-warning) 68%,white 10%)!important;
}
body.ua-authed :where(.btn-info,.ua-action-info){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-sem-info) 80%,white 20%),var(--ua-sem-info))!important;
  color:#06111d!important;
  border-color:color-mix(in srgb,var(--ua-sem-info) 68%,white 10%)!important;
}

body.ua-authed :where(
  .fa,button i,a i,.ua-icon-action i,.nocx-icon-action i,.subsx-actions i,.ua-head-item i,
  .nocx-search__icon,.nocx-stat-ico,.nocx-secmon-orb,.subsx-search-icon
){
  color:var(--ua-sem-icon)!important;
}
body.ua-authed :where(.nocx-stat-ico,.nocx-secmon-orb,.subsx-search-icon,.nocx-search__icon){
  background:var(--ua-sem-icon-bg)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 28%,transparent)!important;
}

body.ua-authed :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text,.ua-search-input,.nocx-search input){
  background:var(--ua-sem-control)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
}
body.ua-authed :where(input::placeholder,textarea::placeholder,.ua-search-input::placeholder,.nocx-search input::placeholder){
  color:color-mix(in srgb,var(--ua-theme-input-text) 56%,transparent)!important;
}
body.ua-authed input[type="checkbox"]{
  accent-color:var(--ua-accent)!important;
}

body.ua-authed :where(.table thead th,table thead th,.ua-table thead th,.nocx-table th,.subsx-table thead th){
  background:color-mix(in srgb,var(--ua-theme-table-head) 90%,transparent)!important;
  color:var(--ua-sem-title)!important;
  border-color:var(--ua-ds-line)!important;
}
body.ua-authed :where(.table td,.table th,table td,table th,.ua-table td,.ua-table th,.nocx-table td,.subsx-table td){
  color:var(--ua-text)!important;
  border-color:var(--ua-ds-line)!important;
}
body.ua-authed :where(.table tbody tr:nth-child(odd)>*,table tbody tr:nth-child(odd)>td,.ua-table tbody tr:nth-child(odd)>td,.subsx-table tbody tr:nth-child(odd)>td,.nocx-table tbody tr:nth-child(odd)>td){
  background:color-mix(in srgb,var(--ua-theme-table-row) 72%,transparent)!important;
}
body.ua-authed :where(.table tbody tr:nth-child(even)>*,table tbody tr:nth-child(even)>td,.ua-table tbody tr:nth-child(even)>td,.subsx-table tbody tr:nth-child(even)>td,.nocx-table tbody tr:nth-child(even)>td){
  background:color-mix(in srgb,var(--ua-theme-table-row-alt) 76%,transparent)!important;
}
body.ua-authed :where(.table tbody tr:hover>*,table tbody tr:hover>td,.ua-table tbody tr:hover>td,.subsx-table tbody tr:hover>td,.nocx-table tbody tr:hover>td){
  background:var(--ua-sem-row-hover)!important;
}

body.ua-authed :where(.nocx-chart-wrap,.traffic-chart,.chart-wrap){
  background:
    linear-gradient(color-mix(in srgb,var(--ua-accent) 14%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 12%,transparent) 1px,transparent 1px),
    color-mix(in srgb,var(--ua-theme-surface-2) 50%,transparent)!important;
  background-size:24px 24px,24px 24px,100% 100%!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed :where(.is-green,.online,.success,.subs-status-pill.is-online,.nocx-status-badge.online,.nocx-stat-chip.is-green) :where(strong,i,.fa,span),
body.ua-authed :where(.subs-status-dot,.nocx-secmon-dot){
  color:var(--ua-sem-success)!important;
}
body.ua-authed :where(.is-red,.offline,.danger,.subs-status-pill.is-offline,.nocx-status-badge.offline,.nocx-stat-chip.is-red) :where(strong,i,.fa,span){
  color:var(--ua-sem-danger)!important;
}
body.ua-authed :where(.is-yellow,.warn,.warning,.nocx-status-badge.warn,.nocx-stat-chip.is-yellow) :where(strong,i,.fa,span){
  color:var(--ua-sem-warning)!important;
}
body.ua-authed :where(.is-cyan,.info,.partial,.nocx-status-badge.partial,.nocx-stat-chip.is-cyan) :where(strong,i,.fa,span){
  color:var(--ua-sem-info)!important;
}
body.ua-authed :where(.is-purple,.nocx-stat-chip.is-purple) :where(strong,i,.fa,span){
  color:var(--ua-sem-purple)!important;
}

body.ua-authed :where(.subs-sector-badge,.nocx-status-badge,.nocx-soft-badge,.subsx-meta-chip){
  background:color-mix(in srgb,var(--ua-accent) 10%,var(--ua-theme-surface) 90%)!important;
  color:var(--ua-sem-title)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 32%,var(--ua-ds-line))!important;
}
body.ua-authed :where(.subs-sector-badge.is-auto){
  background:color-mix(in srgb,var(--ua-sem-warning) 16%,var(--ua-theme-surface) 84%)!important;
  color:color-mix(in srgb,var(--ua-sem-warning) 82%,white 18%)!important;
  border-color:color-mix(in srgb,var(--ua-sem-warning) 42%,transparent)!important;
}
body.ua-authed :where(.subs-sector-badge.is-empty){
  background:color-mix(in srgb,var(--ua-text) 7%,transparent)!important;
  color:var(--ua-sem-muted)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
  background:color-mix(in srgb,var(--ua-theme-topbar) 72%,transparent)!important;
  color:var(--ua-sem-title)!important;
  border:1px solid color-mix(in srgb,var(--ua-ds-line) 62%,transparent)!important;
}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip--brand{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 22%,var(--ua-theme-topbar)),color-mix(in srgb,var(--ua-accent-2) 12%,var(--ua-theme-topbar)))!important;
}

body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-primary{color:var(--ua-sem-info)!important;}
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-info,
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-success{color:var(--ua-sem-success)!important;}
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-secondary{color:var(--ua-sem-purple)!important;}
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-danger{color:var(--ua-sem-warning)!important;}
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-warning{color:var(--ua-sem-danger)!important;}

body.ua-authed.ua-p-subscribers .subsx-actions .ua-icon-action,
body.ua-authed.ua-p-subscribers details.ua-head-menu>summary.ua-icon-action{
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  color:var(--ua-sem-title)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 9%,transparent),0 8px 18px rgba(0,0,0,.14)!important;
}
body.ua-authed.ua-p-subscribers .subsx-actions .ua-icon-action:hover,
body.ua-authed.ua-p-subscribers details.ua-head-menu[open]>summary.ua-icon-action{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent) 20%,var(--ua-theme-surface-2)),var(--ua-sem-control-hover))!important;
  border-color:color-mix(in srgb,var(--ua-accent) 54%,var(--ua-ds-line))!important;
}
body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-sm{
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 8%,transparent),0 5px 12px rgba(0,0,0,.18)!important;
}
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(odd)>td{
  background:color-mix(in srgb,var(--ua-theme-table-row) 72%,transparent)!important;
}
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(even)>td{
  background:color-mix(in srgb,var(--ua-theme-table-row-alt) 76%,transparent)!important;
}
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:hover>td{
  background:var(--ua-sem-row-hover)!important;
}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-ico{
  color:var(--ua-sem-icon)!important;
  background:var(--ua-sem-icon-bg)!important;
  border-radius:6px!important;
}
body.ua-authed.ua-page-dashboard .nocx-icon-action{
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  color:var(--ua-sem-title)!important;
  border:1px solid var(--ua-ds-line)!important;
}

body.ua-theme-light_clean.ua-authed.ua-page-dashboard .nocx-secmon-link :is(.nocx-secmon-state,.nocx-secmon-cell span,.nocx-secmon-cell small){
  color:var(--ua-sem-muted)!important;
}
body.ua-theme-light_clean.ua-authed.ua-page-dashboard .nocx-secmon-link :is(.nocx-secmon-title,.nocx-secmon-cell strong){
  color:var(--ua-sem-title)!important;
}
body.ua-theme-light_clean.ua-authed.ua-page-dashboard .nocx-secmon-link .nocx-secmon-last em{
  color:var(--ua-sem-warning)!important;
}

/* Final template palette authority.
   This layer replaces older page skins that still paint fixed teal/gold surfaces. */
body.ua-authed.ua-design-v2{
  --ua-theme-page-field:
    radial-gradient(920px 560px at 86% 4%,color-mix(in srgb,var(--ua-accent) 13%,transparent),transparent 62%),
    radial-gradient(760px 480px at 14% 8%,color-mix(in srgb,var(--ua-accent-2) 9%,transparent),transparent 58%),
    linear-gradient(180deg,var(--ua-theme-page-bg),color-mix(in srgb,var(--ua-theme-page-bg) 76%,black 24%));
  --ua-theme-frame:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 86%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 76%,transparent));
  --ua-theme-frame-strong:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface-2) 86%,transparent),color-mix(in srgb,var(--ua-theme-surface) 76%,transparent));
  --ua-theme-window:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 8%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-windowbar) 92%,transparent),color-mix(in srgb,var(--ua-theme-windowbar) 76%,black 18%));
}

body.ua-authed.ua-p-subscribers{
  --subs-blue-bg:var(--ua-theme-page-field);
  --subs-page-bg:var(--ua-theme-page-bg);
  --subs-card-bg:color-mix(in srgb,var(--ua-theme-surface) 78%,transparent);
  --subs-card-border:var(--ua-ds-line);
  --subs-row-border:color-mix(in srgb,var(--ua-ds-line) 66%,transparent);
  --subs-text:var(--ua-ds-text);
  --subs-muted:var(--ua-sem-muted);
  --subs-blue:var(--ua-accent);
  --subs-blue-2:var(--ua-accent-2);
  --subs-green:var(--ua-sem-success);
  --subs-red:var(--ua-sem-danger);
  --subs-purple:var(--ua-sem-purple);
  --ua-ds-line:var(--ua-template-border,var(--ua-border,rgba(255,255,255,.14)))!important;
  --ua-ds-line-strong:color-mix(in srgb,var(--ua-template-border,var(--ua-border,rgba(255,255,255,.14))) 82%,white 8%)!important;
  --ua-clean-frame-line:var(--ua-template-border,var(--ua-border,rgba(255,255,255,.14)))!important;
  --ua-clean-frame-line-soft:color-mix(in srgb,var(--ua-template-border,var(--ua-border,rgba(255,255,255,.14))) 62%,transparent)!important;
}

body.ua-authed.ua-p-subscribers,
body.ua-authed.ua-p-subscribers .ua-main,
body.ua-authed.ua-p-subscribers .ua-page,
body.ua-authed.ua-p-subscribers .ua-unified-shell-block,
body.ua-authed.ua-p-subscribers .content-wrapper.subs-page-shell,
body.ua-authed.ua-p-subscribers .content-wrapper.subs-page-shell>.content{
  background:var(--ua-theme-page-field)!important;
  color:var(--ua-ds-text)!important;
}

body.ua-authed.ua-p-subscribers .ua-page-windowbar{
  background:var(--ua-theme-window)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 7%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .content-wrapper.subs-page-shell>.content::before,
body.ua-authed.ua-p-subscribers .content-wrapper.subs-page-shell>.content::after{
  display:none!important;
  content:none!important;
}

body.ua-authed.ua-p-subscribers .subsx-gauge,
body.ua-authed.ua-p-subscribers .subsx-table-card,
body.ua-authed.ua-p-subscribers .ua-head-dropdown,
body.ua-authed.ua-p-subscribers .subsx-actions .ua-icon-action,
body.ua-authed.ua-p-subscribers details.ua-head-menu>summary.ua-icon-action{
  background:var(--ua-theme-frame)!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

body.ua-authed.ua-p-subscribers .subsx-title .subsx-topline.ua-page-toolbar,
body.ua-authed.ua-p-subscribers .subsx-search-input-wrap,
body.ua-authed.ua-p-subscribers .subsx-search-row,
body.ua-authed.ua-p-subscribers .subsx-search-wrap,
body.ua-authed.ua-p-subscribers .ua-search-form{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  backdrop-filter:none!important;
}

body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head{
  position:relative!important;
  z-index:80!important;
  overflow:visible!important;
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
  border-radius:calc(var(--ua-radius,16px) * .82)!important;
  padding:10px 12px!important;
  background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 8%,transparent),transparent 36%),linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 72%,transparent))!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text,#fff) 7%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head::after{
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--ua-accent) 34%,transparent),transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-gauge{
  border:1px solid var(--ua-ds-line)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text,#fff) 7%,transparent)!important;
  box-sizing:border-box!important;
}

body.ua-authed.ua-p-subscribers .subsx-table-card{
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
  scrollbar-color:color-mix(in srgb,var(--ua-accent) 62%,transparent) color-mix(in srgb,var(--ua-theme-surface) 62%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table-card::before{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-table-head) 96%,transparent),color-mix(in srgb,var(--ua-theme-table-head) 80%,black 12%))!important;
}

body.ua-authed.ua-p-subscribers .subsx-table-card::-webkit-scrollbar-track{
  background:color-mix(in srgb,var(--ua-theme-surface) 72%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table-card::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--ua-accent) 66%,var(--ua-theme-table-head) 34%)!important;
  border-color:color-mix(in srgb,var(--ua-theme-surface) 72%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table thead,
body.ua-authed.ua-p-subscribers .subsx-table thead th,
body.ua-authed.ua-p-subscribers .subsx-table thead th:last-child{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-table-head) 96%,transparent),color-mix(in srgb,var(--ua-theme-table-head) 80%,black 12%))!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(odd)>td,
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(odd)>td:last-child{
  background:color-mix(in srgb,var(--ua-theme-table-row) 74%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(even)>td,
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:nth-child(even)>td:last-child{
  background:color-mix(in srgb,var(--ua-theme-table-row-alt) 78%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table tbody tr:hover>td,
body.ua-authed.ua-p-subscribers .subsx-table tbody tr:hover>td:last-child{
  background:color-mix(in srgb,var(--ua-accent) 12%,var(--ua-theme-table-row) 88%)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table th,
body.ua-authed.ua-p-subscribers .subsx-table td,
body.ua-authed.ua-p-subscribers .subs-name-main,
body.ua-authed.ua-p-subscribers .subs-usage-cell{
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed.ua-p-subscribers .subs-muted-cell,
body.ua-authed.ua-p-subscribers .subs-now-badge,
body.ua-authed.ua-p-subscribers .subsx-meta,
body.ua-authed.ua-p-subscribers .subsx-meta-chip{
  color:var(--ua-sem-muted)!important;
}

body.ua-authed.ua-p-subscribers .subsx-meta-chip b,
body.ua-authed.ua-p-subscribers .subs-sector-badge,
body.ua-authed.ua-p-subscribers .subsx-autorefresh-note{
  background:color-mix(in srgb,var(--ua-accent) 10%,var(--ua-theme-surface) 90%)!important;
  color:var(--ua-sem-title)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 32%,var(--ua-ds-line))!important;
}

body.ua-authed.ua-p-subscribers .subsx-gauge__center{
  background:color-mix(in srgb,var(--ua-theme-surface) 82%,transparent)!important;
  color:var(--ua-ds-title)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed.ua-p-subscribers .subsx-gauge__stats div,
body.ua-authed.ua-p-subscribers .subsx-gauge__center span{
  color:var(--ua-sem-muted)!important;
}

body.ua-authed.ua-p-subscribers .subsx-gauge__stats b,
body.ua-authed.ua-p-subscribers .subsx-gauge__center b,
body.ua-authed.ua-p-subscribers .subsx-page-title{
  color:var(--ua-ds-title)!important;
}

body.ua-authed.ua-p-subscribers .ua-search-input{
  background:color-mix(in srgb,var(--ua-theme-input) 82%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

body.ua-authed.ua-p-subscribers .ua-search-input:focus{
  border-color:color-mix(in srgb,var(--ua-accent) 62%,var(--ua-ds-line))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ua-accent) 18%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-sm{
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 8%,transparent),0 5px 12px rgba(0,0,0,.18)!important;
}

body.ua-authed.ua-p-subscribers .ua-head-item{
  color:var(--ua-theme-input-text)!important;
  background:color-mix(in srgb,var(--ua-theme-input) 90%,transparent)!important;
}

body.ua-authed.ua-p-subscribers .ua-head-item i{
  color:var(--ua-sem-icon)!important;
}

body.ua-authed.ua-p-subscribers .ua-head-item:hover,
body.ua-authed.ua-p-subscribers .ua-head-item.is-active{
  background:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-input) 86%)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContent{
  background:color-mix(in srgb,#000 48%,transparent)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

body.ua-authed.ua-p-subscribers #uaFixBox,
body.ua-authed.ua-p-subscribers #uaFixContentBox,
body.ua-authed.ua-p-subscribers #uaFixContentBody,
body.ua-authed.ua-p-subscribers #uaFixContentBody iframe{
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-modal) 94%,transparent),color-mix(in srgb,var(--ua-theme-surface) 78%,black 10%))!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
  color-scheme:dark!important;
}

body.ua-theme-whmcs_blue.ua-p-subscribers #uaFixBox,
body.ua-theme-whmcs_blue.ua-p-subscribers #uaFixContentBox,
body.ua-theme-whmcs_blue.ua-p-subscribers #uaFixContentBody,
body.ua-theme-light_clean.ua-p-subscribers #uaFixBox,
body.ua-theme-light_clean.ua-p-subscribers #uaFixContentBox,
body.ua-theme-light_clean.ua-p-subscribers #uaFixContentBody{
  color-scheme:light!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBox{
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
  border-radius:var(--ua-radius)!important;
  box-shadow:0 24px 74px rgba(0,0,0,.35)!important;
}

body.ua-authed.ua-p-subscribers .uaFixWinHead{
  background:var(--ua-theme-window)!important;
  color:var(--ua-ds-title)!important;
  border-bottom:1px solid var(--ua-ds-line)!important;
  box-shadow:none!important;
}

body.ua-authed.ua-p-subscribers .uaFixTitle,
body.ua-authed.ua-p-subscribers .uaFixWinBtn{
  color:var(--ua-ds-title)!important;
}

body.ua-authed.ua-p-subscribers .uaFixWinBtn:hover{
  background:color-mix(in srgb,var(--ua-accent) 14%,transparent)!important;
  color:var(--ua-ds-title)!important;
}

body.ua-authed.ua-p-subscribers .uaFixX:hover{
  background:linear-gradient(180deg,var(--ua-sem-danger-2),var(--ua-sem-danger))!important;
  color:#fff!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(.ua-compact-view,.content-wrapper,section.content,.content,.container,.container-fluid){
  background:transparent!important;
  color:var(--ua-ds-text)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(.card,.box,.panel,.history-card,.modal-content,.accordion-item,.list-group-item,.ua-compact-field,.table-responsive){
  background:var(--ua-theme-frame)!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:var(--ua-card-shadow,0 12px 28px rgba(0,0,0,.18))!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(h1,h2,h3,h4,h5,h6,b,strong,.ua-compact-hero h3,.ua-compact-value){
  color:var(--ua-ds-title)!important;
  text-shadow:none!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(.text-muted,.small,.ua-compact-sub,.ua-compact-label,label){
  color:var(--ua-sem-muted)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text),
body.ua-authed.ua-p-subscribers #uaFixBox input{
  background:color-mix(in srgb,var(--ua-theme-input) 82%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(.btn,.btn-sm,.btn-xs,button.btn,a.btn,.ua-modal-icon-btn),
body.ua-authed.ua-p-subscribers #uaFixBox :is(.uaFixCancel,.uaFixSubmit){
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 8%,transparent),0 6px 14px rgba(0,0,0,.14)!important;
}

body.ua-authed.ua-p-subscribers #uaFixBox .uaFixIcon,
body.ua-authed.ua-p-subscribers #uaFixBox .uaFixSubmit{
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  color:var(--ua-sem-on-accent)!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
}

body.ua-authed.ua-p-subscribers #uaFixBox .uaFixCancel{
  background:color-mix(in srgb,var(--ua-theme-input) 82%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
}

body.ua-authed.ua-p-subscribers #uaFixBox .uaFixPromptTitle,
body.ua-authed.ua-p-subscribers #uaFixBox label,
body.ua-authed.ua-p-subscribers #uaFixBox .uaFixEye{
  color:var(--ua-sem-title)!important;
  background-image:none!important;
  -webkit-text-fill-color:currentColor!important;
}

body.ua-authed.ua-p-subscribers #uaFixBox .uaFixEye:hover{
  background:color-mix(in srgb,var(--ua-accent) 12%,transparent)!important;
  color:var(--ua-sem-title)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody table,
body.ua-authed.ua-p-subscribers #uaFixContentBody .table{
  background:color-mix(in srgb,var(--ua-theme-surface) 82%,transparent)!important;
  color:var(--ua-ds-text)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(table th,table td,.table th,.table td){
  background:color-mix(in srgb,var(--ua-theme-table-row) 72%,transparent)!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody :is(.se-ip-help-btn,.se-ip-suggest-btn){
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  color:var(--ua-sem-on-accent)!important;
}

body.ua-authed.ua-p-subscribers #uaFixContentBody input[type="file"].form-control::file-selector-button,
body.ua-authed.ua-p-subscribers #uaFixContentBody input[type="file"].form-control::-webkit-file-upload-button{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/17px 17px no-repeat,
    linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--ua-accent) 22%,transparent)!important;
}

/* Final no-legacy-theme guard.
   Keep this last: older footer/window guards used fixed teal glass colors. */
body.ua-authed.ua-design-v2 :is(
  .dropdown-menu,
  .ua-menu,
  .ua-head-dropdown,
  .nocx-user-menu-panel,
  .nocx-alert-popover,
  .ua-sb3-flyout-host,
  .select2-dropdown
){
  border-color:color-mix(in srgb,var(--ua-accent) 28%,var(--ua-ds-line))!important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 36%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-menu) 88%,transparent),color-mix(in srgb,var(--ua-theme-page-bg) 78%,black 12%))!important;
  color:var(--ua-ds-text)!important;
  box-shadow:0 22px 56px rgba(0,0,0,.34),inset 0 1px 0 color-mix(in srgb,var(--ua-text) 7%,transparent)!important;
}

body.ua-authed.ua-design-v2 :is(
  .dropdown-menu,
  .ua-menu,
  .ua-head-dropdown,
  .nocx-user-menu-panel,
  .ua-sb3-flyout-host
) :is(a,button,.dropdown-item,.ua-item,.ua-head-item,.select2-results__option),
body.ua-authed.ua-design-v2 .nocx-alert-popover :is(.nocx-alert-line,.nocx-empty){
  color:var(--ua-ds-text)!important;
}

body.ua-authed.ua-design-v2 :is(
  .dropdown-menu,
  .ua-menu,
  .ua-head-dropdown,
  .nocx-user-menu-panel,
  .ua-sb3-flyout-host
) :is(a:hover,button:hover,.dropdown-item:hover,.dropdown-item:focus,.ua-item:hover,.ua-head-item:hover,.ua-head-item.is-active,.select2-results__option--highlighted),
body.ua-authed.ua-design-v2 .nocx-alert-popover .nocx-alert-line:hover{
  background:linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 16%,transparent),color-mix(in srgb,var(--ua-accent-2) 8%,transparent))!important;
  color:var(--ua-ds-title)!important;
}

body.ua-authed.ua-design-v2 :is(
  .dropdown-menu,
  .ua-menu,
  .ua-head-dropdown,
  .nocx-user-menu-panel,
  .ua-sb3-flyout-host
) :is(i,.fa,svg){
  color:var(--ua-sem-icon,var(--ua-accent-ink))!important;
}

body.ua-frame-context.ua-design-v2,
body.ua-frame-context.ua-subscriber-modal-embed,
body.ua-tab-iframe-body.ua-design-v2{
  background:
    radial-gradient(720px 420px at 92% 0%,color-mix(in srgb,var(--ua-accent) 12%,transparent),transparent 62%),
    linear-gradient(180deg,var(--ua-theme-modal),color-mix(in srgb,var(--ua-theme-page-bg) 82%,black 18%))!important;
  color:var(--ua-ds-text)!important;
  scrollbar-color:color-mix(in srgb,var(--ua-accent) 54%,transparent) color-mix(in srgb,var(--ua-theme-page-bg) 70%,transparent)!important;
}

body.ua-frame-context.ua-design-v2 .ua-shell,
body.ua-frame-context.ua-design-v2 .ua-main,
body.ua-frame-context.ua-design-v2 .ua-page,
body.ua-frame-context.ua-design-v2 .content-wrapper,
body.ua-frame-context.ua-design-v2 section.content,
body.ua-frame-context.ua-design-v2 .content,
body.ua-frame-context.ua-subscriber-modal-embed .ua-shell,
body.ua-frame-context.ua-subscriber-modal-embed .ua-main,
body.ua-frame-context.ua-subscriber-modal-embed .ua-page,
body.ua-frame-context.ua-subscriber-modal-embed .content-wrapper,
body.ua-frame-context.ua-subscriber-modal-embed section.content,
body.ua-frame-context.ua-subscriber-modal-embed .content,
body.ua-tab-iframe-body.ua-design-v2 .content-wrapper,
body.ua-tab-iframe-body.ua-design-v2 section.content,
body.ua-tab-iframe-body.ua-design-v2 .content{
  background:transparent!important;
  color:var(--ua-ds-text)!important;
}

body.ua-frame-context.ua-design-v2 :is(.content-header h1,.content-header h2,.content-header h3,h1,h2,h3),
body.ua-frame-context.ua-subscriber-modal-embed :is(.content-header h1,.content-header h2,.content-header h3,h1,h2,h3),
body.ua-tab-iframe-body.ua-design-v2 :is(.content-header h1,.content-header h2,.content-header h3,h1,h2,h3){
  color:var(--ua-ds-title)!important;
  font-size:var(--ua-title-font-size)!important;
}

body.ua-frame-context.ua-design-v2 :is(.card,.box,.panel,.history-card,.ua-compact-field,.table-responsive,.modal-content,.accordion-item,.list-group-item),
body.ua-frame-context.ua-subscriber-modal-embed :is(.card,.box,.panel,.history-card,.ua-compact-field,.table-responsive,.modal-content,.accordion-item,.list-group-item),
body.ua-tab-iframe-body.ua-design-v2 :is(.card,.box,.panel,.history-card,.ua-compact-field,.table-responsive,.modal-content,.accordion-item,.list-group-item){
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 36%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 84%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  color:var(--ua-ds-text)!important;
  border-color:var(--ua-ds-line)!important;
}

body.ua-frame-context.ua-design-v2 :is(.btn,.ua-btn,button.btn,a.btn,.ua-modal-icon-btn),
body.ua-frame-context.ua-subscriber-modal-embed :is(.btn,.ua-btn,button.btn,a.btn,.ua-modal-icon-btn),
body.ua-tab-iframe-body.ua-design-v2 :is(.btn,.ua-btn,button.btn,a.btn,.ua-modal-icon-btn){
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  color:var(--ua-sem-title)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 8%,transparent),0 6px 14px rgba(0,0,0,.14)!important;
}

body.ua-frame-context.ua-design-v2 :is(.btn-primary,.btn-success.ua-action-primary,.ua-action-primary),
body.ua-frame-context.ua-subscriber-modal-embed :is(.btn-primary,.btn-success.ua-action-primary,.ua-action-primary),
body.ua-tab-iframe-body.ua-design-v2 :is(.btn-primary,.btn-success.ua-action-primary,.ua-action-primary){
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  color:var(--ua-sem-on-accent)!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
}

body.ua-frame-context.ua-design-v2::-webkit-scrollbar,
body.ua-tab-iframe-body.ua-design-v2::-webkit-scrollbar{
  width:8px!important;
  height:8px!important;
}
body.ua-frame-context.ua-design-v2::-webkit-scrollbar-track,
body.ua-tab-iframe-body.ua-design-v2::-webkit-scrollbar-track{
  background:color-mix(in srgb,var(--ua-theme-page-bg) 70%,transparent)!important;
  border-radius:999px!important;
}
body.ua-frame-context.ua-design-v2::-webkit-scrollbar-thumb,
body.ua-tab-iframe-body.ua-design-v2::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent-2) 42%,transparent),color-mix(in srgb,var(--ua-accent) 66%,transparent))!important;
  border-radius:999px!important;
}

body.ua-authed.ua-design-v2 :is(.ua-icon-action.btn-primary,.btn-primary.ua-icon-action,.ua-icon-action.ua-action-primary,.ua-action-primary.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  color:var(--ua-sem-on-accent)!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
}
body.ua-authed.ua-design-v2 :is(.ua-icon-action.btn-success,.btn-success.ua-icon-action,.ua-icon-action.ua-action-success,.ua-action-success.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-sem-success-2),var(--ua-sem-success))!important;
  color:#052017!important;
  border-color:color-mix(in srgb,var(--ua-sem-success) 65%,white 12%)!important;
}
body.ua-authed.ua-design-v2 :is(.ua-icon-action.btn-warning,.btn-warning.ua-icon-action,.ua-icon-action.ua-action-warning,.ua-action-warning.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-sem-warning-2),var(--ua-sem-warning))!important;
  color:#1f1300!important;
  border-color:color-mix(in srgb,var(--ua-sem-warning) 68%,white 10%)!important;
}
body.ua-authed.ua-design-v2 :is(.ua-icon-action.btn-danger,.btn-danger.ua-icon-action,.ua-icon-action.ua-action-danger,.ua-action-danger.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-sem-danger-2),var(--ua-sem-danger))!important;
  color:#fff!important;
  border-color:color-mix(in srgb,var(--ua-sem-danger) 68%,white 8%)!important;
}
body.ua-authed.ua-design-v2 :is(.ua-icon-action.btn-info,.btn-info.ua-icon-action,.ua-icon-action.ua-action-info,.ua-action-info.ua-icon-action){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-sem-info) 80%,white 20%),var(--ua-sem-info))!important;
  color:#06111d!important;
  border-color:color-mix(in srgb,var(--ua-sem-info) 68%,white 10%)!important;
}
body.ua-authed.ua-design-v2 :is(
  .ua-icon-action.btn-primary,
  .ua-icon-action.btn-success,
  .ua-icon-action.btn-warning,
  .ua-icon-action.btn-danger,
  .ua-icon-action.btn-info,
  .ua-action-primary.ua-icon-action,
  .ua-action-success.ua-icon-action,
  .ua-action-warning.ua-icon-action,
  .ua-action-danger.ua-icon-action,
  .ua-action-info.ua-icon-action
) :is(i,.fa,span,strong){
  color:inherit!important;
}

/* Single-layer theme button system.
   Buttons should not inherit page/card radial surfaces. */
body.ua-authed.ua-design-v2{
  --ua-btn-neutral-1:color-mix(in srgb,var(--ua-theme-surface-2) 72%,var(--ua-theme-input) 28%);
  --ua-btn-neutral-2:color-mix(in srgb,var(--ua-theme-input) 86%,black 4%);
  --ua-btn-neutral-text:var(--ua-sem-title);
  --ua-btn-neutral-line:color-mix(in srgb,var(--ua-ds-line) 78%,var(--ua-accent) 12%);
  --ua-btn-primary-1:var(--ua-sem-primary-2);
  --ua-btn-primary-2:var(--ua-sem-primary);
  --ua-btn-primary-text:var(--ua-sem-on-accent);
  --ua-btn-success-1:var(--ua-sem-success-2);
  --ua-btn-success-2:var(--ua-sem-success);
  --ua-btn-success-text:#052017;
  --ua-btn-warning-1:var(--ua-sem-warning-2);
  --ua-btn-warning-2:var(--ua-sem-warning);
  --ua-btn-warning-text:#1f1300;
  --ua-btn-danger-1:var(--ua-sem-danger-2);
  --ua-btn-danger-2:var(--ua-sem-danger);
  --ua-btn-danger-text:#ffffff;
  --ua-btn-info-1:color-mix(in srgb,var(--ua-sem-info) 78%,white 22%);
  --ua-btn-info-2:var(--ua-sem-info);
  --ua-btn-info-text:#06111d;
  --ua-btn-shadow:0 7px 16px rgba(0,0,0,.16),inset 0 1px 0 color-mix(in srgb,white 13%,transparent);
}

body.ua-theme-whmcs_blue,
body.ua-theme-light_clean{
  --ua-btn-neutral-1:#ffffff;
  --ua-btn-neutral-2:color-mix(in srgb,var(--ua-theme-surface-2) 86%,white 14%);
  --ua-btn-neutral-text:#0b1220;
  --ua-btn-neutral-line:color-mix(in srgb,var(--ua-border) 82%,var(--ua-accent) 10%);
  --ua-btn-success-text:#ffffff;
  --ua-btn-warning-text:#ffffff;
  --ua-btn-info-text:#ffffff;
  --ua-btn-shadow:0 7px 16px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.72);
}

body.ua-theme-dark_blue{
  --ua-btn-primary-text:#ffffff;
  --ua-btn-info-text:#ffffff;
}

body.ua-theme-neon_net{
  --ua-btn-neutral-1:#101735;
  --ua-btn-neutral-2:#06151f;
  --ua-btn-primary-text:#031018;
}

body.ua-theme-armoury_dark{
  --ua-btn-neutral-1:#182235;
  --ua-btn-neutral-2:#0d1422;
  --ua-btn-primary-text:#1d1400;
}

body.ua-theme-green_isp{
  --ua-btn-primary-text:#04140a;
  --ua-btn-success-text:#04140a;
}

body.ua-theme-turquoise_isp{
  --ua-btn-primary-text:#042f35;
  --ua-btn-info-text:#042f35;
}

/* Native form popups do not inherit the painted select surface on Windows.
   Give their option rows the same token contract so text cannot equal the popup background. */
body.ua-authed.ua-design-v2 :is(select,.form-select){
  color-scheme:dark;
}
body.ua-authed.ua-design-v2.ua-theme-whmcs_blue :is(select,.form-select),
body.ua-authed.ua-design-v2.ua-theme-light_clean :is(select,.form-select){
  color-scheme:light;
}
body.ua-authed.ua-design-v2 :is(select,.form-select) :is(option,optgroup){
  background-color:var(--ua-theme-menu)!important;
  color:var(--ua-theme-input-text)!important;
}

body.ua-authed.ua-design-v2 :is(
  .btn,
  button.btn,
  a.btn,
  .ua-btn,
  .ua-icon-action,
  .nocx-icon-action,
  .nocx-refresh,
  .subsx-actions .ua-icon-action,
  details.ua-head-menu>summary.ua-icon-action,
  .subsx-table .subs-row-actions .btn-sm,
  #uaFixContentBody .btn,
  #uaFixContentBody .ua-modal-icon-btn
){
  background:linear-gradient(180deg,var(--ua-btn-neutral-1),var(--ua-btn-neutral-2))!important;
  background-color:var(--ua-btn-neutral-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-neutral-1),var(--ua-btn-neutral-2))!important;
  color:var(--ua-btn-neutral-text)!important;
  border:1px solid var(--ua-btn-neutral-line)!important;
  box-shadow:var(--ua-btn-shadow)!important;
  text-shadow:none!important;
  filter:none!important;
}

body.ua-authed.ua-design-v2 :is(.btn:hover,.ua-btn:hover,.ua-icon-action:hover,.nocx-icon-action:hover,.subsx-table .subs-row-actions .btn-sm:hover){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent) 15%,var(--ua-btn-neutral-1) 85%),color-mix(in srgb,var(--ua-accent) 10%,var(--ua-btn-neutral-2) 90%))!important;
  background-image:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent) 15%,var(--ua-btn-neutral-1) 85%),color-mix(in srgb,var(--ua-accent) 10%,var(--ua-btn-neutral-2) 90%))!important;
  border-color:color-mix(in srgb,var(--ua-accent) 50%,var(--ua-ds-line))!important;
}

body.ua-authed.ua-design-v2 :is(.btn-primary,.ua-action-primary,.ua-icon-action.btn-primary,.btn-primary.ua-icon-action,.nocx-stat-chip--brand,.ua-comms-btn--primary,.secmon-btn--gold,.mtw-btn.gold,.vg-btn-primary,.up-btn-primary,.exa-btn-primary){
  background:linear-gradient(180deg,var(--ua-btn-primary-1),var(--ua-btn-primary-2))!important;
  background-color:var(--ua-btn-primary-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-primary-1),var(--ua-btn-primary-2))!important;
  color:var(--ua-btn-primary-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-primary-2) 72%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(.btn-success:not(.ua-action-primary),.ua-action-success,.ua-icon-action.btn-success,.btn-success.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-success-1),var(--ua-btn-success-2))!important;
  background-color:var(--ua-btn-success-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-success-1),var(--ua-btn-success-2))!important;
  color:var(--ua-btn-success-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-success-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(.btn-warning,.ua-action-warning,.ua-icon-action.btn-warning,.btn-warning.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-warning-1),var(--ua-btn-warning-2))!important;
  background-color:var(--ua-btn-warning-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-warning-1),var(--ua-btn-warning-2))!important;
  color:var(--ua-btn-warning-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-warning-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(.btn-danger,.ua-action-danger,.ua-icon-action.btn-danger,.btn-danger.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-danger-1),var(--ua-btn-danger-2))!important;
  background-color:var(--ua-btn-danger-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-danger-1),var(--ua-btn-danger-2))!important;
  color:var(--ua-btn-danger-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-danger-2) 70%,white 8%)!important;
}

body.ua-authed.ua-design-v2 :is(.btn-info,.ua-action-info,.ua-icon-action.btn-info,.btn-info.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-info-1),var(--ua-btn-info-2))!important;
  background-color:var(--ua-btn-info-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-info-1),var(--ua-btn-info-2))!important;
  color:var(--ua-btn-info-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-info-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(
  .btn,
  .ua-btn,
  .ua-icon-action,
  .nocx-icon-action,
  .subsx-table .subs-row-actions .btn-sm,
  #uaFixContentBody .btn,
  #uaFixContentBody .ua-modal-icon-btn
) :is(i,.fa,span,strong){
  color:inherit!important;
  text-shadow:none!important;
}

body.ua-authed.ua-design-v2 :is(.btn[disabled],.btn.disabled,.ua-btn[disabled],button[disabled].btn){
  opacity:.58!important;
  filter:saturate(.72)!important;
}

/* Semantic button colors must win over the high-specificity modal neutral rule. */
body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-primary,.btn-primary,.ua-action-primary,.ua-icon-action.btn-primary,.btn-primary.ua-icon-action,.nocx-stat-chip--brand,.ua-comms-btn--primary,.secmon-btn--gold,.mtw-btn.gold,.vg-btn-primary,.up-btn-primary,.exa-btn-primary){
  background:linear-gradient(180deg,var(--ua-btn-primary-1),var(--ua-btn-primary-2))!important;
  background-color:var(--ua-btn-primary-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-primary-1),var(--ua-btn-primary-2))!important;
  color:var(--ua-btn-primary-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-primary-2) 72%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-success,.btn-success:not(.ua-action-primary),.ua-action-success,.ua-icon-action.btn-success,.btn-success.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-success-1),var(--ua-btn-success-2))!important;
  background-color:var(--ua-btn-success-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-success-1),var(--ua-btn-success-2))!important;
  color:var(--ua-btn-success-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-success-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-warning,.btn-warning,.ua-action-warning,.ua-icon-action.btn-warning,.btn-warning.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-warning-1),var(--ua-btn-warning-2))!important;
  background-color:var(--ua-btn-warning-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-warning-1),var(--ua-btn-warning-2))!important;
  color:var(--ua-btn-warning-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-warning-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-danger,.btn-danger,.ua-action-danger,.ua-icon-action.btn-danger,.btn-danger.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-danger-1),var(--ua-btn-danger-2))!important;
  background-color:var(--ua-btn-danger-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-danger-1),var(--ua-btn-danger-2))!important;
  color:var(--ua-btn-danger-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-danger-2) 70%,white 8%)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-info,.btn-info,.ua-action-info,.ua-icon-action.btn-info,.btn-info.ua-icon-action){
  background:linear-gradient(180deg,var(--ua-btn-info-1),var(--ua-btn-info-2))!important;
  background-color:var(--ua-btn-info-2)!important;
  background-image:linear-gradient(180deg,var(--ua-btn-info-1),var(--ua-btn-info-2))!important;
  color:var(--ua-btn-info-text)!important;
  border-color:color-mix(in srgb,var(--ua-btn-info-2) 70%,white 10%)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody .btn-primary,#uaFixContentBody .btn-success,#uaFixContentBody .btn-warning,#uaFixContentBody .btn-danger,#uaFixContentBody .btn-info,.btn-primary,.btn-success,.btn-warning,.btn-danger,.btn-info,.ua-action-primary,.ua-action-success,.ua-action-warning,.ua-action-danger,.ua-action-info) :is(i,.fa,span,strong){
  color:inherit!important;
}

/* Subscriber live status should read as plain cell text, not a framed badge. */
body.ua-authed.ua-p-subscribers .js-lastseen-label,
body.ua-authed.ua-p-subscribers .subs-now-badge{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--ua-ds-text,var(--ua-text))!important;
  line-height:inherit!important;
}

/* Main subscriber toolbar menus are real page controls, not modal back links. */
body.ua-authed.ua-p-subscribers .ua-head-dropdown .ua-head-item,
body.ua-authed.ua-p-subscribers .ua-head-dropdown .ua-head-item :is(i,.fa,span){
  visibility:visible!important;
}
body.ua-authed.ua-p-subscribers .ua-head-dropdown .ua-head-item{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:36px!important;
  padding:8px 10px!important;
  margin:0!important;
  overflow:visible!important;
}

/* Dashboard face strip: keep it calm, borderless, and desktop-dense. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
  display:grid!important;
  grid-template-columns:
    minmax(128px,140px)
    minmax(102px,112px)
    minmax(70px,78px)
    minmax(110px,120px)
    minmax(76px,84px)
    minmax(106px,116px)
    minmax(82px,90px)
    minmax(72px,80px)
    minmax(78px,86px)
    minmax(112px,126px)!important;
  align-items:center!important;
  gap:4px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:3px 8px!important;
  margin:0 0 6px!important;
  border:0!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-topbar) 90%,#102f36 10%),color-mix(in srgb,var(--ua-theme-topbar) 82%,black 18%))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 18px rgba(0,0,0,.12)!important;
  overflow:visible!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar::before,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar::after{
  display:none!important;
  content:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
  height:32px!important;
  min-height:30px!important;
  max-height:30px!important;
  min-width:0!important;
  width:100%!important;
  padding:0 5px!important;
  gap:3px!important;
  border:0!important;
  outline:0!important;
  border-radius:6px!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:color-mix(in srgb,var(--ua-text) 86%,white 14%)!important;
  font-size:10.1px!important;
  font-weight:850!important;
  line-height:1!important;
  text-shadow:none!important;
  filter:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip + .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip--brand{
  min-width:0!important;
  width:100%!important;
  max-width:140px!important;
  justify-self:stretch!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--ua-accent) 52%,white 5%),color-mix(in srgb,var(--ua-accent-2) 48%,white 5%))!important;
  color:#052b32!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip--brand :is(span,strong,i,.fa){
  color:inherit!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:12.6px!important;
  min-height:12.6px!important;
  max-height:12.6px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:1!important;
  font-size:10px!important;
  text-align:center!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico :is(i,.fa),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico :is(i,.fa){
  display:block!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:12.6px!important;
  min-height:12.6px!important;
  max-height:12.6px!important;
  margin:0!important;
  padding:0!important;
  font-size:10px!important;
  line-height:12.6px!important;
  text-align:center!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-alert-badge{
  inset:-3px -4px auto auto!important;
  width:8px!important;
  min-width:8px!important;
  height:8px!important;
  min-height:8px!important;
  border-radius:50%!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip span:not(.nocx-stat-ico),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-name{
  min-width:0!important;
  max-width:none!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip strong{
  flex:0 0 auto!important;
  margin-inline-start:1px!important;
  color:#fff!important;
  font-size:10.9px!important;
  font-weight:950!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums!important;
  text-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico :is(i,.fa),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico :is(i,.fa){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  height:12.6px!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
  line-height:1!important;
  font-size:10px!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar #nocSystemState .nocx-stat-ico{
  display:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-ico{color:var(--ua-accent-2)!important;}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .is-green .nocx-stat-ico{color:var(--ua-sem-success)!important;}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .is-red .nocx-stat-ico{color:var(--ua-sem-danger)!important;}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .is-purple .nocx-stat-ico{color:var(--ua-sem-purple)!important;}
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .is-yellow .nocx-stat-ico{color:var(--ua-sem-warning)!important;}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-badge{
  box-shadow:none!important;
  border:0!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip{
  width:100%!important;
  min-width:0!important;
  max-width:126px!important;
  position:relative!important;
  z-index:80!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
  width:100%!important;
  min-width:0!important;
  justify-content:center!important;
  padding-inline:7px!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-avatar{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  border:0!important;
  outline:0!important;
  background:rgba(255,255,255,.08)!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search,
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search:focus,
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search:focus-within,
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search input,
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search input:focus,
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search input:focus-visible{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .nocx-title-search{
  background:rgba(5,25,33,.48)!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-panel--security-monitor{
  min-height:52px!important;
  padding:5px 8px!important;
  border-radius:12px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-link{
  grid-template-columns:minmax(190px,.58fr) minmax(680px,1.9fr) minmax(180px,.52fr)!important;
  gap:8px!important;
  min-height:40px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-title{
  gap:6px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-orb{
  width:22px!important;
  height:22px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:11px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-title strong{
  font-size:14px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-title small{
  font-size:10.7px!important;
  max-width:170px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-state{
  gap:5px!important;
  font-size:11px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-dot{
  width:12px!important;
  height:12px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-grid{
  grid-template-columns:
    minmax(80px,.8fr)
    minmax(82px,.82fr)
    minmax(96px,1fr)
    minmax(72px,.72fr)
    minmax(82px,.82fr)
    minmax(74px,.74fr)
    minmax(70px,.7fr)!important;
  gap:5px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-cell{
  min-height:32px!important;
  padding:3px 6px!important;
  gap:5px!important;
  border-radius:8px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-cell span{
  font-size:10px!important;
  font-weight:850!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-cell strong{
  font-size:15px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-last{
  min-height:32px!important;
  padding:4px 8px!important;
  border-radius:9px!important;
}

body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-last b,
body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-last em{
  font-size:10.4px!important;
}

@media (max-width:1280px){
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
    grid-template-columns:
      minmax(112px,124px)
      minmax(94px,102px)
      minmax(58px,66px)
      minmax(94px,104px)
      minmax(70px,78px)
      minmax(92px,100px)
      minmax(78px,86px)
      minmax(70px,78px)
      minmax(74px,82px)
      minmax(96px,108px)!important;
    gap:3px!important;
    padding-inline:7px!important;
  }
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
    padding-inline:5px!important;
    gap:4px!important;
    font-size:9.6px!important;
  }
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip strong{font-size:10.5px!important;}
  body.ua-authed.ua-page-dashboard .nocx-security-monitor-row .nocx-secmon-link{
    grid-template-columns:minmax(180px,.68fr) minmax(520px,1.6fr)!important;
  }
}

/* Final dashboard statsbar authority: one balanced desktop row. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
  display:grid!important;
  grid-template-columns:
    minmax(124px,136px)
    minmax(108px,.86fr)
    minmax(74px,.56fr)
    minmax(126px,1.05fr)
    minmax(90px,.74fr)
    minmax(120px,.96fr)
    minmax(92px,.72fr)
    minmax(88px,.68fr)
    minmax(94px,.72fr)
    minmax(118px,126px)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:5px!important;
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:3px 8px!important;
  box-sizing:border-box!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar > *{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0 5px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
  line-height:1!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip--brand{
  width:100%!important;
  max-width:136px!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 12px!important;
  width:12px!important;
  min-width:12px!important;
  max-width:12px!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  font-size:10px!important;
  line-height:12px!important;
  text-align:center!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico :is(i,.fa),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico :is(i,.fa){
  display:block!important;
  width:12px!important;
  min-width:12px!important;
  max-width:12px!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  margin:0!important;
  padding:0!important;
  font-size:10px!important;
  line-height:12px!important;
  text-align:center!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar #nocSystemState .nocx-stat-ico{
  display:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip span:not(.nocx-stat-ico),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-name{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
}

/* UA fix: keep statistic-bar icons as bare glyphs without framed icon wells. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-ico :is(i,.fa),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico :is(i,.fa){
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip strong{
  flex:0 0 auto!important;
  min-width:max-content!important;
  font-size:10.8px!important;
  line-height:1!important;
}

/* UA fix: make template "bar font" control the visible text inside bars. */
body.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) :is(.nocx-stat-chip,.nocx-stat-chip span:not(.nocx-stat-ico),.nocx-user-name,.nocx-user-chip>summary){
  font-size:var(--ua-bar-font-size,12px)!important;
}

body.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) .nocx-stat-chip strong{
  font-size:calc(var(--ua-bar-font-size,12px) + .8px)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip span:not(.nocx-stat-ico),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-name,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip span:not(.nocx-stat-ico),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-name,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-chip>summary{
  font-size:var(--ua-bar-font-size,12px)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip strong,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip strong{
  font-size:calc(var(--ua-bar-font-size,12px) + .8px)!important;
}

/* UA statsbar polish: open content, colored icons, compact system state. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar :is(.nocx-stat-chip,.nocx-alert-chip-wrap>summary.nocx-stat-chip,.nocx-user-chip>summary),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-stat-chip,.ua-shell-alert-chip>summary.nocx-stat-chip,.nocx-user-chip>summary){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding-inline:3px!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar :is(#nocSystemState,#uaShellSystemState) .nocx-stat-ico,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) :is(#nocSystemState,#uaShellSystemState) .nocx-stat-ico{
  display:inline-flex!important;
  color:var(--ua-sem-success,#22c55e)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar :is(#nocSystemState,#uaShellSystemState) span:not(.nocx-stat-ico),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) :is(#nocSystemState,#uaShellSystemState) span:not(.nocx-stat-ico){
  display:none!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  position:relative!important;
  width:25px!important;
  min-width:25px!important;
  height:14px!important;
  overflow:visible!important;
  transform:rotate(180deg)!important;
  color:transparent!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico .fa{
  opacity:0!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::before,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::after{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  font-family:FontAwesome!important;
  font-size:12px!important;
  line-height:1!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::before{
  content:"\f060"!important;
  left:0!important;
  color:var(--ua-sem-danger,#ef4444)!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::after{
  content:"\f061"!important;
  right:0!important;
  color:var(--ua-sem-success,#22c55e)!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip .nocx-stat-ico{color:var(--ua-accent-2,#67e8f9)!important;}
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.is-green .nocx-stat-ico{color:var(--ua-sem-success,#22c55e)!important;}
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.is-red .nocx-stat-ico{color:var(--ua-sem-danger,#ef4444)!important;}
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.is-purple .nocx-stat-ico{color:var(--ua-sem-purple,#a855f7)!important;}
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.is-yellow .nocx-stat-ico{color:var(--ua-sem-warning,#f59e0b)!important;}

/* UA statsbar final fit: no inner frames and no vertical clipping. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
  height:46px!important;
  min-height:46px!important;
  max-height:none!important;
  padding-block:5px!important;
  overflow:visible!important;
  align-items:center!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip.nocx-stat-chip--brand,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.nocx-stat-chip--brand,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .ua-shell-alert-chip>summary.nocx-stat-chip,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-chip>summary{
  height:34px!important;
  min-height:34px!important;
  max-height:none!important;
  padding-block:0!important;
  overflow:visible!important;
  line-height:1.25!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip :is(span,strong,i,.fa),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary :is(span,strong,i,.fa),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip :is(span,strong,i,.fa),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-chip>summary :is(span,strong,i,.fa){
  line-height:1.25!important;
  overflow:visible!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar #nocSystemState .nocx-stat-ico,
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) #uaShellSystemState .nocx-stat-ico{
  display:inline-flex!important;
  color:var(--ua-sem-success,#22c55e)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar #nocSystemState>span:not(.nocx-stat-ico),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) #uaShellSystemState>span:not(.nocx-stat-ico){
  display:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip--brand :is(span,strong,i,.fa),
body.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip--brand :is(span,strong,i,.fa){
  color:var(--ua-sem-warning,#f5b000)!important;
}

/* Light templates need explicit ink on the compact statistics strip because
   legacy dashboard skins painted its descendants white independently. */
html body.ua-theme-light_clean.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) .nocx-stat-chip:not(.nocx-stat-chip--brand) :is(span,strong,i,.fa),
html body.ua-theme-light_clean.ua-shell-chrome.ua-design-v2.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) .nocx-user-chip>summary :is(span,strong,i,.fa){
  color:var(--ua-sem-title)!important;
}
body.ua-theme-light_clean.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) :is(.is-green,.online,.success) :is(strong,i,.fa){color:var(--ua-sem-success)!important;}
body.ua-theme-light_clean.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) :is(.is-red,.offline,.danger) :is(strong,i,.fa){color:var(--ua-sem-danger)!important;}
body.ua-theme-light_clean.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) :is(.is-yellow,.warn,.warning) :is(strong,i,.fa){color:var(--ua-sem-warning)!important;}
body.ua-theme-light_clean.ua-authed :is(.ua-topbar-statsbar,.ua-unified-stats,.nocx-statsbar,.nocx-dashboard-statsbar) :is(.is-cyan,.info,.partial) :is(strong,i,.fa){color:var(--ua-sem-info)!important;}

body.ua-authed :is(.badge-success,.label-success){background:var(--ua-sem-success)!important;color:#fff!important;}
body.ua-authed :is(.badge-danger,.label-danger){background:var(--ua-sem-danger)!important;color:#fff!important;}
body.ua-authed :is(.badge-warning,.label-warning){background:var(--ua-sem-warning)!important;color:#fff!important;}
body.ua-authed :is(.badge-info,.label-info){background:var(--ua-sem-info)!important;color:#fff!important;}

/* UA statsbar highest-specificity cleanup against global primary-button skins. */
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip.nocx-stat-chip--brand{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:var(--ua-sem-warning,#f5b000)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  position:relative!important;
  flex:0 0 25px!important;
  width:25px!important;
  min-width:25px!important;
  max-width:25px!important;
  height:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  overflow:visible!important;
  transform:rotate(180deg)!important;
  color:transparent!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* UA request: keep the original traffic exchange glyph, only rotate it. */
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  flex:0 0 14px!important;
  width:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  height:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  transform:rotate(90deg)!important;
  color:var(--ua-sem-warning,#f5b000)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::before,
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::after{
  content:none!important;
  display:none!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico .fa{
  opacity:1!important;
  display:block!important;
  color:var(--ua-sem-warning,#f5b000)!important;
}

/* UA statsbar desktop fit: give every title enough room on full-width screens. */
@media (min-width:1400px){
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
    grid-template-columns:
      max-content
      max-content
      max-content
      max-content
      max-content
      max-content
      max-content
      max-content
      max-content
      max-content!important;
    justify-content:space-between!important;
    column-gap:5px!important;
  }

  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip,
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip,
  body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip>summary{
    width:max-content!important;
    max-width:none!important;
    min-width:max-content!important;
  }

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip span:not(.nocx-stat-ico),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-name{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
}

/* UA final font authority: every text surface follows template_page.php font. */
body.ua-authed :where(*):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.fa-solid):not(.fa-regular):not(.fa-brands),
body.ua-frame-context.ua-design-v2 :where(*):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.fa-solid):not(.fa-regular):not(.fa-brands),
body.ua-tab-iframe-body.ua-design-v2 :where(*):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.fa-solid):not(.fa-regular):not(.fa-brands){
  font-family:var(--ua-font-family,var(--ua-template-font-family,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif))!important;
}

body.ua-authed :where(.fa,[class^="fa-"],[class*=" fa-"],.fa-solid,.fa-regular,.fa-brands),
body.ua-frame-context.ua-design-v2 :where(.fa,[class^="fa-"],[class*=" fa-"],.fa-solid,.fa-regular,.fa-brands),
body.ua-tab-iframe-body.ua-design-v2 :where(.fa,[class^="fa-"],[class*=" fa-"],.fa-solid,.fa-regular,.fa-brands){
  font-family:FontAwesome!important;
}

/* UA statsbar icon scale: icons follow the template bar-font size. */
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico{
  flex:0 0 calc(var(--ua-bar-font-size,12px) + 2px)!important;
  width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  font-size:var(--ua-bar-font-size,12px)!important;
  line-height:1!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands){
  width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  font-size:var(--ua-bar-font-size,12px)!important;
  line-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
}

body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  flex:0 0 calc(var(--ua-bar-font-size,12px) + 2px)!important;
  width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands),
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico,
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands){
  flex:0 0 calc(var(--ua-bar-font-size,12px) + 2px)!important;
  width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  font-size:var(--ua-bar-font-size,12px)!important;
  line-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
}

/* UA statsbar icon nudge: slightly larger while still following bar font size. */
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico,
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  flex:0 0 calc(var(--ua-bar-font-size,12px) + 4px)!important;
  width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  font-size:calc(var(--ua-bar-font-size,12px) + 1px)!important;
  line-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap>summary.nocx-stat-chip .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands),
body.ua-authed.ua-design-v2 :is(#uaFixContentBody,.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico :is(i,.fa,.fa-solid,.fa-regular,.fa-brands){
  width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  max-width:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  max-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
  font-size:calc(var(--ua-bar-font-size,12px) + 1px)!important;
  line-height:calc(var(--ua-bar-font-size,12px) + 4px)!important;
}

/* UA user menu polish: framed avatar and a distinct logout action. */
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-avatar{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 calc(var(--ua-bar-font-size,12px) + 14px)!important;
  width:calc(var(--ua-bar-font-size,12px) + 14px)!important;
  min-width:calc(var(--ua-bar-font-size,12px) + 14px)!important;
  height:calc(var(--ua-bar-font-size,12px) + 14px)!important;
  min-height:calc(var(--ua-bar-font-size,12px) + 14px)!important;
  border-radius:50%!important;
  padding:2px!important;
  overflow:hidden!important;
  color:#fff!important;
  background:
    linear-gradient(var(--ua-theme-topbar,#071a28),var(--ua-theme-topbar,#071a28)) padding-box,
    conic-gradient(from 140deg,var(--ua-sem-warning,#f59e0b),var(--ua-accent-2,#67e8f9),var(--ua-sem-success,#22c55e),var(--ua-sem-warning,#f59e0b)) border-box!important;
  border:2px solid transparent!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.10),0 7px 16px rgba(0,0,0,.28)!important;
  font-size:calc(var(--ua-bar-font-size,12px) - 1px)!important;
  font-weight:950!important;
  line-height:1!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-user-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
  overflow:hidden!important;
}

body.ua-authed .nocx-user-menu-panel .js-hard-logout{
  position:relative!important;
  margin-top:6px!important;
  border-radius:13px!important;
  border:1px solid color-mix(in srgb,var(--ua-sem-danger,#ef4444) 44%,transparent)!important;
  background:color-mix(in srgb,var(--ua-sem-danger,#ef4444) 12%,var(--ua-theme-menu))!important;
  color:var(--ua-sem-danger,#ef4444)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 24px rgba(127,29,29,.16)!important;
}

body.ua-authed .nocx-user-menu-panel .js-hard-logout::before{
  content:""!important;
  position:absolute!important;
  inset-block:9px!important;
  inset-inline-start:7px!important;
  width:3px!important;
  border-radius:999px!important;
  background:var(--ua-sem-danger,#ef4444)!important;
  box-shadow:0 0 12px color-mix(in srgb,var(--ua-sem-danger,#ef4444) 70%,transparent)!important;
}

body.ua-authed .nocx-user-menu-panel .js-hard-logout i{
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:color-mix(in srgb,var(--ua-sem-danger,#ef4444) 20%,transparent)!important;
  color:#ff6b6b!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--ua-sem-danger,#ef4444) 35%,transparent)!important;
}

body.ua-authed .nocx-user-menu-panel .js-hard-logout span{
  color:var(--ua-sem-danger,#ef4444)!important;
  font-weight:950!important;
}

body.ua-authed .nocx-user-menu-panel .js-hard-logout:hover,
body.ua-authed .nocx-user-menu-panel .js-hard-logout:focus{
  background:color-mix(in srgb,var(--ua-sem-danger,#ef4444) 20%,var(--ua-theme-menu))!important;
  border-color:color-mix(in srgb,var(--ua-sem-danger,#ef4444) 68%,transparent)!important;
  transform:translateY(-1px)!important;
}

/* UA statsbar icon colors: meaningful colors while preserving icon shapes. */
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip--brand .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip--brand .nocx-stat-ico :is(i,.fa){
  color:var(--ua-sem-warning,#f59e0b)!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(#nocSystemState,#uaShellSystemState) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(#nocSystemState,#uaShellSystemState) .nocx-stat-ico :is(i,.fa){
  color:#22c55e!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatTotal) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellTotal) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatTotal) .nocx-stat-ico :is(i,.fa),
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellTotal) .nocx-stat-ico :is(i,.fa){
  color:#fbbf24!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatOnline) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellOnline) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatOnline) .nocx-stat-ico :is(i,.fa),
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellOnline) .nocx-stat-ico :is(i,.fa){
  color:#16a34a!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatOffline) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellOffline) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatOffline) .nocx-stat-ico :is(i,.fa),
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellOffline) .nocx-stat-ico :is(i,.fa){
  color:#f59e0b!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatDisabled) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellDisabled) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatDisabled) .nocx-stat-ico :is(i,.fa),
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellDisabled) .nocx-stat-ico :is(i,.fa){
  color:#ef4444!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatUnsafe) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellUnsafe) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#nocStatUnsafe) .nocx-stat-ico :is(i,.fa),
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) .nocx-stat-chip:has(#uaShellUnsafe) .nocx-stat-ico :is(i,.fa){
  color:#a855f7!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-alert-chip-wrap,.ua-shell-alert-chip) .nocx-stat-ico,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-alert-chip-wrap,.ua-shell-alert-chip) .nocx-stat-ico :is(i,.fa){
  color:#f59e0b!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico{
  color:transparent!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico .fa{
  opacity:0!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::before,
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::after{
  content:"\f0ec"!important;
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  font-family:FontAwesome!important;
  font-size:var(--ua-bar-font-size,12px)!important;
  line-height:calc(var(--ua-bar-font-size,12px) + 2px)!important;
  text-align:center!important;
  transform:none!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::before{
  color:#22c55e!important;
  clip-path:inset(0 0 50% 0)!important;
}

body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-dashboard-traffic-chip,.ua-shell-traffic-chip) .nocx-stat-ico::after{
  color:#ef4444!important;
  clip-path:inset(50% 0 0 0)!important;
}

/* UA statsbar readability: small breathing room between icon and label. */
body.ua-authed :is(.nocx-dashboard-statsbar,.ua-topbar-statsbar,.ua-unified-stats) :is(.nocx-stat-chip,.nocx-user-chip>summary,.nocx-alert-chip-wrap>summary,.ua-shell-alert-chip>summary){
  gap:6px!important;
}

/* UA dropdown layering: opened stats menus must float above dashboard bars. */
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar{
  position:relative!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar:has(.nocx-user-chip[open]),
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar:has(.nocx-alert-chip-wrap[open]){
  z-index:100200!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip[open],
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap[open]{
  position:relative!important;
  z-index:100220!important;
  overflow:visible!important;
}

body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-user-chip[open] .nocx-user-menu-panel,
body.ua-authed.ua-page-dashboard .nocx-dashboard-statsbar .nocx-alert-chip-wrap[open] .nocx-alert-popover{
  z-index:100240!important;
}

body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host{
  z-index:9000!important;
}

/* UA dashboard card heads: remove boxed headers and give them a light accent. */
body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head,
body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head.compact{
  position:relative!important;
  min-height:34px!important;
  margin:0 0 9px!important;
  padding:0 0 8px!important;
  border:0!important;
  border-bottom:1px solid color-mix(in srgb,var(--ua-accent-2,#67e8f9) 22%,transparent)!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head::after{
  content:""!important;
  position:absolute!important;
  inset-inline-end:0!important;
  bottom:-1px!important;
  width:min(96px,42%)!important;
  height:2px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,var(--ua-accent-2,#67e8f9),var(--ua-sem-warning,#f59e0b))!important;
  box-shadow:0 0 14px color-mix(in srgb,var(--ua-accent-2,#67e8f9) 32%,transparent)!important;
}

body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head h3{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ua-ds-title,#eef4ff)!important;
  font-weight:950!important;
  text-shadow:0 0 18px color-mix(in srgb,var(--ua-accent-2,#67e8f9) 16%,transparent)!important;
}

body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head p{
  margin:3px 0 0!important;
  padding:0!important;
  color:var(--ua-sem-muted,rgba(232,244,255,.68))!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

body.ua-authed.ua-page-dashboard .nocx-shell .nocx-panel__head .nocx-ico{
  filter:drop-shadow(0 0 8px color-mix(in srgb,var(--ua-accent-2,#67e8f9) 42%,transparent))!important;
}

body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head{position:relative!important;z-index:90!important;overflow:visible!important;}
body.ua-authed.ua-p-subscribers .subsx-table-card{position:relative!important;z-index:1!important;}
body.ua-authed.ua-p-subscribers details.ua-head-menu{position:relative!important;z-index:120!important;}
body.ua-authed.ua-p-subscribers details.ua-head-menu[open]{z-index:2147481200!important;}
body.ua-authed.ua-p-subscribers .ua-head-dropdown{z-index:2147481201!important;}

/* Subscribers list: restore full header width, only reduce the frame height. */
@media (min-width:761px){
  body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head{
    width:auto!important;
    max-width:none!important;
    height:150px!important;
    min-height:0!important;
    max-height:150px!important;
    margin-inline:0!important;
    padding:8px 10px!important;
    row-gap:4px!important;
    grid-template-areas:"gauge title" "divider divider"!important;
    grid-template-rows:auto 1px!important;
    overflow:visible!important;
  }

  body.ua-authed.ua-p-subscribers .subsx-head.ua-page-head::after{
    margin-top:4px!important;
  }

  body.ua-authed.ua-p-subscribers .subsx-gauge{
    width:320px!important;
    height:106px!important;
    min-height:106px!important;
    padding:10px 16px!important;
    gap:12px!important;
    grid-template-columns:1fr 86px!important;
  }

  body.ua-authed.ua-p-subscribers .subsx-gauge__donut{
    width:82px!important;
    height:82px!important;
  }

  body.ua-authed.ua-p-subscribers .subsx-gauge__center{
    width:52px!important;
    height:52px!important;
  }
}

/* Subscriber edit modal: final template-colored containment.
   This file loads after the subscribers modal sheet in the parent page and
   after extracted page sheets inside the iframe, so keep the focused override here. */
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentEdit{
  width:min(1500px,calc(100vw - 52px))!important;
  height:min(760px,calc(100vh - 96px))!important;
  min-height:0!important;
  max-height:calc(100vh - 96px)!important;
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line)!important;
  border-radius:calc(var(--ua-radius,16px) * .82)!important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 36%),
    linear-gradient(180deg,var(--ua-theme-modal),color-mix(in srgb,var(--ua-theme-surface) 78%,black 10%))!important;
  box-shadow:0 24px 74px rgba(0,0,0,.34)!important;
  overflow:hidden!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentEdit .uaFixWinHead{
  flex:0 0 36px!important;
  height:36px!important;
  min-height:36px!important;
  background:linear-gradient(180deg,var(--ua-theme-window),color-mix(in srgb,var(--ua-theme-window) 76%,black 12%))!important;
  border-bottom:1px solid var(--ua-ds-line)!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentEdit #uaFixContentBody{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  padding:8px!important;
  overflow:hidden!important;
  background:color-mix(in srgb,var(--ua-theme-modal) 82%,transparent)!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentEdit .ua-fix-inner-frame,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentEdit #uaFixContentBody iframe{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  border-radius:calc(var(--ua-radius,16px) * .62)!important;
  background:var(--ua-theme-modal)!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView{
  height:auto!important;
  min-height:0!important;
  max-height:calc(100vh - 96px)!important;
  width:min(980px,calc(100vw - 52px))!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody{
  flex:0 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:calc(100vh - 140px)!important;
  overflow:auto!important;
}

body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-compact-view{
  min-height:0!important;
  padding:10px!important;
}

body.ua-frame-context.ua-subscriber-modal-embed.ua-sub-child-edit,
body.ua-tab-iframe-body.ua-subscriber-modal-embed.ua-sub-child-edit,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit{
  --ua-sub-root:
    radial-gradient(720px 420px at 92% 0%,color-mix(in srgb,var(--ua-accent) 10%,transparent),transparent 62%),
    linear-gradient(180deg,var(--ua-theme-modal),color-mix(in srgb,var(--ua-theme-page-bg) 82%,black 18%));
  --ua-sub-card:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent) 8%,transparent),transparent 34%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 90%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 78%,transparent));
  --ua-sub-field:color-mix(in srgb,var(--ua-theme-input) 88%,transparent);
  --ua-sub-line:var(--ua-ds-line);
  --ua-sub-line-strong:color-mix(in srgb,var(--ua-accent) 32%,var(--ua-ds-line));
  --ua-sub-text:var(--ua-ds-text);
  --ua-sub-muted:var(--ua-sem-muted);
  --ua-sub-accent:var(--ua-accent);
  background:var(--ua-sub-root)!important;
  color:var(--ua-ds-text)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit > section.content,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .content,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-page-v2,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-panel-v2,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-panel-body,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit #subscriberEditForm{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit > section.content,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .content{
  padding:6px!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-page-head{
  display:none!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-panel-v2,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .ua-panel-body{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-edit-card{
  margin:0 0 8px!important;
  padding:9px 10px!important;
  border-radius:calc(var(--ua-radius,16px) * .66)!important;
  border:1px solid var(--ua-ds-line)!important;
  background:var(--ua-sub-card)!important;
  color:var(--ua-ds-text)!important;
  box-shadow:var(--ua-card-shadow,0 12px 28px rgba(0,0,0,.18))!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-edit-card-head{
  margin:0 0 8px!important;
  padding:0 0 7px!important;
  border-bottom:1px solid color-mix(in srgb,var(--ua-ds-line) 72%,transparent)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-edit-card-head h5{
  color:var(--ua-ds-title)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-edit-card-head span,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-field > label{
  color:var(--ua-sem-muted)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-field,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-check-field,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid .se-file-upload-field{
  background:color-mix(in srgb,var(--ua-theme-surface) 54%,transparent)!important;
  border-color:color-mix(in srgb,var(--ua-ds-line) 82%,transparent)!important;
  color:var(--ua-ds-text)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select),
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid input[type="file"].form-control{
  background:color-mix(in srgb,var(--ua-theme-input) 88%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) :is(.se-ip-help-btn,.se-ip-suggest-btn,.se-ppp-toggle-button),
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) #pppAuto:checked + .se-ppp-toggle-button{
  background:linear-gradient(180deg,var(--ua-sem-control-2),var(--ua-sem-control))!important;
  color:var(--ua-sem-title)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text) 8%,transparent),0 6px 14px rgba(0,0,0,.14)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) :is(#saveSubscriberBtn,.btn-primary,.se-ip-help-btn,.se-ip-suggest-btn),
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) #pppAuto:checked + .se-ppp-toggle-button .se-ppp-toggle-icon{
  background:linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  color:var(--ua-sem-on-accent)!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--ua-accent) 20%,transparent)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) :is(.se-ip-help-btn,.se-ip-suggest-btn) i,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit:not(.ua-edit-contract-page) #pppAuto:checked + .se-ppp-toggle-button .se-ppp-toggle-icon i{
  color:currentColor!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid input[type="file"].form-control::file-selector-button,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid input[type="file"].form-control::-webkit-file-upload-button{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/17px 17px no-repeat,
    linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  color:transparent!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--ua-accent) 20%,transparent)!important;
}

html body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid .se-file-upload-field{
  background:color-mix(in srgb,var(--ua-theme-surface) 56%,transparent)!important;
  border-color:var(--ua-ds-line)!important;
}

html body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid .se-file-upload-field input[type="file"].form-control{
  background:color-mix(in srgb,var(--ua-theme-input) 88%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
  box-shadow:none!important;
}

html body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid .se-file-upload-field input[type="file"].form-control::file-selector-button,
html body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid .se-file-upload-field input[type="file"].form-control::-webkit-file-upload-button{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/17px 17px no-repeat,
    linear-gradient(180deg,var(--ua-sem-primary-2),var(--ua-sem-primary))!important;
  border-color:color-mix(in srgb,var(--ua-sem-primary) 70%,white 10%)!important;
  color:transparent!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--ua-accent) 20%,transparent)!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid.se-3{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-service-line{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-pppoe-line{
  grid-template-columns:minmax(160px,.82fr) repeat(4,minmax(0,1fr))!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-edit-actions{
  margin-top:8px!important;
  padding-top:8px!important;
  border-top-color:color-mix(in srgb,var(--ua-ds-line) 72%,transparent)!important;
}

@media(max-width:1180px){
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid.se-3,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-service-line,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-pppoe-line,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Subscribers toolbar/gauge final cascade: مصدر واحد لسلوك الشريط العلوي في صفحة المشتركين. */
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-actions,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-actions{
  gap:6px!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-title .subsx-topline.ua-page-toolbar,
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-search-input-wrap,
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-search-input-wrap:hover,
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-search-input-wrap:focus-within,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-search-input-wrap,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-search-input-wrap:hover,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-search-input-wrap:focus-within{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  backdrop-filter:none!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-actions .ua-icon-action,
body.ua-authed.ua-design-v2.ua-p-subscribers details.ua-head-menu>summary.ua-icon-action,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .ua-icon-action,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody details.ua-head-menu>summary.ua-icon-action{
  box-shadow:none!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .ua-search-input,
body.ua-authed.ua-design-v2.ua-p-subscribers .ua-search-input:focus,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .ua-search-input,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .ua-search-input:focus{
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-search-input-wrap .search-icon-btn,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-search-input-wrap .search-icon-btn{
  left:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-search-input-wrap .search-icon-btn :where(i,.fa,svg),
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-search-input-wrap .search-icon-btn :where(i,.fa,svg){
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  line-height:1!important;
}
body.ua-authed.ua-design-v2.ua-p-subscribers .subsx-gauge,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBody .subsx-gauge{
  border-width:1px!important;
  border-style:solid!important;
  border-color:var(--ua-ds-line)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-text,#fff) 7%,transparent)!important;
}

@media(min-width:641px){
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-form-grid.se-3{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-service-line{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-pppoe-line{
    grid-template-columns:minmax(140px,.82fr) repeat(4,minmax(0,1fr))!important;
  }
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit .se-identity-upload-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Add Subscriber hard edge form contract.
   Root cause: this file is loaded after ua_program_unified.css, so its global guards were repainting
   subscriber-add controls with the template teal line/radius. Keep the add form contract final here. */
html body .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-field,.sa-form-grid > .sa-field,.ua-field,.form-group),
html body.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-field,.sa-form-grid > .sa-field,.ua-field,.form-group),
html body.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-field,.sa-form-grid > .sa-field,.ua-field,.form-group){
  display:block!important;
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-field,.ua-field,.form-group)::before,
html body .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-field,.ua-field,.form-group)::after{
  content:none!important;
  display:none!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field label:not(.sa-file-upload){
  display:block!important;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--ua-sem-muted,var(--ua-ds-muted))!important;
  text-align:right!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select),
html body.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select),
html body.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select){
  width:100%!important;
  min-height:34px!important;
  height:34px!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid var(--ua-ds-line)!important;
  border-radius:0!important;
  outline:0!important;
  background:var(--ua-theme-input)!important;
  background-color:var(--ua-theme-input)!important;
  background-image:none!important;
  color:var(--ua-theme-input-text)!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field textarea.form-control,
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field textarea{
  min-height:58px!important;
  height:58px!important;
  resize:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-border-strong)!important;
  outline:0!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-card,.sa-service-card,.sa-identity-card),
html body.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-card,.sa-service-card,.sa-identity-card),
html body.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-card,.sa-service-card,.sa-identity-card){
  border-color:var(--ua-ds-line)!important;
  border-radius:0!important;
  background:var(--ua-theme-surface)!important;
  background-color:var(--ua-theme-surface)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card{
  border-color:var(--ua-ds-line-strong)!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-kpi,.sa-summary,.sa-file-upload),
html body.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-kpi,.sa-summary,.sa-file-upload),
html body.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page :is(.sa-kpi,.sa-summary,.sa-file-upload){
  border-color:var(--ua-ds-line)!important;
  border-radius:0!important;
  background:var(--ua-theme-input)!important;
  background-color:var(--ua-theme-input)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-file-upload:hover{
  border-color:var(--ua-border-strong)!important;
}
html body .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn,
html body.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn,
html body.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn{
  border-radius:6px!important;
  box-shadow:none!important;
}

/* UA Add Subscriber preview finish
   Keep the preview column aligned with the square neutral form contract.
   This mirrors the central contract and prevents late footer/dashboard layers
   from bringing teal rounded preview boxes back. */
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card{
  border:1px solid var(--ua-ds-line)!important;
  border-radius:0!important;
  background:var(--ua-theme-surface)!important;
  background-color:var(--ua-theme-surface)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card-head h3,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card-head h3{
  border-bottom:1px solid color-mix(in srgb,var(--ua-ds-line) 72%,transparent)!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview :is(.sa-kpi,.sa-summary),
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview :is(.sa-kpi,.sa-summary){
  border:1px solid var(--ua-ds-line)!important;
  border-radius:0!important;
  background:var(--ua-theme-input)!important;
  background-color:var(--ua-theme-input)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-kpi-value,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-kpi-value{
  color:var(--ua-ds-title)!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-summary li,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-summary li{
  border-color:color-mix(in srgb,var(--ua-ds-line) 72%,transparent)!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn{
  border-radius:6px!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn-outline-secondary,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn-outline-secondary{
  border:1px solid var(--ua-ds-line-strong)!important;
  background:var(--ua-theme-surface-2)!important;
  color:var(--ua-ds-title)!important;
}
html body.ua-design-v2.ua-authed.ua-page-dashboard .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn-outline-secondary:hover,
html body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-add.sa-figma-page .sa-actions .btn-outline-secondary:hover{
  background:color-mix(in srgb,var(--ua-accent) 12%,var(--ua-theme-surface-2))!important;
}

/* subscribers_edit pagewise guards moved to assets/css/ua_subscribers_edit_adapter.css. */
/* Persistent workspace controls: tabs may compact, but window management never disappears. */
body.ua-authed .ua-page-windowbar__controls{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
  min-width:max-content!important;
  direction:ltr!important;
  z-index:40!important;
}
body.ua-authed.ua-page-dashboard .ua-dashboard-windowbar-host .ua-page-windowbar__controls{
  order:3!important;
  height:100%!important;
}
body.ua-authed .ua-page-windowbar__controls .ua-page-winbtn{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  padding:0!important;
  border:1px solid color-mix(in srgb,var(--ua-sem-icon) 20%,var(--ua-ds-line))!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:var(--ua-sem-icon)!important;
  background:color-mix(in srgb,var(--ua-theme-input) 82%,transparent)!important;
  cursor:pointer!important;
}
body.ua-authed .ua-page-windowbar__controls .ua-page-winbtn:hover{color:var(--ua-ds-title)!important;background:color-mix(in srgb,var(--ua-accent) 18%,var(--ua-theme-input))!important;border-color:color-mix(in srgb,var(--ua-accent) 36%,var(--ua-ds-line))!important}
body.ua-authed .ua-page-windowbar__controls .ua-page-winbtn--close:hover{color:var(--ua-sem-on-accent)!important;background:var(--ua-sem-danger)!important;border-color:color-mix(in srgb,var(--ua-sem-danger) 76%,white 24%)!important}
body.ua-authed .ua-page-windowbar__controls .ua-page-winbtn:disabled{opacity:.35!important;cursor:not-allowed!important}
body.ua-authed .ua-window-manager-menu{position:relative!important;margin:0!important}
body.ua-authed .ua-window-manager-menu>summary{list-style:none!important;position:relative!important}
body.ua-authed .ua-window-manager-menu>summary::-webkit-details-marker{display:none!important}
body.ua-authed .ua-page-winbtn--manager span{
  position:absolute!important;
  top:-5px!important;
  inset-inline-end:-5px!important;
  min-width:16px!important;
  height:16px!important;
  padding:0 4px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--ua-accent)!important;
  color:var(--ua-primary-text,var(--ua-sem-on-accent))!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
}
body.ua-authed .ua-window-manager-panel{
  position:absolute!important;
  top:calc(100% + 9px)!important;
  inset-inline-end:0!important;
  width:min(340px,calc(100vw - 32px))!important;
  padding:10px!important;
  border:1px solid var(--ua-ds-line-strong)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-menu) 94%,white 6%),color-mix(in srgb,var(--ua-theme-menu) 92%,black 8%))!important;
  box-shadow:0 18px 46px rgba(0,0,0,.48)!important;
  color:var(--ua-ds-text)!important;
  direction:rtl!important;
  z-index:100000!important;
}
body.ua-authed .ua-window-manager-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:2px 3px 9px!important;border-bottom:1px solid var(--ua-ds-line)!important}
body.ua-authed .ua-window-manager-head strong{font-size:13px!important}
body.ua-authed .ua-window-manager-head small{font-size:10px!important;color:var(--ua-sem-muted)!important}
body.ua-authed .ua-window-manager-list{display:grid!important;gap:5px!important;max-height:310px!important;overflow:auto!important;padding:8px 0!important;scrollbar-width:thin!important}
body.ua-authed .ua-window-manager-item{
  width:100%!important;
  min-width:0!important;
  height:36px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) 24px!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 8px!important;
  border:1px solid var(--ua-ds-line)!important;
  border-radius:9px!important;
  background:color-mix(in srgb,var(--ua-theme-input) 62%,transparent)!important;
  color:var(--ua-ds-text)!important;
  cursor:pointer!important;
  text-align:right!important;
}
body.ua-authed .ua-window-manager-item:hover,body.ua-authed .ua-window-manager-item.is-current{background:color-mix(in srgb,var(--ua-accent) 13%,var(--ua-theme-input))!important;border-color:color-mix(in srgb,var(--ua-accent) 34%,var(--ua-ds-line))!important;color:var(--ua-ds-title)!important}
body.ua-authed .ua-window-manager-item>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;font-weight:800!important}
body.ua-authed .ua-window-manager-item>b{width:22px!important;height:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;color:var(--ua-sem-danger)!important;font-size:16px!important;font-weight:500!important}
body.ua-authed .ua-window-manager-item>b:hover{background:var(--ua-sem-danger)!important;color:var(--ua-sem-on-accent)!important}
body.ua-authed .ua-window-manager-empty{padding:24px 8px!important;text-align:center!important;color:var(--ua-sem-muted)!important;font-size:11px!important}
body.ua-authed .ua-window-manager-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding-top:8px!important;border-top:1px solid var(--ua-ds-line)!important}
body.ua-authed .ua-window-manager-actions button{height:32px!important;border:1px solid var(--ua-ds-line)!important;border-radius:8px!important;background:color-mix(in srgb,var(--ua-theme-input) 72%,transparent)!important;color:var(--ua-ds-text)!important;font-size:10px!important;font-weight:850!important;cursor:pointer!important}
body.ua-authed .ua-window-manager-actions button:hover{background:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-input))!important;color:var(--ua-ds-title)!important}
body.ua-authed .ua-window-manager-actions button.is-danger:hover{background:var(--ua-sem-danger)!important;border-color:var(--ua-sem-danger)!important;color:var(--ua-sem-on-accent)!important}

/* In compact icon mode the per-tab close control remains available on hover. */
body.ua-authed .ua-page-windowbar__pages.is-icon-only .ua-page-tab{position:relative!important}
body.ua-theme-light_clean.ua-authed .ua-page-windowbar .ua-page-tab :is(span,i,.fa){color:inherit!important}
body.ua-authed .ua-page-windowbar__pages.is-icon-only .ua-page-tab .ua-page-tab__close{
  display:inline-flex!important;
  position:absolute!important;
  top:1px!important;
  inset-inline-end:1px!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  margin:0!important;
  opacity:0!important;
  background:var(--ua-sem-danger)!important;
  color:var(--ua-sem-on-accent)!important;
  z-index:3!important;
}
body.ua-authed .ua-page-windowbar__pages.is-icon-only .ua-page-tab:hover .ua-page-tab__close,
body.ua-authed .ua-page-windowbar__pages.is-icon-only .ua-page-tab:focus-visible .ua-page-tab__close{opacity:1!important}

body.ua-authed .ua-wm-context-menu{
  position:fixed!important;
  z-index:2147483000!important;
  width:210px!important;
  max-width:calc(100vw - 16px)!important;
  padding:7px!important;
  border:1px solid var(--ua-ds-line-strong)!important;
  border-radius:11px!important;
  background:color-mix(in srgb,var(--ua-theme-menu) 97%,transparent)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.48)!important;
  color:var(--ua-ds-text)!important;
  direction:rtl!important;
  text-align:right!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
body.ua-authed .ua-wm-context-menu__title{
  padding:7px 9px 9px!important;
  margin-bottom:5px!important;
  border-bottom:1px solid var(--ua-ds-line)!important;
  overflow:hidden!important;
  color:var(--ua-ds-title)!important;
  font-size:11px!important;
  font-weight:800!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.ua-authed .ua-wm-context-menu__close{
  width:100%!important;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  justify-content:flex-start!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--ua-sem-danger)!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
body.ua-authed .ua-wm-context-menu__close:hover,
body.ua-authed .ua-wm-context-menu__close:focus-visible{
  outline:0!important;
  background:var(--ua-sem-danger)!important;
  color:var(--ua-sem-on-accent)!important;
}

.ua-tab-context-menu{
  position:fixed!important;
  z-index:2147483000!important;
  width:218px!important;
  padding:6px!important;
  display:grid!important;
  gap:3px!important;
  direction:rtl!important;
  border:1px solid var(--ua-ds-line-strong)!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-menu) 94%,white 6%),color-mix(in srgb,var(--ua-theme-menu) 92%,black 8%))!important;
  box-shadow:0 18px 48px rgba(0,0,0,.55)!important;
  color:var(--ua-ds-text)!important;
}
.ua-tab-context-menu button{
  width:100%!important;
  height:34px!important;
  padding:0 10px!important;
  display:grid!important;
  grid-template-columns:20px 1fr!important;
  align-items:center!important;
  gap:8px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:var(--ua-ds-text)!important;
  text-align:right!important;
  font-size:11px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.ua-tab-context-menu button:hover,.ua-tab-context-menu button:focus-visible{outline:0!important;background:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-input))!important;color:var(--ua-ds-title)!important}
.ua-tab-context-menu button.is-danger{color:var(--ua-sem-danger)!important;border-top:1px solid var(--ua-ds-line)!important;border-radius:0 0 7px 7px!important;margin-top:2px!important}
.ua-tab-context-menu button.is-danger:hover,.ua-tab-context-menu button.is-danger:focus-visible{background:var(--ua-sem-danger)!important;color:var(--ua-sem-on-accent)!important}
.ua-tab-context-menu button i{width:18px!important;text-align:center!important}

@media(max-width:900px){
  body.ua-authed .ua-page-windowbar__controls [data-ua-wm-scroll-tabs]{display:none!important}
  body.ua-authed .ua-page-windowbar__controls{gap:4px!important}
  body.ua-authed .ua-page-windowbar__controls .ua-page-winbtn{width:28px!important;height:28px!important;min-width:28px!important}
}

/* One visual language for all sidebar groups and their flyout menus. */
body.ua-authed.ua-shell-chrome .ua-sb3-nav > .ua-sb3-item{
  box-sizing:border-box!important;
  width:100%!important;
  align-self:center!important;
  height:100%!important;
  max-height:56px!important;
  min-height:39px!important;
  margin:0!important;
  padding:6px 9px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ua-sidebar-text,var(--ua-ds-title))!important;
  font:inherit!important;
  font-weight:800!important;
  text-decoration:none!important;
  appearance:none!important;
}
body.ua-authed.ua-shell-chrome .ua-sb3 :where(.ua-sb3-item:hover,.ua-sb3-item.is-active,.ua-sb3-item.is-open),
body.ua-authed.ua-shell-chrome .ua-sb3-flyout-host :where(.ua-sb3-link:hover,.ua-sb3-link.is-active){
  border-color:color-mix(in srgb,var(--ua-accent) 38%,var(--ua-ds-line) 62%)!important;
  background:color-mix(in srgb,var(--ua-theme-sidebar-item) 70%,transparent)!important;
  color:var(--ua-sidebar-text,var(--ua-ds-title))!important;
}
body.ua-authed.ua-shell-chrome .ua-sb3 .ua-sb3-ic,
body.ua-authed.ua-shell-chrome .ua-sb3-flyout-host .ua-sb3-ic{
  box-sizing:border-box!important;
  width:27px!important;
  height:27px!important;
  flex:0 0 27px!important;
  border:1px solid color-mix(in srgb,var(--ua-accent) 28%,var(--ua-ds-line) 72%)!important;
  border-radius:8px!important;
  background:color-mix(in srgb,var(--ua-theme-input) 78%,transparent)!important;
  color:var(--ua-sidebar-text,var(--ua-ds-title))!important;
  box-shadow:none!important;
}
body.ua-authed.ua-shell-chrome .ua-sb3 :where(.ua-sb3-ic i,.ua-sb3-ic img),
body.ua-authed.ua-shell-chrome .ua-sb3-flyout-host :where(.ua-sb3-ic i,.ua-sb3-ic img){
  width:14px!important;
  height:14px!important;
  font-size:13px!important;
  line-height:14px!important;
  color:var(--ua-sidebar-text,var(--ua-ds-title))!important;
  filter:brightness(0) invert(1) opacity(.94)!important;
}
body.ua-authed.ua-shell-chrome .ua-sb3-flyout-host .ua-sb3-link,
body.ua-authed.ua-shell-chrome .ua-sb3-flyout-host .ua-sb3-fly--billing_finance .ua-sb3-link{
  box-sizing:border-box!important;
  min-height:42px!important;
  padding:7px 9px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--ua-sidebar-text,var(--ua-ds-title))!important;
  box-shadow:none!important;
}
