/* The Verification page as it opens since 8.1.4 (Arash, 2026-11-26; mockups F1 to F3): the path line with Save as and
   Print, the left bar and its panels, the one mark under 75%, the checking mark, and the reminder card. After
   style.css, so the rules here win over the 8.0 layout they replace (the grid of a 340 px rail and the transcript). */
:root { --rv-ck-bg: #FFF1DC; --rv-ck-line: #E6A23C; --rv-cur: #0F5E9C; --rv-new: #FFF1C9; --rv-doubt-line: #9AA3B2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --rv-ck-bg: rgba(230,162,60,0.22); --rv-cur: #7FB4E0; --rv-new: rgba(212,160,23,0.35);
    --rv-doubt-line: #8A93A3; }
}
:root[data-theme="dark"] { --rv-ck-bg: rgba(230,162,60,0.22); --rv-cur: #7FB4E0; --rv-new: rgba(212,160,23,0.35);
  --rv-doubt-line: #8A93A3; }

/* The path line carries Save as and a navy Print on its right (mockup F1). */
.rv-top { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.rv-top-gap { flex: 1 1 auto; }
.rv-top .rv-menu { margin-left: 0; }
.rv-top .rv-saveas > summary { white-space: nowrap; }
/* Court style's zoom on the path line (2026-11-28): a pill beside Save as; only in court style (style.css). */
body.rv-court-on .rv-top .cs-zoom { position: static; margin: 0 6px 0 0; padding: 2px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel); }
body.rv-court-on .rv-top .cs-zoom::before { display: none; }
body.rv-focus .rv-top .cs-zoom { display: none !important; }
/* Find's recent searches (2026-11-28): grey chips, as on the first page. */
.rv-recent { display: grid; gap: 6px; margin: 4px 0 8px; }
.rv-recent .hc-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rv-recent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-recent-chip { font: inherit; font-size: 13.5px; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--chip); color: var(--text); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-recent-chip:hover { border-color: var(--border-control); }
.rv-print { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.rv-print svg { flex: none; }
.rv-more-head { padding: 8px 14px 2px; font-size: 13px; color: var(--muted); }

/* The left bar and the panel beside it. */
.rv-with-bm { display: flex; gap: 14px; align-items: flex-start; }
.rv-main { flex: 1 1 auto; min-width: 0; }
.rv-rail { flex: none; width: 68px; box-sizing: border-box; padding: 4px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: calc(var(--header-h) + 4px); z-index: 31; }
.rv-ri { font: inherit; font-size: 11px; line-height: 13px; color: var(--muted); background: none; border: 0;
  border-radius: 6px; padding: 8px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; cursor: pointer; }
.rv-ri:hover { color: var(--body-text); background: var(--wash); }
.rv-ri:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.rv-ri[aria-pressed="true"] { color: var(--body-text); font-weight: 600; }
.rv-rdot { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 1px; }
.rv-ri[aria-pressed="true"] .rv-rdot { background: #D4A017; }
.rv-panel { flex: none; width: 300px; box-sizing: border-box; padding: 12px 16px; display: flex; flex-direction: column;
  gap: 4px; font-size: 14px; position: sticky; top: calc(var(--header-h) + 4px); z-index: 31;
  max-height: calc(var(--view-h, 100vh) - var(--header-h) - 16px); overflow-y: auto; }
.rv-panel[hidden] { display: none; }
.rv-panel-head { display: flex; align-items: flex-start; gap: 6px; }
.rv-panel-head h2 { margin: 2px 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; color: var(--body-text); flex: 1; }
.rv-panel-x { border: 0; background: none; font-size: 18px; line-height: 22px; color: var(--muted); cursor: pointer;
  padding: 0 4px; }
.rv-panel-x:hover { color: var(--body-text); }
.rv-panel-gap { flex: 1 1 auto; min-height: 8px; }
.rv-panel-done { align-self: flex-end; }
.rv-sp-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.rv-panel .rv-find-opts { margin: 6px 0 8px; }
.rv-panel .rv-who { max-width: 100%; margin-bottom: 8px; }
.rv-panel-body { min-height: 0; }
.rv-panel-sp .rv-sp-list { display: block; }      /* the rows' own lines between them, not the 8.0 cards' gap */
.rv-sp-same-link { font-size: 13px; margin-top: 4px; }
.rv-panel .rv-sp-same { margin-top: 2px; }
/* Check words is short, and its settings open beside it, over the transcript: nothing in it scrolls. */
.rv-panel-check { width: 230px; gap: 12px; overflow: visible; max-height: none; padding: 12px 16px 14px; }
.rv-panel-check .rv-prog { display: block; width: 100%; height: 8px; border-radius: 4px; }
.rv-panel-check .rv-prog i { background: var(--rv-cur); border-radius: 4px; }
.rv-panel-check .rv-prog-text { font-size: 13px; margin-top: 6px; }
.rv-panel-check .rv-next { padding: 9px 12px; font-size: 14px; }
.rv-panel-check .rv-auto { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.rv-panel-check .rv-legend-list { margin: 0; gap: 6px; font-size: 13px; }
.rv-panel-check .rv-legend-list .rv-swatch { min-width: 0; margin-right: 8px; font-size: 13px; font-weight: 400; padding: 0 3px; }
.rv-panel-check .rv-settings-menu { align-self: flex-start; margin: 0; }
.rv-panel-check .rv-gear { display: inline-flex; align-items: center; gap: 6px; }
.rv-panel-check .rv-settings-menu .rv-menu-list { left: 0; right: auto; }

/* One mark (Arash, 2026-11-26): a word under 75% sure. Reading, a soft gray wavy line, as court style's; while checking,
   the checking mark, and the word being checked outlined. No number above it, no red and amber. */
.rv-w.rv-mark, .rv-cw-doubt { text-decoration: underline wavy var(--rv-doubt-line); text-decoration-thickness: 1px;
  text-underline-offset: 4px; }
body.rv-checking .rv-w.rv-mark, body.rv-checking .rv-cw-doubt, .rv-swatch.rv-mark-key {
  text-decoration: none; background: var(--rv-ck-bg); border-bottom: 2px solid var(--rv-ck-line); }
body.rv-checking .rv-w.rv-selected, body.rv-checking .rv-cw.rv-selected { outline: 2px solid var(--rv-cur);
  outline-offset: 1px; background: var(--rv-ck-bg); box-shadow: none; }
@media print {
  .rv-w.rv-mark, .rv-cw-doubt { background: none; border-bottom: 0; }
}

/* A speaker just named: the line lit gold for a moment (mockup F2), in court style's pages and in Attesta's look. */
.cs-line.cs-new, .rv-speaker.rv-sp-new { animation: rv-new 2.4s ease-out; }
@keyframes rv-new { 0%, 60% { background: var(--rv-new); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cs-line.cs-new, .rv-speaker.rv-sp-new { animation: none; background: var(--rv-new); } }

/* The reminder (mockup F1): bottom right, once per hearing, while the speakers are not named. */
.rv-remind { position: fixed; right: 28px; bottom: 28px; z-index: 70; width: 290px; box-sizing: border-box;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; border-color: #D4A017;
  box-shadow: 0 8px 28px rgba(10,22,40,.22); }
.rv-remind[hidden] { display: none; }
.rv-remind-head { display: flex; align-items: center; gap: 10px; }
.rv-remind-head strong { flex: 1; font-size: 15px; color: var(--body-text); }
.rv-remind-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); padding: 0 2px; cursor: pointer; }
.rv-remind-btns { display: flex; gap: 8px; justify-content: flex-end; }
.rv-remind-btns .btn { margin: 0; }

/* Focus leaves the transcript alone; a narrow window puts the bar above the transcript, its items in a row. */
body.rv-focus .rv-rail, body.rv-focus .rv-panel, body.rv-focus .rv-top .rv-saveas, body.rv-focus .rv-remind { display: none !important; }
@media (max-width: 900px) {
  .rv-with-bm { flex-direction: column; align-items: stretch; }
  .rv-rail { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-self: flex-start; }
  .rv-ri { min-width: 60px; }
  .rv-panel, .rv-panel-check { position: static; width: auto; max-height: 420px; }
}
@media print {
  .rv-rail, .rv-panel, .rv-remind, .rv-top .rv-saveas, .rv-print { display: none !important; }
}
