/* PLAYLISTS (features/playlists.js) — Kitsu's playlist layout in Flowly's light look; the player is the
   Curbstomp view's own (.cs-player / .cs-strip / .cs-bar from curbstomp.css). */
main.app-main.pl-main { padding: 0; flex: 1; min-height: 0; }
body:has(main.pl-main) .app-footer { display: none; }
.cs.pl { position: relative; display: grid; grid-template-columns: var(--pl-left, 250px) minmax(0, 1fr); flex-direction: initial; }
.cs.pl > * { min-height: 0; }
.pl-main.browsing .cs.pl { grid-template-columns: var(--pl-left, 250px) minmax(0, 1fr) var(--pl-right, 340px); }
/* with a playlist open: the slim icon strip on the far right (asset library · comments) */
.pl-main.railed .cs.pl { grid-template-columns: var(--pl-left, 250px) minmax(0, 1fr) 46px; }
.pl-main.railed.browsing .cs.pl { grid-template-columns: var(--pl-left, 250px) minmax(0, 1fr) var(--pl-right, 340px) 46px; }
.pl-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; background: var(--panel); border-left: 1px solid var(--line); }
.pl-rail[hidden] { display: none; }
.pl-rail-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pl-rail-btn svg { width: 18px; height: 18px; }
.pl-rail-btn:hover { background: var(--panel2); color: var(--text); }
.pl-rail-btn.on { background: var(--accent-soft); color: var(--accent); }
.pl-rail-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the edges you drag to resize */
.pl-resize { position: absolute; top: 0; bottom: 0; z-index: 5; width: 7px; cursor: col-resize; touch-action: none; }
.pl-resize.left { left: calc(var(--pl-left, 250px) - 4px); }
.pl-resize.right { right: calc(var(--pl-right, 340px) - 4px); }
.pl-main.railed .pl-resize.right { right: calc(var(--pl-right, 340px) + 46px - 4px); }
.pl-main:not(.browsing) .pl-resize.right { display: none; }
.pl-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; transition: background .15s; }
.pl-resize:hover::after, .pl-resize.on::after { background: var(--accent); width: 2px; left: 2px; }

