@font-face{
 font-family:Inter;
 src:url('/fonts/Inter-Variable.ttf')
}
@font-face{
 font-family:Plex;
 src:url('/fonts/IBM-Plex-Arabic-Regular.ttf')
}
@font-face{
 font-family:Plex;
 src:url('/fonts/IBM-Plex-Arabic-Bold.ttf');
 font-weight:700
}
:root{
 color-scheme:dark;
 --bg:#080f20;
 --surface:#101b33;
 --surface2:#14213c;
 --line:#273452;
 --muted:#99a9c9;
 --text:#f4f5ff;
 --purple:#8450ff;
 --blue:#199fff;
 --green:#34d399;
 --shadow:0 12px 35px #0002;
}
html[data-theme="light"]{
 color-scheme:light;
 --bg:#f0f3fa;
 --surface:#ffffff;
 --surface2:#f5f7fc;
 --line:#d5deed;
 --muted:#526581;
 --text:#081c54;
 --purple:#7138ef;
 --blue:#0755e9;
 --green:#15803d;
 --shadow:0 7px 25px #173b7912;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{
 margin:0;
 background:var(--bg);
 color:var(--text);
 font-family:Inter,Plex,sans-serif;
 min-height:100vh;
}
html[lang="ar"] body{font-family:Plex,Inter,sans-serif}
button,input{font:inherit}
button{
 cursor:pointer;
 padding:10px 16px;
 border:1px solid var(--line);
 background:var(--surface2);
 color:var(--text);
 border-radius:12px;
}
button:hover{border-color:var(--blue)}
button:disabled{opacity:.5;cursor:wait}
.topbar{
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:16px 26px;
 background:var(--surface);
 border-bottom:1px solid var(--line);
 gap:12px;
}
.brand,.actions,.heading{
 display:flex;
 align-items:center;
 gap:12px;
}
.brand strong{letter-spacing:2px}
.brand small{display:block;letter-spacing:2px}
.logo{
 display:grid;
 place-items:center;
 width:46px;height:46px;
 border-radius:15px;
 background:linear-gradient(135deg,#7138ef,#0755e9);
 color:white;
 font-size:27px;
 font-weight:800;
 box-shadow:0 8px 24px #7138ef35;
}
.logo.large{width:70px;height:70px;font-size:40px}
small,p{color:var(--muted)}
h1{font-size:clamp(23px,3vw,34px);margin:8px 0}
h2{font-size:19px;margin:0 0 20px}
.panel{
 background:var(--surface);
 border:1px solid var(--line);
 border-radius:20px;
 padding:24px;
 box-shadow:var(--shadow);
}
.login{
 display:grid;
 place-items:center;
 min-height:calc(100vh - 90px);
 padding:24px;
 background:radial-gradient(
 ellipse at 20% 20%,#7138ef18,transparent 60%);
}
.login-card{width:min(440px,100%);padding:35px}
.login-card label{display:block;margin:18px 0 7px}
input{
 width:100%;
 padding:14px;
 border:1px solid var(--line);
 border-radius:12px;
 background:var(--surface2);
 color:var(--text);
}
.primary{
 width:100%;
 margin-top:24px;
 background:linear-gradient(120deg,#7138ef,#0755e9);
 color:white;border:0;font-weight:700;
}
#loginError{color:#ef6464}
.workspace{
 display:grid;
 grid-template-columns:235px minmax(0,1fr);
 gap:22px;
 padding:24px;
 max-width:1800px;
 margin:auto;
}
.sidebar{
 align-self:start;
 position:sticky;
 top:20px;
 display:grid;
 gap:12px;
 padding:18px;
}
.sidebar button{text-align:start}
.sidebar button:hover{
 background:var(--surface2);
 color:var(--blue);
}
.sidebar-footer{
 font-size:10px;
 color:var(--muted);
 margin-top:35px;
}
main{min-width:0;display:grid;gap:20px}
.heading{justify-content:space-between}
.metrics{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:16px;
}
.metric{
 border-top:3px solid var(--accent);
 min-height:145px;
}
.metric strong{
 display:block;
 color:var(--accent);
 font-size:40px;
 margin-top:10px;
}
.metric span{color:var(--muted)}
.resource{margin-bottom:20px}
.resource-label{
 display:flex;
 justify-content:space-between;
 margin-bottom:10px;
}
progress{
 width:100%;height:12px;
 accent-color:var(--purple);
}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th,td{
 text-align:start;
 padding:16px 10px;
 border-bottom:1px solid var(--line);
 white-space:nowrap;
}
th{color:var(--muted);font-size:13px}
.event{
 display:flex;
 justify-content:space-between;
 gap:12px;
 flex-wrap:wrap;
 padding:14px 0;
 border-bottom:1px solid var(--line);
}
@media(max-width:1050px){
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace{grid-template-columns:190px minmax(0,1fr)}
}
@media(max-width:700px){
 .workspace{display:block;padding:12px}
 .sidebar{
  position:static;
  display:flex;
  overflow-x:auto;
  margin-bottom:18px;
 }
 .sidebar button{white-space:nowrap}
 .sidebar small,.sidebar-footer{display:none}
 .topbar{padding:12px}
 .brand strong{font-size:13px}
 .brand small{font-size:9px}
 .actions{gap:5px}
 .actions button{padding:8px}
 .panel{padding:16px}
 .metric strong{font-size:32px}
 .metrics{gap:10px}
}

/* ENTERPRISE V9003B */

.topbar{
 position:sticky;
 top:0;
 z-index:20;
 background:var(--surface);
 box-shadow:0 6px 30px #0001;
}

.workspace{
 max-width:1920px;
 padding:28px;
 gap:24px;
}

.sidebar{
 top:105px;
 border-radius:24px;
}

.sidebar button{
 border-color:transparent;
 background:transparent;
 min-height:48px;
 font-weight:600;
}

.sidebar button:hover,
.sidebar button:focus-visible{
 background:var(--surface2);
 border-color:var(--line);
}

main section{
 scroll-margin-top:110px;
}

.metrics{
 grid-template-columns:repeat(3,minmax(0,1fr));
}

.metric{
 position:relative;
 overflow:hidden;
 min-height:130px;
 border-top:1px solid var(--line);
 border-inline-start:4px solid var(--accent);
}

.metric:after{
 content:"";
 position:absolute;
 width:110px;
 height:110px;
 border-radius:50%;
 background:var(--accent);
 opacity:.045;
 inset-inline-end:-25px;
 bottom:-35px;
 pointer-events:none;
}

.metric strong{
 font-variant-numeric:tabular-nums;
}

.section-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 margin-bottom:20px;
}

.section-heading h2{
 margin:5px 0;
 font-size:24px;
}

.counter{
 background:var(--surface2);
 border:1px solid var(--line);
 padding:8px 15px;
 border-radius:12px;
 color:var(--muted);
}

.company-toolbar{
 display:flex;
 gap:12px;
 margin-bottom:22px;
}

.company-toolbar input{
 flex:1;
 min-width:0;
}

select{
 font:inherit;
 padding:12px;
 color:var(--text);
 background:var(--surface2);
 border:1px solid var(--line);
 border-radius:12px;
}

.company-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
}

.company-card{
 padding:24px;
 border:1px solid var(--line);
 border-radius:22px;
 background:var(--surface2);
 transition:border-color .2s,transform .2s;
 min-width:0;
}

.company-card:hover{
 border-color:var(--purple);
 transform:translateY(-2px);
}

.company-head{
 display:flex;
 align-items:center;
 gap:15px;
 margin-bottom:20px;
}

.company-avatar{
 display:grid;
 place-items:center;
 width:60px;
 height:60px;
 flex-shrink:0;
 border-radius:18px;
 background:linear-gradient(135deg,#7138ef,#0755e9);
 color:white;
 font-size:23px;
 font-weight:800;
}

.company-title{
 min-width:0;
}

.company-title h3{
 margin:0 0 5px;
 font-size:19px;
 overflow-wrap:anywhere;
}

.company-tag{
 display:inline-block;
 padding:6px 12px;
 border-radius:9px;
 font-size:12px;
 font-weight:700;
 border:1px solid var(--line);
}

.company-tag.protected{color:var(--blue)}
.company-tag.managed{color:var(--green)}

.company-status,.detail-row{
 display:flex;
 justify-content:space-between;
 gap:12px;
 flex-wrap:wrap;
 padding:13px 0;
 border-bottom:1px solid var(--line);
}

.company-status span,.detail-row span{
 color:var(--muted);
 font-size:13px;
}

.state-active{color:var(--green)}
.state-suspended{color:#d97706}
.state-failed{color:#ef6464}

.company-details{
 margin-top:14px;
}

.company-details summary{
 cursor:pointer;
 color:var(--blue);
 font-weight:600;
 padding:8px 0;
}

.detail-row strong{
 font-size:13px;
 overflow-wrap:anywhere;
}

.company-note{
 font-size:12px;
 line-height:1.8;
}

.company-link{
 display:block;
 text-align:center;
 padding:12px;
 border:1px solid var(--line);
 border-radius:12px;
 color:var(--blue);
 text-decoration:none;
 font-weight:600;
}

.company-link:hover{
 border-color:var(--blue);
}

.empty-state{
 grid-column:1/-1;
 padding:30px;
 text-align:center;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible{
 outline:2px solid var(--blue);
 outline-offset:3px;
}

@media(max-width:1100px){
 .workspace{padding:18px}
 .company-grid{grid-template-columns:1fr}
}

@media(max-width:700px){
 .workspace{padding:12px}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .company-toolbar{flex-direction:column}
 .company-card{padding:18px}
 .sidebar{border-radius:16px}
 .sidebar button{min-height:44px}
 .metric{min-height:110px}
 .metric strong{font-size:30px}
 .topbar{flex-wrap:wrap}
 .section-heading h2{font-size:20px}
}

@media(prefers-reduced-motion:reduce){
 *{
  scroll-behavior:auto!important;
  transition:none!important;
 }
}


#createDialog{width:min(540px,94vw);max-height:90vh;overflow:auto;color:var(--text);background:var(--surface)} #createDialog::backdrop{background:#0009} #createDialog label{display:block;margin:12px 0 5px} #createDialog button{margin-top:12px} #createError{color:#ef6464} #createCompany{color:var(--blue);font-weight:700} @media(max-width:700px){.section-heading{flex-wrap:wrap}}

.ep-delete-button,.ep-restore-button{
 padding:10px 16px;
 border-radius:9px;
 cursor:pointer;
 font:inherit;
 font-weight:600;
 background:transparent;
}
.ep-delete-button{
 color:#e05260;
 border:1px solid #e05260;
}
.ep-restore-button{
 color:#239b73;
 border:1px solid #239b73;
}
.ep-recycle-dialog{
 width:min(440px,90vw);
 padding:24px;
 border:1px solid var(--line);
 border-radius:18px;
 background:var(--surface);
 color:var(--text);
}
.ep-recycle-dialog::backdrop{
 background:rgba(0,0,0,.65);
}
.ep-recycle-dialog form{
 display:grid;
 gap:12px;
}
.ep-recycle-dialog input{
 width:100%;
 box-sizing:border-box;
 padding:12px;
 border-radius:8px;
 background:var(--bg);
 color:var(--text);
 border:1px solid var(--line);
}
.ep-recycle-error{color:#e05260}

/* V9003C34A RECYCLE BIN */

#recycle{
 scroll-margin-top:90px;
}

.ep-recycle-empty{
 grid-column:1/-1;
 padding:36px 16px;
 text-align:center;
 color:var(--muted);
 border:1px dashed var(--line);
 border-radius:14px;
}

.ep-recycled-card{
 border-inline-start:3px solid #dc5263;
}

.ep-recycle-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 flex-wrap:wrap;
 gap:12px;
}

.ep-recycled-card p{
 color:var(--muted);
 font-size:13px;
 margin:4px 0;
}

.ep-deleted-status{
 color:#dc5263;
 font-size:14px;
}

#recycleCount{
 font-variant-numeric:tabular-nums;
}

@media(max-width:600px){
 .ep-recycled-card{
  padding:14px;
 }
}

.ep-manage-button{
 padding:11px 16px;
 border-radius:10px;
 border:1px solid var(--line);
 background:var(--surface2);
 color:var(--text);
 font:inherit;
 font-weight:600;
 cursor:pointer;
 transition:background .15s,border-color .15s;
}
.ep-manage-button:hover{
 border-color:var(--purple);
}
.ep-manage-button:focus-visible{
 outline:2px solid var(--purple);
 outline-offset:3px;
}

.ep-profile-fields{display:grid;gap:8px}.ep-recycle-dialog{max-height:90vh;overflow:auto}

.ep-admin-dialog{
 width:min(620px,92vw);
 max-height:88vh;
 overflow:auto;
}
.ep-admin-fields:not([hidden]){
 display:grid;
 gap:10px;
}
.ep-admin-dialog input,
.ep-admin-dialog select{
 width:100%;
 box-sizing:border-box;
}


/* EP_COMPANY_PROFILE_C36C */

dialog.ep-company-c36c {
 width:min(860px,94vw);
 max-width:94vw;
 max-height:88vh;
 overflow:auto;
 border-radius:20px;
 padding:24px;
}

.ep-company-c36c .ep-profile-fields {
 display:grid;
 grid-template-columns:
  minmax(110px,1fr) minmax(0,2fr);
 gap:12px;
 align-items:center;
 margin:16px 0;
}

.ep-company-c36c input,
.ep-company-c36c select {
 width:100%;
 min-width:0;
 box-sizing:border-box;
}

.ep-company-actions-c36c {
 display:flex;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:12px;
 padding-bottom:16px;
 margin-bottom:16px;
 border-bottom:1px solid rgba(128,128,128,.25);
}

.ep-company-account-c36c {
 padding:10px 16px;
 border-radius:10px;
 cursor:pointer;
}

@media(max-width:600px){
 dialog.ep-company-c36c {
  width:94vw;
  padding:16px;
 }
 .ep-company-c36c .ep-profile-fields {
  grid-template-columns:1fr;
  gap:7px;
 }
}



/* EP_COMPANY_LAYOUT_C36C2 */

dialog.ep-company-c36c {
 width:min(900px,94vw);
 max-height:86vh;
 padding:20px;
 overflow:auto;
}

.ep-company-c36c form {
 display:flex;
 flex-direction:column;
 gap:10px;
}

.ep-company-c36c .ep-profile-fields {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px 18px;
 margin:8px 0;
}

.ep-field-c36c2 {
 display:flex;
 flex-direction:column;
 gap:6px;
 min-width:0;
}

.ep-field-c36c2 label {
 text-align:start;
 margin:0;
}

.ep-company-c36c input,
.ep-company-c36c select {
 min-height:42px;
 width:100%;
}

.ep-company-actions-c36c {
 margin:0;
 padding:0 0 12px;
}

.ep-company-footer-c36c2 {
 position:sticky;
 bottom:0;
 display:flex;
 gap:12px;
 padding:14px;
 border-radius:12px;
 background:inherit;
 backdrop-filter:blur(20px);
 border:1px solid rgba(128,128,128,.2);
 z-index:5;
}

.ep-company-footer-c36c2 button {
 flex:1;
 margin:0;
}

@media(max-width:600px){
 .ep-company-c36c .ep-profile-fields {
  grid-template-columns:1fr;
 }
}



/* EP_COMPANY_BRANDING_C36D */

.ep-logo-preview-c36d {
 width:180px;
 height:180px;
 object-fit:contain;
 align-self:center;
 padding:12px;
 border:1px solid rgba(128,128,128,.3);
 border-radius:16px;
 background:#f1f5f9;
}

.ep-logo-preview-c36d[hidden] {
 display:none;
}



/* EP_BRANDING_UI_C36E11 */

.ep-logo-preview-c36d {
    display:block !important;
    width:160px !important;
    height:160px !important;
    max-width:100% !important;
    object-fit:contain !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:0 !important;
    margin:16px auto !important;
}

.ep-logo-preview-c36d[hidden] {
    display:none !important;
}

.ep-branding-toast-c36e11 {
    position:fixed;
    top:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:2147483647;
    background:#15803d;
    color:#fff;
    padding:16px 26px;
    border-radius:14px;
    box-shadow:0 8px 30px #0003;
    font-family:inherit;
    font-size:15px;
    font-weight:600;
    text-align:center;
    max-width:90vw;
    animation:epBrandToast11 .25s ease-out;
}

@keyframes epBrandToast11 {
    from {
        opacity:0;
        transform:translate(-50%,-12px);
    }
    to {
        opacity:1;
        transform:translate(-50%,0);
    }
}



/* EP_BRANDING_DIALOG_C36E12 */

canvas.ep-logo-preview-c36d {
    display:block !important;
    width:150px !important;
    height:150px !important;
    max-width:100% !important;
    object-fit:contain !important;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:18px auto !important;
}

canvas.ep-logo-preview-c36d[hidden] {
    display:none !important;
}

dialog.ep-brand-confirm-c36e12 {
    width:min(420px,90vw) !important;
    max-width:90vw !important;
    box-sizing:border-box;
    padding:28px !important;
    border-radius:20px !important;
    text-align:center;
    font-family:inherit;
}

.ep-brand-confirm-c36e12::backdrop {
    background:rgba(0,0,0,.58);
    backdrop-filter:blur(5px);
}

.ep-brand-warning12 {
    display:grid;
    place-items:center;
    width:60px;
    height:60px;
    margin:0 auto 18px;
    border-radius:50%;
    background:rgba(239,68,68,.12);
    color:#ef4444;
    font-size:32px;
    font-weight:700;
}

.ep-brand-confirm-c36e12 h3 {
    margin:0 0 12px;
    font-size:18px;
}

.ep-brand-company12 {
    font-weight:700;
    font-size:15px;
}

.ep-brand-message12 {
    opacity:.8;
    line-height:1.9;
    font-size:14px;
    margin:14px 0 24px;
}

.ep-brand-actions12 {
    display:flex;
    gap:12px;
    margin-top:20px;
}

.ep-brand-actions12 button {
    flex:1;
    min-height:44px;
    border-radius:10px;
    font-family:inherit;
}

.ep-brand-danger12 {
    background:linear-gradient(
        135deg,#dc2626,#be123c
    ) !important;
    color:white !important;
    border:none !important;
}

.ep-brand-danger12:hover {
    filter:brightness(1.12);
}



/* EP_DIRECT_DELETE_C36E14 */

.ep-inline-delete14 {
    display:block;
    padding:20px;
    margin:14px 0;
    border:1px solid rgba(239,68,68,.45);
    border-radius:15px;
    background:rgba(239,68,68,.07);
    color:inherit;
}

.ep-inline-delete14[hidden] {
    display:none !important;
}

.ep-inline-delete14 h3 {
    margin:0 0 12px;
    font-size:16px;
    color:inherit;
}

.ep-inline-delete14 p {
    font-size:14px;
    line-height:1.8;
}

.ep-inline-delete-actions14 {
    display:flex;
    gap:12px;
    margin-top:18px;
}

.ep-inline-delete-actions14 button {
    flex:1;
    min-height:44px;
    border-radius:10px;
    font-family:inherit;
}

.ep-inline-delete-error14 {
    color:#ef4444;
    font-weight:600;
    overflow-wrap:anywhere;
}



/* EP_INSTANT_TRANSFER_C36E16 */

.ep-transfer-pending16 {
    opacity:.85;
    border:1px dashed #8b5cf6 !important;
    pointer-events:none;
}

.ep-transfer-label16 {
    color:inherit;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
}

.ep-transfer-label16::before {
    content:"";
    display:inline-block;
    width:14px;
    height:14px;
    border:2px solid rgba(139,92,246,.25);
    border-top-color:#8b5cf6;
    border-radius:50%;
    animation:epTransferSpin16 .7s linear infinite;
}

@keyframes epTransferSpin16 {
    to {transform:rotate(360deg);}
}

.ep-transfer-error16 {
    background:#b91c1c !important;
    color:white !important;
}

@media(prefers-reduced-motion:reduce){
    .ep-transfer-label16::before {
        animation:none;
    }
}


/* EP38A */
.ep38-dialog{width:min(850px,94vw)!important;max-height:90vh;overflow:auto;padding:24px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:20px}.ep38-dialog::backdrop{background:#0009}.ep38-head,.ep38-backup{display:flex;align-items:center;justify-content:space-between;gap:12px}.ep38-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.ep38-metric,.ep38-backup,.ep38-confirm{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}.ep38-metric strong,.ep38-backup small{display:block;margin-top:6px}.ep38-actions{display:flex;flex-wrap:wrap;gap:10px}.ep38-backups{display:grid;gap:8px}.ep38-dialog form{display:grid;gap:10px;margin:16px 0}.ep38-dialog [hidden]{display:none!important}.ep38-message{overflow-wrap:anywhere;color:var(--blue)}@media(max-width:520px){.ep38-dialog{padding:14px}.ep38-grid{gap:6px}.ep38-metric{padding:10px}}

.ep38d-controls{display:flex;gap:8px;flex-wrap:wrap}.ep38d-delete{color:#ef4444!important;border-color:#ef444477!important}.ep38d-delete:disabled{opacity:.4;cursor:not-allowed}

/* EP_PREMIUM_C39 */
:root{--bg:#090f1d;--surface:#111c30;--surface2:#19263d;--line:#34455f;--muted:#a7b7d0;--text:#f1f5ff;--blue:#60a5fa;--purple:#b19aff;--green:#34d399;--ep-input:#090f1d;--ep-border:#526984;--ep-cyan:#22d3ee;--ep-gold:#fbbf24;--ep-red:#fb7185}
html[data-theme=light]{--bg:#eef3fa;--surface:#fff;--surface2:#f0f5fc;--line:#cbd7e7;--muted:#475d78;--text:#172b49;--blue:#1559bf;--purple:#6941c6;--green:#087d55;--ep-input:#fff;--ep-border:#8399b5;--ep-cyan:#087b91;--ep-gold:#966000;--ep-red:#b4233b}
body{background:radial-gradient(ellipse at 10% 0%,#437bff12,transparent 42%),var(--bg)}
.topbar{border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.panel,.company-card{border-radius:20px;box-shadow:0 10px 30px #00000012}
.sidebar button{border-inline-start:3px solid currentColor!important;background:var(--surface2);padding:12px 14px;transition:transform .18s,background .18s}
.sidebar button:hover{transform:translateY(-2px);background:var(--surface)}
.sidebar [data-page=overview]{color:var(--blue)}.sidebar [data-page=companies]{color:var(--purple)}.sidebar [data-page=resources]{color:var(--ep-cyan)}.sidebar [data-page=recycle]{color:var(--ep-red)}.sidebar [data-page=audit]{color:var(--ep-gold)}
#security38{color:var(--purple)}#companies h2{color:var(--purple)}#resources h2{color:var(--ep-cyan)}#recycle h2{color:var(--ep-red)}#audit h2{color:var(--ep-gold)}
.metric{background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,var(--surface)),var(--surface));border-top:3px solid var(--accent);transition:transform .2s}.metric:hover{transform:translateY(-3px)}.metric span{color:var(--accent);font-weight:700}
input:not([type=file]),select,textarea,dialog input:not([type=file]){background:var(--ep-input)!important;border:1px solid var(--ep-border)!important;color:var(--text)!important;min-height:46px;box-shadow:inset 0 1px 3px #00000012}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input:focus,select:focus,textarea:focus{outline:2px solid var(--blue);outline-offset:2px}
button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:not(:disabled){transition:background .18s,border-color .18s,box-shadow .18s}button:not(:disabled):hover{box-shadow:0 0 0 3px #60a5fa22}
.ep38-confirm{background:var(--surface)!important;border:1px solid var(--ep-border)!important;padding:22px!important;border-radius:18px!important}.ep38-confirm h3{color:var(--blue);margin:0 0 8px}.ep38-confirm label{font-weight:700;color:var(--text)}.ep38-confirm button[type=submit],.primary{background:linear-gradient(120deg,#2456ce,#1469c9)!important;color:#fff!important;font-weight:700;border:0!important}.ep38d-delete,.ep39-danger{background:#b91c35!important;color:#fff!important;border:1px solid #e65b70!important}.ep39-eye{justify-self:end;align-self:start;width:auto!important;font-size:12px;padding:5px 12px!important;color:var(--blue)!important;margin:0!important;min-height:30px!important}
.ep39-confirm-dialog{width:min(480px,92vw);color:var(--text);background:var(--surface);border:1px solid var(--ep-border);padding:26px}.ep39-confirm-dialog h2{color:var(--ep-red)}.ep39-confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}dialog::backdrop{background:#030817b8;backdrop-filter:blur(4px)}dialog[open]{animation:ep39-enter .2s ease-out}@keyframes ep39-enter{from{opacity:0;scale:.97}to{opacity:1;scale:1}}
.ep39-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ep39-gauge{--gauge:var(--blue);background:var(--surface2);border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center;min-width:0}.ep39-gauge[data-index="1"]{--gauge:var(--purple)}.ep39-gauge[data-index="2"]{--gauge:var(--ep-cyan)}.ep39-gauge[data-level=elevated]{--gauge:var(--ep-gold)}.ep39-gauge[data-level=warning]{--gauge:#f97316}.ep39-gauge[data-level=critical]{--gauge:var(--ep-red)}.ep39-gauge h3{color:var(--gauge);font-size:15px;margin:0 0 15px}.ep39-ring{--usage:0;width:min(150px,100%);aspect-ratio:1;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gauge) calc(var(--usage)*1%),var(--line) 0);transition:--usage .85s ease;box-shadow:0 0 22px color-mix(in srgb,var(--gauge) 15%,transparent)}@property --usage{syntax:'<number>';inherits:false;initial-value:0}.ep39-ring-inner{width:83%;aspect-ratio:1;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center;gap:3px}.ep39-value{font-size:clamp(18px,3vw,32px);font-variant-numeric:tabular-nums;color:var(--text)}.ep39-history{height:36px;display:flex;align-items:flex-end;gap:2px;margin-top:14px;direction:ltr}.ep39-history i{flex:1;background:var(--gauge);border-radius:3px 3px 0 0;opacity:.7;min-width:0}.ep39-live-status{font-size:13px;margin-bottom:0}.ep39-online{color:var(--green)}.state-active{color:var(--green)!important}
@media(max-width:760px){.ep39-resources{grid-template-columns:1fr}.ep39-gauge{padding:14px}.ep39-ring{width:120px}.ep38-confirm{padding:14px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* EP_AUDIT_C40A */
.ep-audit40 {
 margin:10px 0;
 border:1px solid rgba(128,128,128,.22);
 border-radius:14px;
 overflow:hidden;
 border-inline-start:4px solid #6366f1;
}
.ep-audit40 summary {
 padding:16px;
 cursor:pointer;
}
.ep-audit40 summary:hover {
 background:rgba(99,102,241,.08);
}
.ep-audit-head40 {
 display:inline-flex;
 width:90%;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:10px;
}
.ep-audit-head40 strong {
 overflow-wrap:anywhere;
}
.ep-audit-body40 {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
 padding:16px;
 background:rgba(128,128,128,.05);
}
.ep-audit-field40 {
 display:flex;
 flex-direction:column;
 gap:7px;
 padding:12px;
 border:1px solid rgba(128,128,128,.15);
 border-radius:10px;
 overflow-wrap:anywhere;
 white-space:pre-wrap;
}
.ep-audit-field40 small {
 opacity:.7;
}
.ep-audit-field40:last-child {
 grid-column:1/-1;
}
@media(max-width:600px) {
 .ep-audit-body40 {
  grid-template-columns:1fr;
 }
}

/* EP_COLLAPSE_AUDIT_C40A2 */
#epAuditToggle40 > summary {
 cursor:pointer;
 padding:16px 20px;
 border:1px solid rgba(99,102,241,.35);
 border-radius:12px;
 background:rgba(99,102,241,.08);
 font-weight:700;
}
#epAuditToggle40 > summary:hover {
 background:rgba(99,102,241,.16);
}
#epAuditToggle40[open] > summary {
 margin-bottom:14px;
}


/* EP_BULK_BACKUP_C40D */
.ep40d-toolbar {
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:12px;
 padding:14px;
 margin-bottom:12px;
 border:1px solid rgba(128,128,128,.22);
 border-radius:12px;
}

.ep40d-toolbar label {
 display:flex;
 align-items:center;
 gap:8px;
}

.ep40d-toolbar input,
.ep38-backup > input[type="checkbox"] {
 width:18px!important;
 height:18px!important;
 flex:0 0 18px;
 accent-color:#2563eb;
 cursor:pointer;
}

.ep40d-toolbar button {
 margin-inline-start:auto;
}

.ep40d-kind {
 display:block;
 margin-top:5px;
 opacity:.8;
}

.ep40d-daily {
 color:#16a34a!important;
 font-weight:700;
}

.ep38-backup {
 gap:12px;
}

.ep40d-toolbar button:disabled {
 opacity:.4;
 cursor:not-allowed;
}

.ep9004-reset{
 width:min(680px,94vw);
 max-height:90vh;
 overflow:auto;
 padding:24px;
 border-radius:18px;
}

.ep9004-reset::backdrop{
 background:rgba(0,0,0,.65);
 backdrop-filter:blur(4px);
}

.ep9004-reset-form{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:16px;
 margin-top:20px;
}

.ep9004-field{
 display:flex;
 flex-direction:column;
 gap:8px;
}

.ep9004-field input{
 width:100%;
 box-sizing:border-box;
}

.ep9004-warning{
 border:1px solid #dc2626;
 border-radius:12px;
 padding:16px;
 background:rgba(220,38,38,.07);
}

.ep9004-check,
.ep9004-footer,
.ep9004-status{
 grid-column:1/-1;
}

.ep9004-check{
 display:flex;
 align-items:center;
 gap:10px;
}

.ep9004-footer{
 display:flex;
 justify-content:flex-end;
 gap:10px;
 padding-top:12px;
}

.ep9004-danger{
 background:#b91c1c!important;
 border-color:#dc2626!important;
 color:#fff!important;
}

.ep9004-danger:hover{
 background:#991b1b!important;
}

.ep9004-danger:disabled{
 opacity:.55;
 cursor:not-allowed;
}

@media(max-width:600px){
 .ep9004-reset{
  padding:16px;
 }
 .ep9004-reset-form{
  grid-template-columns:1fr;
 }
}

.ep-domain9004{
    width:min(860px,calc(100vw - 32px));
    max-width:calc(100vw - 32px);
    max-height:90dvh;
    padding:0;
    border:1px solid rgba(128,145,170,.25);
    border-radius:22px;
    overflow:auto;
    box-shadow:0 24px 90px rgba(0,0,0,.3);
}

.ep-domain9004::backdrop{
    background:rgba(4,10,20,.68);
    backdrop-filter:blur(5px);
}

.ep-domain-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:22px;
    border-bottom:1px solid rgba(128,145,170,.2);
}

.ep-domain-header h2{
    margin:0 0 6px;
    font-size:21px;
}

.ep-domain-header p{
    margin:0;
}

.ep-domain-close{
    flex:0 0 42px;
    width:42px;
    height:42px;
    padding:0;
    border-radius:12px;
    font-size:24px;
}

.ep-domain-body{
    padding:22px;
    display:grid;
    gap:16px;
}

.ep-domain-body h3{
    margin:0;
    font-size:16px;
}

.ep-domain-grid,
.ep-domain-history{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.ep-domain-cert{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:18px;
    border:1px solid rgba(128,145,170,.25);
    border-radius:16px;
    background:rgba(128,145,170,.055);
}

.ep-domain-cert strong{
    overflow-wrap:anywhere;
    font-size:14px;
}

.ep-domain-muted{
    opacity:.68;
    font-size:12px;
}

.ep-domain-days{
    font-size:36px;
    font-weight:750;
    font-variant-numeric:tabular-nums;
    line-height:1.15;
}

.ep-domain-state{
    display:inline-flex;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:650;
    background:rgba(148,163,184,.15);
}

.ep-domain-state[data-state="valid"]{
    color:#16a34a;
    background:rgba(22,163,74,.12);
}

.ep-domain-state[data-state="expiring"]{
    color:#d97706;
    background:rgba(217,119,6,.12);
}

.ep-domain-state[data-state="critical"],
.ep-domain-state[data-state="expired"],
.ep-domain-state[data-state="verification_failed"]{
    color:#ef4444;
    background:rgba(239,68,68,.12);
}

.ep-domain-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:18px;
    border:1px solid rgba(128,145,170,.25);
    border-radius:16px;
}

.ep-domain-form[hidden]{
    display:none!important;
}

.ep-domain-form h3,
.ep-domain-notice,
.ep-domain-check,
.ep-domain-primary{
    grid-column:1/-1;
}

.ep-domain-notice{
    margin:0;
    padding:13px;
    border-radius:10px;
    background:rgba(59,130,246,.09);
    border:1px solid rgba(59,130,246,.2);
    font-size:13px;
    line-height:1.8;
}

.ep-domain-field{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:13px;
}

.ep-domain-field input{
    width:100%;
    min-width:0;
    min-height:46px;
    box-sizing:border-box;
    border-radius:10px;
    font-size:16px;
}

.ep-domain-secondary{
    align-self:end;
    min-height:46px;
}

.ep-domain-check{
    display:flex!important;
    align-items:center;
    gap:10px;
    font-size:13px;
    line-height:1.7;
}

.ep-domain-check input[type="checkbox"]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    flex:0 0 18px;
    margin:0;
    accent-color:#2563eb;
}

.ep-domain-primary{
    min-height:48px;
    border-radius:11px;
    background:#2563eb!important;
    color:white!important;
    font-weight:650;
}

.ep-domain-primary:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.ep-domain-message:empty{
    display:none;
}

.ep-domain-message{
    margin:16px 22px 0;
    padding:12px;
    border-radius:10px;
    background:rgba(59,130,246,.1);
    font-size:13px;
    overflow-wrap:anywhere;
}

.ep-domain-message[data-type="success"]{
    background:rgba(22,163,74,.12);
    color:#16a34a;
}

.ep-domain-message[data-type="error"]{
    background:rgba(239,68,68,.12);
    color:#ef4444;
}

.ep-domain-working .ep-domain-message{
    animation:ep-domain-pulse 1.8s ease-in-out infinite;
}

@keyframes ep-domain-pulse{
    50%{opacity:.65}
}

@media(max-width:600px){

    .ep-domain9004{
        width:calc(100vw - 16px);
        max-width:calc(100vw - 16px);
        max-height:94dvh;
        border-radius:17px;
    }

    .ep-domain-header{
        padding:16px;
    }

    .ep-domain-header h2{
        font-size:17px;
    }

    .ep-domain-body{
        padding:14px;
        gap:14px;
    }

    .ep-domain-grid,
    .ep-domain-history,
    .ep-domain-form{
        grid-template-columns:minmax(0,1fr);
    }

    .ep-domain-form{
        padding:14px;
    }

    .ep-domain-message{
        margin:12px 14px 0;
    }

    .ep-domain9004 button{
        min-height:44px;
    }
}

@media(prefers-reduced-motion:reduce){
    .ep-domain-working .ep-domain-message{
        animation:none;
    }
}




/* EP_FAST_CREATE_V15F2 */

.ep-fast-create15{
 border:1px solid var(--purple);
}

.ep-fast-status15{
 display:flex;
 align-items:center;
 gap:10px;
 margin:16px 0;
 color:var(--purple);
}

.ep-fast-spinner15{
 display:inline-block;
 width:18px;
 height:18px;
 border:2px solid currentColor;
 border-inline-end-color:transparent;
 border-radius:50%;
 animation:epFastSpin15 .8s linear infinite;
}

@keyframes epFastSpin15{
 to{transform:rotate(360deg)}
}

@media(prefers-reduced-motion:reduce){
 .ep-fast-spinner15{animation:none}
}


/* EP_PURGE_UI_V15G */

.ep-purge-button15g{
 background:#b91c1c!important;
 color:#fff!important;
 border:1px solid #dc2626!important;
 border-radius:9px;
 padding:10px 15px;
 cursor:pointer;
 margin-block-start:8px;
}

.ep-purge-button15g:hover{
 background:#991b1b!important;
}

.ep-purge-button15g:disabled{
 opacity:.5;
 cursor:not-allowed;
}

.ep-purge-dialog15g{
 width:min(520px,calc(100vw - 24px));
 max-height:90vh;
 overflow:auto;
}

.ep-purge-warning15g{
 color:#ef4444;
 line-height:1.7;
}

.ep-purge-ack15g{
 display:flex!important;
 align-items:center;
 gap:10px;
 margin-block:12px;
}

.ep-purge-ack15g input{
 width:18px!important;
 height:18px!important;
 flex-shrink:0;
}

.ep-purge-actions15g{
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:10px;
}

.ep-h-storage{grid-column:1/-1;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid currentColor;border-radius:10px}.ep-h-storage p{margin:0}

/* V9005-A */
:root{--bg:#0b1220;--surface:#121d2e;--surface2:#19263a;--line:#2a3a50;--blue:#63a9ff;--purple:#a28aff;--text:#f1f5fb;--muted:#a9b8cc}
html[data-theme="light"]{--bg:#f3f6fa;--surface:#fff;--surface2:#edf2f8;--line:#d6e0ec;--blue:#175fc7;--purple:#6944c5;--text:#17263b;--muted:#52647a}
.topbar{position:sticky;top:0;z-index:20;padding:12px 24px;backdrop-filter:blur(12px)}
.workspace{grid-template-columns:230px minmax(0,1fr);max-width:1800px;gap:24px;padding:24px}
.sidebar{top:92px;gap:8px;padding:14px;max-height:calc(100dvh - 110px);overflow:auto}
.sidebar button[data-page]{border:1px solid transparent!important;background:transparent;color:var(--muted);text-align:start;transform:none}
.sidebar button.ep-selected{background:var(--surface2);color:var(--blue);border-inline-start:3px solid var(--blue)!important;font-weight:700}
#epNavToggle{justify-self:end;padding:5px 12px;min-height:36px}
.ep-nav-compact{grid-template-columns:165px minmax(0,1fr)}
.ep-nav-compact .sidebar{padding:8px}.ep-nav-compact .sidebar button[data-page]{font-size:12px;padding:8px}
.panel,.company-card,.metric{border-radius:16px;box-shadow:0 4px 18px #0000000d}
.heading h1{font-size:clamp(22px,3vw,32px);margin:6px 0}.heading small{letter-spacing:.08em}
main{gap:18px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.company-grid{gap:16px}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
dialog{max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto}dialog::backdrop{background:#050b16b8}
@media(max-width:900px){.workspace,.workspace.ep-nav-compact{display:block;padding:14px 14px 92px}.sidebar{position:fixed;top:auto;bottom:0;inset-inline:0;z-index:25;display:flex;justify-content:space-around;gap:4px;border-radius:16px 16px 0 0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));max-height:none;overflow-x:auto}.sidebar small,.sidebar-footer,#epNavToggle{display:none}.sidebar button[data-page],.ep-nav-compact .sidebar button[data-page]{flex:1;min-width:0;font-size:11px;white-space:normal;text-align:center;padding:8px 3px;min-height:48px}.sidebar button.ep-selected{border-inline-start:1px solid transparent!important;border-top:3px solid var(--blue)!important}.topbar{padding:10px 12px;flex-wrap:wrap}.actions{flex-wrap:wrap;gap:5px}.actions button{padding:7px 10px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.metrics{grid-template-columns:1fr}.brand small{font-size:9px}.heading{flex-wrap:wrap}}

/* V9005-B responsive layout */
.workspace{width:100%;max-width:none;padding:clamp(16px,2vw,36px);gap:24px;grid-template-columns:250px minmax(0,1fr)}
.sidebar{min-height:calc(100dvh - 110px);grid-template-rows:auto auto repeat(5,auto) 1fr;align-content:start;align-items:start}
.sidebar-footer{align-self:end}.sidebar button[data-page]{font-size:16px;min-height:52px;padding:12px 16px;display:flex;align-items:center;gap:12px}
.sidebar button[data-page]::before{content:attr(data-symbol);font-family:Arial,sans-serif;font-size:20px;width:24px;text-align:center;flex:none}
.ep-nav-compact{grid-template-columns:90px minmax(0,1fr)}.ep-nav-compact .sidebar button[data-page]{font-size:0;justify-content:center;padding:12px}.ep-nav-compact .sidebar small,.ep-nav-compact .sidebar-footer{display:none}
.metric{min-height:155px;padding:24px}.metric span{font-size:16px}.metric strong{font-size:44px;direction:ltr;text-align:start}.heading h1{font-size:32px}#status{font-size:14px;margin:0}.ep39-gauge{padding:24px}.ep39-gauge h3{font-size:17px}.ep39-ring{width:min(170px,100%)}.ep39-ring-inner,.ep39-detail{direction:ltr;unicode-bidi:isolate}.ep39-history{height:56px}.ep39-value{font-size:32px}.ep39-detail{font-size:14px}.ep39-live-status{font-size:14px}
@media(max-width:900px){.workspace,.workspace.ep-nav-compact{display:block;padding:16px 16px 100px}.sidebar{min-height:0;display:flex;align-items:center;gap:4px}.sidebar button[data-page],.ep-nav-compact .sidebar button[data-page]{display:flex;flex-direction:column;gap:4px;font-size:11px;padding:6px 2px;min-height:58px;justify-content:center}.sidebar button[data-page]::before{font-size:19px}.metric{min-height:115px;padding:16px}.metric span{font-size:13px}.metric strong{font-size:32px}.heading h1{font-size:25px}.ep39-gauge{padding:16px}}

/* NEXUS C — compact graphite design */
:root{--bg:#101114;--surface:#17181c;--surface2:#1d1f25;--line:#30323a;--text:#f0f1f5;--muted:#a1a5b2;--purple:#a99aff;--blue:#92a9ff;--green:#49d4a0;--shadow:none}
html[data-theme="light"]{--bg:#f5f6f8;--surface:#fff;--surface2:#f4f5f8;--line:#dfe2e8;--text:#20232c;--muted:#616879;--purple:#6550c8;--blue:#345bbd;--green:#087b55;--shadow:none}
body{background:var(--bg)!important;font-size:14px}.topbar{padding:10px 24px;min-height:62px;background:var(--surface);box-shadow:none}.logo{width:36px;height:36px;border-radius:10px;font-size:22px;background:#7661df;box-shadow:none}.brand strong{font-size:16px;letter-spacing:3px}.brand small{font-size:9px}.actions button{border-radius:8px;padding:8px 12px}.workspace{padding:20px;gap:22px;grid-template-columns:218px minmax(0,1fr);max-width:1800px;margin:auto}.sidebar{top:82px;min-height:calc(100dvh - 104px);border-radius:12px;padding:14px;gap:6px}.sidebar button[data-page]{font-size:14px;min-height:42px;padding:10px 12px;border-radius:7px}.sidebar button.ep-selected{background:var(--surface2);color:var(--blue);border-inline-start:2px solid var(--blue)!important}.sidebar-footer{letter-spacing:1px}.ep-nav-compact{grid-template-columns:72px minmax(0,1fr)}.ep-nav-compact .sidebar{padding:8px}.heading h1{font-size:26px;letter-spacing:-.5px}.heading small{font-size:10px;color:var(--muted)}main{gap:14px}.panel{border-radius:12px;box-shadow:none;background:var(--surface)}.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metric{background:var(--surface)!important;border:1px solid var(--line)!important;min-height:104px;padding:15px 18px;box-shadow:none!important}.metric:after{display:none}.metric span{font-size:13px;color:var(--muted)!important}.metric strong{font-size:30px;margin-top:8px;text-align:start;direction:inherit;color:var(--text)!important}.metric strong:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-inline-end:10px;vertical-align:middle}.ep39-gauge{background:var(--surface2)!important;border-radius:10px;padding:16px;box-shadow:none!important}.ep39-gauge h3{font-size:14px}.ep39-ring{width:110px;box-shadow:none!important}.ep39-value{font-size:24px}.ep39-history{height:42px}.ep39-detail,.ep39-live-status{font-size:12px}.company-card{border-radius:12px;padding:18px;box-shadow:none!important}.company-card:hover{transform:none}.section-heading h2{font-size:20px}.event{border-bottom:1px solid var(--line)}button,input,select{border-radius:8px}dialog.panel{border-radius:14px}.primary{background:#6955ce!important;color:white!important}.login{background:var(--bg)}.login-card{border-radius:16px}.nexus-context{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin:0}.nexus-context:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--blue)}
@media(min-width:1450px){.metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.metric{padding:14px;min-height:116px}.metric span{display:block;min-height:36px}.metric strong{font-size:28px}}
@media(max-width:900px){.workspace,.workspace.ep-nav-compact{display:block;padding:14px 14px 100px}.sidebar{min-height:0;top:auto;bottom:0;border-radius:12px 12px 0 0;padding:6px;gap:3px}.sidebar button[data-page],.ep-nav-compact .sidebar button[data-page]{font-size:11px;min-height:54px;padding:5px 2px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:94px;padding:12px}.metric strong{font-size:26px}.topbar{padding:8px 12px}.ep39-ring{width:100px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* V9005-D Space Digital palette */
:root{--bg:#080d19;--surface:#10192a;--surface2:#172238;--line:#26324b;--muted:#a5b4cd;--text:#f4f7ff;--purple:#a78bfa;--blue:#53b8ff;--green:#55d6a8;--shadow:0 8px 28px #01040c30}
html[data-theme="light"]{--bg:#f3f6fc;--surface:#fff;--surface2:#f5f7fc;--line:#dce4f0;--muted:#64748b;--text:#17243b;--purple:#6946c4;--blue:#1766bc;--green:#087b55}
html body{background:radial-gradient(ellipse at 70% -15%,#24214b 0%,transparent 42%),var(--bg)!important;font-size:15px;line-height:1.6}
html[data-theme="light"] body{background:var(--bg)!important}
html[lang="ar"] body{font-family:Plex,Tahoma,Arial,sans-serif}html[lang="en"] body{font-family:Inter,Arial,sans-serif}
button,input,select,textarea{font-family:inherit} .topbar{min-height:64px;background:var(--surface);padding:10px 24px}.brand strong{font-size:17px;letter-spacing:1.6px}.brand small{color:var(--muted);letter-spacing:1.5px}.logo{background:linear-gradient(145deg,#4c49d5,#9a6cf5 65%,#4b9fff);box-shadow:0 5px 18px #6b56ed40}.actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-weight:600;border-radius:10px}.actions button[hidden]{display:none!important}#logout{color:#ff9eae;border-color:#754253;background:#352333}html[data-theme="light"] #logout{color:#b43c51;background:#fff1f2;border-color:#f1b5bf}
.workspace{gap:20px;padding:20px;grid-template-columns:238px minmax(0,1fr)}.workspace.ep-nav-compact{grid-template-columns:72px minmax(0,1fr)}.sidebar{background:linear-gradient(180deg,#101b33,#0a111f);border:1px solid #273452;border-radius:16px;padding:16px;gap:8px}.sidebar small,.sidebar-footer{color:#a5b4cd}.sidebar button[data-page]{color:#b8c6df;font-weight:600;font-size:15px;min-height:46px;gap:12px;border-radius:10px}.sidebar button.ep-selected{background:linear-gradient(105deg,#3c376c,#5b4db6);color:#fff;border:1px solid #7467cb!important}.sidebar button[data-page]:hover{background:#243451;color:#fff}#epNavToggle{border:1px solid #354568!important;border-radius:10px!important;color:#d8caff;background:#19243e;box-shadow:none!important;min-width:40px;justify-self:end}#epNavToggle::before,#epNavToggle::after{content:none!important}
.heading{margin:0!important;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(115deg,#181a4c,#111b38 70%,#11192e);color:#f4f7ff;min-height:88px}.heading h1{font-size:27px;line-height:1.4;margin:4px 0}.heading small{color:#bdb3ff;font-weight:700;letter-spacing:1.5px}#refresh{background:#243452;color:#eef3ff;border-color:#465578}#status{margin:0!important;font-size:12px;min-height:0!important}main{gap:12px!important;align-content:start}.metrics{gap:12px;margin:0!important}.metric{min-height:100px!important;padding:14px 16px!important;background:linear-gradient(150deg,#172238,#10192a)!important;border:1px solid var(--line)!important;border-top:2px solid var(--accent,var(--purple))!important;border-radius:14px;box-shadow:var(--shadow)!important}.metric span{font-size:13px;font-weight:600;min-height:0!important}.metric strong{font-size:32px;line-height:1.2;margin-top:10px;color:var(--text)!important;font-variant-numeric:tabular-nums}.metric strong:before{display:none}.panel{border-radius:16px;box-shadow:var(--shadow)}.ep39-gauge{background:linear-gradient(150deg,#172238,#10192a)!important;border:1px solid var(--line);padding:15px!important}.ep39-gauge h3{font-size:15px}.ep39-ring{width:108px}.ep39-history{height:38px}.primary{background:linear-gradient(115deg,#8450ff,#6336ec)!important;color:white!important}.company-card,dialog{border-radius:16px}.sidebar button[data-page]::before,.actions button::before,#epNavToggle::before{content:''!important;display:inline-block;width:19px;height:19px;flex:none;background:currentColor;mask:var(--ep-icon) center/contain no-repeat;-webkit-mask:var(--ep-icon) center/contain no-repeat;font-size:0}#epNavToggle{font-size:0;display:grid;place-items:center}#epNavToggle::after{display:none!important}.ep-nav-compact .sidebar button[data-page]{font-size:0;justify-content:center}.actions button{font-size:13px}
html[data-theme="light"] .metric,html[data-theme="light"] .ep39-gauge{background:#fff!important}html[data-theme="light"] .heading{background:linear-gradient(115deg,#e9edff,#dbeafe);color:#17243b}html[data-theme="light"] .heading small{color:#6544ac}
@media(max-width:900px){.workspace,.workspace.ep-nav-compact{display:block;padding:12px 12px 95px}.sidebar{padding:6px;border-radius:14px 14px 0 0}.sidebar button[data-page],.ep-nav-compact .sidebar button[data-page]{font-size:11px;gap:4px;min-height:54px;padding:5px 2px}#epNavToggle{display:none}.heading{padding:12px;min-height:72px}.heading h1{font-size:22px}.topbar{padding:8px 12px;flex-wrap:wrap}.actions{gap:5px}.actions button{padding:7px 9px;font-size:12px}.metric strong{font-size:27px}.metric{min-height:90px!important}}
[data-page="overview"]{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E")}
[data-page="companies"]{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207h2m4%200h2M8%2011h2m4%200h2M8%2015h2m4%200h2M10%2021v-3h4v3%22%2F%3E%3C%2Fsvg%3E")}
[data-page="resources"]{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h4l3-8%204%2016%203-8h4%22%2F%3E%3C%2Fsvg%3E")}
[data-page="recycle"]{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M8%206V3h8v3M5%206l1%2015h12l1-15M10%2010v7m4-7v7%22%2F%3E%3C%2Fsvg%3E")}
[data-page="audit"]{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%208h6m-6%204h6m-6%204h6%22%2F%3E%3C%2Fsvg%3E")}
#epNavToggle{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22%2F%3E%3C%2Fsvg%3E")}
#language{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%2212%22%20rx%3D%224%22%20ry%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18%22%2F%3E%3C%2Fsvg%3E")}
#theme{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2015A9%209%200%200%201%209%204a9%209%200%201%200%2011%2011Z%22%2F%3E%3C%2Fsvg%3E")}
#security38{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%203v6c0%205-8%209-8%209s-8-4-8-9V6zM9%2012l2%202%204-4%22%2F%3E%3C%2Fsvg%3E")}
#logout{--ep-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H4v16h6m4-12%204%204-4%204m-6-4h12%22%2F%3E%3C%2Fsvg%3E")}

/* V9005-E: sidebar only */
.workspace .sidebar{background:linear-gradient(160deg,#14213c,#0c1428 85%);border-color:#2c3b59;box-shadow:0 12px 32px #03081730;padding:18px 12px;gap:7px}
.workspace .sidebar>small{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#a9b9db;padding:8px 10px 12px;border-bottom:1px solid #293956}
.workspace .sidebar button[data-page]::before,.workspace #epNavToggle::before,.workspace #epNavToggle::after{display:none!important;content:none!important}
.workspace .sidebar .ep-e-icon{width:21px;height:21px;flex:0 0 21px;color:#a9b8df;display:block}
.workspace .sidebar button[data-page]{display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:start;min-height:48px;padding:11px 14px;font-size:14px;font-weight:600;border-radius:11px;border:1px solid transparent;color:#c2cee7;background:transparent}
.workspace .sidebar button[data-page]:hover{background:#223250;border-color:#354568;color:#fff}
.workspace .sidebar button.ep-selected{background:linear-gradient(115deg,#433779,#6651bd);border-color:#8875df;color:#fff;box-shadow:0 5px 15px #36266c40}
.workspace .sidebar button.ep-selected .ep-e-icon{color:#fff}
.workspace #epNavToggle{display:grid;place-items:center;width:38px;height:38px;padding:0;font-size:0;border:1px solid #354568;background:#1c2a49;border-radius:10px;color:#c2cee7}
.workspace .sidebar-footer{border-top:1px solid #293956;padding-top:14px;color:#a0afd0;font-size:10px;letter-spacing:1px}
.workspace.ep-nav-compact .sidebar button[data-page]{font-size:0;justify-content:center;padding:10px;gap:0}
html[data-theme="light"] .workspace .sidebar{background:linear-gradient(160deg,#14213c,#0c1428);color:#eaf0ff}
@media(max-width:900px){.workspace .sidebar{padding:6px;gap:3px}.workspace .sidebar button[data-page],.workspace.ep-nav-compact .sidebar button[data-page]{font-size:10px;flex-direction:column;justify-content:center;gap:4px;padding:5px 2px;min-height:52px}.workspace .sidebar .ep-e-icon{width:19px;height:19px;flex-basis:19px}.workspace #epNavToggle{display:none}}

/* V9005-F: redesigned navigation only */
@media(min-width:901px){
.workspace .sidebar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:18px 10px 16px;background:linear-gradient(155deg,#172442 0%,#101b33 36%,#0b1427 100%);border:0;border-inline-end:1px solid #334361;border-radius:0;box-shadow:none;min-height:calc(100dvh - 104px)}
.workspace .sidebar .ep-f-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 20px;border-bottom:1px solid #30405e;margin-bottom:10px}
.workspace .sidebar .ep-f-identity{display:flex;align-items:center;gap:9px;min-width:0;direction:ltr}
.workspace .sidebar .ep-f-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:linear-gradient(145deg,#7255dd,#3b65bf);color:white;box-shadow:0 5px 18px #7054dd44}
.ep-f-mark svg{width:23px;height:23px}.ep-f-identity strong{display:block;font-size:11px;letter-spacing:.6px;color:#f4f7ff;white-space:nowrap}.workspace .sidebar .ep-f-identity small{display:block;font-size:8px;letter-spacing:1px;color:#9aaccd;white-space:nowrap}
.workspace .sidebar #epNavToggle{width:30px;min-width:30px;height:34px;min-height:34px;background:transparent;border:0!important;flex:none}.workspace .sidebar #epNavToggle:hover{background:#263755}
.ep-f-label{font-size:10px;letter-spacing:1.8px;color:#91a4c7;padding:8px 12px 4px;direction:ltr;text-align:start}
.workspace .sidebar button[data-page]{position:relative;min-height:52px;padding:10px 12px;gap:12px;font-size:15px;font-weight:500;color:#c1cde5;border:1px solid transparent!important;border-radius:9px;background:transparent;box-shadow:none}
.workspace .sidebar button[data-page] .ep-e-icon{width:24px;height:24px;flex-basis:24px;padding:3px;border-radius:6px;background:#263653;color:#9fb8ef}
.workspace .sidebar button[data-page]:hover{background:#21314f;color:white;border-color:#35496c!important}
.workspace .sidebar button.ep-selected{background:linear-gradient(90deg,#7661d21c,#7661d23d);color:#eee9ff;border:1px solid #7766c74d!important;box-shadow:inset 0 0 18px #7861dd12;font-weight:700}
.workspace .sidebar button.ep-selected::after{content:'';position:absolute;inset-inline-start:0;top:10px;bottom:10px;width:3px;border-radius:4px;background:#b49aff;box-shadow:0 0 12px #a78bfa;display:block!important}
.workspace .sidebar button.ep-selected .ep-e-icon{background:#6850b9;color:white}
.workspace .sidebar-footer{margin-top:auto;align-self:stretch;text-align:center;padding:16px 0 2px;color:#9badd0;border-top:1px solid #30405e;font-size:10px;letter-spacing:1.2px}
.workspace.ep-nav-compact .sidebar .ep-f-identity,.workspace.ep-nav-compact .sidebar .ep-f-label{display:none}.workspace.ep-nav-compact .sidebar .ep-f-head{justify-content:center}.workspace.ep-nav-compact .sidebar button[data-page]{font-size:0;justify-content:center;padding:10px;gap:0}
}
@media(max-width:900px){.workspace .sidebar .ep-f-head,.workspace .sidebar .ep-f-label{display:none!important}}

.ep9100-group{margin-block:16px;padding:16px;border:1px solid var(--line);border-radius:12px}.ep9100-file{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.ep9100-file p{margin:5px 0}.ep9100-file small{opacity:.8}
