/* Skate Bud web demo: the video page (SB.vp in js/screens-review.js), used by the Review and Highlights tabs and
   offered to the Shifts and Session tabs. Compact (.k-phone, .k-cover): video, clip bar, keys, the now-card, the
   answer bar. Wide (.k-inner): the video pane at the left, a 1 pt divider, the 300 pt list column at the right.
   Also the list sheet, the ... box, the Partly mode and the expanded video. Class prefix rv-. */

/* ---------- the page ---------- */
.rv-page { height: 100%; display: flex; overflow: hidden; background: var(--sb-bg); }
.rv-page.is-compact { flex-direction: column; }
.rv-page.is-wide { flex-direction: row; }
.k-cover .rv-page.is-compact { padding-bottom: 0; }
.rv-left { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rv-divider { flex: none; width: 1px; background: var(--sb-border); }
.rv-col { flex: none; width: 300px; min-height: 0; display: flex; flex-direction: column; background: var(--sb-panel); }
.rv-sp { flex: 1 1 auto; min-width: 0; }
.rv-dot { color: var(--sb-muted); }

/* ---------- the video's stage ---------- */
/* flex-basis 0: the stage takes only the room the rows under it leave, from the first layout on, whatever it holds */
.rv-stage { position: relative; flex: 1 1 0px; min-height: 120px; overflow: hidden; background: #2b2f36; cursor: pointer; }
/* the toast's slot (core's [data-sb-toast]) sits at the stage's foot; over the Remove chip it moves up */
.rv-stage.has-chip > [data-sb-toast] { bottom: 40px; }
.rv-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.rv-stage.is-carded .rv-cv { visibility: hidden; }
.rv-tl {
  position: absolute; left: 8px; top: 8px; max-width: 72%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none;
}
.rv-pill {
  padding: 6px 12px; border-radius: 11px; color: #fff; white-space: nowrap;
  font-size: 16px; line-height: 21px; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.rv-cap {
  min-width: 160px; max-width: 100%; padding: 5px 10px; border-radius: 9px;
  color: #fff; font-size: 15px; line-height: 20px; font-weight: 600; background: rgba(0, 0, 0, 0.5);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rv-tr { position: absolute; right: 8px; top: 8px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 16px); }
.rv-title-chip {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12px; line-height: 16px; color: var(--sb-muted);
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow); pointer-events: none;
}
.rv-chip {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); max-width: calc(100% - 16px);
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden;
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--sb-text); pointer-events: none;
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
}
.rv-chip span { overflow: hidden; text-overflow: ellipsis; }
.rv-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: default; }
.rv-card.is-solid { background: #2b2f36; }

/* ---------- Highlights' tall 9:16 preview over the stage ---------- */
.rv-tall {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 12px; background: rgba(20, 22, 26, 0.82); cursor: default;
}
.rv-tall-box {
  position: relative; flex: none; height: 100%; aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 12px; overflow: hidden; background: #2b2f36; cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.rv-tall-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.rv-tall-tag {
  position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; pointer-events: none;
  font-size: 11px; line-height: 15px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.55);
}
.rv-tall-x { position: absolute; right: 8px; top: 8px; }
.rv-x .rv-tall { bottom: 140px; }

