
/* CEOBI 2.0 identity layer */
:root{--silah-ink:#102a43;--silah-primary:#0f766e;--silah-accent:#c7d92c;--silah-bg:#f4f7f6;--silah-surface:#fff;--silah-border:#dbe7e4;--silah-radius:18px;--silah-shadow:0 18px 55px rgba(16,42,67,.09)}
body{background:var(--silah-bg);color:var(--silah-ink)}
.card,.resource-card,.template-card,.standard-card,.tool-card{border:1px solid var(--silah-border)!important;border-radius:var(--silah-radius)!important;background:var(--silah-surface)!important;box-shadow:var(--silah-shadow)!important}
.silah-category-icon{width:44px;height:44px;border-radius:14px;display:inline-grid;place-items:center;background:color-mix(in srgb,var(--silah-primary) 10%,transparent);color:var(--silah-primary);font-size:22px}
.silah-category-icon svg{width:23px;height:23px;display:block}
:focus-visible{outline:3px solid color-mix(in srgb,var(--silah-primary) 40%,transparent);outline-offset:3px}
[data-theme="dark"]{--silah-ink:#eef8f6;--silah-bg:#081b1a;--silah-surface:#102a28;--silah-border:#244542;--silah-shadow:0 18px 55px rgba(0,0,0,.25)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* CEOBI unified content layer */
:root{--ceobi-readable:#18364d;--ceobi-readable-muted:#526b7a;--ceobi-control-bg:#fff;--ceobi-control-border:#b9cbd2;--ceobi-focus:#0d8580}
html{font-size:16px;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-family:Cairo,"IBM Plex Sans Arabic","Segoe UI",Arial,sans-serif;line-height:1.7;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body :is(h1,h2,h3,h4,h5,h6){font-family:inherit;font-weight:800;line-height:1.3;text-wrap:balance}
body :is(p,li,td,th,label,input,select,textarea,button){font-family:inherit}
body :is(p,li){line-height:1.75}
body :is(.knowledge-page,.reports-shell,.bi-page,.enterprise-admin,.auth-shell) :is(p,li,small){color:var(--ceobi-readable-muted)}
body :is(.knowledge-page,.reports-shell,.bi-page,.enterprise-admin,.auth-shell) :is(h1,h2,h3,h4,strong){color:var(--ceobi-readable)}
body :is(input,select,textarea){min-height:44px;color:#18364d;background:var(--ceobi-control-bg);border-color:var(--ceobi-control-border)}
body :is(input,textarea)::placeholder{color:#718795;opacity:1}
body :is(button,.btn,[role="button"]){font-weight:700;letter-spacing:0}
body :is(.knowledge-card,.knowledge-resource-card,.knowledge-tool-card,.knowledge-standard-category-card,.report-card,.report-generator,.enterprise-data-page,.auth-card){color:var(--ceobi-readable)}
body table{color:var(--ceobi-readable)}body table th{font-weight:800}
html[data-theme="dark"]{--ceobi-readable:#f1f7fb;--ceobi-readable-muted:#bfd0dc;--ceobi-control-bg:#091827;--ceobi-control-border:#3b566b}
html[data-theme="dark"] body :is(.knowledge-page,.reports-shell,.bi-page,.enterprise-admin,.auth-shell) :is(p,li,small){color:var(--ceobi-readable-muted)!important}
html[data-theme="dark"] body :is(.knowledge-page,.reports-shell,.bi-page,.enterprise-admin,.auth-shell) :is(h1,h2,h3,h4,strong){color:var(--ceobi-readable)!important}
html[data-theme="dark"] body :is(input,select,textarea){color:#f1f7fb!important;background:#091827!important;border-color:#3b566b!important}
html[data-theme="dark"] body :is(input,textarea)::placeholder{color:#9eb1c0!important}
html[data-theme="dark"] body :is(.knowledge-card,.knowledge-resource-card,.knowledge-tool-card,.knowledge-standard-category-card,.report-card,.report-generator,.enterprise-data-page,.auth-card){color:var(--ceobi-readable)!important;border-color:rgba(151,183,213,.24)!important}
html[data-theme="dark"] body table :is(th,td){color:var(--ceobi-readable)!important}
body .m18-page-assistant{color:#edf7f8!important;background:linear-gradient(135deg,#071b2b 0%,#0b3948 55%,#0b605d 130%)!important;border-color:rgba(104,211,196,.32)!important}
body .m18-page-assistant>header h2{color:#fff!important}
body .m18-page-assistant>header p{color:#c9d9df!important}
body .m18-page-assistant__questions button{color:#e7f1f4!important;background:rgba(255,255,255,.035)!important}
body .m18-page-assistant__answer{background:rgba(4,19,29,.56)!important}
body .m18-page-assistant__answer p{color:#e1eaee!important}
body .m18-page-assistant>form{background:rgba(4,16,24,.62)!important}
body .m18-page-assistant>form input{color:#fff!important;background:transparent!important}
body .m18-page-assistant>form input::placeholder{color:#b4c5cc!important}
body .m18-shell-icon{width:20px;height:20px;display:block;overflow:visible}
body .m18-lang-mark{display:flex;align-items:center;justify-content:center;gap:3px;font-size:.62rem;font-weight:800;white-space:nowrap}
body .m18-lang-mark .m18-shell-icon{width:17px;height:17px}
body .m18-lang-mark b{min-width:20px;padding:2px 4px;color:currentColor;background:color-mix(in srgb,currentColor 10%,transparent);border-radius:6px;font-size:.58rem;line-height:1.1;letter-spacing:.04em}
body .m18-drawer{color:#eef6fb!important;background:linear-gradient(180deg,#071827,#0b2638)!important;border-inline-start:1px solid #28465c!important}
body .m18-drawer__head{color:#fff!important}
body .m18-drawer__head .m18-icon-btn{color:#fff!important;background:#102f44!important;border-color:#345369!important}
body .m18-drawer nav a{color:#edf5fa!important;background:#102b3e!important;border:1px solid #294a60!important}
body .m18-drawer nav a:hover,body .m18-drawer nav a:focus-visible{color:#fff!important;background:#13525d!important;border-color:#37a99d!important}
body .m18-overlay{background:rgba(3,13,24,.7)!important}
@media(max-width:1320px){body .m18-nav{display:none!important}body .m18-menu-btn{display:grid!important}}
@media(max-width:720px){html{font-size:15px}body :is(button,.btn,input,select,textarea){min-height:44px}}

/* CEOBI accessible contrast system — final authority for public and enterprise pages */
:root{
  --ceobi-text-primary:#102a43;
  --ceobi-text-secondary:#405d70;
  --ceobi-text-tertiary:#587184;
  --ceobi-text-link:#075f63;
  --ceobi-surface-readable:rgba(255,255,255,.92);
  --ceobi-surface-subtle:#edf4f5;
}
html[data-theme="dark"]{
  --ceobi-text-primary:#f4f8fb;
  --ceobi-text-secondary:#c9d8e1;
  --ceobi-text-tertiary:#adbfca;
  --ceobi-text-link:#8ce9df;
  --ceobi-surface-readable:rgba(7,27,43,.92);
  --ceobi-surface-subtle:#102b3d;
}

/* Ordinary page content must inherit an explicit, theme-safe foreground. */
body :where(main,.knowledge-main,.reports-shell,.bi-page,.enterprise-admin,.auth-shell,.cms-content-page){
  color:var(--ceobi-text-primary);
}
body :where(main,.knowledge-main,.reports-shell,.bi-page,.enterprise-admin,.auth-shell,.cms-content-page)
  :where(h1,h2,h3,h4,h5,h6,strong){
  color:var(--ceobi-text-primary);
}
body :where(main,.knowledge-main,.reports-shell,.bi-page,.enterprise-admin,.auth-shell,.cms-content-page)
  :where(p,li,small,label,figcaption,caption,.muted,.subtitle,.description,.meta){
  color:var(--ceobi-text-secondary);
}
body :where(main,.knowledge-main,.reports-shell,.bi-page,.enterprise-admin,.auth-shell,.cms-content-page) a:not(.btn):not([class*="button"]){
  color:var(--ceobi-text-link);
}

/* Cards and generated modules share the same readable foreground. */
body :where(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
){
  color:var(--ceobi-text-primary)!important;
}
body :where(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
) :where(h1,h2,h3,h4,h5,h6,strong){
  color:var(--ceobi-text-primary)!important;
}
body :where(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
) :where(p,li,small,label,figcaption,.muted,.subtitle,.description,.meta){
  color:var(--ceobi-text-secondary)!important;
}

body :where(input,select,textarea){
  color:var(--ceobi-text-primary)!important;
  background:var(--ceobi-control-bg)!important;
}
body :where(input,textarea)::placeholder{color:var(--ceobi-text-tertiary)!important;opacity:1}
body table :where(td){color:var(--ceobi-text-primary)!important}

/* These brand surfaces remain dark in both themes and therefore always use light ink. */
body :where(
  .m18-header__inner,.m18-drawer,.m18-page-intro__inner,.knowledge-page-hero__inner,
  .page-hero__inner,.reports-hero,.m18-page-assistant,.m18-workspaces-section,
  .m18-unified-footer,.bi-hero,.bi-ai,.m18-bi-ai-insights
){
  --ceobi-text-primary:#f7fbfd;
  --ceobi-text-secondary:#cbdbe3;
  --ceobi-text-tertiary:#afc3ce;
  color:var(--ceobi-text-primary)!important;
}
body :where(
  .m18-header__inner,.m18-drawer,.m18-page-intro__inner,.knowledge-page-hero__inner,
  .page-hero__inner,.reports-hero,.m18-page-assistant,.m18-workspaces-section,
  .m18-unified-footer,.bi-hero,.bi-ai,.m18-bi-ai-insights
) :where(h1,h2,h3,h4,h5,h6,strong){
  color:var(--ceobi-text-primary)!important;
}
body :where(
  .m18-header__inner,.m18-drawer,.m18-page-intro__inner,.knowledge-page-hero__inner,
  .page-hero__inner,.reports-hero,.m18-page-assistant,.m18-workspaces-section,
  .m18-unified-footer,.bi-hero,.bi-ai,.m18-bi-ai-insights
) :where(p,li,small,label,figcaption,.muted,.subtitle,.description,.meta){
  color:var(--ceobi-text-secondary)!important;
}

/* Preserve semantic button contrast instead of inheriting surrounding copy color. */
body :where(.btn-primary,.bi-btn--primary,.m18-primary-btn,[class*="button--primary"]){
  color:#fff!important;
}
body :where(.btn-secondary,.bi-btn:not(.bi-btn--primary),[class*="button--secondary"]){
  color:var(--ceobi-text-primary)!important;
}
html[data-theme="dark"] body :is(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
){
  color:var(--ceobi-text-primary)!important;
  background:var(--ceobi-surface-readable)!important;
  border-color:rgba(151,183,213,.24)!important;
}
html[data-theme="dark"] body :is(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
) :is(h1,h2,h3,h4,h5,h6,strong){
  color:var(--ceobi-text-primary)!important;
}
html[data-theme="dark"] body :is(
  .card,.resource-card,.template-card,.standard-card,.tool-card,.tl-card,
  .knowledge-card,.knowledge-resource-card,.knowledge-tool-card,
  .knowledge-tool-category-card,.knowledge-standard-category-card,.knowledge-domain-card,
  .report-card,.report-generator,.m18-bi-report,.m18-bi-library-entry,
  .bi-studio,.bi-component-host,.board-report-framework,.executive-analytics-suite,
  .br-chapter,.br-metric,.ea-card,.ea-details,.enterprise-panel,.enterprise-data-page,
  .cms-content-block,.auth-card
) :is(p,li,small,label,figcaption,.muted,.subtitle,.description,.meta){
  color:var(--ceobi-text-secondary)!important;
}
@media print{
  :root{--ceobi-text-primary:#102a43;--ceobi-text-secondary:#405d70;--ceobi-text-tertiary:#587184}
}
.profile-user-icon{display:block;width:1.15rem;height:1.15rem;margin:auto;color:currentColor;fill:none}.avatar-initials:has(.profile-user-icon){display:grid;place-items:center;font-size:0}.user-profile-btn .profile-user-icon{width:1.2rem;height:1.2rem}
