.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10050 !important;
  overflow: visible !important;
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

body.gl-header-scrolled .site-header {
  box-shadow: 0 16px 38px rgba(3, 11, 27, .34);
}

.gl-quick-nav,
.gl-public-assistant {
  position: fixed;
  z-index: 9998;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gl-quick-nav {
  right: 18px;
  bottom: 96px;
  display: grid;
  gap: 8px;
}

.gl-quick-nav button,
.gl-assistant-toggle,
.gl-assistant-close,
.gl-assistant-submit {
  display: inline-grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.gl-quick-nav button,
.gl-assistant-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #0a2342;
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 21, 45, .28);
}

.gl-quick-nav button {
  border: 1px solid rgba(242, 199, 104, .58);
  font-size: 20px;
}

.gl-quick-nav button:hover,
.gl-assistant-toggle:hover {
  transform: translateY(-2px);
  background: #12345f;
}

.gl-public-assistant {
  right: 18px;
  bottom: 18px;
}

.gl-assistant-toggle {
  width: auto;
  min-width: 64px;
  padding: 0 16px 0 10px;
  gap: 8px;
  border: 1px solid rgba(242, 199, 104, .66);
  background: linear-gradient(135deg, #0a2342, #102f54);
  font-weight: 800;
}

.gl-assistant-toggle__logo,
.gl-assistant-toggle__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(242, 199, 104, .74);
  background: #06142b;
}

.gl-assistant-toggle__logo {
  object-fit: cover;
}

.gl-assistant-toggle__mark {
  display: grid;
  place-items: center;
  color: #f2c768;
  font-size: 12px;
  font-weight: 900;
}

.gl-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(450px, calc(100vw - 24px));
  max-height: min(660px, calc(100vh - 104px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(16, 28, 54, .14);
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 22px 60px rgba(3, 11, 27, .24);
}

.gl-public-assistant.is-open .gl-assistant-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.gl-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #071a34;
  color: #fff;
}

.gl-assistant-head > div {
  min-width: 0;
  padding-right: 4px;
}

.gl-assistant-head strong {
  display: block;
  font-size: 15px;
}

.gl-assistant-head span {
  display: block;
  margin-top: 2px;
  color: #cbd9e9;
  font-size: 12px;
}

.gl-assistant-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
}

.gl-assistant-body {
  min-height: 260px;
  overflow: auto;
  padding: 14px;
  background: #f5f7fa;
}

.gl-assistant-message {
  margin: 0 0 10px;
  padding: 11px 12px;
  border-radius: 12px;
  line-height: 1.42;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.gl-assistant-message.is-bot {
  background: #fff;
  border: 1px solid #d8dee8;
}

.gl-assistant-message.is-user {
  margin-left: 42px;
  background: #0f766e;
  color: #fff;
}

.gl-assistant-result {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #d8dee8;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gl-assistant-result strong {
  display: block;
  margin-bottom: 4px;
  color: #071a34;
}

.gl-assistant-result small {
  display: block;
  margin-top: 5px;
  color: #596579;
}

.gl-assistant-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #071a34;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.gl-assistant-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #d8dee8;
  background: #fff;
}

.gl-assistant-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  color: #172033;
  font: inherit;
}

.gl-assistant-submit {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f2c768;
  color: #07152d;
  font-size: 19px;
  font-weight: 900;
}

html[data-genie-theme="dark"] .gl-assistant-panel {
  background: #151f32;
  color: #f3f5f7;
  border-color: #2a3850;
}

html[data-genie-theme="dark"] .gl-assistant-body,
html[data-genie-theme="dark"] .gl-assistant-result {
  background: #0d1424;
}

html[data-genie-theme="dark"] .gl-assistant-message.is-bot,
html[data-genie-theme="dark"] .gl-assistant-form {
  background: #151f32;
  border-color: #2a3850;
}

