
/* =====================================================================
   Numogist™ Academy — UI Foundation 9.5.0
   PERMANENT LAYOUT CONTRACT
   - Footer stays at the physical bottom on short pages.
   - Long pages continue to scroll naturally.
   - Official Numogist logo replaces visible "N" brand marks.
   This file is loaded last so later page/theme work cannot casually
   override these structural rules.
   ===================================================================== */

/* ---------- PERMANENT FOOTER CONTRACT ---------- */
html{
  min-height:100%!important;
}
body{
  min-height:100vh!important;
}

/* Admin: topbar + content shell always occupy at least the viewport. */
body.admin-area.admin-control-center .admin-main{
  min-height:100vh!important;
}
body.admin-area.admin-control-center .admin-content-shell{
  min-height:calc(100vh - 66px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
body.admin-area.admin-control-center .admin-content-shell > .site-footer.admin-footer{
  width:100%!important;
  flex:0 0 auto!important;
  margin-top:auto!important;
  margin-bottom:0!important;
}

/* Student: same permanent rule for short Student pages. */
body.student-area .student-main{
  min-height:100vh!important;
}
body.student-area .student-content-shell{
  min-height:calc(100vh - 66px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
body.student-area .student-content-shell > .site-footer.student-console-footer{
  width:100%!important;
  flex:0 0 auto!important;
  margin-top:auto!important;
  margin-bottom:0!important;
}

/* Public/Login/Register pages. */
body.public-area > main.shell{
  min-height:100vh!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
body.public-area > main.shell > .site-footer{
  width:100%!important;
  flex:0 0 auto!important;
  margin-top:auto!important;
  margin-bottom:0!important;
}

/* Never let theme/page CSS float the footer into the middle again. */
body.admin-area .site-footer.admin-footer,
body.student-area .site-footer.student-console-footer,
body.public-area > main.shell > .site-footer{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
}

/* ---------- OFFICIAL NUMOGIST BRAND MARKS ---------- */
/* Admin sidebar logo */
body.admin-area .admin-brand-mark{
  width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
  border-radius:50%!important;
  background:transparent url("numogist-official-logo.png") center/contain no-repeat!important;
  box-shadow:0 8px 22px rgba(0,0,0,.20)!important;
  color:transparent!important;
  font-size:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
}

/* Student sidebar logo */
body.student-area .student-brand-mark{
  background:transparent url("numogist-official-logo.png") center/contain no-repeat!important;
  border-radius:50%!important;
  color:transparent!important;
  font-size:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
  box-shadow:0 8px 20px rgba(0,0,0,.16)!important;
}

/* Student topbar mini "N" */
body.student-area .student-console-mini-mark{
  background:transparent url("numogist-official-logo.png") center/contain no-repeat!important;
  border-radius:50%!important;
  color:transparent!important;
  font-size:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
  box-shadow:none!important;
}

/* Public Academy brand "N" */
body.public-area .brand-mark{
  background:transparent url("numogist-official-logo.png") center/contain no-repeat!important;
  border-radius:50%!important;
  color:transparent!important;
  font-size:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
  box-shadow:0 8px 22px rgba(0,0,0,.15)!important;
}

/* My Courses: when a thumbnail is missing, show the official logo,
   not the temporary gold N square. */
body.admin-area .admin-course-library-placeholder span{
  width:58px!important;
  height:58px!important;
  display:block!important;
  margin:0 auto 9px!important;
  background:transparent url("numogist-official-logo.png") center/contain no-repeat!important;
  border-radius:50%!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 8px 22px rgba(0,0,0,.14)!important;
}

/* Keep logo crisp in both theme modes. */
html[data-admin-theme="dark"] body.admin-area .admin-brand-mark,
html[data-admin-theme="light"] body.admin-area .admin-brand-mark{
  filter:none!important;
  opacity:1!important;
}

@media(max-width:980px){
  body.admin-area.admin-control-center .admin-content-shell{
    min-height:calc(100vh - 64px)!important;
  }
}
@media(max-width:760px){
  body.student-area .student-content-shell{
    min-height:calc(100vh - 60px)!important;
  }
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.1 FINAL QA
   Targeted fixes:
   A) Assessment Builder dark-mode toggle controls
   B) Notifications dark-mode Automatic Alerts readability
   C) Real IMG-based official logo rendering
   ===================================================================== */

/* ---------- REAL OFFICIAL LOGO: never depend on CSS background only ---------- */
body.admin-area .admin-brand-mark,
body.student-area .student-brand-mark,
body.student-area .student-console-mini-mark,
body.public-area .brand-mark{
  background:transparent!important;
  background-image:none!important;
  color:transparent!important;
  text-indent:0!important;
  font-size:0!important;
  overflow:visible!important;
}

body.admin-area .admin-brand-mark img,
body.student-area .student-brand-mark img,
body.student-area .student-console-mini-mark img,
body.public-area .brand-mark img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}

body.admin-area .admin-brand-mark{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  flex:0 0 46px!important;
  border-radius:50%!important;
  box-shadow:none!important;
}
body.student-area .student-brand-mark{
  border-radius:50%!important;
  box-shadow:none!important;
}
body.student-area .student-console-mini-mark,
body.public-area .brand-mark{
  border-radius:50%!important;
  box-shadow:none!important;
}

/* ---------- ASSESSMENT BUILDER: NIGHT VIEW ---------- */
/* The original assessment stylesheet forces these checkbox options back
   to a light pill with dark text. This override is loaded LAST. */
html[data-admin-theme="dark"] body.admin-area .assessment-toggle-grid .check,
body.admin-area.admin-theme-dark .assessment-toggle-grid .check{
  background:#1a2635!important;
  background-image:none!important;
  border:1px solid #354356!important;
  color:#e5edf6!important;
  opacity:1!important;
  box-shadow:none!important;
  font-weight:700!important;
}

html[data-admin-theme="dark"] body.admin-area .assessment-toggle-grid .check:hover,
body.admin-area.admin-theme-dark .assessment-toggle-grid .check:hover{
  background:#223144!important;
  border-color:#46586f!important;
}

html[data-admin-theme="dark"] body.admin-area .assessment-toggle-grid .check input[type="checkbox"],
body.admin-area.admin-theme-dark .assessment-toggle-grid .check input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  opacity:1!important;
  accent-color:#5bd58b!important;
}

html[data-admin-theme="dark"] body.admin-area .assessment-settings label,
body.admin-area.admin-theme-dark .assessment-settings label{
  color:#e1e9f2!important;
}

html[data-admin-theme="dark"] body.admin-area .assessment-settings .hint,
body.admin-area.admin-theme-dark .assessment-settings .hint{
  color:#8fa2b7!important;
}

/* Assessment notification action buttons stay neutral-dark and clear. */
html[data-admin-theme="dark"] body.admin-area .assessment-notify-grid .btn.secondary,
body.admin-area.admin-theme-dark .assessment-notify-grid .btn.secondary{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area .assessment-notify-grid .btn.secondary:hover,
body.admin-area.admin-theme-dark .assessment-notify-grid .btn.secondary:hover{
  background:#223144!important;
  border-color:#46586f!important;
}

/* ---------- NOTIFICATIONS: NIGHT VIEW ---------- */
html[data-admin-theme="dark"] body.admin-area.admin-page-notifications .phase5-feature,
body.admin-area.admin-theme-dark.admin-page-notifications .phase5-feature{
  background:#172230!important;
  background-image:none!important;
  border-color:#314052!important;
  color:#dce6f0!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-notifications .phase5-feature b,
body.admin-area.admin-theme-dark.admin-page-notifications .phase5-feature b{
  color:#f1f6fb!important;
  opacity:1!important;
  font-weight:800!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-notifications .phase5-feature span,
body.admin-area.admin-theme-dark.admin-page-notifications .phase5-feature span{
  color:#9fb0c3!important;
  opacity:1!important;
  line-height:1.5!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-notifications .phase5-feature + .phase5-feature,
body.admin-area.admin-theme-dark.admin-page-notifications .phase5-feature + .phase5-feature{
  border-top-color:#314052!important;
}

/* Keep the Broadcast form text and placeholders readable. */
html[data-admin-theme="dark"] body.admin-area.admin-page-notifications label,
body.admin-area.admin-theme-dark.admin-page-notifications label{
  color:#e2eaf3!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-notifications input::placeholder,
html[data-admin-theme="dark"] body.admin-area.admin-page-notifications textarea::placeholder,
body.admin-area.admin-theme-dark.admin-page-notifications input::placeholder,
body.admin-area.admin-theme-dark.admin-page-notifications textarea::placeholder{
  color:#7f92a8!important;
  opacity:1!important;
}

/* Day view remains exactly light/clean. */
html[data-admin-theme="light"] body.admin-area .assessment-toggle-grid .check,
body.admin-area.admin-theme-light .assessment-toggle-grid .check{
  background:#f5f7fa!important;
  border-color:#e1e7ef!important;
  color:#142236!important;
}
html[data-admin-theme="light"] body.admin-area.admin-page-notifications .phase5-feature b,
body.admin-area.admin-theme-light.admin-page-notifications .phase5-feature b{
  color:#142236!important;
}
html[data-admin-theme="light"] body.admin-area.admin-page-notifications .phase5-feature span,
body.admin-area.admin-theme-light.admin-page-notifications .phase5-feature span{
  color:#768298!important;
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.2 LOCKED QA
   Scope is intentionally LIMITED to:
   1) Batches & Community Night View readability
   2) Remove any container/background behind the official logo
   Everything else remains locked and untouched.
   ===================================================================== */

/* ---------- BATCHES & COMMUNITY: NIGHT VIEW ONLY ---------- */
html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-explainer,
body.admin-area.admin-theme-dark.admin-page-batches .community-explainer{
  background:#172230!important;
  background-image:none!important;
  border-color:#314052!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-rule,
body.admin-area.admin-theme-dark.admin-page-batches .community-rule{
  border-bottom-color:#334153!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-rule b,
body.admin-area.admin-theme-dark.admin-page-batches .community-rule b{
  color:#f1f6fb!important;
  opacity:1!important;
  font-weight:800!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-rule span,
body.admin-area.admin-theme-dark.admin-page-batches .community-rule span{
  color:#9fb0c3!important;
  opacity:1!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-rule>strong,
body.admin-area.admin-theme-dark.admin-page-batches .community-rule>strong{
  background:linear-gradient(145deg,#e5c57e,#bb8d3f)!important;
  color:#071427!important;
  box-shadow:0 7px 16px rgba(155,112,42,.16)!important;
}

/* Keep the green PayU eligibility notice clear in Night View. */
html[data-admin-theme="dark"] body.admin-area.admin-page-batches .community-explainer .notice.ok,
body.admin-area.admin-theme-dark.admin-page-batches .community-explainer .notice.ok{
  background:#0d2d20!important;
  border-color:#25714b!important;
  border-left-color:#48c97f!important;
  color:#c5e9d4!important;
}

/* ---------- OFFICIAL LOGO: NO CONTAINER BACKGROUND ---------- */
body.admin-area .admin-brand-mark,
body.student-area .student-brand-mark,
body.student-area .student-console-mini-mark,
body.public-area .brand-mark{
  background:none!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
}

body.admin-area .admin-brand-mark img,
body.student-area .student-brand-mark img,
body.student-area .student-console-mini-mark img,
body.public-area .brand-mark img{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* Day View Batches remains exactly clean/light. */
html[data-admin-theme="light"] body.admin-area.admin-page-batches .community-rule b,
body.admin-area.admin-theme-light.admin-page-batches .community-rule b{
  color:#0b1b31!important;
}
html[data-admin-theme="light"] body.admin-area.admin-page-batches .community-rule span,
body.admin-area.admin-theme-light.admin-page-batches .community-rule span{
  color:#768296!important;
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.3 LOCKED
   Scope:
   1) Perfect round official logo, transparent outside, no background box
   2) Remove repetitive "Admin Console" kicker; retain only page title
   All other v9.5.2 visuals and functionality stay locked.
   ===================================================================== */

/* ---------- ROUND OFFICIAL LOGO — NO BACKGROUND / NO BOX ---------- */
body.admin-area .admin-brand-mark,
body.student-area .student-brand-mark,
body.student-area .student-console-mini-mark,
body.public-area .brand-mark{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
}

body.admin-area .admin-brand-mark img,
body.student-area .student-brand-mark img,
body.student-area .student-console-mini-mark img,
body.public-area .brand-mark img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:50%!important;
  clip-path:circle(50% at 50% 50%)!important;
  -webkit-clip-path:circle(50% at 50% 50%)!important;
  opacity:1!important;
  visibility:visible!important;
}

body.admin-area .admin-brand-mark{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  flex:0 0 48px!important;
  border-radius:50%!important;
}

/* ---------- ADMIN TOPBAR — ONE TITLE ONLY ---------- */
body.admin-area .admin-topbar-title.admin-topbar-title-clean{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:0!important;
  min-height:42px!important;
}

body.admin-area .admin-topbar-title.admin-topbar-title-clean strong{
  margin:0!important;
  color:inherit;
  line-height:1.08!important;
}

/* The old kicker is removed from HTML; this also protects against any
   stale generated span being introduced by cached markup. */
body.admin-area .admin-topbar-title.admin-topbar-title-clean > span{
  display:none!important;
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.4 LOCKED
   ADMIN LOGO ONLY
   Fixes the old Admin-specific gold square that survived because
   admin-finish-94.css used a more specific selector.
   No other page, layout, theme, footer or functionality is changed.
   ===================================================================== */

html body.admin-area.admin-control-center .admin-brand-mark{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  flex:0 0 46px!important;
  display:block!important;
  padding:0!important;
  margin:0!important;

  background:none!important;
  background-color:transparent!important;
  background-image:none!important;

  border:0!important;
  outline:0!important;
  border-radius:50%!important;
  box-shadow:none!important;

  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;

  overflow:hidden!important;
  filter:none!important;
  opacity:1!important;
}

html body.admin-area.admin-control-center .admin-brand-mark::before,
html body.admin-area.admin-control-center .admin-brand-mark::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}

html body.admin-area.admin-control-center .admin-brand-mark img{
  display:block!important;
  width:46px!important;
  height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;

  object-fit:contain!important;
  object-position:center!important;

  background:transparent!important;
  border:0!important;
  outline:0!important;
  border-radius:50%!important;
  box-shadow:none!important;

  clip-path:circle(50% at 50% 50%)!important;
  -webkit-clip-path:circle(50% at 50% 50%)!important;

  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.5 LOCKED FINAL UI QA
   SCOPE ONLY:
   1) Community Hub — complete Night View consistency/readability
   2) Course Builder — complete Night View consistency/readability
   Everything already approved in v9.5.4 remains locked and untouched.
   ===================================================================== */

/* =====================================================================
   A) COMMUNITY HUB — NIGHT VIEW
   ===================================================================== */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-composer,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-composer{
  background:#141d29!important;
  border-color:#2d3949!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-section-title h2,
body.admin-area.admin-theme-dark.admin-page-community .community-section-title h2{
  color:#f2f7fc!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-section-title p,
body.admin-area.admin-theme-dark.admin-page-community .community-section-title p{
  color:#9eafc2!important;
}

/* Composer type selector */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-type-grid span,
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-type-selector span,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-type-grid span,
body.admin-area.admin-theme-dark.admin-page-community .community-type-selector span{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#e7eef6!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-type-grid b,
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-type-selector b,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-type-grid b,
body.admin-area.admin-theme-dark.admin-page-community .community-type-selector b{
  color:#dce6f0!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-type-grid input:checked+span,
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-type-selector input:checked+span,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-type-grid input:checked+span,
body.admin-area.admin-theme-dark.admin-page-community .community-type-selector input:checked+span{
  background:#2a2418!important;
  border-color:#c7a458!important;
  box-shadow:0 0 0 3px rgba(199,164,88,.10)!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-type-grid input:checked+span b,
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-type-selector input:checked+span b,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-type-grid input:checked+span b,
body.admin-area.admin-theme-dark.admin-page-community .community-type-selector input:checked+span b{
  color:#f1d58d!important;
}

/* Composer option pills: Pin / Feature / Lock */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-composer-options .check,
body.admin-area.admin-theme-dark.admin-page-community .community-composer-options .check{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#e1eaf3!important;
  box-shadow:none!important;
  opacity:1!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-composer-options .check:hover,
body.admin-area.admin-theme-dark.admin-page-community .community-composer-options .check:hover{
  background:#223144!important;
  border-color:#46586f!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-composer-options .check input[type="checkbox"],
body.admin-area.admin-theme-dark.admin-page-community .community-composer-options .check input[type="checkbox"]{
  accent-color:#58cf87!important;
  opacity:1!important;
}

/* Conditional composer panels */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-conditional,
body.admin-area.admin-theme-dark.admin-page-community .community-conditional{
  background:#172230!important;
  border-color:#5a4a2b!important;
  color:#dce6f0!important;
}

/* Filter tabs */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-tabs a,
body.admin-area.admin-theme-dark.admin-page-community .community-tabs a{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#dbe5ef!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-tabs a:hover,
body.admin-area.admin-theme-dark.admin-page-community .community-tabs a:hover{
  background:#223144!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-tabs a.active,
body.admin-area.admin-theme-dark.admin-page-community .community-tabs a.active{
  background:#0b3155!important;
  border-color:#1d5a8f!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-tabs a b,
body.admin-area.admin-theme-dark.admin-page-community .community-tabs a b{
  background:#253448!important;
  color:#b9c9da!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-tabs a.active b,
body.admin-area.admin-theme-dark.admin-page-community .community-tabs a.active b{
  background:rgba(255,255,255,.12)!important;
  color:#ffffff!important;
}

/* Search/tool row */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-toolbar .muted-inline,
body.admin-area.admin-theme-dark.admin-page-community .community-toolbar .muted-inline{
  color:#8fa2b7!important;
}

/* Feed cards */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-post-8a,
body.admin-area.admin-theme-dark.admin-page-community .community-post-8a{
  background:#141d29!important;
  border-color:#2d3949!important;
  box-shadow:0 14px 34px rgba(0,0,0,.15)!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-post-8a.featured,
body.admin-area.admin-theme-dark.admin-page-community .community-post-8a.featured{
  border-color:#5c4c2c!important;
  box-shadow:0 16px 38px rgba(0,0,0,.18)!important;
}

/* Author/name/date */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-author-block strong,
body.admin-area.admin-theme-dark.admin-page-community .community-author-block strong{
  color:#f0f5fa!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-author-block small,
body.admin-area.admin-theme-dark.admin-page-community .community-author-block small{
  color:#879aaf!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-avatar:not(.instructor),
body.admin-area.admin-theme-dark.admin-page-community .community-avatar:not(.instructor){
  background:#dfe7f0!important;
  color:#17314c!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .student-badge,
body.admin-area.admin-theme-dark.admin-page-community .student-badge{
  background:#243245!important;
  color:#b8c8d9!important;
}

/* Post content: fix the dark/invisible titles visible in the screenshot */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-post-content h2,
body.admin-area.admin-theme-dark.admin-page-community .community-post-content h2{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-post-body,
body.admin-area.admin-theme-dark.admin-page-community .community-post-body{
  color:#d4dee9!important;
}

/* Resource/event/poll surfaces if those post types are used */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-resource-card,
body.admin-area.admin-theme-dark.admin-page-community .community-resource-card{
  background:#132b25!important;
  border-color:#285444!important;
  color:#cde8dc!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-resource-card small,
body.admin-area.admin-theme-dark.admin-page-community .community-resource-card small{
  color:#91b2a6!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-event-card,
body.admin-area.admin-theme-dark.admin-page-community .community-event-card{
  background:#2a1d22!important;
  border-color:#5d343e!important;
  color:#e8c8cf!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-event-card small,
body.admin-area.admin-theme-dark.admin-page-community .community-event-card small{
  color:#b999a0!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .poll-option,
body.admin-area.admin-theme-dark.admin-page-community .poll-option{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#dce6f0!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .poll-option-fill,
body.admin-area.admin-theme-dark.admin-page-community .poll-option-fill{
  background:rgba(76,130,181,.15)!important;
}

/* Action/reaction footer: remove the large white strip */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-actions,
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-post-actions,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-actions,
body.admin-area.admin-theme-dark.admin-page-community .community-post-actions{
  background:#172230!important;
  border-top-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-actions>div,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-actions>div{
  color:#91a3b8!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-actions .btn.secondary,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-actions .btn.secondary{
  background:#1a2635!important;
  color:#eef4fb!important;
  border-color:#354356!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-admin-actions .btn.secondary:hover,
body.admin-area.admin-theme-dark.admin-page-community .community-admin-actions .btn.secondary:hover{
  background:#223144!important;
  border-color:#46586f!important;
}

/* Replies */
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comments-8a,
body.admin-area.admin-theme-dark.admin-page-community .community-comments-8a{
  background:#141d29!important;
  border-top-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comments-8a summary,
body.admin-area.admin-theme-dark.admin-page-community .community-comments-8a summary{
  color:#a9bacb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comment-8a,
body.admin-area.admin-theme-dark.admin-page-community .community-comment-8a{
  background:#1a2635!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comment-8a strong,
body.admin-area.admin-theme-dark.admin-page-community .community-comment-8a strong{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comment-8a p,
body.admin-area.admin-theme-dark.admin-page-community .community-comment-8a p{
  color:#cbd6e1!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-comment-8a small,
body.admin-area.admin-theme-dark.admin-page-community .community-comment-8a small{
  color:#8194a9!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-empty,
body.admin-area.admin-theme-dark.admin-page-community .community-empty{
  background:#141d29!important;
  border-color:#354356!important;
  color:#dce6f0!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-community .community-empty p,
body.admin-area.admin-theme-dark.admin-page-community .community-empty p{
  color:#91a3b8!important;
}


/* =====================================================================
   B) COURSE BUILDER — NIGHT VIEW
   ===================================================================== */

/* Top workspace navigation strip */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .workspace-nav,
body.admin-area.admin-theme-dark.admin-page-course-builder .workspace-nav{
  background:#141d29!important;
  background-image:none!important;
  border-color:#2d3949!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .workspace-nav .btn.secondary,
body.admin-area.admin-theme-dark.admin-page-course-builder .workspace-nav .btn.secondary{
  background:#1a2635!important;
  color:#eef4fb!important;
  border-color:#354356!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .workspace-nav .btn.secondary:hover,
body.admin-area.admin-theme-dark.admin-page-course-builder .workspace-nav .btn.secondary:hover{
  background:#223144!important;
  border-color:#46586f!important;
}

/* Four workflow step cards: remove the large white cards */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-build-step,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-build-step{
  background:#172230!important;
  border-color:#314052!important;
  color:#e8eff7!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-build-step:hover,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-build-step:hover{
  background:#1c2a3a!important;
  border-color:#5a4b2d!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-build-step b,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-build-step b{
  color:#f2f7fc!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-build-step small,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-build-step small{
  color:#91a3b8!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-build-step .step-no,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-build-step .step-no{
  background:#0b3155!important;
  color:#ffffff!important;
}

/* Step headings/help */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-step-heading h3,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-step-heading h3{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-step-help,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-step-help{
  color:#8fa2b7!important;
}

/* Collapsed Course Details heading: fix dark/invisible text */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-details>details>summary,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-details>details>summary strong,
body.admin-area.admin-theme-dark.admin-page-course-builder #course-details>details>summary,
body.admin-area.admin-theme-dark.admin-page-course-builder #course-details>details>summary strong{
  color:#e9f1f8!important;
}

/* Thumbnail/upload surface inside Course Details when expanded */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-details .field>div[style*="grid-template-columns"],
body.admin-area.admin-theme-dark.admin-page-course-builder #course-details .field>div[style*="grid-template-columns"]{
  background:#172230!important;
  border-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-thumb-placeholder,
body.admin-area.admin-theme-dark.admin-page-course-builder #course-thumb-placeholder{
  background:#101923!important;
  border-color:#46586f!important;
  color:#9eafc2!important;
}

/* PayU settings box inside Course Details */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .live-recording-box,
body.admin-area.admin-theme-dark.admin-page-course-builder .live-recording-box{
  background:#172230!important;
  background-image:none!important;
  border-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .live-recording-box h4,
body.admin-area.admin-theme-dark.admin-page-course-builder .live-recording-box h4{
  color:#eef4fb!important;
}

/* Existing module accordions + Add Module */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-module-accordion,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-module-card,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-module-accordion,
body.admin-area.admin-theme-dark.admin-page-course-builder .add-module-card{
  background:#141d29!important;
  border-color:#2d3949!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-module-accordion>summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-module-accordion>summary{
  background:#172230!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-summary-title,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-summary-title{
  color:#edf4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-summary-copy .eyebrow,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-summary-copy .eyebrow{
  color:#d7b65e!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-accordion-body,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-accordion-body{
  background:#141d29!important;
  border-top-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-module-card>details>summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .add-module-card>details>summary{
  color:#edf4fb!important;
  background:#172230!important;
}

/* Nested Edit Module / Add Lesson / Lesson rows */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-accordion-body details>summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-accordion-body details>summary{
  color:#dce6f0!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .lesson-item,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-lesson,
body.admin-area.admin-theme-dark.admin-page-course-builder .lesson-item,
body.admin-area.admin-theme-dark.admin-page-course-builder .add-lesson{
  background:#172230!important;
  border-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .lesson-item[open],
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-lesson[open],
body.admin-area.admin-theme-dark.admin-page-course-builder .lesson-item[open],
body.admin-area.admin-theme-dark.admin-page-course-builder .add-lesson[open]{
  background:#172230!important;
  border-color:#5b4b2d!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .lesson-item summary strong,
body.admin-area.admin-theme-dark.admin-page-course-builder .lesson-item summary strong{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .lesson-item .muted-inline,
body.admin-area.admin-theme-dark.admin-page-course-builder .lesson-item .muted-inline{
  color:#8fa2b7!important;
}

/* Lesson helper/after-class boxes */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .lesson-core-note,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-box,
body.admin-area.admin-theme-dark.admin-page-course-builder .lesson-core-note,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-box{
  background:#172230!important;
  border-color:#314052!important;
  color:#b8c7d7!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-head h4,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-head h4{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-head p,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-head p{
  color:#91a3b8!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-card,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-card{
  background:#1a2635!important;
  border-color:#354356!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-card b,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-card b{
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-card p,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-card p{
  color:#a0b0c2!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .after-class-status,
body.admin-area.admin-theme-dark.admin-page-course-builder .after-class-status{
  background:#253448!important;
  color:#b9c9da!important;
}

/* Course readiness — fix invisible values */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-readiness-item,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-readiness-item{
  background:#172230!important;
  border-color:#314052!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-readiness-item small,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-readiness-item small{
  color:#8fa2b7!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-readiness-item b,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-readiness-item b{
  color:#eef4fb!important;
}

/* Next Learning Operations — remove the remaining white buttons */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-completion-actions a,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-completion-actions a{
  background:#1a2635!important;
  border-color:#354356!important;
  color:#eef4fb!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-completion-actions a:hover,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-completion-actions a:hover{
  background:#223144!important;
  border-color:#5a4b2d!important;
}

/* Completion note */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-completion-note,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-completion-note{
  background:#172230!important;
  color:#a9bacb!important;
}

/* Generic labels/summary text inside this one page only */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder label,
body.admin-area.admin-theme-dark.admin-page-course-builder label{
  color:#e1e9f2!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .hint,
body.admin-area.admin-theme-dark.admin-page-course-builder .hint{
  color:#8fa2b7!important;
}

/* ---------------------------------------------------------------------
   Day View remains explicitly unchanged/clean for these two pages.
   --------------------------------------------------------------------- */
html[data-admin-theme="light"] body.admin-area.admin-page-community .community-post-content h2,
body.admin-area.admin-theme-light.admin-page-community .community-post-content h2{
  color:#10243b!important;
}
html[data-admin-theme="light"] body.admin-area.admin-page-community .community-post-body,
body.admin-area.admin-theme-light.admin-page-community .community-post-body{
  color:#526073!important;
}
html[data-admin-theme="light"] body.admin-area.admin-page-course-builder .module-summary-title,
body.admin-area.admin-theme-light.admin-page-course-builder .module-summary-title{
  color:#10243f!important;
}

/* =====================================================================
   Numogist™ Academy — Foundation 9.5.6 LOCKED
   FINAL COURSE BUILDER CONTRAST HARDENING
   Scope: Course Builder Night View text/summary contrast ONLY.
   All previously approved layout, logo, footer, theme and page work
   remains untouched.
   ===================================================================== */

/* The remaining visible defect is caused by old Course Builder summary
   color rules surviving on collapsed <details>. Force the text paint
   itself, not just inherited color. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-details > details > summary,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder #course-details > details > summary strong,
body.admin-area.admin-theme-dark.admin-page-course-builder #course-details > details > summary,
body.admin-area.admin-theme-dark.admin-page-course-builder #course-details > details > summary strong{
  color:#edf4fb!important;
  -webkit-text-fill-color:#edf4fb!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:none!important;
}

/* Protect every collapsible heading inside Course Builder from any
   old light-theme text rule without changing semantic badges. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .workspace-card details > summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .workspace-card details > summary{
  color:#dfe8f2!important;
  -webkit-text-fill-color:#dfe8f2!important;
  opacity:1!important;
}

html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .workspace-card details > summary strong,
body.admin-area.admin-theme-dark.admin-page-course-builder .workspace-card details > summary strong{
  color:#eef4fb!important;
  -webkit-text-fill-color:#eef4fb!important;
  opacity:1!important;
}

/* Native disclosure marker / custom arrows. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder details > summary::marker,
body.admin-area.admin-theme-dark.admin-page-course-builder details > summary::marker{
  color:#9fb2c7!important;
}
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-summary-title::before,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-summary-title::before{
  color:#eef4fb!important;
  -webkit-text-fill-color:#eef4fb!important;
}

/* Existing module headings, Add Module and Add Lesson headings. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-summary-title,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-module-card > details > summary,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .add-lesson > summary,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-accordion-body > details > summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-summary-title,
body.admin-area.admin-theme-dark.admin-page-course-builder .add-module-card > details > summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .add-lesson > summary,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-accordion-body > details > summary{
  color:#eef4fb!important;
  -webkit-text-fill-color:#eef4fb!important;
  opacity:1!important;
}

/* Keep eyebrow labels gold rather than being caught by summary hardening. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .module-summary-copy .eyebrow,
body.admin-area.admin-theme-dark.admin-page-course-builder .module-summary-copy .eyebrow{
  color:#d8b75f!important;
  -webkit-text-fill-color:#d8b75f!important;
}

/* General helper text on this page gets one stronger contrast step. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-step-help,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .muted,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .muted-inline,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-step-help,
body.admin-area.admin-theme-dark.admin-page-course-builder .muted,
body.admin-area.admin-theme-dark.admin-page-course-builder .muted-inline{
  color:#96a9bd!important;
  opacity:1!important;
}

/* Readiness values and completion operation text safety net. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-readiness-item b,
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .course-completion-actions a,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-readiness-item b,
body.admin-area.admin-theme-dark.admin-page-course-builder .course-completion-actions a{
  color:#eef4fb!important;
  -webkit-text-fill-color:#eef4fb!important;
}

/* Do not disturb semantic/status badges. */
html[data-admin-theme="dark"] body.admin-area.admin-page-course-builder .badge.published,
body.admin-area.admin-theme-dark.admin-page-course-builder .badge.published{
  -webkit-text-fill-color:currentColor!important;
}

/* PHASE11-SAAS-UI-R1
   Numogist™ Academy — Phase 11 SaaS KPI/readability acceptance patch.
   Scope: only .stats-grid/.stat blocks used by Phase 11 SaaS admin pages.
*/
body.admin-area .stats-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0 0 22px!important;
  align-items:stretch!important;
}
body.admin-area .stats-grid .stat{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:0!important;
  min-height:104px!important;
  margin:0!important;
  padding:18px 20px!important;
  box-sizing:border-box!important;
  border:1px solid #d8e3ed!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fafc 100%)!important;
  box-shadow:0 10px 28px rgba(10,35,58,.07)!important;
  color:#102a43!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  letter-spacing:normal!important;
}
body.admin-area .stats-grid .stat b{
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  color:#0d2f4c!important;
  -webkit-text-fill-color:#0d2f4c!important;
  font-size:clamp(24px,2vw,31px)!important;
  line-height:1.08!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
  overflow-wrap:anywhere!important;
}
body.admin-area .stats-grid .stat span{
  display:block!important;
  margin:0!important;
  color:#667b8f!important;
  -webkit-text-fill-color:#667b8f!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
}

/* Night View — explicit contrast so KPI values can never inherit the old navy text. */
html[data-admin-theme="dark"] body.admin-area .stats-grid .stat,
body.admin-area.admin-theme-dark .stats-grid .stat{
  border-color:#2a3d50!important;
  background:linear-gradient(180deg,#142536 0%,#101d2a 100%)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
  color:#eef5fb!important;
}
html[data-admin-theme="dark"] body.admin-area .stats-grid .stat b,
body.admin-area.admin-theme-dark .stats-grid .stat b{
  color:#f5f9fd!important;
  -webkit-text-fill-color:#f5f9fd!important;
}
html[data-admin-theme="dark"] body.admin-area .stats-grid .stat span,
body.admin-area.admin-theme-dark .stats-grid .stat span{
  color:#a9bacb!important;
  -webkit-text-fill-color:#a9bacb!important;
}

/* Keep the Phase 11 SaaS dashboard readable on narrower admin workspaces. */
@media(max-width:1100px){
  body.admin-area .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:650px){
  body.admin-area .stats-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.admin-area .stats-grid .stat{
    min-height:88px!important;
    padding:15px 16px!important;
    border-radius:15px!important;
  }
  body.admin-area .stats-grid .stat b{
    font-size:24px!important;
  }
}
