/* ACAPRS Reviewer 1.0.14 — plain CSS only. No CDN, no framework.
   Palette: journal purple #4B2C5F, gold #C9A24B / #EFD9A4, paper #FFFDF6. */

.acaprs-rv-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; font-family: Cairo, "Segoe UI", Tahoma, sans-serif; line-height: 1.7; color: #222; }
.acaprs-rv-wrap h2 { color: #4B2C5F; }
.acaprs-rv-wrap h3 { color: #4B2C5F; }
.acaprs-rv-wrap h4 { color: #4B2C5F; }

/* ---------- buttons, notices, cards ---------- */
.acaprs-rv-btn { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1px solid #4B2C5F; background: #4B2C5F; color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.acaprs-rv-btn:hover { background: #3a2149; color: #fff; }
.acaprs-rv-btn-ghost { background: #fff; color: #4B2C5F; }
.acaprs-rv-btn-ghost:hover { background: #f0edf3; color: #4B2C5F; }
.acaprs-rv-btn-small { padding: 6px 14px; font-size: 0.9em; }
.acaprs-rv-notice { padding: 12px 16px; border-radius: 12px; margin: 12px 0; }
.acaprs-rv-notice-ok { background: #e8f5e9; border: 1px solid #81c784; }
.acaprs-rv-notice-err { background: #fdecea; border: 1px solid #e57373; }
.acaprs-rv-notice-warn { background: #fff8e1; border: 1px solid #EFD9A4; }
.acaprs-rv-errors { color: #b71c1c; }
.acaprs-rv-card { border: 1px solid #e5e0ea; border-radius: 16px; padding: 18px; margin-bottom: 20px; background: #fff; }
.acaprs-rv-card h3 { margin-top: 0; border-bottom: 3px solid #EFD9A4; padding-bottom: 8px; }
.acaprs-rv-paper-list { list-style: none; padding: 0; }
.acaprs-rv-paper-list li { padding: 10px 0; border-bottom: 1px solid #f0edf3; }
.acaprs-rv-review-row { padding: 10px 0; border-bottom: 1px solid #f0edf3; }
/* ---------- 1.0.14 (H) — dashboard rows: text block + action block ----------
   Every row has its text in .acaprs-rv-row-text and its button(s) in
   .acaprs-rv-row-actions — an organizational layout change, not a
   grid rebuild. The actions block is pushed to the inline-end side
   (margin-inline-start: auto), so the layout mirrors correctly in
   RTL (Arabic) and LTR (English); on narrow screens the two blocks
   stack. Logical properties only — no physical left/right. Applied
   to the dashboard tabs (papers, initial, final, certificate,
   stats, support), the author-report list, and the intake checklist. */
.acaprs-rv-review-row, .acaprs-rv-paper-list li, .acaprs-rv-report-list li, .acaprs-rv-stats li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.acaprs-rv-row-text { flex: 1 1 260px; min-width: 0; }
.acaprs-rv-row-actions { flex: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-inline-start: auto; }
.acaprs-rv-row-actions form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .acaprs-rv-review-row, .acaprs-rv-paper-list li, .acaprs-rv-report-list li, .acaprs-rv-stats li { flex-direction: column; gap: 8px; }
  .acaprs-rv-row-actions { margin-inline-start: 0; }
}
.acaprs-rv-overdue { color: #b71c1c; font-weight: 700; }
.acaprs-rv-days { color: #4B2C5F; font-weight: 700; }
.acaprs-rv-inline-form { display: inline; }
.acaprs-rv-stats { list-style: none; padding: 0; }
.acaprs-rv-stats li { padding: 6px 0; border-bottom: 1px solid #f0edf3; }

/* ---------- 1.0.13 — retraction banner + cancelled certificate ---------- */
.acaprs-rv-retracted-banner { border: 3px solid #b71c1c; background: #fdecea; color: #7f0000; border-radius: 12px; padding: 18px 22px; margin: 16px 0; text-align: center; }
.acaprs-rv-retracted-banner strong { display: block; font-size: 1.4em; letter-spacing: 0.08em; margin-bottom: 8px; }
.acaprs-rv-retracted-banner p { margin: 4px 0; }
.acaprs-rv-cert-cancelled { border: 3px solid #b71c1c; background: #fdecea; border-radius: 16px; padding: 24px 28px; margin: 16px 0; }
.acaprs-rv-cert-cancelled h2 { color: #b71c1c; }
.acaprs-rv-verify-cancelled { color: #b71c1c; font-weight: 700; font-size: 1.25em; }

/* ---------- forms ---------- */
.acaprs-rv-form label { display: block; margin-bottom: 6px; }
.acaprs-rv-form input[type="text"], .acaprs-rv-form input[type="date"], .acaprs-rv-form input[type="number"], .acaprs-rv-form select, .acaprs-rv-form textarea { width: 100%; max-width: 560px; padding: 9px 12px; border: 1px solid #cbbfd6; border-radius: 10px; font: inherit; }
.acaprs-rv-form input[type="number"] { max-width: 140px; }
.acaprs-rv-form input:disabled, .acaprs-rv-form textarea:disabled, .acaprs-rv-form select:disabled { background: #f5f3f7; color: #555; }
.acaprs-rv-check { display: block; margin: 8px 0; font-weight: 400; }
.acaprs-rv-check input { width: auto; margin-inline-end: 8px; }
.acaprs-rv-fieldset { border: 1px solid #e5e0ea; border-radius: 16px; padding: 18px; margin-bottom: 20px; background: #fff; }
.acaprs-rv-fieldset legend { font-weight: 800; color: #4B2C5F; padding-inline: 8px; }
.acaprs-rv-section { border: 1px solid #e5e0ea; border-radius: 14px; margin-bottom: 16px; overflow: hidden; background: #fff; }
.acaprs-rv-section-head { width: 100%; text-align: start; padding: 14px 18px; background: #f0edf3; border: 0; font: inherit; font-weight: 800; color: #4B2C5F; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.acaprs-rv-section-body { padding: 18px; }
.acaprs-rv-criterion { border: 1px solid #efe9f2; border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #FFFDF6; }
.acaprs-rv-criterion h4 { margin-top: 0; }
.acaprs-rv-badge { display: inline-block; background: #4B2C5F; color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 0.85em; font-weight: 700; }
.acaprs-rv-sub { margin-bottom: 12px; }
.acaprs-rv-sub .acaprs-rv-max { color: #4B2C5F; font-weight: 700; }
.acaprs-rv-criterion-subtotal { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #4B2C5F; }
.acaprs-rv-criterion-slider { flex: 1; max-width: 320px; }
.acaprs-rv-total { border: 2px solid #4B2C5F; border-radius: 16px; padding: 18px; margin-bottom: 20px; background: #FFFDF6; text-align: center; }
.acaprs-rv-total h3 { margin-top: 0; }
.acaprs-rv-initial-form { margin-top: 16px; border-top: 2px solid #EFD9A4; padding-top: 16px; }
.acaprs-rv-author-report h4 { color: #4B2C5F; margin-bottom: 4px; }
.acaprs-rv-admin-corr { border: 1px solid #e5e0ea; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }

/* ---------- CSS-only language switcher (Research Manager pattern) ----------
   Hidden radios + <label> buttons. The radios sit inside
   .acaprs-rv-langwrap, before the switcher and the content, so the
   :checked sibling rules swap the language versions with no JS, no
   reload and no URL change. */
.acaprs-rv-langwrap .acaprs-rv-lang-radio { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.acaprs-rv-switcher { display: flex; gap: 8px; margin-bottom: 16px; }
.acaprs-rv-switcher label { padding: 8px 18px; border-radius: 999px; border: 1px solid #4B2C5F; color: #4B2C5F; background: #fff; font-weight: 700; cursor: pointer; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:checked ~ .acaprs-rv-switcher label[data-acaprs-rv-lang="ar"],
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:checked ~ .acaprs-rv-switcher label[data-acaprs-rv-lang="en"] { background: #4B2C5F; color: #fff; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:focus-visible ~ .acaprs-rv-switcher label[data-acaprs-rv-lang="ar"],
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:focus-visible ~ .acaprs-rv-switcher label[data-acaprs-rv-lang="en"] { outline: 2px solid #4B2C5F; outline-offset: 2px; }
/* Dual spans inside one rendered form: show the checked language only. */
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:checked ~ .acaprs-rv-content .acaprs-rv-en { display: none !important; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:checked ~ .acaprs-rv-content .acaprs-rv-ar { display: none !important; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:checked ~ .acaprs-rv-content { direction: ltr; text-align: start; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:checked ~ .acaprs-rv-content { direction: rtl; text-align: start; }
/* Dual certificate versions: show the checked language only. */
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:checked ~ .acaprs-rv-cert-lang[data-acaprs-rv-lang="en"] { display: none !important; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:checked ~ .acaprs-rv-cert-lang[data-acaprs-rv-lang="ar"] { display: none !important; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="ar"]:checked ~ .acaprs-rv-cert-lang[data-acaprs-rv-lang="ar"] { display: block !important; }
.acaprs-rv-langwrap > input.acaprs-rv-lang-radio[value="en"]:checked ~ .acaprs-rv-cert-lang[data-acaprs-rv-lang="en"] { display: block !important; }
/* 1.0.7 — Dual spans inside a dashboard notice error list: the notice
   sits outside the form's langwrap (and the overview has no switcher
   at all), so the :checked rules above cannot reach it. Show the
   page language only, keyed to the wrapper's dir, which the dashboard
   sets from the current language (rtl = Arabic, ltr = English). */
.acaprs-rv-wrap[dir="rtl"] .acaprs-rv-errors .acaprs-rv-en { display: none; }
.acaprs-rv-wrap[dir="ltr"] .acaprs-rv-errors .acaprs-rv-ar { display: none; }

/* ---------- certificate (classic frame, journal style) ---------- */
.acaprs-rv-certificate-print { max-width: 1000px; margin: 0 auto; }
.acaprs-rv-cert-border { border: 3px double #4B2C5F; padding: 6px; background: #FFFDF6; }
.acaprs-rv-cert-frame { border: 1px solid #C9A24B; padding: 28px 36px; position: relative; text-align: center; }
.acaprs-rv-cert-corner { position: absolute; color: #C9A24B; font-size: 20px; }
.acaprs-rv-cert-corner-s { top: 8px; inset-inline-start: 12px; }
.acaprs-rv-cert-corner-e { top: 8px; inset-inline-end: 12px; }
.acaprs-rv-cert-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.acaprs-rv-cert-brand { display: flex; align-items: center; gap: 12px; }
.acaprs-rv-cert-medal { width: 56px; height: 56px; border-radius: 50%; background: #4B2C5F; color: #EFD9A4; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.acaprs-rv-cert-brand-text { display: flex; flex-direction: column; text-align: start; }
.acaprs-rv-cert-brand-text strong { color: #4B2C5F; font-size: 1.15em; }
.acaprs-rv-cert-brand-text span { font-size: 0.8em; letter-spacing: 1px; color: #555; }
.acaprs-rv-cert-pill { border: 1px solid #C9A24B; border-radius: 999px; padding: 6px 14px; display: inline-flex; flex-direction: column; font-size: 0.85em; color: #4B2C5F; }
.acaprs-rv-cert-title { color: #4B2C5F; font-size: 2em; margin: 18px 0 6px; }
.acaprs-rv-cert-pre { margin: 4px 0; color: #444; }
.acaprs-rv-cert-author-name { font-size: 1.6em; font-weight: 800; color: #4B2C5F; }
.acaprs-rv-cert-author-meta { color: #555; margin: 4px 0; }
.acaprs-rv-cert-body { max-width: 720px; margin: 14px auto; line-height: 1.9; }
.acaprs-rv-cert-details { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.acaprs-rv-cert-detail { border: 1px solid #e5e0ea; border-radius: 10px; padding: 8px 14px; background: #fff; display: flex; flex-direction: column; min-width: 150px; }
.acaprs-rv-cert-detail span { font-size: 0.85em; color: #666; }
.acaprs-rv-cert-detail strong { color: #4B2C5F; }
.acaprs-rv-cert-bottom-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.acaprs-rv-cert-sign-col, .acaprs-rv-cert-stamp-col { flex: 1; min-width: 180px; text-align: center; }
.acaprs-rv-cert-sign-col img, .acaprs-rv-cert-stamp-col img { max-height: 110px; max-width: 220px; }
.acaprs-rv-cert-sign-placeholder { color: #999; }
.acaprs-rv-cert-eic-line { margin: 6px 0 0; display: flex; flex-direction: column; }
.acaprs-rv-cert-eic-name { color: #4B2C5F; }
.acaprs-rv-cert-eic-title { font-size: 0.85em; color: #666; }
.acaprs-rv-cert-qr { margin: 0; text-align: center; }
.acaprs-rv-cert-qr img { display: block; margin: 0 auto; }
.acaprs-rv-cert-qr figcaption { font-size: 0.85em; color: #555; }
.acaprs-rv-cert-verify-code { font-weight: 700; color: #4B2C5F; }
.acaprs-rv-cert-verify-line { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.acaprs-rv-cert-verify-line a { color: #4B2C5F; word-break: break-all; }
.acaprs-rv-cert-verify-hint { font-size: 0.85em; color: #666; }
.acaprs-rv-cert-supervision { font-size: 0.85em; color: #666; border-top: 1px solid #EFD9A4; padding-top: 10px; }

/* ---------- verification page ---------- */
.acaprs-rv-verify-frame { max-width: 640px; margin: 40px auto; padding: 24px; border: 1px solid #e5e0ea; border-radius: 16px; background: #fff; }
.acaprs-rv-verify-valid { color: #2e7d32; font-weight: 800; }

/* ---------- author reports (1.0.2) ---------- */.acaprs-rv-report-list { list-style: none; padding: 0; margin: 0; }
.acaprs-rv-report-list li { padding: 10px 0; border-bottom: 1px solid #e5e0ea; }
.acaprs-rv-report-list li:last-child { border-bottom: 0; }
.acaprs-rv-author-report { border: 1px solid #e5e0ea; border-radius: 12px; padding: 16px 20px; background: #FFFDF6; }
.acaprs-rv-verify-invalid { color: #b71c1c; font-weight: 800; }
.acaprs-rv-verify-frame dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.acaprs-rv-verify-frame dt { font-weight: 700; color: #4B2C5F; }
.acaprs-rv-verify-frame dd { margin: 0; }

/* ---------- print: one page, hide floating UI ---------- */
@media print {
  .acaprs-rv-no-print, .acaprs-rv-switcher, .acaprs-rv-btn, .acaprs-rv-sticky-total, .acaprs-rv-sticky-placeholder { display: none !important; }
  .acaprs-rv-certificate-print { max-width: none; width: 100%; }
  .acaprs-rv-cert-frame { border: 3px double #4B2C5F; padding: 10mm 18mm; page-break-inside: avoid; }
  @page { size: A4 landscape; margin: 8mm; }
  .acaprs-rv-verify-frame { box-shadow: none; }
  .acaprs-rv-verify-form { display: none !important; }
  /* 1.0.3 — print shows every tab panel, not just the active one. */
  .acaprs-rv-tabs { display: none !important; }
  .acaprs-rv-tab-panel { display: block !important; }
}

/* ---------- dashboard tabs (1.0.3) ----------
   Visual pattern mirrors Research Manager's researcher dashboard
   (.acaprs-rm25-tabs / .acaprs-rm-tab-btn, RM 2.5.6.26 stylesheet):
   a flex pill row on a pale background with a gold underline, active
   pill in journal purple. The SWITCHING, however, is pure CSS
   radio/:checked (the RM 2.5.6.17 certificate-switcher pattern):
   hidden radios + <label> buttons, zero JavaScript, zero URL code —
   a click can never reload, navigate, or touch the URL. The radios
   sit inside .acaprs-rv-tabs-wrap, before the tab row and the panels,
   so the :checked sibling rules below can show one panel and
   highlight one button. */
.acaprs-rv-tabs-wrap .acaprs-rv-tab-radio { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.acaprs-rv-tabs { display: flex; flex-wrap: wrap; gap: 14px; background: #f0edf3; border-bottom: 3px solid #EFD9A4; border-radius: 12px 12px 0 0; padding: 12px 14px; margin-bottom: 20px; }
.acaprs-rv-tab-btn { display: inline-block; padding: 14px 24px; border-radius: 999px; border: 1px solid #4B2C5F; color: #4B2C5F; background: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.acaprs-rv-tab-panel { display: none; }
.acaprs-rv-tab-panel .acaprs-rv-card { margin-bottom: 0; }
/* Show the panel whose radio is checked. */
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_papers:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="papers"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_initial:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="initial"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_final:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="final"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_certificate:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="certificate"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_stats:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="stats"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_support:checked ~ section.acaprs-rv-tab-panel[data-acaprs-rv-tab="support"] { display: block; }
/* Highlight the button whose radio is checked. */
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_papers:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_papers"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_initial:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_initial"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_final:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_final"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_certificate:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_certificate"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_stats:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_stats"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_support:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_support"] { background: #4B2C5F; color: #fff; border-color: #4B2C5F; }
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_papers:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_papers"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_initial:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_initial"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_final:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_final"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_certificate:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_certificate"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_stats:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_stats"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_support:focus-visible ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_support"] { outline: 2px solid #4B2C5F; outline-offset: 2px; }

/* ---------- final review form — visual refresh (1.0.5) ----------
   Presentation only: same structure, sections and order, same
   palette (#4B2C5F / #C9A24B / #FFFDF6). All spacing uses LOGICAL
   properties (inline-start/end) so the layout mirrors correctly
   in RTL (Arabic) and LTR (English); centered text stays centered
   in both directions. No physical left/right anywhere in this
   section. */
/* Sticky live summary bar: the live total + grade + progress,
   always visible while the reviewer scores. Sticky-top clears the
   WordPress admin bar (32px desktop / 46px mobile). */
.acaprs-rv-sticky-total { position: -webkit-sticky; position: sticky; top: 44px; z-index: 10; margin-bottom: 22px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(75,44,95,.16); text-align: start; }
.acaprs-rv-sticky-line { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; font-size: 1.02em; }
.acaprs-rv-sticky-line strong { color: #4B2C5F; font-size: 1.15em; }
.acaprs-rv-progress-track { height: 8px; border-radius: 999px; background: #e5e0ea; overflow: hidden; margin-top: 10px; }
.acaprs-rv-progress-fill { height: 100%; width: 0; border-radius: 999px; background: #4B2C5F; transition: width .3s ease; }
.acaprs-rv-progress-text { margin: 6px 0 0; font-size: .9em; color: #555; }
/* Vertical rhythm: more air between sections and criteria. */
.acaprs-rv-final-form .acaprs-rv-fieldset { margin-bottom: 24px; }
.acaprs-rv-final-form .acaprs-rv-section { margin-bottom: 22px; }
.acaprs-rv-final-form .acaprs-rv-section-body { padding: 22px; }
.acaprs-rv-final-form .acaprs-rv-criterion { padding: 18px 20px; margin-bottom: 18px; }
.acaprs-rv-final-form .acaprs-rv-criterion h4 { font-size: 1.1em; line-height: 1.55; margin-bottom: 12px; }
/* Section head: airier, hover feedback, chevron rotates open. */
.acaprs-rv-final-form .acaprs-rv-section-head { padding: 16px 20px; gap: 12px; }
.acaprs-rv-final-form .acaprs-rv-section-head:hover { background: #e9e2ee; }
.acaprs-rv-final-form .acaprs-rv-section-head span[aria-hidden="true"] { display: inline-block; flex: none; transition: transform .25s ease; }
.acaprs-rv-final-form .acaprs-rv-section-head[aria-expanded="true"] span[aria-hidden="true"] { transform: rotate(180deg); }
/* Sub-criteria: gold rail on the inline-start side (right in RTL,
   left in LTR) + clear breathing room; purple sub-titles. */
.acaprs-rv-final-form .acaprs-rv-sub { margin-bottom: 18px; padding-inline-start: 14px; border-inline-start: 3px solid #EFD9A4; line-height: 1.8; }
.acaprs-rv-final-form .acaprs-rv-sub label > strong { color: #4B2C5F; }
/* Score inputs: 44px tap targets, centred numerals. */
.acaprs-rv-final-form .acaprs-rv-sub input[type="number"] { min-height: 44px; max-width: 180px; padding: 10px 14px; font-size: 1.05em; text-align: center; margin-top: 6px; }
/* Criterion subtotal row may wrap instead of squeezing. */
.acaprs-rv-final-form .acaprs-rv-criterion-subtotal { flex-wrap: wrap; gap: 8px 12px; }
/* Submit actions: spaced row, 48px buttons. */
.acaprs-rv-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.acaprs-rv-form-actions .acaprs-rv-btn { min-height: 48px; }
/* ---------- mobile (1.0.5): the founder reviews from a phone ---------- */
@media (max-width: 640px) {
  .acaprs-rv-sticky-total { top: 56px; padding: 10px 14px; }
  .acaprs-rv-final-form .acaprs-rv-section-body { padding: 16px; }
  .acaprs-rv-final-form .acaprs-rv-criterion { padding: 14px 16px; }
  .acaprs-rv-final-form .acaprs-rv-sub input[type="number"] { width: 100%; max-width: 220px; }
  .acaprs-rv-form-actions { flex-direction: column; }
  .acaprs-rv-form-actions .acaprs-rv-btn { width: 100%; text-align: center; }
}

/* ---------- TXT import (1.0.6) — additive only, logical properties ---------- */
.acaprs-rv-txt-import { margin-block-end: 20px; }
.acaprs-rv-txt-import input[type="file"] { margin-block-start: 6px; max-width: 100%; }
.acaprs-rv-txt-import .acaprs-rv-btn { min-height: 44px; }

/* ---------- final review form — best-practice refresh (1.0.8) ----------
   Visual only: same structure, sections, order and wording; same
   palette (#4B2C5F / #C9A24B / #FFFDF6). Spacing on an 8px scale;
   typography scale with Arabic-friendly line-heights; WCAG AA
   contrast (gold stays decorative — never body text); logical
   properties only (no physical left/right anywhere in this file). */
/* Box model + type base: 16px root inside the wrapper so 0.85em
   helper text stays >= 13px; generous Arabic line-height. */
.acaprs-rv-wrap *, .acaprs-rv-wrap *::before, .acaprs-rv-wrap *::after { box-sizing: border-box; }
.acaprs-rv-final-form { font-size: 16px; line-height: 1.75; }
/* Typography scale (form only): section title, criterion label,
   sub-label, description, helper text. */
.acaprs-rv-final-form .acaprs-rv-section-head { font-size: 1.06em; line-height: 1.6; flex-wrap: wrap; justify-content: flex-start; }
.acaprs-rv-final-form .acaprs-rv-criterion h4 { font-size: 1.1em; line-height: 1.6; font-weight: 800; }
.acaprs-rv-final-form .acaprs-rv-sub { font-size: 0.97em; line-height: 1.8; }
.acaprs-rv-final-form .acaprs-rv-sub label > strong { font-size: 1em; line-height: 1.7; }
.acaprs-rv-final-form small { font-size: 0.85em; line-height: 1.7; }
/* Focus visibility: every input, textarea, select and button. */
.acaprs-rv-final-form :focus-visible { outline: 3px solid #4B2C5F; outline-offset: 2px; border-radius: 6px; }
.acaprs-rv-final-form input:focus-visible, .acaprs-rv-final-form textarea:focus-visible, .acaprs-rv-final-form select:focus-visible { border-color: #4B2C5F; }
/* Sticky bar: compact on mobile, respects the safe-area inset. */
.acaprs-rv-sticky-total { top: calc(44px + env(safe-area-inset-top, 0px)); }
/* Section jump nav: horizontally scrolling pill row (buttons only). */
.acaprs-rv-jump-nav { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; padding-inline: 2px; margin-bottom: 16px; scrollbar-width: thin; }
.acaprs-rv-jump-btn { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #4B2C5F; background: #fff; color: #4B2C5F; font: inherit; font-size: 0.9em; font-weight: 700; line-height: 1.5; cursor: pointer; }
.acaprs-rv-jump-btn:hover { background: #f0edf3; }
.acaprs-rv-jump-btn[aria-current="true"] { background: #4B2C5F; color: #fff; }
/* Per-section progress pill in the section head; green when done. */
.acaprs-rv-final-form .acaprs-rv-section-progress { flex: none; margin-inline-start: auto; font-size: 0.85em; font-weight: 700; line-height: 1.6; color: #4B2C5F; background: #f0edf3; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.acaprs-rv-final-form .acaprs-rv-section-head.acaprs-rv-section-done .acaprs-rv-section-progress { background: #e8f5e9; color: #1b5e20; }
/* Jump target clears the sticky bar. */
.acaprs-rv-final-form .acaprs-rv-section { scroll-margin-top: 160px; }
/* Input states: filled vs empty (score inputs and comment textareas
   carry placeholders, so :placeholder-shown is a true empty test). */
.acaprs-rv-final-form input[data-acaprs-rv-score]:not(:placeholder-shown) { border-color: #4B2C5F; background: #f8f5fa; font-weight: 700; }
.acaprs-rv-final-form textarea[placeholder]:not(:placeholder-shown) { border-color: #4B2C5F; background: #f8f5fa; }
/* Disabled / read-only: clearly inert (darker muted text, AA-safe). */
.acaprs-rv-final-form input:disabled, .acaprs-rv-final-form textarea:disabled, .acaprs-rv-final-form select:disabled, .acaprs-rv-final-form input[readonly] { background: #f5f3f7; color: #444; cursor: not-allowed; }
.acaprs-rv-final-form .acaprs-rv-btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* Reduced motion: no transitions or animations anywhere in the form. */
@media (prefers-reduced-motion: reduce) {
  .acaprs-rv-final-form *, .acaprs-rv-final-form *::before, .acaprs-rv-final-form *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Print: show collapsed sections, hide the jump nav, never split a
   criterion across pages, keep the gold rail visible. */
@media print {
  .acaprs-rv-jump-nav { display: none !important; }
  .acaprs-rv-final-form .acaprs-rv-section-body[hidden] { display: block !important; }
  .acaprs-rv-final-form .acaprs-rv-section-head { break-after: avoid; }
  .acaprs-rv-final-form .acaprs-rv-criterion { break-inside: avoid; }
  .acaprs-rv-final-form .acaprs-rv-sub { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* ---------- mobile (1.0.8): compact sticky bar, full-width fields ---------- */
@media (max-width: 640px) {
  .acaprs-rv-sticky-total { top: calc(56px + env(safe-area-inset-top, 0px)); padding: 8px 12px; }
  .acaprs-rv-sticky-line { font-size: 0.95em; gap: 2px 12px; }
  .acaprs-rv-progress-text { font-size: 0.85em; }
  .acaprs-rv-final-form .acaprs-rv-section { scroll-margin-top: 200px; }
  .acaprs-rv-final-form input[type="text"], .acaprs-rv-final-form select, .acaprs-rv-final-form textarea { max-width: 100%; }
  .acaprs-rv-final-form .acaprs-rv-section-head { padding: 14px 16px; }
}

/* ---------- 1.0.11 — statistics cards + bars, initial form, cert items ---------- */
.acaprs-rv-stat-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 18px; }
.acaprs-rv-stat-card { flex: 1 1 140px; min-width: 140px; border: 1px solid #e5e0ea; border-radius: 14px; padding: 14px; background: #FFFDF6; text-align: center; }
.acaprs-rv-stat-num { display: block; font-size: 1.6em; font-weight: 800; color: #4B2C5F; }
.acaprs-rv-stat-label { display: block; font-size: 0.9em; color: #555; margin-top: 4px; }
.acaprs-rv-bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.acaprs-rv-bar-label { flex: 0 0 45%; font-size: 0.92em; }
.acaprs-rv-bar-track { flex: 1; height: 10px; border-radius: 999px; background: #e5e0ea; overflow: hidden; }
.acaprs-rv-bar-fill { height: 100%; border-radius: 999px; background: #4B2C5F; }
.acaprs-rv-initial-section { border: 1px solid #e5e0ea; border-radius: 14px; padding: 14px; margin-bottom: 16px; background: #fff; }
.acaprs-rv-initial-section h3 { margin-top: 0; }
.acaprs-rv-initial-q { border-top: 1px solid #f0edf3; padding: 10px 0; }
.acaprs-rv-initial-q:first-of-type { border-top: none; }
.acaprs-rv-initial-confirm { background: #FFFDF6; border: 1px solid #EFD9A4; border-radius: 12px; padding: 12px; }
.acaprs-rv-cert-items { margin-top: 14px; }
.acaprs-rv-cert-items h3 { color: #4B2C5F; font-size: 1em; margin-bottom: 6px; }
.acaprs-rv-cert-items ul { list-style: none; padding: 0; margin: 0; }
.acaprs-rv-cert-items li { padding: 4px 0; border-bottom: 1px solid #f0edf3; }
@media (max-width: 640px) {
  .acaprs-rv-bar-label { flex-basis: 55%; }
  .acaprs-rv-stat-card { flex-basis: 45%; }
}

/* ---------- initial review form — visual refresh (1.0.14) ----------
   Mirrors the final form's 1.0.8 twelve practices (typographic
   scale, WCAG AA contrast, 8px spacing, :focus-visible, mobile
   summary bar, per-section progress "أجبت عن x/y", reduced motion,
   clean print, zero physical left/right). No question text changes.
   A section jump nav is deliberately NOT added: only one section is
   ever visible at a time (the section matching the chosen file
   type), so there is nothing to jump between. */
/* Box model + type base: 16px root, generous Arabic line-height.
   overflow: visible is defensive for the sticky summary bar — any
   ancestor with a non-visible overflow defeats position: sticky
   (the reported "card does not stay fixed" on the founder's phone
   is most likely a theme ancestor doing exactly that; see README
   §1.0.14). */
.acaprs-rv-initial-form { font-size: 16px; line-height: 1.75; overflow: visible; }
.acaprs-rv-final-form { overflow: visible; }
/* Typography scale (form only): section title, question label,
   comment label, description, helper text. */
.acaprs-rv-initial-form .acaprs-rv-initial-section h3 { font-size: 1.06em; line-height: 1.6; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acaprs-rv-initial-form .acaprs-rv-initial-q > p > strong { font-size: 1.05em; line-height: 1.65; }
.acaprs-rv-initial-form .acaprs-rv-desc { font-size: 0.85em; line-height: 1.7; }
/* Focus visibility: every input, textarea, select and button. */
.acaprs-rv-initial-form :focus-visible { outline: 3px solid #4B2C5F; outline-offset: 2px; border-radius: 6px; }
.acaprs-rv-initial-form input:focus-visible, .acaprs-rv-initial-form textarea:focus-visible, .acaprs-rv-initial-form select:focus-visible { border-color: #4B2C5F; }
/* Vertical rhythm on the 8px scale. */
.acaprs-rv-initial-form .acaprs-rv-fieldset { margin-bottom: 24px; }
.acaprs-rv-initial-form .acaprs-rv-initial-section { padding: 22px; margin-bottom: 22px; scroll-margin-top: 160px; }
.acaprs-rv-initial-form .acaprs-rv-initial-q { padding: 16px 0; }
.acaprs-rv-initial-form .acaprs-rv-initial-confirm { padding: 16px; margin-bottom: 20px; }
/* Publication-decision fieldset (1.0.14 A): gold-bordered, paper
   background — it is the form's verdict, so it reads as one. */
.acaprs-rv-initial-decision { border: 2px solid #4B2C5F; border-radius: 16px; padding: 18px; margin-bottom: 20px; background: #FFFDF6; }
.acaprs-rv-initial-decision legend { font-weight: 800; color: #4B2C5F; padding-inline: 8px; }
/* Sticky summary bar: label line + progress (shared track/fill/
   text rules with the final form). */
.acaprs-rv-initial-summary .acaprs-rv-total-line { margin: 0; font-weight: 700; color: #4B2C5F; font-size: 1.02em; }
/* Per-section progress pill in the section head; green when done. */
.acaprs-rv-initial-form .acaprs-rv-section-progress { flex: none; margin-inline-start: auto; font-size: 0.85em; font-weight: 700; line-height: 1.6; color: #4B2C5F; background: #f0edf3; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.acaprs-rv-initial-form .acaprs-rv-initial-section.acaprs-rv-section-done .acaprs-rv-section-progress { background: #e8f5e9; color: #1b5e20; }
/* Input states: filled vs empty (comment textareas carry a
   placeholder, so :placeholder-shown is a true empty test). */
.acaprs-rv-initial-form textarea[placeholder]:not(:placeholder-shown) { border-color: #4B2C5F; background: #f8f5fa; }
/* Disabled / read-only: clearly inert (darker muted text, AA-safe). */
.acaprs-rv-initial-form input:disabled, .acaprs-rv-initial-form textarea:disabled, .acaprs-rv-initial-form select:disabled, .acaprs-rv-initial-form input[readonly] { background: #f5f3f7; color: #444; cursor: not-allowed; }
/* Reduced motion: no transitions or animations anywhere in the form. */
@media (prefers-reduced-motion: reduce) {
  .acaprs-rv-initial-form *, .acaprs-rv-initial-form *::before, .acaprs-rv-initial-form *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Print: never split a question across pages; hidden sections stay
   hidden (they hold no answers). The sticky summary bar is already
   hidden in print by the shared .acaprs-rv-sticky-total rule. */
@media print {
  .acaprs-rv-initial-form .acaprs-rv-initial-q { break-inside: avoid; }
  .acaprs-rv-initial-form .acaprs-rv-initial-section h3 { break-after: avoid; }
}
/* ---------- mobile (1.0.14): compact initial form, full-width fields ---------- */
@media (max-width: 640px) {
  .acaprs-rv-initial-form .acaprs-rv-initial-section { padding: 16px; scroll-margin-top: 200px; }
  .acaprs-rv-initial-form input[type="text"], .acaprs-rv-initial-form select, .acaprs-rv-initial-form textarea { max-width: 100%; }
  .acaprs-rv-initial-summary .acaprs-rv-total-line { font-size: 0.95em; }
}

/* ---------- 1.0.17 — summary bar pinned by JS (position: fixed) ----------
   CSS position: sticky (1.0.5) is defeated by any ancestor with a
   non-visible overflow, and the theme does exactly that: the 1.0.14
   hardening (webkit prefix + overflow: visible on the forms) did
   not hold on the founder's phone, and the bar was reported
   scrolling away a second time (2026-11-12). The JS pins the bar
   with position: fixed, which no ancestor overflow can defeat; the
   placeholder keeps the page from jumping when the bar leaves the
   flow. The sticky rule above stays as the no-JS fallback, and the
   bar + placeholder stay hidden in print (shared print rule). */
.acaprs-rv-sticky-placeholder { display: none; }
.acaprs-rv-sticky-total.is-pinned { position: fixed; z-index: 50; margin-bottom: 0; box-shadow: 0 10px 28px rgba(75,44,95,.22); }

/* ---------- 1.0.36 — submission form redesign: sections, required marks,
   file pair, author summary, PrePrint-only hiding ----------
   Display only: the four sections reuse .acaprs-rv-fieldset, the
   file pair is a two-column grid collapsing to one column on
   phones, and the PrePrint-only wrappers are hidden by class so
   the inline track script can show them with 'block'. Logical
   properties only; the founder reviews from a phone. */
.acaprs-rv-submit-form .acaprs-rv-fieldset { margin-bottom: 24px; }
.acaprs-rv-track-initial-only { display: none; }
.acaprs-rv-track-final-only { display: none; }
.acaprs-rv-required { color: #b71c1c; font-weight: 800; }
.acaprs-rv-required-text { color: #b71c1c; font-weight: 700; font-size: 0.85em; }
.acaprs-rv-required-note { color: #555; font-size: 0.9em; }
.acaprs-rv-file-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acaprs-rv-file-pair p { margin: 0; }
.acaprs-rv-author-summary { border: 1px solid #efe9f2; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; background: #FFFDF6; }
.acaprs-rv-author-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 8px 0; }
.acaprs-rv-author-summary dt { font-weight: 700; color: #4B2C5F; }
.acaprs-rv-author-summary dd { margin: 0; }
.acaprs-rv-author-summary-note { font-size: 0.85em; color: #666; margin-bottom: 0; }
@media (max-width: 640px) {
  .acaprs-rv-file-pair { grid-template-columns: 1fr; }
  .acaprs-rv-author-summary dl { grid-template-columns: 1fr; gap: 2px 0; }
}

/* 1.0.46 — Tab-bar polish (founder feedback 2026-11-24): the
   reviewer-dashboard tab bar gets the same deliberate, professional
   look as the researcher dashboard (RM 2.5.6.73) in the site's own
   design language — purple #4B2C5F + gold #EFD9A4, Cairo. Visuals
   only: no markup, order, label, destination or behaviour change.
   The bar is a framed card (soft lavender fill, full rounded
   corners, gold base rule); the six pills share one shape and one
   type scale and stretch evenly across the row (flex: 1 1 auto), so
   no tab floats and no gap is left over; the active pill is filled
   purple with a gold underline accent and a soft shadow; hover/focus
   states are explicit; on phone widths the pills form an even
   two-column grid. The switching stays pure CSS radio/:checked —
   the active rule below only adds the shadow + gold underline to
   the existing :checked selectors (no .active class exists here),
   and the existing :focus-visible rule already carries the 2.5.6.73
   focus values, so no new focus rule is needed. */
.acaprs-rv-tabs { gap: 10px; background: #f7f5f9; border: 1px solid #e5e0ea; border-bottom: 3px solid #EFD9A4; border-radius: 16px; padding: 12px; align-items: stretch; }
.acaprs-rv-tab-btn { flex: 1 1 auto; text-align: center; padding: 12px 20px; font-size: 15px; font-weight: 700; line-height: 1.4; border: 1px solid #d8d0e0; background: #fff; color: #4B2C5F; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.acaprs-rv-tab-btn:hover { border-color: #4B2C5F; background: #f0edf3; }
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_papers:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_papers"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_initial:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_initial"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_final:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_final"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_certificate:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_certificate"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_stats:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_stats"],
.acaprs-rv-tabs-wrap > input.acaprs-rv-tab-radio#acaprs_rv_tab_support:checked ~ .acaprs-rv-tabs label[for="acaprs_rv_tab_support"] { box-shadow: 0 2px 8px rgba(75,44,95,.25), inset 0 -3px 0 #EFD9A4; }
@media (max-width: 600px) {
  .acaprs-rv-tabs { gap: 8px; padding: 10px; border-radius: 12px; }
  .acaprs-rv-tab-btn { flex: 1 1 44%; padding: 11px 12px; font-size: 14px; }
}

/* ---------- 1.0.49 — submission form: two-column grid for short fields ----------
   Founder request 2026-11-24: the «إرسال بحث جديد» form was one
   stacked column. The short fields (selects and short text inputs)
   now sit in .acaprs-rv-grid divs — two columns, collapsing to one
   at ≤600px (the founder reviews from a phone), so no field is ever
   cramped. The long fields (both abstracts, the file uploads, the
   cover image, the co-author repeater, the version notes) and the
   helper lines stay full-width outside the grids. Same design
   language (Cairo, #4B2C5F, #EFD9A4, the 1.0.46 pill/card language):
   section cards get a soft shadow, labels go bold purple, focus
   states are explicit (the 1.0.8 pattern). Logical properties only;
   no new font, no new palette, no behaviour change. The grid div
   itself carries no margin, so a grid whose only field is hidden by
   the track (PrePrint hides the paper-type grid, Final hides the
   content-type grid) collapses to zero height with no stray gap;
   the <p> children carry no margin either, the 16px grid gap is
   the only vertical rhythm inside a grid. */
.acaprs-rv-submit-form .acaprs-rv-fieldset { box-shadow: 0 2px 12px rgba(75,44,95,.07); }
.acaprs-rv-submit-form label { font-weight: 700; color: #4B2C5F; }
.acaprs-rv-submit-form label .acaprs-rv-required, .acaprs-rv-submit-form label .acaprs-rv-required-text { color: #b71c1c; }
.acaprs-rv-submit-form :focus-visible { outline: 3px solid #4B2C5F; outline-offset: 2px; border-radius: 6px; }
.acaprs-rv-submit-form input:focus-visible, .acaprs-rv-submit-form textarea:focus-visible, .acaprs-rv-submit-form select:focus-visible { border-color: #4B2C5F; }
.acaprs-rv-submit-form .acaprs-rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.acaprs-rv-submit-form .acaprs-rv-grid > p { margin: 0; }
.acaprs-rv-submit-form .acaprs-rv-grid input[type="text"], .acaprs-rv-submit-form .acaprs-rv-grid select { max-width: 100%; }
@media (max-width: 600px) {
  .acaprs-rv-submit-form .acaprs-rv-grid { grid-template-columns: 1fr; }
}

/* ---------- 1.0.50 — submission form: long fields span the full width ----------
   Wave 367 (live, 2026-11-24) proved the two-column grid works, but
   found the defect it was meant to prevent: the two abstracts and
   the version notes each render only about half the card width, on
   the inline-start side, with the other half empty — on
   /submit-paper/ and /account/ alike. Diagnosis, from the code:
   the long fields were never grid children (1.0.49 deliberately
   left them outside the grids), so no grid rule could widen them;
   the cap is the base form rule that gives every text input,
   select and textarea width 100% but max-width 560px. The 1.0.49
   grid rule lifted that cap only for text inputs and selects
   inside a grid — never for textareas. The fix is one rule: in
   the submit form, textareas take max-width 100%. The only three
   textareas in the form are the two abstracts and the version
   notes, so this lifts exactly the long fields and nothing else.
   No grid change, no PHP change, no behaviour change. */
.acaprs-rv-submit-form textarea { max-width: 100%; }

/* ---------- 1.0.56 — assignment page: researcher-dashboard look ----------
   Founder order 2026-11-26: the assignment page adopts the look of
   the researcher dashboard (RM 2.5.6.82 acaprs_rm25_render_tracking_cards):
   bordered cards with a purple top border, gold chips, purple
   headings, an info-box grid. The tokens are MIRRORED here in the
   Reviewer's own stylesheet — RM's CSS is never imported and RM is
   untouched. Everything is scoped under .acaprs-rv-assign, the class
   this page's wrapper alone carries, so no other Reviewer page
   changes. The 1.0.55 interpreter box and deadlines notice
   (.acaprs-rv-notice-warn, #fff8e1 / #EFD9A4) are exactly as they
   are; the form-type derivation card, check-reports list, referral
   form, stages checkboxes and blinding checklist keep their
   behaviour — only their cards take the new treatment. */
.acaprs-rv-assign .acaprs-rv-card { border-top: 4px solid #4B2C5F; padding: 20px 22px; box-shadow: 0 2px 8px rgba(75,44,95,.08); }
.acaprs-rv-assign .acaprs-rv-card h3 { font-size: 17px; }
.acaprs-rv-assign .acaprs-rv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.acaprs-rv-assign .acaprs-rv-card-head h3 { margin: 0; padding-bottom: 0; border-bottom: 0; flex: 1 1 auto; }
.acaprs-rv-assign .acaprs-rv-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #EFD9A4; color: #4B2C5F; flex-shrink: 0; }
.acaprs-rv-assign .acaprs-rv-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.acaprs-rv-assign .acaprs-rv-info-box { background: #f7f5f9; border-radius: 10px; padding: 10px 14px; text-align: center; }
.acaprs-rv-assign .acaprs-rv-info-box span { display: block; font-size: 12px; color: #888; }
.acaprs-rv-assign .acaprs-rv-info-box strong { display: block; margin-top: 2px; }
.acaprs-rv-assign .acaprs-rv-multi { max-width: 100%; border: 2px solid #4B2C5F; border-radius: 10px; }
@media (max-width: 600px) {
  .acaprs-rv-assign .acaprs-rv-card-head { flex-direction: column; }
  .acaprs-rv-assign .acaprs-rv-info { grid-template-columns: 1fr; }
}

/* ---------- 1.0.58 — reviewer dashboard tracking cards + cards/rows toggle ----------
   Founder order 2026-11-26: the dashboard's three paper tabs adopt the
   researcher-dashboard tracking-card look (RM 2.5.6.82
   acaprs_rm25_render_tracking_cards / Roles ajrp_render_eic_track_card):
   bordered cards with a purple top border, gold/green chips, purple
   headings, an info-box grid, stage pills and a newest-first timeline.
   The tokens are MIRRORED here in the Reviewer's own stylesheet — RM's
   and Roles' CSS are never imported and neither plugin is touched.
   Everything is scoped under .acaprs-rv-wrap, so no other Reviewer page
   changes. The toggle buttons are pill buttons (Roles .ajrp-view-toggle
   pattern); in rows mode each card collapses to one horizontal row
   (body hidden, tighter padding, no shadow). */
.acaprs-rv-view-toggle { display: flex; gap: 8px; margin: 12px 0; }
.acaprs-rv-view-toggle button { padding: 8px 18px; border-radius: 999px; border: 1px solid #4B2C5F; color: #4B2C5F; background: #fff; font-weight: 700; cursor: pointer; }
.acaprs-rv-view-toggle button.active { background: #4B2C5F; color: #fff; }
.acaprs-rv-track-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.acaprs-rv-track-card { background: #fff; border: 1px solid #e5e0ea; border-top: 4px solid #4B2C5F; border-radius: 16px; padding: 20px 22px; box-shadow: 0 2px 8px rgba(75,44,95,.08); }
.acaprs-rv-track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; width: 100%; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; text-align: start; list-style: none; }
.acaprs-rv-track-head::-webkit-details-marker { display: none; }
.acaprs-rv-track-title { margin: 0; color: #4B2C5F; font-size: 17px; line-height: 1.6; font-weight: 700; flex: 1 1 auto; text-align: start; }
.acaprs-rv-track-arrow { flex-shrink: 0; color: #4B2C5F; font-size: 16px; line-height: 1.6; transition: transform .2s ease; }
.acaprs-rv-track-card[open] .acaprs-rv-track-arrow { transform: rotate(180deg); }
.acaprs-rv-track-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.acaprs-rv-track-chip--gold { background: #EFD9A4; color: #4B2C5F; }
.acaprs-rv-track-chip--green { background: #e8f5e9; color: #2e7d32; }
.acaprs-rv-track-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.acaprs-rv-track-box { background: #f7f5f9; border-radius: 10px; padding: 10px 14px; text-align: center; }
.acaprs-rv-track-box span { display: block; font-size: 12px; color: #888; }
.acaprs-rv-track-box strong { display: block; margin-top: 2px; }
.acaprs-rv-track-stages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.acaprs-rv-track-stages li { padding: 4px 10px; border-radius: 999px; background: #f0edf3; font-size: 13px; }
.acaprs-rv-track-stages li.reached { background: #16A34A; color: #fff; font-weight: 700; }
.acaprs-rv-track-stages li.upcoming { background: #eee; color: #888; }
.acaprs-rv-track-panel { background: #f8f5fb; border: 1px solid #eee6f3; border-radius: 12px; padding: 12px 16px; margin-top: 14px; }
.acaprs-rv-track-panel h4 { margin: 0 0 6px; color: #4B2C5F; }
.acaprs-rv-timeline2 { list-style: none; margin: 0; padding: 0; position: relative; }
.acaprs-rv-timeline2::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 9px; width: 2px; background: #ddd; }
.acaprs-rv-tl-item { position: relative; padding-inline-start: 32px; margin-bottom: 16px; }
.acaprs-rv-tl-item:last-child { margin-bottom: 0; }
.acaprs-rv-tl-dot { position: absolute; inset-inline-start: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #ddd; }
.acaprs-rv-tl-item.newest .acaprs-rv-tl-dot { background: #C9A24B; }
.acaprs-rv-tl-item.older .acaprs-rv-tl-dot { background: #999; }
.acaprs-rv-tl-card { background: #f7f5f9; border-radius: 12px; padding: 12px 16px; }
.acaprs-rv-tl-head { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acaprs-rv-tl-note { background: #fff; border: 1px solid #EFD9A4; border-inline-start: 4px solid #C9A24B; border-radius: 8px; padding: 8px 12px; margin: 0; }
.acaprs-rv-view-list.acaprs-rv-view-rows { gap: 8px; }
.acaprs-rv-view-list.acaprs-rv-view-rows .acaprs-rv-track-card { padding: 12px 16px; box-shadow: none; }
.acaprs-rv-view-list.acaprs-rv-view-rows .acaprs-rv-track-body { display: none; }
@media (max-width: 1024px) { .acaprs-rv-track-info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .acaprs-rv-track-info { grid-template-columns: 1fr; } .acaprs-rv-track-head { flex-direction: column; } }
