/* ======================================================================
   AIVOX v3.2 — Application shell & AI identity
   Loaded after style.css. Identity colours (from the AIVOX identity board):
   navy #0A2D62 · blue #1E6BFF · teal #00B894 · cyan #4DD0E1 · light #F5F8FC
   ====================================================================== */
:root{
 --ax-navy:#0a2d62;--ax-navy-2:#061d42;--ax-navy-3:#03112b;--ax-blue:#1e6bff;--ax-teal:#00b894;--ax-cyan:#4dd0e1;--ax-light:#f5f8fc;
 --ax-ink:#10213f;--ax-muted:#5b6b86;--ax-line:#e1e9f5;--ax-line-2:#d3dfef;
 --ax-side-w:292px;--ax-side-mini:84px;--ax-radius:18px;--ax-item-radius:12px;
 --ax-grad:linear-gradient(135deg,var(--blue,#1e6bff) 0%,#1557e0 55%,var(--ax-navy) 100%);
 --ax-grad-ai:linear-gradient(120deg,#1e6bff 0%,#4dd0e1 55%,#00b894 100%);
 --ax-shadow:0 1px 2px rgba(10,45,98,.05),0 14px 34px -16px rgba(10,45,98,.22);
 --ax-glow:0 0 0 1px rgba(77,208,225,.35),0 8px 26px -6px rgba(30,107,255,.55);
 --sidebar-bg:#0a2d62;--sidebar-text:#c9d7f2;--sidebar-accent:#4dd0e1;--sidebar-active:#1e6bff;--sidebar-border:#1c3f7a;
}
body.sidebar-shape-square{--ax-item-radius:6px}body.sidebar-shape-rounded{--ax-item-radius:12px}body.sidebar-shape-pill{--ax-item-radius:999px}
body.sidebar-font-compact{--ax-nav-font:12.5px}body.sidebar-font-normal{--ax-nav-font:13.5px}body.sidebar-font-large{--ax-nav-font:15px}

/* ---------- page canvas: full screen, no top bar ---------- */
html body.ax-shell{margin:0;min-height:100vh;color:var(--ax-ink)!important;
 background:radial-gradient(1200px 520px at 85% -10%,rgba(30,107,255,.10),transparent 60%),radial-gradient(900px 480px at 0% 0%,rgba(0,184,148,.07),transparent 60%),var(--ax-light)!important}
html body.ax-shell header{display:none!important}
html body.ax-shell:not(.auth-required) main{width:auto!important;max-width:none!important;min-height:100vh!important;box-sizing:border-box;margin:0!important;
 padding:22px clamp(16px,2.2vw,34px) 40px!important;margin-right:var(--ax-side-w)!important;transition:margin .2s ease}
html body.ax-shell[data-nav-side="left"]:not(.auth-required) main{margin-right:0!important;margin-left:var(--ax-side-w)!important}
html body.ax-shell.ax-mini:not(.auth-required) main{margin-right:var(--ax-side-mini)!important}
html body.ax-shell.ax-mini[data-nav-side="left"]:not(.auth-required) main{margin-right:0!important;margin-left:var(--ax-side-mini)!important}
body.ax-shell.auth-required .ax-sidebar,body.ax-shell.auth-required .nav-drawer-toggle{display:none!important}
.workspace-section[hidden]{display:none!important}
/* :is(#ax-boost) lifts specificity above old id rules such as #settings-workspace */
body.ax-shell main>:is(.workspace-section,#ax-boost){background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
body.ax-shell [data-panel].ax-filtered{display:none!important}
.ax-hidden{display:none!important}

/* ---------- sidebar ---------- */
.ax-ic{width:18px;height:18px;flex:0 0 auto;display:block}
.ax-sidebar{position:fixed;top:0;bottom:0;right:0;z-index:60;width:var(--ax-side-w);display:flex;flex-direction:column;box-sizing:border-box;color:var(--sidebar-text);
 background:radial-gradient(420px 260px at 50% -40px,rgba(77,208,225,.22),transparent 70%),radial-gradient(360px 300px at 100% 105%,rgba(0,184,148,.16),transparent 70%),
  linear-gradient(180deg,var(--sidebar-bg) 0%,color-mix(in srgb,var(--sidebar-bg) 62%,#020a1c) 58%,color-mix(in srgb,var(--sidebar-bg) 38%,#01060f) 100%);
 border-left:1px solid color-mix(in srgb,var(--sidebar-accent) 22%,transparent);box-shadow:-10px 0 40px -18px rgba(3,17,43,.6);transition:width .2s ease,transform .25s ease}
body[data-nav-side="left"] .ax-sidebar{right:auto;left:0;border-left:0;border-right:1px solid color-mix(in srgb,var(--sidebar-accent) 22%,transparent);box-shadow:10px 0 40px -18px rgba(3,17,43,.6)}
.ax-sidebar::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(180deg,#000,transparent 45%)}
.ax-brand{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 6px}
.ax-brand-logo{height:64px;width:auto;max-width:170px;object-fit:contain;filter:drop-shadow(0 6px 18px rgba(30,107,255,.45))}
.ax-sidebar .ax-icon-btn,.ax-sidebar button.ax-collapse{all:unset;box-sizing:border-box;display:inline-grid!important;place-items:center;width:36px;height:36px;border-radius:11px;cursor:pointer;
 color:#d8e6ff!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.10)!important;transition:background .15s,box-shadow .15s}
.ax-sidebar .ax-icon-btn:hover,.ax-sidebar button.ax-collapse:hover{background:rgba(77,208,225,.16)!important;box-shadow:0 0 0 1px rgba(77,208,225,.4),0 0 18px rgba(77,208,225,.25)}
.ax-sidebar .ax-icon-btn:focus-visible,.ax-sidebar button.ax-collapse:focus-visible{outline:2px solid var(--ax-cyan);outline-offset:2px}
.ax-sidebar .ax-icon-btn.is-on{color:#04122d!important;background:var(--ax-cyan)!important}
.ax-search{position:relative;z-index:1;margin:8px 14px 6px;display:flex;align-items:center;gap:8px;padding:0 12px;height:40px;border-radius:12px;background:rgba(3,14,36,.55);border:1px solid rgba(120,170,255,.18);color:#8fa6cc}
.ax-search:focus-within{border-color:rgba(77,208,225,.6);box-shadow:0 0 0 3px rgba(77,208,225,.14)}
.ax-sidebar .ax-search input{all:unset;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto!important;flex:1;min-width:0;font-size:13px;color:#eaf2ff!important;-webkit-text-fill-color:#eaf2ff}
.ax-sidebar .ax-search input::placeholder{color:#7f95bb;-webkit-text-fill-color:#7f95bb}

.ax-nav{position:relative;z-index:1;flex:1;overflow-y:auto;overflow-x:hidden;padding:6px 10px 12px;display:flex!important;flex-direction:column;gap:2px;scrollbar-width:thin;scrollbar-color:rgba(120,170,255,.25) transparent}
.ax-nav[hidden]{display:flex!important}
.ax-home{padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.07)}
#section-nav .ax-module-head,#section-nav .section-nav-tab.ax-item{all:unset;box-sizing:border-box;display:flex!important;align-items:center;gap:11px;width:100%;cursor:pointer;
 font-family:inherit;font-size:var(--ax-nav-font,13.5px)!important;line-height:1.35;color:var(--sidebar-text)!important;-webkit-text-fill-color:currentColor;border-radius:var(--ax-item-radius);transition:background .15s,color .15s,box-shadow .15s}
#section-nav .ax-module-head{padding:9px 10px;font-weight:700;color:#e6eeff!important}
#section-nav .ax-module-head:hover,#section-nav .section-nav-tab.ax-item:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
#section-nav .ax-module-head:focus-visible,#section-nav .section-nav-tab.ax-item:focus-visible{outline:2px solid var(--sidebar-accent);outline-offset:1px}
#section-nav .ax-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit!important}
.ax-module-ic{display:inline-grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:10px;color:#fff;background:var(--ax-g,linear-gradient(135deg,#1e6bff,#4dd0e1));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 14px -6px var(--ax-gc,rgba(30,107,255,.8))}
.ax-module-ic .ax-ic{width:17px;height:17px}
.ax-c1{--ax-g:linear-gradient(135deg,#1e6bff,#4dd0e1);--ax-gc:rgba(30,107,255,.9)}
.ax-c2{--ax-g:linear-gradient(135deg,#3a5bff,#1e6bff 50%,#4dd0e1);--ax-gc:rgba(58,91,255,.9)}
.ax-c3{--ax-g:linear-gradient(135deg,#00b894,#4dd0e1);--ax-gc:rgba(0,184,148,.85)}
.ax-c4{--ax-g:linear-gradient(135deg,#1e6bff,#0a2d62);--ax-gc:rgba(30,107,255,.8)}
.ax-c5{--ax-g:linear-gradient(135deg,#00b894,#1e6bff);--ax-gc:rgba(0,184,148,.85)}
.ax-c6{--ax-g:linear-gradient(135deg,#2b6cff,#5b8cff);--ax-gc:rgba(43,108,255,.85)}
.ax-c7{--ax-g:linear-gradient(135deg,#0f9fb4,#4dd0e1);--ax-gc:rgba(15,159,180,.85)}
.ax-c8{--ax-g:linear-gradient(135deg,#00a383,#00d1a7);--ax-gc:rgba(0,163,131,.85)}
.ax-c9{--ax-g:linear-gradient(135deg,#0aa47f,#4dd0e1);--ax-gc:rgba(10,164,127,.85)}
.ax-c10{--ax-g:linear-gradient(135deg,#1e6bff,#2a3fd0);--ax-gc:rgba(30,107,255,.85)}
.ax-c11{--ax-g:linear-gradient(135deg,#0a2d62,#1e4fa8);--ax-gc:rgba(30,79,168,.8)}
.ax-module-count{min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;display:inline-grid;place-items:center;border-radius:999px;font-size:10.5px;font-weight:800;color:#a9c2ea;background:rgba(255,255,255,.07)}
.ax-chev{width:15px;height:15px;color:#7f95bb;transition:transform .2s}
.ax-module.is-open>.ax-module-head .ax-chev{transform:rotate(180deg);color:var(--sidebar-accent)}
.ax-module.has-active>.ax-module-head{background:linear-gradient(90deg,rgba(30,107,255,.0),rgba(30,107,255,.16))!important}
body[data-nav-side="left"] .ax-module.has-active>.ax-module-head{background:linear-gradient(270deg,rgba(30,107,255,0),rgba(30,107,255,.16))!important}
.ax-module-items{display:none;flex-direction:column;gap:2px;margin:2px 0 6px;padding-inline-start:26px;position:relative}
.ax-module-items::before{content:"";position:absolute;top:4px;bottom:4px;inset-inline-start:25px;width:1px;background:linear-gradient(180deg,rgba(77,208,225,.45),rgba(77,208,225,0))}
.ax-module.is-open>.ax-module-items{display:flex}
#section-nav .section-nav-tab.ax-item{padding:8px 12px;position:relative;font-weight:600;color:var(--sidebar-text)!important}
#section-nav .section-nav-tab.ax-item .ax-ic{width:16px;height:16px;opacity:.8}
#section-nav .ax-home .section-nav-tab.ax-item{padding:10px;font-weight:800;color:#e6eeff!important}
#section-nav .ax-home .section-nav-tab.ax-item .ax-ic{width:32px;height:32px;padding:7px;box-sizing:border-box;border-radius:10px;background:rgba(255,255,255,.08);opacity:1}
#section-nav .section-nav-tab.ax-item.is-active{color:#fff!important;font-weight:800;
 background:linear-gradient(110deg,color-mix(in srgb,var(--sidebar-active) 92%,#000) 0%,var(--sidebar-active) 45%,color-mix(in srgb,var(--sidebar-active) 55%,var(--sidebar-accent)) 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 0 0 1px color-mix(in srgb,var(--sidebar-accent) 45%,transparent),0 10px 24px -10px var(--sidebar-active),0 0 22px -6px color-mix(in srgb,var(--sidebar-accent) 70%,transparent)!important}
#section-nav .section-nav-tab.ax-item.is-active .ax-ic{opacity:1}
#section-nav .ax-home .section-nav-tab.ax-item.is-active .ax-ic{background:rgba(255,255,255,.2)}
#section-nav .section-nav-tab.ax-item.is-active::after{content:"";position:absolute;top:8px;bottom:8px;inset-inline-end:-10px;width:3px;border-radius:3px;background:var(--sidebar-accent);box-shadow:0 0 12px var(--sidebar-accent)}
#section-nav .nav-unread-count{min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;display:inline-grid;place-items:center;border-radius:999px;font-size:10px;font-weight:800;background:#ff4d6d!important;color:#fff!important;box-shadow:0 0 12px rgba(255,77,109,.6)}
#section-nav .nav-unread-count:empty{display:none}

.ax-foot{position:relative;z-index:1;padding:10px 12px 14px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:8px;background:linear-gradient(180deg,transparent,rgba(1,8,22,.35))}
.ax-sidebar .auth-userbar.ax-user{display:flex;align-items:center;gap:10px;margin:0!important;padding:8px;border-radius:14px;background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}
.ax-sidebar .auth-userbar[hidden]{display:none!important}
.ax-avatar{display:inline-grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:12px;font-weight:800;color:#fff;background:var(--ax-grad-ai);box-shadow:0 0 0 2px rgba(255,255,255,.12),0 6px 16px -6px rgba(0,184,148,.8)}
.ax-user-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ax-sidebar #auth-user-label{color:#fff!important;-webkit-text-fill-color:#fff;font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-sidebar .ax-user-sub{color:#8fa6cc!important;-webkit-text-fill-color:#8fa6cc;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-foot-tools{display:flex;align-items:center;gap:8px}
.ax-lang{flex:1;min-width:0}
.ax-lang .ui-language-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ax-sidebar #ui-language{width:100%;height:36px;padding:0 10px;border-radius:11px;font-size:12.5px;cursor:pointer;color:#e6eeff!important;-webkit-text-fill-color:#e6eeff;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:none!important}
.ax-sidebar #ui-language option{color:#10213f;background:#fff}
.ax-sidebar .ax-version{all:unset;background:transparent!important;border:0!important;padding:0!important;display:block;text-align:center;font-size:10.5px;letter-spacing:.02em;color:#6f86ad!important;-webkit-text-fill-color:#6f86ad}

/* compact (icons only) sidebar */
body.ax-mini .ax-sidebar{width:var(--ax-side-mini)}
body.ax-mini .ax-brand{flex-direction:column;padding:14px 8px 4px}
body.ax-mini .ax-brand-logo{height:40px;max-width:64px}
body.ax-mini .ax-search,body.ax-mini .ax-module-items,body.ax-mini .ax-version,body.ax-mini .ax-lang,body.ax-mini .ax-user-text,body.ax-mini #section-nav .ax-label,body.ax-mini .ax-module-count,body.ax-mini .ax-chev{display:none!important}
body.ax-mini #section-nav .ax-module-head,body.ax-mini #section-nav .ax-home .section-nav-tab.ax-item{justify-content:center;padding:7px 0}
body.ax-mini .ax-foot-tools,body.ax-mini .ax-sidebar .auth-userbar.ax-user{flex-direction:column;justify-content:center}
body.ax-mini .ax-module.has-active>.ax-module-head .ax-module-ic{box-shadow:0 0 0 2px var(--sidebar-accent),0 0 18px var(--sidebar-accent)}

/* mobile drawer */
.nav-drawer-toggle{display:none!important}
@media(max-width:960px){
 html body.ax-shell:not(.auth-required) main,html body.ax-shell.ax-mini:not(.auth-required) main{margin:0!important;padding:16px 14px 90px!important}
 .ax-sidebar,body.ax-mini .ax-sidebar{width:min(300px,86vw);transform:translateX(105%)}
 body[data-nav-side="left"] .ax-sidebar{transform:translateX(-105%)}
 body.nav-drawer-open .ax-sidebar{transform:none}
 body.ax-mini .ax-search,body.ax-mini .ax-module-items,body.ax-mini .ax-version,body.ax-mini .ax-lang,body.ax-mini .ax-user-text,body.ax-mini #section-nav .ax-label,body.ax-mini .ax-module-count,body.ax-mini .ax-chev{display:revert!important}
 body.ax-shell:not(.auth-required) .nav-drawer-toggle{display:inline-grid!important;place-items:center;position:fixed;z-index:70;bottom:18px;inset-inline-start:16px;width:52px;height:52px;padding:0!important;border-radius:16px!important;
  color:#fff!important;background:var(--ax-grad-ai)!important;box-shadow:var(--ax-glow)!important;border:0!important}
 .nav-drawer-toggle .ax-ic{width:22px;height:22px}
 body.nav-drawer-open::after{content:"";position:fixed;inset:0;z-index:55;background:rgba(3,17,43,.45);backdrop-filter:blur(2px)}
}

/* ---------- section header, breadcrumb, quick links ---------- */
body.ax-shell .workspace-section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 18px;margin:0 0 18px!important;padding:0 0 14px!important;border-bottom:1px solid var(--ax-line)!important;background:none!important}
body.ax-shell .workspace-section-head>div:not(.ax-crumb){min-width:0}
.ax-crumb{flex:0 0 100%;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ax-muted)}
.ax-crumb i{font-style:normal;color:#9aaccb}.ax-crumb b{color:var(--blue,#1e6bff);font-weight:800}
body.ax-shell .workspace-section-head h2{display:flex!important;align-items:center;gap:12px;margin:0!important;font-size:clamp(20px,1.6vw,26px)!important;font-weight:800!important;line-height:1.3;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink);text-shadow:none!important}
body.ax-shell .workspace-section-head h2::before{content:""!important;flex:0 0 auto;width:10px!important;height:30px!important;border-radius:6px!important;border:0!important;background:var(--ax-grad-ai)!important;box-shadow:0 0 16px rgba(77,208,225,.65)!important}
body.ax-shell .workspace-section-head p{margin:6px 0 0!important;max-width:880px;color:var(--ax-muted)!important;font-size:13px!important;line-height:1.7}
body.ax-shell .screen-related-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.ax-shell .screen-related-title{font-size:11.5px!important;font-weight:700;color:var(--ax-muted)!important;margin-inline-end:4px}
body.ax-shell button.screen-related-link{min-height:0!important;padding:6px 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:700!important;
 background:#fff!important;color:var(--ax-navy)!important;-webkit-text-fill-color:var(--ax-navy);border:1px solid var(--ax-line-2)!important;box-shadow:none!important}
body.ax-shell button.screen-related-link:hover{border-color:var(--blue,#1e6bff)!important;color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff);box-shadow:0 0 0 3px rgba(30,107,255,.10)!important}

/* ---------- surfaces ---------- */
body.ax-shell:not(.auth-required) main .panel,body.ax-shell:not(.auth-required) main .settings-subpanel,body.ax-shell:not(.auth-required) main .chat,body.ax-shell:not(.auth-required) main .info,
body.ax-shell:not(.auth-required) main .team-ops,body.ax-shell:not(.auth-required) main .agent-performance,body.ax-shell:not(.auth-required) main .outcome-workflow,body.ax-shell #tenant-central-api-panel{
 background:#fff!important;color:var(--ax-ink)!important;border:1px solid var(--ax-line)!important;border-radius:var(--ax-radius)!important;box-shadow:var(--ax-shadow)!important;backdrop-filter:none!important}
body.ax-shell main .panel h1,body.ax-shell main .panel h2,body.ax-shell main .panel h3,body.ax-shell main .panel h4{color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink);text-shadow:none!important}
body.ax-shell main .panel p,body.ax-shell main .small,body.ax-shell main .design-note{color:var(--ax-muted)!important}
body.ax-shell main .panel label{color:#22365a!important}
body.ax-shell main .inbox-head h2,body.ax-shell main .inbox-head h3{font-size:16px!important;font-weight:800!important}
body.ax-shell main .panel .panel{box-shadow:none!important;border-color:var(--ax-line)!important}

/* KPI / metric cards */
body.ax-shell main .metrics>div,body.ax-shell main .metallic-card,body.ax-shell main .admin-metric,body.ax-shell main .metric-card,body.ax-shell main .report-kpi{
 position:relative;overflow:hidden;background:linear-gradient(160deg,#ffffff 0%,#f7faff 100%)!important;border:1px solid var(--ax-line)!important;border-radius:16px!important;box-shadow:var(--ax-shadow)!important;padding:16px 16px 14px!important;color:var(--ax-ink)!important}
body.ax-shell main .metrics>div::before,body.ax-shell main .metallic-card::before,body.ax-shell main .admin-metric::before,body.ax-shell main .metric-card::before,body.ax-shell main .report-kpi::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--ax-grad-ai)}
body.ax-shell main .metrics strong,body.ax-shell main .metallic-card strong,body.ax-shell main .admin-metric strong,body.ax-shell main .metric-card strong,body.ax-shell main .report-kpi strong{
 font-size:26px!important;font-weight:800!important;line-height:1.2;background:linear-gradient(120deg,var(--ax-navy),var(--blue,#1e6bff) 70%);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent!important}
body.ax-shell main .metrics span,body.ax-shell main .metallic-card span,body.ax-shell main .admin-metric span,body.ax-shell main .metric-card span{color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted);font-size:12.5px!important;font-weight:600}
body.ax-shell main .metric-action-card:hover{border-color:rgba(30,107,255,.45)!important;box-shadow:var(--ax-glow)!important}

/* buttons */
body.ax-shell main button:not(.secondary):not(.link-button):not(.screen-related-link):not(.ax-kpi):not(.ax-tile):not(.ax-alert):not(.call-item):not(.pbx-provider-item):not(.tenant-company-item):not(.demo-account):not(.password-toggle):not(.danger):not(.inbox-item):not(.mp-save):not(.mp-eye),
body.ax-shell dialog button:not(.secondary){
 background:linear-gradient(135deg,var(--blue,#1e6bff) 0%,color-mix(in srgb,var(--blue,#1e6bff) 72%,#06205a) 100%)!important;color:#fff!important;-webkit-text-fill-color:#fff;border:0!important;border-radius:11px!important;font-weight:700!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px -10px color-mix(in srgb,var(--blue,#1e6bff) 85%,transparent)!important;text-shadow:none!important}
body.ax-shell main button:not(.secondary):not(.link-button):not(.screen-related-link):not(.ax-kpi):not(.ax-tile):not(.ax-alert):not(.call-item):not(.pbx-provider-item):not(.tenant-company-item):not(.demo-account):not(.password-toggle):not(.danger):not(.inbox-item):not(.mp-save):not(.mp-eye):hover:not(:disabled){filter:brightness(1.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 10px 24px -8px color-mix(in srgb,var(--blue,#1e6bff) 90%,transparent),0 0 0 3px rgba(77,208,225,.18)!important}
body.ax-shell main button.secondary,body.ax-shell main .quick button,body.ax-shell dialog button.secondary{background:#fff!important;color:var(--ax-navy)!important;-webkit-text-fill-color:var(--ax-navy);border:1px solid var(--ax-line-2)!important;border-radius:11px!important;font-weight:700!important;box-shadow:0 1px 2px rgba(10,45,98,.06)!important;text-shadow:none!important}
body.ax-shell main button.secondary:hover:not(:disabled),body.ax-shell main .quick button:hover{border-color:var(--blue,#1e6bff)!important;color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff);background:#f3f7ff!important}
body.ax-shell main #my-work-button.is-active,body.ax-shell main #all-work-button.is-active{background:var(--ax-grad)!important;color:#fff!important;-webkit-text-fill-color:#fff;border-color:transparent!important}

/* fields */
body.ax-shell main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),body.ax-shell main select,body.ax-shell main textarea{
 background:#fff!important;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink);border:1px solid var(--ax-line-2)!important;border-radius:11px!important;box-shadow:inset 0 1px 2px rgba(10,45,98,.04)!important}
body.ax-shell main input::placeholder,body.ax-shell main textarea::placeholder{color:#8a9ab4!important;-webkit-text-fill-color:#8a9ab4}
body.ax-shell main input:focus,body.ax-shell main select:focus,body.ax-shell main textarea:focus{outline:none!important;border-color:var(--blue,#1e6bff)!important;box-shadow:0 0 0 3px rgba(30,107,255,.15)!important}
body.ax-shell main input[type=range]{accent-color:var(--blue,#1e6bff)}
body.ax-shell main input[type=checkbox]{accent-color:var(--blue,#1e6bff)}

/* lists, tables, chat */
body.ax-shell main .inbox-item,body.ax-shell main .queue-item,body.ax-shell main .performance-card,body.ax-shell main .call-item,body.ax-shell main .agent-card,body.ax-shell main .notification-item,body.ax-shell main .pbx-provider-item,body.ax-shell main .tenant-company-item{
 background:#fbfcff!important;border:1px solid var(--ax-line)!important;border-radius:14px!important;box-shadow:none!important}
body.ax-shell main .inbox-item:hover,body.ax-shell main .queue-item:hover,body.ax-shell main .call-item:hover,body.ax-shell main .pbx-provider-item:hover,body.ax-shell main .tenant-company-item:hover{border-color:rgba(30,107,255,.45)!important;box-shadow:0 0 0 3px rgba(30,107,255,.08)!important}
body.ax-shell main .inbox-item.selected,body.ax-shell main .pbx-provider-item.is-selected,body.ax-shell main .tenant-company-item.is-selected{border-color:var(--blue,#1e6bff)!important;box-shadow:inset 3px 0 0 var(--blue,#1e6bff),0 0 0 3px rgba(30,107,255,.08)!important;background:#f3f7ff!important}
body.ax-shell main .notification-item.unread{border-inline-start:3px solid var(--blue,#1e6bff)!important}
body.ax-shell main .notification-item.priority-high{border-inline-start:3px solid #ff4d6d!important}
body.ax-shell main .messages{background:linear-gradient(180deg,#fafcff,#f3f7fd)!important;border:1px solid var(--ax-line)!important;border-radius:16px!important}
body.ax-shell main .bubble.user{background:#fff!important;border:1px solid var(--ax-line)!important;color:var(--ax-ink)!important}
body.ax-shell main .bubble.assistant{background:linear-gradient(135deg,#e9f2ff,#e6fbf6)!important;border:1px solid #cfe2ff!important;color:var(--ax-ink)!important}
body.ax-shell main .analytics-table{border-collapse:separate;border-spacing:0;width:100%}
body.ax-shell main .analytics-table th{background:#f2f6fc!important;color:#33496d!important;font-size:12px;font-weight:800;text-align:start;padding:10px!important;border-bottom:1px solid var(--ax-line)!important}
body.ax-shell main .analytics-table td{padding:10px!important;border-bottom:1px solid #eef3fa!important;color:var(--ax-ink)!important}
body.ax-shell main .outcome-bar{background:var(--ax-grad-ai)!important;box-shadow:0 0 12px rgba(77,208,225,.4)}
body.ax-shell main .status-pill{border-radius:999px!important;font-weight:700}
body.ax-shell main .audio-placeholder{background:linear-gradient(120deg,var(--ax-navy),#123c80)!important;color:#dfe9ff!important}
body.ax-shell main .agent-avatar{background:var(--ax-grad-ai)!important}
body.ax-shell main .customer-panel{background:linear-gradient(180deg,#f9fbff,#f2f6fd)!important;border:1px solid var(--ax-line)!important;border-radius:16px!important}
body.ax-shell main .customer-avatar{background:var(--ax-grad-ai)!important;color:#fff!important;-webkit-text-fill-color:#fff}
body.ax-shell main .notice{background:#fff8e6!important}
body.ax-shell .ax-empty-view{padding:28px!important;text-align:center;color:var(--ax-muted)!important;font-weight:700}

/* ---------- home dashboard ---------- */
.ax-hero{position:relative;overflow:hidden;display:flex;align-items:center;min-height:178px;padding:26px clamp(20px,3vw,40px);margin-bottom:18px;border-radius:22px;color:#fff;isolation:isolate;
 background:radial-gradient(520px 240px at 12% 120%,rgba(0,184,148,.45),transparent 70%),radial-gradient(620px 300px at 90% -30%,rgba(77,208,225,.40),transparent 70%),linear-gradient(120deg,#03112b 0%,#0a2d62 48%,#1250c9 100%);
 box-shadow:0 24px 50px -24px rgba(10,45,98,.75),inset 0 1px 0 rgba(255,255,255,.12)}
.ax-hero::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.35;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(ellipse at 70% 50%,#000,transparent 75%)}
.ax-hero-text{position:relative;z-index:1;max-width:640px}
.ax-hero-kicker{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;color:#9fe9f2!important;-webkit-text-fill-color:#9fe9f2}
body.ax-shell .ax-hero h1{margin:6px 0 6px;font-size:clamp(24px,2.4vw,34px);font-weight:800;line-height:1.25;background:linear-gradient(90deg,#ffffff,#d8ecff 50%,#8ff0dc);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
body.ax-shell .ax-hero p{margin:0;color:#c8d8f5!important;-webkit-text-fill-color:#c8d8f5;font-size:14px;line-height:1.7}
.ax-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ax-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:700;color:#e6f0ff!important;-webkit-text-fill-color:#e6f0ff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px)}
.ax-chip i{width:7px;height:7px;border-radius:50%;background:#9aa9c4}
.ax-chip-ok i{background:#22e3a4;box-shadow:0 0 10px #22e3a4}.ax-chip-warn i{background:#ffb84d;box-shadow:0 0 10px #ffb84d}.ax-chip-sim i{background:var(--ax-cyan);box-shadow:0 0 10px var(--ax-cyan)}
.ax-wave{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);width:min(55%,620px);height:110px;opacity:.85;filter:drop-shadow(0 0 8px rgba(77,208,225,.55));pointer-events:none}
.ax-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}
body.ax-shell button.ax-kpi{all:unset;box-sizing:border-box;cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;padding:16px;border-radius:18px;background:#fff!important;border:1px solid var(--ax-line)!important;box-shadow:var(--ax-shadow);transition:transform .15s,box-shadow .15s,border-color .15s}
body.ax-shell button.ax-kpi:hover,body.ax-shell button.ax-kpi:focus-visible{transform:translateY(-2px);border-color:rgba(30,107,255,.4);box-shadow:var(--ax-glow)}
.ax-kpi::after{content:"";position:absolute;inset-inline-end:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:var(--ax-g);opacity:.10}
.ax-kpi-ic{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;color:#fff;background:var(--ax-g);box-shadow:0 10px 20px -10px var(--ax-gc)}
.ax-kpi-ic .ax-ic{width:21px;height:21px}
.ax-kpi-body{display:flex;flex-direction:column;min-width:0}
.ax-kpi-body strong{font-size:26px;font-weight:800;line-height:1.15;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)}
.ax-kpi-body span{font-size:12.5px;font-weight:700;color:#2c4268!important;-webkit-text-fill-color:#2c4268}
.ax-kpi-body small{font-size:11px;color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted)}
.ax-kpi-warn{--ax-g:linear-gradient(135deg,#ff9f43,#ff6b6b);--ax-gc:rgba(255,120,80,.8)}
.ax-home-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:18px;align-items:start}
.ax-home-side{display:flex;flex-direction:column;gap:18px}
.ax-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px;margin-top:14px}
body.ax-shell button.ax-tile{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(160deg,#fff,#f6f9ff)!important;border:1px solid var(--ax-line)!important;box-shadow:none;transition:transform .15s,box-shadow .15s,border-color .15s}
body.ax-shell button.ax-tile:hover,body.ax-shell button.ax-tile:focus-visible{transform:translateY(-2px);border-color:rgba(30,107,255,.45);box-shadow:var(--ax-glow)}
.ax-tile .ax-module-ic{width:44px;height:44px;flex-basis:44px;border-radius:14px}.ax-tile .ax-module-ic .ax-ic{width:21px;height:21px}
.ax-tile-text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.ax-tile-text b{font-size:14px;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)}
.ax-tile-text small{font-size:11px;color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted)}
.ax-tile-text em{font-style:normal;margin-top:4px;font-size:11px;font-weight:700;color:var(--ax-teal)!important;-webkit-text-fill-color:#00977a}
.ax-tile-text em.is-planned{-webkit-text-fill-color:#b7791f}
.ax-channels{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.ax-ch{display:flex;align-items:center;gap:12px}
.ax-ch-ic{display:inline-grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;color:#fff}
.ax-ch-voice{background:linear-gradient(135deg,#1e6bff,#4dd0e1)}.ax-ch-whatsapp{background:linear-gradient(135deg,#00b894,#25d366)}.ax-ch-webchat{background:linear-gradient(135deg,#0a2d62,#1e6bff)}
.ax-ch-body{flex:1;min-width:0}
.ax-ch-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}
.ax-ch-top b{font-size:13.5px;color:var(--ax-ink)!important}.ax-ch-top span{color:var(--ax-muted)!important}.ax-ch-top em{font-style:normal;color:#d9480f!important;font-weight:700}
.ax-ch-bar{height:7px;margin-top:7px;border-radius:999px;background:#edf2fa;overflow:hidden}
.ax-ch-bar i{display:block;height:100%;border-radius:inherit;background:var(--ax-grad-ai);box-shadow:0 0 10px rgba(77,208,225,.6)}
.ax-alerts{display:flex;flex-direction:column;gap:8px;margin-top:12px}
body.ax-shell button.ax-alert{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px;border-radius:13px;border:1px solid var(--ax-line)!important;background:#fbfcff!important;box-shadow:none;transition:border-color .15s,box-shadow .15s}
body.ax-shell button.ax-alert:hover{border-color:rgba(30,107,255,.45);box-shadow:0 0 0 3px rgba(30,107,255,.08)}
.ax-alert.is-high{border-inline-start:3px solid #ff4d6d}
.ax-alert-ic{display:inline-grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:10px;color:var(--blue,#1e6bff);background:#eaf1ff}
.ax-alert-body{display:flex;flex-direction:column;min-width:0}
.ax-alert-body b{font-size:13px;color:var(--ax-ink)!important}.ax-alert-body small{font-size:11.5px;color:var(--ax-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* planned modules */
.ax-planned-card{display:flex;gap:22px;align-items:flex-start;padding:28px!important}
.ax-planned-ic{display:inline-grid;place-items:center;width:64px;height:64px;flex:0 0 64px;border-radius:20px;color:#fff;background:var(--ax-grad-ai);box-shadow:var(--ax-glow)}
.ax-planned-ic .ax-ic{width:30px;height:30px}
.ax-planned-body h3{margin:12px 0 10px!important}
.ax-planned-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0 0 12px;padding:0;list-style:none}
.ax-planned-list li{padding:10px 12px;border-radius:12px;border:1px dashed var(--ax-line-2);background:#f8fbff;font-size:13px;font-weight:600;color:#22365a}

/* navigation settings preview */
.ax-preview-side{width:240px;padding:12px;border-radius:16px;display:flex;flex-direction:column;gap:4px;background:linear-gradient(180deg,var(--sidebar-bg),#04122d)}
.ax-preview-side.is-mini{width:60px;align-items:center}
.ax-preview-row{display:flex;align-items:center;gap:9px;padding:5px 7px;border-radius:10px;font-size:12px;color:#d6e3ff}
.ax-preview-row.active{background:rgba(30,107,255,.35);box-shadow:0 0 0 1px rgba(77,208,225,.45)}
.ax-preview-row .ax-module-ic{width:24px;height:24px;flex-basis:24px;border-radius:8px}.ax-preview-row .ax-module-ic .ax-ic{width:13px;height:13px}
body.ax-shell #navigation-preview{background:#f3f7fd!important;padding:14px;border-radius:14px;display:flex;justify-content:center}

/* ---------- sign-in screen in the new identity ---------- */
.ax-lang-floating{position:absolute;top:18px;inset-inline-start:22px;z-index:5;width:150px}
.ax-lang-floating .ui-language-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ax-lang-floating #ui-language{width:100%;height:38px;padding:0 12px;border-radius:12px;color:#fff!important;-webkit-text-fill-color:#fff;background:rgba(5,20,50,.55)!important;border:1px solid rgba(160,200,255,.35)!important;backdrop-filter:blur(8px)}
.ax-lang-floating #ui-language option{color:#10213f;background:#fff}
html body.auth-required #auth-gate .auth-card button[type=submit]{background:linear-gradient(120deg,#1e6bff 0%,#1557e0 50%,#00b894 100%)!important;box-shadow:0 12px 28px -12px rgba(30,107,255,.9),inset 0 1px 0 rgba(255,255,255,.3)!important;border:0!important}
html body #auth-gate .auth-card .demo-accounts button.demo-account{color:#0a2d62!important;-webkit-text-fill-color:#0a2d62}

/* ---------- responsive content ---------- */
@media(max-width:1500px){.ax-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.ax-home-grid{grid-template-columns:1fr}}
@media(max-width:640px){.ax-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ax-wave{opacity:.35;width:100%}.ax-planned-card{flex-direction:column}.ax-kpi-body strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.ax-sidebar,body.ax-shell button.ax-kpi,body.ax-shell button.ax-tile,.ax-chev{transition:none}}

/* readable text inside list-style buttons and rows (old rules forced white button text) */
body.ax-shell main :is(.tenant-company-item,.pbx-provider-item,.call-item,.inbox-item,.user-row,.ax-boost-none),
body.ax-shell main :is(.tenant-company-item,.pbx-provider-item,.call-item,.inbox-item,.user-row) :is(strong,span,small,b,div,p):not(.status-pill):not(.channel-badge){color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)!important;text-shadow:none!important}
body.ax-shell main :is(.tenant-company-item,.pbx-provider-item,.call-item,.inbox-item,.user-row) small{color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted)!important}
body.ax-shell main .user-row{background:#fbfcff!important;border:1px solid var(--ax-line)!important;border-radius:14px!important;box-shadow:none!important}
body.ax-shell main .quick button:is(button,#ax-boost){background:#fff!important;color:var(--ax-navy)!important;-webkit-text-fill-color:var(--ax-navy);border:1px solid var(--ax-line-2)!important;box-shadow:none!important;border-radius:999px!important;font-weight:700!important}
body.ax-shell main .quick button:is(button,#ax-boost):hover{border-color:var(--blue,#1e6bff)!important;color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff);background:#f3f7ff!important}

/* event / outcome cards (admin monitoring, outcomes) */
body.ax-shell main :is(.admin-events-list>*,.admin-outcome-list>*,.outcome-workflow-list>*,.admin-list-row,.event,#ax-boost){
 background:#fbfcff!important;border:1px solid var(--ax-line)!important;border-radius:14px!important;box-shadow:none!important;backdrop-filter:none!important;padding:12px 14px!important}
body.ax-shell main :is(.admin-events-list>*,.admin-outcome-list>*,.outcome-workflow-list>*,.admin-list-row,.event,#ax-boost) :is(strong,b,h4,span,p,div,small):not(.status-pill):not(.outcome-status){
 color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)!important;opacity:1!important;text-shadow:none!important}
body.ax-shell main :is(.admin-events-list>*,.admin-outcome-list>*,.outcome-workflow-list>*,#ax-boost) :is(small,.meta,p){color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted)!important}
body.ax-shell main .outcome-status{display:inline-block;padding:3px 10px;border-radius:999px;background:#eaf1ff!important;color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff)!important;font-weight:800;font-size:11.5px}
/* checkboxes in forms must not stretch */
body.ax-shell main input[type=checkbox],body.ax-shell main input[type=radio]{width:auto!important;min-width:0!important;height:auto!important;flex:0 0 auto!important;box-shadow:none!important}

#section-nav .ax-hidden,#section-nav .section-nav-tab.ax-item.ax-hidden{display:none!important}
body.nav-drawer-open .nav-drawer-toggle{bottom:auto!important;top:14px}

#section-nav .section-nav-tab.ax-item[hidden]{display:none!important}

/* ======================================================================
   AIVOX v3.3 — typography, glossy metallic tone cards, metallic sidebar, roles screen, compact login
   ====================================================================== */
/* ---------- typography (Cairo by default; changeable in Settings › Appearance) ---------- */
:root{--ui-font:'Cairo','Segoe UI',Tahoma,sans-serif}
html body.ax-shell,html body.ax-shell :is(button,input,select,textarea,option,h1,h2,h3,h4,p,label,span,small,strong,td,th,li,a){font-family:var(--ui-font)!important}
html body.ax-shell{font-size:var(--ui-font-size,14px);line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.ax-shell main h2,body.ax-shell main h3{letter-spacing:0}
body.ax-shell main .panel p,body.ax-shell main .small,body.ax-shell main small{font-size:12.5px!important;line-height:1.75}
body.ax-shell main .panel label{font-size:13px!important;font-weight:700!important}
body.ax-shell main :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){font-size:13.5px!important}
body.ax-shell main button{font-size:13px!important}
body.ax-shell .workspace-section-head h2{font-weight:800!important}
body.ax-shell .workspace-section-head p{font-size:13px!important}
#section-nav .ax-label{font-weight:700}

/* ---------- glossy metallic tone cards (all KPI cards are clickable) ---------- */
[data-tone="blue"]{--tone:#3d8bff;--tone2:#9cd0ff}
[data-tone="teal"]{--tone:#12d6a8;--tone2:#8ff5da}
[data-tone="cyan"]{--tone:#33d1ea;--tone2:#a8f3fb}
[data-tone="violet"]{--tone:#8b7bff;--tone2:#cdc4ff}
[data-tone="amber"]{--tone:#ffb547;--tone2:#ffe39a}
[data-tone="rose"]{--tone:#ff6b8a;--tone2:#ffbccb}
body.ax-shell main :is(.ax-card,#ax-boost){position:relative!important;overflow:hidden!important;isolation:isolate;cursor:pointer!important;
 color:#e8f0ff!important;border-radius:18px!important;padding:16px 18px!important;
 border:1px solid color-mix(in srgb,var(--tone) 50%,rgba(255,255,255,.10))!important;
 background:
  radial-gradient(120% 95% at 100% 0%,color-mix(in srgb,var(--tone) 52%,transparent) 0%,transparent 58%),
  radial-gradient(90% 80% at 0% 110%,color-mix(in srgb,var(--tone) 22%,transparent) 0%,transparent 60%),
  linear-gradient(150deg,color-mix(in srgb,var(--tone) 26%,#0c2a62) 0%,#0a2250 46%,#061430 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -12px 26px rgba(0,0,0,.28),0 16px 32px -18px color-mix(in srgb,var(--tone) 75%,#000)!important;
 transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
/* glass gloss + diagonal metallic sheen */
body.ax-shell main :is(.ax-card,#ax-boost)::before{content:""!important;position:absolute!important;inset:0!important;height:auto!important;z-index:-1;pointer-events:none;
 background:linear-gradient(180deg,rgba(255,255,255,.17) 0%,rgba(255,255,255,0) 42%),linear-gradient(115deg,transparent 0 38%,rgba(255,255,255,.10) 44%,transparent 52%)!important;opacity:1!important;border-radius:0!important}
/* brushed-metal texture */
body.ax-shell main :is(.ax-card,#ax-boost)::after{content:""!important;position:absolute!important;inset:0!important;z-index:-1;pointer-events:none;width:auto!important;height:auto!important;border-radius:0!important;opacity:1!important;
 background:repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 4px)!important}
body.ax-shell main :is(.ax-card,#ax-boost):hover,body.ax-shell main :is(.ax-card,#ax-boost):focus-visible{transform:translateY(-3px)!important;outline:none!important;
 border-color:color-mix(in srgb,var(--tone) 85%,#fff)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 1px color-mix(in srgb,var(--tone) 60%,transparent),0 20px 38px -16px color-mix(in srgb,var(--tone) 85%,#000),0 0 28px -6px color-mix(in srgb,var(--tone) 70%,transparent)!important}
body.ax-shell main :is(.ax-card,#ax-boost):active{transform:translateY(-1px)!important}
body.ax-shell main :is(.ax-card,#ax-boost) strong{font-size:28px!important;font-weight:800!important;line-height:1.15!important;letter-spacing:.2px;
 background:linear-gradient(180deg,#ffffff 0%,var(--tone2) 48%,var(--tone) 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
 filter:drop-shadow(0 0 12px color-mix(in srgb,var(--tone) 55%,transparent))}
body.ax-shell main :is(.ax-card,#ax-boost) :is(span,small,em):not(.ax-kpi-ic){color:#cbd9f4!important;-webkit-text-fill-color:#cbd9f4!important;font-weight:600}
body.ax-shell main :is(.ax-card,#ax-boost) small{color:#93a9cf!important;-webkit-text-fill-color:#93a9cf!important}
body.ax-shell main .ax-kpi.ax-card{padding:16px!important}
body.ax-shell main .ax-kpi.ax-card .ax-kpi-body span{color:#e3ecff!important;-webkit-text-fill-color:#e3ecff!important}
body.ax-shell main .ax-kpi.ax-card .ax-kpi-ic{background:linear-gradient(145deg,var(--tone2),var(--tone) 60%,color-mix(in srgb,var(--tone) 60%,#000))!important;color:#06142f!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 18px -8px var(--tone)!important}
body.ax-shell main .ax-kpi.ax-card .ax-kpi-ic .ax-ic{color:#06142f}
.ax-flash{animation:axFlash 1.2s ease}
@keyframes axFlash{0%{box-shadow:0 0 0 0 rgba(77,208,225,.0)}25%{box-shadow:0 0 0 4px rgba(77,208,225,.55),0 0 30px rgba(30,107,255,.35)}100%{box-shadow:0 0 0 0 rgba(77,208,225,0)}}

/* home module tiles: light brushed metal with tone glow */
body.ax-shell button.ax-tile{background:
  linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,0) 55%),
  linear-gradient(135deg,#f9fbff 0%,#e9f0fa 45%,#f6f9fe 60%,#dfe8f6 100%)!important;
 border:1px solid #d7e2f2!important;box-shadow:inset 0 1px 0 #fff,0 10px 22px -16px rgba(10,45,98,.45)!important}
body.ax-shell button.ax-tile:hover{border-color:rgba(30,107,255,.5)!important;box-shadow:inset 0 1px 0 #fff,0 0 0 3px rgba(30,107,255,.10),0 14px 26px -14px rgba(30,107,255,.55)!important}
.ax-module-ic{position:relative;overflow:hidden}
.ax-module-ic::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.45) 0%,rgba(255,255,255,0) 48%);pointer-events:none}

/* ---------- metallic sidebar, separators ---------- */
.ax-sidebar{background:
  linear-gradient(90deg,rgba(255,255,255,.05) 0%,rgba(255,255,255,0) 18%,rgba(255,255,255,0) 82%,rgba(255,255,255,.04) 100%),
  radial-gradient(420px 260px at 50% -40px,rgba(77,208,225,.24),transparent 70%),
  radial-gradient(360px 300px at 100% 105%,rgba(0,184,148,.16),transparent 70%),
  linear-gradient(180deg,color-mix(in srgb,var(--sidebar-bg) 85%,#1e6bff) 0%,var(--sidebar-bg) 22%,color-mix(in srgb,var(--sidebar-bg) 60%,#020a1c) 62%,color-mix(in srgb,var(--sidebar-bg) 36%,#01060f) 100%)!important}
/* glowing inner edge */
.ax-sidebar::before{content:"";position:absolute;top:0;bottom:0;left:0;width:1px;z-index:2;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(77,208,225,.75) 20%,rgba(30,107,255,.7) 55%,rgba(0,184,148,.6) 85%,transparent);box-shadow:0 0 12px rgba(77,208,225,.5)}
body[data-nav-side="left"] .ax-sidebar::before{left:auto;right:0}
.ax-brand{padding-bottom:12px!important;margin-bottom:4px;border-bottom:1px solid transparent;border-image:linear-gradient(90deg,transparent,rgba(77,208,225,.45),transparent) 1}
.ax-search{background:linear-gradient(180deg,rgba(2,10,28,.65),rgba(10,32,72,.55))!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.4),0 1px 0 rgba(255,255,255,.05)}
.ax-home{border-bottom:0!important;position:relative}
.ax-sep{display:flex;align-items:center;gap:10px;margin:12px 6px 6px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ax-sep .ax-label{flex:0 0 auto!important;color:#7fa3d6!important;-webkit-text-fill-color:#7fa3d6;font-size:11px!important}
.ax-sep::before,.ax-sep::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,rgba(77,208,225,0),rgba(77,208,225,.5),rgba(30,107,255,0))}
.ax-sep::before{flex:0 0 10px}
body.ax-mini .ax-sep .ax-label,body.ax-searching .ax-sep{display:none!important}
body.ax-mini .ax-sep::before{display:none}
.ax-module{position:relative}
.ax-module+.ax-module::before{content:"";position:absolute;top:0;left:14px;right:14px;height:1px;background:linear-gradient(90deg,transparent,rgba(140,180,255,.12),transparent)}
#section-nav .ax-module-head:hover{background:linear-gradient(90deg,rgba(255,255,255,.02),rgba(255,255,255,.08))!important}
.ax-module.has-active>.ax-module-head{box-shadow:inset 0 1px 0 rgba(255,255,255,.06),inset 0 0 0 1px rgba(77,208,225,.14)}
#section-nav .section-nav-tab.ax-item.is-active{background:
  linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0) 52%),
  linear-gradient(110deg,color-mix(in srgb,var(--sidebar-active) 85%,#000) 0%,var(--sidebar-active) 45%,color-mix(in srgb,var(--sidebar-active) 50%,var(--sidebar-accent)) 100%)!important}
.ax-module-count{background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.04))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.15);color:#cfe0ff!important}
.ax-sidebar .auth-userbar.ax-user{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
.ax-foot{border-top:1px solid transparent!important;border-image:linear-gradient(90deg,transparent,rgba(77,208,225,.4),transparent) 1}

/* ---------- roles screen (accounts & roles) ---------- */
body.ax-shell main #create-user-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto;grid-template-rows:auto auto;grid-auto-flow:column;align-items:end;gap:6px 14px;
 padding:16px!important;margin:6px 0 16px!important;border-radius:16px!important;background:linear-gradient(180deg,#f8fbff,#eef4fc)!important;border:1px solid var(--ax-line)!important}
body.ax-shell main #create-user-form label{margin:0!important;font-size:12.5px!important;color:#33496d!important}
body.ax-shell main #create-user-form :is(input,select){width:100%!important;height:42px!important;margin:0!important;box-sizing:border-box}
body.ax-shell main #create-user-form button[type=submit]{grid-row:2;height:42px;white-space:nowrap;padding:0 22px!important}
body.ax-shell main #create-user-form #user-create-feedback{grid-row:1;font-size:12px;color:var(--ax-muted)}
body.ax-shell main #users-list{display:flex;flex-direction:column;gap:10px}
body.ax-shell main #users-list .user-row{display:grid!important;grid-template-columns:minmax(200px,1.4fr) 120px 110px minmax(330px,2fr);align-items:center;gap:14px;padding:12px 14px!important;
 background:#fff!important;border:1px solid var(--ax-line)!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(10,45,98,.05)!important;transition:border-color .15s,box-shadow .15s}
body.ax-shell main #users-list .user-row:hover{border-color:rgba(30,107,255,.4)!important;box-shadow:0 0 0 3px rgba(30,107,255,.07)!important}
body.ax-shell main .user-who{display:flex;align-items:center;gap:12px;min-width:0}
body.ax-shell main .user-avatar{display:inline-grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:13px;font-weight:800;font-size:16px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 background:linear-gradient(145deg,#4dd0e1,#1e6bff 60%,#0a2d62)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 14px -6px rgba(30,107,255,.7)}
body.ax-shell main .role-admin .user-avatar{background:linear-gradient(145deg,#8ff5da,#00b894 55%,#05584a)!important}
body.ax-shell main .role-supervisor .user-avatar{background:linear-gradient(145deg,#cdc4ff,#8b7bff 55%,#3b2f9e)!important}
body.ax-shell main .role-viewer .user-avatar{background:linear-gradient(145deg,#d6e0ee,#8a9bb6 55%,#4a5a75)!important}
body.ax-shell main .user-name{display:flex;flex-direction:column;min-width:0;line-height:1.35}
body.ax-shell main .user-name strong{font-size:14.5px!important;font-weight:800!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ax-shell main .user-name small{font-size:11.5px!important}
body.ax-shell main .user-role-badge,body.ax-shell main .user-status{justify-self:start;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;font-size:12px!important;font-weight:800!important}
body.ax-shell main .user-role-badge{background:#eaf1ff!important;color:#1e4fd1!important;-webkit-text-fill-color:#1e4fd1!important;border:1px solid #cfe0ff}
body.ax-shell main .role-admin .user-role-badge{background:#e3fbf4!important;color:#047a62!important;-webkit-text-fill-color:#047a62!important;border-color:#b5efdf}
body.ax-shell main .role-supervisor .user-role-badge{background:#efecff!important;color:#5a48d6!important;-webkit-text-fill-color:#5a48d6!important;border-color:#dcd5ff}
body.ax-shell main .role-viewer .user-role-badge{background:#f1f4f9!important;color:#4a5a75!important;-webkit-text-fill-color:#4a5a75!important;border-color:#dfe6f0}
body.ax-shell main .user-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
body.ax-shell main .user-status.on{background:#e6f9ef!important;color:#0d8a4f!important;-webkit-text-fill-color:#0d8a4f!important}
body.ax-shell main .user-status.off{background:#fdecef!important;color:#c0304f!important;-webkit-text-fill-color:#c0304f!important}
body.ax-shell main .user-row.is-inactive{opacity:.75}
body.ax-shell main .user-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
body.ax-shell main .user-actions select{width:150px!important;height:38px!important;padding:0 10px!important}
body.ax-shell main .user-actions button{height:38px;padding:0 14px!important;white-space:nowrap}
body.ax-shell main .user-actions button.user-deactivate{color:#c0304f!important;-webkit-text-fill-color:#c0304f;border-color:#f4c7d1!important}
body.ax-shell main .user-actions button.user-deactivate:hover{background:#fff3f5!important;border-color:#c0304f!important}
body.ax-shell main .user-actions button.user-activate{color:#0d8a4f!important;-webkit-text-fill-color:#0d8a4f;border-color:#bfe9d3!important}
@media(max-width:1200px){body.ax-shell main #users-list .user-row{grid-template-columns:minmax(0,1fr) auto auto}body.ax-shell main .user-actions{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:800px){body.ax-shell main #create-user-form{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}body.ax-shell main #create-user-form button[type=submit]{grid-row:auto}}

/* ---------- compact sign-in card (−20%) with a visible eye button ---------- */
html body.auth-required #auth-gate .auth-card{max-width:352px!important;padding:22px 22px!important;border-radius:20px!important;gap:2px!important}
#auth-gate .auth-card-logo{width:104px!important;max-height:76px!important;margin-bottom:2px!important}
#auth-gate .auth-card h2{font-size:18px!important}
#auth-gate .auth-card>p{font-size:12px!important;margin:2px 0 6px!important}
#auth-gate .auth-card label{font-size:12px!important;margin:9px 0 5px!important}
#auth-gate .auth-card :is(input,select){height:40px!important;min-height:0!important;font-size:13.5px!important;padding:8px 11px!important}
#auth-gate .auth-card button[type=submit]{min-height:40px!important;margin-top:12px!important;font-size:14px!important}
#auth-gate .demo-accounts{margin-top:10px!important;padding-top:9px!important;font-size:11px!important}
#auth-gate .demo-accounts button.demo-account{padding:4px 9px!important;font-size:11px!important}
#auth-gate .auth-card small{font-size:10.5px!important;margin-top:10px!important;padding-top:8px!important}
#auth-gate .password-wrap{position:relative!important;display:block!important}
#auth-gate .password-wrap input{width:100%!important;padding-inline-end:44px!important}
#auth-gate .auth-card button.password-toggle{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;inset-inline-end:6px!important;inset-inline-start:auto!important;
 width:32px!important;height:32px!important;min-height:0!important;margin:0!important;padding:0!important;display:inline-grid!important;place-items:center!important;border-radius:9px!important;
 background:#eef3fb!important;border:1px solid #d6e1f0!important;color:#1e4fd1!important;-webkit-text-fill-color:#1e4fd1;box-shadow:none!important;cursor:pointer}
#auth-gate .auth-card button.password-toggle:hover,#auth-gate .auth-card button.password-toggle.is-on{background:#1e6bff!important;color:#fff!important;-webkit-text-fill-color:#fff;border-color:#1e6bff!important}
#auth-gate .ax-eye{width:18px;height:18px;display:block}
html body.auth-required #auth-gate .auth-card>*{flex-shrink:0!important}
#auth-gate .auth-card .auth-links button,#auth-gate .auth-card .auth-methods button{width:auto!important;min-height:0!important;margin-top:0!important;padding:4px 10px!important}
#auth-gate .auth-card .auth-methods{margin-top:8px!important;padding-top:8px!important;border-top:1px solid #e7edf5;justify-content:center}
#auth-gate .auth-card .auth-methods span{width:100%;text-align:center;font-size:11px!important}
#auth-gate .auth-card .auth-links{margin-top:6px!important}
html body #auth-gate .auth-card .password-wrap button.password-toggle{width:32px!important;min-width:32px!important;height:32px!important;color:#1e4fd1!important;-webkit-text-fill-color:#1e4fd1!important}
html body #auth-gate .auth-card .password-wrap button.password-toggle.is-on{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #auth-gate .auth-card .password-wrap button.password-toggle svg.ax-eye,html body #auth-gate .auth-card .password-wrap button.password-toggle svg.ax-eye *{color:inherit!important;stroke:currentColor!important;fill:none!important}

/* ======================================================================
   AIVOX v3.4 — clearer sidebar, 3D animated cards with framed numbers, Appearance Studio
   ====================================================================== */
/* ---------- sidebar: big count badges + clear sub-item icons ---------- */
#section-nav .ax-module-count{min-width:28px!important;height:24px!important;padding:0 8px!important;border-radius:9px!important;font-size:13.5px!important;font-weight:800!important;
 color:#04122d!important;-webkit-text-fill-color:#04122d!important;background:linear-gradient(180deg,#e9fbff 0%,#9eeaf4 45%,#4dd0e1 100%)!important;
 box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(77,208,225,.55),0 4px 12px -4px rgba(77,208,225,.8)!important}
#section-nav .ax-module.has-active .ax-module-count{background:linear-gradient(180deg,#fff7df,#ffd879 50%,#ffb547)!important;box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(255,181,71,.6),0 4px 12px -4px rgba(255,181,71,.8)!important}
#section-nav .ax-chev{width:17px!important;height:17px!important;color:#9fd8ff!important}
#section-nav .section-nav-tab.ax-item .ax-ic,#section-nav .section-nav-tab.ax-item:not(.is-active) .ax-ic{width:26px!important;height:26px!important;padding:5px;box-sizing:border-box;border-radius:8px;opacity:1!important;
 color:var(--sidebar-accent)!important;stroke:currentColor;background:rgba(77,208,225,.12);box-shadow:inset 0 0 0 1px rgba(77,208,225,.28)}
#section-nav .section-nav-tab.ax-item .ax-ic *{color:inherit!important}
#section-nav .section-nav-tab.ax-item.is-active .ax-ic{color:#fff!important;background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
#section-nav .ax-home .section-nav-tab.ax-item .ax-ic{width:32px!important;height:32px!important;padding:7px}
#section-nav .section-nav-tab.ax-item:not(.is-active) .ax-label{color:#d7e4fb!important;-webkit-text-fill-color:#d7e4fb!important}
.ax-module-items{padding-inline-start:20px!important}
.ax-module-items::before{inset-inline-start:19px!important}

/* ---------- screen background & layout options ---------- */
html body.ax-shell{background:var(--ax-screen-bg,#f5f8fc)!important;background-attachment:fixed!important}
body[data-screen-bg="navy"] main .workspace-section-head h2,body[data-screen-bg="navy"] .ax-crumb b{color:#fff!important;-webkit-text-fill-color:#fff!important}
body[data-screen-bg="navy"] main .workspace-section-head p,body[data-screen-bg="navy"] .ax-crumb{color:#a9bde0!important}
body[data-content-width="wide"]:not(.auth-required) main>*{max-width:1600px;margin-inline:auto!important}
body[data-content-width="normal"]:not(.auth-required) main>*{max-width:1280px;margin-inline:auto!important}
body.ax-no-quick .screen-related-links{display:none!important}
body.ax-no-crumb .ax-crumb{display:none!important}
body.ax-dense main .panel{padding:14px!important}
body.ax-dense main :is(.ax-card,#ax-boost){padding:12px 14px!important}
body.ax-dense .ax-kpis,body.ax-dense .ax-home-grid{gap:10px!important}
body.ax-shell main .workspace-section-head h2,body.ax-shell main .panel :is(h2,h3){font-weight:var(--ax-hweight,800)!important}
body.ax-no-glow #section-nav .section-nav-tab.ax-item.is-active,body.ax-no-glow main :is(.ax-card,#ax-boost) strong{box-shadow:none!important;filter:none!important}
body.ax-no-motion *,body.ax-no-motion *::before,body.ax-no-motion *::after{animation:none!important;transition:none!important}

/* ---------- home banner ---------- */
body.ax-shell .ax-hero{background:var(--ax-hero-bg)!important;min-height:var(--ax-hero-h,180px)!important}
body.ax-hero-nowave .ax-wave,body.ax-hero-nochips .ax-hero-chips{display:none!important}

/* ---------- 3D animated cards ---------- */
body.ax-shell main :is(.ax-card,#ax-boost){border-radius:var(--ax-card-radius,18px)!important;transform-style:preserve-3d;will-change:transform;
 transform:perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))!important;
 transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease,border-color .25s ease,translate .25s ease!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -14px 28px rgba(0,0,0,.3),0 2px 0 color-mix(in srgb,var(--tone) 40%,#000),0 6px 0 -2px rgba(3,12,32,.55),0 22px 34px -18px color-mix(in srgb,var(--tone) 80%,#000)!important}
body.ax-float main :is(.ax-card,#ax-boost):not(.is-tilting){animation:axFloat 6s ease-in-out infinite;animation-delay:var(--ax-delay,0s)}
@keyframes axFloat{0%,100%{translate:0 0}50%{translate:0 -5px}}
body.ax-shell main :is(.ax-card,#ax-boost):hover,body.ax-shell main :is(.ax-card,#ax-boost).is-tilting{translate:0 -6px!important;
 transform:perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1.02)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 0 color-mix(in srgb,var(--tone) 50%,#000),0 10px 0 -3px rgba(3,12,32,.5),0 34px 46px -20px color-mix(in srgb,var(--tone) 90%,#000),0 0 30px -6px color-mix(in srgb,var(--tone) 70%,transparent)!important}
/* moving light that follows the pointer */
body.ax-shell main :is(.ax-card,#ax-boost)::before{background:
 radial-gradient(220px 160px at var(--mx,30%) var(--my,0%),rgba(255,255,255,.22),transparent 65%),
 linear-gradient(180deg,rgba(255,255,255,.17) 0%,rgba(255,255,255,0) 42%),
 linear-gradient(115deg,transparent 0 38%,rgba(255,255,255,.10) 44%,transparent 52%)!important}
/* children float above the card surface */
body.ax-shell main :is(.ax-card,#ax-boost)>*{transform:translateZ(22px)}
/* framed, large numbers */
body.ax-shell main :is(.ax-card,#ax-boost) strong{font-size:var(--ax-num-size,34px)!important;line-height:1.1!important;
 background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:var(--tone2)!important;-webkit-text-fill-color:var(--tone2)!important;
 text-shadow:0 0 18px color-mix(in srgb,var(--tone) 70%,transparent),0 2px 0 rgba(0,0,0,.35);filter:none!important}
body.ax-num-badge main :is(.ax-card,#ax-boost) strong{display:inline-block!important;padding:4px 14px 6px!important;margin:2px 0 6px!important;border-radius:14px!important;
 background:linear-gradient(180deg,rgba(2,8,24,.72),rgba(6,20,48,.55))!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px color-mix(in srgb,var(--tone) 65%,transparent),0 0 18px -4px color-mix(in srgb,var(--tone) 80%,transparent)!important}
body.ax-shell main .ax-kpi.ax-card .ax-kpi-body strong{font-size:calc(var(--ax-num-size,34px) * .9)!important}
body.ax-shell main :is(.ax-card,#ax-boost) span:not(.ax-kpi-ic){font-size:13px!important}

/* card style: light glass */
body[data-card-style="glass"] main :is(.ax-card,#ax-boost){color:var(--ax-ink)!important;
 background:radial-gradient(120% 90% at 100% 0%,color-mix(in srgb,var(--tone) 30%,transparent),transparent 60%),linear-gradient(150deg,rgba(255,255,255,.92),color-mix(in srgb,var(--tone) 10%,#f4f8ff))!important;
 border:1px solid color-mix(in srgb,var(--tone) 45%,#dfe8f5)!important;backdrop-filter:blur(10px)!important;
 box-shadow:inset 0 1px 0 #fff,0 2px 0 color-mix(in srgb,var(--tone) 25%,#cbd6e6),0 18px 30px -18px color-mix(in srgb,var(--tone) 70%,#0a2d62)!important}
body[data-card-style="glass"] main :is(.ax-card,#ax-boost) strong{color:color-mix(in srgb,var(--tone) 75%,#06142f)!important;-webkit-text-fill-color:color-mix(in srgb,var(--tone) 75%,#06142f)!important;text-shadow:none}
body[data-card-style="glass"].ax-num-badge main :is(.ax-card,#ax-boost) strong{background:#fff!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 50%,transparent),0 6px 14px -8px var(--tone)!important}
body[data-card-style="glass"] main :is(.ax-card,#ax-boost) :is(span,small,em):not(.ax-kpi-ic),body[data-card-style="glass"] main .ax-kpi.ax-card .ax-kpi-body span{color:#2c4268!important;-webkit-text-fill-color:#2c4268!important}
/* card style: flat light */
body[data-card-style="flat"] main :is(.ax-card,#ax-boost){color:var(--ax-ink)!important;background:#fff!important;border:1px solid var(--ax-line)!important;border-top:4px solid var(--tone)!important;box-shadow:0 1px 2px rgba(10,45,98,.06)!important}
body[data-card-style="flat"] main :is(.ax-card,#ax-boost)::before,body[data-card-style="flat"] main :is(.ax-card,#ax-boost)::after{display:none!important}
body[data-card-style="flat"] main :is(.ax-card,#ax-boost) strong{color:color-mix(in srgb,var(--tone) 80%,#06142f)!important;-webkit-text-fill-color:color-mix(in srgb,var(--tone) 80%,#06142f)!important;text-shadow:none}
body[data-card-style="flat"].ax-num-badge main :is(.ax-card,#ax-boost) strong{background:color-mix(in srgb,var(--tone) 12%,#fff)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 35%,transparent)!important}
body[data-card-style="flat"] main :is(.ax-card,#ax-boost) :is(span,small,em):not(.ax-kpi-ic),body[data-card-style="flat"] main .ax-kpi.ax-card .ax-kpi-body span{color:#2c4268!important;-webkit-text-fill-color:#2c4268!important}

/* ---------- Appearance Studio ---------- */
body.ax-shell main .ax-studio{padding:0!important;overflow:hidden}
.ax-studio-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;color:#fff;
 background:radial-gradient(500px 200px at 90% -40%,rgba(77,208,225,.45),transparent 70%),linear-gradient(120deg,#03112b,#0a2d62 55%,#1250c9)}
body.ax-shell main .ax-studio-head h3{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:18px!important;margin:0 0 4px!important}
body.ax-shell main .ax-studio-head p{color:#c8d8f5!important;margin:0!important}
.ax-studio-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ax-shell main .ax-studio-actions #axs-feedback{color:#9fe9f2!important;font-size:12px;width:100%}
.ax-studio-tabs{display:flex;gap:4px;padding:10px 14px 0;border-bottom:1px solid var(--ax-line);background:#f7faff;overflow-x:auto}
body.ax-shell main .ax-studio-tabs button{all:unset;cursor:pointer;white-space:nowrap;padding:10px 16px;border-radius:12px 12px 0 0;font-size:13.5px;font-weight:700;color:#4a5f82!important;-webkit-text-fill-color:#4a5f82;border:1px solid transparent;border-bottom:0;margin-bottom:-1px}
body.ax-shell main .ax-studio-tabs button:hover{color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff)}
body.ax-shell main .ax-studio-tabs button.is-active{background:#fff;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink);border-color:var(--ax-line);box-shadow:inset 0 3px 0 var(--blue,#1e6bff)}
.ax-studio-body{padding:18px 22px 22px}
.ax-studio-pane[hidden]{display:none!important}
body.ax-shell main .ax-studio-pane h4{margin:6px 0 10px!important;font-size:14px!important;font-weight:800!important;color:var(--ax-ink)!important}
.axs-swatches,.axs-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:18px}
body.ax-shell main button.axs-swatch{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:14px;border:1px solid var(--ax-line);background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}
body.ax-shell main button.axs-swatch:hover{transform:translateY(-2px);border-color:rgba(30,107,255,.45)}
body.ax-shell main button.axs-swatch.is-on{border-color:var(--blue,#1e6bff);box-shadow:0 0 0 3px rgba(30,107,255,.18)}
body.ax-shell main button.axs-swatch b{font-size:12.5px;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)}
.axs-chip{display:flex;height:34px;border-radius:9px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}.axs-chip i{flex:1}
.axs-thumb{display:block;height:54px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.axs-card-demo{display:grid;place-items:center;height:64px;border-radius:12px}
.axs-card-demo em{font-style:normal;font-weight:800;font-size:22px;padding:2px 10px;border-radius:9px}
.axs-cs-metal{background:radial-gradient(120% 95% at 100% 0%,rgba(61,139,255,.6),transparent 60%),linear-gradient(150deg,#123a86,#0a2250 50%,#061430);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 0 #04102a}
.axs-cs-metal em{color:#9cd0ff;background:rgba(2,8,24,.65);box-shadow:inset 0 0 0 1px rgba(61,139,255,.7)}
.axs-cs-glass{background:linear-gradient(150deg,#fff,#e6f0ff);border:1px solid #c9dafa}.axs-cs-glass em{color:#1e4fd1;background:#fff;box-shadow:inset 0 0 0 1px #b9d0fb}
.axs-cs-flat{background:#fff;border:1px solid #e1e9f5;border-top:4px solid #3d8bff}.axs-cs-flat em{color:#1e4fd1;background:#eaf1ff}
.axs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 16px;margin-bottom:12px}
body.ax-shell main .axs-grid>label{display:flex;flex-direction:column;gap:7px;padding:12px 14px;border-radius:14px;border:1px solid var(--ax-line);background:#fbfcff}
body.ax-shell main .axs-grid>label output{align-self:flex-start;font-weight:800;font-size:12px;color:var(--blue,#1e6bff);background:#eaf1ff;padding:1px 8px;border-radius:999px}
body.ax-shell main .axs-grid>label.axs-check{flex-direction:row;align-items:center;gap:10px;cursor:pointer}
.axs-hero-preview{height:110px;border-radius:16px;display:flex;align-items:flex-end;padding:10px 14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),0 10px 24px -14px rgba(10,45,98,.6)}
body.ax-shell main .axs-hero-preview span{color:#fff!important;-webkit-text-fill-color:#fff;font-weight:800;font-size:12px;background:rgba(0,0,0,.25);padding:2px 10px;border-radius:999px}
/* the other appearance panels laid out as a tidy two-column grid under the studio */
body.ax-shell #settings-workspace:not([hidden]):has(.ax-studio:not(.ax-filtered)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}
body.ax-shell #settings-workspace:has(.ax-studio:not(.ax-filtered))>:is(.workspace-section-head,.ax-studio,.theme-settings,.ax-empty-view){grid-column:1/-1}
body.ax-shell #settings-workspace>.panel{margin:0!important}
@media(max-width:1100px){body.ax-shell #settings-workspace:has(.ax-studio:not(.ax-filtered)){grid-template-columns:1fr}}
/* studio controls must not inherit the primary-button style */
body.ax-shell main :is(.ax-studio-tabs button,button.axs-swatch,#ax-boost){background:transparent!important;box-shadow:none!important;color:#4a5f82!important;-webkit-text-fill-color:#4a5f82!important;border-radius:12px 12px 0 0!important;font-weight:700!important;filter:none!important}
body.ax-shell main :is(.ax-studio-tabs button.is-active,#ax-boost){background:#fff!important;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)!important;box-shadow:inset 0 3px 0 var(--blue,#1e6bff)!important;border:1px solid var(--ax-line)!important;border-bottom:0!important}
body.ax-shell main :is(button.axs-swatch,#ax-boost){background:#fff!important;border:1px solid var(--ax-line)!important;border-radius:14px!important;padding:10px!important}
body.ax-shell main :is(button.axs-swatch.is-on,#ax-boost){border-color:var(--blue,#1e6bff)!important;box-shadow:0 0 0 3px rgba(30,107,255,.18)!important}
body.ax-shell main :is(button.axs-swatch,#ax-boost):hover{border-color:rgba(30,107,255,.45)!important;box-shadow:0 8px 18px -10px rgba(30,107,255,.6)!important}
body.ax-shell main :is(.ax-studio-head p,#ax-boost){color:#c8d8f5!important;-webkit-text-fill-color:#c8d8f5!important}
body.ax-shell main :is(.ax-studio-head h3,#ax-boost){color:#fff!important;-webkit-text-fill-color:#fff!important}
body.ax-shell main #settings-workspace[hidden]{display:none!important}

/* ======================================================================
   AIVOX v3.5 — merged Settings & Admin module, sign-in methods (password / OTP), reset, language button
   ====================================================================== */
.ax-subhead{display:flex;align-items:center;gap:8px;margin:8px 4px 2px;padding-inline-start:6px}
.ax-subhead .ax-label{flex:0 0 auto!important;font-size:11px!important;font-weight:800!important;letter-spacing:.04em;color:#ffd879!important;-webkit-text-fill-color:#ffd879!important}
.ax-subhead::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(255,216,121,.45),transparent)}
body[data-nav-side="left"] .ax-subhead::after{background:linear-gradient(270deg,rgba(255,216,121,.45),transparent)}
body.ax-mini .ax-subhead,body.ax-searching .ax-subhead{display:none!important}
/* sign-in card */
html body.auth-required #auth-gate .auth-card[hidden]{display:none!important}
#auth-gate .auth-card{position:relative!important}
html body #auth-gate .auth-card button.ax-login-lang{position:absolute!important;top:12px!important;inset-inline-end:12px!important;width:auto!important;min-height:0!important;height:34px!important;margin:0!important;padding:0 10px!important;
 display:inline-flex!important;align-items:center;gap:6px;border-radius:999px!important;background:#eef3fb!important;border:1px solid #d6e1f0!important;color:#1e4fd1!important;-webkit-text-fill-color:#1e4fd1!important;font-weight:800!important;font-size:12.5px!important;box-shadow:none!important}
html body #auth-gate .auth-card button.ax-login-lang:hover{background:#1e6bff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#1e6bff!important}
html body #auth-gate .auth-card button.ax-login-lang .ax-ic{width:17px;height:17px;color:inherit!important;stroke:currentColor}
.ax-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:6px 0 2px;border-radius:12px;background:#eef3fb;border:1px solid #dbe5f3}
html body #auth-gate .auth-card .ax-auth-tabs button{width:auto!important;min-height:0!important;height:34px!important;margin:0!important;padding:0 8px!important;border-radius:9px!important;font-size:12.5px!important;font-weight:800!important;
 background:transparent!important;color:#4a5f82!important;-webkit-text-fill-color:#4a5f82!important;box-shadow:none!important;border:0!important}
html body #auth-gate .auth-card .ax-auth-tabs button.is-active{background:#fff!important;color:#0a2d62!important;-webkit-text-fill-color:#0a2d62!important;box-shadow:0 1px 2px rgba(10,45,98,.12),inset 0 -2px 0 #1e6bff!important}
#auth-gate .ax-mode-otp[hidden],#auth-gate .ax-otp-step[hidden],#auth-gate .ax-reset-step2[hidden],#auth-gate .ax-otp-demo[hidden],#auth-gate .ax-mode-password[hidden]{display:none!important}
#auth-gate .ax-otp-hint{margin:10px 0 0!important;padding:9px 11px;border-radius:10px;background:#f3f7fd;border:1px dashed #cfdcef;font-size:12px!important;color:#4a5f82!important;text-align:start!important}
html body #auth-gate .auth-card #login-otp,html body #auth-gate .auth-card #reset-code{text-align:center!important;letter-spacing:.5em!important;font-size:20px!important;font-weight:800!important;font-family:'Cairo',monospace!important}
.ax-otp-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;font-size:11.5px;color:#5b6b86}
html body #auth-gate .auth-card .ax-otp-row .link-button,html body #auth-gate .auth-card .ax-otp-demo .link-button{width:auto!important;min-height:0!important;margin:0!important;padding:2px 0!important;font-size:12px!important}
html body #auth-gate .auth-card .link-button:disabled{opacity:.45!important;text-decoration:none}
.ax-otp-demo{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;margin-top:10px;padding:10px 12px;border-radius:12px;background:linear-gradient(135deg,#fff8e6,#fff2d1);border:1px solid #f3d58b}
.ax-otp-demo strong{font-size:11.5px;color:#8a5a12!important;-webkit-text-fill-color:#8a5a12!important}
.ax-otp-demo code{grid-row:2;font-size:22px;font-weight:800;letter-spacing:.3em;color:#0a2d62;direction:ltr;text-align:start;background:none!important;padding:0!important}
.ax-otp-demo .link-button{grid-row:1/3;grid-column:2}
.ax-otp-demo small{grid-column:1/-1;font-size:10.5px!important;color:#8a6a2a!important;margin:0!important;padding:0!important;border:0!important}
#auth-gate .auth-error.ok:not(:empty){background:#e6f9ef!important;color:#0d6b40!important}
html body #auth-gate .auth-card button.ax-login-lang svg.ax-ic,html body #auth-gate .auth-card button.ax-login-lang svg.ax-ic *{color:inherit!important;stroke:currentColor!important;fill:none!important;display:block}
html body #auth-gate .auth-card button.ax-login-lang span{color:inherit!important;-webkit-text-fill-color:inherit!important;font-weight:800}

/* ======================================================================
   AIVOX v3.6 — messaging providers screen, user contact details, OTP channel choice
   ====================================================================== */
.msg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0;align-items:start}
@media(max-width:1100px){.msg-grid{grid-template-columns:1fr}}
body.ax-shell main .msg-panel{display:flex;flex-direction:column;gap:12px}
body.ax-shell main .msg-enabled{flex-direction:row!important;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#eef6ff;border:1px solid #d4e3f7;font-size:12.5px!important;white-space:nowrap}
.msg-providers{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
body.ax-shell main :is(button.msg-prov,#ax-boost){all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;padding:11px 12px;border-radius:13px;
 background:#fff!important;border:1px solid var(--ax-line)!important;box-shadow:none!important;color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)!important;transition:border-color .15s,box-shadow .15s}
body.ax-shell main :is(button.msg-prov,#ax-boost):hover{border-color:rgba(30,107,255,.45)!important}
body.ax-shell main :is(button.msg-prov.is-on,#ax-boost){border-color:var(--blue,#1e6bff)!important;background:linear-gradient(160deg,#f3f8ff,#e8f1ff)!important;box-shadow:0 0 0 3px rgba(30,107,255,.15)!important}
body.ax-shell main button.msg-prov b{font-size:13.5px!important}
body.ax-shell main button.msg-prov small{font-size:10.5px!important;color:var(--ax-muted)!important;-webkit-text-fill-color:var(--ax-muted)!important;direction:ltr;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
body.ax-shell main .msg-fields label,body.ax-shell main .msg-test label{display:flex;flex-direction:column;gap:5px}
.msg-secret{padding:10px 12px;border-radius:12px;font-size:12.5px;font-weight:700;line-height:1.7}
.msg-secret.ok{background:#e6f9ef;color:#0d6b40;border:1px solid #bfe9d3}
.msg-secret.warn{background:#fff6e5;color:#8a5a12;border:1px solid #f3d58b}
.msg-secret code{background:rgba(0,0,0,.06);padding:1px 6px;border-radius:6px}
.msg-secret small{display:block;font-weight:600}
.msg-test{display:flex;align-items:flex-end;gap:10px;padding:12px;border-radius:14px;background:#f7faff;border:1px dashed #cfdcef}
.msg-test label{flex:1}
.msg-last{padding:10px 12px;border-radius:12px;font-size:12.5px;border:1px solid var(--ax-line);background:#fbfcff}
.msg-last small{display:block;margin-top:3px;color:var(--ax-muted);overflow-wrap:anywhere}
.msg-last.ok{border-inline-start:4px solid #12b76a}.msg-last.sim{border-inline-start:4px solid #33d1ea}.msg-last.bad{border-inline-start:4px solid #ff6b8a}.msg-last.warn{border-inline-start:4px solid #ffb547}.msg-last.none{color:var(--ax-muted)}
.msg-fb{font-size:12.5px;font-weight:700;color:var(--blue,#1e6bff)}
.msg-steps{margin:8px 0 14px;padding-inline-start:22px;display:flex;flex-direction:column;gap:9px;line-height:1.8;font-size:13px}
.msg-steps pre{margin:6px 0;padding:8px 12px;border-radius:10px;background:#0a1a3a;color:#bfe3ff;font-size:12px;overflow-x:auto}
.msg-steps code{background:#eef3fb;padding:1px 6px;border-radius:6px;font-size:12px}
/* user contact */
body.ax-shell main .user-name small.user-contact{direction:ltr;text-align:start;unicode-bidi:plaintext}
body.ax-shell main .user-name small.user-contact.is-missing{color:#b7791f!important;-webkit-text-fill-color:#b7791f!important;direction:rtl;unicode-bidi:normal}
body.ax-shell main #users-list .user-row .user-contact-editor{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:10px 12px;border-radius:12px;background:#f7faff;border:1px dashed #cfdcef}
body.ax-shell main #users-list .user-row .user-contact-editor[hidden]{display:none!important}
body.ax-shell main .user-contact-editor label{display:flex;flex-direction:column;gap:4px;font-size:12px!important;min-width:200px;flex:1}
body.ax-shell main .user-contact-editor input{height:38px!important}
body.ax-shell main .user-contact-editor button{height:38px;padding:0 16px!important}
body.ax-shell main #create-user-form{grid-template-columns:repeat(5,minmax(0,1fr)) auto!important}
@media(max-width:1300px){body.ax-shell main #create-user-form{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-template-rows:none!important}body.ax-shell main #create-user-form button[type=submit]{grid-row:auto!important}}
/* OTP channel choice on the sign-in card */
.ax-otp-channel{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:10px;font-size:12px;color:#4a5f82}
.ax-otp-channel>span{width:100%;font-weight:700}
html body #auth-gate .auth-card .ax-otp-channel label{display:inline-flex!important;align-items:center;gap:5px;margin:0!important;font-size:12px!important;font-weight:700;cursor:pointer}
html body #auth-gate .auth-card .ax-otp-channel input{width:auto!important;height:auto!important;padding:0!important;accent-color:#1e6bff}
body.ax-shell main :is(.ax-card,#ax-boost) strong.ax-text-val{font-size:calc(var(--ax-num-size,34px) * .58)!important;line-height:1.35!important;padding-top:6px!important;padding-bottom:6px!important}

.msg-fields>label.msg-wide{grid-column:1/-1}

/* ===================== v3.7 — Knowledge Base, Customers, Tickets (crm.js) ===================== */
.crm-layout{display:grid;grid-template-columns:minmax(300px,0.95fr) minmax(0,1.35fr);gap:16px;margin-bottom:16px;align-items:start}
.crm-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.crm-list-panel{display:flex;flex-direction:column;min-height:520px;max-height:calc(100vh - 210px)}
.crm-detail-panel{min-height:520px}
.crm-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 10px}
.crm-tools input[type=search]{grid-column:1/-1}
#tickets-workspace .crm-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
.crm-tools input,.crm-tools select{min-width:0;width:100%;box-sizing:border-box}
.crm-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.crm-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:2px;flex:1}
.crm-list.compact{max-height:360px}
.crm-row{box-sizing:border-box;display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid var(--ax-line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;text-align:start}
.crm-row:hover{border-color:#9db8ef;box-shadow:0 6px 18px #1e6bff14}
.crm-row:focus-visible{outline:2px solid var(--ax-blue);outline-offset:2px}
.crm-row.is-on{border-color:var(--ax-blue);box-shadow:0 0 0 3px #1e6bff1f;background:#f6f9ff}
.crm-row.is-dim{opacity:.72}
.crm-row.is-overdue{border-inline-start:4px solid #e0435b}
.crm-row-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--ax-ink)}
.crm-row-top b{flex:1;min-width:0;font-size:14.5px;line-height:1.5}
.crm-row-top code{font-size:12px;background:#eef3fc;color:var(--ax-navy);padding:2px 7px;border-radius:7px;font-weight:700}
.crm-row-text{color:var(--ax-muted);font-size:13px;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.crm-row small,.crm-gap small{color:var(--ax-muted);font-size:12px;line-height:1.7}
.crm-row em,.crm-hot{font-style:normal;font-weight:700}
.crm-hot{color:#c2253d}
.crm-empty{color:var(--ax-muted);text-align:center;padding:24px 8px;margin:0}
.crm-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:460px;color:var(--ax-muted);gap:6px;padding:20px}
.crm-placeholder b{color:var(--ax-ink);font-size:16px}
.crm-placeholder p{max-width:440px;line-height:1.8;margin:0}
.crm-pill{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;border:1px solid transparent;white-space:nowrap;background:#eef2f8;color:#334155}
.crm-pill.kb-published,.crm-pill.tst-resolved{background:#e6f7f1;color:#0f6b52;border-color:#b5e6d5}
.crm-pill.kb-draft,.crm-pill.tst-pending_customer,.crm-pill.tst-on_hold{background:#fff6e5;color:#8a5a00;border-color:#f2d9a6}
.crm-pill.kb-archived,.crm-pill.tst-closed{background:#f1f3f6;color:#5b6577;border-color:#dde2ea}
.crm-pill.tst-new{background:#eaf1ff;color:#1747b8;border-color:#c4d6fb}
.crm-pill.tst-open{background:#e8f6fb;color:#0b5f7a;border-color:#b9e2ef}
.crm-pill.pri-urgent{background:#fde8eb;color:#b0172f;border-color:#f6bcc6}
.crm-pill.pri-high{background:#fff0e6;color:#a34700;border-color:#f8cfae}
.crm-pill.pri-normal{background:#eef2f8;color:#334155;border-color:#dbe3ee}
.crm-pill.pri-low{background:#f3f5f8;color:#64748b;border-color:#e2e8f0}
.crm-pill.seg-vip{background:linear-gradient(135deg,#fff4d6,#ffe7a8);color:#7a5200;border-color:#f0d186}
.crm-pill.seg-corporate{background:#eaf1ff;color:#1747b8;border-color:#c4d6fb}
.crm-pill.seg-new{background:#e6f7f1;color:#0f6b52;border-color:#b5e6d5}
.crm-pill.seg-at_risk{background:#fde8eb;color:#b0172f;border-color:#f6bcc6}
.crm-avatar{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--ax-blue),var(--ax-teal));color:#fff;font-weight:800;font-size:14px;flex:0 0 auto}
.crm-avatar.big{width:56px;height:56px;font-size:24px}
.crm-tags{display:flex;flex-wrap:wrap;gap:5px}
.crm-tags i{font-style:normal;font-size:11.5px;background:#f1f5fb;border:1px solid var(--ax-line);color:#3b4a63;border-radius:7px;padding:1px 7px}
.crm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:6px}
.crm-form fieldset{display:contents;border:0;margin:0;padding:0}
.crm-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:var(--ax-ink);min-width:0}
.crm-form label[hidden]{display:none}
.crm-form .crm-wide,.crm-form .design-actions,.crm-form .crm-conflicts{grid-column:1/-1}
.crm-form input,.crm-form select,.crm-form textarea,.crm-comment textarea,.crm-link-box input{width:100%;box-sizing:border-box;font:inherit;font-weight:400}
.crm-form textarea,.crm-comment textarea{border:1px solid #cfd8e6;border-radius:12px;padding:10px 12px;resize:vertical;background:#fff;color:var(--ax-ink);line-height:1.7}
.crm-form fieldset:disabled input,.crm-form fieldset:disabled select,.crm-form fieldset:disabled textarea{background:#f6f8fb;color:#475569}
.crm-fb{font-size:13px;color:#b0172f;font-weight:700}
.crm-conflicts{background:#fff6e5;border:1px solid #f2d9a6;color:#6b4700;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.8}
.crm-muted{color:var(--ax-muted)}
.crm-warn{background:#fff6e5;border:1px solid #f2d9a6;color:#6b4700;border-radius:10px;padding:8px 12px;font-size:13px}
.crm-notes{background:#f7f9fc;border:1px solid var(--ax-line);border-radius:12px;padding:10px 12px;line-height:1.8;white-space:pre-wrap;color:var(--ax-ink);margin:10px 0}
.crm-test-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;align-items:center}
.crm-test-form .check-row{display:flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap}
.crm-test-result{margin-top:12px;border-radius:12px;padding:0;font-size:14px;line-height:1.8;display:flex;flex-direction:column;gap:4px}
.crm-test-result.hit{background:#e9f8f2;border:1px solid #b5e6d5;padding:12px 14px}
.crm-test-result.miss{background:#fff1f2;border:1px solid #f7c7cf;padding:12px 14px}
.crm-test-result button{align-self:flex-start;margin-top:6px}
.crm-gap{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--ax-line);border-radius:12px;background:#fff}
.crm-gap b{display:block;color:var(--ax-ink);font-size:14px}
.crm-gap-act{display:flex;gap:6px;flex-shrink:0}
.crm-gap-act button,.crm-links button{padding:6px 12px!important;font-size:12.5px!important;min-height:0!important}
.crm-profile-head{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.crm-profile-head h3{margin:0 0 4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-profile-head p{margin:0 0 6px}
.crm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:6px 0 12px}
.crm-stats div{background:linear-gradient(160deg,#f7faff,#eef4fd);border:1px solid var(--ax-line);border-radius:14px;padding:10px;text-align:center}
.crm-stats strong{display:block;font-size:22px;color:var(--ax-navy);line-height:1.3}
.crm-stats strong small{font-size:12px;color:var(--ax-muted)}
.crm-stats span{font-size:12px;color:var(--ax-muted)}
.crm-actions{margin:4px 0 8px}
.crm-link-box{display:flex;gap:8px;align-items:center;margin:6px 0;flex-wrap:wrap}
.crm-link-box input{flex:1;min-width:200px}
.crm-link-box[hidden]{display:none}
.crm-sub{margin:16px 0 8px;font-size:14px;color:var(--ax-ink)}
.crm-timeline,.crm-activity{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:420px;overflow-y:auto}
.crm-timeline li{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border:1px solid var(--ax-line);border-radius:12px;background:#fff}
.crm-timeline li[data-conv],.crm-timeline li[data-ticket]{cursor:pointer}
.crm-timeline li[data-conv]:hover,.crm-timeline li[data-ticket]:hover{border-color:#9db8ef;background:#f8fbff}
.crm-timeline b{display:block;font-size:13.5px;font-weight:600;color:var(--ax-ink);line-height:1.6;word-break:break-word}
.crm-timeline small{font-size:12px;color:var(--ax-muted)}
.crm-tl-ic{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;flex:0 0 auto;font-size:14px;background:#eef3fc;color:var(--ax-navy)}
.crm-tl-call .crm-tl-ic{background:#e8f6fb;color:#0b5f7a}.crm-tl-ticket .crm-tl-ic{background:#fff0e6;color:#a34700}.crm-tl-outcome .crm-tl-ic{background:#e6f7f1;color:#0f6b52}
.crm-links{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 8px}
.crm-activity li{padding:8px 12px;border-radius:12px;background:#f7f9fc;border:1px solid var(--ax-line);font-size:13.5px;line-height:1.7}
.crm-activity li small{color:var(--ax-muted)}
.crm-activity li.act-event{background:transparent;border-style:dashed;color:var(--ax-muted);font-size:12.5px;padding:5px 12px}
.crm-activity li.act-internal{background:#fff8e8;border-color:#f2d9a6}
.crm-comment{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.crm-comment>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
.crm-comment .check-row{display:flex;align-items:center;gap:6px;font-size:13px}
.cp-crm-card{display:flex;flex-direction:column;gap:3px;padding:8px 10px;border:1px solid var(--ax-line);border-radius:12px;margin:4px 0 8px;background:#f8fbff}
.cp-crm-card b{font-size:14px}.cp-crm-card .crm-pill{align-self:flex-start}
.link-btn{all:unset;color:var(--ax-blue);cursor:pointer;text-decoration:underline;font-weight:700}
@media(max-width:1100px){.crm-layout,.crm-two{grid-template-columns:1fr}.crm-list-panel{max-height:none;min-height:0}.crm-list{max-height:460px}.crm-detail-panel{min-height:0}.crm-placeholder{min-height:200px}}
@media(max-width:640px){.crm-tools,#tickets-workspace .crm-tools{grid-template-columns:1fr 1fr}.crm-tools input{grid-column:1/-1}.crm-form{grid-template-columns:1fr}.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-test-form{grid-template-columns:1fr 1fr}.crm-test-form input{grid-column:1/-1}.crm-gap{flex-direction:column;align-items:stretch}}
body.ax-shell main .crm-row small,body.ax-shell main .crm-gap small,body.ax-shell main .crm-timeline small,body.ax-shell main .crm-activity small{color:#5f6f89!important;opacity:1!important}
body.ax-shell main .crm-row .crm-hot{color:#c2253d!important}
body.ax-shell main .crm-stats strong{color:var(--ax-navy)!important;-webkit-text-fill-color:var(--ax-navy)!important;font-size:22px!important}
body.ax-shell main .crm-stats span{color:var(--ax-muted)!important}

/* ===================== v3.8 — call player (player.js) ===================== */
.axp{margin:12px 0;border:1px solid var(--ax-line);border-radius:16px;background:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:10px;outline:none}
.axp:focus-visible{box-shadow:0 0 0 3px #1e6bff33}
.axp.is-playing{border-color:#9db8ef;box-shadow:0 8px 24px #1e6bff14}
.axp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.axp-title{font-size:15px;color:var(--ax-ink)}
.axp-badge{font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 10px;border:1px solid}
.axp-badge.is-audio{background:#e6f7f1;color:#0f6b52;border-color:#b5e6d5}
.axp-badge.is-tts{background:#eaf1ff;color:#1747b8;border-color:#c4d6fb}
.axp-note{margin:0;font-size:12.5px;color:var(--ax-muted);line-height:1.7}
.axp-bar{direction:ltr;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:linear-gradient(160deg,#0a2d62,#10306f);border-radius:14px;padding:10px 12px;color:#fff}
body.ax-shell main .axp .axp-btn,body.ax-shell .axp-modal-back .axp .axp-btn{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#e6eeff;cursor:pointer;transition:background .15s,transform .1s}
body.ax-shell main .axp .axp-btn:hover,body.ax-shell .axp-modal-back .axp .axp-btn:hover{background:#ffffff1f}
body.ax-shell main .axp .axp-btn:focus-visible,body.ax-shell .axp-modal-back .axp .axp-btn:focus-visible{outline:2px solid #4dd0e1;outline-offset:1px}
body.ax-shell main .axp .axp-btn svg,body.ax-shell .axp-modal-back .axp .axp-btn svg{width:20px;height:20px;display:block}
body.ax-shell main .axp .axp-play,body.ax-shell .axp-modal-back .axp .axp-play{width:46px;height:46px;background:linear-gradient(135deg,#1e6bff,#00b894);color:#fff;box-shadow:0 4px 14px #00b89455}
body.ax-shell main .axp .axp-play:hover,body.ax-shell .axp-modal-back .axp .axp-play:hover{background:linear-gradient(135deg,#2a76ff,#10c9a3)}
body.ax-shell main .axp .axp-play svg,body.ax-shell .axp-modal-back .axp .axp-play svg{width:24px;height:24px}
.axp-seekwrap{flex:1 1 260px;display:flex;align-items:center;gap:8px;min-width:200px;direction:ltr}
.axp-time{font-variant-numeric:tabular-nums;font-size:12.5px;color:#cfe0ff;min-width:38px;text-align:center}
.axp input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;height:18px;margin:0;cursor:pointer;padding:0;border:0;min-height:0;box-shadow:none}
.axp input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:linear-gradient(90deg,#4dd0e1 0 var(--p,0%),#ffffff33 var(--p,0%) 100%)}
.axp input[type=range]::-moz-range-track{height:5px;border-radius:5px;background:#ffffff33}
.axp input[type=range]::-moz-range-progress{height:5px;border-radius:5px;background:#4dd0e1}
.axp input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:#fff;margin-top:-5px;box-shadow:0 0 0 3px #4dd0e155}
.axp input[type=range]::-moz-range-thumb{width:15px;height:15px;border:0;border-radius:50%;background:#fff}
.axp .axp-seek{flex:1;min-width:120px}
.axp .axp-vol{width:84px;direction:ltr}
.axp .axp-vol::-webkit-slider-runnable-track{background:#ffffff55}
.axp-volwrap{display:inline-flex;align-items:center;gap:2px}
body.ax-shell main .axp select.axp-speed,body.ax-shell .axp-modal-back .axp select.axp-speed{width:auto;min-width:0;height:32px;min-height:0;padding:0 10px;border-radius:999px;background:#ffffff1a;color:#fff;border:1px solid #ffffff33;font-size:13px;font-weight:700;direction:ltr}
body.ax-shell main .axp select.axp-speed option,body.ax-shell .axp-modal-back .axp select.axp-speed option{color:#10213f}
.axp-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:4px}
.axp-status{font-size:12.5px;color:var(--ax-muted);flex:1}
.axp-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ax-blue);cursor:pointer;text-decoration:none}
.axp-link svg{width:18px;height:18px}
.axp-link:hover{text-decoration:underline}
.axp-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto;scroll-behavior:smooth}
.axp-line{display:grid;grid-template-columns:auto auto 1fr;gap:4px 8px;align-items:baseline;padding:8px 12px;border-radius:12px;border:1px solid var(--ax-line);background:#f8fafd;cursor:pointer;font-size:13.5px;line-height:1.7;color:var(--ax-ink);transition:background .15s,border-color .15s}
.axp-line:hover{border-color:#9db8ef}
.axp-line:focus-visible{outline:2px solid var(--ax-blue);outline-offset:1px}
.axp-line b{font-size:12.5px;white-space:nowrap}
.axp-line small{font-size:11.5px;color:var(--ax-muted);font-variant-numeric:tabular-nums;direction:ltr}
.axp-line span{grid-column:1/-1}
.axp-line.r-user b{color:#0b5f7a}.axp-line.r-assistant b{color:#1747b8}.axp-line.r-agent b{color:#0f6b52}
.axp-line.is-on{background:#eaf1ff;border-color:#1e6bff;box-shadow:inset 3px 0 0 #1e6bff}
[dir=rtl] .axp-line.is-on{box-shadow:inset -3px 0 0 #1e6bff}
@media(max-width:640px){.axp-bar{gap:4px}.axp-seekwrap{order:5;flex-basis:100%}.axp .axp-vol{width:64px}}
body.ax-shell main .axp .axp-btn.secondary,body.ax-shell .axp-modal-back .axp .axp-btn.secondary{background:transparent!important;border:0!important;box-shadow:none!important;color:#e6eeff!important;-webkit-text-fill-color:#e6eeff!important;width:36px!important;height:36px!important;min-height:0!important;min-width:0!important;padding:0!important;border-radius:50%!important}
body.ax-shell main .axp .axp-btn.secondary:hover,body.ax-shell .axp-modal-back .axp .axp-btn.secondary:hover{background:#ffffff1f!important}
body.ax-shell main .axp .axp-btn.secondary.axp-play,body.ax-shell .axp-modal-back .axp .axp-btn.secondary.axp-play{width:46px!important;height:46px!important;background:linear-gradient(135deg,#1e6bff,#00b894)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 4px 14px #00b89455!important}
body.ax-shell main .axp .axp-title,body.ax-shell .axp-modal-back .axp .axp-title{color:var(--ax-ink)!important;-webkit-text-fill-color:var(--ax-ink)!important}
body.ax-shell main .axp select.axp-speed,body.ax-shell .axp-modal-back .axp select.axp-speed{background:#ffffff1a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #ffffff40!important;height:32px!important;min-height:0!important;padding:0 10px!important;border-radius:999px!important;box-shadow:none!important;width:auto!important}
body.ax-shell main .axp .axp-time,body.ax-shell .axp-modal-back .axp .axp-time{color:#cfe0ff!important;-webkit-text-fill-color:#cfe0ff!important}

/* ===================== v3.9 — call log actions + pop-up player ===================== */
#calls-history th.calls-actions-col,#calls-history td.calls-actions{text-align:center;width:96px;white-space:nowrap}
body.ax-shell main #calls-history .call-listen-btn.secondary{display:inline-grid!important;place-items:center;width:38px!important;height:38px!important;min-height:0!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:linear-gradient(135deg,#1e6bff,#00b894)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;box-shadow:0 4px 12px #1e6bff33!important;cursor:pointer;transition:transform .12s,box-shadow .12s}
body.ax-shell main #calls-history .call-listen-btn.secondary:hover:not(:disabled){transform:scale(1.08);box-shadow:0 6px 16px #00b89455!important}
body.ax-shell main #calls-history .call-listen-btn.secondary:focus-visible{outline:2px solid #1e6bff;outline-offset:2px}
body.ax-shell main #calls-history .call-listen-btn.secondary:disabled{background:#eef2f8!important;color:#a3afc2!important;-webkit-text-fill-color:#a3afc2!important;box-shadow:none!important;cursor:not-allowed}
#calls-history .call-listen-btn svg{width:19px;height:19px;display:block}
.axp-modal-back{position:fixed;inset:0;z-index:2147483000;background:rgba(6,18,43,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;transition:opacity .18s}
.axp-modal-back.is-in{opacity:1}
.axp-modal{width:min(720px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 30px 80px #06122b66;transform:translateY(10px) scale(.98);transition:transform .2s}
.axp-modal-back.is-in .axp-modal{transform:none}
.axp-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--ax-line);background:linear-gradient(160deg,#0a2d62,#123a7a);color:#fff;border-radius:20px 20px 0 0;position:sticky;top:0;z-index:1}
.axp-modal-head h3{margin:0 0 8px;font-size:18px;color:#fff;-webkit-text-fill-color:#fff}
.axp-modal-meta{display:flex;flex-wrap:wrap;gap:6px}
.axp-modal-meta span{font-size:12.5px;background:#ffffff1f;border:1px solid #ffffff33;border-radius:999px;padding:3px 10px;color:#e6eeff}
body.ax-shell .axp-modal .axp-modal-x.secondary{flex:0 0 auto;display:inline-grid!important;place-items:center;width:36px!important;height:36px!important;min-height:0!important;padding:0!important;border-radius:50%!important;background:#ffffff1f!important;border:1px solid #ffffff40!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;cursor:pointer}
body.ax-shell .axp-modal .axp-modal-x.secondary:hover{background:#ffffff33!important}
.axp-modal-x svg{width:18px;height:18px}
.axp-modal-body{padding:4px 18px 18px}
.axp-modal-body .axp{border:0;padding:10px 0 0;box-shadow:none}
.axp-modal-body .axp-lines{max-height:min(44vh,380px)}
body.axp-modal-open{overflow:hidden}
@media(max-width:640px){.axp-modal{border-radius:16px}.axp-modal-head{border-radius:16px 16px 0 0}}

/* ===================== v3.10 — notifications line, filters, pager, customer documents ===================== */
#section-nav .ax-notify-line{padding-top:2px}
#section-nav .ax-notify-line .ax-notify-item{position:relative}
#section-nav .ax-notify-line .ax-notify-item .ax-label{flex:1}
#section-nav .ax-notify-item .nav-unread-count{min-width:34px!important;height:30px!important;padding:0 9px!important;font-size:17px!important;font-weight:900!important;line-height:1!important;border-radius:999px!important;background:linear-gradient(135deg,#ff2d55,#e0103a)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid rgba(255,255,255,.85);box-shadow:0 0 0 3px rgba(255,45,85,.25),0 4px 16px rgba(255,45,85,.6)!important;font-variant-numeric:tabular-nums;margin-inline-start:auto}
@media(prefers-reduced-motion:no-preference){#section-nav .ax-notify-item .nav-unread-count:not(:empty){animation:axNotifyPulse 2s ease-in-out infinite}}
@keyframes axNotifyPulse{0%,100%{box-shadow:0 0 0 3px rgba(255,45,85,.25),0 4px 16px rgba(255,45,85,.6)}50%{box-shadow:0 0 0 7px rgba(255,45,85,.12),0 4px 22px rgba(255,45,85,.85)}}
body.ax-mini #section-nav .ax-notify-item .nav-unread-count{position:absolute;top:-2px;inset-inline-end:-2px;min-width:24px!important;height:22px!important;font-size:12px!important;padding:0 5px!important}
body.ax-shell button.ax-tile.ax-tile-notify{position:relative}
.ax-tile-notify em.is-hot{color:#c2253d!important;font-weight:700}
.ax-tile-count{position:absolute;top:10px;inset-inline-end:12px;min-width:34px;height:30px;padding:0 9px;box-sizing:border-box;display:inline-grid;place-items:center;border-radius:999px;background:linear-gradient(135deg,#ff2d55,#e0103a);color:#fff;-webkit-text-fill-color:#fff;font-size:17px;font-weight:900;border:2px solid #fff;box-shadow:0 4px 14px rgba(255,45,85,.45)}
.axf{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px 12px;align-items:end;margin:4px 0 14px;padding:12px;border:1px solid var(--ax-line);border-radius:14px;background:#f8fafd}
.axf-compact{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.axf-f{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;font-weight:700;color:var(--ax-muted)}
.axf-f input,.axf-f select{width:100%;min-width:0;box-sizing:border-box;font-weight:400}
.axf-q{grid-column:span 2}
.axf-reset{align-self:end;white-space:nowrap}
.crm-list-panel .axf{margin:0 0 10px;padding:10px}
.crm-list-panel .axf-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.crm-list-panel .axf-compact .axf-reset{grid-column:1/-1}
.axf-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:var(--ax-muted)}
.axf-pages{display:flex;align-items:center;gap:4px;direction:ltr}
body.ax-shell main .axf-pager .axf-page.secondary{min-width:36px!important;height:34px!important;min-height:0!important;padding:0 10px!important;border-radius:10px!important;font-weight:700}
body.ax-shell main .axf-pager .axf-page.secondary.is-on{background:linear-gradient(135deg,#1e6bff,#00b894)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:transparent!important}
.axf-gap{padding:0 4px;color:var(--ax-muted)}
@media(max-width:640px){.axf{grid-template-columns:1fr 1fr}.axf-q{grid-column:1/-1}}
.crm-avatar.has-photo{background:none;padding:0;overflow:hidden}
.crm-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.crm-docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:6px 0 4px}
.crm-doc{border:1px solid var(--ax-line);border-radius:14px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:6px;min-width:0}
.crm-doc-thumb{all:unset;box-sizing:border-box;cursor:pointer;height:104px;border-radius:10px;background:#f1f5fb;display:grid;place-items:center;overflow:hidden;border:1px dashed #c9d5e8;color:var(--ax-muted);font-size:12px;text-align:center}
.crm-doc-thumb:focus-visible{outline:2px solid var(--ax-blue);outline-offset:2px}
.crm-doc-thumb img{width:100%;height:100%;object-fit:cover}
.crm-doc-thumb.is-pdf{font-weight:800;color:#b0172f;font-size:15px;border-style:solid}
.crm-doc-thumb.is-empty{cursor:default}
.crm-doc b{font-size:12.5px;color:var(--ax-ink)}
.crm-doc small{font-size:11px;color:var(--ax-muted)}
.crm-doc label.crm-doc-up{font-size:12px;font-weight:700;color:var(--ax-blue);cursor:pointer}
.crm-doc label.crm-doc-up input{display:none}
.crm-lightbox img{max-width:100%;max-height:70vh;display:block;margin:0 auto;border-radius:10px}
.crm-privacy{font-size:11.5px;color:var(--ax-muted);margin:2px 0 8px}
#section-nav .ax-notify-item .nav-unread-count{min-width:42px!important;height:36px!important;padding:0 11px!important;font-size:21px!important}
#section-nav .ax-notify-line .ax-notify-item{min-height:52px}
body.ax-shell button.ax-tile.ax-tile-notify .ax-tile-text em.is-hot{color:#c2253d!important;-webkit-text-fill-color:#c2253d!important}

/* ===================== v3.11 — sidebar polish ===================== */
.ax-brand{align-items:center!important;gap:10px!important;padding:16px 14px 14px!important}
.ax-brand-logo{flex:1 1 auto;min-width:0;width:100%!important;height:auto!important;max-width:none!important;max-height:92px;object-fit:contain;object-position:center}
.ax-brand-tools{display:flex;flex-direction:column;gap:8px;flex:0 0 auto}
.ax-sidebar .ax-lang-btn{position:relative;width:36px;height:36px}
.ax-sidebar .ax-lang-btn svg{width:18px;height:18px}
.ax-sidebar .ax-lang-btn b{position:absolute;bottom:-5px;inset-inline-end:-6px;min-width:20px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:var(--ax-cyan);color:#04122d;-webkit-text-fill-color:#04122d;font-size:10px;font-weight:900;line-height:16px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.35)}
body.ax-mini .ax-brand{flex-direction:column!important}
body.ax-mini .ax-brand-tools{flex-direction:row}
body.ax-mini .ax-brand-logo{max-height:44px;max-width:64px!important}
.ax-foot-tools .ax-lang{display:none!important}
.ax-foot-tools:empty{display:none}
/* notifications count: clear but proportionate */
#section-nav .ax-notify-item .nav-unread-count{min-width:30px!important;height:26px!important;padding:0 8px!important;font-size:14.5px!important;border-width:1.5px!important}
#section-nav .ax-notify-line .ax-notify-item{min-height:0}
/* sign out: a labelled, clearly visible button */
.ax-sidebar .auth-userbar.ax-user{align-items:center}
.ax-sidebar button.ax-logout-btn{all:unset;box-sizing:border-box;display:inline-flex!important;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:11px;cursor:pointer;font-size:13px;font-weight:800;color:#ffd5dc!important;-webkit-text-fill-color:#ffd5dc!important;background:rgba(255,77,109,.14)!important;border:1px solid rgba(255,107,129,.55)!important;transition:background .15s,box-shadow .15s}
.ax-sidebar button.ax-logout-btn svg{width:17px;height:17px;flex:0 0 auto}
.ax-sidebar button.ax-logout-btn:hover{background:rgba(255,77,109,.3)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 0 0 3px rgba(255,77,109,.18)}
.ax-sidebar button.ax-logout-btn:focus-visible{outline:2px solid #ff8da1;outline-offset:2px}
body.ax-mini .ax-sidebar button.ax-logout-btn{padding:0;width:36px;justify-content:center}
body.ax-mini .ax-logout-text{display:none}
/* clearer section dividers */
.ax-sep{margin:18px 4px 8px!important;gap:10px!important}
.ax-sep .ax-label{color:#cfe0ff!important;-webkit-text-fill-color:#cfe0ff!important;font-size:12px!important;font-weight:800!important;letter-spacing:.04em;padding:3px 10px;border-radius:999px;background:rgba(77,208,225,.12);border:1px solid rgba(77,208,225,.35)}
.ax-sep::before,.ax-sep::after{height:2px!important;background:linear-gradient(90deg,rgba(77,208,225,.05),rgba(77,208,225,.75),rgba(30,107,255,.15))!important;border-radius:2px}
.ax-sep::after{background:linear-gradient(270deg,rgba(77,208,225,.05),rgba(77,208,225,.75),rgba(30,107,255,.15))!important}
.ax-sep::before{flex:1!important}
.ax-notify-line{border-bottom:2px solid rgba(77,208,225,.28)!important;padding-bottom:8px!important}
body.ax-mini .ax-sep{margin:12px 6px 6px!important}

/* ===================== v3.11 — incoming call / notification pop-up (alerts.js) ===================== */
.axa-back{position:fixed;inset:0;z-index:2147483200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(6,18,43,.28);backdrop-filter:blur(2px);opacity:0;transition:opacity .18s}
.axa-back.is-call{background:rgba(6,18,43,.55);backdrop-filter:blur(4px)}
.axa-back.is-in{opacity:1}
.axa{position:relative;width:min(420px,100%);border-radius:24px;padding:30px 26px 18px;text-align:center;color:#fff;background:radial-gradient(120% 90% at 50% 0%,#17428f 0%,#0a2d62 55%,#061a3d 100%);box-shadow:0 30px 80px rgba(3,10,30,.6),inset 0 1px 0 rgba(255,255,255,.12);border:1px solid rgba(77,208,225,.35);overflow:hidden;transform:translateY(14px) scale(.96);transition:transform .22s cubic-bezier(.2,.9,.3,1.2)}
.axa-back.is-in .axa{transform:none}
.axa-call{border-color:rgba(0,184,148,.6)}
.axa-note.axa-high{border-color:rgba(255,77,109,.6)}
.axa-ic{position:relative;width:96px;height:96px;margin:0 auto 14px;display:grid;place-items:center}
.axa-glyph{position:relative;z-index:1;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#1e6bff,#4dd0e1);box-shadow:0 10px 28px rgba(30,107,255,.5)}
.axa-call .axa-glyph{background:linear-gradient(135deg,#00b894,#1ed3a2);box-shadow:0 10px 28px rgba(0,184,148,.55)}
.axa-high .axa-glyph{background:linear-gradient(135deg,#ff2d55,#ff7a59);box-shadow:0 10px 28px rgba(255,45,85,.5)}
.axa-glyph svg{width:34px;height:34px}
.axa-ring{position:absolute;inset:12px;border-radius:50%;border:2px solid rgba(77,208,225,.55);opacity:0}
.axa-call .axa-ring{border-color:rgba(0,184,148,.7)}
.axa-high .axa-ring{border-color:rgba(255,77,109,.6)}
@media(prefers-reduced-motion:no-preference){
 .axa-ring{animation:axaRing 1.8s ease-out infinite}.axa-ring.r2{animation-delay:.9s}
 .axa-call .axa-glyph svg{animation:axaShake 1.2s ease-in-out infinite;transform-origin:50% 50%}
 .axa-note .axa-glyph svg{animation:axaSwing 1.6s ease-in-out 2;transform-origin:50% 10%}
}
@keyframes axaRing{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.55);opacity:0}}
@keyframes axaShake{0%,40%,100%{transform:rotate(0)}5%,15%,25%,35%{transform:rotate(-14deg)}10%,20%,30%{transform:rotate(14deg)}}
@keyframes axaSwing{0%,100%{transform:rotate(0)}20%{transform:rotate(16deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}}
.axa-kicker{margin:0 0 4px;font-size:12.5px;font-weight:800;letter-spacing:.03em;color:#8fe9da}
.axa-note .axa-kicker{color:#a9cbff}.axa-high .axa-kicker{color:#ffb3c0}
.axa h3{margin:0 0 6px;font-size:22px;font-weight:800;color:#fff;-webkit-text-fill-color:#fff;line-height:1.35}
.axa-desc{margin:0 0 10px;font-size:14.5px;color:#d6e4ff;line-height:1.7;max-height:5.1em;overflow:hidden;direction:auto}
.axa-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 16px}
.axa-meta span{font-size:12px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#e6eeff}
.axa-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
body .axa button.axa-btn{all:unset;box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;cursor:pointer;font-size:14px;font-weight:800;color:#fff!important;-webkit-text-fill-color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.28)!important;transition:transform .12s,background .15s}
body .axa button.axa-btn:hover{background:rgba(255,255,255,.22)!important;transform:translateY(-1px)}
body .axa button.axa-btn:focus-visible{outline:2px solid #4dd0e1;outline-offset:2px}
body .axa button.axa-btn.primary{flex:1 1 100%;min-height:50px;font-size:15.5px;background:linear-gradient(135deg,#1e6bff,#4dd0e1)!important;border-color:transparent!important;box-shadow:0 8px 22px rgba(30,107,255,.45)}
body .axa button.axa-btn.answer{background:linear-gradient(135deg,#00b894,#1ed3a2)!important;box-shadow:0 8px 22px rgba(0,184,148,.5)}
body .axa button.axa-btn.ghost{background:transparent!important;border-color:rgba(255,255,255,.2)!important;color:#c9d8f5!important;-webkit-text-fill-color:#c9d8f5!important}
body .axa button.axa-btn svg{width:18px;height:18px}
body .axa button.axa-x{all:unset;box-sizing:border-box;position:absolute;top:12px;inset-inline-end:12px;width:32px;height:32px;border-radius:50%;display:grid!important;place-items:center;cursor:pointer;color:#c9d8f5;background:rgba(255,255,255,.08)!important}
body .axa button.axa-x:hover{background:rgba(255,255,255,.18)!important;color:#fff}
body .axa button.axa-x svg{width:16px;height:16px}
.axa-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:10px;border-top:1px solid rgba(255,255,255,.1)}
body .axa button.axa-mute{all:unset;box-sizing:border-box;display:inline-flex!important;align-items:center;gap:6px;cursor:pointer;font-size:12px;color:#a9bfe6;-webkit-text-fill-color:#a9bfe6}
body .axa button.axa-mute:hover{color:#fff;-webkit-text-fill-color:#fff}
body .axa button.axa-mute svg{width:16px;height:16px}
.axa-more{font-size:12px;font-weight:700;color:#ffd27a}
.axa-progress{position:absolute;inset-inline:0;bottom:0;height:4px;background:rgba(255,255,255,.08)}
.axa-progress i{display:block;height:100%;background:linear-gradient(90deg,#4dd0e1,#1e6bff);transform-origin:left;transform:scaleX(1)}
[dir=rtl] .axa-progress i{transform-origin:right}
@media(max-width:480px){.axa{padding:26px 18px 16px;border-radius:20px}.axa h3{font-size:19px}}
body .axa-back .axa{background:radial-gradient(120% 90% at 50% 0%,#17428f 0%,#0a2d62 55%,#061a3d 100%)!important;color:#fff!important}
body .axa-back .axa button.axa-mute{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;height:auto!important;width:auto!important;color:#a9bfe6!important;-webkit-text-fill-color:#a9bfe6!important}
body .axa-back .axa button.axa-mute:hover{color:#fff!important;-webkit-text-fill-color:#fff!important}
body .axa-back .axa button.axa-x{background:rgba(255,255,255,.1)!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;width:32px!important;height:32px!important;color:#c9d8f5!important}
body .axa-back .axa h3{color:#fff!important;-webkit-text-fill-color:#fff!important}
.ax-brand-logo{max-height:118px!important}
body .axa-back .axa .axa-kicker{color:#8fe9da!important;-webkit-text-fill-color:#8fe9da!important}
body .axa-back .axa-note .axa-kicker{color:#a9cbff!important;-webkit-text-fill-color:#a9cbff!important}
body .axa-back .axa-high .axa-kicker{color:#ffb3c0!important;-webkit-text-fill-color:#ffb3c0!important}
body .axa-back .axa .axa-desc{color:#d6e4ff!important;-webkit-text-fill-color:#d6e4ff!important}

/* v3.12 — screens hidden for the signed-in role */
.ax-role-hidden{display:none!important}
/* v3.12 — viewer is read-only: hide action controls that the API would refuse anyway */
body.ax-role-viewer #sendform,body.ax-role-viewer .quick,body.ax-role-viewer .agent-reply,body.ax-role-viewer .assignment,
body.ax-role-viewer #note-form,body.ax-role-viewer #newchat,body.ax-role-viewer #handoff,body.ax-role-viewer #save-status,
body.ax-role-viewer #save-outcome,body.ax-role-viewer #status-select,body.ax-role-viewer #outcome-select,
body.ax-role-viewer #auto-assign,body.ax-role-viewer #outcome-workflow-form{display:none!important}

/* ==========================================================================
   v3.13 — messaging provider card (same layout as the new provider screen)
   ========================================================================== */
body.ax-shell main .msg-panel{gap:0!important;padding:0!important;overflow:hidden;border-radius:18px!important}
.mp-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--ax-line,#e3e9f3);background:linear-gradient(180deg,#fbfdff,#f4f8fe)}
.mp-head h3{margin:0;font-size:16px;font-weight:800;color:var(--ax-navy,#0a2d62)}
.mp-head p{margin:2px 0 0;font-size:12px;color:var(--ax-muted,#6b7a93)}
.mp-head>div{flex:1;min-width:0}
.mp-ic{flex:0 0 38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#0a2d62,#1e6bff);color:#fff;box-shadow:0 6px 14px rgba(30,107,255,.25)}
.mp-ic svg,.mp-eye svg,.mp-save svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.ax-shell main .mp-switch{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:#eef4ff;border:1px solid #d5e2fb;font-size:12.5px;font-weight:800;color:var(--ax-navy,#0a2d62);cursor:pointer;white-space:nowrap}
.mp-body{border:0;margin:0;padding:18px 20px 6px;display:flex;flex-direction:column;gap:14px;min-width:0}
.mp-body:disabled{opacity:.85}
body.ax-shell main .mp-field{display:flex!important;flex-direction:column!important;gap:6px;margin:0;font-size:13px;font-weight:800;color:var(--ax-navy,#0a2d62)}
body.ax-shell main .mp-field>span{display:block}
.mp-req{font-style:normal;color:#d6455d}
body.ax-shell main .mp-card input,body.ax-shell main .msg-panel .mp-field input:not([type=checkbox]),body.ax-shell main .msg-panel .mp-field select{height:46px;padding:0 14px!important;background:#f5f8fd!important;border:1px solid #dbe4f1!important;border-radius:12px!important;font-weight:600}
body.ax-shell main .msg-panel .mp-field input:focus,body.ax-shell main .msg-panel .mp-field select:focus{background:#fff!important}
body.ax-shell main .mp-field small{font-size:11.5px;font-weight:600;color:var(--ax-muted,#6b7a93);line-height:1.6}
body.ax-shell main .mp-field small.is-ok{color:#0d6b40}
body.ax-shell main .mp-field small b{font-weight:800;letter-spacing:.5px}
.mp-pass{position:relative;display:flex}
.mp-pass input{flex:1;padding-inline-start:48px!important}
body.ax-shell main button.mp-eye{all:unset;box-sizing:border-box;position:absolute;inset-inline-start:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#4a6185;background:#fff;border:1px solid #dbe4f1}
body.ax-shell main button.mp-eye:hover,body.ax-shell main button.mp-eye.is-on{color:var(--blue,#1e6bff);border-color:rgba(30,107,255,.45)}
body.ax-shell main .mp-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin-top:-4px;font-size:12.5px;font-weight:700;color:#8a3a46;cursor:pointer}
.mp-note{margin:0;padding:10px 12px;border-radius:12px;background:#f4f8fe;border:1px dashed #cddaf0;font-size:12px;line-height:1.7;color:#3d557c}
.mp-adv{border:1px solid #dbe4f1;border-radius:14px;background:#fbfcff}
.mp-adv>summary{cursor:pointer;padding:11px 14px;font-size:12.5px;font-weight:800;color:#33507e;list-style:none;display:flex;align-items:center;gap:8px}
.mp-adv>summary::-webkit-details-marker{display:none}
.mp-adv>summary::before{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg);transition:transform .15s}
html[dir=rtl] .mp-adv>summary::before{transform:rotate(135deg)}
.mp-adv[open]>summary::before{transform:rotate(45deg)!important}
.mp-adv[open]>summary{border-bottom:1px solid #e3e9f3}
.mp-adv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;padding:14px}
.mp-adv .mp-note{margin:0 14px 14px}
body.ax-shell main button.mp-save{all:unset;box-sizing:border-box;width:100%;height:50px;margin-top:4px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;
 background:linear-gradient(180deg,#2f63b0 0%,#1d4687 100%);color:#fff;-webkit-text-fill-color:#fff;font-size:15px!important;font-weight:800;box-shadow:0 10px 22px rgba(29,70,135,.28),inset 0 1px 0 rgba(255,255,255,.18)}
body.ax-shell main button.mp-save:hover{filter:brightness(1.07)}
body.ax-shell main button.mp-save:disabled,.mp-body:disabled .mp-save{opacity:.55;cursor:not-allowed}
body.ax-shell main .msg-panel>.msg-fb{display:block;padding:4px 20px 0;min-height:0}
body.ax-shell main .msg-panel>.msg-fb:empty{display:none}
.msg-fb.bad{color:#c0364c!important}
.mp-test{display:flex;align-items:flex-end;gap:10px;margin:14px 20px 0;padding:14px;border-radius:14px;background:#f7faff;border:1px dashed #cddaf0}
.mp-test .mp-field{flex:1}
body.ax-shell main .msg-panel>.msg-last{margin:12px 20px 18px}
@media(max-width:560px){.mp-test{flex-direction:column;align-items:stretch}.mp-head{flex-wrap:wrap}}
/* v3.13: theme button rules use !important; the provider card keeps its own navy save button and neutral eye button */
body.ax-shell main .msg-panel button.mp-save{background:linear-gradient(180deg,#2f63b0 0%,#1d4687 100%)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;box-shadow:0 10px 22px rgba(29,70,135,.28),inset 0 1px 0 rgba(255,255,255,.18)!important;border-radius:13px!important;height:50px!important;padding:0!important}
body.ax-shell main .msg-panel button.mp-eye{background:#fff!important;color:#4a6185!important;-webkit-text-fill-color:#4a6185!important;border:1px solid #dbe4f1!important;box-shadow:none!important;border-radius:9px!important;padding:0!important}
body.ax-shell main .msg-panel button.mp-eye:hover,body.ax-shell main .msg-panel button.mp-eye.is-on{color:var(--blue,#1e6bff)!important;-webkit-text-fill-color:var(--blue,#1e6bff)!important;border-color:rgba(30,107,255,.45)!important}
body.ax-shell main .msg-panel button.mp-eye svg{color:#4a6185!important;stroke:#4a6185!important}
body.ax-shell main .msg-panel button.mp-eye:hover svg,body.ax-shell main .msg-panel button.mp-eye.is-on svg{color:var(--blue,#1e6bff)!important;stroke:var(--blue,#1e6bff)!important}

/* ==========================================================================
   v3.13 — sign-in card (layout taken from the new sign-in screen)
   ========================================================================== */
html body #auth-gate #login-form.ax-login-v2{gap:0!important}
html body #auth-gate #login-form.ax-login-v2 .axl-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
html body #auth-gate #login-form.ax-login-v2 .axl-top .auth-card-logo{margin:0!important;height:42px!important;width:auto!important;max-width:150px!important}
html body #auth-gate #login-form.ax-login-v2 .axl-top .ax-login-lang{position:static!important;inset:auto!important;margin:0!important;width:auto!important;min-height:0!important}
html body #auth-gate #login-form.ax-login-v2 h2{font-size:24px!important;font-weight:800!important;color:#0f2547!important;margin:0 0 4px!important;text-align:start!important;line-height:1.35!important}
html body #auth-gate #login-form.ax-login-v2 .axl-sub{margin:0 0 6px!important;font-size:13px!important;color:#5d6d86!important;text-align:start!important}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-badge{align-self:flex-start;margin:0 0 12px!important;padding:3px 10px!important;border-radius:999px;background:#fff6e5;border:1px solid #f3d58b;color:#8a5a12!important;font-size:11px!important;font-weight:700}
/* tabs */
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:5px;margin:4px 0 6px!important;border-radius:14px;background:#eef2f8;border:1px solid #e0e7f1}
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs button{all:unset;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;gap:7px;height:42px;border-radius:10px;cursor:pointer;font-size:13px!important;font-weight:800;color:#3d4f6c!important;-webkit-text-fill-color:#3d4f6c!important;background:transparent!important;box-shadow:none!important;margin:0!important;width:auto!important}
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs button.is-active{background:linear-gradient(180deg,#2f63b0,#1d4687)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 6px 14px rgba(29,70,135,.28)!important}
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs button .axl-ic{width:16px;height:16px}
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs button.is-active .axl-ic{color:#fff!important;stroke:#fff!important}
/* fields with an icon */
html body #auth-gate #login-form.ax-login-v2 label{margin:13px 0 6px!important;font-size:13px!important;font-weight:800!important;color:#1d2f4f!important}
html body #auth-gate #login-form.ax-login-v2 .axl-input{position:relative!important;display:block}
html body #auth-gate #login-form.ax-login-v2 .axl-input>.axl-ic{position:absolute;inset-inline-end:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#7d8da6;pointer-events:none;z-index:1}
html body #auth-gate #login-form.ax-login-v2 .axl-input>input,html body #auth-gate #login-form.ax-login-v2 .axl-input>select{height:46px!important;border-radius:12px!important;background:#f4f7fc!important;border:1px solid #dbe3ef!important;padding-inline-end:42px!important;padding-inline-start:14px!important;font-weight:600!important;color:#14284a!important}
html body #auth-gate #login-form.ax-login-v2 .axl-input>select{appearance:none;-webkit-appearance:none;background-image:none!important}
html body #auth-gate #login-form.ax-login-v2 .axl-input>input:focus,html body #auth-gate #login-form.ax-login-v2 .axl-input>select:focus{background:#fff!important;border-color:#2f63b0!important;box-shadow:0 0 0 3px rgba(47,99,176,.14)!important}
html body #auth-gate #login-form.ax-login-v2 .password-wrap>input{padding-inline-start:50px!important}
html body #auth-gate #login-form.ax-login-v2 .password-wrap>.password-toggle{position:absolute!important;inset-inline-start:7px!important;inset-inline-end:auto!important;top:50%!important;transform:translateY(-50%)!important;width:34px!important;height:34px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:9px!important;display:grid!important;place-items:center;background:#fff!important;border:1px solid #dbe3ef!important;box-shadow:none!important;color:#4a6185!important}
html body #auth-gate #login-form.ax-login-v2 .password-wrap>.password-toggle svg{width:17px;height:17px;color:#4a6185!important;stroke:#4a6185!important}
/* remember + forgot */
html body #auth-gate #login-form.ax-login-v2 .axl-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 4px}
html body #auth-gate #login-form.ax-login-v2 label.axl-remember{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:12.5px!important;font-weight:700!important;color:#3d4f6c!important;cursor:pointer}
html body #auth-gate #login-form.ax-login-v2 label.axl-remember input{width:17px!important;height:17px!important;min-height:0!important;margin:0!important;accent-color:#1d4687;flex:0 0 auto}
html body #auth-gate #login-form.ax-login-v2 .axl-row .link-button{all:unset;cursor:pointer;font-size:12.5px!important;font-weight:800;color:#1d4687!important;-webkit-text-fill-color:#1d4687!important;white-space:nowrap}
html body #auth-gate #login-form.ax-login-v2 .axl-row .link-button:hover{text-decoration:underline}
/* primary + alternative actions */
html body #auth-gate #login-form.ax-login-v2 #login-submit{display:flex!important;align-items:center;justify-content:center;gap:9px;height:50px!important;min-height:50px!important;margin-top:16px!important;border-radius:13px!important;border:0!important;font-size:15.5px!important;font-weight:800!important;
 background:linear-gradient(180deg,#2f63b0 0%,#1d4687 100%)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 10px 22px rgba(29,70,135,.3),inset 0 1px 0 rgba(255,255,255,.18)!important}
html body #auth-gate #login-form.ax-login-v2 #login-submit::after{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E") center/contain no-repeat}
html[dir=rtl] body #auth-gate #login-form.ax-login-v2 #login-submit::after{transform:scaleX(-1)}
html body #auth-gate #login-form.ax-login-v2 #login-submit:hover{filter:brightness(1.07)}
html body #auth-gate #login-form.ax-login-v2 .axl-or{display:flex!important;align-items:center;gap:12px;margin:16px 0 12px;color:#8a98ae;font-size:12px;font-weight:700}
html body #auth-gate #login-form.ax-login-v2 .axl-or::before,html body #auth-gate #login-form.ax-login-v2 .axl-or::after{content:""!important;display:block!important;flex:1 1 auto!important;height:1px!important;background:#c9d3e3!important;position:static!important}
html body #auth-gate #login-form.ax-login-v2 .axl-alt{display:flex!important;align-items:center;justify-content:center;gap:9px;height:46px!important;min-height:46px!important;margin:0!important;border-radius:12px!important;background:#fff!important;border:1px solid #d5deeb!important;box-shadow:none!important;color:#1d2f4f!important;-webkit-text-fill-color:#1d2f4f!important;font-size:13.5px!important;font-weight:800!important}
html body #auth-gate #login-form.ax-login-v2 .axl-alt .axl-ic{width:17px;height:17px;color:#1d4687!important;stroke:#1d4687!important}
html body #auth-gate #login-form.ax-login-v2 .axl-alt:hover{border-color:#2f63b0!important;background:#f7faff!important}
html body #auth-gate #login-form.ax-login-v2 .demo-accounts{margin-top:14px!important}
html body #auth-gate #login-form.ax-login-v2 .axl-foot{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:16px;padding-top:12px;border-top:1px solid #edf0f4;font-size:12px;font-weight:700;color:#3f7a5e}
html body #auth-gate #login-form.ax-login-v2 .axl-foot[hidden]{display:none}
html body #auth-gate #login-form.ax-login-v2 .axl-foot .axl-ic{width:16px;height:16px;color:#2f9e6e;stroke:#2f9e6e}
html body #auth-gate #login-form.ax-login-v2 small.axl-demo-note{margin-top:12px!important;padding-top:10px!important;text-align:center}
html body #auth-gate #login-form.ax-login-v2 .ax-mode-otp,html body #auth-gate #login-form.ax-login-v2 .ax-mode-password{margin:0!important}
.axl-ic{flex:0 0 auto}
html body #auth-gate #login-form.ax-login-v2 .ax-auth-tabs button:not(.is-active) .axl-ic{color:#3d4f6c!important;stroke:#3d4f6c!important}
html body #auth-gate #login-form.ax-login-v2 .axl-alt .axl-ic-lock,html body #auth-gate #login-form.ax-login-v2 .axl-alt.is-otp .axl-ic-phone{display:none}
html body #auth-gate #login-form.ax-login-v2 .axl-alt.is-otp .axl-ic-lock{display:block}

/* ==========================================================================
   v3.15 — sign-in screen: AI background, hero beside the card, centred logo, icons on the reading side
   ========================================================================== */
/* AI background: deep navy + aurora light (brand blue / teal / cyan); the neural network is drawn on #ax-ai-canvas */
html body.auth-required #auth-gate.auth-gate:not(.ax-custom-bg){background-color:#040a1c!important;
 background-image:radial-gradient(1100px 680px at 88% 8%,rgba(30,107,255,.30),transparent 62%),
  radial-gradient(900px 620px at 8% 92%,rgba(0,184,148,.22),transparent 60%),
  radial-gradient(720px 520px at 55% 50%,rgba(77,208,225,.10),transparent 66%),
  linear-gradient(180deg,#040a1c 0%,#071538 58%,#040a1c 100%)!important;background-size:cover!important}
html body.auth-required #auth-gate.auth-gate.ax-custom-bg #ax-ai-canvas{display:none}
#ax-ai-canvas{position:absolute;inset:0;z-index:0;pointer-events:none;display:block}
#auth-gate .ax-ai-grid{position:absolute;inset:auto 0 0 0;height:42%;z-index:0;pointer-events:none;opacity:.35;
 background-image:linear-gradient(rgba(77,208,225,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(77,208,225,.16) 1px,transparent 1px);background-size:56px 56px;
 -webkit-mask-image:linear-gradient(to top,#000 0%,transparent 95%);mask-image:linear-gradient(to top,#000 0%,transparent 95%);transform:perspective(600px) rotateX(58deg);transform-origin:bottom}
html body.auth-required #auth-gate.ax-custom-bg .ax-ai-grid{display:none}
html body #auth-gate .auth-card{backdrop-filter:blur(2px)}
/* centred, larger logo; language button stays in the corner */
html body #auth-gate #login-form.ax-login-v2 .axl-top{position:relative!important;justify-content:center!important;margin:2px 0 14px!important;min-height:78px}
html body #auth-gate #login-form.ax-login-v2 .axl-top .auth-card-logo{height:78px!important;max-height:78px!important;width:auto!important;max-width:220px!important}
html body #auth-gate #login-form.ax-login-v2 .axl-top .ax-login-lang{position:absolute!important;inset-inline-end:0!important;top:2px!important;transform:none!important}
html body #auth-gate #login-form.ax-login-v2 h2,html body #auth-gate #login-form.ax-login-v2 .axl-sub{text-align:center!important}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-badge{align-self:center!important}
/* field icons on the reading side (right in Arabic, left in English); the eye on the other side */
html body #auth-gate #login-form.ax-login-v2 .axl-input>.axl-ic{inset-inline-start:13px!important;inset-inline-end:auto!important}
html body #auth-gate #login-form.ax-login-v2 .axl-input>input,html body #auth-gate #login-form.ax-login-v2 .axl-input>select{padding-inline-start:42px!important;padding-inline-end:14px!important}
html body #auth-gate #login-form.ax-login-v2 .password-wrap>input{padding-inline-start:42px!important;padding-inline-end:50px!important}
html body #auth-gate #login-form.ax-login-v2 .password-wrap>.password-toggle{inset-inline-start:auto!important;inset-inline-end:7px!important}
/* demo accounts: one tidy box */
html body #auth-gate #login-form.ax-login-v2 .demo-accounts{display:flex!important;flex-direction:column;gap:10px;padding:12px!important;border-radius:14px;background:#f6f8fc;border:1px dashed #cfd9e8}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-title{font-size:12.5px;font-weight:800;color:#1d2f4f}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-pw{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#5d6d86}
html body #auth-gate #login-form.ax-login-v2 .axl-demo-pw code{padding:2px 8px;border-radius:7px;background:#fff;border:1px solid #dbe3ef;color:#14284a;font-size:11.5px;unicode-bidi:isolate}
html body #auth-gate #login-form.ax-login-v2 .demo-accounts>div:last-child{display:flex!important;flex-wrap:wrap;gap:6px}
html body #auth-gate #login-form.ax-login-v2 .demo-accounts .demo-account{margin:0!important;width:auto!important;flex:1 1 auto;min-height:32px!important;height:auto!important;padding:5px 10px!important;border-radius:999px!important;font-size:11.5px!important;white-space:nowrap}
@media(prefers-reduced-motion:reduce){#auth-gate .ax-ai-grid{opacity:.25}}
/* v3.15: on phones the card already carries the logo — hide the hero so nothing sits under the card */
@media(max-width:900px){html body #auth-gate .auth-hero{display:none!important}html body.auth-required #auth-gate.auth-gate{align-content:center!important}}
html body #auth-gate .auth-hero-text,html body #auth-gate .auth-hero-chips li,html body #auth-gate .auth-hero h1{unicode-bidi:plaintext}
/* v3.15-3 — sign-in card on the reading side: right in Arabic (mirrors to the left in English) */
@media(min-width:901px){
 html body.auth-required #auth-gate.auth-gate{grid-template-columns:minmax(320px,440px) minmax(0,1.15fr)!important}
 html body.auth-required #auth-gate .auth-card{grid-column:1!important;grid-row:1!important}
}
