/* =========================================================
   PYQ Saarthi — AJ हिंGLISH Academy theme
   Mobile-first single column (max 560px), same blue + orange
   as the AJ CBT Portal.
   ========================================================= */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-wash: #eef4ff;
  --blue-line: #dbeafe;
  --orange: #f97316;
  --orange-deep: #ff6f00;
  --orange-wash: #fff7ed;
  --ink: #111827;
  --ink-strong: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --page: #f4f6f9;
  --card: #ffffff;
  --green: #16a34a;
  --green-wash: #dcfce7;
  --green-opt: #22c55e;
  --red: #dc2626;
  --red-wash: #fee2e2;
  --amber-wash: #fef3c7;
  --amber-ink: #92400e;
  --amber-line: #fbbf24;
  --purple: #8b5cf6;
  --purple-wash: #f3e8ff;
  --gold: #ffd21e;
  --grad-blue: linear-gradient(135deg, #2563eb, #1d4ed8);
  --grad-orange: linear-gradient(135deg, #ff9800, #ff6f00);
  --grad-score: linear-gradient(135deg, #082a8d 0%, #0b39b6 45%, #1f63ff 100%);
  --shadow-card: 0 10px 28px rgba(37, 99, 235, .08);
  --shadow-btn: 0 8px 18px rgba(37, 99, 235, .22);
  --r-card: 22px;
  --r-opt: 16px;
  --r-btn: 14px;
  --font: "Mukta", "Noto Sans Devanagari", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

#app { max-width: 560px; margin: 0 auto; padding: 0 14px 40px; min-height: 100vh; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -14px 14px; padding: 10px 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-line);
}
.topbar .back {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--blue-wash); color: var(--blue-dark); font-size: 22px; font-weight: 800;
}
.topbar .t { flex: 1; min-width: 0; }
.topbar .t b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .t small { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--blue-line); background: #fff; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--ink-strong); line-height: 1; }
.brand-name span { color: var(--orange); }
.brand-sub { font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.tg-pill {
  flex: none; padding: 7px 12px; border-radius: 999px;
  background: var(--orange-wash); color: #c2410c; border: 1px solid #fed7aa;
  font-size: 13px; font-weight: 700;
}

/* ---------- Generic ---------- */
.card { background: var(--card); border: 1px solid var(--blue-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-h h2 { font-size: 19px; font-weight: 800; color: var(--ink-strong); }
.section-h span { font-size: 13px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 700; transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .18); }
.btn-soft-orange { background: #fff; color: #ea580c; border: 2px solid #fed7aa; }
.btn-block { width: 100%; }
.empty {
  text-align: center; padding: 34px 20px; color: var(--muted);
  background: var(--card); border: 1px dashed #cbd5e1; border-radius: var(--r-card);
}
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); gap: 14px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--blue-line); border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Home ---------- */
.hero {
  padding: 18px; border-radius: var(--r-card);
  background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-btn);
}
.hero h1 { font-size: 22px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.hero p { font-size: 14px; opacity: .9; margin-top: 4px; }
.search {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 14px; padding: 0 14px; height: 48px;
}
.search span { color: var(--muted); font-size: 18px; }
.search input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.search-results { margin-top: 10px; display: grid; gap: 8px; }
.continue {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; width: 100%; text-align: left;
}
.continue .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--orange-wash); color: var(--orange); display: grid; place-items: center; font-size: 22px; flex: none; }
.continue .tx { flex: 1; min-width: 0; }
.continue .tx small { display: block; font-size: 12px; color: var(--orange); font-weight: 700; letter-spacing: .3px; }
.continue .tx b { display: block; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue .go { color: var(--blue); font-size: 22px; font-weight: 800; }

.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.subject {
  position: relative; text-align: left; padding: 14px; min-height: 112px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.subject .si {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-wash); color: var(--blue-dark); font-size: 21px; font-weight: 800;
}
.subject b { font-size: 16px; line-height: 1.25; display: block; }
.subject small { font-size: 12.5px; color: var(--muted); }
.subject.soon { opacity: .62; box-shadow: none; }
.soon-badge {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--orange-wash); color: #c2410c;
}