/* ---------- the clip bar ---------- */
.rv-scrub { flex: none; display: flex; align-items: center; min-height: 40px; padding: 4px 12px 0; }
.rv-st, .rv-et { flex: none; min-width: 44px; font-size: 13px; line-height: 18px; color: var(--sb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-et { text-align: right; }
.rv-bar { position: relative; flex: 1 1 auto; min-width: 40px; height: 28px; margin: 0 11px; touch-action: none; cursor: pointer; }
.rv-bar > i, .rv-parts > i, .rv-handles > i { position: absolute; display: block; }
.rv-track { left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: rgba(120, 120, 128, 0.2); }
.rv-fill { left: 0; top: 11px; height: 6px; width: 0; border-radius: 3px; background: rgba(95, 104, 120, 0.7); }
.rv-parts { position: absolute; left: 0; right: 0; top: 0; height: 28px; pointer-events: none; }
.rv-part { top: 11px; height: 6px; border-radius: 3px; background: rgba(52, 199, 89, 0.75); }
.rv-part.is-red { background: rgba(180, 35, 24, 0.8); }
.rv-part.is-dim { opacity: 0.35; }
.rv-lane { left: 0; right: 0; top: 20px; height: 3px; border-radius: 1.5px; background: #007aff; }
.rv-ph {
  z-index: 1; top: 3px; left: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.rv-handles { position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 2; pointer-events: none; }
.rv-handle { top: 0; width: 36px; height: 28px; margin-left: -18px; cursor: ew-resize; pointer-events: auto; }
.rv-handle::before {
  content: ""; position: absolute; left: 13.5px; top: 3px; width: 9px; height: 22px; box-sizing: border-box;
  background: #fff; border: 2px solid #34c759; border-radius: 3px;
}
.rv-handle::after { content: ""; position: absolute; left: 17.25px; top: 10px; width: 1.5px; height: 8px; background: #34c759; }

/* ---------- the key row ---------- */
.rv-keys { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rv-keyrows { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 6px 8px; }
.rv-keys-top { gap: 6px; }
.rv-keys-bot { gap: 6px; }
.rv-keys-row { flex: none; padding: 6px 8px; }
.rv-keys-wide { flex: none; height: 60px; padding: 0 8px; }
.rv-keys .rv-ik { width: 44px; height: 38px; padding: 0; }
.rv-keys .rv-speed { min-width: 54px; height: 38px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.rv-keys .rv-hl.rv-on { background: rgba(234, 179, 8, 0.92); color: #fff; }
.rv-keys-bot .rv-bk { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 6px; gap: 5px; font-size: 14px; }
.rv-bk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rv-view, .rv-follow { height: 38px; }
.rv-vword { display: inline-grid; text-align: left; }
.rv-vword > span { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.rv-vword > span.is-on { visibility: visible; }
.rv-updown { display: flex; flex-direction: column; gap: 0; opacity: 0.8; margin-left: -1px; }
.rv-dots { display: flex; flex-direction: column; gap: 2.5px; }
.rv-dots > i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.3; }
.rv-dots > i.is-on { opacity: 1; }

/* ---------- the now-card ---------- */
.rv-now {
  flex: none; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 4px 12px; cursor: pointer;
  background: var(--sb-panel); box-shadow: inset 0 0.5px 0 var(--sb-border);
}
.rv-now-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rv-now .rv-l1 { font-size: 15px; line-height: 20px; }
.rv-now .rv-l2 { font-size: 13px; line-height: 18px; }
.rv-now-count { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 16px; color: var(--sb-muted); font-variant-numeric: tabular-nums; }
.rv-nothing { font-size: 15px; line-height: 20px; color: var(--sb-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rv-gbar { display: block; height: 4px; border-radius: 2px; background: rgba(120, 120, 128, 0.16); overflow: hidden; }
.rv-gbar > i { display: block; height: 100%; border-radius: 2px; background: #34c759; }
.rv-gbar.is-64 { width: 64px; margin-top: 3px; }

/* ---------- the answer bar ---------- */
.rv-answers {
  flex: none; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: rgba(248, 249, 251, 0.94); box-shadow: inset 0 0.5px 0 var(--sb-border);
}
.k-cover .rv-answers { height: 68px; padding-bottom: 8px; }
.rv-answers .rv-ans { flex: 1 1 0; min-width: max-content; padding: 13px 10px; font-weight: 600; }
.rv-answers .rv-ans.rv-on { background: var(--rv-c, #2563eb); color: #fff; box-shadow: var(--sb-glass-shadow); }
.rv-answers .rv-ans:disabled { opacity: 0.45; }
.rv-answers .rv-ans.rv-on:disabled { opacity: 0.35; }
.rv-answers .rv-arrow { flex: none; padding: 13px 10px; }
.rv-p-tag { flex: none; padding: 4px 8px; border-radius: 999px; background: #b7791f; color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; }

/* ---------- the Partly row ---------- */
.rv-prow {
  flex: none; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--sb-panel); box-shadow: inset 0 0.5px 0 var(--sb-border);
}
.rv-left .rv-prow { min-height: 52px; }
.rv-prow .rv-pk { flex: none; gap: 4px; }
.rv-prow .rv-pk.rv-on { background: var(--rv-c, #b42318); color: #fff; }
.rv-p-ask { flex: none; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.rv-p-div { flex: none; width: 1px; height: 24px; background: var(--sb-border); }
.rv-prow .rv-pstep { min-width: 40px; justify-content: center; font-variant-numeric: tabular-nums; }
.rv-prow .rv-pstep.is-on { background: rgba(37, 99, 235, 0.92); color: #fff; }
.rv-prow .rv-pnum { min-width: 34px; justify-content: center; font-variant-numeric: tabular-nums; }

/* ---------- the list column (wide) ---------- */
.rv-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; min-height: 46px; box-shadow: inset 0 -0.5px 0 var(--sb-border); }
.rv-head-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rv-head-t b { font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-head-t span { font-size: 12px; line-height: 16px; color: var(--sb-muted); }
.rv-status { flex: none; font-variant-numeric: tabular-nums; }
.rv-status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rv-step { flex: none; width: 28px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #007aff; }
.rv-step:active { background: var(--sb-fill3); }
.rv-list { position: relative; }
.rv-list-col { flex: 1 1 0px; min-height: 0; overflow-x: hidden; overflow-y: auto; }

/* ---------- the Check first band ---------- */
.rv-band { flex: none; display: block; padding: 8px 12px; cursor: pointer; background: var(--sb-panel); box-shadow: inset 0 -0.5px 0 var(--sb-border); }
.rv-band.is-slim { padding: 6px 12px; }
.rv-band-line { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; white-space: nowrap; }
.rv-band-line b { font-weight: 700; }
.rv-band-line > svg { color: #d97706; }
.rv-band > .rv-gbar { margin: 6px 0; }
.rv-band-line > .rv-gbar { flex: 1 1 auto; min-width: 30px; margin: 0 4px; }
.rv-band-count { flex: none; display: inline-flex; align-items: center; gap: 3px; color: var(--sb-muted); font-variant-numeric: tabular-nums; }
.rv-band-count.is-done { color: #1f8a4c; font-weight: 600; }
.rv-band-cap { display: block; font-size: 12px; line-height: 16px; color: var(--sb-muted); }
.rv-band .rv-learn {
  display: flex; width: 100%; min-height: 36px; margin: 6px 0 4px; font-size: 15px; font-weight: 600;
  background: #34c759; color: #fff;
}
.rv-band.is-slim .rv-learn { min-height: 30px; padding: 4px 12px; margin: 6px 0 2px; }
.rv-band .rv-learn:disabled { opacity: 0.8; }
.rv-band .rv-learn .sb-spin { width: 14px; height: 14px; border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }

/* ---------- list rows ---------- */
.rv-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 4px 12px;
  text-align: left; background: var(--sb-panel); color: var(--sb-text);
}
.rv-row + .rv-row { box-shadow: inset 0 0.5px 0 #dadde3; }
.rv-row.is-open { background: #e6eefc; }
.rv-row:active { background: var(--sb-sel); }
.rv-thumb { flex: none; display: block; border-radius: 6px; overflow: hidden; background: #dadde3; }
.rv-tcv { display: block; width: 100%; height: 100%; }
.rv-row-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rv-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-row-end { flex: none; font-size: 13px; line-height: 18px; }
.rv-l1 { font-size: 17px; line-height: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rv-l2 { font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rv-list-col .rv-row { padding: 4px 10px; gap: 8px; }
.rv-list-col .rv-l1 { font-size: 15px; line-height: 20px; }
.rv-list-col .rv-l2 { font-size: 13px; line-height: 18px; }
.rv-star { display: inline-block; vertical-align: -1px; margin-left: 5px; color: #eab308; }
.rv-yours { color: #007aff; }
/* a Check first clip's tag at the row's right, the band's orange */
.rv-check { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0 6px; border-radius: 999px; white-space: nowrap;
  vertical-align: 1px; font-size: 11px; line-height: 15px; color: #b45309; background: rgba(217, 119, 6, 0.13); }
.rv-check b { font-weight: 600; }
.rv-check.is-done { padding: 2px 4px; color: #d97706; background: none; }
/* the highlights row */
.rv-row.rv-hrow { min-height: 52px; padding: 6px 12px; }
.rv-h1 { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rv-h2 { font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rv-h3 { font-size: 12px; line-height: 16px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-h4 { font-size: 11px; line-height: 13px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; text-align: center; font-size: 15px; line-height: 20px; color: var(--sb-muted); }
.rv-foot { flex: none; padding: 8px 12px; font-size: 13px; line-height: 18px; color: var(--sb-muted); box-shadow: inset 0 0.5px 0 var(--sb-border); }
.rv-allvoted { display: flex; align-items: center; gap: 6px; font-size: 17px; line-height: 22px; font-weight: 600; color: #1f8a4c; }

/* ---------- the list sheet ---------- */
.rv-sheet .rv-list { padding-bottom: 8px; }

/* ---------- the ... box ---------- */
.rv-more { width: 344px; max-height: 460px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.rv-more.is-wide { width: 470px; }
.rv-more-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-tile {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px; line-height: 13px; font-weight: 500; color: var(--sb-text); text-align: center;
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(17, 24, 39, 0.06);
  transition: background-color 0.2s, color 0.2s;
}
.rv-tile.is-on { background: #007aff; color: #fff; box-shadow: none; }
.rv-tile:disabled { opacity: 0.35; cursor: default; }
.rv-tile span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-more-group { flex: none; border-radius: 14px; background: rgba(120, 120, 128, 0.12); overflow: hidden; }
.rv-mrow { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px 0 12px; font-size: 17px; line-height: 22px; text-align: left; color: var(--sb-text); }
.rv-mrow + .rv-mrow::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 0.5px; background: rgba(60, 60, 67, 0.2); }
.rv-mrow:active { background: rgba(120, 120, 128, 0.16); }
.rv-mrow-icon { flex: none; width: 22px; display: flex; justify-content: center; color: #007aff; }
.rv-mrow-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-mrow-v { flex: none; color: var(--sb-label2); }
.rv-mrow.is-danger { color: #ff3b30; }
.rv-mrow.is-danger .rv-mrow-icon { color: inherit; }
.rv-mrow:disabled { color: var(--sb-label3); cursor: default; background: none; }
.rv-mrow:disabled .rv-mrow-icon { color: inherit; }

/* ---------- the export sheet (Share) ---------- */
.rv-ex { padding: 4px 16px 16px; }
.rv-ex-sum {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--sb-grouped);
  font-size: 13px; line-height: 18px; color: var(--sb-muted); font-variant-numeric: tabular-nums;
}
.rv-ex-sum b { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--sb-text); }
.rv-ex-h { margin: 14px 4px 6px; font-size: 13px; line-height: 18px; color: var(--sb-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.rv-ex-group { border-radius: 12px; background: var(--sb-grouped); overflow: hidden; }
.rv-ex-opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 7px 12px;
  text-align: left; color: var(--sb-text);
}
.rv-ex-opt + .rv-ex-opt::before { content: ""; position: absolute; top: 0; left: 44px; right: 0; height: 0.5px; background: rgba(60, 60, 67, 0.2); }
.rv-ex-opt:active { background: var(--sb-fill3); }
.rv-ex-opt:disabled { cursor: default; background: none; opacity: 0.6; }
.rv-ex-opt .sb-radio { flex: none; }
.rv-ex-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rv-ex-t b { font-size: 17px; line-height: 22px; font-weight: 400; }
.rv-ex-t span { font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.rv-ex-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--sb-fill3); }
.rv-ex-sb {
  flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 6px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 15px; line-height: 20px; font-weight: 500; color: var(--sb-text); font-variant-numeric: tabular-nums;
}
.rv-ex-sb.is-on { background: var(--sb-panel); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.15); font-weight: 600; }
.rv-ex-sb:disabled { cursor: default; opacity: 0.45; }
.rv-ex-sb.is-on:disabled { opacity: 0.8; }
.rv-ex-note { margin: 6px 4px 0; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.rv-ex-prev { display: flex; justify-content: center; }
.rv-ex-cv { display: block; border-radius: 8px; background: #2b2f36; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.rv-ex-go {
  position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px;
  margin: 16px -16px -16px; padding: 12px 16px 16px; background: var(--sb-panel); box-shadow: 0 -0.5px 0 var(--sb-border);
}
.rv-ex-key { width: 100%; font-variant-numeric: tabular-nums; }
.rv-ex-key.is-filled:disabled { background: var(--sb-accent); color: #fff; opacity: 0.85; }
.rv-ex-bar { width: 100%; }
.rv-ex-bar > i { transition: none; }

/* ---------- the expanded video ---------- */
.rv-x { position: relative; height: 100%; overflow: hidden; background: #000; }
.rv-x .rv-stage { position: absolute; inset: 0; min-height: 0; background: #000; }
/* the foot: the toast's slot (height 0, so the toast sits 8 over the bar), then the glass bar */
.rv-xfoot { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 7; }
.rv-xfoot > [data-sb-toast] { position: relative; left: auto; right: auto; bottom: auto; height: 0; }
.rv-xbar {
  position: relative; max-width: 760px; margin: 0 auto; padding: 6px; border-radius: 22px;
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
}
.rv-xbar .rv-scrub { padding: 0 8px; }
.rv-xkeys { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 2px 2px 0; }
.rv-steps { display: flex; align-items: center; gap: 4px; }
.rv-steps .rv-stepk { min-width: 40px; height: 34px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.rv-keys-x { flex-wrap: nowrap; }

/* ---------- the turned page (the iPhone on its side, .k-turned) ---------- */
.rv-turn { position: relative; height: 100%; overflow: hidden; background: #000; }
.rv-turn .rv-stage { position: absolute; inset: 0; z-index: 0; min-height: 0; background: #000; }
.rv-turn .rv-tl { left: auto; right: 74px; top: 8px; }
.rv-turn .rv-card { padding: 52px 74px 132px; }
.rv-turn .rv-tall { padding: 52px 74px 132px; }
/* the glass over the video, inside the safe areas: 62 at each side and 12 more, 8 at the top, the home inset at the foot */
.rv-tbox {
  position: absolute; z-index: 2; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 6px; padding: 8px 74px 24px; pointer-events: none;
}
.rv-ttop { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-ttop .rv-title-chip { min-width: 0; max-width: 60%; }
.rv-ttop > button { pointer-events: auto; }
.rv-tbox > [data-sb-toast] { position: relative; left: auto; right: auto; bottom: auto; flex: none; height: 0; }
.rv-tbox > .rv-chip { position: relative; left: auto; bottom: auto; transform: none; flex: none; align-self: center; }
.rv-tfoot {
  flex: none; width: 100%; max-width: 900px; margin: 0 auto; padding: 4px 6px; pointer-events: auto;
  border-radius: var(--sb-radius-turned-bar, 22px);
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
}
.rv-tfoot .rv-scrub { min-height: 40px; padding: 0 4px; }
.rv-tfoot .rv-prow { min-height: 0; padding: 2px 4px 4px; background: none; box-shadow: none; }
.rv-tline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 0 2px 2px; }
.rv-keys-t { flex: none; gap: 6px; }
.rv-tfoot .rv-full { height: 38px; }
/* the answers have no bar of their own here */
.rv-tfoot .rv-answers { flex: 0 1 auto; height: auto; padding: 0; gap: 6px; background: none; box-shadow: none; }
.rv-tfoot .rv-answers .rv-ans { flex: none; padding: 8px 14px; }
.rv-tfoot .rv-answers .rv-arrow { padding: 8px 9px; }
/* a tap on the video hides all the glass */
.rv-tglass { transition: opacity 0.2s ease-out; }
.rv-turn.is-bare .rv-tglass { opacity: 0; }
.rv-turn.is-bare .rv-tglass, .rv-turn.is-bare .rv-tglass * { pointer-events: none !important; }
/* Session's strip and its keys over the stage stay upright only (the Session tab's own parts, hidden here) */
.rv-turn .tb-sblock, .rv-turn .tb-ov-bl, .rv-turn .tb-ov-br { display: none !important; }
/* the ... box fits the short screen */
.k-turned .rv-more { max-height: calc(100% - 16px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv-tile { transition: none; }
  .rv-tglass { transition: none; }
}
