/* Feeds page (docs/design.md §6): band controls, feed cards (Cards and Compact), previews, the Add feed
   and How delay works dialogs. Cards animate transform and opacity only; the rail loops only at full
   motion, on screen, while the channel is live. */

/* ---------- band ---------- */
.feeds-actions .seg > button { font: 700 .9375rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.feeds-actions .seg > button .icon { opacity: .8; }
#playAll { min-width: 8.5rem; }
#playAll .icon { margin-left: -.125rem; }
#feedsEyebrow .eb { white-space: nowrap; }

/* ---------- grid ---------- */
/* ~4 cards across at 1080p, 6 at 4K; Compact fits 24–28 feeds on one 1080p screen (5 across). */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: var(--s4); }
.fc-grid.compact { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: .5rem; align-items: start; }

/* ---------- the card ---------- */
.fc { position: relative; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: var(--radius);
  contain: layout paint; content-visibility: auto; contain-intrinsic-size: auto 38rem;
  scroll-margin: calc(var(--bar-h) + var(--s4)) 0 var(--s4); transition: border-color var(--t-in); }
.fc.cmp { contain-intrinsic-size: auto 7.5rem; }
.fc-body { position: relative; display: flex; flex-direction: column; gap: .625rem; height: 100%; padding: .875rem var(--s4) .75rem; }

/* The 2px status edge along the top (S6 draws it first). Its colour is the card's state. */
.fc-edge { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--edge, var(--line-2)); transform-origin: left; pointer-events: none; }
.fc[data-edge="live"] { --edge: rgba(54, 214, 255, .5); }
.fc[data-edge="connecting"] { --edge: var(--line-2); }
.fc[data-edge="offline"], .fc[data-edge="late"], .fc[data-edge="standby"] { --edge: var(--amber); }
.fc[data-edge="error"] { --edge: var(--fail); }
.fc[data-edge="rec"] { --edge: var(--tally); }
.fc[data-edge="off"] { --edge: var(--line); }
.fc[data-edge="offline"], .fc[data-edge="late"], .fc[data-edge="standby"] { border-color: rgba(255, 176, 32, .28); }
.fc[data-edge="error"] { border-color: rgba(255, 77, 90, .3); }

/* Slanted left edge: 4px amber on standby, 3px cyan when selected (selection wins). */
.fc-side { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 3; background: var(--amber); clip-path: polygon(0 .875rem, 100% 0, 100% calc(100% - .875rem), 0 100%); opacity: 0; pointer-events: none; }
.fc.standby .fc-side { opacity: 1; }
.fc.selected .fc-side { opacity: 1; width: 3px; background: var(--accent); }
.fc.selected { border-color: rgba(54, 214, 255, .4); }

/* Disabled: the body at 60%; the Enable hold stays readable. */
.fc.off .fc-body > :not(.fc-well), .fc.off .fc-well > :not(.pv-hold) { opacity: .6; }

/* S6 entrance: the edge draws, then the body rises in, staggered by visible index. */
.fc.enter { animation: fadeIn 120ms linear calc(var(--i, 0) * var(--stagger)) both; }
.fc.enter .fc-edge { animation: edgeDraw 180ms var(--e-whip) calc(var(--i, 0) * var(--stagger)) both; }
.fc.enter .fc-body { animation: riseIn var(--t-in) var(--e-out) calc(var(--i, 0) * var(--stagger) + 150ms) both; }

