/* ==========================================================================
   Race Replay — Replay / Trend / Momentum (replay.php, replay.js)
   Approved mockup: docs/mockups/race-replay-v2.html, Glass tabs (2026-10-28).

   🔴 Every rule is at least two classes deep. The panel lives inside
   .entry-content, whose prose rules (h2, p, img, button) otherwise outrank a
   single component class — see entry-content-leak-rule. The headings and
   paragraphs go one further, `.sa-rp.sa-rp …` (0,3,0): single.css's
   `:is(.single, .sa-doc) .entry-content p` is (0,2,1) and zeroed the verdict's
   top margin on LocalWP.
   Flat surfaces: no card panel behind the panel; only the archive sheet,
   which is a dialog, has a surface.
   ========================================================================== */

.sa-rp {
	--sa-rp-row: 56px;
	--sa-rp-1: var(--sa-violet, #00C389);
	--sa-rp-2: var(--sa-magenta, #19D3C5);
	--sa-rp-3: color-mix(in srgb, var(--sa-text-muted, #A9B6C8) 70%, transparent);
	--sa-rp-4: color-mix(in srgb, var(--sa-text-muted, #A9B6C8) 52%, transparent);
	--sa-rp-5: color-mix(in srgb, var(--sa-text-muted, #A9B6C8) 38%, transparent);
	--sa-rp-g0: var(--sa-magenta, #19D3C5);
	--sa-rp-grad: var(--sa-gradient, linear-gradient(90deg, #00A870 0%, #00C389 70%, #19D3C5 100%));
	margin: 34px 0;
	color: var(--sa-text, #EEF3F8);
	font-family: var(--sa-font-body, system-ui, sans-serif);
}

/* 🔴 #2 must read as a different colour from #1 in EVERY palette. Only Nova's
   two accents differ (fuchsia #00C389 vs violet #19D3C5); Ember, Sunset,
   Cobalt, Amber and Aurora pair two near-identical hues, and on Cobalt the
   Momentum bars of #1 and #2 were indistinguishable (measured on LocalWP).
   Nova is the bare :root, so any sa-style-* class means "not Nova": #2 turns
   to the palette's own light ink, which contrasts with its accent by design. */
html[class*="sa-style-"] .sa-rp, html[class*="sa-style-"] .sa-rp-sheet .sa-rp {
	--sa-rp-2: color-mix(in srgb, var(--sa-text, #EEF3F8) 82%, transparent);
}

/* ── Head: title left, tab capsule right ────────────────────────────────── */
.sa-rp .sa-rp__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.sa-rp .sa-rp__head > div { min-width: 0; flex: 1 1 300px; }
.sa-rp.sa-rp .sa-rp__title {
	margin: 0; padding: 0; border: 0;
	font: 700 clamp(22px, 3.2vw, 30px)/1.12 var(--sa-font-display, inherit);
	letter-spacing: -.01em; color: var(--sa-text, #EEF3F8);
}
.sa-rp.sa-rp .sa-rp__title::before, .sa-rp.sa-rp .sa-rp__title::after { content: none; }
.sa-rp.sa-rp .sa-rp__sub { margin: 6px 0 0; color: var(--sa-text-muted, #A9B6C8); font-size: 14px; line-height: 1.5; }

/* Glass tabs: a dark capsule, a thumb with a gradient hairline and a soft glow
   that slides to the chosen view. */
.sa-rp .sa-rp__tabs {
	position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: none;
	padding: 3px; border-radius: 999px;
	background: color-mix(in srgb, var(--sa-surface-1, #121A2B) 80%, black);
	border: 1px solid var(--sa-border, rgba(0,195,137, .16));
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.sa-rp .sa-rp__thumb {
	position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
	border: 1px solid transparent;
	background: linear-gradient(var(--sa-surface-2, #18223A), var(--sa-surface-2, #18223A)) padding-box, var(--sa-rp-grad) border-box;
	box-shadow: 0 0 18px -2px color-mix(in srgb, var(--sa-rp-1) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
	transition: transform .38s cubic-bezier(.3, .8, .2, 1), width .38s cubic-bezier(.3, .8, .2, 1);
}
/* Before the script measures, the thumb sits under the server-chosen tab. */
.sa-rp:not(.is-live) .sa-rp__thumb { display: none; }
.sa-rp:not(.is-live) .sa-rp__tab[aria-selected="true"] {
	border: 1px solid transparent;
	background: linear-gradient(var(--sa-surface-2, #18223A), var(--sa-surface-2, #18223A)) padding-box, var(--sa-rp-grad) border-box;
}
.sa-rp .sa-rp__tab {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 32px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: none; box-shadow: none;
	color: var(--sa-text-muted, #A9B6C8); font: 600 13px/1 var(--sa-font-body, inherit); letter-spacing: .01em;
	white-space: nowrap; text-transform: none; cursor: pointer; transition: color .25s;
}
.sa-rp .sa-rp__tab svg { width: 15px; height: 15px; flex: none; opacity: .8; transition: opacity .25s, color .25s; }
.sa-rp .sa-rp__tab:hover { color: var(--sa-text, #EEF3F8); background: none; }
.sa-rp .sa-rp__tab[aria-selected="true"] { color: var(--sa-text, #EEF3F8); }
.sa-rp .sa-rp__tab[aria-selected="true"] svg { opacity: 1; color: var(--sa-rp-1); }
.sa-rp .sa-rp__tab:focus-visible { outline: 2px solid var(--sa-focus, currentColor); outline-offset: 1px; }

.sa-rp .sa-rp__views { margin-top: 18px; }
.sa-rp .sa-rp__view[hidden] { display: none !important; }
.sa-rp .sa-rp__view:focus-visible { outline: 2px solid var(--sa-focus, currentColor); outline-offset: 4px; border-radius: 8px; }
.sa-rp .sa-rp__view--trend, .sa-rp .sa-rp__view--momentum { min-height: 360px; }

/* ── Replay ──────────────────────────────────────────────────────────────── */
.sa-rp .sa-rp__stage { position: relative; }
.sa-rp .sa-rp__clock { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; min-height: 60px; }
.sa-rp .sa-rp__date {
	font: 700 clamp(38px, 7vw, 60px)/1 var(--sa-font-display, inherit); letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
	background: var(--sa-rp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sa-rp .sa-rp__day { color: var(--sa-text-muted, #A9B6C8); font-size: 14px; }
.sa-rp .sa-rp__event {
	position: absolute; right: 0; top: 6px; max-width: 46%; min-height: 0;
	font-weight: 600; text-align: right; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.sa-rp .sa-rp__event.is-on { opacity: 1; transform: none; }
.sa-rp .sa-rp__event small { display: block; color: var(--sa-text-muted, #A9B6C8); font-weight: 500; font-size: 12px; }

.sa-rp .sa-rp__board { position: relative; }
.sa-rp .sa-rp__bar {
	height: calc(var(--sa-rp-row) - 10px); margin: 0 0 10px;
	display: grid; grid-template-columns: 26px 44px minmax(0, 1fr); align-items: center; gap: 10px;
}
/* Once the script owns the board, rows are positioned by transform only. */
.sa-rp .sa-rp__board.is-live .sa-rp__bar { position: absolute; left: 0; right: 0; top: 0; margin: 0; will-change: transform; transition: opacity .2s; }
.sa-rp .sa-rp__rank { color: var(--sa-text-dim, #7F8CA0); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sa-rp .sa-rp__face {
	position: relative; display: block; width: 44px; height: 44px; overflow: hidden; border-radius: 50%;
	background: var(--sa-surface-2, #18223A); box-shadow: 0 0 0 2px transparent; flex: none;
}
.sa-rp .sa-rp__bar.is-lead .sa-rp__face { box-shadow: 0 0 0 2px var(--sa-rp-1); }
/* The nominee art is a designed 4:5 poster: the shared focal crop frames the
   face and pushes the card chrome out of the circle (winner-block face rule). */
.sa-rp .sa-rp__face img {
	position: absolute; margin: 0; padding: 0; border: 0; border-radius: 0;
	width: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1)); height: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	max-width: none; max-height: none;
	left: calc(var(--np-fx, .5) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	top: calc(var(--np-fy, .4) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	object-fit: cover; object-position: center 40%;
}
.sa-rp .sa-rp__ini {
	position: absolute; inset: 0; display: grid; place-items: center;
	font: 700 13px/1 var(--sa-font-display, inherit); letter-spacing: .02em; color: var(--sa-text-muted, #A9B6C8);
}
.sa-rp .sa-rp__track { position: relative; display: block; height: 100%; }
.sa-rp .sa-rp__fill {
	position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px;
	background: var(--sa-surface-2, #18223A); transform-origin: left center; transform: scaleX(var(--w, 1));
}
.sa-rp .sa-rp__board.is-live .sa-rp__fill { will-change: transform; }
.sa-rp .sa-rp__bar.is-lead .sa-rp__fill { background: var(--sa-rp-grad); }
.sa-rp .sa-rp__bar.is-two .sa-rp__fill { background: color-mix(in srgb, var(--sa-rp-2) 55%, var(--sa-surface-2, #18223A)); }
.sa-rp .sa-rp__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; font-weight: 600; pointer-events: none; }
.sa-rp .sa-rp__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-rp .sa-rp__pct { font-variant-numeric: tabular-nums; font-weight: 700; }

.sa-rp .sa-rp__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.sa-rp .sa-rp__play {
	flex: none; min-width: 104px; margin: 0; padding: 12px 18px; border: 0; border-radius: 999px;
	font: 700 13px/1 var(--sa-font-body, inherit); letter-spacing: .04em; text-transform: uppercase;
	color: var(--sa-on-accent, #fff); background: var(--sa-gradient, var(--sa-rp-grad)); box-shadow: none; cursor: pointer;
}
.sa-rp .sa-rp__tl { position: relative; flex: 1; height: 36px; }
/* A custom range: Jannah's form styles turn a native one into a bordered box
   inside an article. Thin track filled to --p, a white glowing thumb. */
.sa-rp .sa-rp__scrub {
	position: absolute; inset: 9px 0 auto; width: 100%; height: 18px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.sa-rp .sa-rp__scrub::-webkit-slider-runnable-track {
	height: 4px; border-radius: 4px;
	background: linear-gradient(90deg, var(--sa-rp-1) var(--p, 100%), var(--sa-surface-2, #18223A) var(--p, 100%));
}
.sa-rp .sa-rp__scrub::-moz-range-track { height: 4px; border-radius: 4px; background: var(--sa-surface-2, #18223A); }
.sa-rp .sa-rp__scrub::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sa-rp-1); }
.sa-rp .sa-rp__scrub::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sa-rp-1) 45%, transparent);
}
.sa-rp .sa-rp__scrub::-moz-range-thumb {
	width: 14px; height: 14px; border: 0; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sa-rp-1) 45%, transparent);
}
.sa-rp .sa-rp__ticks { position: absolute; inset: 0 0 auto; height: 10px; }
.sa-rp .sa-rp__tick { position: absolute; top: 0; width: 2px; height: 10px; border-radius: 1px; background: var(--sa-rp-1); opacity: .5; transform: translateX(-1px); }
.sa-rp .sa-rp__tick.is-past { opacity: 1; }
.sa-rp .sa-rp__speed {
	flex: none; margin: 0; padding: 6px 10px; border-radius: 999px; background: none; box-shadow: none;
	border: 1px solid var(--sa-border, rgba(0,195,137, .16)); color: var(--sa-text-muted, #A9B6C8);
	font: 600 12px/1 var(--sa-font-body, inherit); cursor: pointer;
}
.sa-rp .sa-rp__ends { display: flex; justify-content: space-between; color: var(--sa-text-dim, #7F8CA0); font-size: 12px; margin-top: 2px; }
.sa-rp .sa-rp__play:focus-visible, .sa-rp .sa-rp__speed:focus-visible, .sa-rp .sa-rp__scrub:focus-visible, .sa-rp .sa-rp__share:focus-visible {
	outline: 2px solid var(--sa-focus, currentColor); outline-offset: 3px;
}
/* Before the script arrives the controls cannot work — show the result, not dead buttons. */
.sa-rp:not(.is-live) .sa-rp__ctrl, .sa-rp:not(.is-live) .sa-rp__ends { visibility: hidden; }

/* ── Charts (Trend + Momentum) ───────────────────────────────────────────── */
.sa-rp .sa-rp-ch { position: relative; touch-action: pan-y; }
.sa-rp .sa-rp-ch:focus-visible { outline: 2px solid var(--sa-focus, currentColor); outline-offset: 4px; border-radius: 8px; }
.sa-rp .sa-rp-ch svg { display: block; width: 100%; max-width: none; overflow: visible; }
.sa-rp .sa-rp-ch .g line { stroke: var(--sa-border, rgba(0,195,137, .16)); stroke-width: 1; }
.sa-rp .sa-rp-ch .g text { fill: var(--sa-text-dim, #7F8CA0); font-size: 11px; font-family: var(--sa-font-body, inherit); }
.sa-rp .sa-rp-ch .zero { stroke: var(--sa-border-strong, rgba(0,195,137, .34)); }
.sa-rp .sa-rp-ch .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s; }
.sa-rp .sa-rp-ch .ln.r1 { stroke-width: 3.2; }
.sa-rp .sa-rp-ch .ln.r2 { stroke: var(--sa-rp-2); stroke-width: 2.6; }
.sa-rp .sa-rp-ch .ln.r3 { stroke: var(--sa-rp-3); } .sa-rp .sa-rp-ch .ln.r4 { stroke: var(--sa-rp-4); } .sa-rp .sa-rp-ch .ln.r5 { stroke: var(--sa-rp-5); }
.sa-rp .sa-rp-ch.is-focus .ln:not(.is-hot) { opacity: .25; }
.sa-rp .sa-rp-ch .end text { font-size: 12px; font-weight: 600; font-family: var(--sa-font-body, inherit); fill: var(--sa-text-muted, #A9B6C8); }
.sa-rp .sa-rp-ch .end text.r1 { fill: var(--sa-text, #EEF3F8); }
.sa-rp .sa-rp-ch .lead-dot { fill: var(--sa-bg, #0A0E1A); stroke: var(--sa-rp-1); stroke-width: 2; }
.sa-rp .sa-rp-ch .cross { stroke: var(--sa-border-strong, rgba(0,195,137, .34)); stroke-width: 1; }
.sa-rp .sa-rp-ch .cdot { stroke: var(--sa-bg, #0A0E1A); stroke-width: 2; }
.sa-rp .sa-rp-ch .b1 { fill: var(--sa-rp-1); } .sa-rp .sa-rp-ch .b2 { fill: var(--sa-rp-2); }
.sa-rp .sa-rp-ch .is-clip { opacity: .45; }
.sa-rp .sa-rp-ch .gap-area { fill: color-mix(in srgb, var(--sa-rp-1) 16%, transparent); }
.sa-rp .sa-rp-ch .gap-line { fill: none; stroke: var(--sa-rp-1); stroke-width: 2.4; }
.sa-rp .sa-rp-ch .lbl { fill: var(--sa-text-muted, #A9B6C8); font-size: 12px; font-weight: 600; font-family: var(--sa-font-body, inherit); }
.sa-rp .sa-rp-tip {
	position: absolute; top: 0; z-index: 2; min-width: 170px; padding: 10px 12px; pointer-events: none;
	background: var(--sa-surface-1, #121A2B); border: 1px solid var(--sa-border-strong, rgba(0,195,137, .34)); border-radius: 10px;
	font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .12s;
}
.sa-rp .sa-rp-tip.is-on { opacity: 1; }
.sa-rp .sa-rp-tip b { display: block; margin-bottom: 4px; }
.sa-rp .sa-rp-tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--sa-text-muted, #A9B6C8); font-variant-numeric: tabular-nums; }
.sa-rp .sa-rp-tip .r.is-1 { color: var(--sa-text, #EEF3F8); font-weight: 600; }
.sa-rp .sa-rp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--sa-text-muted, #A9B6C8); }
.sa-rp .sa-rp-legend button, .sa-rp .sa-rp-legend span {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 2px 0; border: 0; background: none; box-shadow: none;
	color: inherit; font: inherit; text-transform: none; cursor: default;
}
.sa-rp .sa-rp-legend button { cursor: pointer; }
.sa-rp .sa-rp-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.sa-rp.sa-rp .sa-rp-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--sa-text-dim, #7F8CA0); }

/* ── Verdict + share ─────────────────────────────────────────────────────── */
.sa-rp.sa-rp .sa-rp__verdict { margin: 20px 0 0; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--sa-text-muted, #A9B6C8); }
.sa-rp .sa-rp__verdict strong { color: var(--sa-text, #EEF3F8); }
.sa-rp .sa-rp__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sa-rp .sa-rp__share {
	margin: 0; padding: 11px 16px; border-radius: 999px; background: none; box-shadow: none;
	border: 1px solid var(--sa-border-strong, rgba(0,195,137, .34)); color: var(--sa-text, #EEF3F8);
	font: 700 13px/1 var(--sa-font-body, inherit); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.sa-rp .sa-rp__share:hover { border-color: var(--sa-rp-1); }

/* ── /winners/ archive card strip ────────────────────────────────────────── */
.sa-rp-card { margin-top: 12px; }
.sa-rp-card .sa-rp-spark { display: block; width: 100%; height: 38px; margin: 0 0 10px; overflow: visible; }
.sa-rp-card .sa-rp-spark path { fill: none; stroke-width: 2; stroke-linecap: round; }
.sa-rp-card .sa-rp-spark__win { stroke: var(--sa-violet, #00C389); stroke-width: 2.6; }
.sa-rp-card .sa-rp-spark__run { stroke: color-mix(in srgb, var(--sa-text-muted, #A9B6C8) 45%, transparent); }
.sa-rp-card .sa-rp-open {
	margin: 0; padding: 9px 14px; border-radius: 999px; background: none; box-shadow: none;
	border: 1px solid var(--sa-border-strong, rgba(0,195,137, .34)); color: var(--sa-text, #EEF3F8);
	font: 700 12px/1 var(--sa-font-body, inherit); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.sa-rp-card .sa-rp-open:hover { border-color: var(--sa-violet, #00C389); }
.sa-rp-card .sa-rp-open:focus-visible { outline: 2px solid var(--sa-focus, currentColor); outline-offset: 3px; }
.sa-rp-card template { display: none; }
/* In the spotlight it sits under "See the full results", as the second action,
   and follows the spotlight's own alignment: left in two columns, centred where
   winners.css stacks it (the same breakpoint, see .sa-winspot there). */
.sa-rp-card.sa-rp-card--spot { max-width: 420px; margin-top: 18px; }
@media (max-width: 640px) {
	.sa-rp-card.sa-rp-card--spot { margin-left: auto; margin-right: auto; }
}

/* ── The sheet the archive opens the panel in ───────────────────────────────
   ONE scroll area: the page is locked while it is open, the body scrolls on
   its own and never chains into the page. Bottom sheet on phones. */
html.sa-rp-lock, html.sa-rp-lock body { overflow: hidden; }
.sa-rp-sheet {
	margin: auto; padding: 0; border: 0; background: transparent; color: var(--sa-text, #EEF3F8);
	width: min(760px, calc(100% - 32px)); max-width: none; max-height: none; overflow: visible;
}
.sa-rp-sheet::backdrop { background: rgba(8, 4, 8, 0); transition: background .3s, backdrop-filter .3s; }
.sa-rp-sheet.is-in::backdrop { background: rgba(8, 4, 8, .72); backdrop-filter: blur(6px); }
.sa-rp-sheet .sa-rp-sheet__in {
	display: flex; flex-direction: column; max-height: min(86vh, 900px); overflow: hidden;
	background: var(--sa-bg-2, #0D1222); border: 1px solid var(--sa-border, rgba(0,195,137, .16)); border-radius: 18px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
	opacity: 0; transform: translateY(14px) scale(.985);
	transition: opacity .28s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.sa-rp-sheet.is-in .sa-rp-sheet__in { opacity: 1; transform: none; }
.sa-rp-sheet .sa-rp-sheet__bar {
	position: relative; flex: none; display: flex; align-items: center; justify-content: flex-end;
	height: 52px; padding: 0 12px; border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.sa-rp-sheet .sa-rp-sheet__in.is-scrolled .sa-rp-sheet__bar { border-bottom-color: var(--sa-border, rgba(0,195,137, .16)); }
.sa-rp-sheet .sa-rp-sheet__grab { display: none; }
.sa-rp-sheet .sa-rp-sheet__x {
	display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 50%; cursor: pointer;
	background: var(--sa-surface-1, #121A2B); border: 1px solid var(--sa-border, rgba(0,195,137, .16)); color: var(--sa-text-muted, #A9B6C8); box-shadow: none;
}
.sa-rp-sheet .sa-rp-sheet__x:hover { color: var(--sa-text, #EEF3F8); border-color: var(--sa-border-strong, rgba(0,195,137, .34)); }
.sa-rp-sheet .sa-rp-sheet__x:focus-visible { outline: 2px solid var(--sa-focus, currentColor); outline-offset: 2px; }
.sa-rp-sheet .sa-rp-sheet__x svg { width: 14px; height: 14px; }
.sa-rp-sheet .sa-rp-sheet__body {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 26px;
	scrollbar-width: thin; scrollbar-color: var(--sa-border-strong, rgba(0,195,137, .34)) transparent;
}
.sa-rp-sheet .sa-rp-sheet__body::-webkit-scrollbar { width: 6px; }
.sa-rp-sheet .sa-rp-sheet__body::-webkit-scrollbar-thumb { background: var(--sa-border-strong, rgba(0,195,137, .34)); border-radius: 6px; }
.sa-rp-sheet .sa-rp { margin: 0; }

@media (max-width: 600px) {
	.sa-rp { --sa-rp-row: 50px; }
	.sa-rp .sa-rp__head > div { flex-basis: 100%; }
	.sa-rp .sa-rp__tabs { display: grid; width: 100%; }
	.sa-rp .sa-rp__tab { padding: 0 8px; }
	.sa-rp .sa-rp__bar { grid-template-columns: 18px 36px minmax(0, 1fr); gap: 8px; }
	.sa-rp .sa-rp__face { width: 36px; height: 36px; }
	.sa-rp .sa-rp__event { position: static; max-width: none; text-align: left; margin: 0 0 10px; min-height: 40px; }
	.sa-rp .sa-rp__label { padding: 0 9px; font-size: 14px; }

	.sa-rp-sheet { width: 100%; margin: auto 0 0; }
	.sa-rp-sheet .sa-rp-sheet__in {
		max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom);
		opacity: 1; transform: translateY(100%); transition: transform .42s cubic-bezier(.2, .85, .2, 1);
	}
	.sa-rp-sheet.is-in .sa-rp-sheet__in { transform: translateY(var(--drag, 0px)); }
	.sa-rp-sheet.is-dragging .sa-rp-sheet__in { transition: none; }
	.sa-rp-sheet .sa-rp-sheet__bar { height: 46px; touch-action: none; cursor: grab; }
	.sa-rp-sheet .sa-rp-sheet__grab { display: block; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--sa-border-strong, rgba(0,195,137, .34)); }
	.sa-rp-sheet .sa-rp-sheet__body { padding: 0 16px 22px; scrollbar-width: none; }
	.sa-rp-sheet .sa-rp-sheet__body::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-rp .sa-rp__thumb, .sa-rp .sa-rp__tab, .sa-rp .sa-rp__event, .sa-rp .sa-rp__board.is-live .sa-rp__bar, .sa-rp .sa-rp-ch .ln,
	.sa-rp-sheet .sa-rp-sheet__in, .sa-rp-sheet::backdrop { transition: none; }
}
