/* storyboard.css — the composition mode.
 *
 * Same tokens as style.css (this is one product, not two). The board is the
 * dominant surface; the monitor is docked and small because in this mode you
 * are arranging shots, not scrubbing frames. Three surfaces, one job each:
 * board (pacing + order), compose (geometry + motion), inspector (values).
 */

.sbLayout {
  flex: 1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  min-height: 0;
}

/* ============================ assets rail ============================ */
.sbAssets {
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.sbAssetsHead { padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.sbAssetsHead h2 { margin: 0 0 8px; }
.sbSearch {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 6px 8px; font-size: 12px; font-family: inherit;
}
.sbSearch::placeholder { color: var(--muted); }
.sbSearch:focus-visible { border-color: var(--accent2); }

.sbAssetList { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 12px; }
.sbAssetGroup > .grpTitle {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 6px;
}
/* two up: enough tiles visible to browse, wide enough to scrub across */
.sbAssetGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sbAssetHint {
  margin: 0; padding: 8px 12px; font-size: 11px; line-height: 1.45;
  color: var(--muted); border-top: 1px solid var(--line);
}

.sbAsset {
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
  padding: 0; overflow: hidden; cursor: grab;
  transition: border-color var(--t-fast) var(--ease-out);
}
.sbAsset:hover { border-color: var(--accent); }
.sbAsset.dragging { opacity: .5; }
.sbAssetThumb {
  position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat;
}
.sbAssetThumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000;
}
/* scrub position readout — only while the pointer is over the tile */
.sbAssetScrub {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent2); transform-origin: left center; transform: scaleX(0);
}
.sbAssetMeta { padding: 4px 5px; }
.sbAssetName {
  font-size: 11px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbAssetSub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ============================ board column ============================ */
.sbMain {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0; min-width: 0;
}

.sbBoardHead {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.sbHeadTitle { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sbInfo { flex: 1; font-size: 11px; }
.sbHeadTools { display: flex; align-items: center; gap: 6px; }
.sbHeadTools button { padding: 4px 9px; }

.sbViewToggle {
  display: flex; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px; margin-left: 4px;
}
.sbViewToggle button {
  background: transparent; border: none; border-radius: 4px; color: var(--muted);
  font-size: 11px; padding: 4px 10px;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.sbViewToggle button:hover { color: var(--text); }
.sbViewToggle button.active { background: var(--accent); color: #fff; font-weight: 600; }

.sbBoard { overflow-y: auto; padding: 16px 14px 24px; min-height: 0; }
.sbBoard:focus-visible { box-shadow: inset var(--focus); }

/* ---- flow view: rows that wrap, width follows duration ---- */
.sbRow { margin-bottom: 12px; }
/* the gutter is a scrub ruler for its row — hence the padding and the cursor */
.sbRowHead {
  display: flex; align-items: baseline; gap: 8px;
  padding: 2px 0 5px; margin-bottom: 0;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  cursor: ew-resize; user-select: none;
}
.sbRowHead:hover { color: var(--text); }
.sbRowHead:hover .rule { background: var(--accent2); }
.sbRowHead .bar { color: var(--accent2); }
.sbRowHead .rule { flex: 1; height: 1px; background: var(--line); transition: background var(--t-fast) var(--ease-out); }
.sbRowCards { display: flex; align-items: stretch; gap: 0; }

/* ---- sheet view: equal cards ---- */
/* grid-auto-rows is load-bearing: with the default `auto`, the row is sized
   from the frame's *intrinsic* height, and an aspect-ratio box contributes
   nothing there — rows collapse to ~36px and overflow:hidden eats the card. */
.sbSheet {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: max-content;
}

/* ---- the shot card ---- */
.sbCard {
  position: relative; flex: 0 0 auto; min-width: 0;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; cursor: grab; text-align: left;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.sbCard + .sbCard { margin-left: 4px; }
.sbCard:hover { border-color: #47475a; }
.sbCard[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px #ff3b6b55;
}
.sbCard:focus-visible { box-shadow: var(--focus); }
.sbCard.dragging { opacity: .4; }
/* a shot asked to run longer than its own footage — the render clones frames */
.sbCard.overrun { border-color: var(--amber); }
/* the shot under the playhead */
.sbCard.live .sbCardFrame { box-shadow: inset 0 0 0 2px var(--amber); }

/* The playhead lives inside the live card: the card's own overflow clips it and
   it scrolls with the board, so there is no position to keep in sync. */
.sbPlayhead {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--amber); box-shadow: 0 0 8px var(--amber);
  z-index: var(--z-handle); cursor: ew-resize;
}
/* a wider invisible grab area than the 2px line it draws */
.sbPlayhead::after { content: ""; position: absolute; top: 0; bottom: 0; left: -5px; right: -5px; }
.sbPlayhead::before {
  content: ""; position: absolute; top: 0; left: -4px;
  border: 5px solid transparent; border-top-color: var(--amber); border-bottom: 0;
}

.sbCardFrame {
  position: relative; background: #08080a center/cover no-repeat;
  overflow: hidden;
}
/* short enough that a whole three-minute film fits in a handful of rows, tall
   enough to read the shot — the tradeoff the flow view exists to make */
.sbFlow .sbCardFrame { height: 74px; }
.sbSheet .sbCardFrame { aspect-ratio: 16 / 9; }

/* fallback when a poster hasn't loaded: name on panel, never a broken image */
.sbCardFallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 4px; font-size: 11px; color: var(--muted); text-align: center;
  background: var(--panel2); overflow: hidden;
}

/* split-screen panels, drawn to scale so the layout is legible on the card */
.sbMiniPanels { position: absolute; inset: 0; }
.sbMini {
  position: absolute; background: #000 center/cover no-repeat;
  box-shadow: inset 0 0 0 1px #00000099;
}
.sbMini.blendTop { opacity: .55; }

.sbCardGlyph {
  position: absolute; top: 3px; left: 4px; z-index: var(--z-card);
  font-size: 11px; line-height: 1; color: var(--text);
  background: #000000b3; padding: 2px 4px; border-radius: 3px;
}
.sbCardMove {
  position: absolute; top: 3px; right: 4px; z-index: var(--z-card);
  font-size: 11px; line-height: 1; color: var(--amber);
  background: #000000b3; padding: 2px 4px; border-radius: 3px;
}
.sbCardNum {
  position: absolute; bottom: 3px; left: 4px; z-index: var(--z-card);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: #000000b3; padding: 1px 4px; border-radius: 3px;
}
.sbCardAudio {
  position: absolute; bottom: 3px; right: 4px; z-index: var(--z-card);
  font-size: 11px; color: var(--accent2); background: #000000b3;
  padding: 1px 4px; border-radius: 3px;
}

.sbCardFoot {
  display: flex; align-items: baseline; gap: 6px; padding: 4px 6px;
  border-top: 1px solid var(--line); min-width: 0;
}
.sbCardName {
  flex: 1; min-width: 0; font-size: 11px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbCardDur { font-family: var(--mono); font-size: 11px; color: var(--text); }

/* a shot too long to draw to scale in one row — the width is not the duration
   here, so say so rather than letting it read as literal */
.sbCard.clipped { border-right: 1px dashed var(--amber); }
.sbCard.clipped::after {
  content: "»"; position: absolute; top: 50%; right: 3px; transform: translateY(-50%);
  font-family: var(--mono); font-size: 13px; color: var(--amber);
  background: #000000b3; padding: 2px 4px; border-radius: 3px;
  z-index: var(--z-handle); pointer-events: none;
}

/* narrow cards drop their text rather than showing an ellipsis soup */
.sbCard.tiny .sbCardName { display: none; }
.sbCard.tiny .sbCardFoot { justify-content: center; padding: 4px 2px; }
.sbCard.tiny .sbCardGlyph,
.sbCard.tiny .sbCardNum,
.sbCard.tiny .sbCardMove { display: none; }

/* duration bar (sheet view — width can't carry duration there) */
.sbDurBar {
  height: 3px; background: var(--line); position: relative; cursor: ew-resize;
}
.sbDurBar > i { display: block; height: 100%; background: var(--accent2); }

/* right-edge trim handle (flow view — width IS duration there) */
.sbTrim {
  position: absolute; top: 0; right: 0; width: 8px; height: 100%;
  cursor: ew-resize; z-index: var(--z-handle);
}
.sbTrim:hover, .sbTrim.active { background: var(--accent); }

/* ---- seams and transitions ---- */
.sbSeam {
  position: absolute; top: 0; bottom: 0; left: -7px; width: 14px;
  z-index: var(--z-seam); cursor: pointer; background: transparent;
  border: none; padding: 0; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 11px; line-height: 1;
}
.sbSeam:hover, .sbSeam:focus-visible { color: var(--accent2); }
.sbSeam:hover::before, .sbSeam.set::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px;
  background: var(--accent2);
}
/* a set transition draws as a hatched band straddling the cut, because that is
   geometrically what it is: both shots are on screen across that span */
.sbSeam.set {
  background: repeating-linear-gradient(
    45deg, #29d3c233 0 3px, transparent 3px 6px
  );
  color: var(--accent2);
}
.sbSeam.dip { background: linear-gradient(90deg, #000 0%, #000c 50%, #000 100%); color: var(--amber); }
.sbSeam.dip::before { background: var(--amber); }

/* the transition marker in the card foot — the card clips its own overflow, so
   anything positioned above the card would simply never be seen */
.sbCardTrans {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11px;
  color: var(--accent2); white-space: nowrap;
}
.sbCardTrans.dip { color: var(--amber); }
.sbCard.tiny .sbCardTrans { display: none; }

/* insertion marker while dragging */
.sbDrop {
  flex: 0 0 auto; width: 3px; align-self: stretch; background: var(--accent);
  border-radius: 2px; box-shadow: 0 0 8px var(--accent);
}

/* ---- where the song ends ---- */
/* Cyan, not amber: amber is the playhead and the section markers, and confusing
   "where I am" with "where the music stops" would be the whole point missed. */
.sbSongEnd {
  position: absolute; top: 0; bottom: 0; width: 0; margin-left: -1px;
  border-left: 2px dashed var(--accent2); z-index: var(--z-seam); pointer-events: none;
}
.sbSongEnd span {
  position: absolute; top: 2px; left: 3px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; color: var(--accent2);
  background: #000000b3; padding: 1px 4px; border-radius: 3px;
}
.sbSongEnd.flip span { left: auto; right: 3px; }
/* a shot with no music under it at all */
.sbCard.pastSong { border-style: dashed; }
.sbCard.pastSong .sbCardFrame { opacity: .55; }
.sbCard.pastSong .sbCardDur { color: var(--muted); }

/* the unscored remainder of the song */
.sbTail {
  flex: 0 0 auto; align-self: stretch; min-width: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 6px; text-align: center;
  border: 1px dashed #1c6b63; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #29d3c214 0 4px, transparent 4px 8px);
  color: var(--accent2); font-family: var(--mono); font-size: 11px;
}
.sbCard + .sbTail, .sbGap + .sbTail { margin-left: 4px; }
.sbTailMark { font-size: 14px; line-height: 1; }
.sbTailDur { color: var(--text); }
.sbTailLabel { color: var(--muted); font-family: var(--font); }
.sbSheet .sbTail { aspect-ratio: 16 / 9; }

/* cut length vs song length, in the board header */
.sbLen {
  font-family: var(--mono); font-size: 11px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.sbLen.ok { color: var(--accent2); border-color: #1c6b63; }
.sbLen.under { color: var(--muted); }
.sbLen.over { color: var(--amber); border-color: #7a6320; }

/* ---- gap card ---- */
.sbGap {
  flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border: 1px dashed var(--line); border-radius: 6px; color: var(--muted);
  font-family: var(--mono); font-size: 11px; background: #ffffff05;
}
.sbCard + .sbGap, .sbGap + .sbCard { margin-left: 4px; }

/* ---- empty state ---- */
.sbEmpty {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center; padding: 40px 20px;
}
.sbEmpty h3 { color: var(--text); font-size: 15px; text-transform: none; letter-spacing: 0; margin: 0; }
.sbEmpty p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sbEmptyArt {
  display: flex; gap: 6px; opacity: .5;
}
.sbEmptyArt i {
  display: block; width: 46px; height: 30px; border: 1px dashed var(--line); border-radius: 4px;
}
.sbEmptyArt i:nth-child(2) { width: 22px; }
.sbEmptyArt i:nth-child(3) { width: 62px; }
.sbEmptyActions { display: flex; gap: 8px; }

/* ---- board drag-over affordance ---- */
.sbBoard.dropActive { background: #29d3c208; }

/* ============================ monitor dock ============================ */
.sbMonitorDock { border-top: 1px solid var(--line); background: var(--panel); }
.sbDockHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 14px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
.sbDockHead button { padding: 2px 8px; }
.sbDockBody {
  display: flex; justify-content: center; padding: 0 14px 10px;
  height: 150px; transition: height var(--t-base) var(--ease-out);
}
.sbDockBody > .monitorSlot { flex: 0 1 auto; aspect-ratio: 16 / 9; }
.sbMonitorDock.collapsed .sbDockBody { height: 0; padding-bottom: 0; overflow: hidden; }

/* ============================ compose focus ============================ */
.sbCompose {
  grid-row: 2; display: flex; flex-direction: column; min-height: 0;
  padding: 14px; gap: 10px;
}
.sbCompose.hidden { display: none; }
.sbComposeHead { display: flex; align-items: center; gap: 12px; }
.sbComposeTitle { font-size: 13px; color: var(--text); font-weight: 600; }
.sbComposeHint { flex: 1; text-align: right; font-size: 11px; }
.sbComposeStage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
}
/* exactly 16:9 so overlay coordinates map 1:1 onto the 1280x720 frame —
   letterboxing inside the canvas would desync every handle */
.sbComposeFrame {
  position: relative; aspect-ratio: 16 / 9;
  max-height: 100%; max-width: 100%; min-height: 0;
  display: flex;
}
.sbOverlay { position: absolute; inset: 0; }

/* a draggable panel */
.sbPanel {
  position: absolute; border: 1px solid #ffffff66; cursor: move;
  background: transparent;
}
.sbPanel:hover { border-color: var(--accent2); }
.sbPanel.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sbPanelTag {
  position: absolute; top: 2px; left: 2px; font-size: 11px; line-height: 1;
  color: #fff; background: #000000b3; padding: 2px 5px; border-radius: 3px;
  pointer-events: none; white-space: nowrap;
}
.sbGrip {
  position: absolute; width: 12px; height: 12px; background: var(--accent);
  border: 1px solid #fff; border-radius: 2px;
}
.sbGrip.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.sbGrip.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.sbGrip.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.sbGrip.se { right: -6px; bottom: -6px; cursor: nwse-resize; }

/* motion ghost rects — the crop window at the start and end of the move */
.sbGhost { position: absolute; pointer-events: none; }
.sbGhost.a { border: 1px dashed var(--accent2); }
.sbGhost.b { border: 1px dashed var(--amber); }
.sbGhostHandle {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bg); cursor: move; pointer-events: auto;
}
.sbGhostHandle.a { background: var(--accent2); }
.sbGhostHandle.b { background: var(--amber); }
.sbGhostArrow { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sbGhostLabel {
  position: absolute; font-family: var(--mono); font-size: 11px;
  padding: 1px 4px; border-radius: 3px; background: #000000b3; pointer-events: none;
}
.sbGhostLabel.a { color: var(--accent2); }
.sbGhostLabel.b { color: var(--amber); }

/* ============================ inspector ============================ */
.sbInspector {
  background: var(--panel); border-left: 1px solid var(--line);
  overflow-y: auto; padding: 14px; min-width: 0;
}
.sbInspector h2 { margin: 0 0 4px; }
.sbInspector h3 { margin: 18px 0 7px; }
.sbInsEmpty { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sbInsEmpty kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px;
}
.sbInsSub { font-size: 11px; color: var(--muted); margin: 0 0 10px; }

.sbLayoutPicker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sbLayoutPicker button { font-size: 14px; line-height: 1; padding: 7px 6px; }
.sbLayoutPicker button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* a photo burst has no video to put in a panel — offer nothing rather than a
   control that silently does nothing */
.sbLayoutPicker button:disabled { opacity: .3; cursor: not-allowed; }
.sbLayoutPicker button:disabled:hover { border-color: var(--line); }
.sbLayoutPicker button small {
  display: block; font-size: 11px; margin-top: 3px; letter-spacing: .04em;
}

.sbSlots { display: flex; flex-direction: column; gap: 5px; }
.sbSlot {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 7px; align-items: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 5px;
}
.sbSlot.sel { border-color: var(--accent); }
.sbSlot.drop { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2); }
.sbSlot img { width: 42px; height: 26px; object-fit: cover; border-radius: 3px; background: #000; }
.sbSlotName {
  font-size: 11px; color: var(--text); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbSlot button { padding: 3px 7px; font-size: 11px; }

/* which stretch of the source clip this shot takes */
.sbSliceBar {
  position: relative; height: 10px; border-radius: 3px;
  background: var(--panel2); border: 1px solid var(--line); overflow: hidden;
}
.sbSliceBar > i {
  position: absolute; top: 0; bottom: 0; background: var(--accent2);
  min-width: 2px; border-radius: 2px;
}
.sbSliceRow { display: grid; grid-template-columns: auto 1fr; gap: 5px; }
.sbSliceRow button { font-size: 11px; }

.sbMovePicker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.sbMovePicker button { padding: 6px 0; font-size: 13px; line-height: 1; }
.sbMovePicker button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sbField { margin-bottom: 10px; }
.sbField > label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: var(--muted); margin-bottom: 4px;
}
.sbField .val { font-family: var(--mono); color: var(--text); }
.sbField input[type=range] { width: 100%; accent-color: var(--accent2); }
.sbNumRow { display: flex; align-items: center; gap: 6px; }
.sbNumRow input[type=number] {
  flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); border-radius: 5px; padding: 5px 7px; font-family: var(--mono); font-size: 12px;
}
.sbNumRow button { padding: 5px 9px; }
.sbChk { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); }
.sbChk input { accent-color: var(--accent); }
.sbNote { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 5px 0 0; }
.sbNote.warn { color: var(--amber); }

.sbTransPicker { display: flex; gap: 5px; }
.sbTransPicker button { flex: 1; font-size: 11px; padding: 6px 4px; }
.sbTransPicker button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sbInsActions { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.sbInsActions button { flex: 1 1 auto; font-size: 11px; }

/* ---- seam popover ---- */
.sbPop {
  position: fixed; z-index: var(--z-popover); width: 216px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; box-shadow: 0 12px 32px #000000cc;
}
.sbPop h4 {
  margin: 0 0 9px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); font-weight: 400;
}

/* ---- keyboard help strip ---- */
.sbKeys {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0;
  font-size: 11px; color: var(--muted);
}
.sbKeys kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text);
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 4px;
}

/* ---- card enter/exit: state feedback, not decoration ---- */
@keyframes sbCardIn {
  from { opacity: 0; transform: translateY(4px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.sbCard.fresh { animation: sbCardIn var(--t-base) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  /* Targeted, not a blanket `*` override: shortening an *infinite* animation's
     duration makes it strobe instead of stop, which is the opposite of what
     this setting asks for. Transitions collapse; reveals are simply removed. */
  .sbCard, .sbAsset, .sbViewToggle button, .sbSeam,
  .sbDockBody, .sbAssetScrub, .sbPanel, .sbLayoutPicker button,
  .sbMovePicker button, .sbTransPicker button {
    transition-duration: 1ms !important;
  }
  .sbCard.fresh { animation: none !important; }
}