/* ---------- Z1 header ---------- */
.fc-head { display: flex; align-items: center; gap: var(--s2); min-width: 0; height: 1.75rem; }
.fc-slot { font: italic 800 1.5rem/1 var(--display); letter-spacing: .01em; color: var(--accent); flex-shrink: 0; padding-right: .125rem; }
.fc-avatar { width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.fc-name { flex: 1; min-width: 0; margin: 0; font: 600 1.0625rem/1.2 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-chips { display: flex; align-items: center; gap: .375rem; flex-shrink: 0; }
.fc-state { position: relative; overflow: hidden; }
.chip-t { display: inline-flex; align-items: center; gap: var(--s1); }
.chip-t.in { animation: rollIn var(--t-in) var(--e-roll) both; }
.chip-t.out { position: absolute; left: .5625rem; animation: rollOut var(--t-exit) var(--e-in) both; }
.fc-rec { gap: .375rem; }
.rec-dot { width: .4375rem; height: .4375rem; border-radius: 50%; background: #fff; transform: skewX(10deg); animation: blink2 1s steps(2) infinite; }

/* ---------- Z2 meta ---------- */
.fc-meta { display: flex; align-items: center; gap: var(--s2); min-width: 0; height: 1.125rem; margin-top: -.25rem; font: .75rem var(--mono); color: var(--muted); }
.fc-src { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rend { height: 1.125rem; padding: 0 .375rem; font: 600 .6875rem var(--mono); letter-spacing: .02em; text-transform: none; flex-shrink: 0; }

/* ---------- Z3 preview well ---------- */
.fc-well { position: relative; aspect-ratio: 16 / 9; background: var(--well); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.fc-well video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.fc-well.audio { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pv-mark { position: absolute; right: .875rem; bottom: -.875rem; font: italic 800 7.5rem/1 var(--display); letter-spacing: -.01em; color: #121720; pointer-events: none; user-select: none; }
.fc-well.playing .pv-mark { display: none; }
.pv-tag, .pv-time { position: absolute; left: .5rem; display: inline-flex; align-items: center; gap: .375rem; height: 1.375rem; padding: 0 .5rem 0 .4375rem; background: rgba(7, 9, 12, .84); font: 600 .6875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); pointer-events: none; white-space: nowrap; }
.pv-tag { top: .5rem; }
.pv-tag::before { content: ''; width: .1875rem; height: .75rem; background: var(--accent); transform: skewX(-14deg); }
.pv-time { bottom: .5rem; letter-spacing: .02em; text-transform: none; font-variant-numeric: tabular-nums; pointer-events: auto; }
.pv-time:empty { display: none; }
/* Preview quality, bottom right while a preview plays: "480p", "Source", or "Source only" in amber. */
.pv-q { position: absolute; right: .5rem; bottom: .5rem; display: none; align-items: center; height: 1.375rem; padding: 0 .5rem; background: rgba(7, 9, 12, .84); font: 600 .6875rem var(--mono); letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }
.fc-well.active .pv-q:not(:empty) { display: inline-flex; }
.pv-q.fb { color: var(--amber); }
.pv-tr { position: absolute; right: .5rem; top: .5rem; z-index: 2; display: none; gap: .25rem; }
.fc-well.active .pv-tr { display: flex; }
.pv-btn.btn { background: rgba(7, 9, 12, .84); border-color: var(--line-2); }
.pv-btn.btn:hover { background: var(--panel-2); border-color: var(--accent); }
.pv-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.pv-btn[data-act="pvstop"]:hover { border-color: var(--fail); color: var(--fail); }
/* The centred slanted play button: ▶ PREVIEW ~7.9 Mb/s. */
.pv-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1.125rem; background: rgba(10, 12, 16, .88); border: 1px solid var(--line-2); color: var(--text); font: italic 700 1.0625rem var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transform: translate(-50%, -50%) skewX(-10deg); transition: border-color var(--t-press), color var(--t-press), background-color var(--t-press); }
.pv-play > * { transform: skewX(10deg); }
.pv-play .pv-rate { font: 600 .75rem var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pv-play:hover { border-color: var(--accent); color: var(--accent); background: rgba(10, 12, 16, .95); }
.pv-play:hover .pv-rate { color: var(--text-2); }
.pv-play:focus-visible { outline-offset: 3px; }
.pv-play[aria-disabled="true"] { opacity: .45; cursor: default; }
.fc-well.active .pv-play { display: none; }
/* Hold overlay for every non-live state, with its own action. */
.pv-hold { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; padding: var(--s4); background: rgba(7, 9, 12, .86); text-align: center; }
.hold-t { font: italic 800 1.625rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--amber); }
.fc[data-state="error"] .hold-t { color: var(--fail); }
.fc[data-state="disabled"] .hold-t, .fc[data-state="stopped"] .hold-t { color: var(--muted); }
.hold-s { max-width: 92%; font: .75rem/1.4 var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-act { margin-top: .5rem; }
/* Standby: three slanted bars (cyan, white, violet) wipe in. */
.pv-bars { display: none; flex-direction: column; gap: .3125rem; width: 38%; margin-bottom: .625rem; }
.fc[data-state="standby"] .pv-bars { display: flex; }
.pv-bars i { display: block; height: .5rem; transform: skewX(-14deg); transform-origin: left; animation: wipe var(--t-stage) var(--e-whip) both; }
.pv-bars i:nth-child(1) { width: 100%; background: var(--accent); }
.pv-bars i:nth-child(2) { width: 72%; background: var(--text); animation-delay: 80ms; }
.pv-bars i:nth-child(3) { width: 46%; background: var(--event); animation-delay: 160ms; }

/* ---------- Z4 delay block: the number is a button (click or E to type a delay) ---------- */
.dly { display: flex; align-items: center; gap: var(--s3); min-height: 2.75rem; min-width: 0; }
.dly-big, .dly-sm { position: relative; flex-shrink: 0; padding: 0 .25rem; margin-left: -.25rem; background: none; border: 0; border-radius: 3px; color: var(--text); font: 700 2.75rem/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; cursor: text; white-space: nowrap; transition: background-color var(--t-press), color var(--t-press); }
.dly-big::after, .dly-sm::after { content: ''; position: absolute; left: .25rem; right: .25rem; bottom: -.1875rem; border-bottom: 1px dashed transparent; transition: border-color var(--t-press); }
.dly-big:hover, .dly-sm:hover { background: var(--hover); }
.dly-big:hover::after, .dly-sm:hover::after { border-color: var(--line-2); }
.dly-big.late, .dly-sm.late { color: var(--amber); }
.dly-big.wait, .dly-sm.wait { color: var(--text-2); }
/* Without the Delays permission the number is only a readout. */
body:not(.can-delay) .dly-big, body:not(.can-delay) .dly-sm { cursor: default; }
body:not(.can-delay) .dly-big:hover, body:not(.can-delay) .dly-sm:hover { background: none; }
body:not(.can-delay) .dly-big::after, body:not(.can-delay) .dly-sm::after { display: none; }
.dly-side { display: flex; flex-direction: column; align-items: flex-start; gap: .4375rem; min-width: 0; }
.dly-mode { height: 1.375rem; font-size: .75rem; }
.dly-line { max-width: 100%; font: .75rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Inline edit: input, Set, As received. */
.dly-edit { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.dly-edit input { width: 6.5rem; height: 2.75rem; padding: 0 .625rem; font: 700 1.5rem var(--mono); letter-spacing: -.02em; text-align: right; }
.dly-edit-u { font: 600 .9375rem var(--mono); color: var(--muted); margin-right: .25rem; }
.cr-delay .dly-edit input, .out-x-head .dly-edit input, .cr-x .dly-edit input { width: 5.5rem; height: 2rem; font-size: 1.125rem; }

/* ---------- Z5 nudges: full width, 44px ---------- */
.fc-prim > .nudge-group { width: 100%; }

/* ---------- Z6 buffer rail: blocks are buffered video (newest at the right), cyan = where outputs read ---------- */
.rail { display: flex; align-items: center; gap: var(--s2); height: 1.25rem; }
.rail-track { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; background: var(--well); border-radius: 2px; }
.rail-fill { position: absolute; inset: .3125rem 0; overflow: hidden; }
.rail-run { position: absolute; top: 0; bottom: 0; left: -1rem; right: -1rem; background: repeating-linear-gradient(90deg, var(--rail) 0 .625rem, transparent .625rem .875rem); transform: skewX(-14deg); }
html[data-motion="full"] .fc.inview .rail.run .rail-run { animation: fcRail var(--seg, 2s) linear infinite; }
@keyframes fcRail { from { transform: skewX(-14deg); } to { transform: translateX(-.875rem) skewX(-14deg); } }
.rail-rx { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: #5B6478; }
.rail-pos { position: absolute; inset: 0; pointer-events: none; }
.rail-mk { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.rail-pos.x .rail-mk { background: rgba(54, 214, 255, .5); width: 1px; }
.rail-tag { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); padding: 0 .25rem; background: var(--well); font: 600 .6875rem/1.25rem var(--mono); color: var(--accent); white-space: nowrap; }
.rail-pos.flip .rail-tag { right: auto; left: calc(100% + .375rem); }
.rail-pos.late .rail-mk { background: var(--amber); }
.rail-pos.late .rail-tag { color: var(--amber); }
.chip .unit { text-transform: none; }
.rail-end { flex-shrink: 0; font: 600 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fc[data-state]:not([data-state="live"]) .rail-run { opacity: .45; }

/* ---------- Z7 stats ---------- */
.fc-stats { display: flex; flex-wrap: wrap; gap: 0 .5rem; min-height: 1.125rem; font: .75rem/1.5 var(--mono); color: var(--muted); }
.fc-stats b { color: var(--text-2); font-weight: 600; }
.fc-stats > span:not(.hidden) ~ span:not(.hidden)::before { content: '·'; margin-right: .5rem; color: var(--faint); }
.fc-stats .st-ads b { color: var(--amber); }

/* ---------- Z8 output rows ---------- */
.fc-outs { display: flex; flex-direction: column; gap: .625rem; }
.fc-outs:empty { display: none; }
.out-row { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.out-lbl { display: inline-flex; align-items: center; gap: .4375rem; flex-shrink: 0; min-width: 3.625rem; font: 700 .875rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.out-pull { width: .5rem; height: .5rem; border: 1px solid var(--line-2); flex-shrink: 0; }
.out-pull.on { background: var(--tally); border-color: var(--tally); }
.out-url { flex: 1; min-width: 0; height: 2.25rem; padding: 0 .625rem; background: var(--field); border-color: var(--line); font: .75rem var(--mono); color: var(--text-2); text-overflow: ellipsis; cursor: text; }
.out-url:hover { border-color: var(--line-2); }
.out-x { display: flex; flex-direction: column; gap: .5rem; padding-top: .625rem; border-top: 1px solid var(--line); position: relative; }
.out-x.selected::before, .cr-x.selected::before { content: ''; position: absolute; left: calc(-1 * var(--s4)); top: .625rem; bottom: 0; width: 3px; background: var(--accent); clip-path: polygon(0 .5rem, 100% 0, 100% calc(100% - .5rem), 0 100%); }
.out-x-head { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.out-x-lbl { min-width: 0; overflow: hidden; }
.out-x-lbl .out-name { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.dly-sm { font-size: 1.25rem; letter-spacing: -.02em; margin-left: auto; }
.dly-glyph { display: inline-flex; color: var(--muted); margin-left: -.375rem; }
.dly-glyph.g-locked { color: var(--accent); }
.dly-glyph.g-late { color: var(--amber); }
.out-x-head .nudge-group { width: 12.5rem; flex-shrink: 0; }

/* No outputs. */
.fc-none { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 2.75rem; padding: .5rem .5rem .5rem .75rem; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: .875rem; color: var(--muted); }
.fc-none b { color: var(--text); font-weight: 600; }

/* ---------- Z9 action bar ---------- */
.fc-bar { display: flex; align-items: center; gap: var(--s2); margin-top: auto; padding-top: .625rem; border-top: 1px solid var(--line); }
.rec-split .btn, .fc-stop, .fc-cmp { font: 700 .9375rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
/* The split reads as one slanted red block: tinted fill (a clipped outline would lose its slanted sides). */
.rec-split .btn.rec { --sf: rgba(229, 32, 46, .12); --sb: rgba(229, 32, 46, .5); color: #FF6B75; }
.rec-split .btn.rec:hover { --sf: rgba(229, 32, 46, .24); --sb: var(--tally); color: #FF8A92; }
.rec-split .btn:first-child { padding-right: .625rem; }
.rec-split .btn:last-child { padding-left: .625rem; }
.fc .btn.rec.fc-stop { gap: .5rem; font: 700 .9375rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.rec-split .btn:last-child span { text-transform: none; }
.fc-stop-t { font: 700 .8125rem var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fc-cmp .icon { color: var(--muted); }
.fc-cmp:hover .icon { color: var(--accent); }
.fc-restart .lbl { display: none; }
.fc-restart.warn-outline { width: auto; padding: 0 var(--s3); font: 700 .9375rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.fc-restart.warn-outline .lbl { display: inline; }

/* ---------- Compact: R1 header, R2 number + nudges, R3 mode · stats · icon buttons ---------- */
.fc.cmp .fc-body { gap: .3125rem; padding: .4375rem .625rem .375rem .75rem; }
.fc.cmp .fc-head { height: 1.5rem; }
.fc.cmp .fc-slot { font-size: 1.25rem; }
.fc.cmp .fc-name { font-size: .9375rem; }
.fc.cmp .fc-chips .chip { height: 1.25rem; font-size: .75rem; }
.cr-delay { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.cr-delay .dly-big { width: 6.5rem; font-size: 1.75rem; letter-spacing: -.03em; text-align: left; }
.cr-delay .nudge-group { flex: 1; min-width: 0; }
.cr-foot { display: flex; align-items: center; gap: .1875rem; min-width: 0; height: 1.75rem; }
.cr-foot .btn.s { height: 1.75rem; }
.cr-mode { display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0; font: .75rem var(--mono); color: var(--muted); }
.cr-mode.g-locked { color: var(--accent); }
.cr-mode.g-late { color: var(--amber); }
.cr-stats { flex: 1; min-width: 0; margin-left: .625rem; font: .75rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-foot .btn.s.icon { width: 1.875rem; }
.cr-foot .btn.s::before { inset: -.125rem 0; }
.cr-foot .btn.rec:not(.on) { background: rgba(229, 32, 46, .1); border-color: transparent; }
.cr-foot .btn.rec:not(.on):hover { background: rgba(229, 32, 46, .22); }
.cr-foot .btn.fc-stop { padding: 0 .375rem; gap: .3125rem; }
.cr-x { position: relative; display: flex; align-items: center; gap: .625rem; min-width: 0; padding-top: .3125rem; border-top: 1px solid var(--line); }
.cr-x .out-lbl { min-width: 2.75rem; font-size: .8125rem; }
.cr-x .dly-sm { width: 5rem; margin-left: 0; font-size: 1.0625rem; text-align: left; }
.cr-x .nudge-group { flex: 1; min-width: 0; }
.fc.cmp .fc-none { min-height: 2rem; padding: .25rem .25rem .25rem .625rem; font-size: .8125rem; }
.cr-x.selected::before { left: -.75rem; top: .375rem; }

/* API ids in the feed menu. */
.menu-api { display: flex; align-items: center; gap: .375rem; }
.fc-menu .id-chips { padding-bottom: .125rem; }

/* ---------- Add feed dialog ---------- */
.af { display: grid; gap: var(--s3); }
.af-l { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); color: var(--text-2); font-weight: 600; }
.af-k { font: .75rem var(--mono); color: var(--muted); font-weight: 400; }
.af textarea { min-height: 6.5rem; font: .875rem/1.6 var(--mono); }
.af-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; max-height: 12rem; overflow: auto; }
.af-lines:empty { display: none; }
.af-line { display: flex; align-items: center; gap: .625rem; min-width: 0; min-height: 1.75rem; padding: 0 .5rem; background: var(--panel-2); border-left: 2px solid var(--line-2); font-size: .8125rem; }
.af-line .chip { height: 1.25rem; font-size: .75rem; flex-shrink: 0; min-width: 3.5rem; justify-content: center; }
.af-src { flex: 1; min-width: 0; font: .8125rem var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-res { flex-shrink: 0; max-width: 55%; font: .75rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-res.warn { color: var(--amber); }
.af-line.ok { border-left-color: var(--live); }
.af-line.ok .af-res { color: var(--live); }
.af-line.bad { border-left-color: var(--fail); }
.af-line.bad .af-res { color: #FF7A84; }
.af-note { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .625rem .75rem; background: var(--panel-2); border-radius: var(--radius); font-size: .8125rem; line-height: 1.45; color: var(--text-2); }
.af-note .icon { color: var(--muted); margin-top: .0625rem; }
.af-note b { color: var(--text); font-weight: 600; }

/* ---------- How delay works dialog ---------- */
.how-dlg { width: min(40rem, calc(100vw - 2rem)); }
.how p { margin: 0 0 .875rem; font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.how p b { color: var(--text); font-weight: 600; }
.how-legend { display: grid; gap: .5rem; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.how-legend > span { display: flex; align-items: center; gap: .75rem; }
.how-legend .chip { min-width: 8.5rem; height: 1.375rem; font-size: .75rem; }

/* ---------- empty page ---------- */
#noFeeds { margin-top: var(--s2); }

/* Two previews with sound: a corner badge on the audio button says which ear (sound.js). */
.pv-btn[data-side] { position: relative; }
.pv-btn[data-side]::after { content: attr(data-side); position: absolute; right: -.3125rem; bottom: -.3125rem; min-width: .875rem; height: .875rem; padding: 0 .125rem; background: var(--accent); color: var(--on-accent); font: 700 .6875rem/.875rem var(--mono); text-align: center; border-radius: 2px; pointer-events: none; }
