/* Professional header controls and the dark appearance. Light stays the default. */
.gx-header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
a.gx-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0b2a4a !important;
  -webkit-text-fill-color: #0b2a4a;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
  text-decoration: none;
  white-space: nowrap;
}
a.gx-signin:hover { background: #f4f7fb !important; }
a.gx-signin-lg {
  min-height: 48px;
  padding: 0 22px !important;
  font-size: 1rem;
  background: #0b2a4a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
a.gx-signin-lg:hover { background: #123a63 !important; }

.gx-appearance {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.gx-appearance button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d6e4f5;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
}
.gx-appearance button[aria-pressed="true"] {
  background: #fff;
  color: #0b2a4a;
}
.gx-appearance-float {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 60;
  background: #0b2a4a;
}
.topin .gx-appearance,
.gx-login-card .gx-appearance {
  border-color: #c5d0dc;
  background: #fff;
}
.topin .gx-appearance button { color: #0b2a4a; }
.topin .gx-appearance button[aria-pressed="true"] {
  background: #0b2a4a;
  color: #fff;
}

.gx-sso-gate, .gx-sso-in {
  display: grid;
  gap: 8px;
  margin: 16px 0 4px;
}
.gx-sso-in {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid #dbe4ef;
}
.gx-sso-in p { margin: 0; }

@media (max-width: 1100px) {
  .nav-toggle { margin-left: 8px !important; }
  .gx-header-tools { margin-left: auto; }
  a.gx-signin { min-height: 40px; }
}

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
  background: #0e1726 !important;
  color: #e7eef8;
}
html[data-theme="dark"] .gx-hero-modern h1,
html[data-theme="dark"] .gx-start-card,
html[data-theme="dark"] .gx-start-card strong,
html[data-theme="dark"] .gx-desk h2,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: #e7eef8;
}
html[data-theme="dark"] .gx-start-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .gx-login-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .exam-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .q,
html[data-theme="dark"] .gx-quote,
html[data-theme="dark"] .gx-prep-fieldset,
html[data-theme="dark"] .gx-sso-in,
html[data-theme="dark"] .gx-desk-fee,
html[data-theme="dark"] .sheet tr {
  background: #152033 !important;
  color: #e7eef8 !important;
  border-color: #2a3b52 !important;
}
html[data-theme="dark"] .gx-start-card em,
html[data-theme="dark"] .gx-hint,
html[data-theme="dark"] .gx-fine,
html[data-theme="dark"] .lede,
html[data-theme="dark"] .hi,
html[data-theme="dark"] .why,
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .foot {
  color: #b7c7da;
}
html[data-theme="dark"] .top,
html[data-theme="dark"] .tools {
  background: #101a2b !important;
  color: #e7eef8;
}
html[data-theme="dark"] .top a,
html[data-theme="dark"] .nav a,
html[data-theme="dark"] .brand { color: #e7eef8; }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .tools a,
html[data-theme="dark"] .tools button,
html[data-theme="dark"] .update-filters button {
  background: #0e1726 !important;
  color: #e7eef8 !important;
  border-color: #2a3b52 !important;
}
html[data-theme="dark"] .ans { background: #123524; color: #d9f5e4; }
html[data-theme="dark"] .gx-appearance-float { background: #152033; }
html[data-theme="dark"] .topin .gx-appearance {
  background: #152033;
  border-color: #2a3b52;
}
html[data-theme="dark"] .topin .gx-appearance button { color: #d6e4f5; }
html[data-theme="dark"] .topin .gx-appearance button[aria-pressed="true"] {
  background: #e7eef8;
  color: #0e1726;
}
html[data-theme="dark"] #gx-account-practice { border-top-color: #2a3b52; color: #e7eef8; }
html[data-theme="dark"] .gx-mini-q { background: #152033; border-color: #2a3b52; }
html[data-theme="dark"] .gx-mini-opt { background: #0e1726; color: #e7eef8; border-color: #2a3b52; }
html[data-theme="dark"] .gx-mini-opt.is-correct { background: #123524; color: #d9f5e4; }
html[data-theme="dark"] .gx-mini-opt.is-wrong { background: #3b1515; color: #fecaca; }
