:root{
  --ac-ink:#132039;
  --ac-muted:#6f7d90;
  --ac-line:rgba(20,35,58,.11);
  --ac-card:rgba(255,255,255,.82);
  --ac-panel:#f6f8fb;
  --ac-blue:#1265ff;
  --ac-green:#079455;
  --ac-amber:#d67a00;
  --ac-red:#d92d20;
}

.rail .me.ac-access-trigger{
  position:relative;
  cursor:pointer;
  border:1px solid transparent;
  border-radius:16px;
  outline:none;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.rail .me.ac-access-trigger::after{
  content:"";
  width:7px;
  height:7px;
  margin-inline-start:auto;
  border-inline-end:1.5px solid currentColor;
  border-block-end:1.5px solid currentColor;
  opacity:.42;
  transform:rotate(-45deg);
}
html[dir="rtl"] .rail .me.ac-access-trigger::after{transform:rotate(45deg)}
.rail .me.ac-access-trigger:hover{
  background:rgba(18,101,255,.055);
  border-color:rgba(18,101,255,.13);
  transform:translateY(-1px);
}
.rail .me.ac-access-trigger:focus-visible{
  box-shadow:0 0 0 3px rgba(18,101,255,.18);
  border-color:rgba(18,101,255,.38);
}
.rail .me.ac-access-trigger .id{display:flex;align-items:center;gap:5px}
.rail .me.ac-access-trigger .id::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#12b76a;
  box-shadow:0 0 0 3px rgba(18,183,106,.10);
}

.ac-access-center{
  position:fixed;
  inset:0;
  z-index:62000;
  visibility:hidden;
  pointer-events:none;
}
.ac-access-center.is-open{visibility:visible;pointer-events:auto}
.ac-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(7,16,31,.36);
  opacity:0;
  cursor:default;
  backdrop-filter:blur(3px);
  transition:opacity .28s ease;
}
.ac-access-center.is-open .ac-backdrop{opacity:1}
.ac-drawer{
  position:absolute;
  inset-block:12px;
  inset-inline-end:12px;
  width:min(470px,calc(100vw - 24px));
  display:flex;
  flex-direction:column;
  color:var(--ac-ink);
  background:linear-gradient(150deg,rgba(255,255,255,.98),rgba(247,249,252,.97));
  border:1px solid rgba(255,255,255,.75);
  border-radius:26px;
  box-shadow:-20px 20px 75px rgba(4,17,38,.23),0 2px 8px rgba(4,17,38,.12);
  overflow:hidden;
  transform:translateX(calc(100% + 28px));
  transition:transform .38s cubic-bezier(.22,1,.36,1);
}
html[dir="rtl"] .ac-drawer{transform:translateX(calc(-100% - 28px))}
.ac-access-center.is-open .ac-drawer{transform:translateX(0)}
.ac-head{
  position:relative;
  padding:26px 26px 22px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 8%,rgba(103,168,255,.65),transparent 31%),
    linear-gradient(135deg,#071b37 0%,#0e346d 58%,#1265ff 135%);
  overflow:hidden;
}
.ac-head::after{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  inset-inline-end:-75px;
  inset-block-end:-125px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  box-shadow:0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025);
}
.ac-head-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.ac-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.64)}
.ac-title{margin:6px 0 0;font-size:22px;line-height:1.18;letter-spacing:-.03em;font-weight:730}
.ac-close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.10);
  cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
