html.security-pending body>*:not(#security-shield),html.security-locked body>*:not(#security-shield),html.security-concealed body>*:not(#security-shield){visibility:hidden!important;pointer-events:none!important}html.security-pending,html.security-locked,html.security-concealed{background:var(--ap-bg,#f3f5f8)!important}#security-shield{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;border:0;margin:0;padding:24px;background:var(--ap-bg,#f3f5f8);color:var(--ap-ink,#172638);z-index:2147483647;overflow:auto;box-sizing:border-box;font:16px/1.5 system-ui}#security-shield::backdrop{background:var(--ap-bg,#f3f5f8)}#security-shield .security-card{max-width:420px;margin:8vh auto;background:var(--ap-surface,white);border:1px solid var(--ap-line,#dce3eb);border-radius:18px;padding:28px;box-shadow:0 14px 40px #17314c12}#security-shield label,#security-settings label{display:block;margin:14px 0}#security-shield input,#security-settings input,#security-settings select{box-sizing:border-box;display:block;width:100%;padding:12px;border:1px solid var(--ap-control,#acbac9);border-radius:8px;font:inherit}#security-shield button,#security-settings button{margin:8px 8px 0 0;padding:10px 16px;border:1px solid #64788d;border-radius:8px;cursor:pointer;font:inherit}#security-shield button[type=submit]{background:#173e65;color:white}#security-shield [role=alert]{color:#a22121}#security-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:8px 18px;background:#eef3f8;font:13px system-ui}#security-controls a{color:#244d70}#security-controls button{cursor:pointer;border:1px solid #a2b5c8;border-radius:6px;padding:6px 12px;background:var(--ap-surface,white);color:var(--ap-ink,#172638)}#security-settings{max-width:640px}#security-settings fieldset{margin:24px 0;padding:18px;border:1px solid var(--ap-control,#cad6e1)}#security-settings fieldset label:has([type=checkbox]){display:inline-flex;gap:8px;margin-right:12px}#security-settings [type=checkbox]{width:auto}
#security-shield input.security-pin-code{-webkit-text-security:disc;letter-spacing:.3em}

/* Shared native controls inside explicit React slots; the PIN shield is unchanged. */
body[data-erp-platform] .ep-shell-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body[data-erp-platform] .ep-shell-slot{min-width:0}
body[data-erp-platform] .ep-shell-slot:empty{display:none}
body[data-erp-platform] #security-controls{padding:0;gap:8px;background:transparent;color:var(--ep-ink,var(--ap-ink,#193247));font:inherit;flex-wrap:nowrap}
body[data-erp-platform] #security-controls button,body[data-erp-platform] #security-controls summary,body[data-erp-platform] .ep-shell-slot .release-links a{display:inline-flex;align-items:center;min-height:36px;padding:7px 10px;border:1px solid var(--ep-line,var(--ap-line,#dfe7ed));border-radius:8px;background:var(--ep-surface,var(--ap-surface,#fff));color:inherit;white-space:nowrap;font:inherit;line-height:1.4;cursor:pointer}
body[data-erp-platform] #security-controls details{position:relative}
body[data-erp-platform] #security-controls summary{list-style:none}
body[data-erp-platform] #security-controls summary::-webkit-details-marker{display:none}
body[data-erp-platform] #security-controls summary::after{content:'⌄';margin-left:7px}
body[data-erp-platform] .security-account-links{position:absolute;z-index:60;right:0;top:calc(100% + 8px);min-width:205px;max-width:calc(100vw - 32px);padding:6px;display:grid;gap:2px;border:1px solid var(--ep-line,var(--ap-line,#dfe7ed));border-radius:10px;background:var(--ep-surface,var(--ap-surface,#fff));box-shadow:0 10px 30px #132b4020}
body[data-erp-platform] #security-controls .security-account-links a{padding:9px 10px;border-radius:6px;text-decoration:none;color:inherit}
body[data-erp-platform] #security-controls .security-account-links a:hover{background:var(--ep-alt,var(--ap-alt,#eef3f6))}
body[data-erp-platform] .ep-shell-slot .release-links{padding:0;border:0;background:transparent;color:inherit;font:inherit;gap:8px}
body[data-erp-platform] .ep-shell-slot .wt-launcher.wt-host{margin:0;font:inherit;--wt-bg:var(--ep-surface,var(--ap-surface,#fff));--wt-ink:var(--ep-ink,var(--ap-ink,#193247));--wt-line:var(--ep-line,var(--ap-line,#dfe7ed))}
body[data-erp-platform] .ep-shell-slot .wt-launcher[hidden]{display:none}
body[data-erp-platform] .ep-shell-slot .wt-launcher button{min-height:36px;padding:7px 10px;border-radius:8px}
body[data-erp-platform] .ep-shell-slot--notices .release-notice{margin:0 0 18px;border:1px solid var(--ep-line,var(--ap-line,#dfe7ed));border-radius:10px;padding:10px 14px;background:var(--ep-alt,var(--ap-alt,#eef3f6));color:var(--ep-ink,var(--ap-ink,#193247));font:inherit}
body[data-erp-platform] #erp-shell-fallback{position:fixed;z-index:80;bottom:12px;right:12px;left:12px;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid var(--ap-line,#dfe7ed);border-radius:10px;background:var(--ap-surface,#fff);color:var(--ap-ink,#193247);box-shadow:0 4px 22px #132b4020;font:13px/1.4 system-ui}
body[data-erp-platform] #erp-shell-fallback .release-links{padding:0;border:0;background:transparent;font:inherit}
body[data-erp-platform] #erp-shell-fallback .security-account-links{top:auto;bottom:calc(100% + 8px)}
@media(max-width:600px){body[data-erp-platform] .ep-shell-tools{justify-content:flex-start;gap:6px}body[data-erp-platform] #security-controls button,body[data-erp-platform] #security-controls summary,body[data-erp-platform] .ep-shell-slot .release-links a,body[data-erp-platform] .ep-shell-slot .wt-launcher button{min-height:40px;font-size:12px}}

/* Theme launcher shares the existing native slot in both React shells. */
body[data-erp-platform] #security-controls{flex-wrap:wrap;min-width:0;max-width:100%}
body[data-erp-platform] #security-controls #appearance-open{min-width:0;max-width:100%;white-space:normal}
@media(max-width:600px){body[data-erp-platform] #security-controls{gap:6px}}

/* Native Profile owns only personal actions; React owns its empty placement slot. */
body[data-erp-platform] #security-controls{align-items:center;gap:8px}
body[data-erp-platform] #security-controls .security-profile{margin:0;position:relative}
body[data-erp-platform] #security-controls .security-profile>summary{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:4px 8px;border:0;border-radius:9px;background:transparent;color:var(--ap-ink);font-weight:600}
body[data-erp-platform] #security-controls .security-profile>summary::after{content:none}
body[data-erp-platform] #security-controls .security-profile>summary:hover{background:var(--ap-hover)}
body[data-erp-platform] #security-controls .security-profile-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--ap-soft);color:var(--ap-ink);font-size:13px}
body[data-erp-platform] #security-controls .security-profile-menu{position:absolute;z-index:100;right:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 24px);padding:8px;display:grid;gap:3px;border:1px solid var(--ap-line);border-radius:12px;background:var(--ap-surface);color:var(--ap-ink);box-shadow:0 10px 30px var(--ap-navigation-shadow,#0002)}
body[data-erp-platform] #security-controls .security-profile:not([open])>.security-profile-menu{display:none}
body[data-erp-platform] #security-controls .security-profile-name{padding:7px 9px;overflow-wrap:anywhere;font-size:13px}
body[data-erp-platform] #security-controls .security-profile-menu>a,body[data-erp-platform] #security-controls .security-profile-menu>button{display:flex;align-items:center;justify-content:flex-start;min-height:40px;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:var(--ap-ink);text-align:left;text-decoration:none;white-space:normal;font:inherit;cursor:pointer}
body[data-erp-platform] #security-controls .security-profile-menu>a:hover,body[data-erp-platform] #security-controls .security-profile-menu>button:hover{background:var(--ap-hover)}
body[data-erp-platform] #security-controls .security-profile :is(summary,a,button):focus-visible{outline:3px solid var(--ap-accent);outline-offset:2px}
body[data-erp-platform] #security-controls .security-profile-status{padding:6px 9px;margin:0;white-space:normal;font-size:12px;line-height:1.5}
body[data-erp-platform] .security-workspace-navigation{display:grid;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid var(--ap-line)}
@media(max-width:600px){body[data-erp-platform] #security-controls .security-profile>summary,body[data-erp-platform] #security-controls .security-profile-menu>a,body[data-erp-platform] #security-controls .security-profile-menu>button{min-height:44px}}
@media print{.security-profile,.security-workspace-navigation{display:none!important}}
