/*
  UA Program Unified Layer
  Final design-system contract loaded after legacy/extracted page CSS.
  Keep this file focused on shared chrome/components so template settings affect
  every migrated admin page without page-by-page color patches.
*/

:root{
  --ua-fs-xs:clamp(10.5px,calc(var(--ua-font-size,13px) - 2px),12px);
  --ua-fs-sm:clamp(11.5px,calc(var(--ua-font-size,13px) - 1px),13px);
  --ua-fs-md:clamp(12px,calc(var(--ua-font-size,13px) - .5px),13.5px);
  --ua-fs-lg:clamp(15px,calc(var(--ua-font-size,13px) + 2px),17px);
  --ua-fs-page-title:clamp(18px,calc(var(--ua-font-size,13px) + 9px),22px);
  --ua-fs-card-title:clamp(14px,calc(var(--ua-font-size,13px) + 3px),16px);
  --ua-fs-table:var(--ua-fs-md);
  --ua-fs-table-head:var(--ua-fs-sm);
  --ua-fs-control:var(--ua-fs-md);
  --ua-fs-menu:var(--ua-fs-md);
  --ua-fs-icon:var(--ua-fs-sm);
}

body.ua-authed{
  font-size:var(--ua-font-size,13px);
}

/* Workspace pages are revealed only after their complete document and tools
   are ready. This prevents progressive iframe paints and layout jumps. */
.ua-wm-pane.has-iframe{
  position:relative !important;
}

