/* Review workspace: one dark, quiet surface; the image is the brightest thing on screen.
   Square panels and controls (brand), round pins and avatars (function). */
body.rv-open { overflow: hidden; }
.rv {
  --bg: #0b0b0b;
  --panel: #121212;
  --raised: #1a1a1a;
  --hover: #222;
  --line: #242424;
  --line-2: #323232;
  --text: #f2efea;
  --muted: #a6a29c;
  --quiet: #75726d;
  --accent: #f6851f;
  --accent-soft: rgba(246, 133, 31, 0.14);
  --good: #63c48a;
  --danger: #e5484d;
  --sans: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  position: fixed; inset: 0; z-index: 1000;
  display: grid; grid-template-rows: 56px minmax(0, 1fr);
  background: var(--bg); color: var(--text);
  font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.rv *, .rv *::before, .rv *::after { box-sizing: border-box; }
:where(.rv) button { font: inherit; color: inherit; }
:where(.rv) svg { width: 18px; height: 18px; flex: none; display: block; }
.rv [hidden] { display: none !important; }
.rv-grow { flex: 1; }

/* ---------- controls */
.rv-ib {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.rv-ib:hover { background: var(--hover); color: var(--text); }
.rv-ib--sm { width: 28px; height: 28px; }
.rv-ib--sm svg { width: 16px; height: 16px; }
.rv-ib:focus-visible, .rv-btn:focus-visible, .rv-tool:focus-visible, .rv-tb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-tb {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; font-size: 13px; transition: background .15s, border-color .15s;
}
.rv-tb:hover { background: var(--hover); }
.rv-tb.is-on { background: var(--text); color: #0e0e0e; border-color: var(--text); }
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid transparent; cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .15s, opacity .15s;
}
.rv-btn svg { width: 16px; height: 16px; }
.rv-btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.rv-btn--primary { background: var(--text); color: #0e0e0e; }
.rv-btn--primary:hover { background: #fff; }
.rv-btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.rv-btn--ghost:hover { background: var(--hover); }
.rv-btn--danger { background: var(--danger); color: #fff; }
.rv-btn:disabled { opacity: .45; cursor: default; }
.rv-link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); display: inline-flex; gap: 6px; align-items: center; }
.rv-link:hover { color: var(--text); }
.rv-link svg { width: 14px; height: 14px; }

.rv-seg { display: inline-flex; background: var(--raised); padding: 2px; gap: 2px; }
.rv-seg:empty { display: none; }
.rv-seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; transition: background .15s, color .15s; white-space: nowrap; }
.rv-seg button:hover { color: var(--text); }
.rv-seg button.is-on { background: var(--text); color: #0e0e0e; }
.rv-seg--sm button { height: 26px; padding: 0 10px; font-size: 12px; }

/* avatars (also used on the portal) */
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 500 11px/1 var(--sans, sans-serif); letter-spacing: .02em; user-select: none; }
.av--sm { width: 22px; height: 22px; font-size: 9.5px; }
.av--pin { width: 22px; height: 22px; font-size: 9.5px; }

/* ---------- top bar */
.rv-top { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 10px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.rv-title { min-width: 0; line-height: 1.2; }
.rv-title__name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-title__sub { font-size: 12px; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rv-top__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rv-approve { display: flex; align-items: center; gap: 12px; padding-left: 6px; }
.rv-approved { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: rgba(99, 196, 138, 0.12); color: var(--good); font-size: 13.5px; font-weight: 500; }
.rv-approved svg { width: 16px; height: 16px; }
.rv-approved em { font-style: normal; font-weight: 400; color: var(--muted); }
.rv-waiting { font-size: 12.5px; color: var(--quiet); }
.rv-dot { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #0e0e0e; font: 600 10px/16px var(--sans); }
.rv-dot:empty { display: none; }

/* ---------- body grid */
.rv-body {
  display: grid; min-height: 0;
  grid-template-columns: 52px minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas: "rail stage side" "rail vbar side" "rail strip side";
}
.rv-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; background: var(--panel); border-right: 1px solid var(--line); }
.rv-tool { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.rv-tool:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.rv-tool.is-on { background: var(--text); color: #0e0e0e; }
.rv-tool:disabled { opacity: .28; cursor: default; }
.rv-tool svg { width: 19px; height: 19px; }
.rv-rail__sep { width: 22px; height: 1px; background: var(--line-2); margin: 8px 0; }
.rv-colors { display: grid; gap: 6px; padding: 4px 0 8px; transition: opacity .2s; }
.rv-colors.is-off { opacity: .35; }
.rv-color { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.rv-color.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--text); }

/* ---------- stage */
.rv-stage { grid-area: stage; position: relative; min-height: 0; overflow: hidden; background: var(--bg); }
.rv-canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.rv-canvas[data-tool="comment"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 23V12a9 9 0 1 1 9 9H3z' fill='%23f6851f' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") 3 23, crosshair; }
.rv-canvas[data-tool="move"], .rv.is-space .rv-canvas { cursor: grab; }
.rv.is-panning .rv-canvas { cursor: grabbing; }
.rv-canvas[data-tool="compare"] { cursor: ew-resize; }
.rv-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; clip-path: inset(0); background: #161616; }
.rv-world > img, .rv-world > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.rv-ph { filter: blur(14px); transform: scale(1.04); }
.rv-img { opacity: 0; transition: opacity .35s ease; }
.rv-img.is-in { opacity: 1; }
.rv-video { background: #000; object-fit: contain; }
.rv-before { z-index: 1; }
.rv-split { position: absolute; top: 0; bottom: 0; z-index: 3; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.rv-split span { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: #0e0e0e; display: grid; place-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.rv-cmp { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 4; display: flex; justify-content: space-between; pointer-events: none; }
.rv-cmp span { font-size: 12px; padding: 4px 9px; background: rgba(14,14,14,.72); backdrop-filter: blur(8px); }

/* drawings */
.rv .rv-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.rv-ink path, .rv-ink rect, .rv-ink ellipse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rv-ink .rv-ink__halo { stroke: rgba(0,0,0,.38); stroke-width: 5.5; }
.rv-ink .rv-ink__area { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 4; fill: rgba(255,255,255,.08); }

/* pins: a round marker with its point at the spot (bottom-left corner) */
.rv-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.rv-pin {
  position: absolute; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50% 50% 50% 0; transform: translate(0, -100%); transform-origin: 0 100%;
  background: var(--accent); color: #0e0e0e; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35);
  font: 600 12px/1 var(--sans); cursor: pointer; pointer-events: auto; transition: transform .16s ease, background .15s, opacity .2s;
}
.rv-pin > span { display: block; }
.rv-pin.done { background: #fff; }
.rv-pin.done::after { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--good); border: 1.5px solid #fff; }
.rv-pin.resolved { background: #5e5c58; color: #ddd; border-color: #bdb9b3; }
.rv-pin.carried { border-style: dashed; }
.rv-pin.is-hover, .rv-pin:hover { transform: translate(0, -100%) scale(1.12); }
.rv-pin.is-sel { transform: translate(0, -100%) scale(1.18); box-shadow: 0 0 0 4px rgba(246,133,31,.35), 0 2px 12px rgba(0,0,0,.4); z-index: 2; }
.rv-pin.is-off { opacity: 0; pointer-events: none; }
.rv-pin--new { background: #fff; padding: 2px; pointer-events: none; animation: rv-drop .22s ease-out; }
.rv-pin--new .av { width: 22px; height: 22px; }
.rv-pin--pano { position: static; transform: none; }
.rv-pin--pano.is-sel, .rv-pin--pano:hover { transform: scale(1.15); }
@keyframes rv-drop { from { transform: translate(0, -100%) scale(.4); opacity: 0; } }
.rv-box { position: absolute; border: 1.5px solid var(--accent); background: rgba(246,133,31,.06); pointer-events: none; transition: opacity .2s; }
.rv-box.done { border-color: #fff; background: rgba(255,255,255,.05); }
.rv-box.resolved { border-color: #75726d; background: transparent; }
.rv-box.is-sel { background: rgba(246,133,31,.14); border-width: 2px; }
.rv-box.is-off { opacity: 0; }
.rv-box--new { border-style: dashed; border-color: #fff; background: rgba(255,255,255,.08); }

.rv-pano { position: absolute; inset: 0; }
.rv-pano .psv-container { background: var(--bg); }

/* floating stage chrome */
.rv-nav { position: absolute; top: 50%; z-index: 6; width: 40px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: 0; padding: 0;
  background: rgba(18,18,18,.6); color: var(--text); cursor: pointer; opacity: 0; transition: opacity .2s, background .15s; backdrop-filter: blur(8px); }
.rv-nav--prev { left: 0; }
.rv-nav--next { right: 0; }
.rv-stage:hover .rv-nav { opacity: 1; }
.rv-nav:hover { background: rgba(30,30,30,.9); }
.rv-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: flex; background: rgba(18,18,18,.82); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.rv-zoom button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.rv-zoom button:hover { color: var(--text); background: var(--hover); }
.rv-zoom svg { width: 16px; height: 16px; }
.rv-zoom__v { font-size: 12px; min-width: 52px !important; font-variant-numeric: tabular-nums; }
.rv-hint { position: absolute; left: 50%; bottom: 16px; z-index: 6; transform: translate(-50%, 8px); padding: 7px 12px; font-size: 12.5px;
  background: rgba(18,18,18,.85); backdrop-filter: blur(10px); color: var(--text); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; }
.rv-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.rv-toast { position: absolute; left: 50%; top: 16px; z-index: 20; transform: translateX(-50%); padding: 9px 14px; font-size: 13px; background: var(--text); color: #0e0e0e; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: rv-in .2s ease-out; max-width: calc(100% - 32px); }
.rv-spin { position: absolute; left: 50%; top: 50%; z-index: 6; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: rv-rot .8s linear infinite; pointer-events: none; }
@keyframes rv-rot { to { transform: rotate(360deg); } }
@keyframes rv-in { from { opacity: 0; transform: translate(-50%, -6px); } }

/* ---------- composer (popover + general) */
.rv-comp textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; color: var(--text); font: 14px/1.45 var(--sans); padding: 0; min-height: 21px; }
.rv-comp textarea::placeholder { color: var(--quiet); }
.rv-comp__bar { display: flex; align-items: center; gap: 6px; }
.rv-comp__bar label.rv-ib { cursor: pointer; }
.rv-comp__meta { font-size: 12px; color: var(--muted); }
.rv-comp__att:empty { display: none; }
.rv-comp__up { font-size: 12px; color: var(--muted); }
.rv-chipimg { position: relative; display: inline-block; }
.rv-chipimg img { width: 84px; height: 60px; object-fit: cover; display: block; }
.rv-chipimg button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(14,14,14,.8); color: #fff; cursor: pointer; }
.rv-chipimg button svg { width: 12px; height: 12px; }
.rv-comp [data-c="post"] { opacity: .45; }
.rv-comp.has-text [data-c="post"] { opacity: 1; }

.rv-pop { position: absolute; z-index: 12; width: 320px; display: grid; gap: 10px; padding: 12px 12px 10px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: rv-pop .16s ease-out; }
.rv-pop__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rv-pop__head b { font-weight: 500; }
.rv-pop__n { margin-left: auto; color: var(--quiet); font-size: 12px; }
.rv-pop.is-shake { animation: rv-shake .32s ease; }
@keyframes rv-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes rv-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ---------- video bar */
.rv-vbar { grid-area: vbar; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.rv-vbar [data-act="play"] { color: var(--text); }
.rv-time { display: flex; gap: 5px; font-size: 12.5px; color: var(--quiet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-time b { color: var(--text); font-weight: 400; }
.rv-scrub { position: relative; flex: 1; height: 34px; cursor: pointer; touch-action: none; }
.rv-scrub__track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line-2); overflow: hidden; }
.rv-scrub__track i { position: absolute; left: 0; top: 0; bottom: 0; }
.rv-scrub__buf { background: #3c3c3c; }
.rv-scrub__fill { background: var(--text); }
.rv-scrub__head { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; pointer-events: none; }
.rv-scrub__marks { position: absolute; inset: 0; }
.rv-mark { position: absolute; top: -4px; transform: translateX(-50%); min-width: 18px; height: 18px; padding: 0 4px; border: 0; border-radius: 9px 9px 9px 0; background: var(--accent); color: #0e0e0e; font: 600 10px/18px var(--sans); cursor: pointer; }
.rv-mark.done { background: #fff; }
.rv-mark.resolved { background: #5e5c58; color: #ddd; }
.rv-mark.is-sel { box-shadow: 0 0 0 2px rgba(246,133,31,.45); }
.rv-speed { height: 28px; padding: 0 8px; font-size: 12px; min-width: 42px; justify-content: center; font-variant-numeric: tabular-nums; }

/* ---------- filmstrip */
.rv-strip { grid-area: strip; display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: var(--panel); border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rv-fs { position: relative; flex: none; width: 104px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; opacity: .6; transition: opacity .15s; }
.rv-fs:hover, .rv-fs.is-on { opacity: 1; }
.rv-fs__pic { display: block; aspect-ratio: 16 / 10; background: #1d1d1d center / cover no-repeat; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.rv-fs.is-on .rv-fs__pic { outline-color: var(--text); }
.rv-fs__t { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-fs.is-on .rv-fs__t { color: var(--text); }
.rv-fs__ok, .rv-fs__n { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font: 600 10px/1 var(--sans); }
.rv-fs__ok { background: var(--good); color: #0e0e0e; }
.rv-fs__ok svg { width: 12px; height: 12px; stroke-width: 2.4; }
.rv-fs__n { background: var(--accent); color: #0e0e0e; }
.rv-fs__kind { position: absolute; left: 5px; top: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; font-size: 10px; background: rgba(14,14,14,.75); }
.rv-fs__kind svg { width: 9px; height: 9px; }

/* ---------- side panel */
.rv-side { grid-area: side; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.rv-side__grab { display: none; }
.rv-side__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.rv-side__head h2 { margin: 0; font-size: 14px; font-weight: 500; }
.rv-threads { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rv-general { display: grid; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--panel); transition: background .15s; }
.rv-general.is-focus, .rv-general.has-text { background: var(--raised); }
.rv-general:not(.is-focus):not(.has-text) .rv-comp__bar { display: none; }

.rv-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 28px; text-align: center; color: var(--quiet); }
.rv-empty svg { width: 28px; height: 28px; margin-bottom: 6px; stroke-width: 1.3; }
.rv-empty b { color: var(--text); font-weight: 500; font-size: 14px; }
.rv-empty span { font-size: 13px; max-width: 30ch; }

.rv-th { position: relative; display: grid; gap: 8px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; outline: none; }
.rv-th:hover { background: #161616; }
.rv-th.is-sel { background: var(--raised); box-shadow: inset 2px 0 0 var(--accent); }
.rv-th.resolved > :not(.rv-th__head) { opacity: .6; }
.rv-th__head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rv-th__n { flex: none; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px 11px 11px 0; display: grid; place-items: center; background: var(--accent); color: #0e0e0e; font: 600 11px/1 var(--sans); }
.rv-th.done .rv-th__n { background: #fff; }
.rv-th.resolved .rv-th__n { background: #5e5c58; color: #ddd; }
.rv-th__who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; flex: 1; line-height: 1.25; }
.rv-th__who b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rv-th__who > span:last-child { font-size: 12px; color: var(--quiet); white-space: nowrap; }
.rv-tag { font-size: 10.5px; padding: 1px 5px; border: 1px solid var(--line-2); color: var(--muted); }
.rv-check { color: var(--quiet); }
.rv-check.is-on { color: var(--good); }
.rv-check:hover { color: var(--good); }
.rv-th__del { opacity: 0; }
.rv-th:hover .rv-th__del, .rv-th.is-sel .rv-th__del { opacity: 1; }
.rv-th__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 31px; }
.rv-th__tags:empty { display: none; }
.rv-tc, .rv-from, .rv-drawn { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; font-size: 11.5px; border: 0; background: var(--hover); color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-tc { cursor: pointer; color: var(--text); }
.rv-tc:hover { background: #2c2c2c; }
.rv-tc svg, .rv-drawn svg { width: 12px; height: 12px; }
.rv-from { background: var(--accent-soft); color: #f7a75f; }
.rv-th__body { padding-left: 31px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; color: #e8e4de; }
.rv-th__att { margin-left: 31px; justify-self: start; }
.rv-th__att img { width: 140px; height: 94px; object-fit: cover; display: block; }
.rv-th__fix { margin-left: 31px; justify-self: start; }
.rv-fixed { margin-left: 31px; display: grid; gap: 10px; padding: 10px 12px; background: rgba(99,196,138,.08); border-left: 2px solid var(--good); font-size: 13px; color: #cfe9d9; }
.rv-fixed > span { display: flex; gap: 8px; align-items: flex-start; }
.rv-fixed > span svg { width: 16px; height: 16px; color: var(--good); margin-top: 1px; }
.rv-fixed__row { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-re { display: flex; gap: 9px; margin-left: 31px; padding-top: 8px; border-top: 1px solid var(--line); }
.rv-re > div { min-width: 0; flex: 1; }
.rv-re__body { white-space: pre-line; overflow-wrap: anywhere; font-size: 13.5px; color: #e0dcd6; margin-top: 2px; }
.rv-reply { display: none; align-items: flex-end; gap: 6px; margin-left: 31px; padding: 6px 6px 6px 10px; background: var(--bg); border: 1px solid var(--line-2); cursor: text; }
.rv-th.is-sel .rv-reply, .rv-reply.has-text, .rv-reply:focus-within { display: flex; }
.rv-reply textarea { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); resize: none; font: 13.5px/1.45 var(--sans); padding: 3px 0; min-height: 22px; }
.rv-reply textarea::placeholder { color: var(--quiet); }
.rv-reply button { opacity: .5; }
.rv-reply.has-text button { opacity: 1; color: var(--text); }
.rv-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 31px; padding: 10px 12px; background: rgba(229,72,77,.08); font-size: 13px; }
.rv-confirm span { flex: 1 1 100%; }

/* ---------- shortcuts */
.rv-help { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 20px; }
.rv-help__box { width: min(420px, 100%); background: var(--raised); border: 1px solid var(--line-2); padding: 18px 20px 20px; }
.rv-help header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rv-help h2 { margin: 0; font-size: 15px; font-weight: 500; }
.rv-help dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin: 0; font-size: 13px; }
.rv-help dt { color: var(--muted); }
.rv-help dd { margin: 0; display: flex; gap: 4px; align-items: center; color: var(--muted); }
.rv-help kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: 11.5px/1 var(--sans); }

.rv-only-m { display: none; }

/* ---------- small screens: tools along the bottom, comments in a sheet */
@media (max-width: 820px) {
  .rv { grid-template-rows: 52px minmax(0, 1fr); }
  .rv-hide-m { display: none !important; }
  .rv-only-m { display: inline-grid; }
  .rv-top { gap: 8px; padding: 0 6px; }
  .rv-rounds { display: none; }
  .rv-tb span { display: none; }
  .rv-tb { padding: 0 9px; }
  .rv-approve .rv-btn { padding: 0 12px; }
  .rv-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "stage" "vbar" "rail"; }
  .rv-rail { flex-direction: row; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .rv-rail__sep { width: 1px; height: 22px; margin: 0 6px; }
  .rv-colors { display: flex; padding: 0 4px; gap: 8px; }
  .rv-tool { width: 40px; height: 40px; flex: none; }
  .rv-strip { display: none; }
  .rv-nav { opacity: 1; width: 34px; height: 48px; margin-top: -24px; background: rgba(18,18,18,.5); }
  .rv-zoom { right: 10px; bottom: 10px; }
  .rv-zoom button:not(.rv-zoom__v) { display: none; }
  .rv-side {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: min(72vh, 620px);
    border-left: 0; border-top: 1px solid var(--line-2); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
    grid-template-rows: auto auto minmax(0, 1fr) auto; box-shadow: 0 -16px 40px rgba(0,0,0,.4);
  }
  .rv.sheet-open .rv-side { transform: none; }
  .rv-side__grab { display: block; height: 22px; border: 0; background: none; cursor: pointer; position: relative; }
  .rv-side__grab::after { content: ''; position: absolute; left: 50%; top: 9px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .rv-side__head { padding-top: 4px; }
  .rv-general { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .rv-pop { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; z-index: 50; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; }
  .rv-th__del { opacity: 1; }
  .rv-hint { bottom: 54px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
}

/* eightstation.com voice: small spaced capitals on controls, paper buttons that swap on hover */
.rv-btn, .rv-tb, .rv-seg button, .rv-approved, .rv-side__head h2, .rv-help h2 { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.rv-btn--sm { font-size: 0.625rem; }
.rv-btn--primary { background: #f9f9f9; color: #0e0e0e; border-color: #f9f9f9; transition: background .4s cubic-bezier(.22,.61,.36,1), color .4s, border-color .4s; }
.rv-btn--primary:hover { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.rv-btn--ghost { border-color: rgba(255,255,255,.4); }
.rv-btn--ghost:hover { background: #f9f9f9; color: #0e0e0e; border-color: #f9f9f9; }
.rv-title__name { font-weight: 400; letter-spacing: 0.02em; }
.rv-title__sub { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.625rem; color: #6e6b66; }
.rv-approved em { text-transform: none; letter-spacing: 0.02em; }
