/* Global exam simulation — student apps */
.gx-app { padding-bottom: 5rem; }

/* —— Hub (global_exam_sim_app) —— */
.edu-app.gx-hub-app {
  --gx-hub-pad: 14px;
  padding: 0 var(--gx-hub-pad) 5rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.edu-student-mode .edu-app.gx-hub-app {
  max-width: 100%;
}
.gx-hub-app { padding-top: 0; }
.gx-hub-hero {
  position: relative; overflow: hidden;
  margin: 0 calc(-1 * var(--gx-hub-pad, 14px)) 18px;
  width: calc(100% + 2 * var(--gx-hub-pad, 14px));
  padding: 36px 20px 28px;
  border-radius: 0 0 32px 32px; color: #fff; text-align: center;
  background: linear-gradient(160deg, #070D18 0%, #070D18 38%, #152238 72%, #1A2942 100%);
  box-shadow: 0 24px 56px rgba(91, 33, 182, 0.35);
  box-sizing: border-box;
}
.gx-hub-hero__glow {
  position: absolute; inset: -40% -15% auto auto; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(237,233,254,.32), transparent 68%);
  pointer-events: none;
}
.gx-hub-hero__glow::after {
  content: ''; position: absolute; inset: 55% auto auto -90%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(167,139,250,.26), transparent 70%);
}
.gx-hub-hero__badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 7px 16px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: rgba(255,255,255,.12); border: 1px solid rgba(237,233,254,.28);
  color: #F3F2EF;
}
.gx-hub-hero h1 { position: relative; z-index: 1; margin: 0 0 10px; font-size: 1.5rem; line-height: 1.3; font-weight: 800; }
.gx-hub-hero p {
  position: relative; z-index: 1;
  margin: 0 auto 22px; max-width: 36rem; font-size: .9rem; line-height: 1.55; opacity: .93;
}
.gx-hub-hero__stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  width: 100%; max-width: none; margin: 0;
}
.gx-hub-hero__stat {
  display: flex; align-items: center; gap: 14px;
  min-height: 82px; padding: 16px 16px; border-radius: 18px; text-align: start;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(237,233,254,.22);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}
.gx-hub-hero__stat-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.1rem; color: #F3F2EF;
  background: rgba(91,33,182,.55);
  border: 1px solid rgba(237,233,254,.28);
  box-shadow: 0 6px 18px rgba(46,16,101,.28);
}
.gx-hub-hero__stat-body { min-width: 0; flex: 1; }
.gx-hub-hero__stat-body strong {
  display: block; font-size: 1.55rem; line-height: 1.05; font-weight: 800;
  font-variant-numeric: tabular-nums; color: #fff;
}
.gx-hub-hero__stat-body small {
  display: block; margin-top: 4px; font-size: .76rem; opacity: .9; font-weight: 700;
  color: #E0E0E0; line-height: 1.3;
}
.gx-hub-hero__stat--accent {
  background: rgba(255,255,255,.18);
  border-color: rgba(237,233,254,.36);
  box-shadow: 0 0 0 1px rgba(196,181,253,.25), inset 0 1px 0 rgba(255,255,255,.14);
}
.gx-hub-hero__stat--accent .gx-hub-hero__stat-icon {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
.gx-hub-hero--company { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0e7490 100%); }

