:root {
  --gex-ink: #0f172a;
  --gex-muted: #475569;
  --gex-line: #e2e8f0;
  --gex-bg: #f1f5f9;
  --gex-blue: #1d4ed8;
  --gex-navy: #1e3a8a;
  --gex-ok: #15803d;
}
.gex-page {
  background: var(--gex-bg);
  color: var(--gex-ink);
  min-height: 100vh;
  font-family: "Noto Sans Devanagari", Inter, "Nirmala UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.gex-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.gex-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--gex-muted); font-size: 0.92rem; }
.gex-crumb a { color: var(--gex-blue); font-weight: 700; text-decoration: none; }
.gex-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--gex-blue) 50%, #0f766e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 16px;
  border: 2px solid #93c5fd;
}
.gex-hero h1 { margin: 8px 0; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.28; color: #fff; }
.gex-hero p { margin: 0; max-width: 72ch; color: rgba(255,255,255,.94); }
.gex-kicker {
  display: inline-flex; margin: 0; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  font-size: 0.78rem; font-weight: 800;
}
.gex-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gex-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: #fde68a; color: #78350f; font-weight: 800; text-decoration: none;
}
.gex-cta a.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.gex-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin-top: 14px;
}
.gex-meta div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 10px; }
.gex-meta dt { font-size: 0.75rem; opacity: .85; }
.gex-meta dd { margin: 0; font-weight: 800; }
.gex-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gex-tabs a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gex-line);
  background: #fff; color: var(--gex-ink); text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.gex-tabs a.is-on { background: var(--gex-blue); border-color: var(--gex-blue); color: #fff; }
.gex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; align-items: stretch; }
.gex-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: #fff; border: 1px solid var(--gex-line);
  border-radius: 16px; padding: 16px; text-decoration: none; color: inherit;
}
.gex-card:hover { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.12); }
.gex-ico { font-size: 1.5rem; }
.gex-card strong { display: block; color: var(--gex-navy); margin: 4px 0 2px; }
.gex-card span { color: var(--gex-blue); font-weight: 700; font-size: 0.92rem; }
.gex-card p { margin: 8px 0 0; color: var(--gex-muted); font-size: 0.92rem; }
.gex-stat { margin-top: 10px; font-weight: 800; color: var(--gex-blue); font-size: 0.9rem; }
.gex-all { margin: 8px 0 24px; }
.gex-all > h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--gex-navy); }
.gex-sec-title { margin: 22px 0 10px; font-size: 1.12rem; color: var(--gex-navy); }
.gex-sec-title small { color: var(--gex-muted); font-weight: 700; }
.gex-q, .gex-note {
  background: #fff; border: 1px solid var(--gex-line); border-radius: 14px;
}
.gex-q { padding: 14px 16px; margin: 0 0 12px; }
.gex-q-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 0.88rem; font-weight: 700; color: var(--gex-muted); }
.gex-badge { background: #dbeafe; color: #1e3a8a; padding: 3px 8px; border-radius: 999px; }
.gex-badge-mcq { background: #dbeafe; }
.gex-badge-short { background: #fef3c7; color: #92400e; }
.gex-q-head { margin: 16px 0 8px; font-size: 1.28rem; color: var(--gex-navy); }
.gex-q-title, .gex-q h3 { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.45; color: var(--gex-ink); }
.gex-daily {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  background: #ecfdf5; border: 1px solid #86efac; color: #14532d; font-weight: 700;
}
.gex-daily a { color: #166534; }
.gex-opts { list-style: none; margin: 0; padding: 0; }
.gex-opts li { margin: 0 0 8px; }
.gex-opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 12px;
  background: #f8fafc; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.gex-opt:hover { border-color: #93c5fd; background: #eff6ff; }
.gex-opt.is-correct {
  background: #dcfce7; border-color: #15803d; color: #14532d; font-weight: 800;
}
.gex-opt.is-wrong {
  background: #fee2e2; border-color: #b91c1c; color: #7f1d1d; font-weight: 800;
}
.gex-opt:disabled { cursor: default; }
.gex-mark { margin-left: auto; font-size: 1.25rem; font-weight: 900; }
.gex-opt.is-correct .gex-mark { color: #15803d; }
.gex-opt.is-wrong .gex-mark { color: #b91c1c; }
.gex-score {
  position: sticky; top: 8px; z-index: 6; display: inline-flex;
  margin: 0 0 10px; padding: 8px 14px; border-radius: 999px;
  background: #1e3a8a; color: #fff; font-weight: 800;
}
.gex-ok-lab { color: #15803d; font-weight: 800; }
.gex-bad-lab { color: #b91c1c; font-weight: 800; }
.gex-badge-ask { background: #fef3c7; color: #92400e; }
.gex-ilinks { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.gex-ilinks a { color: var(--gex-blue); font-weight: 700; }
.gex-ans { margin-top: 8px; border-top: 1px dashed var(--gex-line); padding-top: 8px; }
.gex-ans summary { cursor: pointer; font-weight: 800; color: var(--gex-blue); min-height: 44px; display: flex; align-items: center; }
.gex-key { margin: 8px 0 0; color: var(--gex-ok); font-weight: 800; }
.gex-note { padding: 16px; margin-top: 18px; }
.gex-note h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--gex-navy); }
.gex-note a { color: var(--gex-blue); font-weight: 700; }
.gex-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; font-weight: 800; flex-wrap: wrap; }
.gex-pager a { color: var(--gex-blue); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.gex-pager-nums { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gex-pager-nums a,
.gex-pager-nums span[aria-current="page"] {
    min-width: 36px; justify-content: center; border-radius: 10px; border: 1px solid #dbe3ee;
}
.gex-pager-nums span[aria-current="page"] {
    background: var(--gex-blue); color: #fff; border-color: transparent; min-height: 36px;
    display: inline-flex; align-items: center; padding: 0 10px;
}
.gex-continue {
    margin: 12px 0 0 !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: #fff !important;
}
.gex-continue a { color: #fff; font-weight: 800; }
.gex-progress-label { margin: 0 0 10px; font-size: 0.88rem; font-weight: 700; color: var(--gex-muted); }
@media (max-width: 720px) {
  .gex-grid, .gex-meta { grid-template-columns: 1fr; }
  .gex-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .gex-cta a { width: 100%; }
}