html[data-genie-theme="dark"] .gl-assistant-result strong {
  color: #fff;
}

html[data-genie-theme="dark"] .gl-assistant-form input {
  background: #0d1424;
  color: #f3f5f7;
  border-color: #2a3850;
}

html[data-genie-theme="dark"] .gl-assistant-result small {
  color: #aeb8ca;
}

html[data-genie-theme="dark"] .gl-seo-intent {
  background: #151f32 !important;
  border-color: #2a3850 !important;
  color: #f3f5f7 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22) !important;
}

html[data-genie-theme="dark"] .gl-seo-intent h1,
html[data-genie-theme="dark"] .gl-seo-intent h2,
html[data-genie-theme="dark"] .gl-seo-intent h3,
html[data-genie-theme="dark"] .gl-seo-intent__faq summary {
  color: #f3f5f7 !important;
}

html[data-genie-theme="dark"] .gl-seo-intent p,
html[data-genie-theme="dark"] .gl-seo-intent__grid p,
html[data-genie-theme="dark"] .gl-seo-intent__sections p,
html[data-genie-theme="dark"] .gl-seo-intent__faq p {
  color: #aeb8ca !important;
}

html[data-genie-theme="dark"] .gl-seo-intent__grid article,
html[data-genie-theme="dark"] .gl-seo-intent__sections article,
html[data-genie-theme="dark"] .gl-seo-intent__faq details,
html[data-genie-theme="dark"] .gl-seo-intent__links a {
  background: #0d1424 !important;
  border-color: #2a3850 !important;
  color: #f3f5f7 !important;
}

/* Global dark-mode guard for legacy public pages and plugin-rendered hubs. */
html[data-genie-theme="dark"],
html[data-genie-theme="dark"] body,
html[data-genie-theme="dark"] .dea-page {
  background: #0d1424 !important;
  color: #f3f5f7 !important;
}

html[data-genie-theme="dark"] :where(
  .dea-card,
  .dea-price,
  .dea-bank,
  .dea-form,
  .dea-dashboard,
  .dea-notice,
  .dea-login-panel,
  .dea-table,
  .dea-payment-page .dea-card-payment,
  .gl-blog-card,
  .gl-qa-card,
  .gl-comment,
  .gl-professor-reading,
  .gl-professor-reading__problem article,
  .gl-professor-reading__grid article,
  .gl-professor-reading__scenario,
  .gl-source-identity,
  .gl-discussion .comment-form,
  .gl-contact-form,
  .gl-legal-page,
  .gl-news-subscribe,
  .gl-news-method,
  .gl-news-method li,
  .gl-canva-signature,
  .gl-canva-signature__metrics article,
  .gl-event-calendar,
  .gl-event-calendar__day,
  .gl-event-card,
  .gl-certifications-trust article,
  .gl-certifications-method,
  .gl-certifications-catalog,
  .gl-certifications-grid article,
  .gl-career-help,
  .gl-career-audit,
  .gl-career-resources,
  .gl-career-guide,
  .gl-career-guide__grid article,
  .gl-career-compare,
  .gl-career-kit,
  .gl-career-kit li,
  .gl-career-internal-links,
  .gl-career-publications,
  .gl-career-publications article,
  .gl-career-faq,
  .gl-career-faq details,
  .gl-public-study,
  .gl-public-study form,
  .gl-public-study article,
  .gl-career-paid,
  .gl-career-private,
  .gl-professor-proof article,
  .dea-professor-application,
  .gl-students__proof,
  .gl-students__tools,
  .gl-students__tool-grid article,
  .gl-students__method li
) {
  background: #151f32 !important;
  border-color: #2a3850 !important;
  color: #f3f5f7 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22) !important;
}