.gx-disclaimer--compact { margin: 0 12px 12px; font-size: .78rem; }
.gx-hub-toolbar { margin: 0 12px 14px; display: grid; gap: 8px; }
.gx-hub-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.gx-hub-chips::-webkit-scrollbar { display: none; }
.gx-hub-chip {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  text-decoration: none; color: inherit; background: var(--edu-card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08); white-space: nowrap;
}
.gx-hub-chip.is-active {
  background: var(--edu-primary, #0B1426); color: #fff; border-color: transparent;
}
.gx-chip--full { background: rgba(11,20,38,.12); color: #0B1426; }
.gx-chip--half { background: rgba(14,116,144,.12); color: #0e7490; }
.gx-chip--practice { background: rgba(5,150,105,.12); color: #047857; }

.gx-hub-family {
  margin: 0 12px 16px; padding: 14px; border-radius: 20px;
  background: var(--edu-card-bg, #fff);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.gx-hub-family__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.gx-hub-family__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gx-accent, #0B1426) 14%, white);
  color: var(--gx-accent, #0B1426); font-size: 1.1rem;
}
.gx-hub-family__head h2 { margin: 0; font-size: 1.02rem; color: var(--gx-accent, #0B1426); }
.gx-hub-family__head small { display: block; opacity: .7; font-size: .72rem; margin-top: 2px; }
.gx-hub-family__count {
  margin-inline-start: auto; min-width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  background: rgba(0,0,0,.05);
}

.gx-hub-featured {
  padding: 14px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gx-accent) 8%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--gx-accent) 22%, transparent);
}
.gx-hub-featured__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.gx-hub-featured h3 { margin: 0 0 6px; font-size: 1.05rem; }
.gx-hub-featured p { margin: 0 0 10px; font-size: .84rem; line-height: 1.5; opacity: .82; }
.gx-hub-featured__meta {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; opacity: .8; margin-bottom: 12px;
}
.gx-hub-featured__meta i { margin-inline-end: 4px; }
.gx-hub-best { color: #047857; font-weight: 700; }
.gx-hub-ready-tag {
  font-size: .7rem; font-weight: 800; color: #047857;
  display: inline-flex; align-items: center; gap: 4px;
}

.gx-hub-mini-grid { display: grid; gap: 8px; }
.gx-hub-mini-card {
  display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: rgba(0,0,0,.025); border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gx-hub-mini-card:hover {
  border-color: color-mix(in srgb, var(--gx-accent, #0B1426) 35%, transparent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.gx-hub-mini-card:active { transform: scale(.99); border-color: var(--gx-accent, #0B1426); }
.gx-hub-mini-card strong { font-size: .9rem; line-height: 1.35; }
.gx-hub-mini-card small { font-size: .74rem; opacity: .72; }

.gx-hub-footer { margin: 8px 12px 0; display: grid; gap: 10px; text-align: center; }
.gx-hub-footer__btn { width: 100%; }
.gx-hub-back { font-size: .86rem; text-decoration: none; opacity: .75; }

@media (min-width: 520px) {
  .edu-app.gx-hub-app { --gx-hub-pad: 20px; }
  .gx-hub-hero { padding-inline: 28px; }
  .gx-hub-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gx-hub-hero__stat { min-height: 88px; padding: 18px 18px; }
  .gx-hub-hero__stat-body strong { font-size: 1.65rem; }
}
@media (min-width: 640px) {
  .gx-hub-mini-grid { grid-template-columns: repeat(2, 1fr); }
}

.gx-hero { padding: 1.25rem 1rem 1rem; text-align: center; }
.gx-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px; font-size: .78rem;
  background: rgba(11,20,38,.12); color: var(--edu-primary, #0B1426);
}
.gx-hero h1 { margin: .6rem 0 .35rem; font-size: 1.35rem; }
.gx-hero p { margin: 0; opacity: .85; font-size: .92rem; line-height: 1.5; }

.gx-disclaimer {
  margin: .75rem 1rem 1rem; padding: .75rem .9rem; border-radius: 12px;
  background: #fff8e6; border: 1px solid #f0d78c; font-size: .82rem; line-height: 1.55;
  display: flex; gap: .6rem; align-items: flex-start;
}
.gx-disclaimer i { color: #b8860b; margin-top: .15rem; }

.gx-family { margin: 0 1rem 1.25rem; }
.gx-family__head h2 { margin: 0 0 .15rem; font-size: 1.1rem; color: var(--gx-accent, #0B1426); }
.gx-family__head small { opacity: .7; font-size: .78rem; }

.gx-sim-grid { display: grid; gap: .75rem; margin-top: .75rem; }
.gx-sim-card {
  background: var(--edu-card-bg, #fff); border-radius: 14px; padding: 1rem;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.gx-sim-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.gx-sim-card__mode { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.gx-sim-card__best { font-size: .75rem; color: #0a7; font-weight: 600; }
.gx-sim-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.gx-sim-card p { margin: 0 0 .6rem; font-size: .85rem; opacity: .8; line-height: 1.45; }
.gx-sim-card__meta { display: flex; flex-wrap: wrap; gap: .65rem; font-size: .78rem; opacity: .75; margin-bottom: .75rem; }
.gx-sim-card__meta i { margin-inline-end: .25rem; }

.gx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 10px; font-size: .88rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
}
.gx-btn--primary { background: var(--edu-primary, #0B1426); color: #fff; }
.gx-btn--soft { background: rgba(0,0,0,.06); color: inherit; }
.gx-btn--lg { width: 100%; padding: .85rem; font-size: 1rem; }
.gx-hidden { display: none !important; }

.gx-empty, .gx-back-link { margin: 1rem; text-align: center; }
.gx-back-link a { font-size: .88rem; text-decoration: none; opacity: .8; }

/* Detail v2 */
.gx-detail-app-v2 {
  padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px));
}
.gx-detail-body {
  display: block;
}
.gx-detail-content {
  display: block;
}
.gx-detail-notice {
  margin: 0 12px 14px;
}
.gx-detail-sibling {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.gx-detail-sibling:hover {
  border-color: color-mix(in srgb, var(--gx-accent, #0B1426) 35%, transparent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.gx-detail-disclaimer { margin-bottom: 0; }
.gx-detail-hero-v2 {
  position: relative; margin: 0 12px 14px; padding: 22px 18px 18px; border-radius: 22px;
  color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--gx-accent) 75%, #0B1426), var(--gx-accent));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--gx-accent) 35%, transparent);
}
.gx-detail-hero-v2__bg {
  position: absolute; inset: -20% auto auto -10%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%); pointer-events: none;
}
.gx-detail-back-v2 {
  position: absolute; top: 14px; inset-inline-start: 14px; width: 36px; height: 36px;
  border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
}
.gx-detail-hero-v2__icon {
  width: 54px; height: 54px; margin: 8px auto 10px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.gx-detail-vendor { display: block; opacity: .85; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gx-detail-hero-v2 h1 { margin: 6px 0 4px; font-size: 1.35rem; line-height: 1.3; }
.gx-detail-family { margin: 0 0 6px; font-size: .82rem; opacity: .88; }
.gx-detail-desc { margin: 0; font-size: .86rem; line-height: 1.55; opacity: .92; }
.gx-detail-ready-pill {
  display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800;
  background: rgba(16,185,129,.25); border: 1px solid rgba(255,255,255,.25);
}

.gx-detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 12px 14px;
}
.gx-detail-stat {
  text-align: center; padding: 12px 6px; border-radius: 14px;
  background: var(--edu-card-bg, #fff); border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.gx-detail-stat i { display: block; margin-bottom: 6px; opacity: .55; font-size: .9rem; color: var(--gx-accent, #0B1426); }
.gx-detail-stat strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.gx-detail-stat small { font-size: .65rem; opacity: .7; font-weight: 600; }

.gx-detail-readiness {
  margin: 0 12px 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #bbf7d0;
}
.gx-detail-readiness__head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.gx-detail-readiness__bar { height: 8px; background: rgba(0,0,0,.08); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.gx-detail-readiness__bar b { display: block; height: 100%; background: #059669; border-radius: 8px; }
.gx-detail-readiness small { font-size: .74rem; opacity: .75; }

.gx-detail-rules {
  margin: 0 12px 14px; padding: 12px 14px; border-radius: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--edu-card-bg, #fff); border: 1px solid rgba(0,0,0,.06);
}
.gx-detail-rules__icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: color-mix(in srgb, var(--gx-accent) 12%, #fff);
  color: var(--gx-accent, #0B1426);
}
.gx-detail-rules strong { display: block; font-size: .88rem; margin-bottom: 4px; }
.gx-detail-rules p { margin: 0; font-size: .82rem; line-height: 1.5; opacity: .82; }
.gx-detail-secure {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .72rem; font-weight: 700;
  color: #b45309; background: #fffbeb; padding: 4px 8px; border-radius: 999px;
}

.gx-detail-blueprint {
  margin: 0 12px 14px; padding: 14px; border-radius: 16px;
  background: var(--edu-card-bg, #fff); border: 1px solid rgba(0,0,0,.06);
}
.gx-detail-blueprint header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gx-detail-blueprint h2 { margin: 0; font-size: .95rem; }
.gx-detail-blueprint header span { font-size: .72rem; opacity: .65; font-weight: 700; }
.gx-detail-domain { margin-bottom: 10px; }
.gx-detail-domain__head { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 4px; }
.gx-detail-domain__head em { font-style: normal; font-weight: 800; color: var(--gx-accent, #0B1426); }
.gx-detail-domain__bar { height: 6px; background: rgba(0,0,0,.07); border-radius: 6px; overflow: hidden; }
.gx-detail-domain__bar b { display: block; height: 100%; background: var(--gx-accent, #0B1426); border-radius: 6px; }

.gx-detail-siblings { margin: 0 12px 14px; }
.gx-detail-siblings h2 { margin: 0 0 8px; font-size: .92rem; }
.gx-detail-siblings__list { display: grid; gap: 8px; }
.gx-detail-sibling {
  display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: rgba(0,0,0,.025); border: 1px solid rgba(0,0,0,.06);
}
.gx-detail-sibling strong { font-size: .88rem; }

.gx-detail-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(11, 20, 38, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(35, 12, 67, 0.14);
}
.gx-detail-dock__meta {
  margin: 0 0 8px;
  font-size: .78rem;
  opacity: .72;
  text-align: center;
  font-weight: 600;
}
.gx-detail-dock__btn { width: 100%; }
.gx-detail-start-form { margin: 0; }
.gx-detail-app-v2 .gx-program-cta { margin-bottom: 14px; }

@media (max-width: 380px) {
  .gx-detail-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Detail legacy */
.gx-detail-hero { position: relative; padding: 1.5rem 1rem 1rem; text-align: center; }
.gx-detail-back { position: absolute; top: 1rem; inset-inline-start: 1rem; color: inherit; opacity: .7; }
.gx-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0 1rem 1rem; text-align: center;
}
.gx-stats-row strong { display: block; font-size: 1.2rem; }
.gx-stats-row small { font-size: .72rem; opacity: .7; }
.gx-domains { margin: 0 1rem 1rem; }
.gx-domains h2 { font-size: 1rem; margin-bottom: .5rem; }
.gx-domains ul { list-style: none; padding: 0; margin: 0; }
.gx-domains li {
  display: flex; justify-content: space-between; padding: .5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06); font-size: .88rem;
}
.gx-domains em { font-style: normal; font-weight: 600; color: var(--edu-primary, #0B1426); }
.gx-best { text-align: center; font-weight: 600; color: #0a7; margin: 0 1rem 1rem; }
.gx-start-form { padding: 0 1rem 2rem; }
.gx-notice { margin: 0 1rem 1rem; padding: .65rem .85rem; border-radius: 10px; background: #f5f5f5; font-size: .88rem; }
.gx-notice--error { background: #fde8e8; color: #a00; }

/* Take exam */
.gx-take-head {
  padding: 12px 14px; position: sticky; top: 0; z-index: 10;
  background: rgba(248,247,252,.96); border-bottom: 1px solid rgba(0,0,0,.05);
  backdrop-filter: blur(8px);
}
.gx-take-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gx-take-head h1 { font-size: .92rem; margin: 0 0 2px; line-height: 1.35; }
.gx-take-timer {
  font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--edu-primary, #0B1426); flex-shrink: 0;
}
.gx-take-timer.is-warning { color: #dc2626; animation: gx-timer-pulse 1s ease infinite; }
@keyframes gx-timer-pulse { 50% { opacity: .65; } }
.gx-take-head__meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 6px;
}
.gx-take-palette-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 999px; border: 1px solid rgba(11,20,38,.15); background: #fff;
  font-size: .72rem; font-weight: 800; color: var(--edu-primary, #0B1426); cursor: pointer;
}
.gx-take-palette {
  margin-top: 10px; padding: 10px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.gx-take-palette__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px;
}
.gx-take-palette__cell {
  min-height: 36px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08);
  background: #f8f7fc; font-size: .78rem; font-weight: 800; cursor: pointer;
}
.gx-take-palette__cell.is-answered { background: #ecfdf5; border-color: #86efac; color: #166534; }
.gx-take-palette__cell.is-current { background: var(--edu-primary, #0B1426); border-color: var(--edu-primary, #0B1426); color: #fff; }
.gx-take-palette__cell.is-current.is-answered { background: #059669; border-color: #059669; }
.gx-take-palette__hint { margin: 8px 0 0; font-size: .7rem; opacity: .7; text-align: center; }
.gx-take-progress { height: 4px; background: rgba(0,0,0,.08); border-radius: 4px; margin: .5rem 0; overflow: hidden; }
.gx-take-progress b { display: block; height: 100%; background: var(--edu-primary, #0B1426); transition: width .2s; }
.gx-question { display: none; padding: 0 1rem 1rem; }
.gx-question.is-active { display: block; }
.gx-question__num { font-size: .78rem; opacity: .65; margin-bottom: .35rem; }
.gx-question h2 { font-size: 1.05rem; line-height: 1.5; margin: 0 0 1rem; }
.gx-options { display: grid; gap: .55rem; }
.gx-option {
  display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem;
  border-radius: 12px; border: 1px solid rgba(0,0,0,.08); cursor: pointer;
}
.gx-option:has(input:checked) { border-color: var(--edu-primary, #0B1426); background: rgba(11,20,38,.06); }
.gx-option input { margin-top: .2rem; }
.gx-question__type {
  display: inline-block; margin-bottom: .5rem; padding: .2rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; background: rgba(11,20,38,.1); color: #0B1426;
}
.gx-question__type--scenario { background: rgba(74,20,140,.12); color: #0B1426; }
.gx-question__type--order { background: rgba(2,132,199,.12); color: #0369a1; }
.gx-question__type--match { background: rgba(217,119,6,.12); color: #b45309; }
.gx-question__type--fill { background: rgba(5,150,105,.12); color: #047857; }
.gx-order-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem;
}
.gx-order-item {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  padding: .75rem .85rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.gx-order-item__text { flex: 1; font-size: .92rem; line-height: 1.45; }
.gx-order-item__actions { display: flex; flex-direction: column; gap: .2rem; }
.gx-order-btn {
  width: 2rem; height: 1.65rem; border: 1px solid rgba(0,0,0,.1); border-radius: 8px;
  background: #f8fafc; color: var(--edu-primary, #0B1426); cursor: pointer;
}
.gx-order-btn:disabled { opacity: .35; cursor: default; }
.gx-match-grid { display: grid; gap: .65rem; }
.gx-match-row {
  display: grid; grid-template-columns: 1fr minmax(9rem, 1.1fr); gap: .55rem; align-items: center;
  padding: .65rem .75rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); background: #fff;
}
.gx-match-row__left { font-size: .9rem; line-height: 1.4; }
.gx-match-select {
  width: 100%; padding: .55rem .65rem; border-radius: 10px; border: 1px solid rgba(0,0,0,.12);
  font-size: .85rem; background: #fff;
}
.gx-fill-field { display: grid; gap: .4rem; }
.gx-fill-field__label { font-size: .82rem; opacity: .75; }
.gx-fill-input {
  width: 100%; padding: .75rem .85rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.12);
  font-size: 1rem;
}
.gx-take-app--secure .gx-question,
.gx-take-app--secure .gx-question h2,
.gx-take-app--secure .gx-option span { user-select: none; }
.gx-take-integrity {
  margin: .5rem 1rem 0; padding: .6rem .8rem; border-radius: 10px; font-size: .78rem;
  background: #fff5f5; border: 1px solid #fecaca; color: #991b1b;
}
.gx-take-actions {
  display: flex; gap: .5rem; padding: 1rem; position: sticky; bottom: 4.5rem;
  background: linear-gradient(transparent, var(--edu-bg, #f8f7fc) 30%);
}

/* Result legacy */
.gx-result-hero { text-align: center; padding: 1.5rem 1rem; border-radius: 0 0 20px 20px; margin-bottom: 1rem; }
.gx-result-hero.is-pass { background: linear-gradient(180deg, #e8f8ef, transparent); }
.gx-result-hero.is-fail { background: linear-gradient(180deg, #fdeaea, transparent); }
.gx-result-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.gx-result-hero.is-pass .gx-result-icon { color: #0a7; }
.gx-result-hero.is-fail .gx-result-icon { color: #c33; }
.gx-result-score strong { font-size: 2.2rem; }
.gx-domain-scores, .gx-review { margin: 0 1rem 1.25rem; }
.gx-domain-scores h2, .gx-review h2 { font-size: 1rem; margin-bottom: .65rem; }
.gx-domain-bar { margin-bottom: .65rem; }
.gx-domain-bar__head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .25rem; }
.gx-domain-bar__track { height: 6px; background: rgba(0,0,0,.08); border-radius: 6px; overflow: hidden; }
.gx-domain-bar__track b { display: block; height: 100%; background: var(--edu-primary, #0B1426); }
.gx-review-item {
  padding: .75rem; border-radius: 12px; margin-bottom: .5rem; font-size: .88rem;
  border: 1px solid rgba(0,0,0,.06);
}
.gx-review-item.is-correct { border-color: #9dd; background: #f0faf5; }
.gx-review-item.is-wrong { border-color: #ecc; background: #fff5f5; }
.gx-review-item header { display: flex; justify-content: space-between; margin-bottom: .35rem; font-weight: 600; }
.gx-result-actions { display: flex; flex-direction: column; gap: .5rem; padding: 0 1rem 2rem; }

/* Result v2 */
.gx-result-app-v2 {
  padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
}
.gx-result-summary {
  text-align: center; padding: 18px 14px 16px; margin-bottom: 0;
  background: linear-gradient(180deg, #f3ecff 0%, var(--edu-bg, #f8f7fc) 100%);
  border-radius: 0 0 22px 22px;
  position: relative;
}
.gx-result-back {
  display: none;
}
.gx-result-summary.is-pass { background: linear-gradient(180deg, #e8f8ef 0%, var(--edu-bg, #f8f7fc) 100%); }
.gx-result-summary.is-fail { background: linear-gradient(180deg, #f3ecff 0%, var(--edu-bg, #f8f7fc) 100%); }
.gx-result-summary__icon { font-size: 2rem; margin-bottom: 6px; color: var(--gx-accent, #0B1426); }
.gx-result-summary.is-pass .gx-result-summary__icon { color: #059669; }
.gx-result-summary h1 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.35; }
.gx-result-summary__sub { margin: 0 0 2px; font-size: .82rem; opacity: .78; font-weight: 700; }
.gx-result-summary__sim { margin: 0 0 8px; font-size: .8rem; opacity: .68; }
.gx-result-summary__score strong { font-size: 2.4rem; line-height: 1; color: var(--gx-accent, #0B1426); }
.gx-result-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px;
}
.gx-result-meta__item {
  padding: 10px 6px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.gx-result-meta__item i { display: block; margin-bottom: 5px; opacity: .55; color: var(--gx-accent, #0B1426); }
.gx-result-meta__item strong { display: block; font-size: 1rem; line-height: 1.1; }
.gx-result-meta__item small { display: block; margin-top: 3px; font-size: .62rem; opacity: .7; font-weight: 700; }
.gx-result-breakdown {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(0,0,0,.06); margin-bottom: 10px;
}
.gx-result-breakdown__seg { display: block; height: 100%; min-width: 2px; }
.gx-result-breakdown__seg.is-correct { background: var(--gx-accent, #0B1426); }
.gx-result-breakdown__seg.is-wrong { background: #C7C7C7; }
.gx-result-breakdown__seg.is-skipped { background: #e8e4ef; }
.gx-result-legend {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: start;
}
.gx-result-legend li {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center;
  font-size: .78rem; font-weight: 700;
}
.gx-result-legend b {
  width: 12px; height: 12px; border-radius: 4px; display: block;
}
.gx-result-legend b.is-correct { background: var(--gx-accent, #0B1426); }
.gx-result-legend b.is-wrong { background: #C7C7C7; }
.gx-result-legend b.is-skipped { background: #e8e4ef; }
.gx-result-legend em { font-style: normal; font-weight: 800; color: var(--gx-accent, #0B1426); }

.gx-result-tabs {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  margin: 0; padding: 8px 10px;
  background: rgba(248,247,252,.96);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}
.gx-result-tabs__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border-radius: 12px; text-decoration: none; color: inherit;
  font-size: .62rem; font-weight: 800; opacity: .72;
}
.gx-result-tabs__item i { font-size: .95rem; color: var(--gx-accent, #0B1426); }
.gx-result-tabs__item.is-active {
  opacity: 1; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.06);
}

.gx-result-questions { margin: 10px 12px 14px; display: grid; gap: 8px; }
.gx-result-qcard {
  padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(0,0,0,.06);
  background: #fff; font-size: .86rem; line-height: 1.45;
}
.gx-result-qcard.is-correct { background: #e8f5e9; border-color: #c8e6c9; }
.gx-result-qcard.is-wrong { background: #ffebee; border-color: #ffcdd2; }
.gx-result-qcard.is-skipped { background: #f5f5f5; border-color: #e0e0e0; }
.gx-result-qcard header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px; font-size: .72rem; font-weight: 800;
}
.gx-result-qcard__num { opacity: .65; }
.gx-result-qcard__badge { color: inherit; }
.gx-result-qcard.is-correct .gx-result-qcard__badge { color: #2e7d32; }
.gx-result-qcard.is-wrong .gx-result-qcard__badge { color: #c62828; }
.gx-result-qcard p { margin: 0; }

.gx-result-panel { margin: 0 12px 14px; scroll-margin-top: 72px; }
.gx-result-panel h2 { font-size: .95rem; margin: 0 0 10px; }
.gx-result-domain-scores {
  padding: 14px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.gx-result-review-detail .gx-review-item.is-skipped { background: #f5f5f5; border-color: #e0e0e0; }
.gx-review-item__q { margin: 0 0 6px; font-weight: 600; }
.gx-review-item__a { margin: 0 0 6px; font-size: .82rem; opacity: .85; }
.gx-result-empty { font-size: .85rem; opacity: .7; text-align: center; padding: 1rem; }
.gx-result-more .gx-program-cta { margin: 0 0 12px; }
.gx-result-link-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px;
  border-radius: 14px; text-decoration: none; color: inherit; font-weight: 700; font-size: .88rem;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
}
.gx-result-link-card i { color: var(--gx-accent, #0B1426); }

.gx-result-dock {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 9000; padding: 12px 14px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(11,20,38,.12);
  box-shadow: 0 8px 32px rgba(11,20,38,.14);
}
.gx-result-dock__main { width: 100%; margin-bottom: 8px; }
.gx-result-dock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gx-result-dock__row .gx-btn { justify-content: center; font-size: .82rem; padding: .65rem .5rem; }

.gx-take-lock-note {
  margin: .5rem 1rem 0; padding: .65rem .85rem; border-radius: 10px;
  background: #eef3ff; border: 1px solid #c5d4ff; font-size: .82rem;
  display: flex; gap: .5rem; align-items: flex-start;
}
.gx-take-mode { display: block; opacity: .7; font-size: .78rem; margin-top: .15rem; }
.gx-take-app--locked .gx-take-actions { justify-content: flex-end; }

.gx-mode-rules {
  margin: 0 1rem 1rem; padding: .75rem .9rem; border-radius: 12px;
  background: rgba(11,20,38,.06); border: 1px solid rgba(11,20,38,.12);
}
.gx-mode-rules__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: .35rem; color: var(--edu-primary, #0B1426);
}
.gx-mode-rules p { margin: 0; font-size: .85rem; line-height: 1.5; }

.gx-program-cta {
  margin: 1rem; padding: 1rem; border-radius: 14px;
  border: 1px solid rgba(11,20,38,.15); background: #F3F2EF;
}
.gx-program-cta header { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.gx-program-cta h2 { margin: 0; font-size: .95rem; }
.gx-program-cta p { margin: 0 0 .75rem; font-size: .85rem; line-height: 1.5; opacity: .85; }
.gx-program-cta__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.gx-ready-banner {
  margin: 0 1rem 1rem; padding: .85rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, #e8f8ef, #f0faf5); border: 1px solid #9dd;
  display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem;
}
.gx-ready-banner i { color: #0a7; margin-top: .1rem; }
.gx-weak-tip { margin: 0 1rem 1rem; }

/* Detail access */
.gx-detail-access {
  margin: 0 12px 14px; padding: 10px 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
}
.gx-detail-start-form--inline { margin-top: 8px; }

/* History */
.gx-history-app { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
.gx-history-hero {
  margin: 0 12px 14px; padding: 18px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(145deg, #0B1426, #152238); color: #fff;
}
.gx-history-hero__badge { display: inline-flex; gap: 6px; font-size: .72rem; font-weight: 800; opacity: .9; }
.gx-history-hero h1 { margin: 8px 0 4px; font-size: 1.2rem; }
.gx-history-hero p { margin: 0; font-size: .84rem; opacity: .9; }
.gx-history-trends, .gx-history-list { margin: 0 12px 16px; }
.gx-history-trends h2, .gx-history-list h2 { font-size: .95rem; margin: 0 0 10px; }
.gx-history-trend {
  padding: 12px; border-radius: 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
}
.gx-history-trend header { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 8px; }
.gx-history-trend header em { font-style: normal; font-weight: 800; color: var(--gx-accent, #0B1426); }
.gx-history-trend__bars {
  display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-bottom: 6px;
}
.gx-history-trend__bars span {
  flex: 1; min-width: 4px; border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--gx-accent) 70%, #D8DEE8);
}
.gx-history-card {
  display: block; padding: 12px; border-radius: 14px; margin-bottom: 8px;
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid rgba(0,0,0,.06); border-inline-start: 4px solid var(--gx-accent, #0B1426);
}
.gx-history-card.is-pass { background: #f0fdf4; }
.gx-history-card.is-fail { background: #F3F2EF; }
.gx-history-card strong { display: block; font-size: .9rem; }
.gx-history-card small { display: block; opacity: .7; font-size: .74rem; }
.gx-history-card__foot { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: .82rem; }
.gx-history-card__ready { color: #059669; }

/* Readiness v2 */
.gx-readiness-app-v2 { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
.gx-readiness-hero {
  margin: 0 12px 14px; padding: 18px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(145deg, #070D18, #0B1426); color: #fff;
}
.gx-readiness-hero__badge { display: inline-flex; gap: 6px; font-size: .72rem; font-weight: 800; }
.gx-readiness-hero h1 { margin: 8px 0 4px; font-size: 1.2rem; }
.gx-readiness-hero p { margin: 0 0 12px; font-size: .84rem; opacity: .9; }
.gx-readiness-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.gx-readiness-hero__stats div {
  padding: 8px; border-radius: 12px; background: rgba(255,255,255,.12);
}
.gx-readiness-hero__stats strong { display: block; font-size: 1.1rem; }
.gx-readiness-hero__stats small { font-size: .65rem; opacity: .85; }
.gx-readiness-grid { margin: 0 12px 16px; display: grid; gap: 10px; }
.gx-readiness-card-v2 {
  padding: 14px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.gx-readiness-card-v2.is-ready { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff); }
.gx-readiness-card-v2 header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gx-readiness-card-v2 h3 { margin: 0; font-size: .92rem; line-height: 1.35; }
.gx-readiness-card-v2__badge {
  font-size: .65rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #dcfce7; color: #166534; white-space: nowrap;
}
.gx-readiness-card-v2__score { margin: 10px 0 6px; }
.gx-readiness-card-v2__score strong { font-size: 1.5rem; color: var(--gx-accent, #0B1426); }
.gx-readiness-card-v2__score small { display: block; font-size: .72rem; opacity: .7; }
.gx-readiness-card-v2__bar { height: 8px; background: rgba(0,0,0,.08); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.gx-readiness-card-v2__bar b { display: block; height: 100%; background: var(--gx-accent, #0B1426); border-radius: 8px; }
.gx-readiness-card-v2__hint { margin: 0 0 8px; font-size: .78rem; opacity: .8; }
.gx-readiness-card-v2__access { margin: 0 0 8px; font-size: .72rem; font-weight: 700; color: #166534; }
.gx-readiness-card-v2__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-readiness-footer { margin: 0 12px 20px; display: grid; gap: 10px; }
.gx-weak-tip h2 { font-size: .95rem; margin-bottom: .4rem; }
.gx-weak-tip ul { margin: 0; padding-inline-start: 1.1rem; font-size: .85rem; line-height: 1.6; }

.gx-readiness-list { margin: 0 1rem 1rem; display: grid; gap: .75rem; }
.gx-readiness-card {
  padding: 1rem; border-radius: 14px; border: 1px solid rgba(0,0,0,.08);
  background: var(--edu-card-bg, #fff);
}
.gx-readiness-card.is-ready { border-color: #9dd; background: #f8fffb; }
.gx-readiness-card header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.gx-readiness-card h3 { margin: 0; font-size: 1rem; }
.gx-readiness-card__badge {
  font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px;
  background: #0a7; color: #fff;
}
.gx-readiness-card__score { margin: .6rem 0 .35rem; }
.gx-readiness-card__score strong { font-size: 1.5rem; display: block; }
.gx-readiness-card__score small { font-size: .78rem; opacity: .7; }
.gx-readiness-card__bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 6px; overflow: hidden; margin-bottom: .5rem; }
.gx-readiness-card__bar b { display: block; height: 100%; background: var(--edu-primary, #0B1426); }
.gx-readiness-card__hint { margin: 0 0 .75rem; font-size: .82rem; opacity: .8; line-height: 1.45; }
.gx-readiness-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.gx-hub-links { margin: 1rem; text-align: center; display: grid; gap: .5rem; }

@media (min-width: 640px) {
  .gx-sim-grid { grid-template-columns: repeat(2, 1fr); }
}

/* GX home promo — layout shell in edu_overlay_banner.css */
.gx-home-promo {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.gx-home-promo__accent {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
  z-index: 2;
}

.gx-home-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  position: relative;
  z-index: 1;
}

.gx-home-promo__main {
  min-width: 0;
  flex: 1;
}

.gx-home-promo__eyebrow {
  margin-bottom: 0.35rem;
}

.gx-home-promo__badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.gx-home-promo__title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
}

.gx-home-promo__sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.gx-home-promo__brands {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.gx-home-promo__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gx-home-promo__stats {
  display: flex;
  gap: 1.1rem;
}

.gx-home-promo__stat {
  display: grid;
  gap: 0.1rem;
  text-align: center;
}

.gx-home-promo__stat strong {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.gx-home-promo__stat span {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gx-home-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.gx-home-promo__cta .edu-inline-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

html[dir="rtl"] .gx-home-promo__cta .edu-inline-icon-svg {
  transform: scaleX(-1);
}

.gx-home-promo:hover .gx-home-promo__cta {
  background: #fb923c;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.gx-home-promo:hover {
  border-color: rgba(249, 115, 22, 0.3) !important;
  box-shadow: 0 16px 40px rgba(7, 13, 24, 0.45) !important;
}

.student-home-app .gx-home-promo {
  grid-column: 1 / -1;
  margin: 0 0 12px;
}

@media (max-width: 720px) {
  .gx-home-promo__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem 1rem 1rem 1.15rem;
  }

  .gx-home-promo__aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .gx-home-promo__stats {
    gap: 1.25rem;
  }

  .gx-home-promo__stat {
    text-align: start;
  }
}

@media (max-width: 480px) {
  .gx-home-promo__brands {
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .gx-home-promo__aside {
    flex-direction: column;
    align-items: stretch;
  }

  .gx-home-promo__cta {
    justify-content: center;
    width: 100%;
  }
}

/* History v2 */
.gx-history-app--v2 { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
.gx-history-hero--v2 {
  position: relative; text-align: center; margin: 0 12px 12px; padding: 20px 16px 16px;
  border-radius: 22px; color: #fff;
  background: linear-gradient(145deg, #070D18 0%, #070D18 55%, #152238 100%);
  box-shadow: 0 12px 30px rgba(11,20,38,.22);
}
.gx-history-back {
  position: absolute; top: 12px; inset-inline-start: 12px; width: 34px; height: 34px;
  border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.12);
}
.gx-history-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px;
}
.gx-history-stats__item {
  padding: 8px 6px; border-radius: 14px; background: rgba(255,255,255,.1);
}
.gx-history-stats__item strong { display: block; font-size: 1rem; }
.gx-history-stats__item small { display: block; font-size: .62rem; opacity: .88; margin-top: 2px; }
.gx-history-stats__item--accent { background: rgba(255,255,255,.18); }
.gx-hub-chips--scroll { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.gx-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gx-section-head h2 { margin: 0; font-size: .95rem; }
.gx-section-head small { font-size: .72rem; opacity: .65; }
.gx-history-trends--v2, .gx-history-list--v2 { margin: 0 12px 16px; }
.gx-history-trends__grid { display: grid; gap: 10px; }
.gx-history-trend--v2 {
  padding: 14px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.gx-history-trend--v2 header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gx-history-trend--v2 header strong { display: block; font-size: .86rem; }
.gx-history-trend--v2 header small { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; }
.gx-history-trend__score { text-align: end; }
.gx-history-trend__score em { display: block; font-style: normal; font-weight: 800; font-size: 1.05rem; color: var(--gx-accent, #0B1426); }
.gx-history-trend__delta { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; margin-top: 2px; }
.gx-history-trend__delta.is-up { color: #059669; }
.gx-history-trend__delta.is-down { color: #dc2626; }
.gx-history-trend__bars span.is-latest { background: var(--gx-accent, #0B1426); }
.gx-history-trend__track {
  height: 4px; border-radius: 4px; background: rgba(0,0,0,.06); margin-top: 8px; overflow: hidden;
}
.gx-history-trend__track i { display: block; height: 100%; background: var(--gx-accent, #0B1426); border-radius: 4px; }
.gx-history-cards { display: grid; gap: 10px; }
.gx-history-card--v2 {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.gx-history-card__ring { position: relative; width: 64px; height: 64px; }
.gx-history-card__ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.gx-ring-bg { fill: none; stroke: rgba(0,0,0,.08); stroke-width: 3; }
.gx-ring-fill { fill: none; stroke: var(--gx-accent, #0B1426); stroke-width: 3; stroke-linecap: round; }
.gx-history-card__ring em {
  position: absolute; inset: 0; display: grid; place-items: center; font-style: normal;
  font-weight: 800; font-size: .82rem;
}
.gx-history-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.gx-history-card__status.is-pass { color: #059669; }
.gx-history-card__status.is-fail { color: #dc2626; }
.gx-history-card--v2 strong { font-size: .88rem; line-height: 1.35; }
.gx-history-card--v2 small { font-size: .72rem; opacity: .7; }
.gx-history-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .72rem; }
.gx-history-card__ready { color: #059669; font-weight: 700; }
.gx-history-card__date { opacity: .7; }
.gx-history-footer { display: grid; gap: 8px; }
.gx-empty--history { text-align: center; padding: 24px 16px; }
.gx-empty__icon { font-size: 2rem; opacity: .35; margin-bottom: 8px; }

/* Upload question */
.gx-question__type--upload { background: rgba(8,145,178,.12); color: #0e7490; }
.gx-upload-field { display: grid; gap: .45rem; }
.gx-upload-field__label { font-size: .82rem; opacity: .75; }
.gx-upload-input {
  width: 100%; padding: .7rem .8rem; border-radius: 12px; border: 1px dashed rgba(11,20,38,.35);
  background: #F3F2EF; font-size: .85rem;
}
.gx-upload-field__hint { font-size: .72rem; opacity: .7; }

/* Company analytics */
.gx-company-analytics-app { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
.gx-company-analytics-hero { margin-bottom: 10px; }
.gx-company-trend, .gx-company-families, .gx-company-weak { margin: 0 12px 16px; }
.gx-company-trend h2, .gx-company-families h2, .gx-company-weak h2 { font-size: .95rem; margin: 0 0 10px; }
.gx-company-trend__bars { display: flex; align-items: flex-end; gap: 8px; min-height: 120px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.gx-company-trend__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.gx-company-trend__col span { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #152238, #0B1426); min-height: 8px; }
.gx-company-trend__col small { font-size: .62rem; opacity: .65; }
.gx-company-trend__col em { font-size: .72rem; font-weight: 800; color: #0B1426; }
.gx-company-family-row {
  padding: 12px; border-radius: 14px; margin-bottom: 8px; background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.gx-company-family-row__head { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 6px; }
.gx-company-family-row__head em { font-style: normal; font-weight: 800; color: var(--gx-accent, #0B1426); }
.gx-company-family-row__meta { display: flex; gap: 10px; font-size: .72rem; opacity: .75; margin-bottom: 8px; }
.gx-company-family-row__bar { height: 6px; border-radius: 6px; background: rgba(0,0,0,.06); overflow: hidden; }
.gx-company-family-row__bar i { display: block; height: 100%; background: var(--gx-accent, #0B1426); border-radius: 6px; }
.gx-company-weak__item {
  display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px;
  margin-bottom: 6px; background: #fff5f5; border: 1px solid #fecaca; font-size: .84rem;
}

/* ── Web shell (desktop) — global exam hub ── */
html.edu-view-web .edu-web-content .gx-hub-app {
  --gx-web-navy: #000000;
  --gx-hub-pad: 0;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 0 2.5rem;
}

html.edu-view-web .edu-web-content .gx-hub-hero {
  margin: 0 0 20px;
  width: 100%;
  padding: 36px 40px 30px;
  border-radius: 24px;
  text-align: start;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 48%, #1a1a1a 100%);
  box-shadow: 0 20px 48px rgba(13, 27, 62, 0.22);
}

html.edu-view-web .edu-web-content .gx-hub-hero__glow {
  inset: -30% -10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 68%);
}

html.edu-view-web .edu-web-content .gx-hub-hero__badge {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

html.edu-view-web .edu-web-content .gx-hub-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.25;
}

html.edu-view-web .edu-web-content .gx-hub-hero p {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: 0.95rem;
  opacity: 0.9;
}

html.edu-view-web .edu-web-content .gx-hub-hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

html.edu-view-web .edu-web-content .gx-hub-hero__stat {
  min-height: 76px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

html.edu-view-web .edu-web-content .gx-hub-hero__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

html.edu-view-web .edu-web-content .gx-hub-hero__stat-body strong {
  font-size: 1.45rem;
}

html.edu-view-web .edu-web-content .gx-hub-hero__stat-body small {
  color: rgba(255, 255, 255, 0.78);
}

html.edu-view-web .edu-web-content .gx-disclaimer--compact {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.84rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

html.edu-view-web .edu-web-content .gx-hub-toolbar {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  gap: 12px;
}

html.edu-view-web .edu-web-content .gx-hub-chips {
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
}

html.edu-view-web .edu-web-content .gx-hub-chip {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-color: #e2e8f0;
  background: #f8fafc;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

html.edu-view-web .edu-web-content .gx-hub-chip:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

html.edu-view-web .edu-web-content .gx-hub-chip.is-active {
  background: var(--gx-web-navy, #000000);
  border-color: var(--gx-web-navy, #000000);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.18);
}

html.edu-view-web .edu-web-content .gx-hub-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}

html.edu-view-web .edu-web-content .gx-hub-family {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border-color: #e8ecf1;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

html.edu-view-web .edu-web-content .gx-hub-family__head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

html.edu-view-web .edu-web-content .gx-hub-family__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

html.edu-view-web .edu-web-content .gx-hub-family__head h2 {
  font-size: 1.08rem;
}

html.edu-view-web .edu-web-content .gx-hub-family__count {
  background: #f1f5f9;
  color: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-hub-featured {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 16px;
}

html.edu-view-web .edu-web-content .gx-hub-featured p {
  flex: 1;
  font-size: 0.86rem;
}

html.edu-view-web .edu-web-content .gx-hub-featured__meta {
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

html.edu-view-web .edu-web-content .gx-hub-featured .gx-btn--lg {
  width: auto;
  align-self: flex-start;
  min-width: 200px;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
}

html.edu-view-web .edu-web-content .gx-hub-mini-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

html.edu-view-web .edu-web-content .gx-hub-mini-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border-color: #e8ecf1;
}

html.edu-view-web .edu-web-content .gx-hub-footer {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e8ecf1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: start;
}

html.edu-view-web .edu-web-content .gx-hub-footer__btn {
  width: auto;
  min-width: 200px;
}

html.edu-view-web .edu-web-content .gx-hub-back {
  opacity: 0.85;
  color: var(--gx-web-navy, #000000);
  font-weight: 700;
}

html.edu-view-web .edu-web-content .gx-hub-back:hover {
  opacity: 1;
  text-decoration: underline;
}

html.edu-view-web .edu-web-content .gx-btn--primary {
  background: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-btn--primary:hover {
  background: #1a1a1a;
}

html.edu-view-web .edu-web-content .gx-btn--soft {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-empty {
  margin: 0 0 24px;
  padding: 32px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e8ecf1;
}

@media (min-width: 1100px) {
  html.edu-view-web .edu-web-content .gx-hub-hero__stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html.edu-view-web .edu-web-content .gx-hub-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  html.edu-view-web .edu-web-content .gx-hub-catalog {
    grid-template-columns: 1fr;
  }

  html.edu-view-web .edu-web-content .gx-hub-hero {
    padding: 28px 24px 24px;
  }

  html.edu-view-web .edu-web-content .gx-hub-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html.edu-view-web .edu-web-content .gx-hub-hero {
    text-align: center;
    border-radius: 20px;
    padding: 24px 18px 20px;
  }

  html.edu-view-web .edu-web-content .gx-hub-hero p {
    margin-inline: auto;
  }

  html.edu-view-web .edu-web-content .gx-hub-featured .gx-btn--lg {
    width: 100%;
    align-self: stretch;
  }

  html.edu-view-web .edu-web-content .gx-hub-footer {
    flex-direction: column;
    align-items: stretch;
  }

  html.edu-view-web .edu-web-content .gx-hub-footer__btn {
    width: 100%;
  }
}

/* ── Web shell — exam detail page ── */
html.edu-view-web .edu-web-content .gx-detail-app-v2 {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 0 2.5rem;
}

html.edu-view-web .edu-web-content .gx-detail-hero-v2 {
  margin: 0 0 20px;
  padding: 28px 32px 26px 72px;
  border-radius: 24px;
  text-align: start;
  background: linear-gradient(135deg, #000000 0%, color-mix(in srgb, var(--gx-accent, #0B1426) 42%, #1a1a1a) 100%);
  box-shadow: 0 20px 48px rgba(13, 27, 62, 0.2);
}

html.edu-view-web .edu-web-content .gx-detail-hero-v2__bg {
  inset: -25% -8% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

html.edu-view-web .edu-web-content .gx-detail-back-v2 {
  top: 22px;
  inset-inline-start: 22px;
  width: 40px;
  height: 40px;
  transition: background 0.15s ease;
}

html.edu-view-web .edu-web-content .gx-detail-back-v2:hover {
  background: rgba(255, 255, 255, 0.22);
}

html.edu-view-web .edu-web-content .gx-detail-hero-v2__icon {
  margin: 0 0 12px;
  width: 56px;
  height: 56px;
}

html.edu-view-web .edu-web-content .gx-detail-hero-v2 h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

html.edu-view-web .edu-web-content .gx-detail-desc {
  max-width: 62ch;
  font-size: 0.92rem;
}

html.edu-view-web .edu-web-content .gx-detail-ready-pill {
  margin: 8px 8px 0 0;
}

html.edu-view-web .edu-web-content .gx-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

html.edu-view-web .edu-web-content .gx-detail-stats {
  margin: 0 0 16px;
  gap: 12px;
}

html.edu-view-web .edu-web-content .gx-detail-stat {
  padding: 16px 10px;
  border-color: #e8ecf1;
  box-shadow: none;
}

html.edu-view-web .edu-web-content .gx-detail-stat strong {
  font-size: 1.25rem;
}

html.edu-view-web .edu-web-content .gx-detail-readiness,
html.edu-view-web .edu-web-content .gx-detail-access,
html.edu-view-web .edu-web-content .gx-detail-rules,
html.edu-view-web .edu-web-content .gx-detail-blueprint,
html.edu-view-web .edu-web-content .gx-detail-siblings,
html.edu-view-web .edu-web-content .gx-detail-app-v2 .gx-program-cta,
html.edu-view-web .edu-web-content .gx-detail-disclaimer,
html.edu-view-web .edu-web-content .gx-detail-notice {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}

html.edu-view-web .edu-web-content .gx-detail-rules,
html.edu-view-web .edu-web-content .gx-detail-blueprint,
html.edu-view-web .edu-web-content .gx-detail-app-v2 .gx-program-cta {
  border-color: #e8ecf1;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

html.edu-view-web .edu-web-content .gx-detail-app-v2 .gx-program-cta {
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
}

html.edu-view-web .edu-web-content .gx-detail-siblings__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html.edu-view-web .edu-web-content .gx-detail-sibling {
  padding: 12px 14px;
  background: #f8fafc;
  border-color: #e8ecf1;
}

html.edu-view-web .edu-web-content .gx-detail-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 14px;
}

html.edu-view-web .edu-web-content .gx-detail-dock {
  position: sticky;
  top: 88px;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 12px 36px rgba(13, 27, 62, 0.1);
}

html.edu-view-web .edu-web-content .gx-detail-dock__meta {
  text-align: start;
}

html.edu-view-web .edu-web-content .gx-detail-dock__btn {
  width: 100%;
}

html.edu-view-web .edu-web-content .gx-detail-dock .gx-btn--lg {
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
}

html.edu-view-web .edu-web-content .gx-detail-start-form--inline {
  margin-top: 10px;
}

@media (max-width: 960px) {
  html.edu-view-web .edu-web-content .gx-detail-body {
    grid-template-columns: 1fr;
  }

  html.edu-view-web .edu-web-content .gx-detail-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 24px;
    top: auto;
    z-index: 9000;
  }

  html.edu-view-web .edu-web-content .gx-detail-app-v2 {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }

  html.edu-view-web .edu-web-content .gx-detail-siblings__list {
    grid-template-columns: 1fr;
  }

  html.edu-view-web .edu-web-content .gx-detail-hero-v2 {
    padding: 24px 20px 22px 64px;
  }
}

@media (max-width: 560px) {
  html.edu-view-web .edu-web-content .gx-detail-hero-v2 {
    text-align: center;
    padding: 52px 18px 20px;
  }

  html.edu-view-web .edu-web-content .gx-detail-hero-v2__icon {
    margin-inline: auto;
  }

  html.edu-view-web .edu-web-content .gx-detail-desc {
    margin-inline: auto;
  }

  html.edu-view-web .edu-web-content .gx-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Web shell — exam result page (aligned with gx-hub) ── */
html.edu-view-web .edu-web-content .gx-result-app-v2 {
  --gx-web-navy: #000000;
  --gx-hub-pad: 0;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 0 3rem;
}

html.edu-view-web .edu-web-content .gx-result-summary {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  padding: 36px 40px 30px 72px;
  border-radius: 24px;
  text-align: start;
  color: #fff;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 48%, #1a1a1a 100%);
  box-shadow: 0 20px 48px rgba(13, 27, 62, 0.22);
}

html.edu-view-web .edu-web-content .gx-result-summary::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 68%);
  pointer-events: none;
}

html.edu-view-web .edu-web-content .gx-result-summary.is-pass {
  background: linear-gradient(135deg, #052e1a 0%, #0f3d24 52%, #134e31 100%);
}

html.edu-view-web .edu-web-content .gx-result-summary.is-pass::before {
  background: radial-gradient(circle, rgba(110, 231, 183, 0.18), transparent 68%);
}

html.edu-view-web .edu-web-content .gx-result-summary.is-fail {
  background: linear-gradient(
    135deg,
    #1a0a2e 0%,
    color-mix(in srgb, var(--gx-accent, #0B1426) 42%, #0f172a) 100%
  );
}

html.edu-view-web .edu-web-content .gx-result-summary > * {
  position: relative;
  z-index: 1;
}

html.edu-view-web .edu-web-content .gx-result-back {
  display: grid;
  place-items: center;
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

html.edu-view-web .edu-web-content .gx-result-back:hover {
  background: rgba(255, 255, 255, 0.22);
}

html.edu-view-web .edu-web-content .gx-result-summary__icon {
  width: 56px;
  height: 56px;
  margin: 0 0 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

html.edu-view-web .edu-web-content .gx-result-summary.is-pass .gx-result-summary__icon {
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.14);
  border-color: rgba(110, 231, 183, 0.24);
}

html.edu-view-web .edu-web-content .gx-result-summary h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-result-summary__sub {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.92);
}

html.edu-view-web .edu-web-content .gx-result-summary__sim {
  margin: 0 0 16px;
  font-size: 0.88rem;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.85);
}

html.edu-view-web .edu-web-content .gx-result-summary__score {
  margin: 0 0 4px;
}

html.edu-view-web .edu-web-content .gx-result-summary__score strong {
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-result-meta {
  margin: 18px 0 20px;
  gap: 14px;
}

html.edu-view-web .edu-web-content .gx-result-meta__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  text-align: start;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

html.edu-view-web .edu-web-content .gx-result-meta__item i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

html.edu-view-web .edu-web-content .gx-result-meta__item strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

html.edu-view-web .edu-web-content .gx-result-meta__item small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

html.edu-view-web .edu-web-content .gx-result-breakdown {
  height: 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.18);
}

html.edu-view-web .edu-web-content .gx-result-breakdown__seg.is-correct {
  background: #fff;
}

html.edu-view-web .edu-web-content .gx-result-breakdown__seg.is-wrong {
  background: rgba(255, 255, 255, 0.55);
}

html.edu-view-web .edu-web-content .gx-result-breakdown__seg.is-skipped {
  background: rgba(255, 255, 255, 0.28);
}

html.edu-view-web .edu-web-content .gx-result-legend {
  max-width: 480px;
  gap: 8px;
}

html.edu-view-web .edu-web-content .gx-result-legend li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

html.edu-view-web .edu-web-content .gx-result-legend b.is-correct {
  background: #fff;
}

html.edu-view-web .edu-web-content .gx-result-legend b.is-wrong {
  background: rgba(255, 255, 255, 0.55);
}

html.edu-view-web .edu-web-content .gx-result-legend b.is-skipped {
  background: rgba(255, 255, 255, 0.28);
}

html.edu-view-web .edu-web-content .gx-result-legend em {
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-result-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

html.edu-view-web .edu-web-content .gx-result-content {
  min-width: 0;
}

html.edu-view-web .edu-web-content .gx-result-tabs {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

html.edu-view-web .edu-web-content .gx-result-tabs__item {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.78;
  border: 1px solid #e8ecf1;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

html.edu-view-web .edu-web-content .gx-result-tabs__item:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--gx-accent, #0B1426) 35%, #e8ecf1);
}

html.edu-view-web .edu-web-content .gx-result-tabs__item.is-active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--gx-accent, #0B1426) 45%, #e8ecf1);
  box-shadow: 0 8px 24px rgba(13, 27, 62, 0.08);
}

html.edu-view-web .edu-web-content .gx-result-questions {
  margin: 0 0 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html.edu-view-web .edu-web-content .gx-result-qcard {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-color: #e8ecf1;
  box-shadow: 0 4px 16px rgba(13, 27, 62, 0.04);
}

html.edu-view-web .edu-web-content .gx-result-qcard header {
  font-size: 0.78rem;
}

html.edu-view-web .edu-web-content .gx-result-panel {
  margin: 0 0 20px;
  scroll-margin-top: 96px;
}

html.edu-view-web .edu-web-content .gx-result-panel h2 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

html.edu-view-web .edu-web-content .gx-result-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html.edu-view-web .edu-web-content .gx-result-more .gx-result-link-card {
  margin-bottom: 0;
}

html.edu-view-web .edu-web-content .gx-result-more .gx-program-cta,
html.edu-view-web .edu-web-content .gx-result-more .gx-disclaimer {
  grid-column: 1 / -1;
}

html.edu-view-web .edu-web-content .gx-result-domain-scores,
html.edu-view-web .edu-web-content .gx-result-review-detail .gx-review-item,
html.edu-view-web .edu-web-content .gx-result-link-card,
html.edu-view-web .edu-web-content .gx-ready-banner,
html.edu-view-web .edu-web-content .gx-weak-tip {
  border-color: #e8ecf1;
  box-shadow: 0 4px 16px rgba(13, 27, 62, 0.04);
}

html.edu-view-web .edu-web-content .gx-result-more .gx-program-cta {
  border-color: #e8ecf1;
  background: #f8fafc;
}

html.edu-view-web .edu-web-content .gx-result-dock {
  position: sticky;
  top: 88px;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e8ecf1;
  background: #fff;
  box-shadow: 0 12px 36px rgba(13, 27, 62, 0.1);
}

html.edu-view-web .edu-web-content .gx-result-dock .gx-btn--primary {
  background: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-result-dock .gx-btn--primary:hover {
  background: #1a1a1a;
}

html.edu-view-web .edu-web-content .gx-result-dock .gx-btn--soft {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-result-dock__main {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
}

html.edu-view-web .edu-web-content .gx-result-dock__row .gx-btn {
  font-size: 0.86rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
}

@media (min-width: 961px) {
  html.edu-view-web .edu-web-content .gx-result-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    align-items: start;
  }

  html.edu-view-web .edu-web-content .gx-result-back {
    grid-column: 1 / -1;
  }

  html.edu-view-web .edu-web-content .gx-result-summary__score {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    justify-self: end;
    margin: 0;
    padding-inline-start: 12px;
  }

  html.edu-view-web .edu-web-content .gx-result-meta,
  html.edu-view-web .edu-web-content .gx-result-breakdown,
  html.edu-view-web .edu-web-content .gx-result-legend {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  html.edu-view-web .edu-web-content .gx-result-questions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 960px) {
  html.edu-view-web .edu-web-content .gx-result-body {
    grid-template-columns: 1fr;
  }

  html.edu-view-web .edu-web-content .gx-result-dock {
    position: static;
    top: auto;
    margin-top: 8px;
    z-index: 1;
  }

  html.edu-view-web .edu-web-content .gx-result-questions {
    grid-template-columns: 1fr;
  }

  html.edu-view-web .edu-web-content .gx-result-summary {
    padding: 28px 24px 24px 64px;
  }

  html.edu-view-web .edu-web-content .gx-result-more {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html.edu-view-web .edu-web-content .gx-result-summary {
    display: block;
    text-align: center;
    padding: 52px 18px 22px;
  }

  html.edu-view-web .edu-web-content .gx-result-summary__icon {
    margin-inline: auto;
  }

  html.edu-view-web .edu-web-content .gx-result-summary__score {
    margin-bottom: 12px;
  }

  html.edu-view-web .edu-web-content .gx-result-legend {
    margin-inline: auto;
  }

  html.edu-view-web .edu-web-content .gx-result-tabs__item span {
    display: none;
  }

  html.edu-view-web .edu-web-content .gx-result-tabs__item {
    padding: 10px 12px;
  }
}

/* ── Web shell — exam take page (aligned with gx-hub) ── */
html.edu-view-web .edu-web-content .gx-take-app {
  --gx-web-navy: #000000;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 0 3rem;
}

html.edu-view-web .edu-web-content .gx-take-lock-note,
html.edu-view-web .edu-web-content .gx-take-integrity {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
}

html.edu-view-web .edu-web-content .gx-take-head {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin: 0 0 20px;
  padding: 24px 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 48%, #1a1a1a 100%);
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.18);
  border-bottom: 0;
  backdrop-filter: none;
}

html.edu-view-web .edu-web-content .gx-take-head h1 {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-take-mode {
  font-size: 0.82rem;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.82);
}

html.edu-view-web .edu-web-content .gx-take-timer {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-take-timer.is-warning {
  color: #fca5a5;
}

html.edu-view-web .edu-web-content .gx-take-head__meta {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
}

html.edu-view-web .edu-web-content .gx-take-head__meta small {
  font-size: 0.84rem;
  font-weight: 700;
}

html.edu-view-web .edu-web-content .gx-take-palette-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--gx-web-navy, #000000);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

html.edu-view-web .edu-web-content .gx-take-progress {
  height: 8px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

html.edu-view-web .edu-web-content .gx-take-progress b {
  background: #fff;
  border-radius: 999px;
}

html.edu-view-web .edu-web-content .gx-take-palette {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

html.edu-view-web .edu-web-content .gx-take-palette__grid {
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
}

html.edu-view-web .edu-web-content .gx-take-palette__cell {
  min-height: 42px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

html.edu-view-web .edu-web-content .gx-take-palette__cell.is-answered {
  background: rgba(110, 231, 183, 0.22);
  border-color: rgba(110, 231, 183, 0.45);
  color: #ecfdf5;
}

html.edu-view-web .edu-web-content .gx-take-palette__cell.is-current {
  background: #fff;
  border-color: #fff;
  color: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-take-palette__cell.is-current.is-answered {
  background: #6ee7b7;
  border-color: #6ee7b7;
  color: #052e1a;
}

html.edu-view-web .edu-web-content .gx-take-palette__hint {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

html.edu-view-web .edu-web-content .gx-exam-form {
  max-width: 820px;
  margin-inline: auto;
}

html.edu-view-web .edu-web-content .gx-question {
  padding: 0 0 1.25rem;
}

html.edu-view-web .edu-web-content .gx-question__num {
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0.72;
}

html.edu-view-web .edu-web-content .gx-question h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

html.edu-view-web .edu-web-content .gx-question__type {
  font-size: 0.76rem;
  margin-bottom: 0.65rem;
}

html.edu-view-web .edu-web-content .gx-options {
  gap: 10px;
}

html.edu-view-web .edu-web-content .gx-option {
  padding: 14px 16px;
  border-radius: 14px;
  border-color: #e8ecf1;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.04);
  font-size: 0.94rem;
  line-height: 1.5;
}

html.edu-view-web .edu-web-content .gx-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--edu-primary, #0B1426) 45%, #e8ecf1);
  background: #F3F2EF;
  box-shadow: 0 8px 22px rgba(11, 20, 38, 0.08);
}

html.edu-view-web .edu-web-content .gx-order-item,
html.edu-view-web .edu-web-content .gx-match-row,
html.edu-view-web .edu-web-content .gx-fill-input,
html.edu-view-web .edu-web-content .gx-upload-field,
html.edu-view-web .edu-web-content .gx-match-select {
  border-color: #e8ecf1;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.04);
}

html.edu-view-web .edu-web-content .gx-take-actions {
  position: static;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 24px rgba(13, 27, 62, 0.06);
}

html.edu-view-web .edu-web-content .gx-take-actions .gx-btn {
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

html.edu-view-web .edu-web-content .gx-take-actions .gx-btn--primary {
  background: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-take-actions .gx-btn--primary:hover {
  background: #1a1a1a;
}

html.edu-view-web .edu-web-content .gx-take-actions .gx-btn--soft {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--gx-web-navy, #000000);
}

html.edu-view-web .edu-web-content .gx-take-app--locked .gx-take-actions {
  justify-content: flex-end;
}

@media (min-width: 961px) {
  html.edu-view-web .edu-web-content .gx-take-palette.gx-hidden {
    display: block !important;
  }

  html.edu-view-web .edu-web-content .gx-take-palette-btn {
    display: none;
  }

  html.edu-view-web .edu-web-content .gx-take-palette__grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 960px) {
  html.edu-view-web .edu-web-content .gx-take-head {
    top: 64px;
    padding: 20px 18px;
  }

  html.edu-view-web .edu-web-content .gx-exam-form {
    max-width: none;
  }
}
