:root {
  --navy: #102a43;
  --navy-deep: #071c2c;
  --teal: #167d74;
  --teal-dark: #0d625b;
  --gold: #c58b24;
  --red: #b84343;
  --purple: #6f4aa8;
  --ink: #1f2933;
  --muted: #5d6c78;
  --line: #d7e0e7;
  --panel: #f3f7f9;
  --white: #fff;
  --shadow: 0 14px 34px rgba(16, 42, 67, .11);
  font-family: Inter, "Noto Sans Gujarati", sans-serif;
  color: var(--ink);
  background: #edf2f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #edf2f5; }
body.auth-pending main { visibility: hidden; }
body.neet-exam-active { overflow: hidden; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.neet-appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 66px;
  padding: 8px clamp(14px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 3px solid var(--teal);
}

.neet-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.neet-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #e1b95d;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
}

.neet-brand__mark svg { width: 28px; height: 28px; }
.neet-brand > span:last-child { display: grid; gap: 1px; }
.neet-brand strong { font-size: 1rem; }
.neet-brand small { color: #b8c8d4; font-size: .72rem; }

.neet-appbar__session {
  display: flex;
  align-items: center;
  gap: 14px;
}

.neet-appbar__session > span { color: #b8c8d4; font-size: .85rem; }
.neet-appbar__session > strong {
  min-width: 74px;
  padding: 8px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
}
.neet-appbar__session > strong.is-warning { color: #ffd989; border-color: #b9832f; }
.neet-appbar__session > strong.is-danger { color: #ffd0d0; border-color: #d56868; }

.neet-appbar__exit {
  color: #dce6ec;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.neet-appbar__exit:hover { color: #fff; }

.neet-button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.neet-button:disabled { opacity: .45; cursor: not-allowed; }
.neet-button--primary { background: var(--teal); color: #fff; }
.neet-button--primary:hover:not(:disabled) { background: var(--teal-dark); }
.neet-button--subtle { background: #fff; color: var(--navy); border-color: #b9c7d0; }
.neet-button--subtle:hover { background: #edf4f6; }
.neet-button--review { background: #f1ebf8; color: #51327d; border-color: #bca8d7; }
.neet-button--review:hover { background: #e8ddf3; }
.neet-button--danger { background: #b43f3f; color: #fff; }
.neet-button--danger:hover { background: #963131; }

.neet-start,
.neet-result {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.neet-start__intro { max-width: 760px; margin-bottom: 34px; }
.neet-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.neet-start h1,
.neet-result h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.neet-start__intro p,
.neet-result__head p {
  margin: 16px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.neet-start__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.neet-setup,
.neet-instructions {
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.neet-instructions { background: #f8fafb; }
.neet-section-head { margin-bottom: 24px; }
.neet-section-head span,
.neet-result-section-head > div > span {
  color: var(--teal-dark);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.neet-section-head h2,
.neet-result-section-head h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.neet-select-label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.neet-set-select {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebdc7;
  border-radius: 5px;
}
.neet-set-select:focus-visible,
.neet-button:focus-visible,
.neet-answer-options input:focus-visible + span,
.neet-palette__grid button:focus-visible {
  outline: 3px solid rgba(22, 125, 116, .28);
  outline-offset: 2px;
}

.neet-exam-facts {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.neet-exam-facts div { padding: 15px; background: #f6f9fa; border-bottom: 1px solid var(--line); }
.neet-exam-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.neet-exam-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.neet-exam-facts dt { color: var(--muted); font-size: .76rem; }
.neet-exam-facts dd { margin: 5px 0 0; color: var(--navy); font-weight: 800; }
.neet-timing-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.neet-instructions ul { margin: 0; padding-left: 22px; color: #344653; }
.neet-instructions li { margin-bottom: 11px; line-height: 1.55; }
.neet-status-legend {
  margin: 23px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.neet-status-legend span,
.neet-palette__legend span { display: flex; align-items: center; gap: 8px; color: #425466; font-size: .77rem; }
.neet-status-legend i,
.neet-palette__legend i {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: 0 0 auto;
  background: #e3e9ed;
  border: 1px solid #b4c0c8;
  border-radius: 3px;
}
.neet-status-legend i.is-unanswered,
.neet-palette__legend i.is-unanswered { background: #f9dddd; border-color: #ce7272; }
.neet-status-legend i.is-answered,
.neet-palette__legend i.is-answered { background: #ccebe5; border-color: #4d9f94; }
.neet-status-legend i.is-review,
.neet-palette__legend i.is-review { background: #e3d9f0; border-color: #9375ba; border-radius: 50%; }
.neet-palette__legend i.is-review-answered { position: relative; background: #e3d9f0; border-color: #9375ba; border-radius: 50%; }
.neet-palette__legend i.is-review-answered::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); border: 1px solid #fff; }
.neet-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.neet-consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--teal); }
.neet-start-button { width: 100%; margin-top: 18px; min-height: 50px; }
.neet-resume { width: 100%; margin-top: 12px; border: 0; background: transparent; color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

.neet-runner {
  height: calc(100dvh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  background: #e8eef2;
  overflow: hidden;
}
.neet-runner__main { min-width: 0; display: flex; flex-direction: column; overflow: auto; }
.neet-question-head {
  min-height: 66px;
  padding: 12px clamp(16px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.neet-question-head > div { margin-right: auto; }
.neet-question-head span { color: var(--muted); font-size: .75rem; }
.neet-question-head h1 { margin: 2px 0 0; color: var(--navy); font-size: 1.16rem; letter-spacing: 0; }
.neet-chapter-tag { padding: 7px 10px; background: #e9f3f1; color: var(--teal-dark) !important; border: 1px solid #bcd8d3; border-radius: 4px; font-weight: 700; }
.neet-palette-toggle { display: none; padding: 8px 10px; color: var(--navy); background: #fff; border: 1px solid #aebdc7; border-radius: 4px; font-weight: 700; }

.neet-question-surface {
  width: min(940px, calc(100% - 32px));
  margin: 22px auto;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(16, 42, 67, .07);
}
.neet-question-copy {
  min-height: 100px;
  margin: 0;
  color: #142f43;
  font-family: "Noto Sans Gujarati", Inter, sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.8;
}
.neet-question-copy:focus { outline: none; }
.neet-answer-options { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; }
.neet-answer-options legend { margin-bottom: 12px; color: var(--navy); font-size: .86rem; font-weight: 800; }
.neet-answer-options label { min-width: 0; }
.neet-answer-options input { position: absolute; opacity: 0; pointer-events: none; }
.neet-answer-options span {
  min-height: 62px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  background: #f3f7f9;
  border: 2px solid #c6d2da;
  border-radius: 5px;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.5;
}
.neet-answer-options b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid #aebdc7;
  border-radius: 50%;
  font-family: Inter, sans-serif;
}
.neet-answer-options em { font-style: normal; }
.neet-answer-options input:checked + span { color: #fff; background: var(--teal); border-color: var(--teal); }
.neet-answer-options input:checked + span b { border-color: rgba(255, 255, 255, .7); }

.neet-runner__actions {
  width: min(940px, calc(100% - 32px));
  margin: auto auto 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto minmax(190px, .8fr) minmax(190px, 1fr);
  gap: 10px;
}
.neet-runner__secondary-actions {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
}
.neet-runner__secondary-actions button { padding: 5px 0; color: #486070; background: transparent; border: 0; font-weight: 700; }
.neet-runner__secondary-actions button:disabled { opacity: .35; cursor: not-allowed; }

.neet-palette { min-width: 0; padding: 18px; background: #fff; border-left: 1px solid var(--line); overflow: auto; }
.neet-palette__head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.neet-palette__head > div { display: grid; gap: 3px; }
.neet-palette__head strong { color: var(--navy); }
.neet-palette__head span { color: var(--muted); font-size: .75rem; }
.neet-palette__head button { display: none; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: 1.7rem; line-height: 1; }
.neet-palette__summary { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.neet-palette__summary div { padding: 10px; display: grid; gap: 2px; background: var(--panel); border: 1px solid #e0e7eb; border-radius: 4px; }
.neet-palette__summary strong { color: var(--navy); font-size: 1.15rem; }
.neet-palette__summary span { color: var(--muted); font-size: .68rem; }
.neet-palette__legend { margin-bottom: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.neet-palette__legend span:last-child { grid-column: 1 / -1; }
.neet-palette__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.neet-palette__grid button {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  color: #304452;
  background: #e7ecef;
  border: 1px solid #b8c3ca;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 800;
}
.neet-palette__grid button.is-current { outline: 3px solid #d5a33d; outline-offset: 1px; }
.neet-palette__grid button.is-unanswered { color: #7b2828; background: #f7dada; border-color: #ca6c6c; }
.neet-palette__grid button.is-answered { color: #075b52; background: #c9e9e3; border-color: #4d9f94; }
.neet-palette__grid button.is-review,
.neet-palette__grid button.is-review-answered { color: #4d2e77; background: #e2d7ef; border-color: #9274b8; border-radius: 50%; }
.neet-palette__grid button.is-review-answered::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.neet-palette-backdrop { display: none; }

.neet-result { max-width: 1120px; }
.neet-result__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #cbd7df; }
.neet-score { min-width: 170px; padding: 24px; color: #fff; background: var(--navy); border-radius: 6px; text-align: center; }
.neet-score strong { display: block; font-size: 3rem; line-height: 1; }
.neet-score span { display: block; margin-top: 6px; color: #c3d0d9; }
.neet-result-metrics { margin: 22px 0 34px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.neet-result-metrics div { padding: 17px; display: grid; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.neet-result-metrics span { color: var(--muted); font-size: .74rem; }
.neet-result-metrics strong { color: var(--navy); font-size: 1.35rem; }
.neet-analysis,
.neet-review { margin-top: 28px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.neet-result-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.neet-analysis-list { display: grid; gap: 10px; }
.neet-analysis-row { display: grid; grid-template-columns: minmax(190px, 1fr) 2fr 58px; gap: 16px; align-items: center; }
.neet-analysis-row strong { color: #344653; font-size: .85rem; }
.neet-analysis-track { height: 9px; background: #e2e9ed; border-radius: 5px; overflow: hidden; }
.neet-analysis-track span { display: block; height: 100%; background: var(--teal); }
.neet-analysis-row > span { color: var(--navy); font-weight: 800; text-align: right; }
.neet-analysis-more { margin-top: 8px; border-top: 1px solid var(--line); }
.neet-analysis-more summary { padding: 14px 0 4px; color: var(--teal-dark); font-size: .82rem; font-weight: 800; cursor: pointer; }
.neet-analysis-more .neet-analysis-list { margin-top: 10px; }
.neet-review-filters { display: flex; gap: 6px; }
.neet-review-filters button { min-height: 36px; padding: 7px 11px; color: #4a5e6b; background: #fff; border: 1px solid #b9c6ce; border-radius: 4px; font-weight: 700; }
.neet-review-filters button.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.neet-review-list { display: grid; gap: 14px; }
.neet-review-item { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.neet-review-item summary { padding: 15px; display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; background: #f5f8fa; }
.neet-review-item summary::-webkit-details-marker { display: none; }
.neet-review-item summary strong { color: var(--navy); }
.neet-review-item summary span:nth-child(2) { margin-right: auto; color: var(--muted); font-size: .8rem; }
.neet-review-status { padding: 5px 8px; border-radius: 3px; font-size: .7rem !important; font-weight: 800; }
.neet-review-status.is-correct { color: #075b52; background: #d7eee9; }
.neet-review-status.is-wrong { color: #842e2e; background: #f5dede; }
.neet-review-status.is-skipped { color: #53616b; background: #e4e9ec; }
.neet-review-body { padding: clamp(16px, 3vw, 26px); }
.neet-review-question { margin: 0; color: var(--navy); font-size: 1.02rem; font-weight: 700; line-height: 1.7; }
.neet-review-options { margin: 14px 0 18px; padding-left: 30px; color: #435765; }
.neet-review-options li { margin-bottom: 7px; padding-left: 5px; line-height: 1.5; }
.neet-review-answer { margin: 18px 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 18px; background: #eef4f5; border-left: 3px solid var(--teal); }
.neet-review-answer span { color: #435765; font-size: .84rem; }
.neet-review-answer strong { color: var(--navy); }
.neet-solution { color: #304452; line-height: 1.7; }
.neet-solution h3 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.neet-solution p { margin: 0 0 10px; }
.neet-solution ol { margin: 0 0 12px; padding-left: 22px; }
.neet-result__actions { margin-top: 22px; display: flex; gap: 10px; }
.neet-sync-status { min-height: 22px; color: var(--muted); font-size: .8rem; }

.jee-preview-notice {
  margin: 0 0 22px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #304452;
  background: #fff8e8;
  border: 1px solid #dfc889;
  border-left: 4px solid var(--gold);
  border-radius: 5px;
  line-height: 1.55;
}
.jee-preview-notice strong { flex: 0 0 auto; color: var(--navy); }
.jee-subject-overview { display: grid; gap: 8px; }
.jee-subject-overview div {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f4f8f9;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.jee-subject-overview strong { color: var(--navy); }
.jee-subject-overview span { color: var(--muted); font-size: .78rem; }
.jee-subject-tabs {
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.jee-subject-tabs button {
  min-width: 0;
  padding: 13px 10px;
  color: #4d606e;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  font-weight: 800;
}
.jee-subject-tabs button:last-child { border-right: 0; }
.jee-subject-tabs button.is-active { color: var(--teal-dark); background: #f2f8f7; border-bottom-color: var(--teal); }
.jee-question-figure { margin: 18px 0 0; padding: 12px; background: #f5f8fa; border: 1px solid var(--line); border-radius: 4px; }
.jee-question-figure img { display: block; width: min(100%, 560px); max-height: 310px; margin: 0 auto; object-fit: contain; }
.jee-numerical-answer { margin-top: 26px; display: grid; gap: 8px; }
.jee-numerical-answer span { color: var(--navy); font-size: .86rem; font-weight: 800; }
.jee-numerical-answer input {
  width: min(100%, 360px);
  min-height: 54px;
  padding: 11px 13px;
  color: var(--navy);
  background: #f7fafb;
  border: 2px solid #b8c7d0;
  border-radius: 5px;
  font-size: 1rem;
}
.jee-numerical-answer input:focus { outline: 3px solid rgba(22, 125, 116, .2); border-color: var(--teal); }
.jee-question-warning { margin: 18px 0 0; padding: 11px 12px; color: #704b16; background: #fff7e4; border-left: 3px solid var(--gold); font-size: .8rem; line-height: 1.5; }
.neet-palette__section-label { margin: 17px 0 8px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.jee-preview-result { max-width: 900px; }
.jee-preview-result > p { margin: 16px 0 26px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.neet-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 7px; box-shadow: 0 24px 70px rgba(5, 23, 35, .28); }
.neet-dialog::backdrop,
.neet-image-dialog::backdrop { background: rgba(5, 23, 35, .68); }
.neet-dialog form { padding: 24px; }
.neet-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.neet-dialog__head h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.neet-dialog__head button { color: var(--muted); background: transparent; border: 0; font-size: 1.8rem; }
.neet-dialog p { color: var(--muted); }
.neet-dialog__counts { margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.neet-dialog__counts span { padding: 12px; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .7rem; }
.neet-dialog__counts strong { color: var(--navy); font-size: 1.2rem; }
.neet-dialog__actions { display: flex; justify-content: flex-end; gap: 9px; }
.neet-image-dialog { width: min(1200px, calc(100% - 24px)); max-height: 94vh; padding: 42px 16px 16px; border: 0; border-radius: 5px; overflow: auto; }
.neet-image-dialog button { position: absolute; top: 7px; right: 12px; padding: 0; color: var(--navy); background: transparent; border: 0; font-size: 2rem; }
.neet-image-dialog img { width: 100%; height: auto; display: block; }

@media (hover: hover) and (pointer: fine) {
  .neet-button:hover { transform: translateY(-1px); }
  .neet-palette__grid button:hover { filter: brightness(.96); }
}

@media (max-width: 900px) {
  .neet-start__layout { grid-template-columns: 1fr; }
  .neet-runner { grid-template-columns: 1fr; }
  .neet-palette-toggle { display: block; }
  .neet-palette {
    position: fixed;
    z-index: 70;
    top: 66px;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    transform: translateX(105%);
    transition: transform .2s ease;
    box-shadow: -14px 0 34px rgba(16, 42, 67, .18);
  }
  .neet-palette.is-open { transform: translateX(0); }
  .neet-palette__head button { display: block; }
  .neet-palette-backdrop { position: fixed; z-index: 60; inset: 66px 0 0; width: 100%; height: auto; display: block; padding: 0; background: rgba(5, 23, 35, .48); border: 0; }
  .neet-result-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .neet-appbar { min-height: 60px; padding: 7px 12px; gap: 9px; }
  .neet-brand__mark { width: 34px; height: 34px; }
  .neet-brand__mark svg { width: 24px; height: 24px; }
  .neet-brand small { display: none; }
  .neet-appbar__session { gap: 7px; }
  .neet-appbar__session > span { display: none; }
  .neet-appbar__session > strong { min-width: 63px; padding: 7px; font-size: .88rem; }
  .neet-appbar__session .neet-button { min-height: 36px; padding: 7px 9px; font-size: .72rem; }
  .neet-appbar__exit { display: none; }
  .neet-start,
  .neet-result { width: min(100% - 24px, 1180px); padding: 34px 0 48px; }
  .neet-start h1,
  .neet-result h1 { font-size: 2rem; }
  .neet-start__intro p,
  .neet-result__head p { font-size: .94rem; line-height: 1.65; }
  .neet-start__layout { gap: 14px; }
  .neet-setup,
  .neet-instructions { padding: 20px 16px; }
  .neet-section-head h2 { font-size: 1.25rem; }
  .neet-exam-facts div { padding: 12px; }
  .neet-status-legend { grid-template-columns: 1fr; }
  .neet-runner { height: calc(100dvh - 60px); }
  .neet-question-head { min-height: 58px; padding: 9px 12px; gap: 8px; }
  .neet-question-head h1 { font-size: 1rem; }
  .neet-question-head > .neet-chapter-tag { display: none; }
  .neet-palette-toggle { font-size: .75rem; }
  .neet-question-surface { width: calc(100% - 16px); margin: 10px auto; padding: 12px; }
  .neet-question-copy { min-height: 0; font-size: 1rem; line-height: 1.7; }
  .neet-answer-options { margin-top: 18px; grid-template-columns: 1fr; gap: 8px; }
  .neet-answer-options legend { margin-bottom: 8px; }
  .neet-answer-options span { min-height: 52px; padding: 8px 10px; font-size: .9rem; }
  .neet-runner__actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    width: 100%;
    margin-top: auto;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    grid-template-columns: 48px 1fr 1.05fr;
    gap: 6px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .neet-runner__actions .neet-button { min-width: 0; min-height: 46px; padding: 7px 6px; font-size: .69rem; }
  .neet-runner__actions .neet-button:first-child { font-size: 0; }
  .neet-runner__actions .neet-button:first-child::after { content: "સાફ"; font-size: .69rem; }
  .neet-runner__secondary-actions { width: calc(100% - 24px); margin: 3px auto 9px; }
  .neet-runner__secondary-actions button { font-size: .74rem; }
  .neet-palette { top: 60px; }
  .neet-palette-backdrop { inset: 60px 0 0; }
  .neet-result__head { align-items: stretch; flex-direction: column; }
  .neet-score { min-width: 0; width: 100%; padding: 19px; }
  .neet-score strong { font-size: 2.5rem; }
  .neet-result-metrics { grid-template-columns: 1fr 1fr; }
  .neet-result-metrics div:last-child { grid-column: 1 / -1; }
  .neet-analysis,
  .neet-review { padding: 16px 12px; }
  .neet-result-section-head { align-items: flex-start; flex-direction: column; }
  .neet-analysis-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 7px; }
  .neet-analysis-track { grid-column: 1 / -1; grid-row: 2; }
  .neet-review-filters { width: 100%; }
  .neet-review-filters button { flex: 1; }
  .neet-review-item summary { flex-wrap: wrap; }
  .neet-review-item summary span:nth-child(2) { width: calc(100% - 85px); margin-right: 0; }
  .neet-review-status { margin-left: auto; }
  .neet-result__actions { flex-direction: column; }
  .neet-dialog__counts { grid-template-columns: 1fr; }
  .jee-preview-notice { flex-direction: column; gap: 4px; padding: 13px; font-size: .84rem; }
  .jee-subject-overview div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .jee-subject-tabs { min-height: 48px; }
  .jee-subject-tabs button { padding: 11px 5px; font-size: .78rem; }
  .jee-question-figure { padding: 8px; }
  .jee-question-figure img { max-height: 230px; }
  .jee-numerical-answer input { width: 100%; }
}

/* Shared NTA-style CBT workspace for NEET and JEE. */
.nta-utilitybar {
  min-height: 42px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f4f4f4;
  border-bottom: 1px solid #c8c8c8;
}
.nta-utility-actions { display: flex; gap: 7px; }
.nta-utilitybar button,
.nta-utilitybar select {
  min-height: 30px;
  padding: 5px 11px;
  color: #1f4e78;
  background: #fff;
  border: 1px solid #9d9d9d;
  border-radius: 2px;
  font-weight: 700;
}
.nta-utilitybar label { display: flex; align-items: center; gap: 7px; color: #353535; font-size: .78rem; font-weight: 700; }
.nta-candidate-card {
  min-height: 82px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #e6f5fb;
  border-bottom: 1px solid #a8cbd9;
}
.nta-candidate-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  color: #fff;
  background: #2473a6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #8db2c7;
  font-weight: 800;
}
.nta-candidate-card > span:last-child { min-width: 0; display: grid; gap: 4px; }
.nta-candidate-card small { color: #59656c; font-size: .68rem; }
.nta-candidate-card strong { overflow: hidden; color: #163e5b; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.nta-palette-banner { padding: 8px 13px; color: #fff; background: #2b91ad; font-size: .82rem; font-weight: 800; }
.nta-instructions-dialog { width: min(720px, calc(100% - 24px)); padding: 0; border: 1px solid #7c9db2; border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.nta-instructions-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.nta-dialog-head { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: #2b91ad; }
.nta-dialog-head h2 { margin: 0; font-size: 1.05rem; }
.nta-dialog-head button { padding: 0; color: #fff; background: transparent; border: 0; font-size: 1.7rem; }
.nta-dialog-body { padding: 18px 22px 22px; color: #303a40; line-height: 1.65; }
.nta-dialog-body li { margin-bottom: 9px; }

body.neet-exam-active { background: #fff; }
body.neet-exam-active .neet-appbar {
  min-height: 58px;
  padding: 6px 16px;
  color: #163b59;
  background: #fff;
  border-bottom: 3px solid #2b91ad;
}
body.neet-exam-active .neet-brand__mark { width: 38px; height: 38px; color: #1f678d; border-color: #9ab6c8; }
body.neet-exam-active .neet-brand small { color: #526d7d; }
body.neet-exam-active .neet-appbar__session > span { color: #3a586b; }
body.neet-exam-active .neet-appbar__session > strong {
  color: #1d1d1d;
  background: #f4f4f4;
  border-color: #b4b4b4;
  border-radius: 2px;
}
body.neet-exam-active .neet-appbar__session > strong::before { content: "Time Left  "; color: #59656c; font-size: .67rem; font-weight: 600; }
body.neet-exam-active .neet-appbar__session .neet-button--danger { min-height: 36px; padding: 7px 12px; background: #d9534f; border-radius: 2px; }
body.neet-exam-active .neet-runner {
  height: calc(100dvh - 58px);
  grid-template-columns: minmax(0, 1fr) 318px;
  background: #fff;
}
body.neet-exam-active .neet-runner__main { position: relative; background: #fff; }
body.neet-exam-active .jee-subject-tabs { min-height: 43px; background: #ededed; border-bottom-color: #9e9e9e; }
body.neet-exam-active .jee-subject-tabs button { padding: 9px 8px; background: #ededed; border-color: #c8c8c8; border-bottom: 0; border-radius: 0; }
body.neet-exam-active .jee-subject-tabs button.is-active { color: #fff; background: #2473a6; }
body.neet-exam-active .neet-question-head {
  min-height: 52px;
  padding: 8px 18px;
  background: #fff;
  border-bottom: 1px solid #aeb7bc;
}
body.neet-exam-active .neet-question-head h1 { color: #222; font-size: 1rem; }
body.neet-exam-active .neet-question-head > div > span { color: #5b656b; }
body.neet-exam-active .neet-chapter-tag { color: #364b58 !important; background: #f1f1f1; border-color: #bbb; border-radius: 2px; }
body.neet-exam-active .neet-palette-toggle { color: #fff; background: #2473a6; border-color: #1c5e89; border-radius: 2px; }
body.neet-exam-active .neet-question-surface {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 20px 24px 28px;
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.neet-exam-active .neet-question-copy { min-height: 60px; color: #181818; font-size: 1.04rem; font-weight: 600; line-height: 1.75; }
body.neet-exam-active .neet-answer-options { max-width: 900px; margin-top: 18px; grid-template-columns: 1fr; gap: 4px; }
body.neet-exam-active .neet-answer-options legend { color: #333; }
body.neet-exam-active .neet-answer-options span {
  min-height: 42px;
  padding: 6px 8px;
  color: #202020;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 1px;
  font-weight: 500;
}
body.neet-exam-active .neet-answer-options label:hover span { background: #f2f7fa; border-color: #c5d8e3; }
body.neet-exam-active .neet-answer-options b { width: 28px; height: 28px; flex-basis: 28px; border-color: #767676; font-size: .78rem; }
body.neet-exam-active .neet-answer-options input:checked + span { color: #111; background: #d9edf7; border-color: #7aaac2; }
body.neet-exam-active .neet-answer-options input:checked + span b { color: #fff; background: #2473a6; border-color: #2473a6; }
body.neet-exam-active .neet-runner__actions {
  width: 100%;
  margin: auto 0 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-top: 1px solid #b9b9b9;
}
body.neet-exam-active .neet-runner__actions .neet-button { min-height: 38px; padding: 8px 12px; border-radius: 2px; font-size: .78rem; }
body.neet-exam-active .neet-runner__actions .neet-button--review { color: #fff; background: #7b42a8; border-color: #63348a; }
body.neet-exam-active .neet-runner__actions .neet-button--subtle { color: #222; background: #fff; border-color: #999; }
body.neet-exam-active .neet-runner__actions .neet-button--primary { margin-left: auto; background: #3c9b45; border-color: #2e7b35; }
body.neet-exam-active .neet-palette { padding: 0 0 14px; background: #f4f4f4; border-left: 1px solid #9faeb7; }
body.neet-exam-active .neet-palette__head { padding: 10px 13px; background: #fff; border-bottom-color: #b7b7b7; }
body.neet-exam-active .neet-palette__head strong { color: #222; font-size: .86rem; }
body.neet-exam-active .neet-palette__summary { margin: 10px 12px; gap: 5px 10px; }
body.neet-exam-active .neet-palette__summary div { padding: 3px 0; display: flex; align-items: center; gap: 7px; background: transparent; border: 0; }
body.neet-exam-active .neet-palette__summary strong { min-width: 24px; color: #222; font-size: .9rem; }
body.neet-exam-active .neet-palette__summary span { color: #333; font-size: .69rem; }
body.neet-exam-active .neet-palette__legend { margin: 8px 12px 12px; padding-bottom: 10px; gap: 8px; border-bottom: 1px solid #c4c4c4; }
body.neet-exam-active .neet-palette__legend span { color: #333; }
body.neet-exam-active .neet-palette__grid { padding: 0 12px; grid-template-columns: repeat(5, 38px); gap: 9px 12px; }
body.neet-exam-active .neet-palette__grid button {
  width: 38px;
  height: 34px;
  aspect-ratio: auto;
  color: #222;
  background: #d9d9d9;
  border: 1px solid #aaa;
  border-radius: 2px;
  font-size: .76rem;
}
body.neet-exam-active .neet-palette__grid button.is-unanswered { color: #fff; background: #d9534f; border-color: #b83834; border-radius: 17px 17px 3px 3px; }
body.neet-exam-active .neet-palette__grid button.is-answered { color: #fff; background: #43a047; border-color: #2f7d33; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
body.neet-exam-active .neet-palette__grid button.is-review,
body.neet-exam-active .neet-palette__grid button.is-review-answered { color: #fff; background: #8e44ad; border-color: #673080; border-radius: 50%; }
body.neet-exam-active .neet-palette__grid button.is-review-answered::after { content: "✓"; right: -4px; bottom: -4px; width: 15px; height: 15px; display: grid; place-items: center; color: #fff; background: #2d9f45; border: 1px solid #fff; font-size: .58rem; }
body.neet-exam-active .neet-palette__grid button.is-current { outline: 3px solid #f0a321; outline-offset: 2px; }
body.neet-exam-active .neet-palette__section-label { margin: 13px 12px 8px; padding: 6px 8px; color: #fff; background: #5c6f7a; }
body.neet-exam-active .jee-question-figure { max-width: 650px; background: #fff; border-color: #b6b6b6; }
body.neet-exam-active .jee-numerical-answer input { background: #fff; border-color: #777; border-radius: 1px; }

@media (max-width: 900px) {
  body.neet-exam-active .neet-runner { grid-template-columns: 1fr; }
  body.neet-exam-active .neet-palette { top: 58px; width: min(330px, 92vw); }
  body.neet-exam-active .neet-palette-backdrop { inset: 58px 0 0; }
}

@media (max-width: 640px) {
  body.neet-exam-active .neet-appbar { min-height: 54px; padding: 5px 8px; }
  body.neet-exam-active .neet-brand__mark { display: none; }
  body.neet-exam-active .neet-brand strong { font-size: .88rem; }
  body.neet-exam-active .neet-appbar__session > strong { min-width: 62px; padding: 6px; font-size: .78rem; }
  body.neet-exam-active .neet-appbar__session > strong::before { display: none; }
  body.neet-exam-active .neet-appbar__session .neet-button--danger { min-height: 34px; padding: 6px 8px; font-size: .65rem; }
  body.neet-exam-active .neet-runner { height: calc(100dvh - 54px); }
  .nta-utilitybar { min-height: 38px; padding: 4px 8px; }
  .nta-utilitybar button { min-height: 28px; padding: 4px 7px; font-size: .67rem; }
  .nta-utilitybar label { font-size: 0; }
  .nta-utilitybar select { min-height: 28px; padding: 3px 6px; font-size: .69rem; }
  body.neet-exam-active .jee-subject-tabs button { font-size: .7rem; }
  body.neet-exam-active .neet-question-head { min-height: 46px; padding: 6px 9px; }
  body.neet-exam-active .neet-question-surface { width: 100%; margin: 0; padding: 14px 12px 18px; }
  body.neet-exam-active .neet-question-copy { font-size: .96rem; line-height: 1.65; }
  body.neet-exam-active .neet-answer-options span { min-height: 39px; padding: 5px 4px; font-size: .85rem; }
  body.neet-exam-active .neet-runner__actions {
    position: sticky;
    bottom: 0;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: .72fr 1.35fr .85fr 1.35fr;
    gap: 4px;
  }
  body.neet-exam-active .neet-runner__actions .neet-button { min-width: 0; min-height: 42px; padding: 5px 3px; font-size: .6rem; }
  body.neet-exam-active .neet-runner__actions .neet-button:first-child::after { content: none; }
  body.neet-exam-active .neet-runner__actions .neet-button--primary { margin-left: 0; }
  body.neet-exam-active .neet-palette { top: 54px; }
  body.neet-exam-active .neet-palette-backdrop { inset: 54px 0 0; }
  .nta-instructions-dialog { max-height: 90vh; overflow: auto; }
  .nta-dialog-body { padding: 14px 17px 18px; font-size: .86rem; }
}
