/* MCQsExam – online examination & certification pages (uses the tokens from app.css). */

/* ---------- Shared bits ---------- */
.section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.req { color: var(--bad); }
.field-opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.status-pill.is-valid { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.status-pill.is-revoked { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-border); }
.status-pill.is-progress { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rule-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.rule-list .bi { color: var(--brand-600); font-size: 1.1rem; flex: none; margin-top: 1px; }
.exam-side { display: grid; gap: 16px; align-content: start; }
.exam-side .panel + .panel { margin-top: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; word-break: break-word; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Landing ---------- */
.exam-hero { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; align-items: center; background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 28px; }
.exam-hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 8px; }
.exam-hero .lead { color: var(--muted); max-width: 640px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.steps li > span { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-600); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.steps strong { display: block; }
.steps small { color: var(--muted); }
@media (max-width: 860px) { .exam-hero { grid-template-columns: 1fr; padding: 20px; } }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.test-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s, border-color .15s; }
.test-card:hover { box-shadow: var(--shadow); border-color: #bbf7d0; transform: translateY(-2px); }
.test-card-top { display: flex; justify-content: space-between; align-items: center; }
.test-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; }
.test-card h3 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.test-card h3 a { color: var(--ink); }
.test-meta { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; color: var(--muted); font-size: .9rem; flex: 1; }
.test-meta .bi { color: var(--brand-600); margin-right: 4px; }

/* ---------- Start page ---------- */
.exam-start-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .exam-start-grid { grid-template-columns: 1fr; } }
.exam-form { padding: 24px; }
.len-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.len-card { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: center; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 2px; }
.len-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.len-card:hover { border-color: #86efac; }
.len-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.len-card:has(input:focus-visible) { outline: 3px solid rgba(34, 197, 94, .45); outline-offset: 2px; }
.len-num { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.len-lbl { color: var(--muted); font-size: .82rem; }
.len-time { font-size: .82rem; font-weight: 600; color: var(--brand); margin-top: 4px; }
.choice-note { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--brand-50); border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 14px; font-size: .93rem; }

/* ---------- Examination screen ---------- */
body.exam-mode { background: #f3f4fb; min-height: 100vh; }
.no-select, .no-select * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.exam-watermark { position: fixed; inset: -20%; pointer-events: none; z-index: 1; display: flex; flex-wrap: wrap; gap: 70px 90px; align-content: flex-start; transform: rotate(-24deg); opacity: .05; font-weight: 700; font-size: 15px; color: #052e16; overflow: hidden; }
.exam-watermark span { white-space: nowrap; }
.exam-bar { position: sticky; top: 0; z-index: 30; background: #052e16; color: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); }
.exam-bar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.exam-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.exam-brand strong { display: block; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-brand small { display: block; color: #bbf7d0; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-brand > div { min-width: 0; }
.exam-bar .brand-mark { flex: none; }
.exam-timer { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 14px; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.exam-timer.is-warn { background: #b45309; border-color: #f59e0b; }
.exam-timer.is-danger { background: #b91c1c; border-color: #f87171; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, .25); } }
@media (prefers-reduced-motion: reduce) { .exam-timer.is-danger { animation: none; } }
.exam-progress { height: 4px; background: rgba(255, 255, 255, .12); }
.exam-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ade80, #22d3ee); transition: width .25s; }
.exam-layout { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 20px 16px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.exam-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.exam-stats strong { color: var(--ink); }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; min-height: 340px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.q-num { background: var(--brand-50); color: var(--brand); font-weight: 800; border-radius: 10px; padding: 4px 12px; }
.flag-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.flag-btn:hover { background: #fffbeb; border-color: #fcd34d; }
.flag-btn.is-on { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.q-text { font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); font-weight: 700; line-height: 1.5; margin: 0 0 18px; color: var(--ink); }
.q-text[dir="rtl"] { font-family: var(--font-urdu); font-size: 1.45rem; line-height: 2; }
.q-options { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 1rem; color: var(--ink); transition: border-color .12s, background-color .12s, box-shadow .12s; }
.q-opt:hover { border-color: #86efac; background: #fafaff; }
.q-opt:focus-visible { outline: 3px solid rgba(34, 197, 94, .45); outline-offset: 2px; }
.q-opt .opt-key { width: 32px; height: 32px; border-radius: 9px; background: #f1f5f9; color: var(--ink-2); font-weight: 800; display: grid; place-items: center; flex: none; }
.q-opt.is-selected { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.q-opt.is-selected .opt-key { background: var(--brand-600); color: #fff; }
.q-save { min-height: 1.4em; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.q-save.is-ok { color: var(--ok); }
.q-save.is-bad { color: var(--bad); }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.exam-panel { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 16px; }
.exam-panel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.exam-panel h2 { font-size: 1rem; font-weight: 800; margin: 0; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; padding: 2px; }
.pal { height: 38px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; color: var(--ink-2); position: relative; }
.pal:hover { border-color: #86efac; }
.pal.is-answered { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pal.is-flagged::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; border: 2px solid #fff; }
.pal.is-current { outline: 3px solid rgba(34, 197, 94, .45); outline-offset: 1px; }
.legend { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--line); vertical-align: -2px; margin-right: 4px; }
.legend .dot.is-answered { background: var(--brand-600); border-color: var(--brand-600); }
.legend .dot.is-flagged { background: #f59e0b; border-color: #f59e0b; border-radius: 50%; }
.palette-toggle { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 35; border-radius: 999px; box-shadow: var(--shadow-lg); }
@media (max-width: 991.98px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-panel { position: fixed; inset: auto 0 0 0; top: auto; border-radius: 20px 20px 0 0; z-index: 40; transform: translateY(105%); transition: transform .25s; max-height: 80vh; overflow: auto; }
  body.panel-open .exam-panel { transform: none; }
  body.panel-open .exam-layout::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 39; }
}
@media (max-width: 575.98px) {
  .q-card { padding: 16px; border-radius: 14px; }
  .exam-timer { font-size: 1.05rem; padding: 5px 10px; }
  .q-nav .btn { padding: .55rem .7rem; }
}
.exam-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .62); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.exam-overlay[hidden] { display: none; }
.overlay-card { background: #fff; border-radius: 20px; padding: 26px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.overlay-card h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 14px; }
.overlay-card .rule-list { margin-bottom: 20px; }
.exam-toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 70; background: #7f1d1d; color: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow-lg); max-width: min(92vw, 520px); font-weight: 600; font-size: .93rem; }
body.is-hidden-screen .exam-layout { filter: blur(14px); }
@media print { body.exam-mode * { display: none !important; } body.exam-mode::after { content: "Printing is not allowed during the examination."; display: block; padding: 40px; font: 20px sans-serif; } }

/* ---------- Result ---------- */
.result-hero { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.result-hero.is-pass { background: linear-gradient(135deg, #ecfdf5, #fff 55%); border-color: var(--ok-border); }
.result-hero.is-fail { background: linear-gradient(135deg, #fef2f2, #fff 55%); border-color: var(--bad-border); }
.result-hero h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 6px 0; letter-spacing: -.02em; }
.result-badge { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 4px 12px; }
.is-pass .result-badge { background: var(--ok); color: #fff; }
.is-fail .result-badge { background: var(--bad); color: #fff; }
.score-ring { --p: 0; --c: var(--ok); width: 128px; height: 128px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0); }
.is-fail .score-ring { --c: var(--bad); }
.score-ring span { width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
@media (max-width: 575.98px) { .result-hero { flex-direction: column; text-align: center; } }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .result-grid { grid-template-columns: 1fr; } }
.cert-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 800; background: var(--brand-50); color: var(--brand); border-radius: 10px; padding: 8px 12px; text-align: center; letter-spacing: .04em; }
.review { margin-top: 16px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review-item { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.review-item.is-right { border-left-color: var(--ok); }
.review-item.is-wrong { border-left-color: var(--bad); }
.review-item.is-skip { border-left-color: #f59e0b; }
.rq { font-weight: 600; margin: 0 0 8px; }
.rq-n { color: var(--muted); }
.ropts { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.ropt { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 6px 10px; background: #f8fafc; font-size: .94rem; }
.ropt .opt-key { width: 26px; height: 26px; border-radius: 7px; background: #e2e8f0; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.ropt .bi { margin-left: auto; }
.ropt.is-correct { background: var(--ok-bg); color: #064e3b; }
.ropt.is-correct .bi { color: var(--ok); }
.ropt.is-chosen { background: var(--bad-bg); color: #7f1d1d; }
.ropt.is-chosen .bi { color: var(--bad); }

/* ---------- Verification ---------- */
.verify-wrap { max-width: 860px; margin: 0 auto; }
.verify-wrap .lead { max-width: 620px; }
.crumbs.justify-content-center { display: flex; justify-content: center; }
.verify-form { display: flex; gap: 10px; padding: 14px; margin-bottom: 20px; }
.verify-form input { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
@media (max-width: 575.98px) { .verify-form { flex-direction: column; } }
.verify-result { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.verify-result.is-valid { border-color: var(--ok-border); border-top: 6px solid var(--ok); }
.verify-result.is-revoked, .verify-result.is-tampered { border-color: var(--bad-border); border-top: 6px solid var(--bad); }
.verify-result.is-notfound, .verify-result.is-invalid, .verify-result.is-limited { border-top: 6px solid #f59e0b; }
.verify-status { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.verify-status h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.verify-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; flex: none; background: #fffbeb; color: #b45309; }
.is-valid .verify-icon { background: var(--ok-bg); color: var(--ok); }
.is-revoked .verify-icon, .is-tampered .verify-icon { background: var(--bad-bg); color: var(--bad); }
.verify-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.verify-details > div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.verify-details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.verify-details dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.verify-details dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
@media (max-width: 575.98px) { .verify-details { grid-template-columns: 1fr; } .verify-details > div:nth-child(odd) { border-right: 0; } }
.verify-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verify-info .panel + .panel { margin-top: 0; }
@media (max-width: 768px) { .verify-info { grid-template-columns: 1fr; } }

/* ---------- My certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-600); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.cert-card.is-revoked { border-top-color: var(--bad); opacity: .85; }
.cert-card h3 { font-size: 1.05rem; font-weight: 700; margin: 10px 0 4px; }
.cert-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }

/* Topic (sub-subject) picker on the start page */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.topic-grid.is-invalid { outline: 2px solid var(--bad, #dc2626); outline-offset: 4px; border-radius: 12px; }
.topic-card { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; cursor: pointer; font-size: .93rem; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.topic-card[hidden] { display: none; }
.topic-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic-card:hover { border-color: #86efac; }
.topic-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbd5e1; display: grid; place-items: center; color: #fff; font-size: .8rem; background: #fff; }
.topic-check::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.topic-name { flex: 1; min-width: 0; color: var(--ink); }
.topic-count { flex: none; font-size: .78rem; font-weight: 600; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.topic-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.topic-card:has(input:checked) .topic-check { background: var(--brand-600); border-color: var(--brand-600); }
.topic-card:has(input:checked) .topic-check::after { opacity: 1; }
.topic-card:has(input:focus-visible) { outline: 3px solid rgba(34, 197, 94, .45); outline-offset: 2px; }
.topic-tools { display: flex; gap: 4px; }
.topic-summary { color: var(--ink-2); font-weight: 500; }
.topic-search { max-width: 320px; }
.len-card.is-disabled { opacity: .45; cursor: not-allowed; }
.len-card.is-disabled input { cursor: not-allowed; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.topic-chips li { font-size: .8rem; background: var(--brand-50); color: var(--brand-600); border-radius: 999px; padding: 2px 10px; }

/* Review all answers before submitting */
.review-card { max-width: 860px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 22px 24px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-head h2 { margin-bottom: 4px; }
.review-sub { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.review-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rv-stat { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .88rem; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.rv-stat strong { color: var(--ink); }
.rv-stat.is-static { cursor: default; }
.rv-stat.is-ok strong { color: var(--ok, #16a34a); }
.rv-stat.is-open strong { color: var(--bad, #dc2626); }
.rv-stat.is-flag strong { color: #d97706; }
.rv-stat.is-active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-600); }
.review-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; flex: 1; min-height: 120px; border-top: 1px solid var(--line); }
.rv-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.rv-item.is-open { background: linear-gradient(90deg, rgba(220, 38, 38, .05), transparent 60%); }
.rv-num { font-weight: 700; font-size: .82rem; color: var(--brand-600); background: var(--brand-50); border-radius: 8px; padding: 3px 8px; min-width: 44px; text-align: center; align-self: start; margin-top: 2px; }
.rv-main { min-width: 0; }
.rv-q { margin: 0 0 4px; font-weight: 600; color: var(--ink); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-a { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.rv-key { font-weight: 700; font-size: .78rem; background: #dcfce7; color: var(--brand-600); border-radius: 6px; padding: 1px 7px; }
.rv-none { font-weight: 600; font-size: .8rem; color: var(--bad, #dc2626); background: rgba(220, 38, 38, .08); border-radius: 999px; padding: 1px 10px; }
.rv-flag { font-weight: 600; font-size: .78rem; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 1px 10px; }
.rv-empty { padding: 24px 4px; color: var(--muted); text-align: center; }
.review-note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); }
.review-note.is-warn { color: var(--bad, #dc2626); font-weight: 600; }
.review-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.review-foot .btn { flex: 1; max-width: 240px; }
@media (max-width: 575.98px) {
  .review-card { padding: 18px 14px; border-radius: 16px; }
  .rv-item { grid-template-columns: 1fr auto; }
  .rv-num { grid-column: 1 / -1; justify-self: start; }
  .review-foot .btn { max-width: none; }
}
.rv-a { flex-wrap: nowrap; align-items: flex-start; }
.rv-text { flex: 1 1 auto; min-width: 0; }
.rv-key, .rv-flag, .rv-none { flex: none; }

/* Signature on the verification page */
.verify-signature { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4px auto 14px; max-width: 280px; }
.verify-sig-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.verify-sig-img { max-width: 220px; max-height: 72px; width: auto; height: auto; user-select: none; -webkit-user-drag: none; }
.verify-sig-line { display: block; width: 100%; border-top: 1.5px solid var(--ink); margin: 4px 0 6px; }
.verify-signature strong { font-size: .95rem; color: var(--ink); }
.verify-signature small { color: var(--muted); font-size: .82rem; }
