.rv-root { --rv-trocr: #b07a2a; --rv-plain: #1f62b0; --rv-dspark: #1a8a5a; --rv-bad: #c4342d; --rv-muted: color-mix(in srgb, var(--body-text-color) 70%, transparent); display: flex; flex-direction: column; gap: 18px; color: var(--body-text-color); font-size: 14px; line-height: 1.5; } .rv-root[data-theme="dark"] { --rv-trocr: #b8842f; --rv-plain: #4f8fdb; --rv-dspark: #3fa97a; --rv-bad: #ff8a7a; } .rv-root [hidden] { display: none; } .rv-hint, .rv-status { color: var(--rv-muted); margin: 0; } .rv-notice { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-color-primary); border-left: 4px solid var(--rv-trocr); background: var(--background-fill-secondary); max-width: 100ch; } .rv-status::before { content: "● "; animation: rv-pulse 1.2s ease-in-out infinite; } .rv-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; } /* on a wide page: the bars beside what they amount to, and our server's timings beside the batched rates */ .rv-split, .rv-pair { display: grid; gap: 12px 32px; align-items: start; } .rv-timed { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .rv-title { margin: 0; font-size: 15px; font-weight: 600; } .rv-summary, .rv-said, .rv-note { margin: 0; max-width: 100ch; } .rv-note { font-size: 13px; color: var(--rv-muted); } .rv-k { font-size: 12px; color: var(--rv-muted); letter-spacing: 0.02em; } /* a bar per timed stretch; the live bars and our server's share one scale */ .rv-track { display: flex; flex-direction: column; gap: 8px; } .rv-row { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; } .rv-name, .rv-head { display: flex; align-items: center; gap: 8px; min-width: 0; } .rv-swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; background: var(--rv-lane); } [data-lane="trocr"] { --rv-lane: var(--rv-trocr); } [data-lane="plain"] { --rv-lane: var(--rv-plain); } [data-lane="dspark"] { --rv-lane: var(--rv-dspark); } .rv-bar { height: 14px; border-radius: 4px; background: var(--background-fill-secondary); overflow: hidden; } .rv-fillbar { height: 100%; width: 0; border-radius: 4px; background: var(--rv-lane); } .rv-time { text-align: right; font-variant-numeric: tabular-nums; } /* measured beforehand, not here: tinted and outlined instead of solid */ .rv-server .rv-fillbar { background: color-mix(in srgb, var(--rv-lane) 38%, transparent); box-shadow: inset 0 0 0 1.5px var(--rv-lane); transition: width 0.4s ease; } .rv-server .rv-swatch { background: color-mix(in srgb, var(--rv-lane) 38%, transparent); box-shadow: inset 0 0 0 1.5px var(--rv-lane); } .rv-tiles { display: grid; gap: 8px; } .rv-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 12px; border: 1px solid var(--border-color-primary); border-left: 4px solid var(--rv-lane); border-radius: 6px; } .rv-tilename { font-weight: 600; } .rv-rate { font-size: 26px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; } .rv-unit { font-size: 13px; font-weight: 400; color: var(--rv-muted); } .rv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rv-button { font: inherit; color: inherit; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border-color-primary); background: var(--background-fill-secondary); cursor: pointer; } .rv-button:hover { border-color: var(--rv-muted); } .rv-main { font-weight: 600; color: #fff; background: var(--rv-dspark); border-color: var(--rv-dspark); padding: 5px 16px; } .rv-main:hover { filter: brightness(1.08); border-color: var(--rv-dspark); } .rv-button:focus-visible, .rv-foldhead:focus-visible { outline: 2px solid var(--rv-plain); outline-offset: 2px; } .rv-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; } .rv-lane { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border-color-primary); border-top: 3px solid var(--rv-lane); border-radius: 6px; } .rv-meta, .rv-legend { font-size: 12px; color: var(--rv-muted); font-variant-numeric: tabular-nums; } .rv-how { font-size: 12px; color: var(--rv-muted); } .rv-skipped { opacity: 0.55; } /* the manuscript: an outline per line, and a highlighter fill that grows as the line is read */ .rv-page { position: relative; align-self: center; width: min(100%, calc(300px * var(--rv-aspect, 1))); aspect-ratio: var(--rv-aspect, 1); margin: 4px 0; border-radius: 4px; overflow: hidden; background: #fff; } .rv-page img { display: block; width: 100%; height: 100%; } .rv-ink { position: absolute; inset: 0; width: 100%; height: 100%; } .rv-ink .rv-fill { fill: var(--rv-lane); fill-opacity: 0.38; mix-blend-mode: multiply; pointer-events: none; } .rv-ink .rv-edge { fill: transparent; stroke: var(--rv-lane); stroke-opacity: 0.45; stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: pointer; } .rv-ink .rv-edge.rv-hot { stroke-opacity: 1; stroke-width: 2.5px; fill: var(--rv-lane); fill-opacity: 0.18; } .rv-line.rv-hot { background: color-mix(in srgb, var(--rv-plain) 14%, transparent); } /* one block per reader pass, as wide as the tokens it produced */ .rv-passes { display: flex; gap: 1px; height: 10px; margin: 2px 0 4px; overflow: hidden; } .rv-passes.rv-dense { gap: 0; } .rv-passes i { flex: 1 1 0; min-width: 0; border-radius: 1px; background: var(--rv-lane); opacity: 0.16; } .rv-passes i.rv-on { opacity: 1; } .rv-text { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 7.5em; max-height: 360px; overflow-y: auto; } .rv-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; border-radius: 2px; cursor: default; } .rv-draft { background: color-mix(in srgb, var(--rv-dspark) 24%, transparent); border-radius: 2px; } .rv-text .rv-draft { animation: rv-flash 0.5s ease-out; } .rv-own { text-decoration: underline; text-decoration-color: var(--rv-dspark); text-decoration-thickness: 2px; text-underline-offset: 3px; } /* Jev, folded away: its verdict on the region as the fold's title; inside, how to read it, the CER bars, a row a line */ .rv-tallies { max-width: 660px; margin: 4px 0 6px; } .rv-tally { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .rv-tallyhead { font-size: 13px; font-weight: 600; } .rv-trow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13px; } [data-lane="kept"] { --rv-lane: color-mix(in srgb, var(--body-text-color) 72%, transparent); } [data-lane="best"] { --rv-lane: color-mix(in srgb, var(--body-text-color) 30%, transparent); } .rv-trow[data-lane="best"] .rv-fillbar { background: repeating-linear-gradient(135deg, var(--rv-lane) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--rv-lane); } .rv-fold { border: 1px solid var(--border-color-primary); border-radius: 6px; padding: 0 12px; } .rv-fold > .rv-note { margin: 10px 0 6px; } .rv-foldhead { padding: 9px 0; cursor: pointer; font-size: 15px; font-weight: 600; } .rv-fold[open] .rv-foldhead { border-bottom: 1px solid var(--border-color-primary); margin-bottom: 8px; } .rv-jlist { display: flex; flex-direction: column; } .rv-jt { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 128px; gap: 4px 12px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--border-color-primary); font-size: 13px; cursor: pointer; } .rv-jthead { padding: 8px 0 4px; border-top: 0; font-size: 12px; font-weight: 600; color: var(--rv-muted); cursor: default; } .rv-jt.rv-hot { background: color-mix(in srgb, var(--rv-plain) 10%, transparent); } .rv-both { grid-column: span 2; } .rv-jc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; padding: 1px 4px; border-radius: 4px; } .rv-kept { background: color-mix(in srgb, var(--body-text-color) 7%, transparent); box-shadow: inset 2px 0 0 var(--rv-muted); } .rv-reading { overflow-wrap: anywhere; } .rv-truth { overflow-wrap: anywhere; color: var(--rv-muted); } .rv-score { font-size: 11px; color: var(--rv-muted); font-variant-numeric: tabular-nums; } .rv-kept .rv-score { color: var(--body-text-color); font-weight: 600; } .rv-outcome { font-size: 12px; color: var(--rv-muted); } .rv-outcome[data-kind="good"] { color: var(--body-text-color); font-weight: 600; } .rv-outcome[data-kind="bad"] { color: var(--rv-bad); font-weight: 600; } .rv-jimg { grid-column: 2 / -1; max-width: 100%; max-height: 56px; border-radius: 3px; background: #fff; } .rv-bad { background: color-mix(in srgb, var(--rv-bad) 20%, transparent); text-decoration: underline wavy var(--rv-bad); text-underline-offset: 3px; border-radius: 2px; } @keyframes rv-flash { from { background: color-mix(in srgb, var(--rv-dspark) 70%, transparent); } } @keyframes rv-pulse { 50% { opacity: 0.3; } } @media (min-width: 1100px) { .rv-split, .rv-pair { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .rv-pair.rv-single { grid-template-columns: minmax(0, 1fr); } .rv-pair.rv-single .rv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 760px) { .rv-row { grid-template-columns: minmax(0, 1fr) 64px; } .rv-row .rv-bar { grid-column: 1 / -1; grid-row: 2; } .rv-jt { grid-template-columns: 22px minmax(0, 1fr); } .rv-jt > :not(:first-child) { grid-column: 2; } .rv-both { grid-column: 2; } .rv-jthead { display: none; } .rv-trow { grid-template-columns: 104px minmax(0, 1fr) 52px; } } @media (prefers-reduced-motion: reduce) { .rv-text .rv-draft, .rv-status::before { animation: none; } .rv-server .rv-fillbar { transition: none; } }