html[data-genie-theme="dark"] :where(
  .gl-event-calendar__day,
  .gl-blog-card,
  .gl-comment,
  .gl-professor-reading__problem article,
  .gl-professor-reading__grid article,
  .gl-professor-reading__scenario,
  .gl-news-method li,
  .gl-certifications-grid article,
  .gl-career-publications article,
  .gl-career-faq details,
  .gl-public-study article,
  .gl-public-study form,
  .gl-students__tool-grid article,
  .gl-students__method li
) {
  background: #0d1424 !important;
}

html[data-genie-theme="dark"] :where(
  .dea-card,
  .dea-price,
  .dea-bank,
  .dea-form,
  .dea-dashboard,
  .dea-notice,
  .dea-login-panel,
  .gl-blog-card,
  .gl-qa-card,
  .gl-comment,
  .gl-professor-reading,
  .gl-contact-form,
  .gl-legal-page,
  .gl-news-subscribe,
  .gl-news-method,
  .gl-canva-signature,
  .gl-event-calendar,
  .gl-certifications-trust,
  .gl-certifications-method,
  .gl-certifications-catalog,
  .gl-career-help,
  .gl-career-guide,
  .gl-career-compare,
  .gl-career-kit,
  .gl-career-publications,
  .gl-career-faq,
  .gl-public-study,
  .gl-students
) :where(h1,h2,h3,h4,strong,summary,label,th,dt,a:not(.gl-community-button):not(.gl-conversion-strip__cta):not(.gl-blog-card__link)) {
  color: #f3f5f7 !important;
}

html[data-genie-theme="dark"] :where(
  .dea-card,
  .dea-price,
  .dea-bank,
  .dea-form,
  .dea-dashboard,
  .dea-notice,
  .gl-blog-card,
  .gl-qa-card,
  .gl-comment,
  .gl-professor-reading,
  .gl-contact-form,
  .gl-legal-page,
  .gl-news-subscribe,
  .gl-news-method,
  .gl-canva-signature,
  .gl-event-calendar,
  .gl-certifications-trust,
  .gl-certifications-method,
  .gl-certifications-catalog,
  .gl-career-help,
  .gl-career-guide,
  .gl-career-compare,
  .gl-career-kit,
  .gl-career-publications,
  .gl-career-faq,
  .gl-public-study,
  .gl-students
) :where(p,li,span,small,td,dd,em) {
  color: #aeb8ca !important;
}

html[data-genie-theme="dark"] :where(input,select,textarea) {
  background: #0d1424 !important;
  border-color: #2a3850 !important;
  color: #f3f5f7 !important;
}

html[data-genie-theme="dark"] :where(input,textarea)::placeholder {
  color: #8390a4 !important;
}

html[data-genie-theme="dark"] :where(.dea-table th,.dea-table td,.gl-career-table th,.gl-career-table td) {
  background: #0d1424 !important;
  border-color: #2a3850 !important;
  color: #f3f5f7 !important;
}

html[data-genie-theme="dark"] :where(.gl-blog-card__link,.gl-card-source a,.gl-career-publications a,.gl-career-resources a,.gl-certifications-sources a,.gl-legal-toc a) {
  color: #5eead4 !important;
}

html[data-genie-theme="dark"] :where(.gl-community-button:not(.gl-community-button--primary),.dea-button:not(.dea-button--primary),.dea-copy) {
  background: #0d1424 !important;
  border-color: #3c4c63 !important;
  color: #f3f5f7 !important;
}

@media (max-width: 760px) {
  .site-header {
    max-height: 72vh;
    overflow: visible !important;
  }

  .main-nav {
    max-width: 100%;
    overflow: visible !important;
    scrollbar-width: thin;
  }

  .gl-quick-nav {
    right: 12px;
    bottom: 88px;
  }

  .gl-public-assistant {
    right: 12px;
    bottom: 12px;
  }

  .gl-assistant-toggle {
    min-width: 52px;
    padding: 0 13px;
  }

  .gl-assistant-panel {
    width: calc(100vw - 24px);
    bottom: 58px;
  }
}
