/* Compact map-panel styling: profile and zones share the tracking scale. */
html:root body .ac-drawer .ac-head { padding:0!important; flex:0 0 auto; }
html:root body .ac-drawer .ac-head-top { min-height:64px; padding:12px 16px!important; gap:12px; box-sizing:border-box; }
html:root body .ac-drawer .ac-title { font-size:15px!important; line-height:1.25!important; font-weight:700!important; letter-spacing:-.2px!important; margin:3px 0 0!important; }
html:root body .ac-drawer .ac-eyebrow { font-size:9px!important; line-height:1.4; letter-spacing:.06em!important; }
html:root body .ac-drawer .ac-close { width:32px!important; height:32px!important; min-width:32px; flex:0 0 32px!important; padding:0!important; display:grid; place-items:center; }
html:root body .ac-drawer .ac-close svg { width:16px; height:16px; }
html:root body .ac-drawer .ac-identity { padding:14px 16px!important; margin:0!important; gap:10px; }
html:root body .ac-drawer .ac-avatar { width:38px!important; height:38px!important; flex:0 0 38px!important; font-size:12px!important; }
html:root body .ac-drawer .ac-person-name { font-size:13px!important; line-height:1.4; }
html:root body .ac-drawer :is(.ac-role-chip,.ac-verified) { font-size:9px!important; font-weight:600; padding:4px 7px; }
html:root body .ac-drawer .ac-scroll { padding:14px 16px 18px!important; min-height:0; }
html:root body .ac-drawer .ac-scope-card { padding:12px!important; gap:10px; border-radius:12px!important; background:var(--sm-bg,#f6f8fc)!important; }
html:root body .ac-drawer .ac-scope-kicker { font-size:9px!important; }
html:root body .ac-drawer .ac-scope-text { font-size:11px!important; line-height:1.5; color:var(--sm-muted,#718096)!important; }
html:root body .ac-drawer .ac-section { margin-top:18px; }
html:root body .ac-drawer .ac-section-title { font-size:10px!important; font-weight:650; letter-spacing:.05em; color:var(--sm-muted,#718096); }
html:root body .ac-drawer .ac-metrics { gap:8px; }
html:root body .ac-drawer .ac-metric { padding:12px!important; border-radius:12px!important; }
html:root body .ac-drawer .ac-metric-value { font-size:18px!important; line-height:1.3; font-weight:700; }
html:root body .ac-drawer .ac-metric-label { font-size:10px!important; line-height:1.4; white-space:normal; }
html:root body .ac-drawer .ac-capabilities { border-radius:12px; border-color:var(--sm-line,#edf1f6); background:var(--sm-panel,#fff); }
html:root body .ac-drawer .ac-capability { padding:11px 10px; gap:9px; border-color:var(--sm-line,#edf1f6); }
html:root body .ac-drawer .ac-cap-name { font-size:11px!important; color:var(--sm-ink,#26354b)!important; }
html:root body .ac-drawer .ac-cap-note { font-size:10px!important; white-space:normal; line-height:1.4; color:var(--sm-muted,#718096)!important; }
html:root body .ac-drawer .ac-status { font-size:8px!important; padding:4px 6px; }
html:root body .ac-drawer .ac-actions { padding:12px 16px!important; border-color:var(--sm-line,#edf1f6); background:var(--sm-panel,#fff)!important; }
html:root body .ac-drawer .ac-logout { height:40px; border-radius:10px; font-size:12px!important; font-weight:650; }
html:root body .ac-drawer .ac-assurance :is(strong,span) { font-size:10px!important; line-height:1.5; }
html:root body .ac-drawer .ac-source { font-size:9px; }
/* More specific than the global full-page h1 rule, at every breakpoint. */
#pageZones#pageZones#pageZones#pageZones .zone-head-copy h1 {
 font-size:15px!important; font-weight:700!important; line-height:1.25!important; letter-spacing:-.2px!important;
}

/* Account sheet: actual identity, compact scope and role-specific permissions. */
html:root body .ap-account .ac-head-top{justify-content:space-between}
html:root body .ap-account .ac-person-name{font-size:14px!important;font-weight:650}
.ap-account .ap-email{color:var(--sm-muted,#718096);font-size:11px;overflow-wrap:anywhere;margin:3px 0 7px}
.ap-account .ap-active{font-size:10px;color:#14865f;background:#e9f7ef;padding:3px 7px;border-radius:12px}
.ap-account .ap-active.is-inactive{color:#b73b49;background:#fdeef0}
.ap-account .ap-details{border:1px solid var(--sm-line,#e7edf4);border-radius:12px;padding:3px 12px}
.ap-account .ap-detail{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;font-size:11px}
.ap-account .ap-detail+.ap-detail{border-top:1px solid var(--sm-line,#e7edf4)}
.ap-account .ap-detail>span{color:var(--sm-muted,#718096);flex-shrink:0}
.ap-account .ap-detail>strong{font-weight:550;text-align:end;overflow-wrap:anywhere;min-width:0}
html:root body .ap-account .ac-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px}
html:root body .ap-account .ac-section-title{margin:0;font-size:11px!important;text-transform:none;letter-spacing:0}
.ap-account .ap-permissions{border:1px solid var(--sm-line,#e7edf4);border-radius:12px;overflow:hidden}
.ap-account .ap-permission{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;font-size:11px}
.ap-account .ap-permission+.ap-permission{border-top:1px solid var(--sm-line,#e7edf4)}
.ap-account .ap-status{display:inline-flex;align-items:center;gap:3px;font-size:9px;white-space:nowrap}
.ap-account .ap-status svg{width:12px;height:12px}
.ap-account .is-allowed{color:#168668}.ap-account .is-denied{color:var(--sm-muted,#718096)}
.ap-account .ap-security{border-top:1px solid var(--sm-line,#e7edf4);padding-top:13px}
.ap-account .ap-security summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px;font-weight:550;list-style:none}
.ap-account .ap-security summary::after{content:'›';margin-inline-start:auto;transform:rotate(0)}
.ap-account .ap-security[open] summary::after{transform:rotate(90deg)}
.ap-account .ap-security summary svg{width:15px;height:15px;color:var(--sm-blue,#3068ed)}
.ap-account .ap-session-open,.ap-account .ap-retry{display:flex;align-items:center;gap:7px;width:100%;margin-top:12px;padding:10px 12px;border:1px solid var(--sm-line,#e7edf4);border-radius:9px;background:var(--sm-panel,#fff);color:var(--sm-ink,#26354b);font-size:11px;cursor:pointer}
.ap-account .ap-session-open svg{width:15px;height:15px}
.ap-account #acSessionList{font-size:11px;color:var(--sm-muted,#718096)}
.ap-account .ap-session{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 0;border-bottom:1px solid var(--sm-line,#e7edf4)}
.ap-account .ap-session button{padding:5px 7px;border:1px solid var(--sm-line,#e7edf4);border-radius:7px;background:transparent;color:#bd4050;font-size:10px;cursor:pointer}
.ap-account .ap-error{font-size:12px;color:#c04450}.ap-account .ap-load{font-size:12px;color:var(--sm-muted,#718096);padding:20px 0}
html:root body .ap-account .ac-section{margin-top:15px}