.ua-wm-pane.has-iframe.is-loading > .ua-wm-iframe{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

.ua-wm-pane__loading{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  direction:rtl;
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff));
  background:
    radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--ua-accent,#f5b000) 9%,transparent),transparent 28%),
    var(--ua-theme-window,var(--ua-bg,#06111d));
}

.ua-wm-pane__loading strong{
  font-size:var(--ua-fs-card-title,15px);
}

.ua-wm-pane__loading small{
  color:var(--ua-ds-muted,#8fa4b9);
  font-size:var(--ua-fs-xs,11px);
}

.ua-wm-pane__spinner{
  width:34px;
  height:34px;
  border:3px solid color-mix(in srgb,var(--ua-accent,#f5b000) 20%,transparent);
  border-top-color:var(--ua-accent,#f5b000);
  border-radius:50%;
  animation:ua-wm-spin .7s linear infinite;
}

@keyframes ua-wm-spin{to{transform:rotate(360deg)}}

@media (prefers-reduced-motion:reduce){
  .ua-wm-pane__spinner{animation-duration:1.5s}
}

body.ua-authed :where(button,input,select,textarea,.btn,.form-control,.form-select,.input-group-text){
  font-size:var(--ua-fs-control) !important;
}

body.ua-authed :where(.table thead th,table thead th,.ua-table thead th){
  font-size:var(--ua-fs-table-head) !important;
}

body.ua-authed :where(.table td,.table th,table td,table th,.ua-table td,.ua-table th){
  font-size:var(--ua-fs-table) !important;
}

body.ua-authed :where(.ua-page-title h1,.ua-page-title h2,.ua-page-title h3,.ua-page-title h4,.ua-page-title h5,.ua-page-title h6,.ua-extracted-head h1,.ua-manual-head h1,.content-header h1){
  font-size:var(--ua-fs-page-title) !important;
  line-height:1.22 !important;
}

body.ua-authed :where(.nav-tabs .nav-link,.ua-atab,.ua-subnav a,.ua-menu-item,.dropdown-item,.ua-head-item){
  font-size:var(--ua-fs-menu) !important;
}

body.ua-design-v2{
  font-family:var(--ua-font-family,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif) !important;
  font-size:var(--ua-font-size,15px);
  font-weight:var(--ua-font-weight,700);
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
  background:
    radial-gradient(900px 520px at 84% 4%,color-mix(in srgb,var(--ua-accent,#f5b000) 13%,transparent),transparent 62%),
    radial-gradient(760px 480px at 14% 8%,color-mix(in srgb,var(--ua-accent-2,#ffcc33) 10%,transparent),transparent 58%),
    linear-gradient(180deg,var(--ua-bg,#06111d),#030a13) !important;
}

body.ua-design-v2 :where(button,input,select,textarea,.btn,.form-control,.form-select,.table,.card,.box,.panel,.dropdown-menu,.ua-menu,.ua-card,.ua-panel){
  font-family:inherit !important;
  font-weight:var(--ua-font-weight,700);
}

body.ua-design-v2 :where(.ua-page-title,.ua-extracted-head h1,.ua-manual-head h1,.content-header h1){
  font-size:var(--ua-fs-page-title) !important;
  line-height:1.22 !important;
}

body.ua-design-v2 :where(h1,h2,h3,h4,h5,h6,.card-title,.box-title,.ua-card-title,.ua-panel-title){
  font-size:var(--ua-fs-card-title) !important;
  line-height:1.25 !important;
}

body.ua-design-v2 :where(.ua-page-title h1,.ua-page-title h2,.ua-page-title h3,.ua-page-title h4,.ua-page-title h5,.ua-page-title h6,.ua-page-title .ua-page-title-text){
  font-size:var(--ua-fs-page-title) !important;
  line-height:1.22 !important;
}

body.ua-design-v2 :where(.fa,[class^="fa-"],[class*=" fa-"]){
  font-family:FontAwesome !important;
}

body.ua-design-v2 :where(.ua-shell,.ua-main,.ua-page,.content-wrapper,section.content,.content,.container,.container-fluid){
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(.content-wrapper.ua-extracted-page,.content-wrapper.ua-manual-page,.ua-page-v2){
  background:transparent !important;
}

body.ua-design-v2 :where(.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs){
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  border-radius:var(--ua-radius,16px) !important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent,#f5b000) 12%,transparent),transparent 38%),
    linear-gradient(180deg,var(--ua-ds-surface,rgba(7,18,30,.82)),var(--ua-ds-surface-2,rgba(9,28,42,.74))) !important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft,0 14px 34px rgba(0,0,0,.22))) !important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.table-responsive,.modal-content,.popover,.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel){
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  border-radius:var(--ua-radius,16px) !important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent,#f5b000) 10%,transparent),transparent 34%),
    linear-gradient(180deg,var(--ua-ds-surface,rgba(7,18,30,.82)),var(--ua-ds-surface-2,rgba(9,28,42,.74))) !important;
  box-shadow:var(--ua-card-shadow,var(--ua-ds-shadow-soft,0 14px 34px rgba(0,0,0,.22))) !important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(.card-header,.card-footer,.box-header,.box-footer,.panel-heading,.panel-footer,.ua-card-head,.ua-panel-head,.ua-card-titlebar,.modal-header,.modal-footer){
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.018)) !important;
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(h1,h2,h3,h4,h5,h6,.card-title,.box-title,.ua-card-title,.ua-page-title,.ua-page-title h1,.ua-page-title h2,label,.form-label,strong,b){
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff)) !important;
  letter-spacing:0 !important;
}

body.ua-design-v2 :where(.text-muted,.small,small,.ua-muted-note,.ua-page-subtitle,.ua-extracted-head p,.ua-manual-head p){
  color:var(--ua-ds-muted,color-mix(in srgb,var(--ua-text,#eaf0ff) 66%,transparent)) !important;
}

body.ua-design-v2 :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
  font-size:var(--ua-fs-control) !important;
  min-height:var(--ua-ds-control-h,40px) !important;
  border:var(--ua-border-width,1px) var(--ua-border-style,solid) var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  border-radius:calc(var(--ua-radius,16px) * .72) !important;
  background:var(--ua-ds-input,rgba(4,24,34,.70)) !important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
  box-shadow:none !important;
}

body.ua-design-v2 :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-accent,#f5b000) !important;
  box-shadow:var(--ua-ds-focus,0 0 0 3px color-mix(in srgb,var(--ua-accent,#f5b000) 22%,transparent)) !important;
  outline:0 !important;
}

body.ua-design-v2 :where(.btn,button.btn,a.btn,.ua-btn){
  font-size:var(--ua-fs-control) !important;
  min-height:var(--ua-ds-control-h,40px);
  border-radius:calc(var(--ua-radius,16px) * .68) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  background:rgba(255,255,255,.055) !important;
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(.btn-primary,.btn-success,.ua-action-primary,.fin-btn,.ua-comms-btn--primary,.ua-comms-btn--gold,.secmon-btn--gold,.mtw-btn.gold){
  border-color:color-mix(in srgb,var(--ua-accent,#f5b000) 58%,white 10%) !important;
  background:linear-gradient(180deg,var(--ua-accent-2,#ffcc33),var(--ua-accent,#f5b000)) !important;
  color:#06111d !important;
}

body.ua-design-v2 :where(table,.table,.ua-table){
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  background:transparent !important;
}

body.ua-design-v2 :where(.table thead th,table thead th,.ua-table thead th){
  font-size:var(--ua-fs-table-head) !important;
  height:var(--ua-ds-table-row-h,46px);
  background:var(--ua-ds-table-head,rgba(8,55,62,.86)) !important;
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff)) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
}

body.ua-design-v2 :where(.table td,.table th,table td,table th,.ua-table td,.ua-table th){
  font-size:var(--ua-fs-table) !important;
  height:var(--ua-ds-table-row-h,46px);
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
  vertical-align:middle !important;
}

body.ua-design-v2 :where(.table tbody tr:nth-child(odd) > *,table tbody tr:nth-child(odd) > td,.ua-table tbody tr:nth-child(odd) > td){
  background:var(--ua-ds-table-row,rgba(5,30,39,.58)) !important;
}

body.ua-design-v2 :where(.table tbody tr:nth-child(even) > *,table tbody tr:nth-child(even) > td,.ua-table tbody tr:nth-child(even) > td){
  background:var(--ua-ds-table-row-alt,rgba(7,38,47,.64)) !important;
}

body.ua-design-v2 :where(.nav-tabs .nav-link,.ua-atab,.ua-subnav a){
  font-size:var(--ua-fs-menu) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
  background:rgba(255,255,255,.045) !important;
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
}

body.ua-design-v2 :where(.nav-tabs .nav-link.active,.ua-atab.is-active,.ua-subnav a.active){
  border-color:color-mix(in srgb,var(--ua-accent,#f5b000) 42%,transparent) !important;
  background:color-mix(in srgb,var(--ua-accent,#f5b000) 16%,rgba(255,255,255,.045)) !important;
  color:color-mix(in srgb,var(--ua-accent,#f5b000) 86%,white 14%) !important;
}

body.ua-design-v2 .ua-extracted-page .table thead th,
body.ua-design-v2 .ua-manual-page .table thead th,
body.ua-design-v2 .ua-extracted-page table thead th,
body.ua-design-v2 .ua-manual-page table thead th{
  background:var(--ua-ds-table-head,rgba(8,55,62,.86)) !important;
  color:var(--ua-ds-title,var(--ua-text,#eaf0ff)) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
}

body.ua-design-v2 .ua-extracted-page .table td,
body.ua-design-v2 .ua-extracted-page .table th,
body.ua-design-v2 .ua-manual-page .table td,
body.ua-design-v2 .ua-manual-page .table th,
body.ua-design-v2 .ua-extracted-page table td,
body.ua-design-v2 .ua-extracted-page table th,
body.ua-design-v2 .ua-manual-page table td,
body.ua-design-v2 .ua-manual-page table th{
  color:var(--ua-ds-text,var(--ua-text,#eaf0ff)) !important;
  border-color:var(--ua-ds-line,var(--ua-border,rgba(255,255,255,.14))) !important;
}

@media (max-width:760px){
  body.ua-shell-chrome:not(.ua-mobile-sb-open) .ua-sb3{
    transform:translateX(110%) !important;
  }

  html[dir="ltr"] body.ua-shell-chrome:not(.ua-mobile-sb-open) .ua-sb3{
    transform:translateX(-110%) !important;
  }

  body.ua-shell-chrome.ua-mobile-sb-open .ua-sb3{
    transform:translateX(0) !important;
  }

  body.ua-shell-chrome:not(.ua-page-dashboard) :where(.ua-main,.ua-page,.ua-unified-shell-block){
    margin-inline:6px !important;
    width:auto !important;
    max-width:none !important;
  }
}

/* ======================================================================
   Template Color Authority
   This section intentionally lives in the existing final shared layer, not
   in a new patch file. It maps legacy/bootstrap/custom components to the
   same variables saved from template_page.php so pages stop owning colors.
   ====================================================================== */
:root{
  --ua-fs-page-title:var(--ua-title-font-size,22px);
  --ua-fs-card-title:clamp(14px,calc(var(--ua-title-font-size,22px) - 6px),18px);
  --ua-fs-control:var(--ua-input-font-size,13px);
  --ua-fs-table:var(--ua-table-font-size,13px);
  --ua-fs-table-head:clamp(11px,calc(var(--ua-table-font-size,13px) - .5px),17px);
  --ua-fs-menu:var(--ua-menu-font-size,13px);
  --ua-fs-md:var(--ua-input-font-size,13px);
}

body.ua-authed,
body.ua-design-v2{
  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;
}

body.ua-authed :where(.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;
}

body.ua-authed :where(.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-page-tab,.ua-page-windowbar button,.ua-page-windowbar a){
  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,.ua-sb3-link,.sidebar-menu a,.nav-sidebar .nav-link){
  color:var(--ua-ds-title) !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;
}

body.ua-authed :where(.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.small-box,.info-box,.table-responsive,.ua-table-wrap){
  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) 82%,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(.card-header,.card-footer,.box-header,.box-footer,.panel-heading,.panel-footer,.ua-card-head,.ua-panel-head,.modal-header,.modal-footer){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface-2) 72%,transparent),color-mix(in srgb,var(--ua-theme-surface) 58%,transparent)) !important;
  color:var(--ua-ds-title) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-authed :where(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) 78%,transparent) !important;
  color:var(--ua-theme-input-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-authed :where(input::placeholder,textarea::placeholder){
  color:color-mix(in srgb,var(--ua-theme-input-text) 58%,transparent) !important;
}

body.ua-authed :where(.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) 86%,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(.dropdown-menu a,.dropdown-item,.ua-menu a,.ua-item,.ua-head-item,.nocx-user-menu-panel a,.ua-sb3-link){
  color:var(--ua-ds-text) !important;
  font-size:var(--ua-menu-font-size) !important;
}

body.ua-authed :where(.dropdown-menu a:hover,.dropdown-item:hover,.ua-menu a:hover,.ua-item:hover,.ua-head-item:hover,.nocx-user-menu-panel a:hover){
  background:color-mix(in srgb,var(--ua-accent) 14%,transparent) !important;
  color:var(--ua-ds-title) !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;
}

/* ======================================================================
   Phase 2 local-style cleanup utilities + page-family token bridge
   Extracted page CSS keeps layout only; colors/fonts are forced through the
   template variables injected by header.php from template_page.php.
   ====================================================================== */
.ua-u-hidden{display:none;}
.ua-u-inline{display:inline;}
.ua-u-flex{display:flex;}
.ua-u-gap-8{gap:8px;}
.ua-u-gap-10{gap:10px;}
.ua-u-m0{margin:0!important;}
.ua-u-mt-6{margin-top:6px!important;}
.ua-u-mt-10{margin-top:10px!important;}
.ua-u-nowrap{white-space:nowrap!important;}
.ua-u-full-width{width:100%!important;}
.ua-u-width-auto{width:auto!important;}
.ua-u-minw-260{min-width:260px;}
.ua-u-scroll-y-lg{max-height:620px;overflow:auto;}
.ua-u-overflow-auto{overflow:auto;}
.ua-u-table-wide{min-width:1000px;}
.ua-u-grid-full{grid-column:1/-1;}
.ua-u-grid-through-before-last{grid-column:1 / -2;}
.ua-u-one-line-260{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ua-u-dashed-soft{box-shadow:none!important;border-style:dashed!important;}
.ua-u-accent-title{color:var(--ua-accent-ink,color-mix(in srgb,var(--ua-accent) 86%,white 14%))!important;font-weight:950!important;}
.ua-u-accent-soft-bg{border-color:color-mix(in srgb,var(--ua-accent) 28%,transparent)!important;background:color-mix(in srgb,var(--ua-accent) 8%,transparent)!important;}
.ua-u-owner-label{width:100%;margin-bottom:4px;}
.ua-u-small{font-size:var(--ua-fs-xs,12px)!important;}
.ua-u-flex-wrap-center{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.ua-u-inline-flex-center{display:inline-flex;gap:6px;align-items:center;margin:0;}
.ua-u-muted-line{margin:0;opacity:.8;}
.ua-u-print-card-foot{margin-top:12px;border-top:1px dashed var(--ua-ds-line);padding-top:10px;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--ua-ds-muted);flex-wrap:wrap;}
.ua-u-print-small{font-size:10px!important;padding:6px!important;}

body.ua-authed :where(
  .sa-card,.sa-kpi,.sa-summary,.sa-pill,.sa-hint,.sa-inline-note,.sa-empty,
  .se-edit-card,.se-check-field,.se-file-upload-field,.se-static-ip-control,.se-ip-help,.se-current-ip,
  .mtw-card,.sp-card,.sec-card,.secmon-card,.secmon-hero,.ua-profile-card,.ua-profile-side,.ua-profile-pass,
  .ua-users-perm-card,.vg-card,.up-stat,.up-modal-box,.sie-modal,.sie-flash,.ua-history-clear-option,.ua-history-clear-stat,
  .nocx-panel,.nocx-mini-stat,.nocx-band-item,.nocx-receiver-station,.nocx-router-card
){
  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;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
}

body.ua-authed :where(
  .sa-card-head,.se-edit-card-head,.ua-profile-card h4,.ua-users-perm-head,.secmon-card h2,.sp-head,.vg-card h3,
  .nocx-panel__head,.nocx-topbar,.nocx-dashboard-windowbar,.ua-page-windowbar--dashboard
){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface-2) 72%,transparent),color-mix(in srgb,var(--ua-theme-surface) 58%,transparent))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-title)!important;
}

body.ua-authed :where(
  .sa-card-head h3,.sa-kpi-value,.sa-summary,.sa-summary ul,.sa-field label,.se-field label,.se-check-field label,
  .mtw-title,.sp-card h2,.sec-head h1,.secmon-title,.ua-profile-title,.ua-profile-pass__title,.ua-users-perm-card h5,
  .vg-title,.vg-card h3,.up-title,.nocx-topbar__title,.nocx-secmon-title,.nocx-mini-stat__value
){
  color:var(--ua-ds-title)!important;
}

body.ua-authed :where(
  .sa-kpi-title,.sa-field small,.sec-muted,.secmon-muted,.mtw-muted,.sp-muted,.ua-muted,.ua-profile-muted,
  .nocx-muted,.nocx-dash-search-meta,.nocx-alert-popover__head small
){
  color:var(--ua-ds-muted)!important;
}

body.ua-authed :where(
  .sa-hint,.sa-pill,.secmon-pill,.sec-sev,.mtw-badge,.ua-profile-badge,.nocx-status-badge,.nocx-stat-chip,.nocx-band-item
){
  background:color-mix(in srgb,var(--ua-accent) 12%,transparent)!important;
  border-color:color-mix(in srgb,var(--ua-accent) 26%,transparent)!important;
  color:var(--ua-accent-ink,color-mix(in srgb,var(--ua-accent) 86%,white 14%))!important;
}

body.ua-authed :where(
  .sa-field .form-control,.sa-field .form-select,.se-field .form-control,.se-field .form-select,.se-field textarea,
  .mtw-field input,.mtw-field select,.mtw-field textarea,.sp-form input,.sp-form select,.sp-form textarea,
  .vg-field input,.vg-field select,.vg-field textarea,.ua-profile-field input,.ua-profile-field select,.ua-profile-field textarea,
  .ua-users-field input,.ua-users-field select,.ua-users-field textarea
){
  background:color-mix(in srgb,var(--ua-theme-input) 78%,transparent)!important;
  color:var(--ua-theme-input-text)!important;
  border-color:var(--ua-ds-line)!important;
  font-size:var(--ua-input-font-size)!important;
}

body.ua-authed :where(
  .mtw-table th,.mtw-table td,.sp-table th,.sp-table td,.sec-table th,.sec-table td,.secmon-table th,.secmon-table td,
  .nocx-table th,.nocx-table td
){
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
  font-size:var(--ua-table-font-size)!important;
}
body.ua-authed :where(.mtw-table th,.sp-table th,.sec-table th,.secmon-table th,.nocx-table th){
  background:color-mix(in srgb,var(--ua-theme-table-head) 86%,transparent)!important;
  color:var(--ua-ds-title)!important;
}

body.ua-authed :where(.mtw-btn.gold,.sec-btn.primary,.secmon-btn--gold,.vg-btn-primary,.up-btn-primary,.se-ip-suggest-btn,.sa-ip-suggest){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent))!important;
  border-color:color-mix(in srgb,var(--ua-accent) 58%,white 10%)!important;
  color:#06111d!important;
}
body.ua-authed :where(.mtw-btn.red,.sec-btn.red,.secmon-btn--red,.up-btn-danger){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-security-alert) 86%,#ff5c77 14%),var(--ua-theme-security-alert))!important;
  border-color:color-mix(in srgb,var(--ua-theme-security-alert) 66%,white 10%)!important;
  color:var(--ua-ds-title)!important;
}

body.ua-authed .ua-subscriber-view{
  --sv-ink:var(--ua-ds-title);
  --sv-muted:var(--ua-ds-muted);
  --sv-line:var(--ua-ds-line);
  --sv-panel:var(--ua-ds-surface);
  --sv-accent:var(--ua-accent);
  --sv-gold:var(--ua-accent-2);
  color:var(--ua-ds-text)!important;
}
body.ua-authed .ua-subscriber-view :where(.content-header .container-fluid,.nav-tabs,.row.g-3 > [class*="col-"],.alert-secondary){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface) 82%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent))!important;
  border-color:var(--ua-ds-line)!important;
  color:var(--ua-ds-text)!important;
}
body.ua-authed .ua-subscriber-view :where(.nav-tabs .nav-link.active){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent))!important;
  color:#06111d!important;
}

/* Subscriber edit fallback dialog: no inline styling, follows template modal tokens. */
.se-mt-confirm-backdrop{
  position:fixed;inset:0;z-index:2147483640;
  background:color-mix(in srgb,var(--ua-theme-page-bg) 62%,transparent);
  display:flex;align-items:center;justify-content:center;padding:18px;direction:rtl;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.se-mt-confirm-card{
  width:min(460px,96vw);border-radius:24px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-modal) 92%,transparent),color-mix(in srgb,var(--ua-theme-modal) 74%,black 14%));
  color:var(--ua-ds-text);border:1px solid var(--ua-ds-line);
  box-shadow:0 28px 80px rgba(0,0,0,.34);font-family:var(--ua-font-family);overflow:hidden;padding:20px;box-sizing:border-box;
}
.se-mt-confirm-icon{width:48px;height:48px;margin:0 auto 12px;border-radius:14px;background:linear-gradient(135deg,var(--ua-accent-2),var(--ua-accent));display:flex;align-items:center;justify-content:center;color:#06111d;font-size:22px;box-shadow:0 12px 28px color-mix(in srgb,var(--ua-accent) 28%,transparent)}
.se-mt-confirm-title{margin:0 0 12px;text-align:center;font-size:var(--ua-modal-font-size);line-height:1.45;font-weight:950;color:var(--ua-ds-title)}
.se-mt-confirm-body{color:var(--ua-ds-text);font-size:var(--ua-modal-font-size);line-height:1.9;font-weight:800;text-align:right;max-height:min(52vh,360px);overflow:auto}
.se-mt-confirm-actions{display:flex;gap:8px;flex-direction:row-reverse;margin-top:16px}
.se-mt-confirm-ok,.se-mt-confirm-cancel{flex:1;border:0;border-radius:14px;height:42px;font-weight:950;cursor:pointer}
.se-mt-confirm-ok{background:linear-gradient(90deg,var(--ua-accent-2),var(--ua-accent));color:#06111d}
.se-mt-confirm-cancel{background:color-mix(in srgb,var(--ua-theme-input) 78%,transparent);color:var(--ua-theme-input-text);border:1px solid var(--ua-ds-line)}
.se-mt-accent{color:var(--ua-accent-ink,color-mix(in srgb,var(--ua-accent) 86%,white 14%))!important;font-weight:900!important;}
.se-mt-accent-ip{font-size:20px;font-weight:900;color:var(--ua-accent-ink,color-mix(in srgb,var(--ua-accent) 86%,white 14%));margin:8px 0;}
.se-mt-list{margin:8px 0 0;padding-inline-start:22px;}
.se-mt-list-changes{margin:10px 0 0;padding-inline-start:22px;}
.se-mt-note{margin-top:10px;}
.se-mt-note-accent{margin-top:10px;color:var(--ua-accent-ink,color-mix(in srgb,var(--ua-accent) 86%,white 14%));font-weight:800;}
.ua-subscriber-view .sv-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:8px;vertical-align:middle;background:var(--ua-ds-muted);box-shadow:0 0 0 3px color-mix(in srgb,var(--ua-ds-muted) 18%,transparent);}
.ua-subscriber-view .sv-dot-green{background:#28a745;}
.ua-subscriber-view .sv-dot-blue{background:#007bff;}
.ua-subscriber-view .sv-dot-red{background:#dc3545;}
.ua-subscriber-view .sv-dot-yellow{background:#ffc107;}
.ua-subscriber-view .sv-dot-gray{background:#6c757d;}

/* ======================================================================
   UA Phase 3: operational-page inline-style cleanup utilities.
   Central utilities only; pages stop owning colors/sizes directly.
   ====================================================================== */
.ua-u-text-right{text-align:right!important;}
.ua-u-rtl-right{direction:rtl!important;text-align:right!important;}
.ua-u-mb-10{margin-bottom:10px!important;}
.ua-u-mb-12{margin-bottom:12px!important;}
.ua-u-mt-0{margin-top:0!important;}
.ua-u-mt-12{margin-top:12px!important;}
.ua-u-mr-6{margin-right:6px!important;}
.ua-u-ml-10{margin-left:10px!important;}
.ua-u-my-6{margin-top:6px!important;margin-bottom:6px!important;}
.ua-u-p0{padding:0!important;}
.ua-u-pb-0{padding-bottom:0!important;}
.ua-u-pr-18{padding-right:18px!important;}
.ua-u-fw-700{font-weight:700!important;}
.ua-u-fw-800{font-weight:800!important;}
.ua-u-fw-900{font-weight:900!important;}
.ua-u-fs-09{font-size:.9rem!important;}
.ua-u-float-left{float:left!important;}
.ua-u-select-all{user-select:all!important;}
.ua-u-gap-half{gap:.5rem!important;}
.ua-u-gap-075{gap:.75rem!important;}
.ua-u-width-65{width:65%!important;}
.ua-u-pre-wrap{white-space:pre-wrap!important;}
.ua-u-small-muted-strong{font-size:var(--ua-fs-xs,12px)!important;opacity:.85;}
.ua-u-flex-wrap-gap10{display:flex!important;gap:10px!important;flex-wrap:wrap!important;}
.ua-u-flex-wrap-center-10{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important;}
.ua-u-actions-start{display:flex!important;gap:10px!important;justify-content:flex-start!important;}
.ua-u-toolbar-between{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;}
.ua-u-table-scroll,.mt-ua-table-scroll{overflow:auto!important;margin-top:14px!important;}
.ua-u-table-wide-1100{min-width:1100px!important;}
.ua-u-minw-160{min-width:160px!important;}
.ua-u-empty-center{text-align:center!important;opacity:.7!important;}
.ua-u-title-gap10{margin:0 0 10px!important;}
.ua-u-title-gap6{margin:0 0 6px!important;}
.ua-u-ellipsis-320{max-width:320px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.ua-u-border-top-soft{border-top:1px solid var(--ua-ds-line)!important;}
.ua-u-code-output{max-height:220px!important;overflow:auto!important;direction:ltr!important;text-align:left!important;}
.ua-clean-card-pad{padding:16px!important;border-radius:18px!important;}
.ua-msg-campaign-form{display:grid!important;grid-template-columns:1.25fr 1fr .65fr .8fr .9fr 1.05fr auto!important;gap:10px!important;align-items:end!important;}
.ua-auto-command-info{padding:12px 16px!important;border-bottom:1px solid var(--ua-ds-line)!important;background:color-mix(in srgb,var(--ua-theme-surface-2) 70%,transparent)!important;}
.ua-print-overlay{position:fixed;inset:0;background:color-mix(in srgb,#000 48%,transparent);z-index:9999;}
.ua-print-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10000;background:var(--ua-theme-modal);color:var(--ua-ds-text);border:1px solid var(--ua-ds-line);border-radius:var(--ua-modal-radius,14px);min-width:320px;max-width:92vw;box-shadow:0 18px 60px rgba(0,0,0,.35);overflow:hidden;}
.ua-print-modal-head{padding:14px 16px;border-bottom:1px solid var(--ua-ds-line);display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:700;}
.ua-print-modal-body{padding:14px 16px;}
.ua-print-modal-note{opacity:.85;margin-bottom:10px;}
.ua-print-modal-footnote{margin-top:12px;opacity:.75;font-size:var(--ua-fs-xs,12px);}
.ua-fix-inner-frame{background:var(--ua-theme-modal,#075450);color-scheme:dark;}
@media (max-width:900px){.ua-msg-campaign-form{grid-template-columns:1fr!important}.ua-u-width-65{width:100%!important}}
.ua-u-w-42{width:42px!important;}

/* ======================================================================
   UA Phase 4: sensitive standalone/modal/widget styles moved from PHP.
   These rules keep special pages reading from the central design layer.
   ====================================================================== */
.ua-clean-mode .form-text,
.ua-clean-mode .small.ua-clean-remove,
.ua-clean-mode .ua-clean-remove,
.ua-clean-mode .ua-ftabs-hint,
.ua-clean-mode .help-block.ua-clean-remove,
.ua-clean-mode .note.ua-clean-remove,
.ua-clean-mode .hint.ua-clean-remove{display:none!important;}
.ua-clean-mode .ua-clean-hidden-group{display:none!important;}
.ua-clean-mode .card .card-body form .form-group > label,
.ua-clean-mode .card .card-body form .form-group > .form-label{margin-bottom:.45rem;font-weight:800;}
.ua-clean-mode .card,
.ua-clean-mode .small-box,
.ua-clean-mode .info-box,
.ua-clean-mode .nav-tabs,
.ua-clean-mode .ua-ftabs{box-shadow:0 10px 26px rgba(0,0,0,.10)!important;}
.ua-clean-mode .form-control,
.ua-clean-mode .custom-select,
.ua-clean-mode select,
.ua-clean-mode textarea{min-height:46px;}
.ua-clean-mode textarea.form-control{min-height:96px;}
.ua-clean-mode .btn{border-radius:14px;font-weight:800;}

.ua-widgets-scope,
.ua-speedtest-scope{
  --ua-widget-bg1:var(--ua-theme-page-bg,#070b12);
  --ua-widget-bg2:color-mix(in srgb,var(--ua-theme-surface,#071225) 84%,#000 16%);
  --ua-widget-glass:color-mix(in srgb,var(--ua-theme-surface,#071827) 46%,transparent);
  --ua-widget-border:color-mix(in srgb,var(--ua-accent-2,#5adcff) 18%,rgba(255,255,255,.10));
  --ua-widget-text:var(--ua-ds-title,#fff);
  --ua-widget-muted:color-mix(in srgb,var(--ua-widget-text) 72%,transparent);
  box-sizing:border-box;
}
.ua-widgets-scope *, .ua-speedtest-scope *{box-sizing:border-box;}
.ua-widgets-scope{margin:0;min-height:0;font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);color:var(--ua-widget-text);background:transparent;padding:0;}
.ua-speedtest-scope{margin:0;min-height:100vh;font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);color:var(--ua-widget-text);background:radial-gradient(1100px 700px at 15% 20%,color-mix(in srgb,var(--ua-accent-2,#5adcff) 16%,transparent),transparent 55%),radial-gradient(900px 650px at 85% 35%,color-mix(in srgb,var(--ua-accent,#ff8c50) 12%,transparent),transparent 55%),linear-gradient(180deg,var(--ua-widget-bg1),var(--ua-widget-bg2));padding:14px;}
.ua-widgets-scope .wrap,.ua-speedtest-scope .wrap{max-width:980px;margin:auto;}
.ua-widgets-scope .main-card{border-radius:26px;background:transparent;padding:0;width:min(980px,100%);margin:auto;overflow:hidden;}
.ua-speedtest-scope .main-card{border-radius:26px;background:var(--ua-widget-glass);border:1px solid var(--ua-widget-border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 18px 70px rgba(0,0,0,.55);padding:14px;width:min(980px,100%);margin:auto;overflow:hidden;}
.ua-widgets-scope .grid,.ua-speedtest-scope .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.ua-widgets-scope .cell,.ua-speedtest-scope .cell{border-radius:18px;background:rgba(0,0,0,.10);border:1px solid rgba(255,255,255,.08);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);}
@media(min-width:861px){.ua-widgets-scope .grid>.cell:nth-child(odd),.ua-speedtest-scope .grid>.cell:nth-child(odd){border-left-color:transparent;border-top-left-radius:14px;border-bottom-left-radius:14px}.ua-widgets-scope .grid>.cell:nth-child(even),.ua-speedtest-scope .grid>.cell:nth-child(even){border-right-color:transparent;border-top-right-radius:14px;border-bottom-right-radius:14px}}
@media(max-width:860px){.ua-widgets-scope .grid,.ua-speedtest-scope .grid{grid-template-columns:1fr;gap:12px;}}
.ua-widgets-scope .topbar,.ua-speedtest-scope .topbar{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;background:rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.08);direction:ltr;}
.ua-widgets-scope .left,.ua-speedtest-scope .left{display:flex;align-items:center;gap:10px;}
.ua-widgets-scope .badge,.ua-speedtest-scope .badge{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);font-size:14px;}
.ua-widgets-scope .meta .k,.ua-speedtest-scope .meta .k{font-size:10px;letter-spacing:.4px;opacity:.75;font-weight:800;}
.ua-widgets-scope .meta .v,.ua-speedtest-scope .meta .v{font-size:13px;font-weight:900;}
.ua-widgets-scope .hint,.ua-speedtest-scope .hint{font-size:10px;opacity:.7;font-weight:800;}
.ua-widgets-scope .canvasWrap,.ua-speedtest-scope .canvasWrap{padding:10px;}
.ua-widgets-scope canvas,.ua-speedtest-scope canvas{width:100%;height:215px;display:block;}
.ua-widgets-scope .tap,.ua-speedtest-scope .tap{margin-top:10px;text-align:center;opacity:.75;font-size:12px;}
.ua-widgets-scope .tap b,.ua-speedtest-scope .tap b{opacity:1;}

.ua-compact-view{font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);direction:rtl;color:#f2fffb;background:linear-gradient(135deg,rgba(11,103,96,.98),rgba(7,77,74,.99));padding:12px;min-height:100vh;box-sizing:border-box;}
.ua-compact-error{padding:16px;color:#fecaca;font-weight:900;text-align:right;background:rgba(127,29,29,.34);border:1px solid rgba(248,113,113,.28);border-radius:14px;}
.ua-compact-hero{display:flex;justify-content:space-between;gap:10px;align-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--ua-theme-surface-2,#0d746c) 92%,transparent),color-mix(in srgb,var(--ua-theme-surface,#074b4c) 92%,transparent));color:#fff;border:1px solid rgba(153,246,228,.24);border-radius:16px;padding:12px 14px;margin-bottom:10px;box-shadow:0 12px 28px rgba(0,0,0,.16);}
.ua-compact-hero h3{margin:0 0 4px;font-size:18px;line-height:1.25;color:#f2fffb;font-weight:950;text-shadow:0 1px 2px rgba(0,0,0,.36);}
.ua-compact-sub{font-size:12px;color:rgba(226,255,250,.88);}
.ua-compact-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.ua-compact-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-weight:900;font-size:11px;border:1px solid rgba(255,255,255,.12);}
.ua-ok{background:rgba(16,185,129,.18);color:#bbf7d0}.ua-warn{background:rgba(245,158,11,.18);color:#fde68a}.ua-bad{background:rgba(239,68,68,.18);color:#fecaca}.ua-info{background:rgba(45,212,191,.16);color:#ccfbf1}
.ua-section-title{font-size:14px;font-weight:950;color:#ccfbf1;margin:12px 2px 8px;text-align:right;text-shadow:0 1px 0 rgba(0,0,0,.24);}
.ua-compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.ua-compact-field{background:linear-gradient(180deg,rgba(8,86,82,.96),rgba(5,56,59,.98));border:1px solid rgba(153,246,228,.22);border-radius:12px;padding:8px 10px;min-height:54px;box-shadow:0 10px 22px rgba(0,0,0,.14);}
.ua-compact-label{font-size:11px;color:rgba(226,255,250,.78);margin-bottom:4px;font-weight:900;}
.ua-compact-value{font-size:13px;font-weight:900;word-break:break-word;line-height:1.35;color:#f2fffb;}
.ua-compact-field.is-wide{grid-column:span 3;}
.ua-compact-actions{position:sticky;bottom:0;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-start;margin-top:10px;padding:8px 0 2px;background:linear-gradient(180deg,rgba(5,58,60,0),rgba(5,58,60,.96) 42%);}
.ua-compact-actions a{display:inline-flex;text-decoration:none;border-radius:10px;padding:7px 11px;font-size:12px;font-weight:950;border:1px solid rgba(255,255,255,.10);}
.ua-btn-primary{background:linear-gradient(135deg,#0ea5e9,#0f766e);color:#fff}.ua-btn-danger{background:linear-gradient(135deg,#ef4444,#991b1b);color:#fff}.ua-btn-secondary{background:rgba(2,38,43,.72);color:#ccfbf1}.ua-btn-warning{background:linear-gradient(135deg,#f59e0b,#b45309);color:#fff}
@media(max-width:700px){.ua-compact-grid{min-width:680px}.ua-compact-view{overflow-x:auto}.ua-compact-field.is-wide{grid-column:auto}.ua-compact-hero{display:block}.ua-compact-badges{justify-content:flex-start;margin-top:8px}}

.ua-print-standalone{margin:0;background:#f3f5f7;color:#111;font-family:var(--ua-font-family,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif);}
.ua-print-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-bottom:1px solid #e6e6e6;position:sticky;top:0;z-index:10;}
.ua-print-toolbar-actions{display:flex;gap:8px;}
.ua-print-toolbar .btn,.ua-print-btn{border:1px solid #ddd;background:#fff;padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:800;color:#111;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.ua-print-toolbar .btn.primary,.ua-print-btn-primary{background:#2563eb;color:#fff;border-color:#2563eb;}
.ua-print-wrap{padding:18px;display:flex;justify-content:center;}
.ua-print-sheet{background:#fff;border:1px solid #e6e6e6;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.08);overflow:hidden;}
.ua-invoice-paper-a4{width:210mm}.ua-invoice-paper-80{width:80mm}.ua-invoice-paper-58{width:58mm}
.ua-print-sheet-head{padding:14px 14px 10px;text-align:center;border-bottom:1px dashed #e6e6e6;}
.ua-print-sheet-title{font-size:18px;font-weight:900;margin:0;}
.ua-print-sheet-sub{margin:6px 0 0;color:#666;font-size:12px;}
.ua-print-sheet-grid{padding:12px 14px;display:grid;grid-template-columns:1fr;gap:8px;font-size:13px;}
.ua-print-sheet-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #f1f1f1;padding:6px 0;}
.ua-print-k{color:#666}.ua-print-v{font-weight:900}.ua-print-sheet-foot{padding:10px 14px 14px;color:#666;font-size:11px;display:flex;justify-content:space-between;gap:10px;border-top:1px dashed #e6e6e6;}
.ua-print-preview-page{background:#f4f6fb;}
.ua-print-preview-page .ua-print-wrap{padding:20px;display:block;}
.ua-print-preview-page .ua-print-toolbar{max-width:794px;margin:0 auto 14px;justify-content:flex-end;flex-wrap:wrap;position:static;border:0;background:transparent;padding:0;}
.ua-print-offline-note{max-width:794px;margin:0 auto 16px;padding:12px 16px;border-radius:14px;background:#fff3cd;color:#6a5300;border:1px solid #f0d98b;font-weight:700;}
.ua-preview-sheet{width:794px;margin:0 auto;padding:12mm;direction:rtl;text-align:right;}
.ua-preview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.ua-preview-brand{display:flex;align-items:center;gap:12px;}.ua-preview-brand img{max-width:90px;max-height:60px;object-fit:contain;}.ua-preview-name{font-size:20px;font-weight:800;}.ua-preview-muted{color:#666;font-size:13px;}.ua-preview-box{border:1px solid #e7ebf5;border-radius:12px;padding:12px 14px;margin-top:14px;}.ua-preview-table{width:100%;border-collapse:collapse;margin-top:12px;}.ua-preview-table th,.ua-preview-table td{border:1px solid #edf0f6;padding:10px;font-size:14px;}.ua-preview-table th{background:#f7f9fc;}
@media print{.ua-print-standalone,.ua-print-preview-page{background:#fff}.ua-print-toolbar,.ua-print-offline-note{display:none!important}.ua-print-wrap{padding:0!important}.ua-print-sheet{box-shadow:none!important;border:0!important;border-radius:0!important;width:100%!important}@page{margin:8mm}}

.ua-super-admin-confirm-page{font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);background:radial-gradient(circle at 70% 12%,color-mix(in srgb,var(--ua-accent,#f3ba2f) 12%,transparent),transparent 26%),linear-gradient(135deg,#020811,#09182b 58%,#030912);color:#eef4ff;overflow:hidden;min-height:100vh;margin:0;}
.ua-sa-wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.52)}
.ua-sa-card{width:min(460px,96vw);border-radius:20px;background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-modal,#081222) 98%,transparent),color-mix(in srgb,var(--ua-theme-surface,#0a1b31) 98%,transparent));border:1px solid color-mix(in srgb,var(--ua-accent,#f3ba2f) 36%,transparent);box-shadow:0 24px 80px rgba(0,0,0,.58);overflow:hidden;animation:uaSaPop .16s ease-out both}
@keyframes uaSaPop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.ua-sa-head{height:46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.10);background:rgba(3,10,20,.72)}
.ua-sa-title{padding-inline:16px;font-weight:900;color:color-mix(in srgb,var(--ua-accent,#ffd861) 74%,white);letter-spacing:.2px}.ua-sa-x{width:46px;height:46px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:rgba(255,255,255,.84);font-size:22px;background:transparent;border:0}.ua-sa-x:hover{background:#c42b1c;color:#fff}
.ua-sa-body{padding:20px 18px 18px;text-align:right}.ua-sa-note{margin:0 0 16px;color:rgba(238,244,255,.72);font-weight:700;line-height:1.8}.ua-sa-label{display:block;margin-bottom:8px;color:color-mix(in srgb,var(--ua-accent,#ffd861) 74%,white);font-weight:900}.ua-sa-input{width:100%;height:46px;border-radius:12px;border:1px solid color-mix(in srgb,var(--ua-accent,#f3ba2f) 48%,transparent);background:rgba(255,255,255,.96);color:#111;padding:9px 13px;font-size:16px;outline:0}.ua-sa-input:focus{border-color:color-mix(in srgb,var(--ua-accent,#ffd861) 74%,white);box-shadow:0 0 0 3px color-mix(in srgb,var(--ua-accent,#f3ba2f) 18%,transparent)}
.ua-sa-actions{display:flex;gap:10px;margin-top:14px}.ua-sa-btn{height:42px;border:0;border-radius:12px;padding:0 18px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.ua-sa-btn.gold{background:linear-gradient(180deg,#ffd861,#f0b723);color:#111;flex:1}.ua-sa-btn.gray{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.14)}.ua-sa-err{margin:0 0 12px;padding:10px 12px;border-radius:12px;color:#fff;background:rgba(220,53,69,.26);border:1px solid rgba(255,99,132,.52);font-weight:800}.ua-sa-small{margin-top:12px;color:rgba(238,244,255,.56);font-size:12px;text-align:center}
.ua-sa-denied-inline{direction:rtl;text-align:center;padding:26px;font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);color:#fff;background:#07111f;border:1px solid rgba(255,210,102,.35);border-radius:16px;margin:18px}.ua-sa-denied-inline h3{color:#ffd24a;margin:0 0 12px}.ua-sa-denied-inline p{margin:0;line-height:1.9}.ua-sa-denied-page{font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);background:#07111f;color:#fff;display:grid;place-items:center;min-height:100vh;margin:0}.ua-sa-denied-card{max-width:480px;border:1px solid rgba(255,210,102,.35);border-radius:18px;padding:24px;text-align:center}.ua-sa-denied-card h2,.ua-sa-denied-card a{color:#ffd24a;}

.ua-public-special-page.ua-voucher-redeem-page{margin:0;background:#f4f6fb;color:#172033;font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);}
.ua-public-shell{max-width:560px;margin:32px auto;padding:20px;border:1px solid #e7ebf5;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.08);}
.ua-public-shell h1,.ua-public-shell h2{margin:0 0 12px}.ua-public-shell .muted{color:#5b6475;font-size:14px}.ua-public-shell .notice{padding:11px 12px;border-radius:12px}.ua-public-shell .notice-danger{background:#fee2e2;color:#991b1b}.ua-public-shell .notice-success{background:#d1fae5;color:#065f46}.ua-voucher-result-data{margin-top:14px;font-size:15px}.ua-voucher-link-row{margin-top:14px}.ua-voucher-login-link{display:inline-block;padding:10px 14px;border-radius:12px;text-decoration:none;border:1px solid #ddd;color:#172033;background:#fff;font-weight:800;}

/* UA Phase 4 utility closures for remaining inline layout leftovers. */
.ua-u-d-flex{display:flex!important}.ua-u-d-grid{display:grid!important}.ua-u-ai-center{align-items:center!important}.ua-u-ai-end{align-items:flex-end!important}.ua-u-jc-between{justify-content:space-between!important}.ua-u-jc-center{justify-content:center!important}.ua-u-flex-wrap{flex-wrap:wrap!important}.ua-u-flex-center{display:flex!important;align-items:center!important;justify-content:center!important}.ua-u-gap-8{gap:8px!important}.ua-u-gap-10{gap:10px!important}.ua-u-gap-12{gap:12px!important}.ua-u-gap-18{gap:18px!important}.ua-u-mt-6{margin-top:6px!important}.ua-u-mt-8{margin-top:8px!important}.ua-u-mt-14{margin-top:14px!important}.ua-u-mt-22{margin-top:22px!important}.ua-u-mt-30{margin-top:30px!important}.ua-u-mb-6{margin-bottom:6px!important}.ua-u-mt-neg-6{margin-top:-6px!important}.ua-u-my-14{margin-top:14px!important;margin-bottom:14px!important}.ua-u-fs-12{font-size:12px!important}.ua-u-fs-13{font-size:13px!important}.ua-u-fs-14{font-size:14px!important}.ua-u-fs-18{font-size:18px!important}.ua-u-fs-28{font-size:28px!important}.ua-u-op-70{opacity:.7!important}.ua-u-op-75{opacity:.75!important}.ua-u-op-80{opacity:.8!important}.ua-u-op-85{opacity:.85!important}.ua-u-rounded-8{border-radius:8px!important}.ua-u-status-pill{font-size:12px!important;padding:6px 10px!important;border-radius:999px!important;background:rgba(0,0,0,.06)!important}.ua-u-grid-2-gap18{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;margin-top:14px!important;align-items:center!important}.ua-u-minh-240{min-height:240px!important}.ua-u-w-40{width:40px!important}.ua-u-w-44{width:44px!important}.ua-u-w-70{width:70px!important}.ua-u-w-72{width:72px!important}.ua-u-w-80{width:80px!important}.ua-u-w-120{width:120px!important}.ua-u-w-140{width:140px!important}.ua-u-w-150{width:150px!important}.ua-u-w-160{width:160px!important}.ua-u-w-170{width:170px!important}.ua-u-w-190{width:190px!important}.ua-u-w-200{width:200px!important}.ua-u-w-220{width:220px!important}.ua-u-w-40p{width:40%!important}.ua-u-w-15p{width:15%!important}.ua-u-w-full{width:100%!important}.ua-u-maxw-140{max-width:140px!important}.ua-u-maxw-420{max-width:420px!important}.ua-u-minw-140{min-width:140px!important}.ua-u-minw-150{min-width:150px!important}.ua-u-minw-260{min-width:260px!important}.ua-u-lh-19{line-height:1.9!important}.ua-u-text-left{text-align:left!important}.ua-u-ellipsis-420{max-width:420px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.ua-u-iframe-preview{width:100%!important;height:80vh!important;border:0!important}.ua-u-frame-260{height:260px!important;overflow:hidden!important;background:#f8f9fa!important}.ua-u-frame-320{height:320px!important;overflow:hidden!important;background:#f8f9fa!important}.ua-u-iframe-260{width:100%!important;height:260px!important;border:0!important}.ua-u-iframe-320{width:100%!important;height:320px!important;border:0!important}.ua-speed-gauges{margin:14px 0!important}.ua-speed-gauge-card{width:320px;max-width:100%;text-align:center}.ua-speed-gauge-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:6px}.ua-speed-gauge-value{font-weight:900;font-size:28px}.ua-speed-gauge-scale{margin-top:-6px;display:flex;justify-content:space-between;font-size:12px;opacity:.7}.ua-sidebar-footnote{padding:10px 12px;font-size:12px;opacity:.75;border-top:1px solid rgba(255,255,255,.08)}
@media(max-width:760px){.ua-u-grid-2-gap18{grid-template-columns:1fr!important}}
.ua-u-w-0{width:0!important}.ua-cursor-pointer{cursor:pointer!important}
.ua-first-admin-shell{max-width:720px!important;margin-top:40px!important}.ua-public-brand-title{font-size:18px!important;font-weight:700!important}.ua-public-owner{font-weight:600!important}.ua-seed-message{font-family:Tahoma,Arial,sans-serif}.ua-seed-message a{color:inherit}.ua-u-maxw-720{max-width:720px!important}

body.ua-first-admin-page{
  margin:0 !important;
  min-height:100vh !important;
  overflow:hidden !important;
  color:#eef4ff !important;
  background:transparent !important;
}

body.ua-first-admin-page .ua-first-admin-shell{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
}

body.ua-first-admin-page .ua-first-admin-shell > .card{
  width:min(560px,96vw) !important;
  max-height:calc(100vh - 44px) !important;
  overflow:hidden !important;
  border-radius:20px !important;
  border:1px solid color-mix(in srgb,var(--ua-accent,#f3ba2f) 36%,transparent) !important;
  background:
    radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--ua-accent,#f3ba2f) 12%,transparent),transparent 38%),
    linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-modal,#081222) 92%,transparent),color-mix(in srgb,var(--ua-theme-page-bg,#020811) 82%,black 14%)) !important;
  color:var(--ua-ds-text,#eef4ff) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.58) !important;
  animation:uaSaPop .16s ease-out both;
}

body.ua-first-admin-page .card-header{
  min-height:46px !important;
  padding:10px 16px !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  background:rgba(3,10,20,.72) !important;
  color:var(--ua-ds-title,#fff) !important;
}

body.ua-first-admin-page .ua-public-brand-title{
  font-size:15px !important;
  font-weight:900 !important;
  color:color-mix(in srgb,var(--ua-accent-2,#ffd861) 72%,var(--ua-ds-title,#fff) 28%) !important;
}

body.ua-first-admin-page .ua-public-owner,
body.ua-first-admin-page .ua-u-op-85{
  font-size:12px !important;
  color:rgba(238,244,255,.72) !important;
}

body.ua-first-admin-page .card-body{
  padding:18px !important;
  color:var(--ua-ds-text,#eef4ff) !important;
  background:transparent !important;
}

body.ua-first-admin-page h5{
  margin:0 0 14px !important;
  font-size:17px !important;
  font-weight:950 !important;
  color:color-mix(in srgb,var(--ua-accent-2,#ffd861) 72%,var(--ua-ds-title,#fff) 28%) !important;
}

body.ua-first-admin-page label{
  margin:0 0 7px !important;
  color:color-mix(in srgb,var(--ua-accent-2,#ffd861) 72%,var(--ua-ds-title,#fff) 28%) !important;
  font-size:12px !important;
  font-weight:900 !important;
}

body.ua-first-admin-page .row{
  margin-left:-6px !important;
  margin-right:-6px !important;
}

body.ua-first-admin-page .row > [class*="col-"]{
  padding-left:6px !important;
  padding-right:6px !important;
}

body.ua-first-admin-page .form-control{
  height:42px !important;
  border-radius:12px !important;
  border:1px solid color-mix(in srgb,var(--ua-accent,#f3ba2f) 42%,transparent) !important;
  background:color-mix(in srgb,var(--ua-theme-input,#061d2a) 88%,white 10%) !important;
  color:var(--ua-theme-input-text,#eaf0ff) !important;
  box-shadow:none !important;
  font-size:14px !important;
  font-weight:800 !important;
}

body.ua-first-admin-page .form-control:focus{
  border-color:color-mix(in srgb,var(--ua-accent-2,#ffd861) 74%,white) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ua-accent,#f3ba2f) 18%,transparent) !important;
}

body.ua-first-admin-page hr{
  margin:14px 0 !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
}

body.ua-first-admin-page .btn-primary{
  height:42px !important;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(180deg,var(--ua-accent-2,#ffd861),var(--ua-accent,#f3ba2f)) !important;
  color:color-mix(in srgb,var(--ua-theme-page-bg,#020811) 86%,black 14%) !important;
  font-size:14px !important;
  font-weight:950 !important;
  box-shadow:none !important;
}

body.ua-first-admin-page .alert{
  border-radius:12px !important;
  padding:10px 12px !important;
  margin-bottom:12px !important;
  color:#fff !important;
  background:rgba(220,53,69,.26) !important;
  border:1px solid rgba(255,99,132,.52) !important;
  font-weight:800 !important;
}

body.ua-first-admin-page .text-muted{
  margin-top:12px !important;
  color:rgba(238,244,255,.56) !important;
  font-size:12px !important;
  text-align:center !important;
}


/* UA PHASE 5 EXTRACTED HEADER RUNTIME CSS START */
html{ font-size: var(--ua-font-size); }
    body, button, input, select, textarea, .btn, .form-control, .form-select, .table, .card, .navbar, .dropdown-menu {
      font-family: var(--ua-font-family) !important;
      font-weight: var(--ua-font-weight);
    }

    /* Global radius normalization */
    .card, .ua-topbar, .ua-search, .ua-pill, .ua-menu, .ua-sidebar, .ua-panel,
    .btn, .form-control, .form-select, .input-group-text, .table-responsive, .modal-content, .alert {
      border-radius: var(--ua-radius) !important;
    }

    .card, .btn, .form-control, .form-select, .input-group-text, .table-responsive, .alert, .modal-content,
    .ua-topbar, .ua-search, .ua-pill, .ua-menu, .ua-sidebar, .ua-item, .nav-link, .dropdown-menu {
      border-style: var(--ua-border-style) !important;
      border-width: var(--ua-border-width) !important;
    }

    .card, .table-responsive, .ua-topbar, .ua-search, .ua-pill, .ua-menu, .ua-sidebar, .modal-content {
      box-shadow: var(--ua-card-shadow) !important;
    }

    /* Density */
    body.ua-density-compact .card .card-body{ padding: .85rem; }
    body.ua-density-compact .ua-topbar{ padding: 10px 12px; }
    body.ua-density-compact .ua-search{ padding: 8px 12px; }
    body.ua-density-compact .table > :not(caption) > * > *{ padding: .45rem .55rem; }

    /* Sidebar modes */
    body.ua-sb-pinned .ua-sidebar{ width: var(--ua-sidebar-w) !important; transform:none !important; }
    body.ua-sb-compact .ua-sidebar{ width: 78px !important; }
    body.ua-sb-compact .ua-sb-name, body.ua-sb-compact .ua-sb-group-title, body.ua-sb-compact .ua-sb-item span{ display:none !important; }
    body.ua-sb-compact .ua-sb-item{ justify-content:center; }

    /* Embed pages inside iframes: remove duplicated headers/breadcrumbs/tags */
    html.ua-in-frame .ua-sb3,
    html.ua-in-frame .ua-sb-backdrop,
    html.ua-in-frame .ua-unified-shell-block,
    html.ua-in-frame .ua-shell-scroll-nav{
      display:none !important;
    }
    html.ua-in-frame body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main,
    html.ua-in-frame body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page{
      margin:0 !important;
      padding:0 !important;
      width:100% !important;
      max-width:none !important;
    }
    html.ua-in-frame body.ua-shell-chrome:not(.ua-page-dashboard) .content-wrapper{
      margin:0 !important;
      width:100% !important;
      max-width:none !important;
    }
    .ua-embed .content-header,
    .ua-embed .breadcrumb,
    .ua-embed .page-header,
    .ua-embed .ua-page-header,
    .ua-embed .ua-breadcrumb,
    .ua-embed .ua-crumbs,
    .ua-embed .ua-page-meta,
    .ua-embed .ua-lang,
    .ua-embed .ua-tech,
    .ua-embed .ua-filetag,
    .ua-embed .ua-page-tag,
    .ua-embed .ua-code-tag { display:none !important; }

    /* When embedding, tighten top spacing */
    .ua-embed .content-wrapper,
    .ua-embed .content { padding-top: 0 !important; margin-top: 0 !important; }
    .ua-embed h1:first-of-type,
    .ua-embed h2:first-of-type { margin-top: 0 !important; }


    /* UA subscriber-modal embed polish - aligned with subscribers page palette */
    .ua-embed body, body.ua-embed {
      background:linear-gradient(135deg, rgba(11,103,96,.96), rgba(7,77,74,.98)) !important;
      color:#f8fffd !important;
      scrollbar-color:rgba(45,212,191,.72) rgba(2,23,26,.55);
    }
    .ua-embed .content, .ua-embed .container, .ua-embed .container-fluid { max-width:none !important; width:100% !important; padding:12px !important; }
    .ua-embed .card, .ua-embed .box, .ua-embed .panel {
      border-radius:16px !important;
      border:1px solid rgba(153,246,228,.24) !important;
      background:linear-gradient(180deg,rgba(8,86,82,.94),rgba(5,56,59,.96)) !important;
      color:#f8fffd !important;
      box-shadow:0 12px 30px rgba(0,0,0,.18) !important;
      overflow:hidden;
    }
    .ua-embed .btn { border-radius:11px !important; font-weight:800 !important; }
    .ua-embed table { font-size:13px !important; color:#f8fffd !important; }
    .ua-embed .form-control, .ua-embed select, .ua-embed textarea {
      border-radius:12px !important;
      min-height:40px;
      background:rgba(4,52,56,.78) !important;
      color:#f8fffd !important;
      border-color:rgba(153,246,228,.28) !important;
    }


    /* Subscriber child modal palette: opt-in only via ua_sub_modal=1.
       This replaces the previous broad frame styling without sweeping all iframes. */
    body.ua-subscriber-modal-embed{
      background:linear-gradient(135deg,rgba(12,105,98,.98),rgba(7,75,73,.99)) !important;
      color:#f8fffd !important;
      overflow:auto !important;
      scrollbar-color:rgba(45,212,191,.72) rgba(2,23,26,.55) !important;
    }
    body.ua-subscriber-modal-embed .ua-shell.ua-embed,
    body.ua-subscriber-modal-embed .ua-main,
    body.ua-subscriber-modal-embed .ua-page,
    body.ua-subscriber-modal-embed .content-wrapper,
    body.ua-subscriber-modal-embed section.content,
    body.ua-subscriber-modal-embed .content,
    body.ua-subscriber-modal-embed .container,
    body.ua-subscriber-modal-embed .container-fluid{
      background:transparent !important;
      color:#f8fffd !important;
      box-shadow:none !important;
    }
    body.ua-subscriber-modal-embed .ua-shell.ua-embed{
      min-height:100vh !important;
      padding:14px !important;
    }
    body.ua-subscriber-modal-embed :is(.card,.box,.panel,.history-card,.modal-content,.accordion-item,.list-group-item,.table-responsive,.sa-card,.sa-card-body,.sa-summary,.sa-kpi,.ua-card){
      background:linear-gradient(180deg,rgba(9,91,87,.94),rgba(5,59,62,.96)) !important;
      border:1px solid rgba(153,246,228,.22) !important;
      color:#f8fffd !important;
      box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
    }
    body.ua-subscriber-modal-embed :is(.card-header,.box-header,.panel-heading,.modal-header,.modal-footer){
      background:rgba(2,38,43,.36) !important;
      border-color:rgba(153,246,228,.18) !important;
      color:#f8fffd !important;
    }
    body.ua-subscriber-modal-embed :is(.bg-white,.bg-light,.alert-light,.alert-secondary){
      background:linear-gradient(180deg,rgba(10,94,89,.90),rgba(6,70,70,.94)) !important;
      color:#f8fffd !important;
      border-color:rgba(153,246,228,.20) !important;
    }
    body.ua-subscriber-modal-embed :is(input,select,textarea,.form-control,.form-select){
      background:rgba(4,52,56,.82) !important;
      color:#f8fffd !important;
      border:1px solid rgba(153,246,228,.28) !important;
      box-shadow:none !important;
    }
    body.ua-subscriber-modal-embed :is(h1,h2,h3,h4,h5,b,strong,label,.form-label){color:#f8fffd !important;}
    body.ua-subscriber-modal-embed :is(.text-muted,.small){color:rgba(226,255,250,.82) !important;}
    body.ua-subscriber-modal-embed table,
    body.ua-subscriber-modal-embed .table{
      background:rgba(5,58,60,.76) !important;
      color:#f8fffd !important;
      border-color:rgba(153,246,228,.18) !important;
    }
    body.ua-subscriber-modal-embed table th,
    body.ua-subscriber-modal-embed table td,
    body.ua-subscriber-modal-embed .table th,
    body.ua-subscriber-modal-embed .table td{
      background:rgba(8,86,82,.60) !important;
      color:#f8fffd !important;
      border-color:rgba(153,246,228,.14) !important;
    }

    /* Optional per-page chrome hide (non-embed) */
    body.ua-hide-chrome :is(.content-header,.breadcrumb,.ua-page-meta,.ua-lang,.ua-tech,.ua-filetag){ display:none !important; }
    body.ua-hide-chrome .content{ padding-top:0 !important; }
  

    /* UI polish: consistent Arabic RTL forms */
    label { font-weight: 600; color: var(--ua-text); }
    .text-muted{ color: color-mix(in srgb, var(--ua-text) 62%, transparent) !important; }
    .form-control, .form-select, input[type="text"], input[type="number"], input[type="password"], input[type="date"], input[type="datetime-local"], textarea, select {
      border-radius: 10px;
      padding: .55rem .75rem;
      color: var(--ua-text);
      border-color: var(--ua-border);
    }
    .card, .table, .table td, .table th, .content-wrapper, .content, .nav-link, .dropdown-item, .btn, .alert, .small, p, span, div, h1, h2, h3, h4, h5, h6 {
      color: inherit;
    }
    .form-control:focus, .form-select:focus, textarea:focus {
      box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
    }
    .input-group-text { border-radius: 10px; }
    .card.compact .card-body { padding: 1rem; }
    .table td, .table th { vertical-align: middle; }
    .sidebar a, .nav a { white-space: nowrap; }
    .ua-close-strip{display:flex;justify-content:flex-end;align-items:center;margin:12px 0 4px}
    .ua-close-float{position:relative;z-index:20;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px;background:rgba(7,17,38,.94);color:#fff !important;text-decoration:none;border:1px solid rgba(255,214,94,.45);box-shadow:0 8px 18px rgba(0,0,0,.16)}
    .ua-close-float:hover{color:#fff !important;background:rgba(18,35,70,.98)}
    .ua-close-float i{font-size:14px}
    body.ua-guest .ua-close-strip{display:none !important;}
    @media (max-width: 768px){ .ua-close-strip{margin:10px 0 2px} .ua-close-float{padding:8px 12px} }


    /* Dashboard global stats topbar - clean dark shell, no white overlay */
    body.ua-authed .ua-topbar.ua-topbar-stats{
      min-height:0 !important;
      height:56px !important;
      margin-block:8px 6px !important;
      margin-inline-start:calc(var(--ua-sidebar-w) + var(--ua-sb-gap)) !important;
      margin-inline-end:16px !important;
      padding:8px 12px !important;
      display:flex !important;
      align-items:center !important;
      justify-content:space-between !important;
      overflow:hidden !important;
      background:linear-gradient(180deg,rgba(16,37,52,.96),rgba(7,18,31,.94)) !important;
      border:1px solid rgba(105,160,190,.20) !important;
      border-radius:15px !important;
      outline:0 !important;
      box-shadow:none !important;
      opacity:1 !important;
      filter:none !important;
    }
    body.ua-authed .ua-topbar.ua-topbar-stats::before,
    body.ua-authed .ua-topbar.ua-topbar-stats::after{
      display:none !important;
      content:none !important;
    }
    body.ua-authed .ua-topbar-statsbar{
      width:100% !important;
      height:40px !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      display:flex !important;
      flex-direction:row !important;
      align-items:center !important;
      justify-content:space-between !important;
      gap:7px !important;
      flex-wrap:nowrap !important;
      overflow:hidden !important;
      direction:rtl !important;
      background:transparent !important;
      border:0 !important;
      box-shadow:none !important;
      opacity:1 !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip{
      height:36px !important;
      min-height:36px !important;
      flex:1 1 0 !important;
      min-width:0 !important;
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      gap:6px !important;
      padding:0 10px !important;
      color:#eaf7ff !important;
      background:rgba(255,255,255,.055) !important;
      border:0 !important;
      box-shadow:none !important;
      border-radius:10px !important;
      font-size:13.95px !important;
      font-weight:850 !important;
      white-space:nowrap !important;
      opacity:1 !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip strong{
      color:#fff !important;
      font-weight:950 !important;
      font-size:14px !important;
      line-height:1 !important;
      margin-inline-start:3px !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-ico{
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      width:auto !important;
      height:auto !important;
      min-width:0 !important;
      padding:0 !important;
      margin:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      color:#62dfff !important;
      font-size:14px !important;
      line-height:1 !important;
      opacity:1 !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip--brand{
      min-width:0 !important;
      flex:1.45 1 0 !important;
      height:38px !important;
      padding:0 16px !important;
      background:rgba(24,148,166,.18) !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip--brand span:not(.nocx-stat-ico){
      font-size:14.5px !important;
      font-weight:950 !important;
      letter-spacing:0 !important;
    }
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip.is-green .nocx-stat-ico{color:#58e6af !important;}
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip.is-red .nocx-stat-ico{color:#ff6f88 !important;}
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip.is-purple .nocx-stat-ico{color:#a995ff !important;}
    body.ua-authed .ua-topbar-statsbar .nocx-stat-chip.is-yellow .nocx-stat-ico{color:#ffd36a !important;}

    /* Dashboard stats are rendered inside dashboard.php so their width matches the dashboard frame exactly */
    body.ua-authed .ua-topbar.ua-topbar-stats{
      height:0 !important; min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; overflow:hidden !important; background:transparent !important; box-shadow:none !important;
    }
    body.ua-authed .ua-topbar-empty{
      min-height:0 !important;
      height:0 !important;
      margin:0 !important;
      padding:0 !important;
      border:0 !important;
      box-shadow:none !important;
      background:transparent !important;
      overflow:hidden !important;
    }

    html[dir="ltr"] body.ua-authed .ua-topbar.ua-topbar-stats{
      margin-inline-start:16px !important;
      margin-inline-end:calc(var(--ua-sidebar-w) + var(--ua-sb-gap)) !important;
    }
    @media (max-width: 900px){
      body.ua-authed .ua-topbar.ua-topbar-stats,
      html[dir="ltr"] body.ua-authed .ua-topbar.ua-topbar-stats{
        margin-inline-start:12px !important;
        margin-inline-end:12px !important;
      }
    }

    /* ===== Unified program shell v2: normal pages only, dashboard untouched ===== */
    html:has(body.ua-shell-chrome:not(.ua-page-dashboard)),
    body.ua-shell-chrome:not(.ua-page-dashboard){
      scrollbar-width:none;
    }
    html:has(body.ua-shell-chrome:not(.ua-page-dashboard))::-webkit-scrollbar,
    body.ua-shell-chrome:not(.ua-page-dashboard)::-webkit-scrollbar{
      width:0!important;height:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard){
      --ua-shell-radius:13px;
      --ua-shell-top-gap:8px;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:calc(var(--ua-sidebar-w) + var(--ua-sb-gap))!important;
      margin-inline-end:16px!important;
      direction:rtl;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:16px!important;
      margin-inline-end:calc(var(--ua-sidebar-w) + var(--ua-sb-gap))!important;
    }
    /* Unified stats bar for all normal pages: same geometry as the dashboard statsbar. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
      height:46px!important;
      min-height:46px!important;
      margin-top:8px!important;
      margin-bottom:6px!important;
      padding:6px 10px!important;
      display:grid!important;
      grid-template-columns:1.32fr 1.02fr 1.08fr 1.04fr .96fr 1.04fr .86fr .86fr .88fr .62fr!important;
      align-items:center!important;
      gap:6px!important;
      direction:rtl!important;
      overflow:visible!important;
      border-radius:9px!important;
      border:1px solid rgba(105,160,190,.20)!important;
      background:linear-gradient(180deg,rgba(16,37,52,.96),rgba(7,18,31,.94))!important;
      box-shadow:none!important;
      position:relative!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats::before{
      content:""!important;
      position:absolute!important;
      left:12px!important;
      right:12px!important;
      bottom:-1px!important;
      height:1px!important;
      pointer-events:none!important;
      background:linear-gradient(90deg,transparent 0%,rgba(255,132,31,.46) 18%,rgba(255,214,89,.82) 50%,rgba(255,102,31,.40) 82%,transparent 100%)!important;
      box-shadow:0 0 10px rgba(255,176,45,.24)!important;
      opacity:.72!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats > *{min-width:0!important;max-width:none!important;box-sizing:border-box!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{
      width:100%!important;
      height:34px!important;
      min-height:34px!important;
      min-width:0!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      gap:5px!important;
      padding:0 7px!important;
      color:#eaf7ff!important;
      background:rgba(255,255,255,.055)!important;
      border:0!important;
      box-shadow:none!important;
      border-radius:7px!important;
      font-size:12.2px!important;
      font-weight:850!important;
      white-space:nowrap!important;
      overflow:hidden!important;
      position:relative!important;
      z-index:1!important;
      text-decoration:none!important;
      list-style:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
      display:inline-flex!important;
      background:rgba(24,148,166,.18)!important;
      border:1px solid rgba(243,186,47,.10)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip span:not(.nocx-stat-ico),
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-name{
      min-width:0!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand span:not(.nocx-stat-ico){font-weight:950!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{
      flex:0 0 auto!important;
      color:#fff!important;
      font-weight:950!important;
      font-size:13.8px!important;
      line-height:1!important;
      margin-inline-start:2px!important;
      font-variant-numeric:tabular-nums!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico{
      flex:0 0 auto!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      width:13px!important;
      height:13px!important;
      min-width:13px!important;
      padding:0!important;
      margin:0!important;
      border:0!important;
      border-radius:0!important;
      background:transparent!important;
      box-shadow:none!important;
      color:#62dfff!important;
      font-size:13px!important;
      line-height:1!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .is-green .nocx-stat-ico{color:#58e6af!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .is-red .nocx-stat-ico{color:#ff6f88!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .is-purple .nocx-stat-ico{color:#a995ff!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .is-yellow .nocx-stat-ico{color:#ffd36a!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-traffic-chip strong{min-width:54px!important;text-align:center!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip{
      position:relative!important;
      z-index:90!important;
      overflow:visible!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary{
      width:100%!important;
      list-style:none!important;
      cursor:pointer!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary::-webkit-details-marker{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip[open]{z-index:3400!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico--bell{position:relative!important;overflow:visible!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-badge{
      position:absolute!important;top:-8px!important;right:-9px!important;min-width:15px!important;height:15px!important;padding:0 4px!important;border-radius:999px!important;
      display:inline-flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(180deg,#ffda67,#ff8e2d)!important;color:#1b1000!important;
      border:1px solid rgba(255,242,160,.72)!important;box-shadow:0 0 10px rgba(255,184,58,.55)!important;font-size:9px!important;font-style:normal!important;font-weight:950!important;line-height:1!important;pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-badge.is-zero{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-menu-panel{
      position:absolute!important;
      top:calc(100% + 8px)!important;
      inset-inline-end:0!important;
      border-radius:14px!important;
      border:1px solid rgba(105,160,190,.26)!important;
      background:linear-gradient(180deg,rgba(8,22,36,.99),rgba(5,14,25,.99))!important;
      box-shadow:0 18px 36px rgba(0,0,0,.42),0 0 28px rgba(43,180,210,.10)!important;
      z-index:3450!important;
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover{width:min(430px, calc(100vw - 64px))!important;max-height:360px!important;padding:10px!important;overflow:hidden!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip[open] .nocx-alert-popover{display:block!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover__head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:3px 4px 9px!important;border-bottom:1px solid rgba(255,255,255,.07)!important;color:#eef8ff!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover__head strong{display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:13px!important;font-weight:950!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover__head small{color:rgba(226,240,255,.62)!important;font-size:11.5px!important;white-space:nowrap!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-feed{height:auto!important;max-height:292px!important;overflow:auto!important;padding:10px 2px 0!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-empty{padding:18px 10px!important;text-align:center!important;color:rgba(230,242,255,.68)!important;font-size:12px!important;font-weight:850!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line{position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;padding:10px 48px 10px 10px!important;margin-bottom:8px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.09)!important;background:rgba(255,255,255,.045)!important;color:#edf8ff!important;text-decoration:none!important;}
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line{padding:10px 10px 10px 48px!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.warn{border-color:rgba(255,211,106,.22)!important;background:rgba(255,211,106,.07)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.danger{border-color:rgba(255,111,136,.24)!important;background:rgba(255,111,136,.07)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.info{border-color:rgba(98,223,255,.22)!important;background:rgba(98,223,255,.07)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__main{display:grid!important;gap:3px!important;min-width:0!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__title{font-size:12.5px!important;font-weight:950!important;color:#fff!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__text{font-size:11.5px!important;font-weight:800!important;color:rgba(232,244,255,.74)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;border-radius:999px!important;background:rgba(255,216,98,.16)!important;color:#ffd96a!important;border:1px solid rgba(255,216,98,.22)!important;font-weight:950!important;margin-inline-end:6px!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close{position:absolute!important;inset-inline-start:12px!important;top:50%!important;transform:translateY(-50%)!important;width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;border:0!important;border-radius:7px!important;background:rgba(255,255,255,.055)!important;color:rgba(232,244,255,.86)!important;font-size:0!important;line-height:0!important;overflow:hidden!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::before,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::after{content:""!important;position:absolute!important;left:50%!important;top:50%!important;width:11px!important;height:1.7px!important;border-radius:2px!important;background:currentColor!important;transform-origin:center!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::before{transform:translate(-50%,-50%) rotate(45deg)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::after{transform:translate(-50%,-50%) rotate(-45deg)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close:hover{background:#e81123!important;color:#fff!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip{position:relative!important;z-index:120!important;overflow:visible!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip>summary{cursor:pointer!important;gap:5px!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip>summary::-webkit-details-marker{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip .nocx-user-avatar{width:22px!important;height:22px!important;min-width:22px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:rgba(96,221,255,.16)!important;color:#eaffff!important;font-size:11px!important;font-weight:950!important;border:1px solid rgba(112,225,255,.18)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip .nocx-user-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-caret{opacity:.78!important;font-size:11px!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-menu-panel{width:224px!important;padding:8px!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip[open] .nocx-user-menu-panel{display:block!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-menu-panel a{height:34px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:9px!important;border-radius:10px!important;color:#eaf7ff!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-menu-panel a:hover{background:rgba(98,223,255,.12)!important;color:#fff!important;}
    @media (max-width:1280px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{grid-template-columns:1.16fr 1fr 1fr 1fr .92fr 1fr .82fr .82fr .84fr .56fr!important;gap:5px!important;padding-inline:7px!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{font-size:11.4px!important;padding-inline:5px!important;gap:4px!important;}
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{font-size:13.95px!important;}
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico{font-size:11.5px!important;width:12px!important;min-width:12px!important;}
    }

    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-gold-line{
      height:1px!important;
      margin-top:5px!important;
      margin-bottom:5px!important;
      border:0!important;
      border-radius:999px!important;
      background:linear-gradient(90deg,transparent,rgba(255,195,67,.25),rgba(255,217,111,.82),rgba(255,128,48,.22),transparent)!important;
      box-shadow:0 0 16px rgba(255,184,55,.18)!important;
      pointer-events:none!important;
    }

    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar{
      height:42px!important;
      min-height:42px!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:12px!important;
      margin-bottom:8px!important;
      padding:0 13px!important;
      border-radius:var(--ua-shell-radius)!important;
      border:1px solid var(--ua-ds-line)!important;
      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) 96%,white 4%),
          color-mix(in srgb,var(--ua-theme-windowbar) 92%,black 8%)
        )!important;
      color:var(--ua-ds-title)!important;
      box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ua-ds-title) 7%,transparent)!important;
      overflow:hidden!important;
    }
    /* لا نعرض اسم الصفحة الحالية داخل شريط النوافذ لأنه يكرر التبويب ويدفع ترتيبه. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__title{
      display:none!important;
      width:0!important;
      min-width:0!important;
      max-width:0!important;
      flex:0 0 0!important;
      padding:0!important;
      margin:0!important;
      overflow:hidden!important;
      pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__title i{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages{
      flex:1 1 auto!important;
      min-width:0!important;
      display:flex!important;
      align-items:center!important;
      justify-content:flex-start!important;
      direction:rtl!important;
      gap:6px!important;
      overflow-x:auto!important;
      overflow-y:hidden!important;
      scrollbar-width:none!important;
      padding-block:4px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages::-webkit-scrollbar{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab{
      height:28px!important;
      min-width:112px!important;
      max-width:190px!important;
      padding:0 9px!important;
      border-radius:9px!important;
      display:inline-flex!important;
      align-items:center!important;
      gap:7px!important;
      border:1px solid var(--ua-ds-line)!important;
      background:color-mix(in srgb,var(--ua-theme-input) 78%,transparent)!important;
      color:var(--ua-ds-text)!important;
      font-size:12px!important;
      font-weight:850!important;
      text-decoration:none!important;
      white-space:nowrap!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      flex:0 0 auto!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab.is-current{
      background:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-input) 86%)!important;
      color:var(--ua-ds-title)!important;
      border-color:color-mix(in srgb,var(--ua-accent) 40%,var(--ua-ds-line))!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab.is-minimized{
      opacity:.80!important;
      border-color:color-mix(in srgb,var(--ua-sem-warning) 38%,var(--ua-ds-line))!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__controls{
      display:inline-flex!important;
      align-items:center!important;
      gap:7px!important;
      flex:0 0 auto!important;
      direction:ltr!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn{
      width:28px!important;
      height:28px!important;
      border:0!important;
      border-radius:7px!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;
      box-shadow:none!important;
      cursor:pointer!important;
      padding:0!important;
      line-height:1!important;
      transition:background .14s ease,color .14s ease!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn:hover{
      background:color-mix(in srgb,var(--ua-accent) 18%,var(--ua-theme-input))!important;
      color:var(--ua-ds-title)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn--close:hover{
      background:var(--ua-sem-danger)!important;
      color:var(--ua-sem-on-accent)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn i{font-size:11px!important;line-height:1!important;}

    body.ua-shell-chrome:not(.ua-page-dashboard).ua-page-window-min .ua-page>*:not(.ua-unified-shell-block):not(.ua-page-windowbar){
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard).ua-page-window-max .ua-main{
      margin-inline-start:0!important;
      margin-inline-end:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard).ua-page-window-max .ua-unified-shell-block{
      margin-inline-start:16px!important;
      margin-inline-end:16px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .content-header{
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-close-strip,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-close-float,
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaUnifiedFooter,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-footer{
      display:none!important;
    }

    body.ua-shell-plain .ua-sb3,
    body.ua-shell-plain .ua-sidebar,
    body.ua-shell-plain .ua-sb-backdrop,
    body.ua-shell-plain .ua-unified-shell-block,
    body.ua-shell-plain .ua-shell-scroll-nav{
      display:none!important;
    }
    body.ua-shell-plain .ua-main{
      margin:0!important;
      width:100%!important;
      max-width:100%!important;
    }
    body.ua-shell-plain .ua-page{
      padding:0!important;
      margin:0!important;
      max-width:none!important;
    }

    /* Dashboard-like golden page navigator, shared by all normal pages */
    html:has(body.ua-shell-chrome:not(.ua-page-dashboard)){
      scrollbar-width:none!important;
    }
    html:has(body.ua-shell-chrome:not(.ua-page-dashboard))::-webkit-scrollbar,
    body.ua-shell-chrome:not(.ua-page-dashboard)::-webkit-scrollbar{
      width:0!important;height:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      position:fixed!important;
      top:0!important;
      bottom:0!important;
      right:calc(var(--ua-sidebar-w) + 3px)!important;
      width:24px!important;
      z-index:2600!important;
      display:block!important;
      border:0!important;
      border-radius:0!important;
      pointer-events:auto!important;
      opacity:1!important;
      touch-action:none!important;
      background:linear-gradient(180deg,rgba(94,58,10,.06) 0%,rgba(166,111,22,.20) 16%,rgba(219,151,42,.32) 50%,rgba(166,111,22,.20) 84%,rgba(94,58,10,.06) 100%)!important;
      box-shadow:0 0 10px rgba(255,180,58,.16), inset 0 0 12px rgba(255,205,96,.10)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar::before{
      content:"";
      position:absolute!important;
      left:50%!important;
      top:0!important;
      bottom:0!important;
      transform:translateX(-50%);
      width:18px!important;
      border-radius:0!important;
      background:linear-gradient(180deg,rgba(255,221,128,.10),rgba(245,178,62,.34),rgba(169,101,22,.24),rgba(245,178,62,.34),rgba(255,221,128,.10))!important;
      box-shadow:0 0 14px rgba(255,190,66,.18), inset 0 0 10px rgba(255,226,143,.10)!important;
      pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar__thumb{
      position:absolute!important;
      left:50%!important;
      right:auto!important;
      top:0!important;
      margin:0!important;
      transform:translateX(-50%) translateY(0);
      z-index:2!important;
      width:4px!important;
      min-height:120px!important;
      border:0!important;
      border-radius:0!important;
      cursor:grab!important;
      background:linear-gradient(180deg,rgba(255,235,160,.98),rgba(255,197,69,.98),rgba(210,132,28,.98),rgba(255,215,112,.96))!important;
      box-shadow:0 0 5px rgba(255,210,94,.55),0 0 13px rgba(222,145,35,.32),0 0 1px rgba(255,244,198,.90) inset!important;
      animation:nocxGoldScrollGlow 2.6s ease-in-out infinite!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar__thumb:active{cursor:grabbing!important;}
    @keyframes nocxGoldScrollGlow{
      0%,100%{filter:brightness(1.02); box-shadow:0 0 5px rgba(255,210,94,.55),0 0 13px rgba(222,145,35,.32),0 0 1px rgba(255,244,198,.90) inset;}
      50%{filter:brightness(1.16); box-shadow:0 0 7px rgba(255,222,112,.70),0 0 17px rgba(238,159,42,.44),0 0 2px rgba(255,246,205,.96) inset;}
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      right:auto!important;
      left:calc(var(--ua-sidebar-w) + 3px)!important;
    }

    /* In-page window manager: real panes/iframes must consume the full workspace.
       Without these rules the browser keeps iframe's default 300px width,
       so opened pages appear squeezed at the right side of the screen. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-wm-stage,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-wm-pane{
      display:block!important;
      width:100%!important;
      max-width:100%!important;
      min-width:0!important;
      box-sizing:border-box!important;
      position:relative!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-wm-pane[hidden],
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-wm-pane.is-minimized{
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-wm-iframe{
      display:block!important;
      width:100%!important;
      max-width:100%!important;
      min-width:0!important;
      min-height:var(--ua-contract-workspace-h,calc(100dvh - 130px))!important;
      border:0!important;
      background:transparent!important;
      border-radius:13px!important;
      overflow:hidden!important;
      box-sizing:border-box!important;
    }

    /* In-page window manager: tabs stay alive in the background instead of reloading. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-tab-panel{
      width:100%!important;
      max-width:100%!important;
      min-width:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-tab-panel:not(.is-active){
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-frame-panel{
      min-height:calc(100vh - 118px)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-tab-frame{
      display:block!important;
      width:100%!important;
      min-height:calc(100vh - 124px)!important;
      border:0!important;
      border-radius:13px!important;
      background:transparent!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab{
      appearance:none!important;
      -webkit-appearance:none!important;
      cursor:pointer!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab.is-dirty::after{
      content:"";
      width:6px;height:6px;border-radius:50%;background:#ffd36a;box-shadow:0 0 8px rgba(255,211,106,.55);flex:0 0 6px;
    }
    @media (max-width:900px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{display:none!important;}
      html:has(body.ua-shell-chrome:not(.ua-page-dashboard)),
      body.ua-shell-chrome:not(.ua-page-dashboard){scrollbar-width:auto!important;}
    }

    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages::before{display:none!important;content:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab i{
      font-size:11px!important;
      opacity:.82!important;
      flex:0 0 auto!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab span{
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
      min-width:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab .ua-page-tab__close{
      width:16px!important;
      height:16px!important;
      min-width:16px!important;
      flex:0 0 16px!important;
      border-radius:999px!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      margin-inline-start:3px!important;
      color:var(--ua-sem-muted)!important;
      font-size:12px!important;
      line-height:1!important;
      background:transparent!important;
      opacity:.66!important;
      overflow:visible!important;
      text-overflow:clip!important;
      transition:opacity .14s ease, background .14s ease, color .14s ease!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab:hover .ua-page-tab__close{opacity:.96!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab .ua-page-tab__close:hover{color:#fff!important;background:rgba(232,17,35,.82)!important;}

    @media (max-width:900px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
        margin-inline-start:12px!important;
        margin-inline-end:12px!important;
      }
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats{
        overflow:auto!important;
      }
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip{
        flex:0 0 auto!important;
        min-width:130px!important;
      }
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav{display:none!important;}
    }


    /* 2026-05-07 normal pages navigator correction: single working handle, hidden when page does not need scrolling. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav.is-hidden{
      display:none!important;
      pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav{
      right:calc(var(--ua-sidebar-w) + 3px)!important;
      left:auto!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav{
      right:auto!important;
      left:calc(var(--ua-sidebar-w) + 3px)!important;
    }


    /* 2026-05-07 final: keep golden page navigator beside content only,
       never above the stats/window bars. Slightly slimmer bar and reserved width. */
    body.ua-shell-chrome:not(.ua-page-dashboard){
      --ua-shell-gold-top:116px;
      --ua-shell-gold-w:18px;
      --ua-shell-gold-gap:7px;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:calc(var(--ua-sidebar-w) + var(--ua-shell-gold-w) + var(--ua-shell-gold-gap))!important;
      margin-inline-end:14px!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:14px!important;
      margin-inline-end:calc(var(--ua-sidebar-w) + var(--ua-shell-gold-w) + var(--ua-shell-gold-gap))!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav{
      top:var(--ua-shell-gold-top)!important;
      bottom:12px!important;
      width:var(--ua-shell-gold-w)!important;
      right:calc(var(--ua-sidebar-w) + 4px)!important;
      z-index:80!important;
      border-radius:0!important;
      overflow:hidden!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar,
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav{
      right:auto!important;
      left:calc(var(--ua-sidebar-w) + 4px)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar::before,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav::before{
      width:12px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar__thumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-thumb{
      width:3px!important;
      min-height:92px!important;
    }

  

    /* 2026-05-07 final navigator length: same position, reaches page bottom, hidden when not needed. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav.is-hidden,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar.is-hidden{
      display:none!important;
      pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      top:var(--ua-shell-gold-top,116px)!important;
      bottom:0!important;
      height:auto!important;
      width:var(--ua-shell-gold-w,18px)!important;
      right:calc(var(--ua-sidebar-w) + 4px)!important;
      z-index:80!important;
      overflow:hidden!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav,
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav,
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      right:auto!important;
      left:calc(var(--ua-sidebar-w) + 4px)!important;
    }


    /* 2026-05-07 real centered golden grip: keep handle in the exact center of the rail width. */
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollThumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav .ua-shell-scroll-thumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar .nocx-gold-scrollbar__thumb{
      width:3px!important;
      left:calc((100% - 3px) / 2)!important;
      right:auto!important;
      inset-inline-start:auto!important;
      inset-inline-end:auto!important;
      margin:0!important;
      transform:translateY(0px)!important;
      transform-origin:50% 0!important;
    }


    /* 2026-05-07 scrollbar correction: keep rail below the shell bars and center grip horizontally. */
    body.ua-shell-chrome:not(.ua-page-dashboard){
      --ua-shell-gold-top:116px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      top:var(--ua-shell-gold-top,116px)!important;
      bottom:0!important;
      height:auto!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollThumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav .ua-shell-scroll-thumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar .nocx-gold-scrollbar__thumb{
      left:50%!important;
      right:auto!important;
      inset-inline-start:auto!important;
      inset-inline-end:auto!important;
      margin:0!important;
      transform:translateX(-50%) translateY(0px)!important;
      transform-origin:50% 0!important;
    }


    /* 2026-05-07 final stable thumb centering: use top for vertical motion and margin centering for horizontal alignment. */
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollThumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav .ua-shell-scroll-thumb,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar .nocx-gold-scrollbar__thumb{
      width:3px!important;
      left:50%!important;
      right:auto!important;
      margin-left:-1.5px!important;
      margin-right:0!important;
      inset-inline-start:auto!important;
      inset-inline-end:auto!important;
      transform:none!important;
      top:0!important;
    }




    /* 2026-05-09 final spacing pass: intrinsic stats chips + fixed user chip + flexible company name. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
      grid-template-columns:minmax(96px,1fr) max-content max-content max-content max-content max-content max-content max-content max-content 150px!important;
      gap:5px!important;
      padding:6px 9px!important;
      overflow:visible!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats > *{
      min-width:0!important;
      width:auto!important;
      max-width:none!important;
      justify-self:stretch!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{
      width:auto!important;
      max-width:none!important;
      min-width:max-content!important;
      height:34px!important;
      padding:0 6px!important;
      gap:4px!important;
      font-size:11.9px!important;
      line-height:1!important;
      overflow:visible!important;
      text-overflow:clip!important;
      white-space:nowrap!important;
      justify-content:center!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip span:not(.nocx-stat-ico){
      flex:0 0 auto!important;
      min-width:0!important;
      max-width:none!important;
      overflow:visible!important;
      text-overflow:clip!important;
      white-space:nowrap!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{
      font-size:13.2px!important;
      margin-inline-start:2px!important;
      white-space:nowrap!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico{
      width:12px!important;
      min-width:12px!important;
      height:12px!important;
      font-size:12.2px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
      width:100%!important;
      min-width:0!important;
      max-width:100%!important;
      padding:0 10px!important;
      justify-content:center!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand span:not(.nocx-stat-ico){
      flex:1 1 auto!important;
      min-width:0!important;
      max-width:100%!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
      text-align:center!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-traffic-chip{
      min-width:78px!important;
      padding-inline:7px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-traffic-chip strong{
      min-width:52px!important;
      margin-inline-start:0!important;
      text-align:center!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip{
      width:150px!important;
      min-width:150px!important;
      max-width:150px!important;
      justify-self:stretch!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-chip>summary{
      width:150px!important;
      min-width:150px!important;
      max-width:150px!important;
      padding:0 9px!important;
      gap:6px!important;
      justify-content:center!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-name{
      flex:1 1 auto!important;
      min-width:0!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
      text-align:center!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip>summary{
      width:auto!important;
      min-width:max-content!important;
    }
    @media (max-width:1280px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
        grid-template-columns:minmax(74px,1fr) max-content max-content max-content max-content max-content max-content max-content max-content 136px!important;
        gap:4px!important;
        padding-inline:7px!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{
        font-size:11.2px!important;
        padding-inline:5px!important;
        gap:3px!important;
      }
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{font-size:12.4px!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:136px!important;
        min-width:136px!important;
        max-width:136px!important;
      }
    }


    /* 2026-05-09 precision tune: keep company flexible + user fixed, enlarge only real stat cards by 18%. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand){
      height:38px!important;
      min-height:38px!important;
      padding:0 8.05px!important;
      gap:5.05px!important;
      font-size:13.95px!important;
      border-radius:8.45px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand) strong{
      font-size:15.55px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico{
      width:14.4px!important;
      min-width:14.4px!important;
      height:14.4px!important;
      font-size:14.55px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-traffic-chip{
      min-width:91px!important;
      padding-inline:8.55px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-traffic-chip strong{
      min-width:61.5px!important;
    }
    @media (max-width:1280px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand){
        height:34px!important;
        min-height:34px!important;
        font-size:12.3px!important;
        padding-inline:5.55px!important;
        gap:3.4px!important;
      }
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand) strong{font-size:13.95px!important;}
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand) .nocx-stat-ico{font-size:12.9px!important;width:13.45px!important;min-width:13.45px!important;height:13.45px!important;}
    }


    /* 2026-05-09 height alignment pass: keep 18% widths, unify chip heights, center inside a slightly taller lower bar. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
      min-height:54px!important;
      padding:7px 9px 10px!important;
      align-items:center!important;
      row-gap:0!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{
      height:38px!important;
      min-height:38px!important;
      max-height:38px!important;
      align-items:center!important;
      line-height:1!important;
      box-sizing:border-box!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
      height:38px!important;
      min-height:38px!important;
      max-height:38px!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{
      height:38px!important;
      min-height:38px!important;
      max-height:38px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-avatar,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-avatar{
      width:25px!important;
      min-width:25px!important;
      height:25px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip span,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-user-name{
      line-height:1!important;
      align-self:center!important;
    }
    @media (max-width:1280px){
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
        min-height:50px!important;
        padding:6px 7px 9px!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,
      body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip--brand{
        height:36px!important;
        min-height:36px!important;
        max-height:36px!important;
      }
    }



    /* 2026-05-09 alert dropdown compact rows: one clean line + Windows 11 close + golden separators. */
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover{
      width:min(405px, calc(100vw - 64px))!important;
      max-height:315px!important;
      padding:8px 10px!important;
      border-radius:12px!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-popover__head{
      padding:2px 3px 7px!important;
      border-bottom:1px solid rgba(243,186,47,.28)!important;
      box-shadow:0 8px 16px rgba(243,186,47,.035)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-feed{
      max-height:255px!important;
      padding:4px 0 0!important;
      overflow:auto!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.warn,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.danger,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line.info{
      position:relative!important;
      display:flex!important;
      align-items:center!important;
      min-height:34px!important;
      height:34px!important;
      gap:7px!important;
      margin:0!important;
      padding-block:0!important;
      padding-inline-start:0!important;
      padding-inline-end:0!important;
      padding-left:34px!important;
      padding-right:10px!important;
      border:0!important;
      border-radius:0!important;
      background:transparent!important;
      box-shadow:none!important;
      color:#edf8ff!important;
      text-decoration:none!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line::after{
      content:""!important;
      position:absolute!important;
      inset-inline:8px!important;
      bottom:0!important;
      height:1px!important;
      border-radius:999px!important;
      background:linear-gradient(90deg,transparent,rgba(243,186,47,.22),rgba(255,220,112,.88),rgba(243,186,47,.22),transparent)!important;
      box-shadow:0 0 9px rgba(255,198,70,.35)!important;
      pointer-events:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line:last-child::after{display:none!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__main{
      flex:1 1 auto!important;
      min-width:0!important;
      display:flex!important;
      align-items:center!important;
      gap:7px!important;
      overflow:hidden!important;
      white-space:nowrap!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__count{
      flex:0 0 auto!important;
      min-width:22px!important;
      height:18px!important;
      padding:0 6px!important;
      margin:0!important;
      border:1px solid rgba(255,216,98,.20)!important;
      border-radius:999px!important;
      background:rgba(255,216,98,.09)!important;
      color:#ffd96a!important;
      box-shadow:none!important;
      font-size:11px!important;
      font-weight:950!important;
      line-height:18px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__title{
      flex:0 1 auto!important;
      max-width:42%!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
      font-size:12px!important;
      font-weight:950!important;
      line-height:1!important;
      color:#fff8d6!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__text{
      flex:1 1 auto!important;
      min-width:0!important;
      overflow:hidden!important;
      text-overflow:ellipsis!important;
      white-space:nowrap!important;
      font-size:11.5px!important;
      font-weight:800!important;
      line-height:1!important;
      color:rgba(232,244,255,.78)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close{
      position:absolute!important;
      inset-inline-start:auto!important;
      inset-inline-end:auto!important;
      left:6px!important;
      right:auto!important;
      top:50%!important;
      transform:translateY(-50%)!important;
      width:24px!important;
      min-width:24px!important;
      height:24px!important;
      padding:0!important;
      margin:0!important;
      border:0!important;
      border-radius:6px!important;
      background:transparent!important;
      color:rgba(232,244,255,.82)!important;
      box-shadow:none!important;
      font-size:0!important;
      line-height:0!important;
      overflow:hidden!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      cursor:pointer!important;
      transition:background .14s ease,color .14s ease!important;
      z-index:2!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::before,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::after{
      content:""!important;
      position:absolute!important;
      left:50%!important;
      top:50%!important;
      width:10px!important;
      height:1.6px!important;
      border-radius:2px!important;
      background:currentColor!important;
      transform-origin:center!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::before{transform:translate(-50%,-50%) rotate(45deg)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close::after{transform:translate(-50%,-50%) rotate(-45deg)!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-alert-line__close:hover{background:#e81123!important;color:#fff!important;}
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-empty{
      padding:14px 8px!important;
      font-size:12px!important;
    }


    /* 2026-05-11 language layout guard v4:
       Language translation must not flip the project geometry.
       The shell/sidebar/dashboard remain RTL; only readable English text is translated. */
    body.ua-lang-en :where(input, textarea){ direction:ltr; }
    body.ua-lang-en :where(.exa-field-input, .form-control[type="text"], .form-control[type="email"], .form-control[type="password"], input[name="user"], input[name="username"]){ text-align:left; }


    /* ===== 2026-05-19 shell geometry normalization =====
       تنظيم المساحات فقط: توحيد ارتفاع شريط الإحصاء وشريط النوافذ،
       تقليل الهوامش مع السايدبار والطرف المقابل، وجعل Workspace هو مكان التمرير. */
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard){
      overflow:hidden!important;
      --ua-shell-edge-gap:6px;
      --ua-shell-bar-h:54px;
      --ua-shell-bar-gap:5px;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:calc(var(--ua-sidebar-w) + var(--ua-shell-edge-gap,6px))!important;
      margin-inline-end:var(--ua-shell-edge-gap,6px)!important;
      width:auto!important;
      max-width:none!important;
      transform:none!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block{
      margin-inline-start:var(--ua-shell-edge-gap,6px)!important;
      margin-inline-end:calc(var(--ua-sidebar-w) + var(--ua-shell-edge-gap,6px))!important;
      width:auto!important;
      max-width:none!important;
      transform:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar{
      height:var(--ua-shell-bar-h,54px)!important;
      min-height:var(--ua-shell-bar-h,54px)!important;
      max-height:var(--ua-shell-bar-h,54px)!important;
      box-sizing:border-box!important;
      border-radius:10px!important;
      margin-bottom:var(--ua-shell-bar-gap,5px)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-shell-block.ua-unified-stats{
      margin-top:6px!important;
      padding:7px 9px 9px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-gold-line{
      height:1px!important;
      margin-top:0!important;
      margin-bottom:var(--ua-shell-bar-gap,5px)!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar{
      padding:7px 10px!important;
      gap:8px!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages{
      height:40px!important;
      min-height:40px!important;
      padding-block:1px!important;
      gap:7px!important;
      flex:1 1 auto!important;
      min-width:0!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn{
      height:38px!important;
      min-height:38px!important;
      max-height:38px!important;
      box-sizing:border-box!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab{
      min-width:132px!important;
      max-width:240px!important;
      padding:0 12px!important;
      border-radius:9px!important;
      font-size:12.4px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-winbtn{
      width:38px!important;
      min-width:38px!important;
      border-radius:9px!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main{
      margin-inline-start:calc(var(--ua-sidebar-w) + var(--ua-shell-edge-gap,6px))!important;
      margin-inline-end:var(--ua-shell-edge-gap,6px)!important;
      height:calc(100vh - 126px)!important;
      max-height:calc(100vh - 126px)!important;
      overflow:hidden!important;
      box-sizing:border-box!important;
    }
    html[dir="ltr"] body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main{
      margin-inline-start:var(--ua-shell-edge-gap,6px)!important;
      margin-inline-end:calc(var(--ua-sidebar-w) + var(--ua-shell-edge-gap,6px))!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main > .ua-page{
      height:inherit!important;
      min-height:0!important;
      max-height:inherit!important;
      overflow:auto!important;
      padding-inline:0!important;
      padding-bottom:6px!important;
      box-sizing:border-box!important;
      scrollbar-width:thin!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-stage,
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane{
      height:100%!important;
      max-height:100%!important;
      min-height:0!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-iframe{
      width:100%!important;
      height:100%!important;
      min-height:0!important;
      max-height:100%!important;
      overflow:hidden!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) #uaShellScrollNav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-scroll-nav,
    body.ua-shell-chrome:not(.ua-page-dashboard) .nocx-gold-scrollbar{
      display:none!important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-subnav{
      margin:0 0 6px!important;
    }


    /* ===== 2026-05-19 phase 11: shell scroll ownership guard =====
       يمنع السكرول الخارجي في الصفحات العادية، ويجعل Workspace هو المالك الوحيد للتمرير. */
    html:has(body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard)),
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard){
      height:100% !important;
      min-height:100% !important;
      max-height:100vh !important;
      overflow:hidden !important;
      scrollbar-width:none !important;
      overscroll-behavior:none !important;
    }
    html:has(body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard))::-webkit-scrollbar,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard)::-webkit-scrollbar{
      width:0 !important;
      height:0 !important;
      display:none !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main{
      overflow:hidden !important;
      overscroll-behavior:none !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main > .ua-page{
      overflow:auto !important;
      scrollbar-width:none !important;
      -ms-overflow-style:none !important;
      overscroll-behavior:contain !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main > .ua-page::-webkit-scrollbar,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main > .ua-page *::-webkit-scrollbar{
      width:0 !important;
      height:0 !important;
      display:none !important;
    }



    /* ===== 2026-05-19 phase12: workspace containment and scrollbar side correction ===== */
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main{
      overflow:hidden !important;
      min-width:0 !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) .ua-main > .ua-page{
      direction:ltr !important;
      overflow:hidden !important;
      min-width:0 !important;
      padding:0 !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-stage,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane{
      width:100% !important;
      max-width:100% !important;
      height:100% !important;
      max-height:100% !important;
      min-height:0 !important;
      min-width:0 !important;
      box-sizing:border-box !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane{
      direction:ltr !important;
      overflow:hidden !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.is-current{
      overflow:auto !important;
      overscroll-behavior:contain !important;
      scrollbar-width:thin !important;
      scrollbar-color:rgba(94,234,212,.38) rgba(2,14,24,.28) !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.is-current::-webkit-scrollbar{
      width:8px !important;
      height:8px !important;
      display:block !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.is-current::-webkit-scrollbar-track{
      background:rgba(2,14,24,.28) !important;
      border-radius:999px !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.is-current::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg,rgba(94,234,212,.24),rgba(94,234,212,.58)) !important;
      border-radius:999px !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane > :not(iframe){
      direction:rtl !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-iframe{
      width:100% !important;
      max-width:100% !important;
      height:100% !important;
      max-height:100% !important;
      min-height:0 !important;
      display:block !important;
      direction:ltr !important;
      background:transparent !important;
    }
    body.ua-tab-iframe-body{
      direction:rtl !important;
      overflow-x:hidden !important;
    }


    /* ===== 2026-05-19 phase13: single scroll owner for iframe panes =====
       عند فتح صفحة داخل Workspace لا يحق للـ pane الخارجي إنشاء شريط تمرير ثانٍ.
       التمرير يبقى داخل الصفحة المفتوحة نفسها فقط. */
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.has-iframe,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane[data-ua-pane-kind="iframe"],
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.has-iframe.is-current,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane[data-ua-pane-kind="iframe"].is-current{
      overflow:hidden !important;
      scrollbar-width:none !important;
      -ms-overflow-style:none !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.has-iframe::-webkit-scrollbar,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane[data-ua-pane-kind="iframe"]::-webkit-scrollbar{
      width:0 !important;
      height:0 !important;
      display:none !important;
    }
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane.has-iframe > .ua-wm-iframe,
    body.ua-shell-chrome:not(.ua-frame-context):not(.ua-page-dashboard) #uaWorkspaceHost .ua-wm-pane[data-ua-pane-kind="iframe"] > .ua-wm-iframe{
      height:100% !important;
      max-height:100% !important;
      min-height:0 !important;
    }

    /* iframe pages: keep the scrollbar on the visual right, while the content remains RTL. */
    html.ua-in-frame,
    html.ua-in-frame body{
      direction:ltr !important;
      min-width:0 !important;
      overflow-x:hidden !important;
      overflow-y:auto !important;
      scrollbar-color:color-mix(in srgb,var(--ua-accent) 54%,transparent) color-mix(in srgb,var(--ua-theme-page-bg) 70%,transparent) !important;
    }
    html.ua-in-frame body > *,
    html.ua-in-frame .ua-shell,
    html.ua-in-frame .ua-main,
    html.ua-in-frame .ua-page,
    html.ua-in-frame .content-wrapper,
    html.ua-in-frame .content,
    html.ua-in-frame .container,
    html.ua-in-frame .container-fluid,
    html.ua-in-frame .card,
    html.ua-in-frame .table-responsive,
    html.ua-in-frame table,
    html.ua-in-frame form{
      direction:rtl !important;
    }
    html.ua-in-frame .ua-main,
    html.ua-in-frame .ua-page{
      margin:0 !important;
      padding:0 !important;
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
      overflow:visible !important;
    }
    html.ua-in-frame .ua-unified-shell-block,
    html.ua-in-frame #uaShellStatsBar,
    html.ua-in-frame #uaShellGoldLine,
    html.ua-in-frame #uaShellWindowBar,
    html.ua-in-frame #uaShellScrollNav,
    html.ua-in-frame .ua-shell-scroll-nav,
    html.ua-in-frame .nocx-gold-scrollbar,
    html.ua-in-frame .ua-page-windowbar:not(.ua-subnav),
    html.ua-in-frame .ua-dashboard-windowbar-host,
    html.ua-in-frame .nocx-dashboard-windowbar,
    html.ua-in-frame .nocx-topbar--control,
    html.ua-in-frame .ua-legacy-windowbar,
    html.ua-in-frame .ua-legacy-subnav,
    html.ua-in-frame [data-ua-shared-windowbar]:not(.ua-subnav),
    html.ua-in-frame .ua-atabs-wrap,
    html.ua-in-frame .ua-atabs,
    html.ua-in-frame .ua-page-tabs,
    html.ua-in-frame .ua-tabs-wrap,
    html.ua-in-frame .ua-section-tabs,
    html.ua-in-frame .ua-legacy-page-tabs{
      display:none !important;
    }
    html.ua-in-frame .ua-subnav{
      width:max-content !important;
      max-width:100% !important;
      margin-inline-start:0 !important;
      margin-inline-end:auto !important;
      direction:rtl !important;
    }
    html.ua-in-frame .ua-subnav ~ .ua-subnav,
    html.ua-in-frame .ua-subnav.is-legacy,
    html.ua-in-frame .ua-subnav[data-ua-legacy="1"]{
      display:none !important;
    }
    html.ua-in-frame ::-webkit-scrollbar{
      width:8px !important;
      height:8px !important;
    }
    html.ua-in-frame ::-webkit-scrollbar-track{
      background:color-mix(in srgb,var(--ua-theme-page-bg) 70%,transparent) !important;
      border-radius:999px !important;
    }
    html.ua-in-frame ::-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;
    }


    /* ===== 2026-05-19 phase 14: canonical page subnav only =====
       داخل صفحات Workspace لا يظهر إلا شريط تنقل الصفحة المعتمد، وتُخفى أي طبقة/شريط قديم. */
    html.ua-in-frame .ua-dashboard-windowbar-host,
    html.ua-in-frame .nocx-dashboard-windowbar,
    html.ua-in-frame .nocx-topbar--control,
    html.ua-in-frame .ua-legacy-windowbar,
    html.ua-in-frame .ua-legacy-subnav,
    html.ua-in-frame [data-ua-shared-windowbar]:not(.ua-subnav),
    html.ua-in-frame .ua-page-windowbar:not(.ua-subnav){
      display:none !important;
      visibility:hidden !important;
      width:0 !important;
      height:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      overflow:hidden !important;
    }
    html.ua-in-frame .ua-subnav[data-ua-subnav-canonical="1"]{
      display:flex !important;
      margin-inline-start:0 !important;
      margin-inline-end:auto !important;
    }
    html.ua-in-frame .ua-subnav[data-ua-subnav-canonical="1"] ~ .ua-subnav{
      display:none !important;
    }



    /* 2026-05-19 phase16: inside Workspace frames, old standalone page-tab strips
       must not appear above the official section navigation. */
    body.ua-frame-context .ua-atabs-wrap,
    body.ua-frame-context .ua-atabs,
    body.ua-frame-context .ua-page-tabs,
    body.ua-frame-context .ua-tabs-wrap,
    body.ua-frame-context .ua-section-tabs,
    body.ua-frame-context .ua-legacy-page-tabs,
    body.ua-frame-context .ua-page-windowbar:not(.ua-subnav),
    body.ua-frame-context [data-ua-shared-windowbar]:not(.ua-subnav){
      display:none!important;
      visibility:hidden!important;
      height:0!important;
      min-height:0!important;
      margin:0!important;
      padding:0!important;
      border:0!important;
      overflow:hidden!important;
    }



    /* 2026-05-20 - Subscriber modal final surface and field sizing lock.
       Scope: only pages opened by the subscribers page modal (ua_sub_modal=1). */
    html:has(> body.ua-subscriber-modal-embed),
    body.ua-subscriber-modal-embed{
      background:linear-gradient(135deg,#0b6b64 0%,#075450 48%,#04383c 100%) !important;
      color:#f4fffc !important;
    }
    body.ua-subscriber-modal-embed,
    body.ua-subscriber-modal-embed > .ua-shell,
    body.ua-subscriber-modal-embed .ua-shell,
    body.ua-subscriber-modal-embed .ua-main,
    body.ua-subscriber-modal-embed .ua-page,
    body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page section.content,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .content,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .container,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .container-fluid,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-shell,.history-wrap,.sa-wrap,.ua-history-clear-shell,.ua-extracted-content,.ua-manual-content,.tab-content,.tab-pane,.form-row){
      background:transparent !important;
      background-color:transparent !important;
      color:#f4fffc !important;
      box-shadow:none !important;
    }
    body.ua-subscriber-modal-embed > .ua-shell,
    body.ua-subscriber-modal-embed .ua-shell.ua-embed{
      min-height:100vh !important;
      padding:0 !important;
      background:linear-gradient(135deg,#0b6b64 0%,#075450 48%,#04383c 100%) !important;
    }
    body.ua-subscriber-modal-embed .ua-main,
    body.ua-subscriber-modal-embed .ua-page,
    body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page{
      min-height:100vh !important;
      width:100% !important;
      max-width:none !important;
      margin:0 !important;
      border:0 !important;
      border-radius:0 !important;
      overflow-x:hidden !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page section.content,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page > .content,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .content{
      padding:10px 12px 16px !important;
      margin:0 !important;
    }
    body.ua-subscriber-modal-embed .ua-subnav[data-ua-subnav-canonical="1"],
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.content-header,.breadcrumb,.ua-page-header){
      display:none !important;
      visibility:hidden !important;
      height:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      border:0 !important;
      overflow:hidden !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card,.box,.panel,.history-card,.ua-history-clear-card,.sa-card,.sa-summary,.sa-kpi,.mt-sync-shell,.mt-report-card,.ua-import-progress,.table-responsive,.modal-content,.list-group-item,.accordion-item,.bg-white,.bg-light,.alert-light,.alert-secondary,[style*="background:#fff"],[style*="background: #fff"],[style*="background:#ffffff"],[style*="background: #ffffff"],[style*="background:white"],[style*="background: white"],[style*="background:#d9f6ff"],[style*="background: #d9f6ff"]){
      background:linear-gradient(180deg,rgba(8,88,83,.94),rgba(5,61,62,.98)) !important;
      background-color:transparent !important;
      color:#f4fffc !important;
      border:1px solid rgba(153,246,228,.23) !important;
      border-radius:15px !important;
      box-shadow:0 12px 26px rgba(0,0,0,.15) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card,.box,.panel,.history-card,.ua-history-clear-card,.sa-card,.mt-sync-shell,.mt-report-card){
      margin-bottom:10px !important;
      overflow:hidden !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card-header,.card-footer,.box-header,.panel-heading,.modal-header,.modal-footer,.sa-card-head,.mt-report-head){
      background:rgba(2,38,43,.40) !important;
      border-color:rgba(153,246,228,.18) !important;
      color:#f4fffc !important;
      min-height:0 !important;
      padding:10px 12px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card-body,.sa-card-body){
      background:transparent !important;
      color:#f4fffc !important;
      padding:12px 13px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.sa-hero,.ua-compact-hero,.ua-extracted-head,.ua-manual-head){
      background:linear-gradient(135deg,rgba(11,103,96,.96),rgba(5,64,65,.98)) !important;
      color:#f4fffc !important;
      border:1px solid rgba(153,246,228,.25) !important;
      border-radius:15px !important;
      box-shadow:0 12px 26px rgba(0,0,0,.15) !important;
      padding:12px 14px !important;
      margin:0 0 10px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-title,.ua-history-clear-title,.sa-card-head h3,.card-title,.card-header h3,.card-header h5,.mt-sync-title){
      color:#f4fffc !important;
      font-size:16px !important;
      line-height:1.45 !important;
      margin:0 0 9px !important;
      font-weight:950 !important;
      text-shadow:0 1px 2px rgba(0,0,0,.26) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(h1,h2,h3,h4,h5,h6,b,strong,label,.form-label,.sa-field label,.ua-history-clear-option strong){
      color:#f4fffc !important;
      font-weight:900 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.text-muted,.small,small,.history-meta small,.sa-field small,.sa-kpi-title,.history-meta,.mt-sync-subtitle,.mt-stat .label,.mt-empty-report){
      color:rgba(226,255,250,.74) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-meta,.sa-form-grid,.row){
      gap:8px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .history-grid{
      gap:10px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page [class*="col-"]{
      padding-inline:5px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-pill,.ua-history-clear-stat,.ua-history-clear-option,.sa-field,.sa-summary,.sa-kpi,.mt-stat,.ua-subscriber-view .row.g-3 > [class*="col-"],.ua-sub-child-view .row.g-3 > [class*="col-"],.form-group,.ua-field){
      background:rgba(3,56,59,.82) !important;
      color:#f4fffc !important;
      border:1px solid rgba(153,246,228,.20) !important;
      border-radius:12px !important;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.025) !important;
      min-height:44px !important;
      padding:8px 10px !important;
      margin-bottom:8px !important;
      line-height:1.45 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .history-pill small,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .sa-field label,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .sa-kpi-title,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .mt-stat .label{
      display:block !important;
      font-size:11.5px !important;
      line-height:1.35 !important;
      margin:0 0 3px !important;
      opacity:.86 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-pill,.sa-kpi-value,.mt-stat .value,.ua-sub-child-view .row.g-3 > [class*="col-"]){
      font-size:13.5px !important;
      font-weight:850 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
      min-height:36px !important;
      height:auto !important;
      padding:.40rem .62rem !important;
      border-radius:10px !important;
      background:rgba(2,47,51,.90) !important;
      color:#fbfffe !important;
      border:1px solid rgba(153,246,228,.26) !important;
      box-shadow:none !important;
      font-size:13.5px !important;
      line-height:1.45 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page textarea.form-control,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page textarea{
      min-height:68px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input,select,textarea,.form-control,.form-select)::placeholder{
      color:rgba(226,255,250,.48) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input,select,textarea,.form-control,.form-select):focus{
      border-color:rgba(94,234,212,.62) !important;
      box-shadow:0 0 0 .16rem rgba(45,212,191,.15) !important;
      outline:0 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.btn,.btn-sm,.btn-xs,.btn-block,button){
      border-radius:10px !important;
      font-weight:900 !important;
      min-height:34px !important;
      padding:.38rem .68rem !important;
      box-shadow:none !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.table,table){
      background:rgba(4,55,58,.84) !important;
      color:#f4fffc !important;
      border-color:rgba(153,246,228,.16) !important;
      font-size:13px !important;
      margin-bottom:0 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.table td,.table th,table td,table th){
      background-color:transparent !important;
      color:#f4fffc !important;
      border-color:rgba(153,246,228,.14) !important;
      padding:7px 9px !important;
      vertical-align:middle !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.table thead th,table thead th){
      background:rgba(2,38,43,.84) !important;
      color:#ccfbf1 !important;
      font-weight:950 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.alert,.sa-empty,.sa-inline-note,.ua-history-clear-danger,.ua-history-clear-ok){
      background:linear-gradient(180deg,rgba(8,86,82,.82),rgba(5,56,59,.90)) !important;
      color:#f4fffc !important;
      border:1px solid rgba(153,246,228,.20) !important;
      border-radius:12px !important;
      padding:9px 11px !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page a:not(.btn){
      color:#99f6e4 !important;
    }


    
    /* 2026-05-20 - Subscriber child modal no-white root lock v2.
       Keeps the subscriber subpages dark from the actual root wrappers, not only inside cards. */
    html:has(> body.ua-subscriber-modal-embed),
    body.ua-subscriber-modal-embed,
    body.ua-subscriber-modal-embed > .ua-shell,
    body.ua-subscriber-modal-embed .ua-shell,
    body.ua-subscriber-modal-embed .ua-main,
    body.ua-subscriber-modal-embed .ua-page,
    body.ua-subscriber-modal-embed .content-wrapper,
    body.ua-subscriber-modal-embed .content-wrapper.ua-manual-page,
    body.ua-subscriber-modal-embed .content-wrapper.ua-extracted-page,
    body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page,
    body.ua-subscriber-modal-embed section.content,
    body.ua-subscriber-modal-embed .content,
    body.ua-subscriber-modal-embed .container,
    body.ua-subscriber-modal-embed .container-fluid,
    body.ua-subscriber-modal-embed .history-shell,
    body.ua-subscriber-modal-embed .history-wrap,
    body.ua-subscriber-modal-embed .sa-wrap,
    body.ua-subscriber-modal-embed .ua-history-clear-shell{
      background:linear-gradient(135deg,#0b6b64 0%,#075450 48%,#04383c 100%) !important;
      background-color:#075450 !important;
      color:#f4fffc !important;
      box-shadow:none !important;
    }
    body.ua-subscriber-modal-embed .ua-shell.ua-embed,
    body.ua-subscriber-modal-embed .content-wrapper,
    body.ua-subscriber-modal-embed .ua-page,
    body.ua-subscriber-modal-embed .ua-main{
      min-height:100vh !important;
      margin:0 !important;
      padding:0 !important;
      width:100% !important;
      max-width:none !important;
    }
    body.ua-subscriber-modal-embed .content,
    body.ua-subscriber-modal-embed section.content{
      padding:8px 10px 12px !important;
      margin:0 !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-shell > .d-flex:first-child,.ua-history-clear-shell > .d-flex:first-child),
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(a[href*="subscribers.php"],button[onclick*="history.back"],a[onclick*="history.back"]){
      display:none !important;
      visibility:hidden !important;
      height:0 !important;
      min-height:0 !important;
      margin:0 !important;
      padding:0 !important;
      overflow:hidden !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card,.box,.panel,.history-card,.ua-history-clear-card,.sa-card,.sa-summary,.sa-kpi,.mt-sync-shell,.mt-report-card,.ua-import-progress,.table-responsive,.modal-content,.list-group-item,.accordion-item,.bg-white,.bg-light,.alert-light,.alert-secondary,[style*="background:#fff"],[style*="background: #fff"],[style*="background:#ffffff"],[style*="background: #ffffff"],[style*="background:white"],[style*="background: white"],[style*="background:#d9f6ff"],[style*="background: #d9f6ff"]){
      background:linear-gradient(180deg,rgba(8,88,83,.94),rgba(5,61,62,.98)) !important;
      background-color:#053d3e !important;
      color:#f4fffc !important;
      border-color:rgba(153,246,228,.22) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-pill,.ua-history-clear-stat,.ua-history-clear-option,.sa-field,.sa-summary,.sa-kpi,.mt-stat,.form-group,.ua-field,.ua-subscriber-view .row.g-3 > [class*="col-"],.ua-sub-child-view .row.g-3 > [class*="col-"]){
      min-height:40px !important;
      padding:6px 9px !important;
      margin-bottom:7px !important;
      border-radius:11px !important;
      background:rgba(3,50,54,.86) !important;
    }
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
      min-height:34px !important;
      padding:.34rem .56rem !important;
      border-radius:9px !important;
      background:rgba(2,43,47,.94) !important;
      color:#fbfffe !important;
    }
    


/* 2026-05-20 - Subscriber child modal organized fields/actions/icons v16.
   Scope is intentionally limited to pages opened inside the subscribers modal. */
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card-body,.sa-card-body){
  padding:12px 14px !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(label,.form-label,.sa-field label){
  display:block !important;
  margin:0 0 4px !important;
  font-size:12px !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
}
body.ua-subscriber-modal-embed .ua-sub-child-edit form > .row,
body.ua-subscriber-modal-embed .ua-sub-child-add form > .row{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)) !important;
  gap:10px !important;
  margin:0 0 10px !important;
  align-items:start !important;
}
body.ua-subscriber-modal-embed .ua-sub-child-edit form > .row.mt-3,
body.ua-subscriber-modal-embed .ua-sub-child-add form > .row.mt-3{
  margin-top:0 !important;
}
body.ua-subscriber-modal-embed .ua-sub-child-edit form > .row > [class*="col-"],
body.ua-subscriber-modal-embed .ua-sub-child-add form > .row > [class*="col-"]{
  width:auto !important;
  max-width:none !important;
  flex:initial !important;
  padding:0 !important;
  margin:0 !important;
}
body.ua-subscriber-modal-embed .ua-sub-child-edit form > .row > :is(.col-12,.col-md-12,.col-lg-12),
body.ua-subscriber-modal-embed .ua-sub-child-add form > .row > :is(.col-12,.col-md-12,.col-lg-12){
  grid-column:1 / -1 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
  min-height:34px !important;
  padding:.34rem .58rem !important;
  border-radius:9px !important;
  font-size:13px !important;
  line-height:1.38 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page textarea,
body.ua-subscriber-modal-embed .ua-subscriber-child-page textarea.form-control{
  min-height:64px !important;
  resize:vertical !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page .form-check{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:36px !important;
  padding:7px 10px !important;
  margin:0 !important;
  border:1px solid rgba(153,246,228,.18) !important;
  border-radius:10px !important;
  background:rgba(3,50,54,.52) !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page .form-check-input{
  float:none !important;
  margin:0 !important;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page .form-check-label{
  margin:0 !important;
  font-size:12.5px !important;
  line-height:1.45 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(form > .mt-4.d-flex,.ua-compact-actions,.page-actions,.history-shell .d-flex.gap-2,.ua-history-clear-shell .d-flex.gap-2,.card-footer,.modal-footer){
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin-top:12px !important;
  padding-top:10px !important;
  border-top:1px solid rgba(153,246,228,.14) !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.btn,.btn-sm,.btn-xs,button.btn,a.btn){
  min-height:34px !important;
  height:34px !important;
  padding:0 11px !important;
  border-radius:10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  line-height:1 !important;
  font-size:12.5px !important;
  white-space:nowrap !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.ua-modal-icon-btn,.btn.ua-modal-icon-btn,button.ua-modal-icon-btn,a.ua-modal-icon-btn){
  width:36px !important;
  min-width:36px !important;
  max-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  flex:0 0 36px !important;
  padding:0 !important;
  border-radius:10px !important;
  gap:0 !important;
  font-size:0 !important;
  box-shadow:0 6px 14px rgba(0,0,0,.12) !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.ua-modal-icon-btn,.btn,.btn-sm) i.fa,
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.ua-modal-icon-btn,.btn,.btn-sm) .fa{
  font-size:15px !important;
  line-height:1 !important;
  margin:0 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page .ua-modal-icon-btn .ua-modal-btn-text{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page .se-ip-suggest-btn,
body.ua-subscriber-modal-embed .ua-subscriber-child-page .se-ip-suggest-btn.ua-modal-icon-btn{
  width:34px !important;
  min-width:34px !important;
  max-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  flex:0 0 34px !important;
  border-radius:10px !important;
  padding:0 !important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page a[href*="subscribers.php"]:not([data-ua-keep-back]),
body.ua-subscriber-modal-embed .ua-subscriber-child-page button[onclick*="history.back"],
body.ua-subscriber-modal-embed .ua-subscriber-child-page a[onclick*="history.back"]{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  min-width:0 !important;
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
}
@media (max-width:760px){
  body.ua-subscriber-modal-embed .ua-sub-child-edit form > .row,
  body.ua-subscriber-modal-embed .ua-sub-child-add form > .row{
    grid-template-columns:1fr !important;
  }
}



    /* 2026-05-20 - Final subscriber modal font + edit hint polish. */
    body.ua-subscriber-modal-embed .ua-subscriber-child-page,
    body.ua-subscriber-modal-embed .ua-subscriber-child-page *{font-size:var(--ua-modal-font-size,14px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(label,.form-label,.sa-field label){font-size:var(--ua-input-font-size,13px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){font-size:var(--ua-input-font-size,13px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.btn,.btn-sm,.btn-xs,button.btn,a.btn){font-size:var(--ua-menu-font-size,13px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.history-title,.ua-history-clear-title,.sa-card-head h3,.card-title,.card-header h3,.card-header h5,.mt-sync-title,h1,h2,h3,h4,h5,h6){font-size:var(--ua-title-font-size,16px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.table,table,.table td,.table th,table td,table th){font-size:var(--ua-table-font-size,13px) !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .se-inline-hidden-hint{display:none !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .se-ip-help-btn{width:31px !important;min-width:31px !important;max-width:31px !important;height:31px !important;min-height:31px !important;border-radius:50% !important;padding:0 !important;font-size:0 !important;}
    body.ua-subscriber-modal-embed .ua-subscriber-child-page .se-ip-help-btn i{font-size:13.5px !important;}

    /* 2026-05-22 compact shell bars: smaller text plus adaptive window tabs. */
    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-bar-font-size,11px) !important;
      font-weight:820 !important;
      padding-inline:5px !important;
      gap:3px !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip strong{
      font-size:calc(var(--ua-bar-font-size,11px) + 1px) !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-ico{
      width:12px !important;
      min-width:12px !important;
      height:12px !important;
      font-size:11.7px !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-avatar{
      width:22px !important;
      min-width:22px !important;
      height:22px !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar *{
      font-size:var(--ua-bar-font-size,11px) !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab{
      height:26px !important;
      min-width:92px !important;
      max-width:158px !important;
      padding-inline:7px !important;
      gap:5px !important;
      border-radius:8px !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-tab i{
      font-size:var(--ua-bar-font-size,11px) !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages.is-compact .ua-page-tab{
      min-width:64px !important;
      max-width:96px !important;
      padding-inline:6px !important;
      gap:4px !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages.is-icon-only .ua-page-tab{
      width:38px !important;
      min-width:38px !important;
      max-width:38px !important;
      padding-inline:0 !important;
      gap:0 !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages.is-icon-only .ua-page-tab > span:not(.ua-page-tab__close){
      display:none !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar__pages.is-icon-only .ua-page-tab__close{
      display:none !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand),
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip > summary.nocx-stat-chip,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-user-chip > summary{
      font-size:var(--ua-bar-font-size,11px) !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand) strong,
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats .ua-shell-alert-chip > summary.nocx-stat-chip strong{
      font-size:calc(var(--ua-bar-font-size,11px) + 1px) !important;
    }
    body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar .ua-page-windowbar__pages .ua-page-tab{
      font-size:var(--ua-bar-font-size,11px) !important;
    }
/* UA PHASE 5 EXTRACTED HEADER RUNTIME CSS END */

/* UA phase 5: subscriber add IP hint colors use template variables/classes instead of JS inline color. */
.sa-ip-hint--error{color:var(--ua-theme-security-alert,#dc2626)!important}
.sa-ip-hint--success{color:color-mix(in srgb,var(--ua-accent-2,#15803d) 70%,#16a34a)!important}
.sa-ip-hint--default{color:color-mix(in srgb,var(--ua-text,#eaf0ff) 68%,transparent)!important}

/* =====================================================================
   UA fix 2026-05-22: منع عودة الإطارات الذهبية من الطبقة المركزية
   الإطارات العامة أصبحت سماوية خفيفة/محايدة بدل ربطها بلون الذهب أو Accent.
   ===================================================================== */
body.ua-design-v2{
  --ua-clean-frame-line:var(--ua-border,rgba(125,211,252,.16));
  --ua-clean-frame-line-soft:color-mix(in srgb,var(--ua-border,rgba(125,211,252,.16)) 62%,transparent);
}
body.ua-design-v2 :where(.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs,.ua-table-wrap,.table-responsive,.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.modal-content,.popover,.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel){
  border-color:var(--ua-clean-frame-line) !important;
}
body.ua-design-v2 :where(.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs){
  box-shadow:0 12px 26px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.035) !important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-shell-gold-line,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats::before,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats::after{
  display:none !important;
  content:none !important;
}
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-unified-stats,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-page-windowbar,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-main,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-sidebar,
body.ua-shell-chrome:not(.ua-page-dashboard) .ua-sb3{
  border-color:var(--ua-clean-frame-line) !important;
}

/* UA fix 2026-05-22B: تثبيت لون الإطار العام بعيداً عن الذهبي */
body.ua-design-v2{
  --ua-ds-line:var(--ua-clean-frame-line) !important;
  --ua-ds-line-strong:color-mix(in srgb,var(--ua-border,rgba(125,211,252,.16)) 82%,white 8%) !important;
}
body.ua-design-v2 :where(.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs,.ua-table-wrap,.table-responsive,.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.modal-content,.popover,.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel)::before,
body.ua-design-v2 :where(.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs,.ua-table-wrap,.table-responsive,.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2,.modal-content,.popover,.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel)::after{
  border-color:var(--ua-clean-frame-line-soft) !important;
  box-shadow:none !important;
}

/* Template-source iframe/modal skin: prevents old embedded turquoise surfaces from flashing. */
body.ua-subscriber-modal-embed.ua-design-v2,
body.ua-frame-context.ua-subscriber-modal-embed.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,var(--ua-text))!important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(.card,.box,.panel,.history-card,.ua-history-clear-card,.sa-card,.sa-summary,.sa-kpi,.mt-sync-shell,.mt-report-card,.ua-import-progress,.table-responsive,.modal-content,.list-group-item,.accordion-item,.bg-white,.bg-light,.alert-light,.alert-secondary){
  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) 86%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 76%,transparent))!important;
  background-color:transparent!important;
  color:var(--ua-ds-text,var(--ua-text))!important;
  border-color:var(--ua-ds-line,var(--ua-border))!important;
}
body.ua-subscriber-modal-embed .ua-subscriber-child-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
  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,var(--ua-border))!important;
}

/* =====================================================================
   UA Theme Authority - 2026-05-22
   The selected Theme Studio preset owns the whole chrome: sidebar, bars,
   cards, tables, buttons, modals, flyouts and subscriber child windows.
   ===================================================================== */
:root:has(> body.ua-theme-armoury_dark),
body.ua-theme-armoury_dark{
  --ua-accent:#f5b000;
  --ua-accent-2:#ffcf4d;
  --ua-text:#edf4ff;
  --ua-border:rgba(245,176,0,.24);
  --ua-border-strong:rgba(255,207,77,.36);
  --ua-bg:#080b12;
  --ua-card:rgba(16,21,34,.86);
  --ua-theme-page-bg:#080b12;
  --ua-theme-surface:#101522;
  --ua-theme-surface-2:#182235;
  --ua-theme-topbar:#121724;
  --ua-theme-windowbar:#0f1420;
  --ua-theme-sidebar:#0b101a;
  --ua-theme-sidebar-item:#283247;
  --ua-theme-input:#0d1422;
  --ua-theme-input-text:#edf4ff;
  --ua-theme-table-head:#2a210f;
  --ua-theme-table-row:#101827;
  --ua-theme-table-row-alt:#141e30;
  --ua-theme-menu:#101522;
  --ua-theme-modal:#111827;
  --ua-theme-alert:#251f11;
  --ua-theme-security-alert:#4a151f;
}

:root:has(> body.ua-theme-turquoise_isp),
body.ua-theme-turquoise_isp{
  --ua-accent:#2dd4bf;
  --ua-accent-2:#67e8f9;
  --ua-text:#f4fffc;
  --ua-border:rgba(45,212,191,.34);
  --ua-border-strong:rgba(153,246,228,.48);
  --ua-bg:#063f45;
  --ua-card:rgba(7,84,80,.86);
  --ua-theme-page-bg:#063f45;
  --ua-theme-surface:#075450;
  --ua-theme-surface-2:#0b6b64;
  --ua-theme-topbar:#062e38;
  --ua-theme-windowbar:#073f45;
  --ua-theme-sidebar:#042f37;
  --ua-theme-sidebar-item:#0c6b68;
  --ua-theme-input:#042f35;
  --ua-theme-input-text:#f4fffc;
  --ua-theme-table-head:#095f68;
  --ua-theme-table-row:#063e40;
  --ua-theme-table-row-alt:#07494a;
  --ua-theme-menu:#05383f;
  --ua-theme-modal:#075450;
  --ua-theme-alert:#0c5b5a;
  --ua-theme-security-alert:#562028;
}

:root:has(> body.ua-theme-dark_blue),
body.ua-theme-dark_blue{
  --ua-accent:#4f8cff;
  --ua-accent-2:#9cc7ff;
  --ua-text:#eaf2ff;
  --ua-border:rgba(79,140,255,.26);
  --ua-border-strong:rgba(156,199,255,.38);
  --ua-bg:#08111f;
  --ua-card:rgba(14,25,45,.86);
  --ua-theme-page-bg:#08111f;
  --ua-theme-surface:#0e192d;
  --ua-theme-surface-2:#102344;
  --ua-theme-topbar:#0a1c35;
  --ua-theme-windowbar:#09172a;
  --ua-theme-sidebar:#07162b;
  --ua-theme-sidebar-item:#123a6f;
  --ua-theme-input:#08182f;
  --ua-theme-input-text:#eaf2ff;
  --ua-theme-table-head:#123f78;
  --ua-theme-table-row:#0a1f3d;
  --ua-theme-table-row-alt:#0d284f;
  --ua-theme-menu:#08172b;
  --ua-theme-modal:#0e192d;
  --ua-theme-alert:#102b4e;
  --ua-theme-security-alert:#43151d;
}

:root:has(> body.ua-theme-whmcs_blue),
body.ua-theme-whmcs_blue{
  --ua-accent:#1a66ff;
  --ua-accent-2:#60a5fa;
  --ua-text:#0b1220;
  --ua-border:rgba(15,23,42,.14);
  --ua-border-strong:rgba(26,102,255,.28);
  --ua-bg:#f5f7fb;
  --ua-card:rgba(255,255,255,.96);
  --ua-theme-page-bg:#f5f7fb;
  --ua-theme-surface:#ffffff;
  --ua-theme-surface-2:#eef4ff;
  --ua-theme-topbar:#ffffff;
  --ua-theme-windowbar:#eaf1ff;
  --ua-theme-sidebar:#123c69;
  --ua-theme-sidebar-item:#1d5f9f;
  --ua-theme-input:#ffffff;
  --ua-theme-input-text:#0b1220;
  --ua-theme-table-head:#d7e6ff;
  --ua-theme-table-row:#ffffff;
  --ua-theme-table-row-alt:#f1f5ff;
  --ua-theme-menu:#ffffff;
  --ua-theme-modal:#ffffff;
  --ua-theme-alert:#dbeafe;
  --ua-theme-security-alert:#fee2e2;
}

:root:has(> body.ua-theme-light_clean),
body.ua-theme-light_clean{
  --ua-accent:#0f766e;
  --ua-accent-2:#22c7b8;
  --ua-text:#102033;
  --ua-border:rgba(15,23,42,.13);
  --ua-border-strong:rgba(15,118,110,.30);
  --ua-bg:#f8fafc;
  --ua-card:rgba(255,255,255,.96);
  --ua-theme-page-bg:#f8fafc;
  --ua-theme-surface:#ffffff;
  --ua-theme-surface-2:#eef5f7;
  --ua-theme-topbar:#ffffff;
  --ua-theme-windowbar:#eef5f7;
  --ua-theme-sidebar:#172033;
  --ua-theme-sidebar-item:#1f5f5a;
  --ua-theme-input:#ffffff;
  --ua-theme-input-text:#102033;
  --ua-theme-table-head:#dbe5eb;
  --ua-theme-table-row:#ffffff;
  --ua-theme-table-row-alt:#f8fafc;
  --ua-theme-menu:#ffffff;
  --ua-theme-modal:#ffffff;
  --ua-theme-alert:#e0f2fe;
  --ua-theme-security-alert:#fee2e2;
}

:root:has(> body.ua-theme-neon_net),
body.ua-theme-neon_net{
  --ua-accent:#22d3ee;
  --ua-accent-2:#a7f3d0;
  --ua-text:#eafffb;
  --ua-border:rgba(34,211,238,.32);
  --ua-border-strong:rgba(167,243,208,.44);
  --ua-bg:#05070c;
  --ua-card:rgba(10,14,22,.88);
  --ua-theme-page-bg:#05070c;
  --ua-theme-surface:#0a0e16;
  --ua-theme-surface-2:#101735;
  --ua-theme-topbar:#061923;
  --ua-theme-windowbar:#04131d;
  --ua-theme-sidebar:#04272b;
  --ua-theme-sidebar-item:#103d56;
  --ua-theme-input:#06151f;
  --ua-theme-input-text:#eafffb;
  --ua-theme-table-head:#0b3355;
  --ua-theme-table-row:#071827;
  --ua-theme-table-row-alt:#0b2033;
  --ua-theme-menu:#06131c;
  --ua-theme-modal:#071822;
  --ua-theme-alert:#0b2e3a;
  --ua-theme-security-alert:#3f1624;
}

:root:has(> body.ua-theme-green_isp),
body.ua-theme-green_isp{
  --ua-accent:#22c55e;
  --ua-accent-2:#86efac;
  --ua-text:#ecfff2;
  --ua-border:rgba(34,197,94,.28);
  --ua-border-strong:rgba(134,239,172,.42);
  --ua-bg:#07140c;
  --ua-card:rgba(12,26,18,.88);
  --ua-theme-page-bg:#07140c;
  --ua-theme-surface:#0c1a12;
  --ua-theme-surface-2:#10291a;
  --ua-theme-topbar:#0a2113;
  --ua-theme-windowbar:#08190f;
  --ua-theme-sidebar:#061f12;
  --ua-theme-sidebar-item:#12562d;
  --ua-theme-input:#07190f;
  --ua-theme-input-text:#ecfff2;
  --ua-theme-table-head:#104326;
  --ua-theme-table-row:#0a2113;
  --ua-theme-table-row-alt:#0d2a19;
  --ua-theme-menu:#07180e;
  --ua-theme-modal:#0c1a12;
  --ua-theme-alert:#11341f;
  --ua-theme-security-alert:#45171f;
}

body.ua-design-v2{
  --ua-ds-text:var(--ua-text);
  --ua-ds-title:color-mix(in srgb,var(--ua-text) 92%,white 8%);
  --ua-ds-muted:color-mix(in srgb,var(--ua-text) 64%,transparent);
  --ua-ds-line:var(--ua-border);
  --ua-ds-line-strong:var(--ua-border-strong);
  --ua-clean-frame-line:var(--ua-border);
  --ua-clean-frame-line-soft:color-mix(in srgb,var(--ua-border) 58%,transparent);
  --ua-ds-input:color-mix(in srgb,var(--ua-theme-input) 82%,transparent);
  --ua-ds-table-head:color-mix(in srgb,var(--ua-theme-table-head) 88%,transparent);
  --ua-ds-table-row:color-mix(in srgb,var(--ua-theme-table-row) 76%,transparent);
  --ua-ds-table-row-alt:color-mix(in srgb,var(--ua-theme-table-row-alt) 78%,transparent);
  --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-border);
  --sb3-text:var(--ua-ds-title);
  --sb3-text-soft:var(--ua-ds-muted);
  --sb3-accent:var(--ua-accent);
  --sb3-cyan:var(--ua-accent-2);
}

body.ua-design-v2.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) 78%,black 22%)) !important;
  color:var(--ua-ds-text) !important;
}

body.ua-design-v2.ua-authed :where(.ua-unified-stats,.ua-page-windowbar,.ua-sb3,.ua-sb3-flyout-host,.dropdown-menu,.ua-menu,.nocx-user-menu-panel,.modal-content,.popover,.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-table-wrap,.table-responsive,.ua-extracted-head,.ua-manual-head,.ua-page-head,.ua-page-toolbar,.ua-filterbar,.ua-subnav,.ua-atabs){
  border-color:var(--ua-ds-line) !important;
  color:var(--ua-ds-text) !important;
}

body.ua-design-v2.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;
}

body.ua-design-v2.ua-authed :where(.ua-sb3-ic,.ua-page-winbtn,.nocx-stat-ico,.ua-modal-icon-btn){
  background:color-mix(in srgb,var(--ua-accent) 13%,var(--ua-theme-input)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 24%,transparent) !important;
  color:var(--ua-ds-title) !important;
}

body.ua-design-v2.ua-authed :where(.btn,button.btn,a.btn,.ua-btn,.exa-btn){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-surface-2) 74%,white 4%),color-mix(in srgb,var(--ua-theme-surface) 88%,black 8%)) !important;
  border-color:var(--ua-ds-line) !important;
  color:var(--ua-ds-title) !important;
}

body.ua-design-v2.ua-authed :where(.btn-primary,.btn-success,.ua-action-primary,.fin-btn,.ua-comms-btn--primary,.ua-comms-btn--gold,.secmon-btn--gold,.mtw-btn.gold,.vg-btn-primary,.up-btn-primary,.exa-btn-primary){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 62%,white 10%) !important;
  color:color-mix(in srgb,var(--ua-theme-page-bg) 86%,black 14%) !important;
}

body.ua-design-v2.ua-authed :where(.btn-danger,.btn-outline-danger,.ua-alert-danger,.sec-btn.danger,.mtw-danger){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-security-alert) 76%,#ef4444 24%),color-mix(in srgb,var(--ua-theme-security-alert) 88%,black 10%)) !important;
  border-color:color-mix(in srgb,var(--ua-theme-security-alert) 58%,#fca5a5 18%) !important;
  color:#fff !important;
}

body.ua-design-v2.ua-authed :where(.btn-warning,.btn.is-yellow,.badge-warning,.alert-warning){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent-2) 64%,#f59e0b 36%),color-mix(in srgb,var(--ua-accent) 64%,#d97706 36%)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 46%,#f59e0b 30%) !important;
  color:color-mix(in srgb,var(--ua-theme-page-bg) 86%,black 14%) !important;
}

body.ua-design-v2.ua-authed :where(a:not(.btn),.ua-link,.dropdown-item,.ua-item,.ua-sb3-link){
  color:color-mix(in srgb,var(--ua-accent-2) 72%,var(--ua-ds-title) 28%) !important;
}

body.ua-design-v2.ua-authed :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text,.select2-selection){
  background:color-mix(in srgb,var(--ua-theme-input) 84%,transparent) !important;
  color:var(--ua-theme-input-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-design-v2.ua-authed :where(.table thead th,table thead th,.ua-table thead th){
  background:color-mix(in srgb,var(--ua-theme-table-head) 90%,transparent) !important;
  color:var(--ua-ds-title) !important;
}

body.ua-design-v2.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) 78%,transparent) !important;
}

body.ua-design-v2.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) 80%,transparent) !important;
}

body.ua-design-v2.ua-authed :where(.form-check-input,.custom-control-input){
  accent-color:var(--ua-accent) !important;
}

body.ua-design-v2.ua-authed :where(.badge,.label,.ua-state-pill){
  border-color:color-mix(in srgb,var(--ua-accent) 24%,transparent) !important;
}

html:has(> body.ua-subscriber-modal-embed),
body.ua-subscriber-modal-embed.ua-design-v2,
body.ua-frame-context.ua-subscriber-modal-embed.ua-design-v2{
  background:
    radial-gradient(720px 420px at 92% 0%,color-mix(in srgb,var(--ua-accent) 13%,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-subscriber-modal-embed .ua-shell.ua-embed,
body.ua-subscriber-modal-embed .ua-main,
body.ua-subscriber-modal-embed .ua-page,
body.ua-subscriber-modal-embed .content-wrapper,
body.ua-subscriber-modal-embed .ua-subscriber-child-page,
body.ua-subscriber-modal-embed .ua-subscriber-child-page section.content,
body.ua-subscriber-modal-embed .ua-subscriber-child-page .content,
body.ua-subscriber-modal-embed .ua-subscriber-child-page .container,
body.ua-subscriber-modal-embed .ua-subscriber-child-page .container-fluid{
  background:transparent !important;
  color:var(--ua-ds-text) !important;
}

body.ua-subscriber-modal-embed .ua-subscriber-child-page :where(.card,.box,.panel,.history-card,.ua-history-clear-card,.sa-card,.sa-summary,.sa-kpi,.mt-sync-shell,.mt-report-card,.ua-import-progress,.table-responsive,.modal-content,.list-group-item,.accordion-item,.bg-white,.bg-light,.alert-light,.alert-secondary,[style*="background:#fff"],[style*="background: #fff"],[style*="background:#ffffff"],[style*="background: #ffffff"],[style*="background:white"],[style*="background: white"],[style*="background:#d9f6ff"],[style*="background: #d9f6ff"]){
  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) 88%,transparent),color-mix(in srgb,var(--ua-theme-surface-2) 78%,transparent)) !important;
  background-color:transparent !important;
  color:var(--ua-ds-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-subscriber-modal-embed .ua-subscriber-child-page :where(.history-pill,.ua-history-clear-stat,.ua-history-clear-option,.sa-field,.sa-summary,.sa-kpi,.mt-stat,.form-group,.ua-field,.form-check){
  background:color-mix(in srgb,var(--ua-theme-input) 76%,transparent) !important;
  color:var(--ua-ds-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-subscriber-modal-embed .ua-subscriber-child-page :where(h1,h2,h3,h4,h5,h6,b,strong,label,.form-label,.sa-field label,.card-title,.history-title,.ua-history-clear-title){
  color:var(--ua-ds-title) !important;
  text-shadow:none !important;
}

body.ua-subscriber-modal-embed .ua-subscriber-child-page :where(.text-muted,.small,small,.history-meta small,.sa-field small,.sa-kpi-title,.history-meta,.mt-sync-subtitle,.mt-stat .label,.mt-empty-report){
  color:var(--ua-ds-muted) !important;
}

body.ua-subscriber-modal-embed .ua-subscriber-child-page :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select,.input-group-text){
  background:color-mix(in srgb,var(--ua-theme-input) 86%,transparent) !important;
  color:var(--ua-theme-input-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-design-v2 :where(.ua-sa-box,.ua-sa-card,.ua-sa-denied-card,.ua-sa-denied-inline,.ua-clear-confirm-box),
:where(.ua-super-admin-confirm-page .ua-sa-card,.ua-sa-denied-card,.ua-sa-denied-inline){
  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) 92%,transparent),color-mix(in srgb,var(--ua-theme-page-bg) 82%,black 14%)) !important;
  color:var(--ua-ds-text) !important;
  border-color:var(--ua-ds-line) !important;
}

body.ua-design-v2 :where(.ua-sa-title,.ua-sa-label,.ua-sa-denied-inline h3,.ua-sa-denied-card h2,.ua-sa-denied-card a,.ua-clear-confirm-head,.ua-history-clear-title,.sie-modal-title),
:where(.ua-sa-title,.ua-sa-label,.ua-sa-denied-inline h3,.ua-sa-denied-card h2,.ua-sa-denied-card a){
  color:color-mix(in srgb,var(--ua-accent-2) 72%,var(--ua-ds-title) 28%) !important;
}

body.ua-design-v2 :where(.ua-sa-input),
:where(.ua-super-admin-confirm-page .ua-sa-input){
  background:color-mix(in srgb,var(--ua-theme-input) 88%,white 10%) !important;
  color:var(--ua-theme-input-text) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 42%,transparent) !important;
}

body.ua-design-v2 :where(.ua-sa-btn.gold),
:where(.ua-super-admin-confirm-page .ua-sa-btn.gold){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent)) !important;
  color:color-mix(in srgb,var(--ua-theme-page-bg) 86%,black 14%) !important;
}

/* Theme-specific component palettes: text, buttons, bars and sidebar. */
body.ua-theme-armoury_dark{
  --ua-control-bg:#202a3d;
  --ua-control-bg-hover:#2c3850;
  --ua-control-text:#edf4ff;
  --ua-control-border:rgba(255,207,77,.34);
  --ua-primary-text:#111827;
  --ua-stat-chip-bg:#141b2a;
  --ua-stat-chip-text:#edf4ff;
  --ua-stat-icon-bg:#2a210f;
  --ua-stat-icon-text:#ffcf4d;
  --ua-sidebar-text:#edf4ff;
  --ua-sidebar-item-bg:#283247;
}
body.ua-theme-turquoise_isp{
  --ua-control-bg:#09535a;
  --ua-control-bg-hover:#0b746e;
  --ua-control-text:#f4fffc;
  --ua-control-border:#2fb8ac;
  --ua-primary-text:#032b2f;
  --ua-stat-chip-bg:#073f45;
  --ua-stat-chip-text:#f4fffc;
  --ua-stat-icon-bg:#0a5d5b;
  --ua-stat-icon-text:#67e8f9;
  --ua-sidebar-text:#f4fffc;
  --ua-sidebar-item-bg:#0a7770;
  --ua-theme-sidebar-item:#0a7770;
}
body.ua-theme-dark_blue{
  --ua-control-bg:#123a6f;
  --ua-control-bg-hover:#18549c;
  --ua-control-text:#eaf2ff;
  --ua-control-border:#4f8cff;
  --ua-primary-text:#06152b;
  --ua-stat-chip-bg:#0d274a;
  --ua-stat-chip-text:#eaf2ff;
  --ua-stat-icon-bg:#0f345f;
  --ua-stat-icon-text:#9cc7ff;
  --ua-sidebar-text:#eaf2ff;
  --ua-sidebar-item-bg:#123a6f;
}
body.ua-theme-whmcs_blue{
  --ua-control-bg:#e8f1ff;
  --ua-control-bg-hover:#d3e5ff;
  --ua-control-text:#0b2654;
  --ua-control-border:#9ec5ff;
  --ua-primary-text:#ffffff;
  --ua-stat-chip-bg:#edf5ff;
  --ua-stat-chip-text:#0b2654;
  --ua-stat-icon-bg:#dbeafe;
  --ua-stat-icon-text:#155eb8;
  --ua-sidebar-text:#f8fbff;
  --ua-sidebar-item-bg:#1d5f9f;
  --ua-theme-sidebar-item:#1d5f9f;
}
body.ua-theme-light_clean{
  --ua-control-bg:#e7f4f2;
  --ua-control-bg-hover:#d4eeeb;
  --ua-control-text:#0e403d;
  --ua-control-border:#99c8c2;
  --ua-primary-text:#ffffff;
  --ua-stat-chip-bg:#eef7f6;
  --ua-stat-chip-text:#102033;
  --ua-stat-icon-bg:#d9f5f1;
  --ua-stat-icon-text:#0f766e;
  --ua-sidebar-text:#f8fbff;
  --ua-sidebar-item-bg:#1f5f5a;
  --ua-theme-sidebar-item:#1f5f5a;
}
body.ua-theme-neon_net{
  --ua-control-bg:#10233a;
  --ua-control-bg-hover:#143d64;
  --ua-control-text:#eafffb;
  --ua-control-border:#22d3ee;
  --ua-primary-text:#03131a;
  --ua-stat-chip-bg:#071b2b;
  --ua-stat-chip-text:#eafffb;
  --ua-stat-icon-bg:#072e3d;
  --ua-stat-icon-text:#a7f3d0;
  --ua-sidebar-text:#eafffb;
  --ua-sidebar-item-bg:#103d56;
}
body.ua-theme-green_isp{
  --ua-control-bg:#123f27;
  --ua-control-bg-hover:#176334;
  --ua-control-text:#ecfff2;
  --ua-control-border:#2eb66a;
  --ua-primary-text:#04190d;
  --ua-stat-chip-bg:#0d2f1a;
  --ua-stat-chip-text:#ecfff2;
  --ua-stat-icon-bg:#0f3b22;
  --ua-stat-icon-text:#86efac;
  --ua-sidebar-text:#ecfff2;
  --ua-sidebar-item-bg:#12562d;
}

body.ua-design-v2.ua-authed :where(.nocx-stat-chip:not(.nocx-stat-chip--brand),.ua-shell-alert-chip > summary.nocx-stat-chip,.nocx-user-chip > summary){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-stat-chip-bg,var(--ua-theme-topbar)) 92%,white 5%),color-mix(in srgb,var(--ua-stat-chip-bg,var(--ua-theme-topbar)) 88%,black 10%)) !important;
  color:var(--ua-stat-chip-text,var(--ua-ds-title)) !important;
  border-color:color-mix(in srgb,var(--ua-control-border,var(--ua-border)) 72%,transparent) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.ua-design-v2.ua-authed :where(.nocx-stat-chip--brand,.btn-primary,.btn-success,.ua-action-primary,.fin-btn,.ua-comms-btn--primary,.ua-comms-btn--gold,.secmon-btn--gold,.mtw-btn.gold,.vg-btn-primary,.up-btn-primary,.exa-btn-primary){
  color:var(--ua-primary-text,color-mix(in srgb,var(--ua-theme-page-bg) 86%,black 14%)) !important;
}
body.ua-design-v2.ua-authed :where(.nocx-stat-ico,.ua-sb3-ic,.ua-page-winbtn,.ua-modal-icon-btn){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-stat-icon-bg,var(--ua-theme-input)) 88%,white 6%),color-mix(in srgb,var(--ua-stat-icon-bg,var(--ua-theme-input)) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-stat-icon-text,var(--ua-accent)) 42%,transparent) !important;
  color:var(--ua-stat-icon-text,var(--ua-accent-2)) !important;
}
body.ua-shell-chrome.ua-design-v2.ua-authed .ua-unified-stats .nocx-stat-chip:not(.nocx-stat-chip--brand),
body.ua-shell-chrome.ua-design-v2.ua-authed .ua-unified-stats .ua-shell-alert-chip > summary.nocx-stat-chip,
body.ua-shell-chrome.ua-design-v2.ua-authed .ua-unified-stats .nocx-user-chip > summary{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-stat-chip-bg,var(--ua-theme-topbar)) 92%,white 5%),color-mix(in srgb,var(--ua-stat-chip-bg,var(--ua-theme-topbar)) 88%,black 10%)) !important;
  color:var(--ua-stat-chip-text,var(--ua-ds-title)) !important;
  border-color:color-mix(in srgb,var(--ua-control-border,var(--ua-border)) 72%,transparent) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.ua-shell-chrome.ua-design-v2.ua-authed .ua-unified-stats .nocx-stat-ico{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-stat-icon-bg,var(--ua-theme-input)) 88%,white 6%),color-mix(in srgb,var(--ua-stat-icon-bg,var(--ua-theme-input)) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-stat-icon-text,var(--ua-accent)) 42%,transparent) !important;
  color:var(--ua-stat-icon-text,var(--ua-accent-2)) !important;
}
body.ua-design-v2.ua-authed :where(.btn,button.btn,a.btn,.ua-btn,.exa-btn,.ua-icon-action,button.ua-icon-action,a.ua-icon-action,summary.ua-icon-action){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-control-bg,var(--ua-theme-surface-2)) 88%,white 6%),color-mix(in srgb,var(--ua-control-bg,var(--ua-theme-surface)) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-control-border,var(--ua-border)) 76%,transparent) !important;
  color:var(--ua-control-text,var(--ua-ds-title)) !important;
  box-shadow:0 7px 16px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.13) !important;
}
body.ua-design-v2.ua-authed :where(.btn:hover,button.btn:hover,a.btn:hover,.ua-btn:hover,.exa-btn:hover,.ua-icon-action:hover,button.ua-icon-action:hover,a.ua-icon-action:hover,summary.ua-icon-action:hover){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-control-bg-hover,var(--ua-control-bg,var(--ua-theme-surface-2))) 90%,white 7%),color-mix(in srgb,var(--ua-control-bg-hover,var(--ua-control-bg,var(--ua-theme-surface))) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 48%,var(--ua-control-border,var(--ua-border)) 52%) !important;
}
body.ua-design-v2.ua-authed :where(.btn-primary,.btn-success,.ua-action-primary,.fin-btn,.ua-comms-btn--primary,.ua-comms-btn--gold,.secmon-btn--gold,.mtw-btn.gold,.vg-btn-primary,.up-btn-primary,.exa-btn-primary){
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 62%,white 10%) !important;
}
body.ua-design-v2.ua-authed :where(.btn-danger,.btn-outline-danger,.ua-alert-danger,.sec-btn.danger,.mtw-danger){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-theme-security-alert) 74%,#ef4444 26%),color-mix(in srgb,var(--ua-theme-security-alert) 88%,black 10%)) !important;
  border-color:color-mix(in srgb,var(--ua-theme-security-alert) 58%,#fca5a5 18%) !important;
  color:#fff !important;
}
body.ua-design-v2.ua-authed :where(.btn-warning,.btn.is-yellow,.badge-warning,.alert-warning){
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-accent-2) 48%,#fbbf24 52%),color-mix(in srgb,var(--ua-accent) 38%,#d97706 62%)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 34%,#f59e0b 42%) !important;
  color:#111827 !important;
}
body.ua-design-v2.ua-authed :where(.ua-sb3-item,.ua-sb3-link,.ua-sb3-t,.ua-sb3-caret,.sidebar-menu a,.nav-sidebar .nav-link){
  color:var(--ua-sidebar-text,var(--ua-ds-title)) !important;
}
body.ua-design-v2.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:linear-gradient(180deg,color-mix(in srgb,var(--ua-sidebar-item-bg,var(--ua-theme-sidebar-item)) 84%,white 4%),color-mix(in srgb,var(--ua-sidebar-item-bg,var(--ua-theme-sidebar-item)) 88%,black 8%)) !important;
  color:var(--ua-sidebar-text,var(--ua-ds-title)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 42%,transparent) !important;
}
body.ua-design-v2.ua-authed .ua-sb3-ic img{
  filter:brightness(0) invert(1) opacity(.94) !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-actions .ua-icon-action,
body.ua-design-v2.ua-authed.ua-p-subscribers details.ua-head-menu > summary.ua-icon-action,
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-sm{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-control-bg) 88%,white 6%),color-mix(in srgb,var(--ua-control-bg) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-control-border) 76%,transparent) !important;
  color:var(--ua-control-text) !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-actions .btn-success,
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-actions .btn-primary{
  background:linear-gradient(180deg,var(--ua-accent-2),var(--ua-accent)) !important;
  color:var(--ua-primary-text) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 62%,white 10%) !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-primary,
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-info,
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-success{
  color:var(--ua-stat-icon-text,var(--ua-accent-2)) !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-secondary{
  color:color-mix(in srgb,var(--ua-accent-2) 52%,#c4b5fd 48%) !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-danger,
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-table .subs-row-actions .btn-warning{
  color:#fff !important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers .subsx-actions .ua-icon-action:hover,
body.ua-design-v2.ua-authed.ua-p-subscribers details.ua-head-menu[open] > summary.ua-icon-action,
body.ua-design-v2.ua-authed.ua-p-subscribers .ua-filter-active-icon{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ua-control-bg-hover) 90%,white 7%),color-mix(in srgb,var(--ua-control-bg-hover) 88%,black 8%)) !important;
  border-color:color-mix(in srgb,var(--ua-accent) 48%,var(--ua-control-border) 52%) !important;
}

/* UA unified form contract v38
   Source of truth for the program form language.  This replaces the old page-only
   Add Subscriber CSS and the previous subscriber v24-v37 override chain.
   Goals: one visual spirit, stacked labels, no horizontal-label regressions,
   and no page-local CSS dependency for the subscriber add design. */
body.ua-design-v2{
  --ua-form-page-bg:var(--ua-theme-page-bg,#0a1628);
  --ua-form-surface:var(--ua-theme-surface,#0d1b2e);
  --ua-form-input:var(--ua-theme-input,#0a1628);
  --ua-form-line:var(--ua-ds-line,rgba(19,78,74,.30));
  --ua-form-line-strong:color-mix(in srgb,var(--ua-accent,#0f766e) 42%,var(--ua-ds-line,transparent));
  --ua-form-preview-line:var(--ua-ds-line-strong,rgba(51,65,85,.82));
  --ua-form-preview-line-soft:var(--ua-ds-line,rgba(51,65,85,.62));
  --ua-form-title:var(--ua-sem-warning,#fbbf24);
  --ua-form-page-title:var(--ua-accent-2,#2dd4bf);
  --ua-form-text:var(--ua-ds-text,#e5e7eb);
  --ua-form-muted:var(--ua-sem-muted,#9ca3af);
  --ua-form-muted-soft:var(--ua-sem-muted,#6b7280);
  --ua-form-muted-faint:var(--ua-sem-faint,#4b5563);
  --ua-form-teal:var(--ua-accent-2,#5eead4);
  --ua-form-teal-strong:var(--ua-accent,#14b8a6);
  --ua-form-amber:var(--ua-sem-warning-2,#fcd34d);
  --ua-form-radius:8px;
  --ua-form-radius-sm:4px;
  --ua-form-gap:12px;
  --ua-form-card-pad:16px;
  --ua-form-control-h:34px;
  --ua-form-label-fs:12px;
  --ua-form-control-fs:14px;
  --ua-form-heading-fs:16px;
  --ua-form-page-title-fs:24px;
}

/* Program-wide form language: every page gets the same field grammar from one place. */
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page,.content-wrapper.ua-subscriber-child-page){
  color:var(--ua-form-text)!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.ua-page-v2,.ua-panel-v2,.ua-card-v2,.card,.box,.panel,.well,.se-edit-card,.history-card,.ua-history-clear-card,.mt-sync-shell,.mt-report-card,.ua-import-progress){
  border:1px solid var(--ua-form-line)!important;
  border-radius:var(--ua-form-radius)!important;
  background:var(--ua-form-surface)!important;
  background-color:var(--ua-form-surface)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--ua-form-text)!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.ua-panel-body,.card-body,.box-body,.panel-body){
  background:transparent!important;
  color:var(--ua-form-text)!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.ua-page-head,.ua-extracted-head,.ua-manual-head,.content-header){
  margin:0 0 16px!important;
  padding:0 0 12px!important;
  border:0!important;
  border-bottom:1px solid var(--ua-form-line)!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.ua-page-title h1,.ua-extracted-head h1,.ua-manual-head h1,.content-header h1,.sa-page-title h1){
  margin:0!important;
  color:var(--ua-form-page-title)!important;
  font-size:var(--ua-form-page-title-fs)!important;
  font-weight:500!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.ua-page-title p,.ua-extracted-head p,.ua-manual-head p,.content-header small){
  margin:4px 0 0!important;
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  font-weight:400!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.card-header,.box-header,.panel-heading,.ua-panel-head,.se-edit-card-head){
  padding:0 0 12px!important;
  border:0!important;
  border-bottom:1px solid var(--ua-form-line)!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--ua-form-title)!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.card-title,.box-title,.panel-title,.ua-panel-title,.se-edit-card-head h5,.se-edit-card-head h4,.se-edit-card-head h3,h3.ua-card-title){
  margin:0!important;
  color:var(--ua-form-title)!important;
  font-size:var(--ua-form-heading-fs)!important;
  font-weight:500!important;
  line-height:1.5!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.se-edit-card-head span,.card-header small,.box-header small,.panel-heading small){
  display:block!important;
  margin-top:2px!important;
  color:var(--ua-form-muted-faint)!important;
  font-size:12px!important;
  font-weight:400!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form :where(label:not(.form-check-label):not(.btn):not(.sa-file-upload):not(.se-ppp-toggle-button)){
  display:block!important;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted)!important;
  font-size:var(--ua-form-label-fs)!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form :where(.form-group,.mb-3,.ua-field,.sa-field,.se-field){
  min-width:0!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select){
  width:100%!important;
  min-height:var(--ua-form-control-h)!important;
  height:var(--ua-form-control-h)!important;
  padding:6px 10px!important;
  border:1px solid var(--ua-form-line-strong)!important;
  border-radius:var(--ua-form-radius-sm)!important;
  background:var(--ua-form-input)!important;
  background-color:var(--ua-form-input)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  font-size:var(--ua-form-control-fs)!important;
  font-weight:400!important;
  line-height:1.5!important;
  box-shadow:none!important;
  outline:0!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form textarea.form-control,
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form textarea{
  min-height:58px!important;
  height:58px!important;
  resize:vertical!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-form-teal-strong)!important;
  box-shadow:none!important;
  outline:0!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form :where(small,.form-text,.text-muted){
  display:block!important;
  margin-top:8px!important;
  color:var(--ua-form-muted-faint)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) form .row{
  --bs-gutter-x:12px!important;
  --bs-gutter-y:12px!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.btn,button.btn,a.btn){
  min-height:40px!important;
  padding:8px 20px!important;
  border-radius:var(--ua-form-radius-sm)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.5!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.btn-primary,.btn-success,.ua-action-primary){
  border:0!important;
  background:linear-gradient(to right,#d97706,#f59e0b)!important;
  color:#fff!important;
}
body.ua-design-v2.ua-authed :where(.content-wrapper.ua-manual-page,.content-wrapper.ua-extracted-page) :where(.btn-outline-secondary,.btn-secondary){
  border:1px solid rgba(13,148,136,.50)!important;
  background:rgba(15,118,110,.40)!important;
  color:var(--ua-form-teal)!important;
}

/* Add Subscriber page: centralized working reference design, no page-local CSS. */
html body.ua-design-v2.ua-p-subscribers-add{
  background:var(--ua-form-page-bg)!important;
  color:#f3f4f6!important;
}
html body.ua-design-v2.ua-p-subscribers-add :where(.ua-main,.ua-page,.content-wrapper.sa-figma-page,.content-wrapper.sa-figma-page > .content,.content-wrapper.sa-figma-page .content){
  background:var(--ua-form-page-bg)!important;
  background-color:var(--ua-form-page-bg)!important;
  background-image:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page *{
  text-shadow:none!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .content{
  padding:24px!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-page-title,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-zone-title{
  display:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page form{
  margin:0!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-grid{
  display:flex!important;
  direction:rtl!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  width:100%!important;
  column-gap:16px!important;
  row-gap:16px!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-input-zone{
  display:grid!important;
  gap:7px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  direction:rtl!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-preview{
  display:grid!important;
  gap:7px!important;
  flex:0 0 384px!important;
  width:384px!important;
  min-width:0!important;
  position:sticky!important;
  top:0!important;
  direction:rtl!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-card,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-service-card,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-identity-card{
  margin:0!important;
  padding:16px!important;
  border:1px solid var(--ua-form-line)!important;
  border-radius:8px!important;
  background:var(--ua-form-surface)!important;
  background-color:var(--ua-form-surface)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  overflow:visible!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-preview .sa-card{
  border-color:var(--ua-form-preview-line)!important;
  border-radius:0!important;
  background:#111827!important;
  background-color:#111827!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-card-head{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-card-head h3{
  display:block!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-title)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
  letter-spacing:0!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-preview .sa-card-head h3{
  padding-bottom:8px!important;
  border-bottom:1px solid rgba(51,65,85,.62)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-card-body{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-form-grid{
  display:grid!important;
  gap:12px!important;
  align-items:start!important;
  width:100%!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-personal-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-service-line,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-form-grid.sa-3,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-identity-card .sa-form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(.sa-field,.sa-form-grid > .sa-field){
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-field-span-2{
  grid-column:span 2!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(.sa-field-full,.sa-field-span-full){
  grid-column:1/-1!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-field label:not(.sa-file-upload){
  display:block!important;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted)!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select){
  width:100%!important;
  min-height:34px!important;
  height:34px!important;
  padding:6px 10px!important;
  border:1px solid var(--ua-form-line-strong)!important;
  border-radius:4px!important;
  background:var(--ua-form-input)!important;
  background-color:var(--ua-form-input)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.5!important;
  outline:0!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-form-teal-strong)!important;
  outline:0!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-field textarea.form-control{
  min-height:58px!important;
  height:58px!important;
  resize:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(.sa-field small,.sa-inline-note){
  display:block!important;
  margin-top:8px!important;
  color:var(--ua-form-muted-faint)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin-inline-start:6px!important;
  padding:0!important;
  border:1px solid rgba(20,184,166,.55)!important;
  border-radius:50%!important;
  background:rgba(15,118,110,.22)!important;
  color:var(--ua-form-teal)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:help!important;
  vertical-align:middle!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip--section{
  transform:translateY(-1px)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip::after{
  content:attr(data-tip);
  position:absolute;
  z-index:50;
  inset:auto auto calc(100% + 8px) 50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:320px;
  padding:8px 10px;
  border:1px solid rgba(20,184,166,.35);
  border-radius:6px;
  background:#07111f;
  color:var(--ua-form-text);
  font-size:12px;
  font-weight:500;
  line-height:1.55;
  text-align:right;
  white-space:normal;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease,visibility .12s ease;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip:hover::after,
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip:focus-visible::after{
  opacity:1;
  visibility:visible;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip.sa-ip-hint--error{
  border-color:rgba(248,113,113,.65)!important;
  background:rgba(127,29,29,.28)!important;
  color:#fca5a5!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-help-tip.sa-ip-hint--success{
  border-color:rgba(52,211,153,.65)!important;
  background:rgba(6,95,70,.25)!important;
  color:#6ee7b7!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-file-upload{
  display:grid!important;
  place-items:center!important;
  min-height:70px!important;
  padding:12px!important;
  border:2px dashed var(--ua-form-line-strong)!important;
  border-radius:4px!important;
  background:transparent!important;
  cursor:pointer!important;
  text-align:center!important;
  transition:border-color .15s ease!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-file-upload:hover{
  border-color:rgba(13,148,136,.60)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-file-upload input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-file-upload span{
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  line-height:1.25!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-file-upload small{
  margin-top:2px!important;
  color:var(--ua-form-muted-faint)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(.sa-kpi,.sa-summary){
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:12px!important;
  border-radius:0!important;
  background:#0b1220!important;
  background-color:#0b1220!important;
  background-image:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-kpi{
  border:1px solid rgba(51,65,85,.78)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-kpi + .sa-kpi{
  margin-top:12px!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary{
  border:1px solid rgba(51,65,85,.78)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-kpi-title{
  display:block!important;
  margin:0 0 4px!important;
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  font-weight:400!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-kpi-value{
  display:block!important;
  color:var(--ua-form-text)!important;
  font-size:14px!important;
  font-weight:400!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(#passPreview,#ratePreview,#profilePreview){
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary ul{
  display:grid!important;
  grid-template-columns:none!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary li{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.5!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary li:nth-child(5){
  padding-top:10px!important;
  border-top:1px solid var(--ua-form-line)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary li:nth-child(8),
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary li:nth-child(11){
  padding-top:10px!important;
  border-top:1px solid rgba(51,65,85,.62)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-summary strong{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:var(--ua-form-text)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.5!important;
  text-align:left!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page :where(#speedPricePreview,#packagePricePreview,#feePreview){
  color:var(--ua-form-title)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page #totalPreview{
  color:var(--ua-form-amber)!important;
  font-weight:500!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions{
  display:flex!important;
  direction:rtl!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  margin:8px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions .btn{
  flex:1 1 0!important;
  min-width:0!important;
  min-height:40px!important;
  padding:8px 20px!important;
  border-radius:4px!important;
  background-image:none!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.5!important;
  transition:all .15s ease!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions .btn-success{
  border:0!important;
  background:linear-gradient(to right,#d97706,#f59e0b)!important;
  color:#fff!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions .btn-success:hover{
  background:linear-gradient(to right,#f59e0b,#fbbf24)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions .btn-outline-secondary{
  border:1px solid rgba(51,65,85,.88)!important;
  background:#111827!important;
  color:var(--ua-form-text)!important;
}
html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.sa-figma-page .sa-actions .btn-outline-secondary:hover{
  background:#1f2937!important;
}


/* Edit subscriber and sibling subscriber forms use the same contract, not a second design. */
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .ua-page-v2,
body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page .ua-page-v2{
  padding:8px!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .ua-panel-v2{
  padding:16px!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .ua-panel-body{
  padding:0!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-edit-card{
  padding:16px!important;
  margin:0 0 16px!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-edit-card-head{
  margin:0 0 12px!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-form-grid,.se-form-grid.se-3,.se-form-grid.se-4,.se-pppoe-line,.se-identity-upload-grid){
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
  width:100%!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-field,.se-form-grid > .se-field){
  display:block!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-field-wide,.se-field-full,.se-service-address-field){
  grid-column:1/-1!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-static-ip-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px 40px!important;
  gap:8px!important;
  align-items:center!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-ip-suggest-btn,.se-ip-help-btn){
  width:40px!important;
  min-width:40px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-check-field .form-check{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit input[type="checkbox"].form-check-input{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-file-upload-field input[type="file"]{
  height:auto!important;
  min-height:34px!important;
}
body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-edit-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  margin-top:16px!important;
  padding-top:12px!important;
  border-top:1px solid var(--ua-form-line)!important;
}

/* Subscriber modal/context density: same system, compact scale only. */
body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page{
  --ua-form-card-pad:10px;
  --ua-form-gap:8px;
  --ua-form-control-h:29px;
  --ua-form-label-fs:11px;
  --ua-form-control-fs:11.5px;
  min-width:0!important;
  overflow-x:hidden!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page :where(section.content,.content,.ua-page-v2,.ua-panel-v2,.ua-panel-body,.ua-extracted-content,.ua-manual-content,.history-shell,.history-wrap,.sa-wrap,.ua-history-clear-shell,.mt-sync-wrap){
  padding:7px!important;
  margin:0!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-grid{
  gap:10px!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-preview{
  flex-basis:300px!important;
  width:300px!important;
  top:8px!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-personal-grid,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-service-line,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-identity-card .sa-form-grid,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit :where(.se-form-grid,.se-service-line,.se-pppoe-line,.se-identity-upload-grid){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-page-title{
  display:none!important;
}


/* Add Subscriber embedded/dashboard context: remove the old turquoise field shells.
   The field container is layout only; only the actual input/control may draw a line. */
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page :where(.sa-field,.sa-form-grid > .sa-field){
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!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;
}
body.ua-design-v2 .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;
  background:transparent!important;
  color:var(--ua-form-muted)!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select){
  width:100%!important;
  min-height:34px!important;
  height:34px!important;
  padding:6px 10px!important;
  border:1px solid rgba(51,65,85,.72)!important;
  border-radius:4px!important;
  background:var(--ua-form-input)!important;
  background-color:var(--ua-form-input)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.5!important;
  outline:0!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border-color:rgba(20,184,166,.60)!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-field textarea.form-control{
  min-height:58px!important;
  height:58px!important;
  resize:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page :where(.sa-card,.sa-service-card,.sa-identity-card){
  border-color:rgba(30,41,59,.78)!important;
  background:var(--ua-form-surface)!important;
  background-color:var(--ua-form-surface)!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-preview .sa-card{
  border-color:rgba(30,41,59,.82)!important;
  border-radius:0!important;
  background:#111827!important;
  background-color:#111827!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page :where(.sa-kpi,.sa-summary){
  border-color:rgba(51,65,85,.78)!important;
  border-radius:0!important;
  background:#0b1220!important;
  background-color:#0b1220!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-file-upload{
  border-color:rgba(51,65,85,.78)!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-add.sa-figma-page .sa-file-upload:hover{
  border-color:rgba(20,184,166,.42)!important;
}
body.ua-subscriber-modal-embed .content-wrapper:is(.ua-sub-child-history,.ua-sub-child-history-clear,.ua-sub-child-distribution,.ua-sub-child-archive,.ua-sub-child-sync-mikrotik,.ua-sub-child-mikrotik-import,.ua-sub-child-ppp-import,.ua-sub-child-finance-payments) :where(.card,.box,.panel,.history-card,.ua-history-clear-card,.mt-sync-shell,.mt-report-card,.ua-import-progress,.table-responsive){
  padding:10px!important;
  margin:0 0 8px!important;
  border-radius:var(--ua-form-radius)!important;
}
body.ua-subscriber-modal-embed .content-wrapper:is(.ua-sub-child-history,.ua-sub-child-history-clear,.ua-sub-child-distribution,.ua-sub-child-archive,.ua-sub-child-sync-mikrotik,.ua-sub-child-mikrotik-import,.ua-sub-child-ppp-import,.ua-sub-child-finance-payments) :where(form.row,form > .row,.row,.history-grid,.ua-history-clear-grid){
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:8px!important;
  margin-inline:0!important;
  --bs-gutter-x:0!important;
  --bs-gutter-y:0!important;
}
body.ua-subscriber-modal-embed .content-wrapper:is(.ua-sub-child-history,.ua-sub-child-history-clear,.ua-sub-child-distribution,.ua-sub-child-archive,.ua-sub-child-sync-mikrotik,.ua-sub-child-mikrotik-import,.ua-sub-child-ppp-import,.ua-sub-child-finance-payments) [class*="col-"]{
  width:auto!important;
  max-width:none!important;
  flex:initial!important;
  padding-inline:0!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page :where(.table td,.table th,table td,table th){
  padding:5px 7px!important;
  font-size:11.5px!important;
  line-height:1.25!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-subscriber-child-page :where(.btn,.btn-sm,.btn-xs,button.btn,a.btn){
  min-height:29px!important;
  padding:5px 10px!important;
  border-radius:var(--ua-form-radius-sm)!important;
  font-size:11.5px!important;
  line-height:1.1!important;
}

@media(max-width:1180px){
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-grid,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-grid{
    flex-direction:column!important;
  }
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-preview{
    position:relative!important;
    top:auto!important;
    width:100%!important;
    flex:1 1 auto!important;
  }
}
@media(max-width:900px){
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-personal-grid,
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-service-line,
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-identity-card .sa-form-grid,
  body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-form-grid,.se-service-line,.se-pppoe-line,.se-identity-upload-grid),
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-personal-grid,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-service-line,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-add .sa-identity-card .sa-form-grid,
  body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit :where(.se-form-grid,.se-service-line,.se-pppoe-line,.se-identity-upload-grid){
    grid-template-columns:1fr!important;
  }
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add :where(.sa-field-span-2,.sa-field-full,.sa-field-span-full),
  body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit :where(.se-field-wide,.se-field-full,.se-service-address-field){
    grid-column:1/-1!important;
  }
}
@media(max-width:760px){
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .content{
    padding:12px!important;
  }
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-actions,
  body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-edit-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  html body.ua-design-v2.ua-p-subscribers-add .content-wrapper.ua-sub-child-add .sa-actions .btn,
  body.ua-design-v2.ua-authed .content-wrapper.ua-sub-child-edit .se-edit-actions .btn{
    width:100%!important;
    min-width:0!important;
  }
}

/* UA central read-only record contract v1
   Source of truth for subscriber/detail views. Page adapters may only set layout/scope. */
:root{
  --ua-read-action-radius:6px;
  --ua-read-card-border:1px solid var(--ua-form-preview-line,rgba(51,65,85,.82));
  --ua-read-card-padding:14px 14px 13px;
}
.ua-read-shell{
  direction:rtl;
  color:var(--ua-form-text,var(--ua-ds-title,#e5e7eb));
  font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);
}
.ua-read-card{
  border:var(--ua-read-card-border);
  border-radius:0;
  padding:var(--ua-read-card-padding);
  background:transparent;
  background-color:transparent;
  background-image:none;
  box-shadow:none;
  color:var(--ua-form-text,#e5e7eb);
}
.ua-read-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ua-read-hero h3{
  margin:0 0 3px;
  color:var(--ua-form-title,#fbbf24);
  font-size:18px;
  font-weight:500;
  line-height:1.5;
  text-shadow:none;
}
.ua-read-subline{
  color:var(--ua-form-muted-soft,#6b7280);
  font-size:12px;
  font-weight:400;
  line-height:1.55;
}
.ua-read-subline b{
  color:var(--ua-form-text,#e5e7eb);
  font-weight:500;
}
.ua-read-badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
}
.ua-read-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:var(--ua-read-action-radius,6px);
  border:0;
  background:color-mix(in srgb,var(--ua-form-input,#0a1628) 78%,transparent);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  font-size:12px;
  font-weight:500;
  line-height:1.1;
  box-shadow:none;
}
.ua-read-badge.ua-ok{border-color:color-mix(in srgb,var(--ua-form-teal-strong,#14b8a6) 40%,var(--ua-form-preview-line,#334155) 60%);color:var(--ua-form-teal,#5eead4);}
.ua-read-badge.ua-warn{border-color:color-mix(in srgb,var(--ua-form-amber,#fcd34d) 42%,var(--ua-form-preview-line,#334155) 58%);color:var(--ua-form-amber,#fcd34d);}
.ua-read-badge.ua-bad{border-color:color-mix(in srgb,var(--ua-theme-security-alert,#ef4444) 54%,var(--ua-form-preview-line,#334155) 46%);color:#fecaca;}
.ua-read-badge.ua-info{border-color:var(--ua-form-preview-line-soft,rgba(51,65,85,.62));color:var(--ua-form-muted,#9ca3af);}
.ua-read-section-title{
  display:block;
  margin:0 0 12px;
  padding:0;
  border:0;
  border-bottom:0;
  background:transparent;
  color:var(--ua-form-title,#fbbf24);
  font-size:16px;
  font-weight:500;
  line-height:1.5;
  text-align:right;
  text-shadow:none;
}
.ua-read-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.ua-read-field{
  display:block;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  background-image:none;
  box-shadow:none;
}
.ua-read-field.is-wide{grid-column:1/-1;}
.ua-read-label{
  display:block;
  min-height:18px;
  margin:0 0 4px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ua-form-muted,#9ca3af);
  font-size:var(--ua-form-label-fs,12px);
  font-weight:500;
  line-height:1.5;
  text-align:right;
}
.ua-read-value{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:100%;
  min-height:var(--ua-form-control-h,34px);
  margin:0;
  padding:6px 10px;
  border:0;
  outline:0;
  border-radius:0;
  background:var(--ua-form-input,#0a1628);
  background-color:var(--ua-form-input,#0a1628);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  font-size:var(--ua-form-control-fs,14px);
  font-weight:400;
  line-height:1.5;
  text-align:right;
  word-break:break-word;
  box-shadow:none;
}
.ua-read-field.is-wide .ua-read-value{
  align-items:flex-start;
  min-height:58px;
  padding-top:8px;
}
.ua-read-actions{
  position:static;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 0;
  padding:10px 0 0;
  border-top:0;
  background:transparent;
  background-image:none;
  box-shadow:none;
}
.ua-read-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:var(--ua-read-action-radius,6px);
  border:1px solid var(--ua-form-preview-line,rgba(51,65,85,.82));
  background:var(--ua-form-surface,#111827);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  text-decoration:none;
  font-size:12px;
  font-weight:500;
  line-height:1.2;
  box-shadow:none;
}
.ua-read-action.ua-btn-primary,
.ua-read-action.is-primary{border-color:color-mix(in srgb,var(--ua-form-teal-strong,#14b8a6) 42%,var(--ua-form-preview-line,#334155) 58%);color:var(--ua-form-teal,#5eead4);}
.ua-read-action.ua-btn-secondary,
.ua-read-action.is-secondary{border-color:var(--ua-form-preview-line,rgba(51,65,85,.82));color:var(--ua-form-text,#e5e7eb);}
.ua-read-action.ua-btn-warning,
.ua-read-action.is-warning{border-color:color-mix(in srgb,var(--ua-form-amber,#fcd34d) 44%,var(--ua-form-preview-line,#334155) 56%);color:var(--ua-form-amber,#fcd34d);}
.ua-read-action.ua-btn-danger,
.ua-read-action.is-danger{border-color:color-mix(in srgb,var(--ua-theme-security-alert,#ef4444) 54%,var(--ua-form-preview-line,#334155) 46%);color:#fecaca;}


/* UA PAGEWISE: subscribers_edit clean adapter v1
   Page-by-page rebuild. This block scopes only subscribers_edit.php.
   Visual values come from the central UA form contract variables. */
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .content-wrapper.ua-sub-child-edit.ua-pagewise-edit-clean,
body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.ua-pagewise-edit-clean{
  color:var(--ua-form-text,#e5e7eb)!important;
  background:transparent!important;
  background-image:none!important;
  text-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .content,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .content{
  padding:16px!important;
  background:transparent!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean :where(.ua-page-v2,.ua-panel-v2,.ua-panel-body),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean :where(.ua-page-v2,.ua-panel-v2,.ua-panel-body){
  width:100%!important;
  max-width:none!important;
  margin:0!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;
  overflow:visible!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .ua-page-head,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .ua-page-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
  padding:0 0 12px!important;
  border:0!important;
  border-bottom:1px solid var(--ua-form-preview-line-soft,rgba(51,65,85,.62))!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .ua-page-title h1,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .ua-page-title h1{
  margin:0!important;
  color:var(--ua-form-title,#fbbf24)!important;
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .ua-page-title p,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .ua-page-title p{
  margin:3px 0 0!important;
  color:var(--ua-form-muted-soft,#6b7280)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.6!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean form,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean form{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-card,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-card{
  margin:0 0 12px!important;
  padding:14px!important;
  border:var(--ua-read-card-border,1px solid var(--ua-form-preview-line,rgba(51,65,85,.82)))!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
  color:var(--ua-form-text,#e5e7eb)!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-card-head,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-card-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:0!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-card-head h5,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-card-head h5{
  margin:0!important;
  color:var(--ua-form-title,#fbbf24)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.5!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-card-head span,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-card-head span{
  margin:0!important;
  color:var(--ua-form-muted-faint,#4b5563)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.55!important;
  text-align:left!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid.se-service-line,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid.se-service-line{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid.se-pppoe-line,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid.se-pppoe-line{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid.se-identity-upload-grid,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid.se-identity-upload-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-field,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-field{
  display:block!important;
  min-width:0!important;
  width:100%!important;
  margin:0!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;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean :where(.se-service-address-field,.se-field-wide),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean :where(.se-service-address-field,.se-field-wide){
  grid-column:1/-1!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-field label:not(.form-check-label),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-field label:not(.form-check-label){
  display:block!important;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted,#9ca3af)!important;
  font-size:var(--ua-form-label-fs,12px)!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select){
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:var(--ua-form-control-h,34px)!important;
  height:var(--ua-form-control-h,34px)!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid var(--ua-form-preview-line,rgba(51,65,85,.82))!important;
  border-radius:0!important;
  background:var(--ua-form-input,#0a1628)!important;
  background-color:var(--ua-form-input,#0a1628)!important;
  background-image:none!important;
  color:var(--ua-form-text,#e5e7eb)!important;
  font-size:var(--ua-form-control-fs,14px)!important;
  font-weight:400!important;
  line-height:1.5!important;
  text-align:right!important;
  box-shadow:none!important;
  outline:0!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-field textarea.form-control,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-field textarea.form-control{
  min-height:58px!important;
  height:58px!important;
  resize:vertical!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-form-teal-strong,#14b8a6)!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-static-ip-control,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-static-ip-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 34px 34px!important;
  gap:8px!important;
  align-items:center!important;
  width:100%!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean :where(.se-ip-suggest-btn,.se-ip-help-btn),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean :where(.se-ip-suggest-btn,.se-ip-help-btn){
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  border-radius:6px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-check-field,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-check-field{
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-check-field .form-check,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-check-field .form-check{
  display:flex!important;
  align-items:center!important;
  min-height:var(--ua-form-control-h,34px)!important;
  margin:22px 0 0!important;
  padding:0!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-ppp-toggle-button,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-ppp-toggle-button{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  min-height:var(--ua-form-control-h,34px)!important;
  padding:6px 10px!important;
  border:1px solid var(--ua-form-preview-line,rgba(51,65,85,.82))!important;
  border-radius:0!important;
  background:var(--ua-form-input,#0a1628)!important;
  color:var(--ua-form-text,#e5e7eb)!important;
  font-size:var(--ua-form-control-fs,14px)!important;
  font-weight:400!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-file-link,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-file-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 6px!important;
  color:var(--ua-form-teal,#5eead4)!important;
  text-decoration:none!important;
  font-size:12px!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean input[type="file"].form-control,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean input[type="file"].form-control{
  height:auto!important;
  min-height:40px!important;
  padding:8px 10px!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-actions,
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:14px 0 0!important;
  padding:12px 0 0!important;
  border:0!important;
  border-top:1px solid var(--ua-form-preview-line-soft,rgba(51,65,85,.62))!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean :where(.btn,button.btn,a.btn),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean :where(.btn,button.btn,a.btn){
  min-height:34px!important;
  padding:7px 14px!important;
  border-radius:6px!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:400!important;
}
body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean :where(.ua-alert,.alert),
body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean :where(.ua-alert,.alert){
  border-radius:0!important;
  box-shadow:none!important;
}
@media(max-width:1180px){
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid,
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid.se-service-line,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid.se-service-line{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .content,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .content{padding:10px!important;}
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid,
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-form-grid.se-service-line,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-form-grid.se-service-line{
    grid-template-columns:1fr!important;
  }
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-actions,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-actions{
    align-items:stretch!important;
  }
  body.ua-design-v2.ua-authed.ua-p-subscribers-edit .ua-pagewise-edit-clean .se-edit-actions .btn,
  body.ua-design-v2.ua-subscriber-modal-embed .ua-pagewise-edit-clean .se-edit-actions .btn{
    width:100%!important;
  }
}


/* ======================================================================
   PAGEWISE CONTRACT: subscribers_edit.php shortcut/modal
   Source of shape remains the central form system. This page block is scoped
   only to the edit subpage and rebuilds it after isolating old se-* chrome.
   ====================================================================== */
body.ua-design-v2.ua-p-subscribers-edit .content-wrapper.sa-edit-page,
body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper.sa-edit-page{
  background:transparent!important;color:var(--ua-ds-text)!important;box-shadow:none!important;border:0!important;margin:0!important;width:100%!important;max-width:none!important;
}
body.ua-design-v2.ua-p-subscribers-edit .content-wrapper.sa-edit-page > .content,
body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper.sa-edit-page > .content{padding:10px 14px!important;margin:0!important;background:transparent!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-wrap,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-wrap,
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page form,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page form{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-card,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-card{margin:0 0 10px!important;padding:12px 14px!important;border:1px solid var(--ua-ds-line)!important;border-radius:0!important;background:color-mix(in srgb,var(--ua-theme-surface) 42%,transparent)!important;box-shadow:none!important;overflow:visible!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-card-head,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-card-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;margin:0 0 12px!important;padding:0 0 8px!important;border:0!important;border-bottom:1px solid color-mix(in srgb,var(--ua-ds-line) 78%,transparent)!important;background:transparent!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-card-head h3,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-card-head h3{margin:0!important;color:var(--ua-accent)!important;font-size:16px!important;font-weight:900!important;line-height:1.25!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-card-head span,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-card-head span{color:var(--ua-muted)!important;font-size:12px!important;font-weight:700!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid{display:grid!important;gap:10px 12px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-3,
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-identity-upload-grid,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-3,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-identity-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-4,
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-service-line,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-4,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-service-line{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-pppoe-line,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-pppoe-line{grid-template-columns:minmax(160px,.78fr) repeat(4,minmax(0,1fr))!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field{display:block!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page :where(.sa-field-full,.sa-field-span-full),
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page :where(.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field-span-2,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field-span-2{grid-column:span 2!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field label:not(.sa-file-upload):not(.form-check-label),
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field label:not(.sa-file-upload):not(.form-check-label){display:block!important;margin:0 0 4px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ua-muted)!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field :where(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select),
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field :where(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select){width:100%!important;min-height:36px!important;height:36px!important;margin:0!important;padding:7px 10px!important;border:1px solid var(--ua-ds-line)!important;border-radius:0!important;background:color-mix(in srgb,var(--ua-theme-input) 86%,transparent)!important;color:var(--ua-theme-input-text)!important;box-shadow:none!important;outline:0!important;font-size:13px!important;font-weight:800!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field textarea.form-control,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field textarea.form-control{height:auto!important;min-height:44px!important;resize:vertical!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select):focus,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field :where(input:not([type="file"]),select,textarea,.form-control,.form-select):focus{border-color:color-mix(in srgb,var(--ua-accent) 46%,var(--ua-ds-line))!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--ua-accent) 14%,transparent)!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .se-static-ip-control,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .se-static-ip-control{display:grid!important;grid-template-columns:minmax(0,1fr) 36px 36px!important;gap:6px!important;align-items:stretch!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .se-static-ip-control .btn,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .se-static-ip-control .btn{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .se-inline-hidden-hint,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .se-inline-hidden-hint{display:block!important;margin-top:5px!important;color:var(--ua-muted)!important;font-size:11px!important;line-height:1.45!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-check-field .form-check,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-check-field .form-check{min-height:36px!important;display:flex!important;align-items:center!important;margin:0!important;padding:0!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .se-ppp-toggle-input,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .se-ppp-toggle-input{position:absolute!important;opacity:0!important;pointer-events:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .se-ppp-toggle-button,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .se-ppp-toggle-button{min-height:36px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0!important;padding:7px 10px!important;border:1px solid var(--ua-ds-line)!important;border-radius:0!important;background:color-mix(in srgb,var(--ua-theme-input) 86%,transparent)!important;color:var(--ua-theme-input-text)!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-file-upload,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-file-upload{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:72px!important;margin:0!important;padding:10px!important;border:1px dashed color-mix(in srgb,var(--ua-ds-line) 86%,var(--ua-accent) 14%)!important;border-radius:0!important;background:color-mix(in srgb,var(--ua-theme-input) 70%,transparent)!important;color:var(--ua-theme-input-text)!important;cursor:pointer!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-file-upload input[type="file"],
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-file-upload input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-file-upload span,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-file-upload span{color:var(--ua-accent)!important;font-weight:900!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-file-upload small,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-file-upload small{color:var(--ua-muted)!important;font-weight:700!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-current-file,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-current-file{display:inline-flex!important;align-items:center!important;gap:5px!important;margin:0 0 6px!important;color:var(--ua-accent)!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-actions,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;margin:12px 0 0!important;padding:10px 0 0!important;border-top:1px solid color-mix(in srgb,var(--ua-ds-line) 72%,transparent)!important;background:transparent!important;box-shadow:none!important;}
body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-actions .btn,
body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-actions .btn{min-height:36px!important;padding:8px 14px!important;border-radius:6px!important;font-weight:900!important;}
@media(max-width:1100px){body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-3,body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-4,body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-service-line,body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-pppoe-line,body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid.sa-identity-upload-grid,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-3,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-4,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-service-line,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-pppoe-line,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid.sa-identity-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:680px){body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-form-grid,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-form-grid{grid-template-columns:1fr!important;}body.ua-design-v2.ua-p-subscribers-edit .sa-edit-page .sa-field-span-2,body.ua-design-v2.ua-subscriber-modal-embed .sa-edit-page .sa-field-span-2{grid-column:auto!important;}}

/* PAGEWISE CONTRACT: subscribers_edit rebuilt from Add Subscriber form grammar.
   This is not a new visual system; it maps the edit page to the central sa-* contract. */
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page *{
  text-shadow:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page{
  background:var(--ua-form-page-bg)!important;
  color:var(--ua-form-text)!important;
  border:0!important;
  margin:0!important;
  width:100%!important;
  max-width:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.content,section.content){
  padding:24px!important;
  margin:0!important;
  background:var(--ua-form-page-bg)!important;
  background-color:var(--ua-form-page-bg)!important;
  background-image:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-wrap,form){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-grid{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:16px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  direction:ltr!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-input-zone{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
  direction:rtl!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-preview{
  flex:0 0 360px!important;
  width:360px!important;
  min-width:0!important;
  position:sticky!important;
  top:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
  direction:rtl!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-card,.sa-service-card,.sa-identity-card,.sa-pppoe-card){
  margin:0!important;
  padding:16px!important;
  border:1px solid var(--ua-form-line)!important;
  border-radius:8px!important;
  background:var(--ua-form-surface)!important;
  background-color:var(--ua-form-surface)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  overflow:visible!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-preview .sa-card{
  border-color:var(--ua-form-preview-line)!important;
  border-radius:0!important;
  background:#111827!important;
  background-color:#111827!important;
  background-image:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-card-head{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-card-head h3{
  display:block!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-title)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
  letter-spacing:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-card-head span{
  display:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-preview .sa-card-head h3{
  padding-bottom:8px!important;
  border-bottom:1px solid rgba(51,65,85,.62)!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-card-body{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-form-grid{
  display:grid!important;
  gap:12px!important;
  align-items:start!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-personal-grid,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-form-grid.sa-3,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-identity-card .sa-form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-service-line{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-pppoe-line{
  grid-template-columns:minmax(150px,.72fr) repeat(4,minmax(0,1fr))!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-field,.sa-form-grid > .sa-field){
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!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;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-field-span-2{grid-column:span 2!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-field label:not(.sa-file-upload):not(.form-check-label){
  display:block!important;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted)!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-field :where(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;
  padding:6px 10px!important;
  border:1px solid rgba(51,65,85,.72)!important;
  border-radius:4px!important;
  background:var(--ua-form-input)!important;
  background-color:var(--ua-form-input)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.5!important;
  outline:0!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-field :where(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select):focus{
  border-color:rgba(20,184,166,.60)!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-field textarea.form-control{
  min-height:58px!important;
  height:58px!important;
  resize:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .se-static-ip-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 34px 34px!important;
  gap:8px!important;
  align-items:center!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.se-ip-suggest-btn,.se-ip-help-btn){
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .se-inline-hidden-hint{
  display:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-check-field .form-check{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .se-ppp-toggle-input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .se-ppp-toggle-button{
  min-height:34px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid rgba(51,65,85,.72)!important;
  border-radius:4px!important;
  background:var(--ua-form-input)!important;
  color:var(--ua-form-text)!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-file-upload{
  display:grid!important;
  place-items:center!important;
  min-height:70px!important;
  padding:12px!important;
  border:2px dashed rgba(51,65,85,.78)!important;
  border-radius:4px!important;
  background:transparent!important;
  cursor:pointer!important;
  text-align:center!important;
  transition:border-color .15s ease!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-file-upload:hover{border-color:rgba(13,148,136,.60)!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-file-upload input[type="file"]{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-file-upload span{
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:500!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-file-upload small,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-current-file{
  color:var(--ua-form-muted-faint)!important;
  font-size:12px!important;
  font-weight:400!important;
  text-decoration:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-kpi,.sa-summary){
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:12px!important;
  border:1px solid rgba(51,65,85,.78)!important;
  border-radius:0!important;
  background:#0b1220!important;
  background-color:#0b1220!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-kpi + .sa-kpi{margin-top:12px!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-kpi-title{
  display:block!important;
  margin:0 0 4px!important;
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  font-weight:400!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-kpi-value{
  display:block!important;
  color:var(--ua-form-text)!important;
  font-size:14px!important;
  font-weight:400!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-summary ul{
  display:grid!important;
  grid-template-columns:none!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-summary li{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ua-form-muted-soft)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.5!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-summary li:nth-child(3),
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-summary li:nth-child(5){
  padding-top:10px!important;
  border-top:1px solid rgba(51,65,85,.62)!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-summary strong{
  color:var(--ua-form-text)!important;
  font-size:12px!important;
  font-weight:400!important;
  text-align:left!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-actions{
  display:flex!important;
  direction:rtl!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-actions .btn{
  flex:1 1 0!important;
  min-width:0!important;
  min-height:40px!important;
  padding:8px 16px!important;
  border-radius:6px!important;
  background-image:none!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.5!important;
  transition:all .15s ease!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-actions .btn-primary{
  border:0!important;
  background:linear-gradient(to right,#d97706,#f59e0b)!important;
  color:#fff!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-actions .btn-secondary,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-actions .btn-dark{
  border:1px solid rgba(51,65,85,.88)!important;
  background:#111827!important;
  color:var(--ua-form-text)!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.content,section.content){padding:8px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-grid{gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-input-zone{gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-preview{flex-basis:300px!important;width:300px!important;gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-card,.sa-service-card,.sa-identity-card,.sa-pppoe-card){padding:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-form-grid{gap:8px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-personal-grid,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-form-grid.sa-3,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-identity-card .sa-form-grid,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-service-line,
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-pppoe-line{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-field-span-2,.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
@media(max-width:1180px){
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-grid{flex-direction:column!important;}
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page .sa-preview{position:relative!important;top:auto!important;width:100%!important;flex:1 1 auto!important;}
}
@media(max-width:900px){
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-personal-grid,.sa-service-line,.sa-pppoe-line,.sa-identity-card .sa-form-grid){grid-template-columns:1fr!important;}
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-figma-page :where(.sa-field-span-2,.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
}

/* PAGEWISE FINAL CONTRACT: subscribers_edit rebuilt exactly on Add Subscriber grammar.
   Scope is one page only. Visual values remain central vars; this block only isolates legacy and maps layout. */
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page *{
  text-shadow:none!important;
  box-shadow:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.content,section.content){
  background:var(--ua-form-page-bg)!important;
  background-color:var(--ua-form-page-bg)!important;
  background-image:none!important;
  color:var(--ua-form-text)!important;
  border:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.content,section.content){padding:24px!important;margin:0!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-wrap,form){
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-grid{
  display:flex!important;direction:rtl!important;flex-direction:row!important;align-items:flex-start!important;width:100%!important;gap:16px!important;margin:0!important;padding:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-input-zone{
  flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:16px!important;direction:rtl!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-preview{
  flex:0 0 340px!important;width:340px!important;min-width:300px!important;position:sticky!important;top:0!important;display:flex!important;flex-direction:column!important;gap:16px!important;direction:rtl!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-card,.sa-service-card,.sa-identity-card,.sa-pppoe-card){
  margin:0!important;padding:16px!important;border:1px solid var(--ua-form-line)!important;border-radius:0!important;background:var(--ua-form-surface)!important;background-color:var(--ua-form-surface)!important;background-image:none!important;color:var(--ua-form-text)!important;overflow:visible!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-preview .sa-card{
  border-color:var(--ua-form-preview-line)!important;background:#111827!important;background-color:#111827!important;background-image:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-card-head,.sa-card-body){
  display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-card-head h3{
  display:block!important;margin:0 0 12px!important;padding:0!important;color:var(--ua-form-title)!important;font-size:16px!important;font-weight:500!important;line-height:1.4!important;text-align:right!important;border:0!important;background:transparent!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-card-head span{display:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-form-grid{
  display:grid!important;gap:12px!important;align-items:start!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-personal-grid,.sa-form-grid.sa-3,.sa-identity-card .sa-form-grid,.sa-edit-service-grid,.sa-edit-pppoe-grid){
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-edit-pppoe-grid{margin-top:12px!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-field,.sa-form-grid > .sa-field){
  display:block!important;position:relative!important;width:100%!important;min-width:0!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;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field-span-2{grid-column:span 2!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field label:not(.sa-file-upload):not(.form-check-label){
  display:block!important;margin:0 0 4px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ua-form-muted)!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;text-align:right!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field :where(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;padding:6px 10px!important;border:1px solid var(--ua-form-line-strong)!important;border-radius:0!important;background:var(--ua-form-input)!important;background-color:var(--ua-form-input)!important;background-image:none!important;color:var(--ua-form-text)!important;font-size:14px!important;font-weight:400!important;line-height:1.5!important;outline:0!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field textarea.form-control{min-height:58px!important;height:58px!important;resize:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field :where(input,select,textarea,.form-control,.form-select):focus{border-color:rgba(20,184,166,.60)!important;outline:0!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .se-static-ip-control{display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;gap:8px!important;align-items:center!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .se-ip-suggest-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:6px!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .se-inline-hidden-hint{display:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .se-ppp-toggle-input{position:absolute!important;opacity:0!important;pointer-events:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .se-ppp-toggle-button{
  min-height:34px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0!important;padding:6px 10px!important;border:1px solid var(--ua-form-line-strong)!important;border-radius:0!important;background:var(--ua-form-input)!important;color:var(--ua-form-text)!important;cursor:pointer!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-file-upload{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:72px!important;margin:0!important;padding:10px!important;border:2px dashed var(--ua-form-line-strong)!important;border-radius:0!important;background:transparent!important;color:var(--ua-form-text)!important;cursor:pointer!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-file-upload input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-file-upload span{color:var(--ua-accent)!important;font-weight:900!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-file-upload small,
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-current-file{color:var(--ua-form-muted)!important;font-size:12px!important;font-weight:700!important;text-decoration:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-kpi,.sa-summary){
  display:block!important;width:100%!important;margin:0!important;padding:12px!important;border:1px solid var(--ua-form-preview-line)!important;border-radius:0!important;background:#0b1220!important;background-color:#0b1220!important;background-image:none!important;
}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-kpi + .sa-kpi{margin-top:12px!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-kpi-title{display:block!important;margin:0 0 4px!important;color:var(--ua-form-muted-soft)!important;font-size:12px!important;font-weight:400!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-kpi-value{display:block!important;color:var(--ua-form-text)!important;font-size:14px!important;font-weight:400!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-summary ul{display:grid!important;gap:10px!important;margin:0!important;padding:0!important;list-style:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-summary li{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ua-form-muted-soft)!important;font-size:12px!important;line-height:1.5!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-summary strong{color:var(--ua-form-text)!important;font-weight:400!important;text-align:left!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-actions{display:flex!important;direction:rtl!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex-wrap:wrap!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-actions .btn{flex:1 1 0!important;min-width:0!important;min-height:40px!important;padding:8px 14px!important;border-radius:6px!important;font-size:13px!important;font-weight:600!important;background-image:none!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-actions .btn-primary{border:0!important;background:linear-gradient(to right,#d97706,#f59e0b)!important;color:#fff!important;}
body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-actions :where(.btn-secondary,.btn-dark){border:1px solid var(--ua-form-preview-line)!important;background:#111827!important;color:var(--ua-form-text)!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.content,section.content){padding:8px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-grid{flex-direction:row!important;gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-input-zone{gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-preview{flex:0 0 300px!important;width:300px!important;min-width:280px!important;gap:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-card,.sa-service-card,.sa-identity-card,.sa-pppoe-card){padding:10px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-form-grid{gap:8px!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-personal-grid,.sa-edit-service-grid,.sa-edit-pppoe-grid,.sa-identity-card .sa-form-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-field-span-2{grid-column:span 2!important;}
body.ua-subscriber-modal-embed .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
@media(max-width:760px){
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-grid{flex-direction:column!important;}
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page .sa-preview{position:relative!important;top:auto!important;width:100%!important;flex:1 1 auto!important;}
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-personal-grid,.sa-edit-service-grid,.sa-edit-pppoe-grid,.sa-identity-card .sa-form-grid){grid-template-columns:1fr!important;}
  body.ua-design-v2 .content-wrapper.ua-sub-child-edit.sa-edit-rebuilt-page :where(.sa-field-span-2,.sa-field-full,.sa-field-span-full){grid-column:1/-1!important;}
}

/* UA FINAL CONTRACT — remove inner field/value frames globally.
   Cards keep their own frames; controls/read-values/kpi/summary/file-upload are content surfaces only. */
html body.ua-design-v2.ua-authed .content-wrapper :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea,
  .form-control,
  .form-select,
  .ua-read-value,
  .sa-kpi,
  .sa-summary,
  .sa-file-upload,
  .se-current-ip,
  .se-static-ip-control,
  .ua-form-value,
  .ua-value-box
),
html body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea,
  .form-control,
  .form-select,
  .ua-read-value,
  .sa-kpi,
  .sa-summary,
  .sa-file-upload,
  .se-current-ip,
  .se-static-ip-control,
  .ua-form-value,
  .ua-value-box
){
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
html body.ua-design-v2.ua-authed .content-wrapper :where(.sa-field,.se-field,.ua-field,.form-group,.mb-3,.sa-form-grid > .sa-field),
html body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper :where(.sa-field,.se-field,.ua-field,.form-group,.mb-3,.sa-form-grid > .sa-field){
  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.ua-design-v2.ua-authed .content-wrapper :where(.sa-kpi,.sa-summary,.sa-file-upload,.ua-read-value),
html body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper :where(.sa-kpi,.sa-summary,.sa-file-upload,.ua-read-value){
  background:var(--ua-form-input,#0b1220)!important;
  background-color:var(--ua-form-input,#0b1220)!important;
  background-image:none!important;
}
html body.ua-design-v2.ua-authed .content-wrapper :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus,
html body.ua-design-v2.ua-subscriber-modal-embed .content-wrapper :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* UA subscribers_edit rebuilt-page isolation: legacy extracted subscribers_edit rules
   are fenced in ua_extracted_pages.css. This scoped central contract keeps the rebuilt
   page on the same visual system when opened as a modal/iframe or full page. */
.content-wrapper.ua-edit-contract-page :where(.ua-form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select){
  border-radius:0!important;
  box-shadow:none!important;
  background-image:none!important;
}
.content-wrapper.ua-edit-contract-page :where(.ua-form-icon-btn,.ua-form-ip-suggest-btn,#suggestStaticIpBtn){
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background-image:none!important;
}
.content-wrapper.ua-edit-contract-page .ua-form-help-tip{
  width:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  flex:0 0 22px!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:#1d4ed8!important;
  background-image:none!important;
  color:#fff!important;
  line-height:1!important;
  box-shadow:none!important;
}
.content-wrapper.ua-edit-contract-page .ua-edit-upload-grid .ua-form-file-upload{
  border:2px dashed var(--ua-form-upload-line,rgba(148,163,184,.55))!important;
  border-radius:0!important;
  background:rgba(7,18,32,.16)!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* ======================================================================
   UA central form contract v2
   Source of truth for rebuilt form/read pages. Page adapters may only
   arrange layout and map legacy markup; all visuals are defined here.
   ====================================================================== */
.ua-form-shell{
  direction:rtl;
  color:var(--ua-form-text,#e5e7eb);
  font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);
}
.ua-form-card{
  margin:0;
  padding:var(--ua-form-card-pad,16px);
  border:1px solid var(--ua-form-line,rgba(19,78,74,.30));
  border-radius:0;
  background:var(--ua-form-surface,#0d1b2e);
  background-color:var(--ua-form-surface,#0d1b2e);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  box-shadow:none;
  text-shadow:none;
  overflow:visible;
}
.ua-form-preview .ua-form-card{
  border-color:var(--ua-form-preview-line,rgba(51,65,85,.82));
  background:#111827;
  background-color:#111827;
}
.ua-form-card-head{
  display:block;
  margin:0 0 14px;
  padding:0 0 10px;
  border:0;
  border-bottom:1px solid var(--ua-form-line,rgba(19,78,74,.30));
  background:transparent;
  background-image:none;
  box-shadow:none;
}
.ua-form-card-head h3{
  margin:0;
  padding:0;
  border:0;
  color:var(--ua-form-title,#fbbf24);
  font-size:var(--ua-form-heading-fs,16px);
  font-weight:500;
  line-height:1.5;
  text-align:right;
  text-shadow:none;
}
.ua-form-card-body{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  background-image:none;
  box-shadow:none;
}
.ua-form-field{
  display:block;
  position:relative;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  background-image:none;
  box-shadow:none;
  text-shadow:none;
}
.ua-form-field > label:not(.ua-form-file-upload):not(.form-check-label),
.ua-form-field label:not(.ua-form-file-upload):not(.form-check-label):not(.se-ppp-toggle-button){
  display:block;
  margin:0 0 4px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ua-form-muted,#9ca3af);
  font-size:var(--ua-form-label-fs,12px);
  font-weight:500;
  line-height:1.5;
  text-align:right;
  box-shadow:none;
}
.ua-form-control,
.ua-form-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select){
  width:100%;
  min-height:var(--ua-form-control-h,34px);
  height:var(--ua-form-control-h,34px);
  margin:0;
  padding:6px 10px;
  border:1px solid var(--ua-form-line-strong,rgba(51,65,85,.72));
  border-radius:0;
  outline:0;
  background:var(--ua-form-input,#0a1628);
  background-color:var(--ua-form-input,#0a1628);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  font-size:var(--ua-form-control-fs,14px);
  font-weight:400;
  line-height:1.5;
  box-shadow:none;
  text-shadow:none;
}
.ua-form-field textarea.ua-form-control,
.ua-form-field textarea.form-control,
.ua-form-field textarea{
  min-height:58px;
  height:58px;
  resize:vertical;
}
.ua-form-control:focus,
.ua-form-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select):focus{
  border-color:var(--ua-form-teal-strong,#14b8a6);
  outline:0;
  box-shadow:none;
}
.ua-form-help-tip{
  width:22px;
  min-width:22px;
  max-width:22px;
  height:22px;
  min-height:22px;
  max-height:22px;
  flex:0 0 22px;
  aspect-ratio:1/1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:6px;
  padding:0;
  box-sizing:border-box;
  border:1px solid rgba(125,211,252,.78);
  border-radius:50%;
  appearance:none;
  -webkit-appearance:none;
  background:#1d4ed8;
  background-image:none;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow:none;
  text-shadow:none;
  vertical-align:middle;
}
.ua-form-help-tip:hover,.ua-form-help-tip:focus{
  background:#2563eb;
  color:#ffffff;
  border-color:rgba(147,197,253,.92);
  outline:0;
  box-shadow:none;
}
.ua-form-check{margin:0;padding:0;min-height:var(--ua-form-control-h,34px);display:flex;align-items:center;}
.ua-form-check-field .se-ppp-toggle-input{position:absolute;opacity:0;pointer-events:none;}
.ua-form-check-field .se-ppp-toggle-button{
  min-height:var(--ua-form-control-h,34px);
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0;
  padding:6px 10px;
  border:1px solid var(--ua-form-line-strong,rgba(51,65,85,.72));
  border-radius:0;
  background:var(--ua-form-input,#0a1628);
  color:var(--ua-form-text,#e5e7eb);
  box-shadow:none;
}
.ua-form-file-upload{
  display:grid;
  place-items:center;
  min-height:70px;
  padding:12px;
  border:2px dashed var(--ua-form-upload-line,rgba(148,163,184,.55));
  border-radius:0;
  background:rgba(7,18,32,.16);
  background-image:none;
  color:var(--ua-form-muted-soft,#6b7280);
  cursor:pointer;
  text-align:center;
  box-shadow:none;
}
.ua-form-file-upload:hover,.ua-form-file-upload:focus-within{
  border-color:var(--ua-form-upload-line-hover,rgba(125,211,252,.72));
  background:rgba(7,18,32,.22);
  box-shadow:none;
}
.ua-form-file-upload input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.ua-form-file-upload span{color:var(--ua-form-muted-soft,#6b7280);font-size:12px;font-weight:500;line-height:1.25;}
.ua-form-file-upload small,.ua-form-current-file{color:var(--ua-form-muted-faint,#4b5563);font-size:12px;font-weight:400;text-decoration:none;}
.ua-form-kpi,.ua-form-summary{
  display:block;
  width:100%;
  margin:0;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  background-image:none;
  box-shadow:none;
}
.ua-form-kpi + .ua-form-kpi{margin-top:10px;border-top:1px solid var(--ua-form-preview-line-soft,rgba(51,65,85,.62));padding-top:10px;}
.ua-form-kpi-title{display:block;margin:0 0 4px;color:var(--ua-form-muted-soft,#6b7280);font-size:12px;font-weight:400;line-height:1.45;}
.ua-form-kpi-value{display:block;color:var(--ua-form-text,#e5e7eb);font-size:14px;font-weight:400;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ua-form-summary ul{display:grid;gap:9px;width:100%;margin:0;padding:0;list-style:none;}
.ua-form-summary li{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0;border:0;background:transparent;color:var(--ua-form-muted-soft,#6b7280);font-size:12px;font-weight:400;line-height:1.5;}
.ua-form-summary li:nth-child(3),.ua-form-summary li:nth-child(5){padding-top:9px;border-top:1px solid var(--ua-form-preview-line-soft,rgba(51,65,85,.62));}
.ua-form-summary strong{color:var(--ua-form-text,#e5e7eb);font-size:12px;font-weight:400;text-align:left;}
.ua-form-actions{margin:0;padding:0;border:0;background:transparent;background-image:none;box-shadow:none;}
.ua-form-actions :where(.btn,button.btn,a.btn){border-radius:6px;box-shadow:none;}
.ua-form-icon-btn{
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  flex:0 0 34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(234,179,8,.72);
  border-radius:0;
  background:#eab308;
  color:#07111f;
  box-shadow:none;
}
.ua-form-icon-btn i,.ua-form-icon-btn .fa{font-size:14px;line-height:1;margin:0;color:currentColor;}
.ua-form-icon-btn:hover,.ua-form-icon-btn:focus{
  background:#facc15;
  border-color:rgba(250,204,21,.88);
  color:#07111f;
  outline:0;
  box-shadow:none;
}
.ua-form-actions .ua-form-action-primary,
.ua-form-actions .ua-form-action-secondary{
  min-height:34px;
  height:34px;
  padding:0 14px;
  border-radius:6px;
  box-shadow:none;
}
.ua-form-actions .ua-form-action-primary{
  border-color:rgba(34,197,94,.72);
}
.ua-form-actions .ua-form-action-secondary{
  border-color:var(--ua-form-line-strong,rgba(51,65,85,.72));
}
.ua-form-actions.ua-form-actions--pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:100%;
  margin-top:0;
}
.ua-form-actions.ua-form-actions--pair :where(.ua-form-action-primary,.ua-form-action-secondary){
  width:100%;
  min-width:0;
  min-height:44px;
  height:44px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:6px;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:none;
  background-image:none;
}
.ua-form-actions.ua-form-actions--pair :where(.ua-form-action-primary,.ua-form-action-secondary) i{
  font-size:14px;
  line-height:1;
  margin:0;
  color:currentColor;
}
.ua-form-actions.ua-form-actions--pair :where(.ua-form-action-primary,.ua-form-action-secondary) span{
  display:inline-block;
  line-height:1;
}

/* UA subscribers_edit contract v2.1: the rebuilt edit page no longer carries
   ua-subscriber-child-page / ua-sub-child-edit legacy classes. This block is
   the central visual source for its controls; adapters may only arrange layout. */
.content-wrapper.ua-edit-contract-page :where(.ua-form-card,.ua-form-field,.ua-form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.form-control,.form-select,.ua-form-icon-btn,.ua-form-ip-suggest-btn,#suggestStaticIpBtn,.se-ppp-toggle-button,.ua-form-file-upload){
  border-radius:0!important;
  box-shadow:none!important;
  background-image:none!important;
}
.content-wrapper.ua-edit-contract-page .ua-form-help-tip{
  width:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  flex:0 0 22px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
  background:#2563eb!important;
  background-image:none!important;
  border:1px solid rgba(147,197,253,.92)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.content-wrapper.ua-edit-contract-page .ua-edit-upload-grid .ua-form-file-upload{
  border:2px dashed var(--ua-form-upload-line,rgba(148,163,184,.58))!important;
  border-radius:0!important;
}

/* ======================================================================
   UA edit action component
   Root cause note: save/encrypt buttons must not carry Bootstrap `.btn`
   classes, because several legacy frame/modal layers reskin `.btn` after
   the central form contract. This component is the only visual contract
   for subscribers_edit action buttons; the page adapter may only arrange
   layout around it.
   ====================================================================== */
.content-wrapper.ua-edit-contract-page .ua-edit-action-panel{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin:0;
  padding:10px;
  border:1px solid rgba(71,85,105,.58);
  border-radius:14px;
  background:rgba(5,13,25,.72);
  background-image:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  direction:rtl;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:auto;
  min-height:54px;
  padding:9px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--ua-form-line-strong,rgba(51,65,85,.72));
  border-radius:11px;
  background:var(--ua-form-input,#0b1220);
  background-color:var(--ua-form-input,#0b1220);
  background-image:none;
  color:var(--ua-form-text,#e5e7eb);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.14);
  font-family:var(--ua-font-family,Tahoma,Arial,sans-serif);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  text-align:center;
  cursor:pointer;
  text-decoration:none;
  appearance:none;
  -webkit-appearance:none;
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease,color .16s ease;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit:hover{
  transform:translateY(-1px);
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit:active{
  transform:translateY(0);
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit:focus-visible{
  outline:2px solid rgba(96,165,250,.9);
  outline-offset:2px;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit i,
.content-wrapper.ua-edit-contract-page .ua-edit-submit .fa{
  display:inline-flex;
  flex:0 0 28px;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(255,255,255,.075);
  font-size:13px;
  line-height:1;
  margin:0;
  color:currentColor;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit span{
  display:block;
  min-width:0;
  line-height:1.35;
  color:currentColor;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-save{
  grid-column:1/-1;
  border-color:rgba(52,211,153,.68);
  background:linear-gradient(135deg,#22c55e,#16a466);
  background-color:#1db765;
  color:#04170c;
  font-size:13px;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-save:hover,
.content-wrapper.ua-edit-contract-page .ua-edit-submit-save:focus-visible{
  background:linear-gradient(135deg,#32d56f,#1db873);
  background-color:#2dd66a;
  border-color:rgba(110,231,183,.95);
  color:#03150a;
  box-shadow:0 7px 18px rgba(22,163,74,.2);
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-encrypt{
  border-color:rgba(245,158,11,.5);
  background:linear-gradient(145deg,rgba(75,48,8,.82),rgba(19,26,40,.98));
  background-color:#201b13;
  color:#fde68a;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-encrypt:hover,
.content-wrapper.ua-edit-contract-page .ua-edit-submit-encrypt:focus-visible{
  background:linear-gradient(145deg,rgba(105,67,8,.9),rgba(25,32,47,.98));
  background-color:#302510;
  border-color:rgba(251,191,36,.88);
  color:#fff3bd;
  box-shadow:0 7px 18px rgba(120,74,4,.18);
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-apply{
  border-color:rgba(251,191,36,.76);
  background:linear-gradient(135deg,#d99007,#b66a04);
  background-color:#c77b05;
  color:#1a0d00;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-apply:hover,
.content-wrapper.ua-edit-contract-page .ua-edit-submit-apply:focus-visible{
  border-color:#fcd34d;
  background:linear-gradient(135deg,#eba513,#ca7908);
  color:#160b00;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-print{
  border-color:rgba(34,211,238,.45);
  background:linear-gradient(145deg,rgba(8,73,91,.78),rgba(13,31,50,.98));
  background-color:#0b2b3a;
  color:#cffafe;
}
.content-wrapper.ua-edit-contract-page .ua-edit-submit-print:hover,
.content-wrapper.ua-edit-contract-page .ua-edit-submit-print:focus-visible{
  border-color:rgba(103,232,249,.9);
  background:linear-gradient(145deg,rgba(10,96,117,.88),rgba(15,40,61,.98));
  color:#fff;
  box-shadow:0 7px 18px rgba(8,145,178,.17);
}
@media (max-width:560px){
  .content-wrapper.ua-edit-contract-page .ua-edit-action-panel{
    grid-template-columns:1fr;
  }
  .content-wrapper.ua-edit-contract-page .ua-edit-submit{
    grid-column:1;
  }
}

/* ======================================================================
   UA subscribers_history central contract v1
   Visual source only. The page adapter may arrange layout but must not
   define colors, borders, shadows, or radii.
   ====================================================================== */
.content-wrapper.ua-history-contract-page{
  --ua-history-bg: var(--ua-form-surface,#07111f);
  --ua-history-card: var(--ua-form-card,#0b1726);
  --ua-history-panel: var(--ua-form-section,#0d1b2c);
  --ua-history-input: var(--ua-form-input,#0b1220);
  --ua-history-line: var(--ua-form-line-strong,rgba(51,65,85,.72));
  --ua-history-line-soft: var(--ua-form-preview-line-soft,rgba(51,65,85,.50));
  --ua-history-title: var(--ua-form-title,#facc15);
  --ua-history-text: var(--ua-form-text,#e5e7eb);
  --ua-history-muted: var(--ua-form-muted-soft,#9ca3af);
  --ua-history-accent: var(--ua-accent,#eab308);
  color:var(--ua-history-text);
}
.content-wrapper.ua-history-contract-page .ua-history-shell,
.content-wrapper.ua-history-contract-page .ua-history-head,
.content-wrapper.ua-history-contract-page .ua-history-card,
.content-wrapper.ua-history-contract-page .ua-history-card-head,
.content-wrapper.ua-history-contract-page .ua-history-card-body,
.content-wrapper.ua-history-contract-page .ua-history-table-wrap,
.content-wrapper.ua-history-contract-page .ua-history-table,
.content-wrapper.ua-history-contract-page .ua-history-metric,
.content-wrapper.ua-history-contract-page .ua-history-action{
  box-shadow:none!important;
  background-image:none!important;
}
.content-wrapper.ua-history-contract-page .ua-history-head{
  border:1px solid var(--ua-history-line)!important;
  border-radius:0!important;
  background:var(--ua-history-card)!important;
  color:var(--ua-history-text)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-kicker{
  color:var(--ua-history-title)!important;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}
.content-wrapper.ua-history-contract-page .ua-history-titlebox h1{
  margin:4px 0 0;
  color:var(--ua-history-text)!important;
  font-size:20px;
  font-weight:800;
  line-height:1.3;
}
.content-wrapper.ua-history-contract-page .ua-history-titlebox p{
  margin:4px 0 0;
  color:var(--ua-history-muted)!important;
  font-size:12px;
  font-weight:500;
  line-height:1.7;
}
.content-wrapper.ua-history-contract-page .ua-history-action{
  min-height:38px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--ua-history-line)!important;
  border-radius:6px!important;
  background:var(--ua-history-input)!important;
  color:var(--ua-history-text)!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:800;
  line-height:1;
}
.content-wrapper.ua-history-contract-page .ua-history-action i{font-size:13px;line-height:1;margin:0;color:currentColor;}
.content-wrapper.ua-history-contract-page .ua-history-action-secondary{border-color:rgba(234,179,8,.62)!important;}
.content-wrapper.ua-history-contract-page .ua-history-action-dark{border-color:var(--ua-history-line)!important;}
.content-wrapper.ua-history-contract-page .ua-history-card{
  border:1px solid var(--ua-history-line)!important;
  border-radius:0!important;
  background:var(--ua-history-card)!important;
  color:var(--ua-history-text)!important;
  overflow:hidden;
}
.content-wrapper.ua-history-contract-page .ua-history-card-head{
  border:0!important;
  border-bottom:1px solid var(--ua-history-line-soft)!important;
  background:transparent!important;
}
.content-wrapper.ua-history-contract-page .ua-history-card-head h2{
  margin:0;
  color:var(--ua-history-title)!important;
  font-size:16px;
  font-weight:800;
  line-height:1.4;
}
.content-wrapper.ua-history-contract-page .ua-history-card-body{
  background:transparent!important;
  border:0!important;
}
.content-wrapper.ua-history-contract-page .ua-history-metric{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ua-history-text)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-label{
  display:block;
  margin:0 0 5px;
  color:var(--ua-history-muted)!important;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}
.content-wrapper.ua-history-contract-page .ua-history-value{
  display:block;
  width:100%;
  min-height:28px;
  padding:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ua-history-text)!important;
  font-size:13px;
  font-weight:800;
  line-height:1.6;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.content-wrapper.ua-history-contract-page .ua-history-table-wrap{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:auto;
}
.content-wrapper.ua-history-contract-page .ua-history-table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  margin:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ua-history-text)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-table thead th{
  padding:10px 12px;
  border:0!important;
  border-bottom:1px solid var(--ua-history-line-soft)!important;
  background:transparent!important;
  color:var(--ua-history-title)!important;
  font-size:12px;
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
.content-wrapper.ua-history-contract-page .ua-history-table tbody td{
  padding:9px 12px;
  border:0!important;
  border-bottom:1px solid var(--ua-history-line-soft)!important;
  background:transparent!important;
  color:var(--ua-history-text)!important;
  font-size:12px;
  font-weight:650;
  text-align:right;
  vertical-align:middle;
}
.content-wrapper.ua-history-contract-page .ua-history-table tbody tr:last-child td{border-bottom:0!important;}
.content-wrapper.ua-history-contract-page .ua-history-empty{
  color:var(--ua-history-muted)!important;
  text-align:center!important;
  font-weight:700!important;
}

/* ======================================================================
   UA subscribers_history tidy contract v2
   Root-cause page-specific central contract: header note helper and
   Basic Data value frames only. Layout remains in the adapter.
   ====================================================================== */
.content-wrapper.ua-history-contract-page .ua-history-note{
  color:var(--ua-history-muted)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-help{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0!important;
  border-radius:50%!important;
  background:#2563eb!important;
  color:#ffffff!important;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:none!important;
}
.content-wrapper.ua-history-contract-page .ua-history-card-main .ua-history-value{
  min-height:34px;
  padding:6px 10px;
  display:flex;
  align-items:center;
  border:1px solid var(--ua-history-line)!important;
  border-radius:0!important;
  background:var(--ua-history-input)!important;
  box-shadow:none!important;
}

/* ======================================================================
   UA subscribers_history header tools contract v3
   Central visual contract only. The page adapter handles layout.
   ====================================================================== */
.content-wrapper.ua-history-contract-page .ua-history-titleline-main{
  color:var(--ua-history-title)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-title-main,
.content-wrapper.ua-history-contract-page .ua-history-title-name{
  color:var(--ua-history-title)!important;
  font-size:16px;
  font-weight:900;
  line-height:1.35;
}
.content-wrapper.ua-history-contract-page .ua-history-title-name::before{
  content:"—";
  margin:0 2px 0 8px;
  color:var(--ua-history-muted)!important;
  font-weight:700;
}
@media print{
  body.ua-design-v2 .main-sidebar,
  body.ua-design-v2 .main-header,
  body.ua-design-v2 .ua-topbar,
  body.ua-design-v2 .uaFixWinHead,
  body.ua-design-v2 .ua-history-actions{
    display:none!important;
  }
  .content-wrapper.ua-history-contract-page{
    margin:0!important;
    padding:0!important;
  }
  .content-wrapper.ua-history-contract-page .ua-history-shell{
    padding:0!important;
  }
}


/* UA subscribers_history header tools contract v4: export buttons unified and help text hidden in tooltip. */
 .content-wrapper.ua-history-contract-page .ua-history-note{
  margin:0;
  padding:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:1!important;
  position:relative;
  display:inline-flex;
  align-items:center;
}
.content-wrapper.ua-history-contract-page .ua-history-help{
  cursor:help;
  position:relative;
}
.content-wrapper.ua-history-contract-page .ua-history-help::after{
  content:attr(data-tip);
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:50;
  width:max-content;
  max-width:360px;
  padding:8px 10px;
  border:1px solid var(--ua-history-line)!important;
  border-radius:0!important;
  background:var(--ua-history-input)!important;
  color:var(--ua-history-text)!important;
  font-size:12px;
  font-weight:700;
  line-height:1.6;
  white-space:normal;
  opacity:0;
  pointer-events:none;
  transform:translateY(-4px);
  transition:opacity .14s ease, transform .14s ease;
}
.content-wrapper.ua-history-contract-page .ua-history-help:hover::after,
.content-wrapper.ua-history-contract-page .ua-history-help:focus-visible::after{
  opacity:1;
  transform:translateY(0);
}
.content-wrapper.ua-history-contract-page .ua-history-action{
  min-width:86px;
  border-color:var(--ua-history-line)!important;
}
.content-wrapper.ua-history-contract-page .ua-history-action.is-loading{
  opacity:.72;
  cursor:progress;
}

/* UA subscribers_history export/print split v5
   Central visual contract only: export sink hidden and shared action color. */
.content-wrapper.ua-history-contract-page .ua-history-export-sink{
  position:absolute!important;
  width:0!important;
  height:0!important;
  border:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
.content-wrapper.ua-history-contract-page a.ua-history-action,
.content-wrapper.ua-history-contract-page button.ua-history-action{
  border-color:var(--ua-history-line)!important;
  color:var(--ua-history-text)!important;
}
