/* ═══════════════════════════════════════════════════════════════
   Chem Lab Pro — Account shell & inner pages
   ═══════════════════════════════════════════════════════════════ */

body.chem-lab.student-no-header,
body.chemistry-pro.student-no-header,
body.chem-lab:has(.acc-topbar),
body.chemistry-pro:has(.acc-topbar) {
  padding-top: 0 !important;
  background: var(--chem-mist, #F7F4FB);
}

/* تخطيط حساب الطالب — محاذاة الهيدر والقائمة والمحتوى بدون فراغات */
@media (min-width: 981px) {
  body.chem-lab .acc-topbar,
  body.chemistry-pro .acc-topbar {
    padding-inline: 0 !important;
  }

  body.chem-lab .acc-topbar .container,
  body.chemistry-pro .acc-topbar .container,
  body.chem-lab .acc-page,
  body.chemistry-pro .acc-page {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }

  body.chem-lab .acc-page,
  body.chemistry-pro .acc-page {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    grid-template-areas: "nav main" !important;
    gap: 16px !important;
    margin-top: 10px !important;
    align-items: start !important;
  }

  body.chem-lab .acc-sidebar,
  body.chemistry-pro .acc-sidebar {
    grid-area: nav !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    padding: 10px !important;
  }

  body.chem-lab .acc-shell,
  body.chemistry-pro .acc-shell {
    grid-area: main !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.chem-lab .acc-main,
  body.chemistry-pro .acc-main,
  body.chem-lab .acc-layout,
  body.chemistry-pro .acc-layout {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.chem-lab .acc-main > .container,
  body.chemistry-pro .acc-main > .container {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
  }

  body.chem-lab .acc-stats__grid,
  body.chemistry-pro .acc-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.chem-lab .acc-nav,
  body.chemistry-pro .acc-nav,
  body.chem-lab .acc-nav__item,
  body.chemistry-pro .acc-nav__item {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ——— Topbar ——— */
body.chem-lab .acc-topbar,
body.chemistry-pro .acc-topbar {
  background: transparent;
  padding: 12px 0 8px;
}

body.chem-lab .acc-topbar__bar,
body.chemistry-pro .acc-topbar__bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

body.chem-lab .acc-brand,
body.chemistry-pro .acc-brand { color: var(--text-strong); }

body.chem-lab .acc-brand__name,
body.chemistry-pro .acc-brand__name {
  color: var(--text-strong);
  font-family: var(--font-display);
}

body.chem-lab .acc-brand__sub,
body.chemistry-pro .acc-brand__sub {
  color: var(--muted);
}

body.chem-lab .acc-brand__logoFallback,
body.chemistry-pro .acc-brand__logoFallback {
  background: linear-gradient(135deg, #5B2C8A, #2B1248);
  color: #fff;
  border-radius: 12px;
}

body.chem-lab .acc-student,
body.chemistry-pro .acc-student {
  color: var(--text);
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}

body.chem-lab .acc-student__ico,
body.chemistry-pro .acc-student__ico { color: var(--primary); }

body.chem-lab .acc-pill,
body.chemistry-pro .acc-pill {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

body.chem-lab .acc-pill__ico,
body.chemistry-pro .acc-pill__ico { color: #fff; }

body.chem-lab .acc-bell,
body.chemistry-pro .acc-bell {
  background: var(--page-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
}

body.chem-lab .acc-bell__badge,
body.chemistry-pro .acc-bell__badge {
  background: #D64545;
  color: #fff;
}

body.chem-lab .acc-burger,
body.chemistry-pro .acc-burger {
  border-color: var(--border-strong);
}
body.chem-lab .acc-burger span,
body.chemistry-pro .acc-burger span { background: var(--text-strong); }

/* فصل سويتش الوضع عن نص الشعار على الموبايل */
@media (max-width: 980px) {
  body.chem-lab .acc-topbar__right,
  body.chemistry-pro .acc-topbar__right {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
  }

  body.chem-lab .acc-topbar__right .acc-brand,
  body.chemistry-pro .acc-topbar__right .acc-brand {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-inline-end: 4px !important;
  }

  body.chem-lab .acc-topbar__right .acc-brand__text,
  body.chemistry-pro .acc-topbar__right .acc-brand__text {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.chem-lab .acc-topbar__right .acc-brand__name,
  body.chemistry-pro .acc-topbar__right .acc-brand__name {
    max-width: min(46vw, 170px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.chem-lab .acc-topbar__right .acc-brand__sub,
  body.chemistry-pro .acc-topbar__right .acc-brand__sub {
    display: none !important;
  }

  body.chem-lab .acc-topbar__right .acc-theme,
  body.chemistry-pro .acc-topbar__right .acc-theme {
    --ts-w: 68px;
    --ts-h: 34px;
    --ts-pad: 3px;
    position: relative !important;
    z-index: 5 !important;
    margin: 0 !important;
    justify-self: end !important;
    flex: none !important;
    background: var(--card-bg) !important;
  }
}

@media (max-width: 560px) {
  body.chem-lab .acc-topbar__right .acc-brand__name,
  body.chemistry-pro .acc-topbar__right .acc-brand__name {
    display: block !important;
    max-width: min(40vw, 140px) !important;
  }

  body.chem-lab .acc-topbar__right .acc-theme,
  body.chemistry-pro .acc-topbar__right .acc-theme {
    --ts-w: 52px;
    --ts-h: 30px;
  }
}

body.chem-lab .acc-notifs,
body.chemistry-pro .acc-notifs {
  background: #fff;
  border: 1px solid var(--chem-line);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  color: var(--text);
}

/* ——— Sidebar ——— */
body.chem-lab .acc-sidebar,
body.chemistry-pro .acc-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

body.chem-lab .acc-nav__item,
body.chemistry-pro .acc-nav__item {
  color: var(--text);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  position: relative;
}

body.chem-lab .acc-nav__badge,
body.chemistry-pro .acc-nav__badge {
  margin-inline-start: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.chem-lab .acc-nav__item.is-active .acc-nav__badge,
body.chemistry-pro .acc-nav__item.is-active .acc-nav__badge {
  background: #fbbf24;
  color: #1f1133;
}

body.chem-lab .acc-nav__item:hover,
body.chemistry-pro .acc-nav__item:hover {
  background: var(--chem-mist);
  color: var(--chem-ink-2);
}

body.chem-lab .acc-nav__item.is-active,
body.chemistry-pro .acc-nav__item.is-active {
  background: linear-gradient(135deg, #2B1248, #5B2C8A);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(91, 44, 138, 0.28);
}

body.chem-lab .acc-nav__item.is-active .acc-nav__ico,
body.chemistry-pro .acc-nav__item.is-active .acc-nav__ico { color: #fff; }

body.chem-lab .acc-nav__ico,
body.chemistry-pro .acc-nav__ico { color: var(--chem-violet); }

body.chem-lab .acc-nav__item.is-danger,
body.chemistry-pro .acc-nav__item.is-danger {
  color: #B42318;
}

/* ——— Hero home ——— */
body.chem-lab .acc-hero,
body.chemistry-pro .acc-hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: 22px;
  padding: 32px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

body.chem-lab .acc-hero__guides,
body.chemistry-pro .acc-hero__guides { display: none !important; }

body.chem-lab .acc-hero__kicker,
body.chemistry-pro .acc-hero__kicker {
  font-family: var(--font-science);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

body.chem-lab .acc-hero h1,
body.chemistry-pro .acc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hero-text);
}

body.chem-lab .acc-hero__sub,
body.chemistry-pro .acc-hero__sub {
  color: var(--hero-muted);
  margin: 0 0 22px;
  font-weight: 500;
}

body.chem-lab .acc-journey,
body.chemistry-pro .acc-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body.chem-lab .acc-journey__step,
body.chemistry-pro .acc-journey__step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

body.chem-lab .acc-journey__step:hover,
body.chemistry-pro .acc-journey__step:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

body.chem-lab .acc-journey__foot,
body.chemistry-pro .acc-journey__foot { display: none; }

body.chem-lab .acc-journey__num,
body.chemistry-pro .acc-journey__num {
  display: block;
  font-family: var(--font-science);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

body.chem-lab .acc-journey__label,
body.chemistry-pro .acc-journey__label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-strong);
}

body.chem-lab .acc-journey__hint,
body.chemistry-pro .acc-journey__hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Companions -> lab tips */
body.chem-lab .acc-companions,
body.chemistry-pro .acc-companions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

body.chem-lab .acc-companion,
body.chemistry-pro .acc-companion {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
}

body.chem-lab .acc-companion img,
body.chemistry-pro .acc-companion img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(145deg, #2B1248, #5B2C8A);
}

body.chem-lab .acc-companion h3,
body.chemistry-pro .acc-companion h3 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 1.05rem;
}

body.chem-lab .acc-companion p,
body.chemistry-pro .acc-companion p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Stats */
body.chem-lab .acc-stats__head,
body.chemistry-pro .acc-stats__head {
  margin: 0 0 14px;
}

body.chem-lab .acc-stats__title,
body.chemistry-pro .acc-stats__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-strong);
}

body.chem-lab .acc-stats__sub,
body.chemistry-pro .acc-stats__sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

body.chem-lab .acc-stats__grid,
body.chemistry-pro .acc-stats__grid {
  gap: 14px;
}

body.chem-lab .acc-stat,
body.chemistry-pro .acc-stat {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "ico val"
    "ico lbl"
    "go go";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  min-height: 132px;
  padding: 18px 16px 14px;
  text-decoration: none !important;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft, 0 8px 20px rgba(20, 8, 34, 0.06));
  color: var(--text);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.chem-lab .acc-stat::before,
body.chemistry-pro .acc-stat::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, #2B1248, #5B2C8A);
  opacity: .85;
}

body.chem-lab .acc-stat:hover,
body.chemistry-pro .acc-stat:hover,
body.chem-lab .acc-stat:focus-visible,
body.chemistry-pro .acc-stat:focus-visible {
  transform: translateY(-4px);
  border-color: var(--chem-violet, #5B2C8A);
  box-shadow: 0 16px 30px rgba(91, 44, 138, 0.16);
  outline: none;
}

body.chem-lab .acc-stat__ico,
body.chemistry-pro .acc-stat__ico {
  grid-area: ico;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff !important;
  background: linear-gradient(145deg, #2B1248 0%, #5B2C8A 58%, #7C3AED 100%) !important;
  border-radius: 16px;
  box-shadow:
    0 10px 22px rgba(91, 44, 138, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.chem-lab .acc-stat__ico .chem-stat-ico,
body.chemistry-pro .acc-stat__ico .chem-stat-ico,
body.chem-lab .acc-stat__ico .chem-ui-ico,
body.chemistry-pro .acc-stat__ico .chem-ui-ico {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

body.chem-lab .acc-stat:hover .acc-stat__ico,
body.chemistry-pro .acc-stat:hover .acc-stat__ico {
  transform: scale(1.04);
  box-shadow:
    0 14px 26px rgba(91, 44, 138, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.chem-lab .acc-stat__val,
body.chemistry-pro .acc-stat__val {
  grid-area: val;
  color: var(--text-strong);
  font-family: var(--font-science, inherit);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
}

body.chem-lab .acc-stat__lbl,
body.chemistry-pro .acc-stat__lbl {
  grid-area: lbl;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.chem-lab .acc-stat__go,
body.chemistry-pro .acc-stat__go {
  grid-area: go;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: var(--chem-violet, #5B2C8A);
  font-size: 0.82rem;
  font-weight: 800;
}

body.chem-lab .acc-stat:hover .acc-stat__go,
body.chemistry-pro .acc-stat:hover .acc-stat__go {
  color: var(--chem-ink-2, #2B1248);
}

/* Cards */
body.chem-lab .acc-card,
body.chemistry-pro .acc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

body.chem-lab .acc-card__head,
body.chemistry-pro .acc-card__head {
  border-bottom: 1px solid var(--chem-line);
}

body.chem-lab .acc-card__title,
body.chemistry-pro .acc-card__title,
body.chem-lab .acc-card h2,
body.chemistry-pro .acc-card h2 {
  color: var(--chem-ink);
}

body.chem-lab .acc-alert--success,
body.chemistry-pro .acc-alert--success {
  background: rgba(47, 158, 107, 0.12);
  border-color: rgba(47, 158, 107, 0.35);
  color: #1B6B45;
}

body.chem-lab .acc-alert--error,
body.chemistry-pro .acc-alert--error {
  background: rgba(214, 69, 69, 0.1);
  border-color: rgba(214, 69, 69, 0.3);
  color: #9B1C1C;
}

/* Course cards / buttons */
body.chem-lab .acc-course,
body.chemistry-pro .acc-course,
body.chem-lab .course-card,
body.chemistry-pro .course-card {
  border-radius: 16px;
  border-color: var(--chem-line);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.chem-lab .acc-course:hover,
body.chemistry-pro .acc-course:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--chem-glow);
}

body.chem-lab .btn,
body.chemistry-pro .btn,
body.chem-lab .acc-btn,
body.chemistry-pro .acc-btn,
body.chem-lab a.acc-btn,
body.chemistry-pro a.acc-btn {
  border-radius: 12px;
}

body.chem-lab .btn-primary,
body.chemistry-pro .btn-primary,
body.chem-lab .acc-btn--primary,
body.chemistry-pro .acc-btn--primary {
  background: linear-gradient(135deg, #5B2C8A, #2B1248) !important;
  color: #fff !important;
  border: 0 !important;
}

body.chem-lab .acc-btn--outline,
body.chemistry-pro .acc-btn--outline {
  border-color: var(--chem-violet) !important;
  color: var(--chem-violet) !important;
}

/* Wallet */
body.chem-lab .wallet-card,
body.chemistry-pro .wallet-card,
body.chem-lab .acc-wallet,
body.chemistry-pro .acc-wallet {
  background: linear-gradient(135deg, #1A0B2E, #5B2C8A);
  color: #fff;
  border-radius: 18px;
}

/* Chat / notifications */
body.chem-lab .acc-chat,
body.chemistry-pro .acc-chat,
body.chem-lab .chat-box,
body.chemistry-pro .chat-box {
  border-radius: 16px;
  border-color: var(--chem-line);
}

body.chem-lab .acc-chat__send,
body.chemistry-pro .acc-chat__send,
body.chem-lab .chat-send,
body.chemistry-pro .chat-send {
  background: var(--chem-violet) !important;
  color: #fff !important;
}

/* Forms in settings */
body.chem-lab .acc-main .input,
body.chemistry-pro .acc-main .input,
body.chem-lab .acc-main input[type="text"],
body.chemistry-pro .acc-main input[type="text"],
body.chem-lab .acc-main input[type="password"],
body.chemistry-pro .acc-main input[type="password"],
body.chem-lab .acc-main select,
body.chemistry-pro .acc-main select,
body.chem-lab .acc-main textarea,
body.chemistry-pro .acc-main textarea {
  border-radius: 12px;
  border: 1.5px solid rgba(43, 18, 72, 0.14);
}

body.chem-lab .acc-main .input:focus,
body.chemistry-pro .acc-main .input:focus,
body.chem-lab .acc-main input:focus,
body.chemistry-pro .acc-main input:focus,
body.chem-lab .acc-main select:focus,
body.chemistry-pro .acc-main select:focus {
  border-color: var(--chem-violet);
  box-shadow: 0 0 0 3px rgba(91, 44, 138, 0.12);
  outline: none;
}

/* Mobile sidebar overrides for chem colors */
@media (max-width: 980px) {
  body.chem-lab .acc-journey,
  body.chemistry-pro .acc-journey {
    grid-template-columns: 1fr 1fr;
  }
  body.chem-lab .acc-companions,
  body.chemistry-pro .acc-companions {
    grid-template-columns: 1fr;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar,
  .acc-sidebar.is-open {
    background: #fff !important;
    border-color: var(--chem-line) !important;
    color: #1C1228 !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item,
  .acc-sidebar.is-open .acc-nav__item {
    color: #1C1228 !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__lbl,
  .acc-sidebar.is-open .acc-nav__lbl {
    color: #1C1228 !important;
    opacity: 1 !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__ico,
  .acc-sidebar.is-open .acc-nav__ico {
    color: var(--chem-violet) !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item.is-active,
  .acc-sidebar.is-open .acc-nav__item.is-active {
    background: linear-gradient(135deg, #2B1248, #5B2C8A) !important;
    color: #fff !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item.is-active .acc-nav__lbl,
  .acc-sidebar.is-open .acc-nav__item.is-active .acc-nav__lbl {
    color: #fff !important;
  }
  body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item.is-danger,
  .acc-sidebar.is-open .acc-nav__item.is-danger {
    color: #8F1D18 !important;
    background: rgba(192, 57, 43, 0.12) !important;
    border-color: rgba(192, 57, 43, 0.28) !important;
  }
  html[data-theme="dark"] body:has(#accSideNavToggle:checked) .acc-sidebar,
  html[data-theme="dark"] .acc-sidebar.is-open {
    background: #1A1028 !important;
    color: #F7F2FC !important;
  }
  html[data-theme="dark"] body:has(#accSideNavToggle:checked) .acc-sidebar .acc-nav__item,
  html[data-theme="dark"] .acc-sidebar.is-open .acc-nav__item,
  html[data-theme="dark"] .acc-sidebar.is-open .acc-nav__lbl {
    color: #F7F2FC !important;
  }
  html[data-theme="dark"] .acc-sidebar.is-open .acc-nav__item.is-danger {
    color: #FFD7D2 !important;
    background: rgba(192, 57, 43, 0.28) !important;
  }
}

@media (max-width: 560px) {
  body.chem-lab .acc-journey,
  body.chemistry-pro .acc-journey {
    grid-template-columns: 1fr;
  }
}

/* Dark theme account */
html[data-theme="dark"] body.chem-lab .acc-sidebar,
html[data-theme="dark"] body.chemistry-pro .acc-sidebar,
html[data-theme="dark"] body.chem-lab .acc-card,
html[data-theme="dark"] body.chemistry-pro .acc-card,
html[data-theme="dark"] body.chem-lab .acc-stat,
html[data-theme="dark"] body.chemistry-pro .acc-stat,
html[data-theme="dark"] body.chem-lab .acc-stat:hover,
html[data-theme="dark"] body.chemistry-pro .acc-stat:hover {
  background: var(--card-bg);
}

html[data-theme="dark"] body.chem-lab .acc-stat__go,
html[data-theme="dark"] body.chemistry-pro .acc-stat__go {
  color: #C084FC;
  border-top-color: rgba(192, 132, 252, 0.22);
}
html[data-theme="dark"] body.chem-lab .acc-companion,
html[data-theme="dark"] body.chemistry-pro .acc-companion {
  background: var(--card-bg);
  border-color: var(--border);
}

html[data-theme="dark"] body.chem-lab,
html[data-theme="dark"] body.chemistry-pro {
  background: var(--page-bg);
}

/* ——— Course / Lecture / Assessment ——— */
body.chem-lab .acc-courseHero,
body.chemistry-pro .acc-courseHero,
body.chem-lab .acc-lecHero,
body.chemistry-pro .acc-lecHero {
  background: #fff;
  border: 1px solid var(--chem-line);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(26, 11, 46, 0.08);
}

body.chem-lab .acc-courseHero__title,
body.chemistry-pro .acc-courseHero__title,
body.chem-lab .acc-lecHero h1,
body.chemistry-pro .acc-lecHero h1 {
  color: var(--chem-ink);
}

body.chem-lab .acc-lecList__item,
body.chemistry-pro .acc-lecList__item,
body.chem-lab .lec-item,
body.chemistry-pro .lec-item {
  border-radius: 14px;
  border-color: var(--chem-line);
  transition: border-color .2s ease, transform .2s ease;
}

body.chem-lab .acc-lecList__item:hover,
body.chemistry-pro .acc-lecList__item:hover {
  border-color: var(--chem-violet);
  transform: translateY(-2px);
}

body.chem-lab .ass-hero,
body.chemistry-pro .ass-hero {
  background: linear-gradient(135deg, #1A0B2E, #5B2C8A) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 20px !important;
}

body.chem-lab .ass-hero__title h1,
body.chemistry-pro .ass-hero__title h1 {
  color: #fff;
}

body.chem-lab .ass-hero .ass-meta,
body.chemistry-pro .ass-hero .ass-meta {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

body.chem-lab .as-q__num,
body.chemistry-pro .as-q__num {
  background: var(--chem-violet) !important;
  color: #fff !important;
}

body.chem-lab .ass-brand,
body.chemistry-pro .ass-brand { color: var(--chem-ink); font-weight: 800; }

body.chem-lab .as-choice.is-selected,
body.chemistry-pro .as-choice.is-selected,
body.chem-lab .as-choice:has(input:checked),
body.chemistry-pro .as-choice:has(input:checked) {
  border-color: var(--chem-violet) !important;
  background: rgba(91, 44, 138, 0.08) !important;
}

body.chem-lab .as-q,
body.chemistry-pro .as-q {
  border-radius: 16px;
  border-color: var(--chem-line);
  background: #fff;
}

body.chem-lab .redeem-card,
body.chemistry-pro .redeem-card,
body.chem-lab .card.redeem-card,
body.chemistry-pro .card.redeem-card {
  background: #fff;
  border: 1px solid var(--chem-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

body.chem-lab .ui-btn--success,
body.chemistry-pro .ui-btn--success,
body.chem-lab .acc-modal-btn--primary,
body.chemistry-pro .acc-modal-btn--primary {
  background: linear-gradient(135deg, #5B2C8A, #2B1248) !important;
  color: #fff !important;
  border: 0 !important;
}

body.chem-lab .wallet-summary__card,
body.chemistry-pro .wallet-summary__card {
  border-radius: 16px;
  border-color: var(--chem-line);
}

body.chem-lab .wallet-summary__value,
body.chemistry-pro .wallet-summary__value {
  color: var(--chem-violet) !important;
}

body.chem-lab .acc-assess-card,
body.chemistry-pro .acc-assess-card,
body.chem-lab .acc-feedCard,
body.chemistry-pro .acc-feedCard,
body.chem-lab .acc-chatCard,
body.chemistry-pro .acc-chatCard {
  border-radius: 18px;
  border-color: var(--chem-line);
}

body.chem-lab .acc-reactionBtn.is-active,
body.chemistry-pro .acc-reactionBtn.is-active {
  background: rgba(91, 44, 138, 0.12) !important;
  color: var(--chem-violet) !important;
}

/* Lecture / course posters: show the full image professionally */
body.chem-lab .acc-lectureCover,
body.chemistry-pro .acc-lectureCover,
body.chem-lab .acc-courseHero__media,
body.chemistry-pro .acc-courseHero__media,
body.chem-lab .mp-pathItem__cover,
body.chemistry-pro .mp-pathItem__cover {
  background: linear-gradient(180deg, #1A0B2E 0%, #2B1248 100%);
}
body.chem-lab .acc-lectureCover__img,
body.chemistry-pro .acc-lectureCover__img,
body.chem-lab .acc-lectureCover img:not(.acc-lectureCover__bg),
body.chemistry-pro .acc-lectureCover img:not(.acc-lectureCover__bg),
body.chem-lab .acc-courseHero__img,
body.chemistry-pro .acc-courseHero__img,
body.chem-lab .mp-pathItem__coverImg,
body.chemistry-pro .mp-pathItem__coverImg,
body.chem-lab .mp-pathItem__cover img:not(.mp-pathItem__coverBg),
body.chemistry-pro .mp-pathItem__cover img:not(.mp-pathItem__coverBg) {
  object-fit: contain !important;
  object-position: center !important;
}