.ac-close:hover{background:rgba(255,255,255,.18);transform:rotate(3deg)}
.ac-close svg{width:18px;height:18px}
.ac-identity{position:relative;z-index:1;display:flex;align-items:center;gap:13px;margin-top:24px}
.ac-avatar{
  width:50px;height:50px;display:grid;place-items:center;flex:0 0 50px;
  border:1px solid rgba(255,255,255,.34);border-radius:16px;
  background:rgba(255,255,255,.14);font-size:16px;font-weight:800;letter-spacing:.05em;
  box-shadow:inset 0 1px rgba(255,255,255,.15);
}
.ac-person{min-width:0;flex:1}
.ac-person-name{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-role-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:6px}
.ac-role-chip,.ac-verified{
  display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;
  font-size:10px;font-weight:750;line-height:1.2;
}
.ac-role-chip{color:#10274e;background:#fff}
.ac-verified{color:#d9fbea;background:rgba(15,184,105,.17);border:1px solid rgba(89,230,161,.24)}
.ac-verified svg{width:11px;height:11px}
.ac-scroll{flex:1;overflow:auto;padding:20px 22px 26px;scrollbar-width:thin}
.ac-scope-card{
  display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;align-items:center;
  padding:15px;border:1px solid rgba(18,101,255,.13);border-radius:17px;
  background:linear-gradient(135deg,rgba(18,101,255,.075),rgba(18,101,255,.018));
}
.ac-scope-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:var(--ac-blue);background:#fff;box-shadow:0 5px 18px rgba(18,101,255,.11)}
.ac-scope-icon svg{width:20px;height:20px}
.ac-scope-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ac-blue)}
.ac-scope-text{margin-top:4px;font-size:12px;line-height:1.5;color:#4d607a}
.ac-section{margin-top:22px}
.ac-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ac-section-title{font-size:11px;font-weight:800;letter-spacing:.085em;text-transform:uppercase;color:#6c7889}
.ac-live{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700;color:var(--ac-green)}
.ac-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.10)}
.ac-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ac-metric{min-width:0;padding:13px 14px;border:1px solid var(--ac-line);border-radius:15px;background:var(--ac-card)}
.ac-metric-value{font-size:18px;font-weight:760;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-metric-label{margin-top:4px;font-size:10.5px;color:var(--ac-muted)}
.ac-capabilities{border:1px solid var(--ac-line);border-radius:17px;overflow:hidden;background:var(--ac-card)}
.ac-capability{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 13px;border-block-end:1px solid rgba(20,35,58,.075)}
.ac-capability:last-child{border-block-end:0}
.ac-cap-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:#40536d;background:#f1f4f8}
.ac-cap-icon svg{width:16px;height:16px}
.ac-cap-copy{min-width:0}
.ac-cap-name{font-size:12px;font-weight:680;color:#263750}
.ac-cap-note{margin-top:2px;font-size:10px;line-height:1.35;color:#8994a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:9.5px;font-weight:800;white-space:nowrap}
.ac-status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.ac-status.enabled{color:var(--ac-green);background:rgba(7,148,85,.085)}
.ac-status.limited{color:var(--ac-amber);background:rgba(214,122,0,.095)}
.ac-status.unavailable{color:#8490a0;background:rgba(132,144,160,.10)}
.ac-assurance{
  display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;padding:13px 14px;
  border:1px solid rgba(7,148,85,.14);border-radius:15px;background:rgba(7,148,85,.045);
}
.ac-assurance > svg{width:18px;height:18px;margin:7px;color:var(--ac-green)}
.ac-assurance strong{display:block;font-size:11.5px;color:#214b3a}
.ac-assurance span{display:block;margin-top:3px;font-size:10.5px;line-height:1.5;color:#658173}
.ac-source{margin-top:12px;text-align:center;font-size:9.5px;color:#98a2b1}
.ac-skeleton{height:72px;border-radius:15px;background:linear-gradient(100deg,#f0f2f5 20%,#fafbfd 42%,#f0f2f5 65%);background-size:220% 100%;animation:acShimmer 1.2s linear infinite}
@keyframes acShimmer{to{background-position-x:-220%}}

html[data-ag-role="superadmin"] #hzFleetBand,
html[data-ag-role="superadmin"] #hzAttention,
html[data-ag-role="superadmin"] #hzAttentionTrigger,
html[data-ag-role="superadmin"] .geosearch,
html[data-ag-role="superadmin"] .mapctrl,
html[data-ag-role="superadmin"] #objBtn{display:none!important}
html[data-ag-role="superadmin"] body{--hz-fleetbar:0px;--hz-attention:0px}

body.dark .ac-drawer,
body.hz-dark .ac-drawer,
html[data-theme="dark"] .ac-drawer{
  --ac-ink:#edf3fc;--ac-muted:#92a2b7;--ac-line:rgba(190,207,230,.13);--ac-card:rgba(17,29,47,.78);--ac-panel:#0d1828;
  background:linear-gradient(150deg,rgba(15,27,44,.99),rgba(9,19,33,.99));
  border-color:rgba(172,197,230,.14);
}
body.dark .ac-scroll,body.hz-dark .ac-scroll,html[data-theme="dark"] .ac-scroll{background:#0b1626}
body.dark .ac-scope-card,body.hz-dark .ac-scope-card,html[data-theme="dark"] .ac-scope-card{background:linear-gradient(135deg,rgba(39,124,255,.14),rgba(39,124,255,.035));border-color:rgba(76,145,255,.2)}
body.dark .ac-scope-icon,body.hz-dark .ac-scope-icon,html[data-theme="dark"] .ac-scope-icon{background:#162942}
body.dark .ac-scope-text,body.hz-dark .ac-scope-text,html[data-theme="dark"] .ac-scope-text{color:#9fb0c6}
body.dark .ac-cap-name,body.hz-dark .ac-cap-name,html[data-theme="dark"] .ac-cap-name{color:#dbe6f4}
body.dark .ac-cap-icon,body.hz-dark .ac-cap-icon,html[data-theme="dark"] .ac-cap-icon{color:#b6c6da;background:#18283d}
body.dark .ac-assurance strong,body.hz-dark .ac-assurance strong,html[data-theme="dark"] .ac-assurance strong{color:#afe3ca}
body.dark .ac-skeleton,body.hz-dark .ac-skeleton,html[data-theme="dark"] .ac-skeleton{background:linear-gradient(100deg,#15243a 20%,#1c2e48 42%,#15243a 65%);background-size:220% 100%}

@media(max-width:700px){
  .ac-drawer{inset:0;width:100%;border-radius:0;border:0}
  .ac-head{padding:22px 19px 20px}
  .ac-scroll{padding:18px 16px 28px}
  .ac-title{font-size:20px}
  .ac-capability{grid-template-columns:32px minmax(0,1fr) auto;padding:11px}
  .ac-cap-note{max-width:44vw}
}
@media(prefers-reduced-motion:reduce){
  .ac-drawer,.ac-backdrop,.rail .me.ac-access-trigger,.ac-close{transition:none!important}
  .ac-skeleton{animation:none}
}