.mock-list { display: grid; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; width: 100%; }
.mock-row .num {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; font-weight: 800; font-size: 17px;
}
.mock-row .tx { flex: 1; min-width: 0; }
.mock-row .tx b { display: block; font-size: 15.5px; line-height: 1.3; }
.mock-row .tx small { font-size: 12.5px; color: var(--muted); }
.mock-row .st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex: none; }
.st-new { background: var(--blue-wash); color: var(--blue-dark); }
.st-done { background: var(--green-wash); color: #15803d; }
.st-live { background: var(--amber-wash); color: var(--amber-ink); }

.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; line-height: 1.6; }
.footer b { color: var(--ink); }

/* ---------- Subject / topic list ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #e8eef9; border-radius: 16px; }
.tab { height: 44px; border-radius: 12px; font-weight: 800; font-size: 16px; color: #475569; }
.tab.on { background: #fff; color: var(--blue-dark); box-shadow: 0 4px 12px rgba(37, 99, 235, .14); }
.tab small { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 4px; }
.filter-in {
  margin-top: 12px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #cbd5e1; background: #fff; font: inherit; font-size: 15px; color: var(--ink);
}
.filter-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.topic-list { display: grid; gap: 8px; margin-top: 12px; }
.topic-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; width: 100%; }
.topic-row .n { width: 30px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.topic-row .tx { flex: 1; min-width: 0; }
.topic-row .tx b { display: block; font-size: 16px; line-height: 1.3; }
.topic-row .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.bar { flex: 1; height: 6px; border-radius: 6px; background: #e8eef9; overflow: hidden; max-width: 140px; }
.bar i { display: block; height: 100%; background: var(--green-opt); border-radius: 6px; }
.topic-row .go { color: var(--blue); font-size: 20px; font-weight: 800; }

/* ---------- Topic hub ---------- */
.hub-head { padding: 18px; }
.hub-head .crumb { font-size: 13px; color: var(--muted); }
.hub-head h1 { font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--ink-strong); margin-top: 2px; text-wrap: balance; }
.hub-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.hub-stats div { text-align: center; border-right: 1px solid var(--line); }
.hub-stats div:last-child { border-right: none; }
.hub-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-stats small { font-size: 12px; color: var(--muted); }
.mode-cards { display: grid; gap: 12px; margin-top: 14px; }
.mode { display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-align: left; width: 100%; }
.mode .mi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex: none; }
.mode.practice .mi { background: var(--green-wash); }
.mode.test .mi { background: var(--blue-wash); }
.mode b { font-size: 18px; font-weight: 800; display: block; }
.mode p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mode .cta { display: inline-block; margin-top: 8px; font-weight: 800; font-size: 14.5px; }
.mode.practice .cta { color: var(--green); }
.mode.test .cta { color: var(--blue); }
.sizes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.size {
  min-width: 64px; height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 800; font-size: 15px;
  background: var(--blue-wash); color: var(--blue-dark); border: 1px solid var(--blue-line);
}
.size.on { background: var(--grad-blue); color: #fff; border-color: transparent; }
.test-rule { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Question blocks (practice + exam + review) ---------- */
.q-card { padding: 14px 14px 16px; }
.q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.q-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .2);
}
.q-src { font-size: 12px; font-weight: 600; color: #c2410c; background: var(--orange-wash); padding: 2px 8px; border-radius: 999px; }
.q-text { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: break-word; }
.opts { display: grid; gap: 8px; margin-top: 12px; }
.opt {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 4px;
  padding: 12px 14px; min-height: 52px; border-radius: var(--r-opt);
  background: #fff; border: 1px solid var(--blue-line); color: var(--ink);
  font-size: 16px; line-height: 1.45; transition: border-color .15s, background .15s;
}
.opt .l { font-weight: 700; }
.opt .tx { overflow-wrap: break-word; min-width: 0; }
.opt:hover:not(:disabled) { border-color: #93c5fd; background: #f8fbff; }
.opt:disabled { cursor: default; }
.opt.sel { background: var(--blue-wash); border: 2px solid var(--blue); color: var(--blue-dark); font-weight: 700; }
.opt.ok { background: #4caf50; border-color: #41b35d; color: #fff; }
.opt.bad { background: #f44336; border-color: #ef5350; color: #fff; }
.opt.e-opt { color: #475569; }
.opt .tag {
  position: absolute; top: -9px; right: 10px; padding: 0 8px; border-radius: 6px;
  background: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.5;
}
.opt.ok .tag { color: #43a047; }
.opt.bad .tag { color: #f44336; }
.opt .tag.neutral { color: #757575; }
.verdict { margin-top: 12px; font-weight: 800; font-size: 15px; }
.verdict.ok { color: var(--green); }
.verdict.bad { color: var(--red); }
.explain {
  margin-top: 10px; padding: 14px 16px; border-radius: 18px;
  background: #fbfdff; border: 1px solid var(--blue-line); border-left: 4px solid var(--blue);
}
.explain h4 { color: var(--blue-dark); font-size: 16px; font-weight: 800; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.explain .body { font-size: 16px; line-height: 1.6; color: #222; overflow-wrap: break-word; }
.tadka-row { text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tadka-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 999px;
  background: var(--grad-orange); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 6px 18px rgba(255, 152, 0, .35);
}

/* ---------- Practice ---------- */
.practice-head { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.practice-head .tx { flex: 1; min-width: 0; }
.practice-head b { font-size: 15px; display: block; }
.practice-head small { font-size: 12.5px; color: var(--muted); }
.score-chip { display: flex; gap: 6px; flex: none; }
.score-chip span { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-chip .c { background: var(--green-wash); color: #15803d; }
.score-chip .w { background: var(--red-wash); color: var(--red); }
.practice-list { display: grid; gap: 12px; margin-top: 12px; }
.pager { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 14px; scrollbar-width: none; }
.pager::-webkit-scrollbar { display: none; }
.pg {
  flex: none; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid var(--blue-line); color: #374151;
}
.pg.on { background: var(--grad-blue); color: #fff; border-color: transparent; }
.pg.done { border-color: #86efac; background: #f0fdf4; color: #15803d; }
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.reset-link { display: block; margin: 16px auto 0; color: var(--muted); font-size: 14px; text-decoration: underline; }

/* ---------- Exam (CBT) ---------- */
.exam-header {
  padding: 4px 14px 8px; margin: 10px 0 6px; background: #fff; border: 1px solid var(--blue-line);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.exam-header .logo-row { display: flex; justify-content: center; }
.exam-header .logo-row img { width: 60px; height: 60px; border-radius: 50%; }
.exam-header .info-row { display: flex; justify-content: space-between; align-items: center; margin-top: -8px; }
.timer {
  min-width: 82px; height: 40px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad-blue); color: #fff; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.timer.low { background: linear-gradient(135deg, #ef4444, #dc2626); }
.grid-btn {
  width: 40px; height: 40px; border-radius: 14px; background: var(--blue);
  display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px);
  justify-content: center; align-content: center; gap: 4px; box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.grid-btn span { width: 6px; height: 6px; background: #fff; border-radius: 1px; }
.exam-title { text-align: center; color: var(--orange); font-size: 16px; font-weight: 700; line-height: 1.25; margin: 4px 0 8px; }
.exam-title::after { content: ""; display: block; width: 120px; height: 4px; margin: 6px auto 0; border-radius: 20px; background: var(--blue); }
.exam-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.exam-actions button { height: 50px; border-radius: var(--r-btn); font-weight: 700; font-size: 15px; }
.a-prev { background: #fff; color: var(--blue); border: 2px solid var(--blue) !important; }
.a-review { background: var(--amber-wash); color: var(--amber-ink); border: 1px solid var(--amber-line) !important; }
.a-next { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-btn); }
.a-prev:disabled { opacity: .45; }

.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 100;
  background: #fff; box-shadow: -4px 0 15px rgba(0, 0, 0, .15);
  display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.drawer-head .back { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--blue-line); color: var(--blue-dark); font-size: 26px; font-weight: 900; box-shadow: 0 8px 22px rgba(37, 99, 235, .18); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.pal-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-content: start; padding: 2px 2px 12px; }
.pal {
  position: relative; height: 42px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  background: #e5e7eb; color: #374151; font-variant-numeric: tabular-nums;
}
.pal.cur { outline: 2px solid var(--blue); outline-offset: 2px; }
.pal.ans { background: var(--green-opt); color: #fff; }
.pal.e { background: var(--purple); color: #fff; }
.pal.ok { background: #2ecc71; color: #fff; }
.pal.bad { background: #ff4d4d; color: #fff; }
.pal .star { position: absolute; top: 0; right: 3px; font-size: 11px; color: #ffd700; text-shadow: 0 0 2px #000; }
.drawer-foot { padding-top: 12px; border-top: 1px solid #eef2f7; }

.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal { width: min(340px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.m-row { display: flex; justify-content: space-between; padding: 11px 18px; border-bottom: 1px solid #ececec; font-size: 15px; color: #6b7280; }
.m-row b { color: #222; font-variant-numeric: tabular-nums; }
.m-row.time b { color: var(--blue); }
.m-text { padding: 18px 20px 14px; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.4; }
.m-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 18px; }
.m-btns button { height: 44px; border-radius: 8px; font-weight: 700; }
.m-yes { background: #3b82f6; color: #fff; }
.m-no { background: #9fb7c4; color: #fff; }
.tadka-card { max-width: 430px; }
.tadka-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--grad-orange); color: #fff; font-weight: 800; font-size: 17px; }
.tadka-head button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 18px; }
.tadka-body { padding: 20px; line-height: 1.7; color: #374151; }

/* ---------- Instructions ---------- */
.ins-box { text-align: center; padding-top: 16px; }
.ins-box img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; display: block; }
.ins-box h1 { font-size: 30px; font-weight: 800; margin: 10px 0 12px; }
.ins-text { text-align: left; padding: 18px 20px; line-height: 1.75; font-size: 15.5px; }
.ins-text h3 { font-size: 17px; margin-bottom: 6px; }
.ins-text hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.ins-box .btn { margin-top: 18px; min-width: 200px; }

/* ---------- Result ---------- */
.res-title { text-align: center; font-size: 24px; font-weight: 800; color: #1e40af; padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.res-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
.res-brand img { width: 56px; height: 56px; border-radius: 50%; }
.res-brand b { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; }
.res-brand small { font-size: 12.5px; font-weight: 600; }
.res-brand .o { color: var(--orange); }
.res-brand .bl { color: var(--blue-dark); }
.disq { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 12px; padding: 12px 14px; margin: 8px 0; background: #fff8f8; border: 1.5px solid #fecaca; border-radius: 18px; font-size: 13px; line-height: 1.4; }
.disq .dv { background: #fecaca; }
.disq h4 { color: var(--red); font-size: 15px; margin-bottom: 4px; }
.score-banner {
  display: flex; align-items: center; gap: 10px; min-height: 124px; padding: 14px 18px; margin: 10px 0;
  border-radius: var(--r-card); background: var(--grad-score); color: #fff;
  box-shadow: 0 14px 34px rgba(0, 53, 180, .3); overflow: hidden;
}
.score-banner img { width: 86px; height: auto; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22)); }
.score-banner .lbl { font-size: 18px; font-weight: 700; opacity: .95; }
.score-banner .val { font-size: 52px; font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.score-banner .of { font-size: 22px; font-weight: 700; }
.score-banner .pill { display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 999px; background: rgba(79, 125, 255, .9); border: 1px solid rgba(255, 255, 255, .15); font-weight: 700; font-size: 14px; }
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat { background: #fff; border: 1px solid #eef2f7; border-radius: 18px; padding: 10px 4px; text-align: center; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
.stat .ic { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; font-weight: 800; }
.stat .nm { font-size: 12px; font-weight: 700; color: #374151; white-space: nowrap; }
.stat b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .mk { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.stat.c .ic, .stat.c .mk { background: var(--green-wash); color: var(--green); }
.stat.c b { color: var(--green); }
.stat.w .ic, .stat.w .mk { background: var(--red-wash); color: var(--red); }
.stat.w b { color: var(--red); }
.stat.e .ic, .stat.e .mk { background: var(--purple-wash); color: #7c3aed; }
.stat.e b { color: #7c3aed; }
.stat.n .ic, .stat.n .mk { background: #f1f5f9; color: var(--muted); }
.stat.n b { color: #475569; }
.summary { margin: 10px 0; padding: 12px; }
.summary h4 { font-size: 16px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sum-grid div { text-align: center; border-right: 1px solid var(--line); }
.sum-grid div:last-child { border-right: none; }
.sum-grid small { display: block; font-size: 12px; color: var(--muted); }
.sum-grid b { font-size: 18px; font-variant-numeric: tabular-nums; }
.res-btns { display: grid; gap: 8px; margin-top: 10px; }

/* ---------- Review ---------- */
.rev-head { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.rev-head h2 { font-size: 24px; font-weight: 800; line-height: 1.1; }
.rev-head small { font-size: 14px; color: #6b7280; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip[data-f="all"] { background: #eef2ff; color: var(--blue-dark); }
.chip[data-f="correct"] { background: #ecfdf5; color: #15803d; }
.chip[data-f="wrong"] { background: #fef2f2; color: var(--red); }
.chip[data-f="review"] { background: #fffbeb; color: #ca8a04; }
.chip[data-f="optionE"] { background: var(--purple-wash); color: #7c3aed; }
.chip[data-f="blank"] { background: #f3f4f6; color: #4b5563; }
.chip.on { background: var(--grad-blue) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(37, 99, 235, .22); }
.rev-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.rev-nav button { height: 46px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.rn-prev { background: #e5e7eb; }
.rn-exit { background: #ef4444; color: #fff; }
.rn-next { background: var(--blue); color: #fff; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 300; }

/* ===================== v2: Paper-wise + Topic filter ===================== */
.doors { display: grid; gap: 10px; margin-top: 14px; }
.door { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; width: 100%; }
.door .di { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; flex: none; }
.door b { display: block; font-size: 16.5px; }
.door small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.door .go, .row-btn .go { color: var(--blue); font-size: 22px; font-weight: 800; margin-left: auto; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qk { padding: 11px 12px; text-align: left; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.qk b { display: block; font-size: 14px; color: var(--blue-dark); }
.btabs { display: flex; gap: 6px; padding: 5px; background: #e8eef9; border-radius: 16px; }
.btab { flex: 1; min-width: 0; padding: 8px 4px; border-radius: 12px; font-weight: 800; font-size: 15px; color: #475569; line-height: 1.15; }
.btab small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.btab.on { background: #fff; color: var(--blue-dark); box-shadow: 0 4px 12px rgba(37, 99, 235, .14); }
.btab.soon { opacity: .6; }
.list { display: grid; gap: 8px; margin-top: 12px; }
.row-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left; width: 100%; }
.row-btn .tx { flex: 1; min-width: 0; }
.row-btn b { display: block; font-size: 15.5px; line-height: 1.3; }
.row-btn .meta { font-size: 12.5px; color: var(--muted); }
.yr { font-weight: 800; font-size: 16px; color: var(--blue-dark); margin: 18px 4px 8px; }
.paper { padding: 12px 14px; margin-top: 8px; }
.paper .pt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.paper .pt b { font-size: 15.5px; }
.paper small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn-sm { height: 40px; border-radius: 11px; font-weight: 800; font-size: 14px; background: #fff; color: var(--blue); border: 1.5px solid var(--blue-line); }
.btn-sm.prim { background: var(--grad-blue); color: #fff; border-color: transparent; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.fchip { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid var(--blue-line); color: #374151; }
.fchip small { font-weight: 600; color: var(--muted); margin-left: 2px; }
.fchip.on { background: var(--grad-blue); color: #fff; border-color: transparent; }
.fchip.on small { color: rgba(255, 255, 255, .85); }
.fchip.ghost { border-style: dashed; color: var(--blue); }
.fchip:disabled { opacity: 1; cursor: default; }
.lab { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .3px; margin: 14px 2px 6px; }
.tip { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--blue-wash); font-size: 13.5px; color: #1e3a8a; line-height: 1.5; }
.link { color: var(--blue-dark); font-weight: 800; text-decoration: underline; font-size: inherit; }
.hub-stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; text-align: center; }
.hub-stats-3 div { border-right: 1px solid var(--line); }
.hub-stats-3 div:last-child { border-right: none; }
.hub-stats-3 b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-stats-3 small { font-size: 12px; color: var(--muted); }
.chk-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.chk-row input { width: 18px; height: 18px; }
.result-box { margin-top: 12px; padding: 12px 14px; }
.result-box b { display: block; color: var(--blue-dark); font-size: 16px; }
.result-box small { font-size: 12.5px; color: var(--muted); }
.mode:disabled { opacity: .5; }
.q-rep { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--purple-wash); color: #7c3aed; }
.q-del { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.also { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: #6d28d9; line-height: 1.5; }
.del-note { margin-top: 8px; font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.opt.sug { background: #f59e0b; border-color: #f59e0b; }
.opt.sug .tag { color: #b45309; }
.pal.del { background: #f59e0b; color: #fff; }
.paper.bad { background: #fffbeb; border-color: #fde68a; }
.bad-note { margin-top: 8px; font-size: 13px; color: #92400e; line-height: 1.45; }
.st-bad { background: #fef3c7; color: #92400e; }
.qk.star { grid-column: 1 / -1; background: linear-gradient(135deg, #fff7ed, #ffffff); border-color: #fed7aa; }
.qk.star b { color: #c2410c; }
/* v3: language toggle, progress bar, misc */
.lang { display: flex; flex: none; border: 1px solid var(--blue-line); border-radius: 999px; overflow: hidden; background: #fff; margin-left: auto; }
.lang button { padding: 5px 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.lang button.on { background: var(--grad-blue); color: #fff; }
.topbar .grid-btn { margin-left: auto; }
.topbar .grid-btn + .lang { margin-left: 6px; }
.pbar { height: 6px; border-radius: 6px; background: #e8eef9; overflow: hidden; margin: 6px 0 2px; }
.pbar i { display: block; height: 100%; background: var(--green-opt); }
.soon-card { margin-top: 14px; padding: 12px 14px; background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.soon-card b { display: block; color: #c2410c; font-size: 15px; }
.soon-card small { font-size: 13px; color: var(--muted); }

/* =========== v4: exam selection, groups, topic tabs, chunks =========== */
.home-btn { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--orange-wash); font-size: 17px; margin-left: auto; }
.home-btn + .lang { margin-left: 6px; }
.topbar .grid-btn + .home-btn { margin-left: 6px; }
.selbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--blue-line); margin-bottom: 12px; }
.sb-l { flex: 1; min-width: 0; }
.sb-l small, .pk-now small { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.og { font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--blue-wash); color: #1e3a8a; line-height: 1.4; }
.og b { color: var(--blue-dark); font-weight: 800; }
.og.yr { background: var(--orange-wash); color: #c2410c; }
.sb-add { flex: none; padding: 8px 12px; border-radius: 12px; background: var(--grad-blue, var(--blue)); color: #fff; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.myex { padding: 12px 14px; margin-bottom: 4px; }
.me-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.me-n { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.subject small.mine, .gtile small.mine { color: #c2410c; display: block; }
.subject small.mine b, .gtile small.mine b { font-weight: 800; }
/* picker */
.pk-now { padding: 10px 12px; border-radius: 14px; background: var(--blue-wash); }
.pk-now .link { font-size: 13px; margin-top: 6px; }
.pk-org { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--blue-line); }
.pk-org.soon { background: #f8fafc; }
.pk-oh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pk-oh b { font-size: 16px; font-weight: 800; color: var(--ink-strong); }
.pk-oh small { font-size: 12px; color: var(--muted); }
.soon-b { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--orange-wash); color: #c2410c; margin-left: auto; }
.fchip.dim { color: #94a3b8; border-style: dashed; }
.pk-foot { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--page) 30%); margin-top: 10px; }
.login-note { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: #fefce8; border: 1px solid #fde68a; color: #854d0e; font-size: 13px; line-height: 1.45; }
.modal.big { width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; }
.mb-head { padding: 16px 16px 8px; }
.mb-head b { display: block; font-size: 18px; font-weight: 800; color: var(--ink-strong); line-height: 1.3; }
.mb-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.mb-body { overflow-y: auto; padding: 0 16px 6px; flex: 1; }
.modal.big .login-note { margin: 6px 16px 0; }
.mb-foot { padding: 12px 16px 14px; text-align: center; }
/* family → topic-wise */
.fam-topics { margin-top: 16px; padding: 12px 14px; }
.fam-topics > b { font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ft { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--blue-wash); font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.25; }
.ft span { font-size: 20px; }
.ft small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
/* group tiles */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gtile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1px; padding: 14px; text-align: left; position: relative; overflow: hidden; }
.gtile .gi { position: absolute; top: 12px; left: 12px; font-size: 30px; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-wash); display: grid; place-items: center; }
.gtile b { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--ink-strong); }
.gtile small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.gtile .tc { position: absolute; top: 14px; right: 12px; font-weight: 700; }
/* topic rows with inline buttons */
.trow { margin-bottom: 8px; overflow: hidden; }
.trow-main { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; width: 100%; text-align: left; }
.trow-main .n { width: 26px; font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.trow-main .tx { flex: 1; min-width: 0; }
.trow-main .tx b { display: block; font-size: 15.5px; line-height: 1.3; }
.trow-main .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.trow-main .meta b.mine { display: inline; font-size: 12.5px; color: #c2410c; }
.trow-main .go { color: var(--blue); font-size: 20px; font-weight: 800; }
.trow-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.trow-btns button { padding: 9px 0; font-weight: 800; font-size: 14px; color: var(--blue-dark); }
.trow-btns button + button { border-left: 1px solid var(--line); color: #c2410c; }
.trow.zero { opacity: .55; }
.trow.zero .trow-main { padding-bottom: 12px; }
/* topic page */
.tabs3 { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 8px; }
.t3 { padding: 10px 6px; border-radius: 14px; background: #fff; border: 1.5px solid var(--blue-line); text-align: center; }
.t3 b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.t3 small { font-size: 12px; font-weight: 700; color: var(--muted); }
.t3.on { background: var(--grad-blue, var(--blue)); border-color: transparent; color: #fff; }
.t3.on small { color: rgba(255, 255, 255, .9); }
.t3.add { border-style: dashed; color: var(--blue-dark); }
.t3-sum { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 8px 2px 12px; font-size: 13px; color: var(--muted); }
.t3-sum .own { font-size: 11.5px; font-weight: 800; color: #854d0e; background: #fef9c3; padding: 2px 8px; border-radius: 999px; }
.mode.practice-c, .mode.tests-c { display: block; padding: 14px; margin-bottom: 12px; }
.mc-h { display: flex; gap: 12px; align-items: center; }
.mc-h b { font-size: 17px; font-weight: 800; display: block; }
.mc-h small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.4; }
.pbar.big { height: 8px; margin-top: 12px; }
.mc-stat { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mc-btns .btn-block { grid-column: 1 / -1; }
.mc-btns .btn { padding: 11px 8px; font-size: 14.5px; }
.chunks { margin-top: 10px; }
.chunk { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ck-l { flex: 1; min-width: 0; }
.ck-l b { font-size: 15px; font-weight: 800; }
.ck-l small { display: block; font-size: 12.5px; color: var(--muted); }
.ck-l .ck-s { color: #15803d; font-weight: 700; }
.chunk.done b::after { content: " ✓"; color: var(--green); }
.ck-b { display: flex; gap: 6px; flex: none; }
.ck-h { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ck-h summary { cursor: pointer; color: var(--blue-dark); font-weight: 700; }
.all-done { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--green-wash); color: #14532d; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.rank-lock { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 10px 0; background: linear-gradient(135deg, #fff7ed, #eef4ff); }
.rank-lock .rl-i { font-size: 28px; }
.rank-lock b { display: block; font-size: 15px; font-weight: 800; }
.rank-lock small { font-size: 12.5px; color: var(--muted); }
/* practice */
.practice-head.sticky { position: sticky; top: 62px; z-index: 40; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.practice-head .pbar { margin-top: 6px; }
.ph-reset { width: 36px; height: 36px; border-radius: 10px; background: var(--orange-wash); color: #c2410c; font-size: 20px; font-weight: 800; flex: none; }
.pager { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; margin-top: 14px; align-items: center; }
.pg-arrow { height: 48px; border-radius: 14px; background: var(--grad-blue, var(--blue)); color: #fff; font-size: 26px; font-weight: 800; }
.pg-arrow:disabled { opacity: .35; cursor: default; }
.pager select { height: 48px; border-radius: 14px; border: 1.5px solid var(--blue-line); background: #fff; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); padding: 0 10px; text-align: center; }
.q-card.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(249, 115, 22, .6); } 100% { box-shadow: var(--shadow-card); } }
.resume-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: #0f172a; color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); width: max-content; max-width: calc(100% - 24px); }
.resume-bar button { padding: 6px 10px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; }
.resume-bar button.x { background: transparent; padding: 6px; }
@media (max-width: 360px) { .ft-grid { grid-template-columns: repeat(2, 1fr); } .lang button { padding: 5px 7px; } }
.ck-b .btn-sm { white-space: nowrap; }

/* =========== v6: report + explanation feedback =========== */
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.qid { font-size: 11.5px; color: #94a3b8; font-family: ui-monospace, Menlo, monospace; }
.rep-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.rep-done { font-size: 12.5px; font-weight: 700; color: var(--green); }
.fb { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fb > span { flex: 1; min-width: 150px; }
.fb-btns { display: flex; gap: 8px; }
.fb-btns button { padding: 6px 14px; border-radius: 999px; border: 1.5px solid #99d5c9; background: #eefaf6; color: #0f766e; font-weight: 800; font-size: 13.5px; }
.fb.open { display: block; }
.fb.open > b { display: block; margin-bottom: 8px; }
.fb.done { color: var(--green); font-weight: 700; display: block; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid #99d5c9; background: #eefaf6; color: #134e4a; font-weight: 700; font-size: 13.5px; }
.rchip.on { background: #0f766e; color: #fff; border-color: #0f766e; }
.rtext { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #cbd5e1; font: inherit; font-size: 14px; resize: vertical; }
.rsend { margin-top: 10px; float: right; padding: 9px 18px; }
.rsend:disabled, .rep-modal .m-yes:disabled { opacity: .45; }
.fb.open::after { content: ""; display: block; clear: both; }
.rep-modal { width: min(440px, 100%); }
.rm-head { padding: 16px 16px 6px; }
.rm-head b { display: block; font-size: 17px; }
.rm-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; word-break: break-all; }
.rm-body { padding: 8px 16px 14px; }
.rep-row { padding: 12px 14px; margin-bottom: 10px; }
.rep-row.done { opacity: .55; }
.rr-top { display: flex; justify-content: space-between; gap: 8px; }
.rr-top small { color: var(--muted); font-size: 12px; }
.rr-reason { margin-top: 4px; font-weight: 700; color: #b91c1c; font-size: 13.5px; }
.rr-comment { margin-top: 4px; font-size: 13.5px; color: #334155; }
.rr-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.rr-meta b { color: var(--ink); }
.rr-q { margin: 6px 0 8px; font-size: 13.5px; color: #475569; border-left: 3px solid var(--blue-line); padding-left: 8px; }
.rr-local { color: var(--muted); }