/* left: the playlists, by week */
.pl-side { overflow-y: auto; padding: 14px 10px; background: var(--panel); border-right: 1px solid var(--line); }
.pl-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 34px; margin: 0 0 12px; border: 1px dashed light-dark(#c9c9d0, #47474c); border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pl-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pl-add svg { width: 15px; height: 15px; }
.pl-week { margin: 14px 4px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-week.big { margin: 22px 0 10px; font-size: 11.5px; }
.pl-week.big:first-child { margin-top: 0; }
.pl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 6px; margin: 0 0 2px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pl-row:hover { background: var(--panel2); }
.pl-row[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.pl-row-thumb { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 5px; overflow: hidden; background: #2a2b30; color: light-dark(#8b8d93, #909298); }
.pl-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-row-thumb svg { width: 14px; height: 14px; }
.pl-row-text { display: grid; min-width: 0; }
.pl-row-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row-text small { font-size: 11px; color: var(--muted); }
.pl-empty-side { margin: 8px 4px; font-size: 12.5px; color: var(--muted); }
.pl-aud { font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.pl-aud.internal { background: light-dark(#eceef2, #292c32); color: light-dark(#4b5060, #b2b6c3); }
.pl-aud.client { background: light-dark(#fff1d6, #4e3b17); color: light-dark(#8a5a00, #f9d796); }

/* middle, nothing open: playlist cards by week (not a whole row each) */
.pl-center { overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.pl-center.drop { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); border-radius: 10px; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 14px; }
.pl-card { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pl-card:hover { border-color: light-dark(#c9c9d0, #47474c); box-shadow: 0 6px 18px rgba(15, 20, 35, .08); }
.pl-card-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #2a2b30; color: light-dark(#8b8d93, #909298); margin-bottom: 4px; }
.pl-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.pl-card-pic svg { width: 22px; height: 22px; }
.pl-card-pic .pl-aud { position: absolute; top: 8px; right: 8px; }
.pl-card b { font-size: 14px; font-weight: 600; }
.pl-card small { font-size: 11.5px; color: var(--muted); }
.pl-none { margin: auto; text-align: center; color: var(--muted); font-size: 13px; }
.pl-none .muted { font-size: 12px; }

/* one playlist: head, the player, the items strip */
.pl-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.pl-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.pl-count { font: 12px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); margin-left: 6px; }
.pl-addbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pl-addbtn svg { width: 14px; height: 14px; }
.pl-addbtn:hover, .pl-addbtn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pl-player { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pl-player .cs-player.pl-stage { flex: 1; min-height: 240px; aspect-ratio: auto; margin: 0; border-radius: 10px 10px 0 0; }
.pl-stage img, .pl-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pl-stage-note { color: #c7c8ce; font-size: 13px; }
.pl-player .cs-ctl .cs-strip { border-radius: 0; }
.pl-player .cs-bar { margin: 0; }
.pl-player:fullscreen { background: #000; }
.pl-player:fullscreen .cs-player { border-radius: 0; }
.pl-ver-tag { font: 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); padding: 0 6px; }
.pl-strip { display: flex; gap: 8px; min-height: 120px; margin-top: 12px; padding: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); flex: none; }
.pl-strip.drop { border-color: var(--accent); background: var(--accent-soft); }
.pl-strip-hint { margin: auto; color: var(--muted); font-size: 12.5px; }
.pl-tile, .pl-pick { display: grid; grid-template-rows: auto auto auto auto; gap: 2px; width: 132px; flex: none; padding: 5px; border: 1px solid transparent; border-radius: 9px; background: var(--panel2); cursor: pointer; user-select: none; }
.pl-tile:hover, .pl-pick:hover { border-color: light-dark(#c9c9d0, #47474c); }
.pl-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pl-tile.gone { opacity: .55; }
.pl-tile-pic { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #2a2b30; color: light-dark(#8b8d93, #909298); }
.pl-tile-pic img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pl-tile-pic svg { width: 18px; height: 18px; }
.pl-tile b, .pl-pick b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.pl-tile small, .pl-pick small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* right: the production's work, to add */
.pl-browser { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.pl-browser[hidden] { display: none; }
.pl-browser-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.pl-browser-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.pl-browser-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 14px; }
.pl-browser-hint { margin: 8px 14px 4px; font-size: 11px; color: var(--muted); }
.pl-grid { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); align-content: start; gap: 8px; padding: 8px 14px 14px; user-select: none; }
.pl-pick { width: auto; }
.pl-pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.pl-pick.in { opacity: .45; }
.pl-band { position: absolute; z-index: 2; border: 1px solid var(--accent); background: rgba(0, 113, 227, .12); border-radius: 3px; pointer-events: none; }
.pl-browser-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.pl-ghost { position: fixed; top: -100px; left: -100px; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }

/* create / edit: a name and Internal or Client */
.pl-input { height: 32px; width: 100%; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.pl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pl-scrim { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20, 22, 30, .28); animation: cs-ctx-in .12s ease-out; }
.pl-dialog { --panel: var(--card); --line: var(--border-strong); --muted: var(--text-2); --accent: var(--blue); --accent-soft: var(--blue-soft);
  display: grid; gap: 12px; width: min(360px, calc(100vw - 32px)); padding: 18px; border-radius: 14px; background: var(--panel); box-shadow: 0 20px 50px rgba(15, 20, 35, .25); }
.pl-dialog h3 { margin: 0; font-size: 15px; font-weight: 700; }
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 9px; background: light-dark(#f0f0f3, #27272a); }
.pl-seg button { height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pl-seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pl-dialog-row { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 900px) {
  .cs.pl, .pl-main.browsing .cs.pl { grid-template-columns: 1fr; }
  .pl-side { max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .pl-browser { position: fixed; inset: auto 0 0 0; height: 60vh; z-index: 40; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); }
}
/* the playlist's date: a row in the create / edit box, and beside the name when open */
.pl-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-date-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pl-day { font-size: 12.5px; color: var(--muted); }

/* the work panel: asset cards like the Tasks view (picture, name, a pill per task) */
.pl-browser-tools .pl-ttype { grid-column: 1 / -1; }
.pl-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pl-acard { cursor: grab; user-select: none; }
.pl-acard:active { cursor: grabbing; }
.pl-acard.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.pl-acard .cs-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pl-acard .cs-tpill { cursor: grab; }
.pl-acard .cs-tpill.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.pl-acard .cs-tpill.in { opacity: .5; }
@media (max-width: 900px) { .pl-resize { display: none; } }
/* the open playlist's two header icons: add work · options */
.pl-hbtn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.pl-hbtn svg { width: 17px; height: 17px; }
.pl-hbtn:hover { color: var(--text); border-color: light-dark(#c9c9d0, #47474c); }
.pl-hbtn.on, .pl-hbtn.on:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pl-hbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* back to all playlists */
.pl-back { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 6px; margin-right: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pl-back svg { width: 16px; height: 16px; }
.pl-back:hover { color: var(--text); border-color: light-dark(#c9c9d0, #47474c); }
/* "Bring previews from Kitsu" (admins, until a moved production's review media are copied) */
.pl-cta { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pl-cta svg { width: 15px; height: 15px; }
.pl-cta:hover { background: light-dark(#e2eefc, #192c42); }
.pl-cta:disabled { opacity: .6; cursor: default; }
.pl-cta.busy { border-color: var(--line); background: var(--panel); color: var(--muted); cursor: default; font-variant-numeric: tabular-nums; }
.pl-over-cta { display: flex; justify-content: flex-end; margin: 0 0 10px; }

/* Flowly drop-downs (never the browser's own <select>): a pill + the right-click menu's look */
.pl-dd { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pl-dd:hover { border-color: light-dark(#c9c9d0, #47474c); }
.pl-dd:focus-visible, .pl-dd[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pl-dd-pre { color: var(--muted); font-weight: 500; white-space: nowrap; }
.pl-dd-pre::after { content: ":"; }
.pl-dd-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pl-dd-caret { width: 14px; height: 14px; flex: none; color: var(--muted); }
.pl-dd.pl-ver { height: 26px; margin-top: 4px; padding: 0 6px 0 8px; border-radius: 7px; font-size: 11.5px; background: var(--panel); }
.cs-pop.pl-dd-menu { max-height: 320px; overflow-y: auto; }
.cs-pop.pl-dd-menu .pl-dd-item { justify-content: space-between; gap: 14px; }
.pl-dd-text { display: grid; min-width: 0; }
.pl-dd-text b { font-weight: 600; font-size: 13px; }
.pl-dd-text small { font-size: 11px; color: var(--muted); font-weight: 400; }
.cs-pop.pl-dd-menu .pl-dd-item:hover .pl-dd-text small { color: inherit; opacity: .8; }
.pl-dd-check { width: 15px; height: 15px; flex: none; color: var(--accent); }
.cs-pop.pl-dd-menu .pl-dd-item.on .pl-dd-text b { color: var(--accent); }

/* comments on the open item (the same Flowly comments as its task panel) */
.pl-cm-title { display: grid; min-width: 0; }
.pl-cm-title small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cm-compose { display: grid; gap: 8px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.pl-cm-text { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.4; }
.pl-cm-row { display: flex; align-items: center; gap: 8px; }
.pl-cm-st { height: 30px; }
.pl-cm-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.pl-cm-none { padding: 0 14px; }
@media (max-width: 900px) { .pl-main.railed .cs.pl, .pl-main.railed.browsing .cs.pl { grid-template-columns: 1fr; } .pl-rail { flex-direction: row; justify-content: center; border-left: 0; border-top: 1px solid var(--line); } }

/* ---- the review player, SyncSketch-style: ONE dark surface — toolbar, stage, frame strip, controls ---- */
.pl-player { --rv-bg: #17181c; --rv-bar: #1f2025; --rv-seg: #26272d; --rv-line: #33343b; --rv-ink: #e8e9ee; --rv-dim: #8d8f98; --rv-accent: #2f8cff;
  border-radius: 12px; overflow: hidden; background: var(--rv-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 28px rgba(15, 20, 35, .12); }
.pl-stage-wrap { position: relative; flex: 1; min-height: 240px; background: var(--rv-bg); }
.pl-stage-wrap > .cs-player.pl-stage { position: absolute; inset: 0; min-height: 0; margin: 0; border-radius: 0; background: radial-gradient(120% 90% at 50% 40%, #24252b 0%, #17181c 70%); }
.pl-player .cs-player.pl-stage { flex: initial; }
.pl-stage-note { color: var(--rv-dim); }
/* the toolbar */
.rd-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: var(--rv-bar); border-bottom: 1px solid #111216; color: var(--rv-ink); }
.rd-group { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px; border-radius: 10px; background: var(--rv-seg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.rd-spring { flex: 1; }
.rd-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #b6b8c1; cursor: pointer; transition: background .12s, color .12s, transform .08s; }
.rd-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.rd-btn:hover { background: #33343b; color: #fff; }
.rd-btn:active { transform: scale(.94); }
.rd-btn[aria-pressed="true"] { background: var(--rv-accent); color: #fff; box-shadow: 0 2px 8px rgba(47, 140, 255, .35); }
.rd-btn:disabled { opacity: .28; cursor: default; background: transparent; transform: none; }
.rd-btn:focus-visible { outline: 2px solid var(--rv-accent); outline-offset: 1px; }
/* size + opacity: slim tracks, round thumbs, the live brush dot */
.rd-dot-well { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; border-radius: 7px; background: #1b1c20; }
.rd-dot { display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); transition: width .08s, height .08s; }
.rd-slider { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 11px; cursor: pointer; }
.rd-lbl { color: var(--rv-dim); font-weight: 600; letter-spacing: .02em; }
.rd-num { min-width: 30px; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--rv-ink); font-variant-numeric: tabular-nums; }
.rd-range { -webkit-appearance: none; appearance: none; width: 86px; height: 18px; margin: 0; background: transparent; cursor: pointer; }
.rd-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--rv-accent) var(--fill, 50%), #3c3d45 var(--fill, 50%)); }
.rd-range::-moz-range-track { height: 4px; border-radius: 99px; background: #3c3d45; }
.rd-range::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--rv-accent); }
.rd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: transform .1s; }
.rd-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.rd-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.rd-range:focus-visible { outline: none; }
.rd-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(47, 140, 255, .5); }
/* colour: the current one, round swatches, any colour, the eyedropper */
.rd-current { width: 22px; height: 22px; margin: 0 6px 0 4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rv-seg), 0 0 0 3.5px light-dark(rgba(255, 255, 255, .85), rgba(28, 28, 30, 0.85)); }
.rd-swatches { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 0 2px; }
.rd-sw { width: 16px; height: 16px; margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .1s, box-shadow .1s; }
.rd-sw:hover { transform: scale(1.18); }
.rd-sw.on { box-shadow: 0 0 0 2px var(--rv-seg), 0 0 0 3.5px light-dark(#fff, var(--card)); }
.rd-custom-wrap { position: relative; display: inline-grid; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#ff2d2d, #ffd60a, #34c759, #2fd0ff, #2f8cff, #b04dff, #ff2d2d); cursor: pointer; transition: transform .1s; }
.rd-custom-wrap:hover { transform: scale(1.18); }
.rd-custom { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
/* the paint layer on the picture */
.rd-layer { position: absolute; z-index: 2; pointer-events: none; }
.rd-layer.drawing { pointer-events: auto; }
.rd-layer[hidden] { display: none; }
.rd-view { display: block; width: 100%; height: 100%; }
.rd-layer.drawing .rd-view { cursor: crosshair; touch-action: none; }
.rd-layer[data-tool="text"] .rd-view { cursor: text; }
.rd-layer[data-tool="eraser"] .rd-view { cursor: cell; }
.rd-layer[data-tool="picker"] .rd-view { cursor: copy; }
.rd-text { position: absolute; z-index: 3; min-width: 140px; padding: 2px 6px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); font: 600 16px/1.2 Inter, system-ui, sans-serif; outline: none; }
/* the frame strip + controls, dark */
.pl-player .cs-ctl { background: var(--rv-bar); border-top: 1px solid #111216; }
.pl-player .cs-strip { height: 22px; padding: 5px 10px 3px; gap: 1px; background: transparent; border: 0; border-radius: 0; }
.pl-player .cs-strip i { background: #34353c; border-radius: 1.5px; }
.pl-player .cs-strip i:hover { background: #4a4b54; }
.pl-player .cs-strip i.on { background: var(--rv-accent); box-shadow: 0 0 0 1px rgba(47, 140, 255, .5); }
.pl-player .cs-strip i.c::after { display: none; }
.pl-player .cs-bar { margin: 0; padding: 4px 8px 6px; background: transparent; border: 0; border-radius: 0; color: var(--rv-ink); }
.pl-player .cs-bar .cs-ic { width: 30px; height: 28px; color: #b6b8c1; }
.pl-player .cs-bar .cs-ic:hover { background: #33343b; color: #fff; }
.pl-player .cs-bar .cs-ic.wide { width: auto; padding: 0 8px; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; }
.pl-player .cs-fr { color: var(--rv-ink); font-size: 12px; }
.pl-player .pl-ver-tag { color: var(--rv-dim); }
.pl-player:fullscreen { border-radius: 0; }
/* frame notes: the Frame box in the composer, a green "Frame 0156" on a note (SyncSketch's), marks on the strip */
.pl-cm-frame { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-cm-frame input { accent-color: #1fa463; width: 15px; height: 15px; margin: 0; }
.pl-cm-pin { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px 30px; padding: 0; border: 0; background: none; color: light-dark(#1fa463, #7ce6b2); font: 600 11.5px/1.2 ui-monospace, Menlo, Consolas, monospace; cursor: pointer; }
.pl-cm-pin:hover { text-decoration: underline; }
.pl-cm-pen { width: 12px; height: 12px; }
.pl-player .cs-strip i.c { background: #ffd60a; }

/* ---- the player in Flowly's LIGHT look (Felix, 2026-11-11: "bring it back to being white"): white toolbar and
   controls around the dark stage; the same layout, segments and sliders ---- */
.pl-player { --rv-bar: var(--card); --rv-seg: light-dark(#f2f3f6, #2c2c2e); --rv-line: var(--border-strong); --rv-ink: var(--text); --rv-dim: var(--text-2); background: var(--card); border: 1px solid var(--border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(15, 20, 35, .06); }
.pl-player .rd-bar { border-bottom: 1px solid var(--border-strong); }
.pl-player .rd-group { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.pl-player .rd-btn { color: light-dark(#5f6168, #b1b3b8); }
.pl-player .rd-btn:hover { background: light-dark(#e6e7ec, #303238); color: var(--text); }
.pl-player .rd-btn[aria-pressed="true"] { background: var(--rv-accent); color: #fff; box-shadow: 0 2px 8px rgba(47, 140, 255, .3); }
.pl-player .rd-dot-well { background: var(--card); box-shadow: inset 0 0 0 1px light-dark(#e5e5ea, var(--card)); }
.pl-player .rd-dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.pl-player .rd-range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--rv-accent) var(--fill, 50%), light-dark(#d9dae0, #39393d) var(--fill, 50%)); }
.pl-player .rd-range::-moz-range-track { background: light-dark(#d9dae0, #39393d); }
.pl-player .rd-range::-webkit-slider-thumb { box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06); }
.pl-player .rd-current { box-shadow: 0 0 0 2px var(--rv-seg), 0 0 0 3.5px #1d1d1f; }
.pl-player .rd-sw { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.pl-player .rd-sw.on { box-shadow: 0 0 0 2px var(--rv-seg), 0 0 0 3.5px #1d1d1f; }
.pl-player .cs-ctl { background: var(--card); border-top: 1px solid var(--border-strong); }
.pl-player .cs-strip i { background: light-dark(#e3e4e9, #34353b); }
.pl-player .cs-strip i:hover { background: light-dark(#cfd0d6, #414247); }
.pl-player .cs-bar .cs-ic { color: light-dark(#5f6168, #b1b3b8); }
.pl-player .cs-bar .cs-ic:hover { background: light-dark(#eeeff2, #292b30); color: var(--text); }
/* the Comments icon's dot: a drawing on the frame on screen waits to be posted */
.pl-rail-btn { position: relative; }
.pl-rail-btn.has-draft::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }

/* ---- Brush settings: a pop-up window (features/review-draw.js), SyncSketch's brush panel in Flowly's look ---- */
.rd-panel { --p-ink: var(--text); --p-dim: var(--text-2); --p-line: var(--border-strong); --p-seg: light-dark(#f2f3f6, #2c2c2e); --p-accent: #2f8cff;
  position: fixed; z-index: 90; width: 316px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px 16px 14px;
  background: var(--card); color: var(--p-ink); border: 1px solid light-dark(rgba(0, 0, 0, .07), rgba(255, 255, 255, 0.13)); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 48px rgba(15, 20, 35, .18); font-size: 12.5px; animation: cs-ctx-in .12s ease-out; transform-origin: top left; }
.rd-phead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rd-phead b { font-size: 14px; font-weight: 700; }
.rd-changed { font-size: 11px; font-weight: 600; color: light-dark(#b26a00, #f8c478); }
.rd-pclose { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--p-dim); cursor: pointer; }
.rd-pclose svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rd-pclose:hover { background: var(--p-seg); color: var(--p-ink); }
.rd-tips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.rd-tip { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 9px; background: #2a2b30; cursor: pointer; transition: transform .1s, border-color .12s; }
.rd-tip canvas { width: 26px; height: 26px; }
.rd-tip:hover { transform: scale(1.06); }
.rd-tip.on { border-color: var(--p-accent); box-shadow: 0 0 0 2px rgba(47, 140, 255, .35); background: #1f3b63; }
.rd-psec { display: grid; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--p-seg); }
.rd-ptitle { margin: 14px 2px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--p-dim); }
.rd-prow { display: grid; grid-template-columns: 86px 1fr 42px; align-items: center; gap: 8px; cursor: pointer; }
.rd-plbl { font-weight: 600; color: light-dark(#4b4d55, #bfc1c7); white-space: nowrap; }
.rd-pnum { text-align: right; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.rd-panel .rd-range { width: 100%; }
.rd-panel .rd-range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--p-accent) var(--fill, 50%), light-dark(#d9dae0, #39393d) var(--fill, 50%)); }
.rd-panel .rd-range::-moz-range-track { background: light-dark(#d9dae0, #39393d); }
.rd-panel .rd-range::-moz-range-progress { background: var(--p-accent); }
.rd-panel .rd-range::-webkit-slider-thumb { box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06); }
.rd-seg { grid-column: 2 / -1; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 8px; background: light-dark(#e6e7ec, #303238); }
.rd-seg button { height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--p-dim); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.rd-seg button.on { background: var(--card); color: var(--p-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rd-pfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.rd-pbtn { height: 32px; border: 1px solid var(--p-line); border-radius: 9px; background: var(--card); color: var(--p-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rd-pbtn:hover { border-color: light-dark(#c9c9d0, #47474c); }
.rd-pbtn.primary { border-color: var(--p-accent); background: var(--p-accent); color: #fff; }
.rd-pbtn.primary:hover { filter: brightness(1.06); }
.rd-brush-set[aria-expanded="true"] { background: light-dark(#e6e7ec, #303238); color: var(--text); }
/* the Comments | Drawings tabs, and the drawings list */
.pl-cm-tabs { margin: 0 14px 12px; }
.pl-dw-list { display: grid; align-content: start; gap: 8px; }
.pl-dw { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); cursor: pointer; }
.pl-dw:hover { border-color: light-dark(#c9c9d0, #47474c); }
.pl-dw-pic { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #2a2b30; }
.pl-dw-pic img { width: 100%; height: 100%; object-fit: contain; }
.pl-dw-text { display: grid; align-content: center; gap: 4px; min-width: 0; }
.pl-dw-top { display: flex; align-items: center; gap: 6px; }
.pl-dw-top .pl-cm-pin { margin: 0; }
.pl-dw-ver { font: 600 10.5px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.pl-dw-who { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.pl-dw-who time { margin-left: auto; color: var(--muted); font-size: 11px; }
.pl-dw .cs-del { position: absolute; top: 4px; right: 6px; }

/* ---- LIVE review (features/playlist-live.js): the Live button with who is there, other people's pointers and strokes ---- */
.lv-slot { display: inline-flex; }
.lv-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--text); font: 600 12px/1 inherit; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.lv-btn:hover { border-color: light-dark(#c7c7cc, #49494f); }
.lv-btn .lv-dot { width: 8px; height: 8px; border-radius: 50%; background: light-dark(#c7c7cc, #49494f); flex: none; }
.lv-btn.on { background: light-dark(#fff1f2, #242121); border-color: light-dark(#fecdd3, #561a22); color: light-dark(#be123c, #f16789); box-shadow: 0 0 0 3px rgba(244, 63, 94, .08); }
.lv-btn.on .lv-dot { background: #f43f5e; animation: lv-pulse 1.6s ease-in-out infinite; }
.lv-btn.down .lv-dot { background: #ff9f0a; animation: none; }
@keyframes lv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .55); } 50% { box-shadow: 0 0 0 5px rgba(244, 63, 94, 0); } }
.lv-btn:not(:has(.lv-faces)) { padding-right: 12px; }
.lv-faces { display: inline-flex; align-items: center; padding-left: 2px; }
.lv-face { margin-left: -6px; box-shadow: 0 0 0 2px light-dark(#fff, var(--card)); }
.lv-face:first-child { margin-left: 0; }
.lv-face.live { box-shadow: 0 0 0 2px light-dark(#fff, var(--card)), 0 0 0 4px var(--lv); }
.lv-more { margin-left: 4px; font-size: 11px; color: var(--muted); }
/* over the picture: inside the drawing layer, so a pointer at 50% / 50% is the middle of the frame on every screen */
.lv-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lv-marks { position: absolute; inset: 0; pointer-events: none; }
.lv-cursor { position: absolute; --lv: #2f8cff; transform: translate(-2px, -2px); transition: left .06s linear, top .06s linear; z-index: 3; }
.lv-arrow svg { display: block; width: 16px; height: 20px; fill: var(--lv); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.lv-name { position: absolute; left: 13px; top: 17px; padding: 2px 7px; border-radius: 99px; background: var(--card); color: var(--text); border: 1.5px solid var(--lv); font: 600 11px/1.3 Inter, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.lv-cursor.drawing .lv-name { background: var(--lv); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lv) 30%, transparent), 0 1px 3px rgba(0, 0, 0, .3); }
