/* =====================================================================
   DARK APP THEME (29 Nov 2026) — matches the dark landing page (css/landing.css).
   Loaded AFTER css/style.css; it only re-colours, it never changes layout.
   The test screen (#screen-exam) deliberately keeps a light, paper-like booklet and
   pink OMR sheet inside a dark frame: the real exam is pen on paper.
   To undo: remove the <link> to this file in index.html (and the legal pages).
   ===================================================================== */
:root {
  --bg: #09090b;
  --card: #141416;
  --card2: #1b1b1e;
  --text: #f2f2f0;
  --muted: #9b9b97;
  --line: rgba(255,255,255,.10);
  --ink: #f2f2f0;            /* old "pen blue" token is used for text/active states outside the exam */
  --ink-soft: #b9c6ff;
  --brand: #b9c6ff;          /* accent text (soft periwinkle) */
  --brand-dark: #f2f2f0;     /* headings */
  --brand-soft: rgba(255,255,255,.06);
  --accent: #5b7cff;         /* blue ink: focus rings, small highlights */
  --accent-dark: #b9c6ff;
  --accent-soft: rgba(91,124,255,.14);
  --pen: #5b7cff;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --shadow: none;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--sans), var(--te-font); }
h1, h2, h3 { color: var(--text); }
small, .note, .muted { color: var(--muted); }
a { color: var(--brand); }
::selection { background: rgba(91,124,255,.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* serif display headings, like the landing page */
.hero h1, .pick-head, #screen-result h2, #screen-progress h2, #screen-planner h2, #screen-exams h1, #screen-exams h2, .legal h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
}
.hero h1 { font-size: 2.2rem; line-height: 1.05; }
.pick-head { font-size: 1.6rem; }

/* ---------- top bars ---------- */
.topbar { background: rgba(9,9,11,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none; }
.topbar .btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.18); }
.topbar .btn.ghost:hover { border-color: var(--text); }
.brand, .brand-title, .foot-brand { color: var(--text); }
.brand-te { color: var(--brand); }
.brand-logo, .foot-brand img { content: url("/icons/logo-dark.svg"); }
.topbar.exam-bar { background: #121214; color: var(--text); border-bottom: 1px solid var(--line); }
.topbar.exam-bar .btn.ghost { color: var(--text); border-color: rgba(255,255,255,.22); }
.series-tag b { background: var(--text); color: #09090b; }
.timer.low { color: #fca5a5; }
.lang-btn { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.2); }

/* ---------- buttons ---------- */
.btn { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--line); border-radius: 999px; }
.btn:hover { background: rgba(255,255,255,.11); }
.btn.primary, .btn.cta, #btn-start.primary, #btn-resume { background: #f2f2f0; color: #09090b; border-color: #f2f2f0; }
.btn.primary:hover, .btn.cta:hover, #btn-start.primary:hover, #btn-resume:hover { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.btn.primary:disabled, #btn-begin.waiting { background: #3a3a3e; color: #8f8f8c; border-color: #3a3a3e; }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.18); }
.btn.danger { background: #7f1d1d; color: #fff; border-color: #7f1d1d; }
.btn.google { background: #f2f2f0; color: #1d2230; border-color: #f2f2f0; }
.btn.google:hover { background: #fff; }
.help-fab { background: #f2f2f0; color: #09090b; box-shadow: 0 8px 30px rgba(0,0,0,.6); }

/* ---------- cards & surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.hero { background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(91,124,255,.22), transparent 60%), var(--card); border: 1px solid rgba(91,124,255,.25); box-shadow: none; }
.hero::after { border-color: rgba(255,255,255,.05); }
.hero .eyebrow { color: var(--brand); letter-spacing: .14em; }
.hero .hero-te { color: #c7d0ff; }
.hero .sub { color: #c9c9c6; }
.hero-points span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.facts li, .stat, .prog-stats .stat { background: rgba(255,255,255,.04); border-color: var(--line); }
.facts b, .score-big, .qual-score b { color: var(--text); }
.score-big { font-family: var(--serif); font-weight: 400; font-size: 3.6rem; }
fieldset { border-color: var(--line); }
.choice input, .agree input { accent-color: var(--accent); }

/* tabs & chips */
.tabs { background: var(--card); border-color: var(--line); box-shadow: none; }
.tab { background: transparent; color: var(--muted); }
.tab .te { color: var(--muted); }
.tab.active { background: #f2f2f0; color: #09090b; }
.tab.active .te { color: #3a3a3e; }
.chip { background: transparent; color: var(--text); border-color: rgba(255,255,255,.16); }
.chip.active { background: #f2f2f0; border-color: #f2f2f0; color: #09090b; }

/* test list */
.mock-pick { background: var(--card); border-color: var(--line); color: var(--text); box-shadow: none; }
.mock-pick:hover { border-color: rgba(255,255,255,.3); }
.mock-pick.active { border: 1px solid #b9c6ff; box-shadow: 0 0 0 4px rgba(91,124,255,.15); }
.mp-title { color: var(--text); }
.mock-pick.locked { background: #101012; }
.lock { color: #c7d0ff; background: rgba(91,124,255,.14); }
.free, .badge.official, .trust-tag { color: var(--ok); background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); }
.trust-strip { color: #86efac; }
.badge.draft { background: rgba(251,191,36,.12); color: var(--warn); border-color: rgba(251,191,36,.3); }

/* exam picker */
.exam-card { background: var(--card); border-color: var(--line); box-shadow: none; }
.exam-card.live { border: 1px solid #b9c6ff; }
.exam-card.live:hover { background: rgba(91,124,255,.08); }
.exam-card.live .tag { background: rgba(74,222,128,.12); color: var(--ok); }
.exam-card.soon .tag { background: rgba(255,255,255,.06); color: var(--muted); }
/* exam boards row (APPSC · TGPSC · SSC · RRB): one line on wide screens, swipe sideways on phones */
.board-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 1fr); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; margin-bottom: 1rem; }
.board-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: .35rem; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 44px; }
.board-card:hover { background: rgba(91,124,255,.08); border-color: #b9c6ff; }
.board-card.live { border-color: #b9c6ff; }
.board-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: .02em; }
.board-card .note { margin: 0; font-size: .85rem; }
.board-card ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.board-card li { margin: .15rem 0; }
.board-card li.on { color: var(--text); font-weight: 600; }
.board-card .tag { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(74,222,128,.12); color: var(--ok); margin-left: .25rem; }
.board-go { margin-top: auto; padding-top: .4rem; color: #b9c6ff; font-weight: 600; font-size: .9rem; }
.board-page { display: grid; gap: .8rem; margin-bottom: 1rem; justify-items: start; }
.board-page .exam-card { width: 100%; cursor: default; }
.board-page .exam-card h3 { margin: 0 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.board-page .exam-card .tag { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; }
.board-page .offers { margin: .6rem 0 .9rem; padding-left: 1.2rem; }
.board-page .offers li { margin: .25rem 0; }

/* grand mock */
.card.grand { background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(91,124,255,.18), transparent 60%), var(--card); border: 1px solid rgba(91,124,255,.35); }
.grand-title { color: var(--text); font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.grand-count { color: #c7d0ff; }
.grand-count.live { color: #fca5a5; }
.badge.grand-b { background: rgba(91,124,255,.14); color: #c7d0ff; border-color: rgba(91,124,255,.35); }

/* today, streak, on-track */
.today-list li, .ontrack { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.streak-bar > span { background: var(--card); border-color: var(--line); }

/* ---------- results & review ---------- */
.banner.bad { background: rgba(248,113,113,.12); color: #fecaca; border-color: rgba(248,113,113,.35); }
.banner.info { background: rgba(91,124,255,.12); color: #c7d0ff; border-color: rgba(91,124,255,.35); }
.banner.warnbox { background: rgba(251,191,36,.10); color: #fde68a; border-color: rgba(251,191,36,.3); }
.banner.warnbox .te { color: #fcd34d; }
.qual-signal.safe { background: rgba(74,222,128,.12); color: var(--ok); }
.qual-signal.border { background: rgba(251,191,36,.12); color: var(--warn); }
.qual-signal.below { background: rgba(248,113,113,.12); color: var(--bad); }
.qual-top select, .inp, .modal-box textarea, select, input[type="text"], input[type="email"], input[type="number"], textarea {
  background: #0f0f11; color: var(--text); border: 1px solid rgba(255,255,255,.16);
}
.sec-table th, .sec-table td { border-bottom-color: var(--line); }
.rv { background: var(--card); border-color: var(--line); }
.tag.correct, .tchip.good { background: rgba(74,222,128,.12); color: var(--ok); border-color: rgba(74,222,128,.3); }
.tag.wrong, .tchip.weak { background: rgba(248,113,113,.12); color: var(--bad); border-color: rgba(248,113,113,.3); }
.tag.double { background: rgba(192,132,252,.14); color: #d8b4fe; }
.tag.blank { background: rgba(255,255,255,.06); color: var(--muted); }
.tag.deleted { background: rgba(251,191,36,.12); color: var(--warn); }
.tchip { color: var(--text); border-color: var(--line); }
.tchip.mid { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.rv .q-opts li.is-answer { background: rgba(74,222,128,.12); }
.rv .q-opts li.is-wrong-pick { background: rgba(248,113,113,.12); }
.explain, .help-a { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); color: var(--text); }
.explain .te { color: #e7dcb0; }
.opt-notes { background: rgba(91,124,255,.08); border-color: rgba(91,124,255,.25); }
.opt-notes summary, .opt-notes .ol { color: #c7d0ff; }
.opt-notes li { border-top-color: rgba(91,124,255,.2); }
.opt-notes .te { color: #c9c9c6; }
.report-btn { color: #c7d0ff; background: rgba(91,124,255,.08); border-color: rgba(91,124,255,.3); }
.report-btn:hover { background: rgba(91,124,255,.16); }
.star-btn { background: transparent; border-color: rgba(255,255,255,.18); color: var(--muted); }
.star-btn.on { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.4); color: #fcd34d; }
.star { color: #3a3a3e; } .star.on { color: #fbbf24; }
.guess-btn { background: transparent; border-color: rgba(255,255,255,.2); color: var(--muted); }
.guess-btn.on { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.4); color: var(--warn); }
.topic-btn { background: var(--card); border-color: var(--line); color: var(--text); }
.topic-btn span { color: var(--muted); }
.topic-btn.all { background: rgba(91,124,255,.1); border-color: rgba(91,124,255,.35); }
.topic-btn:hover { border-color: #b9c6ff; }
.q-opts.pickable li:hover { background: rgba(255,255,255,.05); }
.rv-passage summary { color: #c7d0ff; }
.upd-list li { border-left-color: rgba(91,124,255,.6); }
.upd-tag { background: rgba(251,191,36,.12); color: var(--warn); }
.upd-list a { color: #c7d0ff; }

/* questions shown OUTSIDE the test (answer review, topic practice) */
.q, .passage { background: var(--card); border-color: var(--line); }
.q-text.en + .q-text.te, .q-body.te, .q-opts .te, .passage .te { color: #c9c9c6; }
.q-num, .q-opts .ol { color: #c7d0ff; }
.q-opts .sep { color: #5a5a57; }
.q-table th { background: rgba(255,255,255,.05); }
.q-table th, .q-table td { border-color: var(--line); }
.passage { border-left-color: rgba(91,124,255,.6); }
.passage .te { border-top-color: var(--line); }
.sec-head { background: rgba(255,255,255,.04); border-left-color: #b9c6ff; }
.sec-head .te-inline { color: #c7d0ff; }
.q-figs img { background: #fff; }   /* figures are drawn for white paper */
.learn-fb { border-color: var(--line); }
.learn-fb.good { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.3); }
.learn-fb.bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); }

/* progress & planner */
.trend .tp { stroke: #b9c6ff; }
.trend .td { fill: var(--accent); stroke: var(--bg); }
.secbar .bar { background: rgba(255,255,255,.07); }
.secbar .bar i { background: #b9c6ff; }
.eyebrow-dark { color: var(--brand); letter-spacing: .14em; }
.ring { border-color: rgba(255,255,255,.08); border-top-color: var(--accent); }
.ring b, .wday b { color: var(--text); }
.wday, .task, .seg span { background: var(--card); border-color: var(--line); color: var(--muted); }
.wday.now { border: 1px solid #b9c6ff; }
.wday.full { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); }
.task { color: var(--text); }
.task .tick { background: transparent; border-color: #b9c6ff; color: #09090b; }
.task.done .tick { background: #b9c6ff; }
.seg input:checked + span { background: #f2f2f0; border-color: #f2f2f0; color: #09090b; }
.seg input:focus-visible + span { outline-color: var(--accent); }

/* ---------- pop-ups & menus ---------- */
.modal { background: rgba(0,0,0,.7); }
.modal-box, .help-box, .lang-pop { background: #141416; color: var(--text); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.help-panel, .site-menu { background: rgba(0,0,0,.65); }
.help-q { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.help-q:hover { background: rgba(255,255,255,.08); }
.sm-box { background: #0f0f11; color: var(--text); border-left: 1px solid var(--line); box-shadow: none; }
.sm-label { color: var(--brand); letter-spacing: .14em; }
.sm-box a { color: var(--text); }
.sm-box a:hover, .sm-box a:focus-visible { background: rgba(255,255,255,.06); }
.lang-pop button { color: var(--text); }
.lang-pop button:hover { background: rgba(255,255,255,.06); }
.lang-pop button.on, .sm-box a.on { background: rgba(91,124,255,.12); border-color: rgba(91,124,255,.45); }
.lang-pop button.on::after, .sm-box a.on::after { color: #b9c6ff; }
.toast { background: #1c1c1f; color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.toast.warn { background: #7f1d1d; border-color: #991b1b; }
.rg-cell { background: transparent; border-color: rgba(255,255,255,.16); color: var(--muted); }
.rg-cell.ans { background: var(--pen); border-color: var(--pen); color: #fff; }
.rg-cell.dbl { background: #b91c1c; border-color: #b91c1c; }

/* footer & legal pages */
.site-foot { border-top-color: var(--line); }
.site-foot nav a { color: var(--text); }
.foot-tag { color: var(--muted); }
.legal .te-sum { background: rgba(255,255,255,.05); color: var(--text); }
.legal mark.todo { background: rgba(251,191,36,.2); color: #fcd34d; }
.legal dt { color: var(--muted); }

/* =====================================================================
   THE TEST SCREEN: a dark frame around real paper.
   Booklet = white question paper, OMR = pink answer sheet, filled bubble = blue ball-point pen.
   ===================================================================== */
#screen-exam {
  --card: #ffffff; --text: #1d2230; --muted: #5f6677; --line: #e3e6ee;
  --ink: #1b2a6b; --ink-soft: #3949ab; --pen: #1b2a6b;
  --brand: #3c3489; --brand-dark: #26215c; --brand-soft: #eeedfe;
  --ok: #1e8e3e; --bad: #d93025; --warn: #e37400;
  background: var(--bg);
}
#screen-exam .exam-layout { background: #f7f6f2; min-height: calc(100vh - 52px); }
#screen-exam .booklet { background: #f7f6f2; color: #1d2230; }
/* the bar above the paper stays dark: set its colours explicitly (the paper tokens above are dark-on-light) */
#screen-exam .topbar.exam-bar { color: #f2f2f0; background: #121214; }
#screen-exam .exam-bar .btn { color: #f2f2f0; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
#screen-exam .exam-bar .btn:hover { background: rgba(255,255,255,.14); }
#screen-exam .exam-bar .btn.danger, #screen-exam .exam-bar .btn.primary { background: #f2f2f0; color: #09090b; border-color: #f2f2f0; }
#screen-exam .series-tag b { background: #f2f2f0; color: #09090b; }
#screen-exam .timer { color: #f2f2f0; }
#screen-exam .booklet :is(h1, h2, h3) { color: #26215c; }
#screen-exam .q, #screen-exam .passage { background: #fff; border-color: #e3e6ee; color: #1d2230; }
#screen-exam .passage { background: #f3f4fb; border-color: #d5d9ee; border-left-color: #3949ab; }
#screen-exam :is(.q-text.en + .q-text.te, .q-body.te, .q-opts .te, .passage .te) { color: #37474f; }
#screen-exam .q-num, #screen-exam .q-opts .ol { color: #1b2a6b; }
#screen-exam .q-opts .sep { color: #b0b6c3; }
#screen-exam .q-table th { background: #f3f4f9; }
#screen-exam .q-table th, #screen-exam .q-table td { border-color: #e3e6ee; }
#screen-exam .sec-head { background: #eeedfe; border-left-color: #3c3489; color: #26215c; }
#screen-exam .sec-head .te-inline { color: #3949ab; }
#screen-exam .tag.deleted { background: #fff3e0; color: #e37400; }
#screen-exam .guess-btn { background: #fff; border-color: #b0b6c3; color: #5f6677; }
#screen-exam .guess-btn.on { background: #fff3e0; border-color: #ffb74d; color: #e37400; }
#screen-exam .report-btn { color: #3949ab; background: #f3f4fb; border-color: #c5cae9; }
#screen-exam .star-btn { background: #fff; border-color: #d0d5e2; color: #555; }
#screen-exam .star-btn.on { background: #fff8e1; border-color: #ffd54f; color: #7a4b00; }
#screen-exam #booklet .q-opts li:hover { background: #f4f3fd; }
#screen-exam #booklet .q-opts li.is-answer { background: #e1f5ee; }
#screen-exam #booklet .q-opts li.is-wrong-pick { background: #fcebeb; }
#screen-exam .learn-fb { border-color: #e3e6ee; color: #1d2230; }
#screen-exam .learn-fb.good { background: #f2fbf7; border-color: #9fe1cb; }
#screen-exam .learn-fb.bad { background: #fdf5f4; border-color: #f7c1c1; }
#screen-exam .explain { background: #fffde7; border-color: #fff59d; color: #1d2230; }
#screen-exam .explain .te { color: #4e4a2a; }
#screen-exam .opt-notes { background: #eef5fc; border-color: #cfe2f5; }
#screen-exam .opt-notes summary, #screen-exam .opt-notes .ol { color: #1a4d7a; }
#screen-exam .opt-notes .te { color: #444; }
#screen-exam .booklet .btn { background: #e8eaf6; color: #1b2a6b; border-color: transparent; }
#screen-exam .booklet .btn.primary { background: #1b2a6b; color: #fff; }
#screen-exam .omr .btn.ghost, #screen-exam .quickbar .btn.ghost { color: var(--omr-ink); border-color: var(--omr-line); background: transparent; }
#screen-exam .bubble { background: #fff; }
#screen-exam .bubble.filled { background: #1b2a6b; border-color: #1b2a6b; }
#screen-exam .row-double .bubble.filled { background: #4a148c; border-color: #4a148c; }
#screen-exam .omr-timer { color: #1b2a6b; }
#screen-exam .banner.warnbox { background: #fff8e1; color: #5d4500; border-color: #ffe082; }
#screen-exam .banner.warnbox .te { color: #6d5a1f; }
#screen-exam .banner.bad { background: #fdecea; color: #a50e0e; border-color: #f5c2bd; }
#screen-exam .banner.info { background: #e8f0fe; color: #174ea6; border-color: #c6dafc; }
#screen-exam .card { background: #fff; border-color: #e3e6ee; color: #1d2230; }
#screen-exam .booklet a { color: #3949ab; }

/* Home page in "English + తెలుగు" mode: keep the top bar, menu rows and buttons on one line (English only there) */
html[data-ui="both"] #screen-landing :is(.dk-links, .dk-right, .dk-btn, .dk-sheetnav nav, .dk-pnext, .dk-when, .dk-kick) span.te { display: none !important; }
html[data-ui="both"] #screen-landing span.te { color: #c7d0ff; }
html[data-ui="te"] #screen-landing :is(h1, h2) { font-family: var(--te-font); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
#screen-landing [data-setui].on { background: #f2f2f0; color: #09090b; border-color: #f2f2f0; }
html[data-ui="te"] #screen-landing h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
html[data-ui="te"] #screen-landing h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
html[data-ui="both"] #screen-landing :is(h1, h2) span.te { font-family: var(--te-font); font-size: .42em; font-style: normal; line-height: 1.5; margin-top: .7rem; opacity: .9; }

/* phones: the Start / Resume buttons stay in view while the student reads the chosen test's details (review 29 Nov 2026) */
@media (max-width: 700px) {
  .mock-card .actions { position: sticky; bottom: 0; z-index: 5; margin: 1rem -1.2rem -1.1rem; padding: .7rem 1.2rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(20,20,22,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
}

/* =====================================================================
   READABILITY + TAP SIZES (expert review 29 Nov 2026): nothing smaller than ~13px,
   touch targets about 40-44px on phones.
   ===================================================================== */
.mp-meta, .upd-date, .upd-tag, .qnote, .rg-legend, .tag, .badge, .lock, .free, .trust-tag, .legend, .omr-sec-label, .streak-bar .te { font-size: .82rem; }
.trend .tl { font-size: 12px; }
.menu-btn, .topbar .menu-btn { min-width: 44px; min-height: 44px; }
.topbar .btn.small { min-height: 40px; }
.guess-btn, .star-btn, .report-btn { min-height: 36px; padding-top: .35rem; padding-bottom: .35rem; }
.task .tick { width: 40px; height: 40px; }
.choice input[type="radio"], .choice input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 900px) {
  #screen-exam .omr .bubble { width: 40px; height: 40px; font-size: .9rem; }
  .btn.small { min-height: 40px; }
}

/* Language choice exists only inside an exam with Telugu (APPSC). On the general website pages the menu hides it. */
html[data-scope="general"] #site-menu :is(.sm-lang, [data-setui]) { display: none !important; }


/* ===== re-review fixes (29 Nov 2026) ===== */
/* language pop-up never runs off a phone screen */
@media (max-width: 480px) { .lang-pop { left: 12px !important; right: 12px !important; width: auto !important; } }
/* consent line: Telugu under the English, not jammed into it */
html:not([data-ui="en"]) .agree span.te { display: block; font-size: .92em; margin-top: .15rem; }
/* bigger tap targets */
.agree input { width: 22px; height: 22px; }
.chip { min-height: 40px; }
.site-foot nav a { display: inline-block; padding: .55rem .15rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ===== round-3 review (29 Nov 2026) ===== */
/* phones: the Help button becomes a small round "?" above the bottom bars, so it never covers buttons or cards */
@media (max-width: 700px) {
  .help-fab { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; place-items: center; }
  .help-fab::before { content: "?"; font-size: 1.25rem; font-weight: 700; }
  /* test details: facts in two columns so the panel is short */
  #mock-facts { grid-template-columns: 1fr 1fr; }
  /* tips during a test appear at the top, never over the answer options */
  .toast { top: calc(60px + env(safe-area-inset-top)); bottom: auto; }
}

/* planner chips: wrap neatly; a chosen section shows a tick */
.seg-wrap { flex-wrap: wrap; }
.seg input:checked + span::before { content: "✓ "; font-weight: 700; }

/* accessibility round 4 (29 Nov 2026): rings only for keyboard users, 44px tap targets */
:focus:not(:focus-visible) { outline: none; }
h1:focus, h2:focus, h3:focus, .brand:focus, main:focus { outline: none; }
:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }
.btn.small, .exam-bar .btn, .quickbar button, .topbar .btn { min-height: 44px; }

/* design round 4 (29 Nov 2026) */
/* during a test, messages sit at the bottom so they never cover the OMR series row or the first question */
#screen-exam:not([hidden]) ~ .toast { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
/* desktop: app screens use more of a wide window */
@media (min-width: 1024px) {
  #screen-home .wrap, #screen-result .wrap, #screen-progress .wrap, #screen-planner .wrap, #screen-practice .wrap { max-width: 880px; }
}
#screen-exam:not([hidden]) ~ .toast { left: 12px; right: 12px; max-width: none; transform: none; }
/* test screen: slimmer top bar (one-line buttons), bigger option rows for crossing out */
.exam-bar .bar-actions .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
#booklet .q-opts li { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 480px) {
  .exam-bar { gap: 6px; }
  .exam-bar .bar-actions { gap: 6px; }
  .exam-bar .bar-actions .btn { padding-left: 10px; padding-right: 10px; }
  .exam-bar .series-tag { font-size: 12px; line-height: 1.15; }
}
@media (max-width: 370px) {
  .exam-bar .bar-actions .btn { padding-left: 8px; padding-right: 8px; }
  .exam-bar .timer { font-size: 1rem; }
}

/* review round 5 (29 Nov 2026): 44px test controls, Submit kept apart, readable OMR letters */
#screen-exam .quickbar .bubble, #screen-exam .omr .bubble { width: 44px; height: 44px; font-size: 14px; }
#screen-exam .exam-bar .btn { min-height: 44px; }
#screen-exam .exam-bar .bar-actions .btn.danger, #screen-exam .exam-bar .bar-actions .btn.primary { margin-left: 10px; }
#screen-exam .guess-btn { min-height: 44px; }
.bubble { font-size: 14px; }
.tab { min-height: 44px; }
.src-link { display: inline-block; padding: 12px 4px; margin: -8px 0; }
body.omr-lock { overflow: hidden; }
.score-take { margin: 10px 0 0; font-size: 1rem; color: var(--text); }
#series-banner:empty { display: none; }
#series-banner .banner { margin-top: 12px; }
/* the help button stays out of the way during a test */
#screen-exam:not([hidden]) ~ .help-fab, body:has(#screen-exam:not([hidden])) .help-fab { display: none; }

/* review round 6 (29 Nov 2026) */
/* phones: Help lives in the ☰ menu, so the floating "?" never covers content */
@media (max-width: 480px) { .help-fab { display: none !important; } }
/* messages on phones sit at the bottom, clear of headings */
@media (max-width: 480px) { .toast { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); } }
/* result tiles: an odd last tile spans the full row */
.stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
