/* =========================================================================
   ds.css — the UGC Lab design system: liquid glass over a warm brand glow.
   Reference: design/design-system-preview.html and docs/REDESIGN-BRIEF.md.
   Loaded last, so it wins over the older lab.css/style.css rules. Every class is prefixed ds-.
   Markup helpers live in ds-kit.js (pills, stats, avatars, ⓘ tips, segmented switches, form dialogs,
   confirm); ds-controls.js gives every <select> and date/time field the dropdown and calendar below.
   ========================================================================= */
body.lab {
  --ds-glass-1: rgba(255, 246, 230, .05);
  --ds-glass-2: rgba(255, 246, 230, .08);
  --ds-glass-3: rgba(255, 246, 230, .13);
  --ds-glass-solid: #1E1A15;
  --ds-well: rgba(255, 246, 230, .035);
  --ds-stroke: rgba(255, 240, 215, .11);
  --ds-stroke-hi: rgba(255, 245, 225, .36);
  --ds-ink: #F6F1E6;
  --ds-ink-2: #D8CFC0;
  --ds-ink-3: #B5A898;   /* muted text: at least 4.5:1 on glass */
  --ds-ink-4: #7A7166;   /* decoration only */
  --ds-accent-hi: #FFE27A;
  --ds-on-accent: #14120E;
  --ds-amber: #F2A93B;
  --ds-up: #7BD89F;
  --ds-down: #FF6B81;
  --ds-ready: #8FB8FF;
  --ds-r-md: 14px; --ds-r-lg: 20px; --ds-r-pill: 999px;
  --ds-blur: 24px;
  --ds-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .25);
}

/* ---------- The warm glow behind every page ---------- */
body.lab::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 34vw at 18% 4%, rgba(255, 216, 77, .16), transparent 62%),
    radial-gradient(42vw 38vw at 96% 12%, rgba(224, 122, 71, .17), transparent 62%),
    radial-gradient(40vw 36vw at 30% 62%, rgba(255, 216, 77, .08), transparent 62%),
    radial-gradient(48vw 40vw at 88% 78%, rgba(224, 122, 71, .12), transparent 62%),
    radial-gradient(52vw 40vw at 60% 104%, rgba(242, 169, 59, .11), transparent 62%);
}
body.lab::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.lab.signin::before, body.lab.signin::after { display: none; }

/* ---------- Glass material ---------- */
.ds-glass {
  position: relative; isolation: isolate; border-radius: var(--ds-r-lg);
  background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1));
  /* No backdrop blur on page cards: they sit over the smooth glow, so a blur adds nothing visible, and large
     backdrop-filtered areas over the fixed glow make Chrome show a flickering vertical seam at a GPU tile edge.
     Menus, tooltips, dialogs and sticky bars, where content scrolls underneath, keep their blur. */
  box-shadow: var(--ds-shadow);
}
.ds-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, var(--ds-stroke-hi), rgba(255, 245, 225, .07) 38%, rgba(255, 245, 225, .03) 62%, rgba(255, 216, 77, .16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ds-glass::after {
  content: ""; position: absolute; inset: 1px 1px auto; height: 42%; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
}
/* A card holding an open tooltip sits above its neighbours. */
.ds-glass:has(.ds-tipwrap:hover, .ds-tipwrap:focus-within, .ds-tipwrap.open) { z-index: 3; }
.ds-well { border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }

/* ---------- Shell: glass sidebar and top bar (same sizes and behaviour as before) ---------- */
body.lab #sidebar, body.lab[data-page] #sidebar, body.lab.light #sidebar {
  background: linear-gradient(180deg, rgba(255, 246, 230, .05), rgba(255, 246, 230, .02)), rgba(16, 13, 10, .55) !important;
  border-top: 0 !important; border-right: 1px solid var(--ds-stroke) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
}
body.lab #topbar, body.lab[data-page] #topbar, body.lab.light #topbar {
  background: rgba(12, 10, 8, .28) !important; border-top: 0 !important; border-bottom: 1px solid rgba(255, 246, 230, .07) !important;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
/* Current page: a glass pill with a yellow edge, so a page's own primary button stays the only yellow capsule. */
body.lab .lab-nav a.on { color: var(--ds-ink); font-weight: 700; background: var(--ds-glass-3); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 0 rgba(255, 255, 255, .08); }
body.lab .lab-nav a.on:hover { color: var(--ds-ink); background: rgba(255, 246, 230, .17); }
body.lab .lab-nav a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(255, 216, 77, .6); }
body.lab .lab-nav a.on .icon { color: var(--accent); }
body.lab .lab-prof .av { background: linear-gradient(140deg, var(--ds-accent-hi), var(--ds-amber)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  body.lab #sidebar, body.lab[data-page] #sidebar { background: rgba(28, 24, 18, .96) !important; }
}

/* ---------- Buttons ---------- */
body.lab .ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-height: 0 !important; padding: 0 18px !important;
  border-radius: var(--ds-r-pill) !important; border: 0 !important; cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap;
  color: var(--ds-ink) !important; background: var(--ds-glass-3) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px var(--ds-stroke) !important;
  transition: transform .15s ease, filter .2s ease, background .2s ease; text-decoration: none;
}
body.lab .ds-btn:hover:not([disabled]) { background: rgba(255, 246, 230, .18) !important; color: var(--ds-ink) !important; }
body.lab .ds-btn:active { transform: translateY(1px) scale(.99); }
body.lab .ds-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
/* Inactive but focusable, so a tooltip beside it can say why (e.g. Apply on Find campaigns). */
body.lab .ds-btn[aria-disabled="true"], body.lab .ds-btn[aria-disabled="true"]:hover { opacity: .45; cursor: not-allowed; transform: none; background: var(--ds-glass-2) !important; color: var(--ds-ink-2) !important; }
body.lab .ds-btn-primary {
  color: var(--ds-on-accent) !important;
  background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(160, 100, 0, .32), 0 10px 26px -10px rgba(255, 196, 60, .7) !important;
}
body.lab .ds-btn-primary:hover:not([disabled]) { color: var(--ds-on-accent) !important; background: linear-gradient(180deg, #FFEDA0 0%, #FFDD60 46%, #F5C73B 100%) !important; }
body.lab .ds-btn-ghost { background: transparent !important; box-shadow: none !important; color: var(--ds-ink-2) !important; }
body.lab .ds-btn-ghost:hover:not([disabled]) { background: var(--ds-glass-2) !important; }
body.lab .ds-btn-sm { height: 32px; padding: 0 13px !important; font-size: 13px; }
body.lab .ds-btn-lg { height: 46px; padding: 0 22px !important; font-size: 15px; }
body.lab .ds-btn-icon { width: 36px; height: 36px; padding: 0 !important; }

/* ---------- Segmented switch ---------- */
.ds-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 3px rgba(0, 0, 0, .35); }
body.lab .ds-seg button { min-height: 0 !important; height: 30px; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-3) !important; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: color .2s, background .2s; }
body.lab .ds-seg button svg { width: 15px; height: 15px; }
body.lab .ds-seg button[aria-pressed="true"] { color: var(--ds-ink) !important; background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35) !important; }

/* ---------- Card header, stat tile, delta ---------- */
.ds-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.lab .ds-cardhead h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.ds-cardhead h2 small { font-size: 13px; color: var(--ds-ink-3); font-weight: 600; }
.ds-stat { padding: 18px 20px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ds-stat-lbl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-stat-val { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.08; color: var(--ds-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ds-stat-val.ds-long { font-size: 20px; letter-spacing: -.02em; }
.ds-stat-sub { font-size: 12px; color: var(--ds-ink-3); }
.ds-stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.ds-spark { width: 96px; height: 30px; flex: none; margin-left: auto; overflow: visible; }
.ds-cardhead-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-delta { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 700; background: rgba(123, 216, 159, .13); color: var(--ds-up); white-space: nowrap; }
.ds-delta.ds-neg { background: rgba(255, 107, 129, .12); color: var(--ds-down); }
.ds-delta.ds-flat { background: var(--ds-glass-2); color: var(--ds-ink-3); }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 700; color: var(--ds-ink-2); background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); white-space: nowrap; cursor: pointer; }
.ds-chip:hover { color: var(--ds-ink); background: var(--ds-glass-3); }
.ds-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--accent); color: var(--ds-on-accent); }
.ds-count.ds-soft { background: var(--ds-glass-3); color: var(--ds-ink-2); }

/* ---------- Tooltip (ⓘ): hover, focus or tap; Esc closes ---------- */
.ds-tipwrap { position: relative; display: inline-flex; }
body.lab .ds-tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; min-height: 0 !important; border-radius: 50% !important; border: 0 !important; padding: 0 !important; background: var(--ds-glass-3) !important; box-shadow: none !important; color: var(--ds-ink-2) !important; font: 700 10px/1 inherit; cursor: help; }
.ds-tip::after { content: ""; position: absolute; inset: -5px; }
.ds-bubble { position: absolute; bottom: calc(100% + 8px); left: -8px; width: 250px; max-width: calc(100vw - 32px); display: none; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--ds-ink-2); text-align: left; text-transform: none; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s, display .2s allow-discrete; z-index: 40; background: rgba(32, 28, 22, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 12px 30px rgba(0, 0, 0, .5); }
.ds-tipwrap.ds-end .ds-bubble { left: auto; right: -8px; }
/* Hidden bubbles are display:none so they never widen the page; @starting-style keeps the fade-in. lab-ui.js nudges an open bubble back inside the screen. */
.ds-tipwrap:hover .ds-bubble, .ds-tipwrap:focus-within .ds-bubble, .ds-tipwrap.open .ds-bubble { display: block; opacity: 1; visibility: visible; transform: none; }
@starting-style { .ds-tipwrap:hover .ds-bubble, .ds-tipwrap:focus-within .ds-bubble, .ds-tipwrap.open .ds-bubble { opacity: 0; transform: translateY(4px); } }
.ds-tipwrap.closed .ds-bubble { display: none !important; }

/* ---------- Progress ring ---------- */
.ds-ring { position: relative; width: 44px; height: 44px; flex: none; }
.ds-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ds-ring .ds-ring-track { stroke: rgba(255, 246, 230, .1); }
.ds-ring .ds-ring-bar { stroke: var(--accent); stroke-linecap: round; }
.ds-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); }

/* =========================================================================
   Home (lab-ui.js dashboard + home.js tasks). Scoped to .lab-dash so the
   performance view and other pages that reuse lab-* classes are untouched.
   ========================================================================= */
.lab-dash { gap: 18px; }
.lab-dash > .ds-glass { padding: 18px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.lab-dash .ds-phead { align-items: center; margin: 0; padding-bottom: 2px; }
.lab-dash .ds-phead .eyebrow { color: var(--ds-ink-3); }

/* Overview: three tiles */
.ds-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lab-dash .ds-stat.lab-pill { display: grid; flex-direction: initial; gap: 6px; padding: 18px 20px 16px; border: 0; background: var(--ds-well); border-radius: 16px; }
.lab-dash .ds-stat.lab-pill span { white-space: normal; font-size: inherit; color: inherit; }
.lab-dash .ds-stat.lab-pill .ds-stat-lbl { font-size: 12.5px; color: var(--ds-ink-3); }
.lab-dash .ds-stat.lab-pill .ds-stat-sub { font-size: 12px; font-weight: 400; color: var(--ds-ink-3); }
.lab-dash .ds-stat.lab-pill .ds-delta { font-size: 12px; font-weight: 700; }
.lab-dash .ds-stat.lab-pill .ds-delta.ds-neg { color: var(--ds-down); } .lab-dash .ds-stat.lab-pill .ds-delta:not(.ds-neg):not(.ds-flat) { color: var(--ds-up); } .lab-dash .ds-stat.lab-pill .ds-delta.ds-flat { color: var(--ds-ink-3); }
.lab-dash .ds-stat.lab-pill b.ds-stat-val { font-size: 34px; letter-spacing: -.04em; }
.lab-dash .ds-stat.lab-pill b.ds-stat-val.ds-long, .lab-dash .ds-stat-val.ds-long { font-size: 20px; letter-spacing: -.02em; }
.lab-dash .ds-stat.lab-pill .ds-bubble { font-size: 12px; color: var(--ds-ink-2); white-space: normal; }
.lab-dash .lab-goal.ds-chip { padding: 0 10px; display: inline-flex; gap: 6px; font-size: 12px; color: var(--ds-ink-2); }
.lab-dash .lab-goal.ds-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(255, 216, 77, .7); }
.lab-dash .lab-goal.ds-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Measurement caveats: behind "About these numbers" */
.ds-about > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 4px 10px; margin-left: -10px; border-radius: var(--ds-r-pill); font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); cursor: pointer; }
.ds-about > summary::-webkit-details-marker { display: none; }
.ds-about > summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-amber); box-shadow: 0 0 8px rgba(242, 169, 59, .6); }
.ds-about > summary::after { content: "▾"; font-size: 11px; transition: transform .2s; }
.ds-about[open] > summary::after { transform: rotate(180deg); }
.ds-about > summary:hover { color: var(--ds-ink); background: var(--ds-glass-2); }
.ds-about > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-about[open] > summary { margin-bottom: 8px; }
body.lab .ds-overview .sum-measurements { margin: 0; padding: 10px 14px; border: 0 !important; border-radius: 12px; background: var(--ds-well) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-2) !important; font-size: 12.5px; line-height: 1.45; }

/* Tasks: one short list */
.ds-tlist { padding: 6px; display: grid; gap: 2px; }
.ds-tgrp { margin: 10px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-3); }
.ds-tgrp:first-child { margin-top: 6px; }
.lab-dash .ds-tasks.hm-needs, .lab-dash .hm-queued { padding: 18px 20px 20px !important; }
.lab-dash .ds-trow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 12px; transition: background .2s; }
.lab-dash .ds-trow:hover { background: rgba(255, 246, 230, .04); }
.ds-tic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-2); }
.ds-tic svg { width: 16px; height: 16px; }
.ds-trow.ds-hot .ds-tic { color: var(--accent); background: rgba(255, 216, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3); }
.ds-trow.ds-warn .ds-tic { color: var(--ds-down); background: rgba(255, 107, 129, .1); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .28); }
.lab-dash .ds-trow .hm-t b { font-size: 13.5px; font-weight: 700; color: var(--ds-ink); }
.lab-dash .ds-trow .hm-t small { color: var(--ds-ink-3); }
body.lab .lab-dash .ds-trow .hm-go { min-height: 0 !important; height: 32px; padding: 0 13px !important; font-size: 13px !important; }
.lab-dash .ds-tlist .hm-clear { padding: 4px 10px 8px; }
.lab-dash .ds-more > summary { list-style: none; width: max-content; margin: 2px 10px 4px 56px; padding: 4px 10px; border-radius: var(--ds-r-pill); font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); cursor: pointer; }
.lab-dash .ds-more > summary::-webkit-details-marker { display: none; }
.lab-dash .ds-more > summary::after { content: " ▾"; }
.lab-dash .ds-more[open] > summary { display: none; }
.lab-dash .ds-more > summary:hover { color: var(--ds-ink); background: var(--ds-glass-2); }
.lab-dash .ds-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab-dash .ds-tlist .hm-clear small { color: var(--ds-ink-3); }
/* Getting started: one row with a ring */
.lab-dash .ds-setup { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-top: 6px; padding: 14px 10px 6px; border-top: 1px solid var(--ds-stroke); }
.lab-dash .ds-tlist > .ds-setup:first-child { margin-top: 0; border-top: 0; }
.lab-dash .ds-setup .ds-ring { width: 40px; height: 40px; margin-top: 2px; }
.lab-dash .ds-setup .ds-ring b { font-size: 10.5px; }
.ds-setup-body { min-width: 0; display: grid; gap: 2px; }
.ds-setup-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-ink-3); }
.lab-dash .ds-setup .hm-context { margin: 0; font-size: 12.5px; color: var(--ds-ink-2); }
.lab-dash .ds-setup .hm-continue { padding: 4px 0 0; gap: 12px; }
.lab-dash .ds-setup .hm-continue b { font-size: 14px; }
.lab-dash .ds-setup .hm-continue small { color: var(--ds-ink-3); font-size: 12.5px; }
.lab-dash .ds-setup .hm-progress { margin-top: 6px; padding-top: 0; border: 0; }
.lab-dash .ds-setup .hm-progress > summary { color: var(--ds-ink-3); font-weight: 600; width: max-content; }
.lab-dash .ds-setup .hm-progress > summary:hover { color: var(--ds-ink-2); }
.lab-dash .ds-setup .hm-steps { margin-top: 6px; }
.lab-dash .ds-setup .hm-step { border-top-color: rgba(255, 246, 230, .06); padding: 7px 0; }
.lab-dash .ds-setup .hm-n { width: 24px; height: 24px; font-size: 11.5px; background: var(--ds-glass-2); border-color: var(--ds-stroke); }
.lab-dash .ds-setup .hm-step.done .hm-n { background: var(--accent); color: var(--ds-on-accent); border-color: transparent; }
body.lab .lab-dash .ds-setup .hm-x { width: 32px; height: 32px; font-size: 18px; color: var(--ds-ink-3) !important; }
/* Staff block keeps its content; only the material changes */
.lab-dash .hm-queued .hm-hd { margin: 0; }
.lab-dash .hm-queued .hm-hd h2 { font-size: 17px; font-weight: 700; flex: 1; margin: 0; }
.lab-dash .hm-queued p { margin: 0; color: var(--ds-ink-3); font-size: 13px; }
.lab-dash .hm-queued .hm-item { border-top-color: var(--ds-stroke); }

/* Onboarding banner: glass, and its button stays glass so "+ Plan a post" is the only yellow one */
body.lab .lab-dash .ob-banner { margin: 0; border: 0 !important; border-radius: var(--ds-r-lg); background: linear-gradient(120deg, rgba(255, 216, 77, .12), rgba(224, 122, 71, .08)) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .28); }
body.lab .lab-dash .ob-banner .lab-btn { min-height: 0; height: 36px; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke-hi) !important; }
body.lab .lab-dash .ob-banner .lab-btn:hover { background: rgba(255, 246, 230, .18) !important; color: var(--ds-ink) !important; }

/* Earnings calendar (sizes and colours from the design preview) */
.ds-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ds-up-t { color: var(--ds-up) !important; } .ds-down-t { color: var(--ds-down) !important; } .ds-plan-t { color: var(--accent) !important; }
.lab-dash .lab-cal { z-index: auto; padding: 18px 18px 18px; }
.lab-dash .lab-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lab-dash .lab-mnav { display: flex; align-items: center; gap: 6px; }
.lab-dash .lab-mnav strong { min-width: 128px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ds-ink); letter-spacing: -.01em; }
body.lab .lab-dash .lab-arrow { width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--ds-glass-3) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; }
body.lab .lab-dash .lab-arrow svg { width: 16px; height: 16px; }
body.lab .lab-dash .lab-arrow:hover { background: rgba(255, 246, 230, .18) !important; }
.ds-pnl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ds-pnl > div { padding: 10px 14px; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); min-width: 0; }
.ds-pnl small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-pnl b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ds-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ds-pnl em { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 1px; color: var(--ds-ink-3); }
.ds-pnl em .ds-delta { height: auto; padding: 0; background: none !important; }
.ds-pnl > .plan b { color: var(--accent); }
.lab-dash .lab-wd, .lab-dash .lab-days { gap: 8px; }
.lab-dash .lab-wd { margin-bottom: -6px; color: var(--ds-ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; text-align: left; }
.lab-dash .lab-wd span { padding: 0 4px; }
body.lab .lab-dash .lab-day { --a: 0; position: relative; height: auto; min-height: 84px !important; overflow: hidden; display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: space-between; justify-content: stretch !important; justify-items: start; align-items: start; gap: 0; padding: 10px !important; border: 0 !important; border-radius: 14px !important; background: rgba(255, 246, 230, .03) !important; box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .07) !important; color: var(--ds-ink-2) !important; text-align: left; cursor: pointer; transition: transform .15s, background .2s; }
body.lab .lab-dash .lab-day:hover { transform: translateY(-1px); background: rgba(255, 246, 230, .06) !important; }
body.lab .lab-dash .lab-day b { position: relative; z-index: 1; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ds-ink-3); }
body.lab .lab-dash .lab-day span { position: relative; z-index: 1; font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink-4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* earned: a green bubble in the top-right corner that grows with the amount, away from the figure */
body.lab .lab-dash .lab-day.paid { background: rgba(123, 216, 159, calc(.05 + var(--a) * .14)) !important; box-shadow: inset 0 0 0 1px rgba(123, 216, 159, calc(.16 + var(--a) * .28)) !important; }
body.lab .lab-dash .lab-day.paid::before { content: ""; position: absolute; right: -22%; top: -34%; width: calc(40% + var(--a) * 66%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(123, 216, 159, calc(.16 + var(--a) * .2)), transparent 68%); pointer-events: none; }
body.lab .lab-dash .lab-day.paid span { color: var(--ds-up); }
body.lab .lab-dash .lab-day.paid span::before { content: "+"; }
body.lab .lab-dash .lab-day.paid b { color: var(--ds-ink-2); }
body.lab .lab-dash .lab-day.plan { box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .45) !important; background: repeating-linear-gradient(135deg, rgba(255, 216, 77, .04) 0 6px, transparent 6px 12px) !important; }
body.lab .lab-dash .lab-day.plan span { color: var(--accent); font-weight: 700; }
body.lab .lab-dash .lab-day.today { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 22px -6px rgba(255, 216, 77, .55) !important; }
body.lab .lab-dash .lab-day.today::after { content: none; }
body.lab .lab-dash .lab-day.today b::after { content: "Today"; margin-left: 6px; font-size: 10.5px; font-weight: 800; color: var(--accent); }
body.lab .lab-dash .lab-day.sel { outline: 2px solid var(--ds-ink); outline-offset: 1px; }
body.lab .lab-dash .lab-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.lab .lab-dash .lab-day.blank { visibility: hidden; }
/* hover tooltip for a day (follows the pointer) */
.ds-caltip { position: fixed; z-index: 60; pointer-events: none; max-width: 240px; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; color: var(--ds-ink-2); background: rgba(32, 28, 22, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 12px 30px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
.ds-caltip.show { opacity: 1; } .ds-caltip b { color: var(--ds-ink); }
/* Selected day: summary on the left, that day's videos on the right */
.lab-dash .lab-selday { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border: 0; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-dpsum small { display: block; color: var(--ds-ink-3); font-size: 12px; font-weight: 600; }
.lab-dash .lab-selday .ds-dpsum .amt { display: block; margin: 2px 0; font-size: 26px; font-weight: 800; letter-spacing: -.035em; text-align: left; color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
.lab-dash .lab-selday.ds-earned .ds-dpsum .amt { color: var(--ds-up); }
.lab-dash .lab-selday.ds-earned .ds-dpsum .amt::before { content: "+"; }
.lab-dash .lab-selday.ds-planned .ds-dpsum .amt { color: var(--accent); }
.lab-dash .lab-selday .rows { grid-column: auto; display: grid; }
.lab-dash .lab-prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid rgba(255, 246, 230, .07); border-radius: 0; font-size: 13px; cursor: pointer; }
.lab-dash .lab-prow:first-child { border-top: 0; }
.lab-dash .lab-prow:hover { background: rgba(255, 246, 230, .03); }
.lab-dash .lab-prow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.lab-dash .lab-prow .t { display: grid; gap: 2px; min-width: 0; overflow: visible; }
.lab-dash .lab-prow .t b { max-width: none; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lab-dash .lab-prow .t small { color: var(--ds-ink-3); font-size: 12px; }
.lab-dash .lab-prow > b { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--ds-ink-2); }
.lab-dash .lab-prow.ds-earned > b { color: var(--ds-up); }
.ds-thumb9 { position: relative; width: 30px; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #2a1f15; box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .12); flex: none; }
.ds-thumb9 .ph { position: absolute; inset: 0; background: linear-gradient(160deg, #3A2E22, #1E1914 60%, #2B1F17); }
.ds-thumb9 img, .ds-thumb9 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ds-thumb9 .lab-plat { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 5px; font-size: 7px; }
.ds-pill { --c: var(--ds-ink-3); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.ds-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-pill.ds-posted { --c: #CFC8BC; } .ds-pill.ds-sched { --c: var(--ds-up); } .ds-pill.ds-attn { --c: var(--ds-down); }
.lab-dash .lab-empty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 8px; color: var(--ds-ink-3); font-size: 13px; }
/* Legend under the calendar */
.ds-calfoot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ds-ink-3); }
.ds-calfoot i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.ds-calfoot .ds-k-earn { background: rgba(123, 216, 159, .5); }
.ds-calfoot .ds-k-plan { box-shadow: inset 0 0 0 1px #FFD84D; }
.ds-calfoot .ds-k-today { box-shadow: inset 0 0 0 1.5px #FFD84D; background: rgba(255, 216, 77, .15); }
.ds-calfoot .lab-monthviews { margin-left: auto; }
.ds-calfoot .lab-monthviews b { color: var(--ds-ink-2); }
/* Graph view: the drawing is unchanged; the day panel and legend step aside as in the preview */
.lab-cal.ds-graphmode .lab-selday, .lab-cal.ds-graphmode .ds-calfoot > :not(.lab-monthviews) { display: none; }
.lab-dash .lab-legend { color: var(--ds-ink-3); }
.lab-dash .lab-tip { background: rgba(32, 28, 22, .95); border: 0; box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 12px 30px rgba(0, 0, 0, .5); }
.lab-dash .lab-plot .dot { background: #1E1A15; }
.lab-dash .lab-plot .gl { border-top-color: rgba(255, 246, 230, .08); }

/* Latest posts: video tiles (design preview) */
.lab-dash .lab-latest .hd { display: flex; align-items: center; justify-content: space-between; }
.lab-dash .lab-latest h2 { font-size: 17px; }
.lab-dash .lab-latest .hd a { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: var(--ds-r-pill); font-size: 13px; font-weight: 700; color: var(--ds-ink-2); }
.lab-dash .lab-latest .hd a:hover { color: var(--ds-ink); background: var(--ds-glass-2); }
.lab-dash .lab-latest .lab-thumbs { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto; gap: 14px; overflow: visible; padding-bottom: 0; }
.lab-dash .ds-vtile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; cursor: default; }
.lab-dash .ds-vframe { position: relative; aspect-ratio: 9 / 16; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, #3a2a1c, #1a140e); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 246, 230, .1); }
.lab-dash .ds-vframe .ph { background: linear-gradient(160deg, #3A2E22, #1E1914 60%, #2B1F17); }
.lab-dash .ds-vframe .shade { inset: 0; height: auto; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 24%, transparent 55%, rgba(0, 0, 0, .72)); }
.lab-dash .ds-vframe.ds-playing .shade, .lab-dash .ds-vframe.ds-playing .ds-vbottom, .lab-dash .ds-vframe.ds-playing .ds-play { display: none; }
.lab-dash .ds-vframe.ds-playing video { pointer-events: auto; z-index: 2; }
.ds-vtop { position: absolute; z-index: 3; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; align-items: start; }
.lab-dash .ds-vtop .lab-plat { position: static; }
.ds-acts { display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.ds-vtile:hover .ds-acts, .ds-vtile:focus-within .ds-acts, .ds-vtile.ds-menu-open .ds-acts { opacity: 1; }
body.lab .ds-ico { width: 30px; height: 30px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center; border: 0 !important; cursor: pointer; color: var(--ds-ink) !important; background: rgba(20, 16, 12, .5) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .18) !important; }
body.lab .ds-ico:hover { background: rgba(20, 16, 12, .72) !important; }
.ds-ico svg { width: 15px; height: 15px; }
body.lab .ds-play { position: absolute; z-index: 3; inset: 0; margin: auto; width: 52px; height: 52px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 0 !important; cursor: pointer; display: grid; place-items: center; color: #fff !important; background: rgba(255, 246, 230, .16) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 246, 230, .25), 0 10px 26px rgba(0, 0, 0, .4) !important; opacity: .55; transform: scale(.94); transition: opacity .2s, transform .2s; }
.ds-play svg { width: 18px; height: 18px; margin-left: 3px; }
.ds-vtile:hover .ds-play, .ds-vtile:focus-within .ds-play { opacity: 1; transform: none; }
.ds-vbottom { position: absolute; z-index: 3; inset: auto 10px 10px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ds-vbottom .ds-dur { padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.ds-vbottom .ds-dur:empty { display: none; }
.ds-vmenu { position: absolute; z-index: 30; top: 44px; right: 10px; min-width: 178px; padding: 6px; border-radius: 14px; display: grid; background: rgba(32, 28, 22, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 18px 40px rgba(0, 0, 0, .55); }
.ds-vmenu[hidden] { display: none; }
.lab-dash .lab-thumbs > .ds-vtile:nth-child(6n) .ds-vmenu, .lab-dash .lab-thumbs > .ds-vtile:last-child .ds-vmenu { right: 10px; }
body.lab .ds-vmenu [role=menuitem] { display: flex; align-items: center; justify-content: flex-start !important; width: 100%; gap: 10px; min-height: 0 !important; height: auto; padding: 8px 10px !important; border: 0 !important; border-radius: 9px !important; background: none !important; box-shadow: none !important; text-align: left; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ds-ink-2) !important; text-decoration: none; white-space: nowrap; }
body.lab .ds-vmenu [role=menuitem]:hover, body.lab .ds-vmenu [role=menuitem]:focus-visible { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; outline-offset: -2px; }
.ds-vmenu svg { width: 15px; height: 15px; flex: none; }
.ds-vmeta { display: grid; gap: 2px; min-width: 0; }
body.lab .ds-vtitle { all: unset; display: -webkit-box; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; text-align: left; white-space: normal; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ds-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.lab .ds-vtitle:hover { text-decoration: underline; text-underline-offset: 3px; }
body.lab .ds-vtitle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ds-vmeta small { color: var(--ds-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-vmeta .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.ds-vmeta .meta b { color: var(--ds-up); font-weight: 800; }
@media (hover: none) { .ds-acts { opacity: 1; } .ds-play { opacity: .9; transform: none; } }
.lab-dash .lab-latest .lab-none { color: var(--ds-ink-3); }
body.lab .lab-dash .lab-latest .lab-btn { min-height: 0; height: 40px; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke-hi) !important; text-decoration: none; }
body.lab .lab-dash .lab-latest .lab-btn:hover { background: rgba(255, 246, 230, .18) !important; color: var(--ds-ink) !important; }

@media (max-width: 1100px) {
  .lab-dash .lab-latest .lab-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ds-metrics { grid-template-columns: 1fr; }
  .lab-dash > .ds-glass { padding: 16px 14px 18px; }
  .lab-dash .ds-phead .ds-btn-lg { height: 42px; }
}
@media (max-width: 640px) {
  .lab-dash .lab-latest .lab-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-pnl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-pnl b { font-size: 17px; }
  .lab-dash .lab-wd, .lab-dash .lab-days { gap: 5px; }
  .lab-dash .lab-wd { text-align: center; font-size: 10px; letter-spacing: .02em; }
  .lab-dash .lab-wd span { padding: 0; }
  body.lab .lab-dash .lab-day { min-height: 56px !important; padding: 6px 5px !important; border-radius: 11px !important; }
  .lab-dash .lab-selday { grid-template-columns: 1fr; }
  .lab-dash .lab-prow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lab-dash .lab-prow .ds-pill { display: none; }
  .ds-calfoot .lab-monthviews { margin-left: 0; }
  body.lab .lab-dash .lab-day span { font-size: 10.5px; letter-spacing: -.03em; }
  body.lab .lab-dash .lab-day.today b::after { display: none; }
  .lab-dash .ds-trow { grid-template-columns: 34px minmax(0, 1fr); }
  .lab-dash .ds-trow .hm-go { grid-column: 2; justify-self: start; }
  .lab-dash .ds-trow .hm-t small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lab-dash .ds-setup .hm-continue { flex-direction: column; align-items: flex-start; }
  .lab-dash .lab-mnav strong { min-width: 112px; }
  /* tooltips span their row instead of hanging off the screen edge */
  .lab-dash .ds-tipwrap { position: static; }
  .lab-dash .ds-stat-lbl, .lab-dash .ds-calfoot, .lab-dash .deal-card-bottom, .lab-dash .ds-cat-row, .deal-blocked-acts { position: relative; }
  .lab-dash .ds-bubble, .lab-dash .ds-tipwrap.ds-end .ds-bubble { left: 0; right: 0; width: auto; }
  /* Details and an inactive Apply share the card's full-width button row */
  .ds-deals .deal-card-bottom .deal-actions { align-self: stretch; }
  .ds-deals .deal-card-bottom .deal-actions > * { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-glass, .ds-btn, .ds-seg button, .ds-bubble, .lab-dash .ds-trow, body.lab .lab-dash .lab-day, .lab-dash .lab-latest .lab-thumb { transition: none !important; }
  body.lab .lab-dash .lab-day:hover, .lab-dash .lab-latest .lab-thumb:hover { transform: none; }
}

/* =========================================================================
   My campaigns (lab-pages.js campaignPageCollective), scoped to .ds-camps
   ========================================================================= */
.ds-camps .ds-metrics.lab-kpis { margin: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-camps .ds-stat.lab-kpi { padding: 18px 20px 16px; display: grid; gap: 6px; }
.ds-camps .ds-stat.lab-kpi span { font-size: inherit; color: inherit; }
.ds-camps .ds-stat.lab-kpi .ds-stat-lbl { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-camps .ds-stat.lab-kpi .ds-stat-sub { font-size: 12px; font-weight: 400; color: var(--ds-ink-3); }
.ds-camps .ds-stat.lab-kpi b.ds-stat-val { font-size: 34px; letter-spacing: -.04em; }
.ds-camps .ds-stat.lab-kpi .ds-stat-note { font-size: 12px; font-weight: 600; color: var(--ds-ink-4); }
.ds-camps .ds-stat.lab-kpi .ds-bubble { font-size: 12px; color: var(--ds-ink-2); }
.ds-stat-note { font-size: 12px; font-weight: 600; color: var(--ds-ink-4); }
.ds-camps .ds-rowhead { padding: 6px 2px 0; }
body.lab .ds-camps .ds-rowhead h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.ds-camps .ds-rowhead h2 small { font-size: 13px; font-weight: 600; color: var(--ds-ink-3); }
.ds-camps .ds-cgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ds-camps .lab-ccard { padding: 18px; gap: 14px; border: 0; transition: transform .2s; }
.ds-camps .lab-ccard:hover { transform: translateY(-2px); }
.ds-camps .lab-ccard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ds-camps .lab-ccard header { gap: 12px; }
.ds-camps .lab-ccard .lab-logo { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .12); }
.ds-camps .lab-ccard .nm b { font-size: 16px; color: var(--ds-ink); }
.ds-camps .lab-ccard .nm small { color: var(--ds-ink-3); }
.ds-pill.ds-on { --c: var(--ds-up); } .ds-pill.ds-paused { --c: #E0B62E; } .ds-pill.ds-done { --c: #CFC8BC; }
.ds-camps .lab-ccard .terms { border: 0; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-camps .lab-ccard .terms span { padding: 10px 14px; border-right: 1px solid var(--ds-stroke); }
.ds-camps .lab-ccard .terms span:last-child { border-right: 0; }
.ds-camps .lab-ccard .terms small { color: var(--ds-ink-3); }
.ds-camps .lab-ccard .terms b { font-size: 17px; color: var(--ds-ink); }
.ds-camps .lab-ccard .terms b.green-t { color: var(--ds-up) !important; }
.ds-camps .lab-ccard .sp svg.ds-spark-wide { width: 100%; height: 44px; margin: 0; }
.ds-camps .lab-ccard .sp > span { color: var(--ds-ink-3); }
body.lab .ds-camps .ds-addtile { min-height: 236px; border-radius: var(--ds-r-lg) !important; border: 1.5px dashed rgba(255, 246, 230, .16) !important; background: rgba(255, 246, 230, .02) !important; color: var(--ds-ink-2) !important; }
body.lab .ds-camps .ds-addtile b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); margin-bottom: 6px; }
body.lab .ds-camps .ds-addtile small { color: var(--ds-ink-3); }
body.lab .ds-camps .ds-addtile:hover { border-color: rgba(255, 216, 77, .55) !important; color: var(--ds-ink) !important; background: rgba(255, 216, 77, .04) !important; }
body.lab .ds-camps .ds-addtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Big figures never break mid-number; the card grid may shrink below its content width. */
.ds-stat b.ds-stat-val, .ds-stat .ds-stat-val { white-space: nowrap; }
.ds-camps .lab-ccard { min-width: 0; }
@media (max-width: 760px) {
  body.lab .ds-camps .ds-metrics.lab-kpis { grid-template-columns: minmax(0, 1fr) !important; }
  .ds-camps .ds-cgrid { grid-template-columns: minmax(0, 1fr); }
  .ds-camps .lab-ccard .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-camps .lab-ccard .terms span { padding: 10px 10px; min-width: 0; }
  .ds-camps .lab-ccard .terms b { font-size: 15px; white-space: nowrap; }
  .ds-camps .ds-rowhead { flex-direction: column; align-items: flex-start; }
  .ds-camps .ds-rowhead .ds-seg { max-width: 100%; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .ds-camps .lab-ccard { transition: none; } .ds-camps .lab-ccard:hover { transform: none; } }

/* =========================================================================
   Find campaigns (deals.js page), scoped to .ds-deals; profile and setup modal pieces use ds-pf-*
   ========================================================================= */
.ds-deals .lab-head { align-items: center; margin: 0; }
.ds-deal-head { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-deals > .ds-glass { padding: 18px 20px; }
.ds-deals .deal-profile-nudge { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; border: 0; background: linear-gradient(120deg, rgba(255, 216, 77, .1), rgba(224, 122, 71, .07)), linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); }
.ds-deals .deal-profile-nudge b { font-size: 15px; color: var(--ds-ink); }
.ds-deals .deal-profile-nudge p { margin: 3px 0 0; color: var(--ds-ink-3); font-size: 13px; }
.ds-deal-profile { margin: -6px 2px 0; font-size: 12.5px; }
/* Orbit light at the tabs, in the brand glow colours: a curved arc of light across the whole content area (sidebar edge
   to page edge, centred on it) with the five orbs on it, a light gliding along it and each orb glowing as it passes. It's background:
   the band only opens a small gap for the orbs, and the art spills up behind the tabs and down behind the cards. */
body.lab #app:has(> .page > .ds-deals) { position: relative; }
.ds-deals > :not(.ds-orbit-band) { position: relative; z-index: 1; }
.ds-orbit-band { height: 70px; }
.ds-deal-hero { position: absolute; z-index: 0; left: 0; right: 0; margin-top: -200px; height: 460px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 calc(62% + var(--y)), transparent calc(76% + var(--y))), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent, #000 24%, #000 calc(62% + var(--y)), transparent calc(76% + var(--y))), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
/* Kept soft so it never competes with the campaigns. --w widens the art on phones; --y drops it below wrapped tabs. */
.ds-deal-hero { opacity: .7; --w: 100%; --y: 0px; }
.ds-orbit-art { position: absolute; top: var(--y); height: 100%; width: var(--w); left: calc(50% - var(--w) / 2); }
.ds-orbit-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(26% 30% at 50% 42%, rgba(242, 169, 59, .14), transparent 72%); }
.ds-orbit-defs { position: absolute; }
.ds-deal-hero svg:not(.ds-orbit-defs), .ds-orbit-sweep { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ds-deal-hero path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ds-orbit-glow { filter: blur(9px); }
.ds-orbit-art > .ds-orbit-glow path { stroke: url(#dsOrbitArc); stroke-width: 14; opacity: .6; }
.ds-orbit-art > .ds-orbit-line path { stroke: url(#dsOrbitArc); stroke-width: 3; }
/* The light: a brighter copy of the arc, shown only through a soft band that glides left to right, lap after lap */
.ds-orbit-sweep { -webkit-mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 30%, #000 50%, rgba(0, 0, 0, .5) 70%, transparent) -40% 0 / 28% 100% no-repeat; mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 30%, #000 50%, rgba(0, 0, 0, .5) 70%, transparent) -40% 0 / 28% 100% no-repeat; animation: ds-orbit-sweep 6s linear infinite; animation-delay: var(--d); }
.ds-orbit-sweep .ds-orbit-glow path { stroke: url(#dsOrbitHi); stroke-width: 22; opacity: .85; }
.ds-orbit-sweep .ds-orbit-line path { stroke: url(#dsOrbitHi); stroke-width: 4.2; }
@keyframes ds-orbit-sweep { to { -webkit-mask-position: 140% 0; mask-position: 140% 0; } }
/* Each orb is anchored on the arc (the dot) and floats just above it; they all breathe together */
.ds-orb { position: absolute; width: 0; height: 0; --s: 64px; }
.ds-orb::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #FFE27A; box-shadow: 0 0 10px 3px rgba(242, 169, 59, .75); }
.ds-orb i { position: absolute; display: block; background: center / cover no-repeat; left: calc(var(--s) / -2); top: calc(var(--s) * -.78); width: var(--s); height: var(--s); border-radius: 50%; box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 246, 230, .07); animation: ds-orb-float 6s ease-in-out infinite alternate, ds-orb-lit 6s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + var(--t) - .6s); }
@keyframes ds-orb-float { to { translate: 0 -5px; } }
@keyframes ds-orb-lit {
  0%, 20%, 100% { box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 246, 230, .07); filter: none; }
  10% { box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(255, 216, 77, .6), 0 0 36px 7px rgba(242, 169, 59, .5); filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) { .ds-orbit-sweep { display: none; } .ds-orb i { animation: none; } }
/* Where the tabs reach the middle of the row, the arc drops below them (and the gap opens a little to fit it) */
@media (max-width: 1560px) { .ds-orbit-band { height: 100px; } .ds-deal-hero { --y: 42px; } .ds-orb { --s: 56px; } }
@media (max-width: 700px) { .ds-deal-hero { --w: 170%; } .ds-orb { --s: 36px; } }
/* Coach templates on this page: glass, with glass join buttons (no yellow capsules in a list) */
body.lab .ds-deals .cmp-avail { margin: 0; padding: 18px 20px; border: 0 !important; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; box-shadow: var(--ds-shadow), inset 0 0 0 1px rgba(255, 216, 77, .22); }
.ds-deals .cmp-avail-hd h2 { font-size: 17px; font-weight: 700; color: var(--ds-ink); }
.ds-deals .cmp-avail-hd .eyebrow { color: var(--ds-ink-3); }
.ds-deals .cmp-avail-grid article { border: 0; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-deals .cmp-avail-grid .cmp-type { align-self: flex-start; }
body.lab .ds-deals .cmp-avail-grid .lab-btn, body.lab .ds-deals .cmp-avail .lab-ghost { min-height: 0; height: 32px; padding: 0 13px !important; font-size: 13px !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; border: 0 !important; }
body.lab .ds-deals .cmp-avail-grid .lab-btn:hover { background: rgba(255, 246, 230, .18) !important; }
/* Tabs */
.ds-deals .deal-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; border: 0; margin: 0; padding: 4px; }
body.lab .ds-deals .deal-tabs button small { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--ds-glass-2); color: var(--ds-ink-2); }
/* Campaign cards */
.ds-deals .deal-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ds-deals .deal-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 0; }
.ds-deals .deal-card-top { display: flex; align-items: flex-start; gap: 12px; }
.ds-deals .deal-card .deal-status { margin-top: 2px; }
.ds-deals .deal-brand, .ds-cat-row .deal-brand { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: var(--ds-on-accent); background: linear-gradient(140deg, var(--ds-accent-hi), var(--ds-amber)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.ds-deal-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
body.lab .ds-deals .ds-deal-name h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ds-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-deal-name small { font-size: 12px; color: var(--ds-ink-3); }
.ds-deals .deal-card .deal-status { flex: none; }
.ds-deals .deal-description { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ds-ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-deal-terms { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-deal-terms > span { display: grid; gap: 2px; padding: 10px 14px; min-width: 0; }
.ds-deal-terms > span + span { border-left: 1px solid var(--ds-stroke); }
.ds-deal-terms small { font-size: 11.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-deal-terms b { font-size: 13.5px; font-weight: 700; color: var(--ds-ink); margin: 0; }
.ds-deal-plats, .ds-cat-plats { display: flex; gap: 6px; flex-wrap: wrap; }
.ds-chip.ds-plat { height: 22px; padding: 0 9px; font-size: 11.5px; cursor: default; }
.ds-chip.ds-plat:hover { background: var(--ds-glass-2); color: var(--ds-ink-2); }
.ds-deal-setup { font-size: 12px; color: var(--ds-ink-2); }
.ds-deals .deal-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.ds-deals .deal-card-bottom small { font-size: 12px; color: var(--ds-ink-3); }
.ds-deals .deal-actions, .deal-blocked-acts { display: flex; align-items: center; gap: 8px; }
.deal-apply-tip .ds-bubble { width: 270px; }
.deal-blocked { display: grid; gap: 8px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 246, 230, .03); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-2); font-size: 13px; }
.deal-blocked b { color: var(--ds-ink); }
.deal-blocked ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ds-deals .deal-review { display: grid; gap: 10px; margin-bottom: 16px; }
body.lab .ds-deals .deal-review h2 { margin: 0; font-size: 16px; color: var(--ds-ink); }
.deal-review h2 small { margin-left: 6px; font-size: 13px; color: var(--ds-ink-3); }
.deal-review > p { margin: 0; }
.deal-review-list { display: grid; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); padding: 4px 6px; }
.deal-review-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 10px; }
.deal-review-row + .deal-review-row { border-top: 1px solid rgba(255, 246, 230, .06); }
.deal-review-main { display: grid; gap: 2px; min-width: 0; }
.deal-review-main b { font-size: 14px; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-review-main small, .deal-review-wait { font-size: 12px; color: var(--ds-ink-3); }
.deal-review-acts { display: flex; gap: 8px; }
@media (max-width: 600px) { .deal-review-row { grid-template-columns: 44px minmax(0, 1fr); } .deal-review-acts, .deal-review-wait { grid-column: 2; } }
/* Count of applications waiting for review, on the Deals menu item. */
.lab-navbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; line-height: 1; color: var(--ds-on-accent); background: var(--accent); }
.ds-deal-links { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--ds-stroke); }
body.lab .ds-deals .deal-manage-link { margin: 0; padding: 0 !important; font-size: 12.5px !important; color: var(--ds-ink-2) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 246, 230, .25); }
body.lab .ds-deals .deal-manage-link:hover { color: var(--ds-ink) !important; }
.ds-deals .deal-empty, .ds-deals .deal-error { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 32px 20px; border: 0; color: var(--ds-ink-3); }
.ds-deals .deal-empty h2 { margin: 0; font-size: 16px; color: var(--ds-ink); }
.ds-deals .deal-empty p { margin: 0 0 6px; }
/* All campaigns list */
.ds-catalog { display: grid; gap: 14px; }
.ds-cat-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
body.lab .ds-cat-filters input, body.lab .ds-cat-filters select { width: 100%; height: 40px; margin: 0; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 13.5px !important; }
body.lab .ds-cat-filters input:focus, body.lab .ds-cat-filters select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ds-cat-list { display: grid; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); padding: 4px 6px; }
.ds-cat-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 10px; border-top: 1px solid rgba(255, 246, 230, .06); }
.ds-cat-row:first-child, .ds-cat-row[hidden] + .ds-cat-row:not([hidden]) { border-top: 0; }
.ds-cat-row[hidden] { display: none; }
.ds-cat-main { display: grid; gap: 2px; min-width: 0; }
.ds-cat-main b { font-size: 14px; color: var(--ds-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cat-main small { font-size: 12px; color: var(--ds-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cat-none { margin: 0; padding: 18px; text-align: center; }
.ds-cat-none[hidden] { display: none; }
/* Profile and per-campaign setup (inside the shared modal) */
.ds-pf-accounts { display: grid; gap: 8px; margin: 4px 0 10px; padding: 12px 14px; border: 0; border-radius: 14px; background: rgba(255, 246, 230, .03); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-pf-accounts legend { padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--ds-ink); }
body.lab .ds-pf-row { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
body.lab .ds-pf-row > span { font-size: 13px; font-weight: 600; color: var(--ds-ink-2); }
body.lab .ds-pf-row input { margin: 0; }
.ds-pf-row { min-height: 44px; }
.ds-pf-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ds-pf-type a { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); white-space: nowrap; }
body.lab .ds-pf-row input::placeholder, body.lab .ds-pf-videos input::placeholder { color: var(--ds-ink-4); opacity: 1; }
.ds-pf-conn { font-size: 14px; font-weight: 600; color: var(--ds-ink); overflow-wrap: anywhere; }
.ds-pf-conn small { margin-left: 6px; font-size: 12px; color: var(--ds-up); font-weight: 700; }
body.lab .ds-pf-videos { display: grid; gap: 6px; margin-top: 4px; }
@media (max-width: 900px) {
  .ds-cat-filters { grid-template-columns: 1fr 1fr; }
  .ds-cat-filters .ds-cat-search { grid-column: 1 / -1; }
  .ds-cat-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ds-cat-row .ds-cat-plats { display: none; }
  .ds-cat-row .ds-btn { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .ds-deals .deal-grid { grid-template-columns: 1fr; }
  .ds-deal-terms { grid-template-columns: 1fr; }
  .ds-deal-terms > span + span { border-left: 0; border-top: 1px solid var(--ds-stroke); }
  body.lab .ds-pf-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   Ideas (viral.js: Viral hub + Swipe file in one library), scoped to .ds-ideas
   ========================================================================= */
body.lab .ds-ideas { display: flex; flex-direction: column; gap: 16px; }
body.lab .ds-ideas .vh-head { margin: 0; align-items: center; }
body.lab .ds-ideas .vh-head h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.04em; margin: 0; }
body.lab .ds-ideas .vh-head p { color: var(--ds-ink-3); margin: 6px 0 0; }
body.lab .ds-ideas .vh-toolbar { padding: 14px 16px; border: 0; border-radius: var(--ds-r-lg); }
body.lab .ds-ideas .vh-toolbar input, body.lab .ds-ideas .vh-toolbar select { min-height: 40px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; padding: 0 14px !important; background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 13.5px !important; }
body.lab .ds-ideas .vh-toolbar label > span { color: var(--ds-ink-3); font-size: 11px; }
body.lab .ds-ideas .vh-filters > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.lab .ds-ideas .vh-filters summary { color: var(--ds-ink-2); font-size: 12.5px; font-weight: 700; }
body.lab .ds-ideas .vh-tabs { margin: 0; align-self: flex-start; display: inline-flex; flex-wrap: nowrap; gap: 2px; }
body.lab .ds-ideas .vh-tab { height: 30px; min-height: 0 !important; font-size: 13px !important; font-weight: 700; border-radius: var(--ds-r-pill) !important; color: var(--ds-ink-3) !important; }
body.lab .ds-ideas .vh-tab.on { color: var(--ds-ink) !important; background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35) !important; }
body.lab .ds-ideas .vh-workspace.ds-iwork { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 16px; margin-top: 2px; }
body.lab .ds-ideas .vh-list.ds-igrid { border: 0; background: none; overflow: visible; }
/* Phones: the saved-video grid flows with the page (no 310px box whose cards spill under the detail panel). */
@media (max-width: 760px) { body.lab .ds-ideas .vh-list.ds-igrid { max-height: none; } }
body.lab .ds-ideas .vh-list-head { padding: 0 2px 10px; border: 0; }
body.lab .ds-ideas .vh-list-head b { font-size: 13px; color: var(--ds-ink-2); }
body.lab .ds-ideas .vh-reset { color: var(--ds-ink-3) !important; }
.ds-icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ds-idea { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 10px 10px 12px; border-radius: 18px; transition: transform .2s; }
.ds-idea:hover { transform: translateY(-2px); }
.ds-idea.on { box-shadow: var(--ds-shadow), inset 0 0 0 1.5px rgba(255, 216, 77, .6); }
.ds-iframe { position: relative; aspect-ratio: 4 / 5; border-radius: 13px; overflow: hidden; background: linear-gradient(160deg, #3a2a1c, #1a140e); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .1); }
.ds-iframe::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 62%, rgba(0, 0, 0, .6)); }
.ds-ithumb, .ds-ithumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-ithumb img { object-fit: cover; }
.ds-ifallback { position: absolute; inset: 0; display: grid; place-items: center; }
.ds-ifallback b { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: rgba(255, 246, 230, .75); padding: 6px 12px; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .25); }
.ds-p-instagram .ds-ifallback, .ds-vframe .ph.ds-p-instagram { background: radial-gradient(120% 90% at 20% 110%, rgba(255, 196, 60, .45), transparent 60%), radial-gradient(120% 90% at 100% 0%, rgba(214, 41, 118, .5), transparent 60%), linear-gradient(160deg, #3b1d3f, #1b1218); }
.ds-p-tiktok .ds-ifallback, .ds-vframe .ph.ds-p-tiktok { background: radial-gradient(90% 70% at 15% 15%, rgba(37, 244, 238, .28), transparent 60%), radial-gradient(90% 70% at 90% 90%, rgba(254, 44, 85, .32), transparent 60%), linear-gradient(160deg, #141414, #0b0b0b); }
.ds-p-youtube .ds-ifallback, .ds-vframe .ph.ds-p-youtube { background: radial-gradient(100% 80% at 50% 0%, rgba(255, 48, 48, .38), transparent 62%), linear-gradient(160deg, #2a1414, #140c0c); }
.ds-p-facebook .ds-ifallback, .ds-vframe .ph.ds-p-facebook { background: radial-gradient(100% 80% at 30% 0%, rgba(24, 119, 242, .4), transparent 62%), linear-gradient(160deg, #101a2c, #0b1018); }
body.lab .ds-ipick { position: absolute; inset: 0; z-index: 2; border-radius: 0 !important; min-height: 0 !important; width: 100%; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; cursor: pointer; }
.ds-iframe .ds-vtop { z-index: 3; }
.ds-ichip { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: var(--ds-r-pill); font-size: 11px; font-weight: 800; color: var(--ds-ink); background: rgba(20, 16, 12, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .16); }
.ds-acts.ds-acts-on { opacity: 1; }
body.lab .ds-istar { font-size: 14px !important; color: var(--ds-ink-2) !important; }
body.lab .ds-istar.on { color: var(--accent) !important; }
.ds-iviews { position: absolute; z-index: 3; left: 10px; bottom: 10px; font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ds-imeta { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
body.lab .ds-ititle { all: unset; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; cursor: pointer; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ds-ink); text-align: left; white-space: normal; }
body.lab .ds-ititle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ds-imeta small { font-size: 12px; color: var(--ds-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-iacts { display: grid; gap: 6px; align-self: end; }
body.lab .ds-iacts .ds-btn { width: 100%; }
/* Reading pane */
body.lab .ds-ideas .vh-reading.ds-glass { position: sticky; top: 16px; border: 0; border-radius: var(--ds-r-lg); overflow: visible; }
body.lab .ds-ideas .vh-detail > header { position: relative; padding: 22px 22px 18px; }
body.lab .ds-ideas .vh-edit { position: absolute; top: 18px; right: 18px; }
body.lab .ds-ideas .vh-title { padding-right: 40px; }
body.lab .ds-ideas .vh-title h2 { font-size: 21px; }
body.lab .ds-ideas .vh-kicker { color: var(--ds-ink-3); margin-right: 48px; }
body.lab .ds-ideas .vh-btn { min-height: 0 !important; height: 34px; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none; }
body.lab .ds-ideas .vh-btn:hover { background: rgba(255, 246, 230, .18) !important; filter: none; }
body.lab .ds-ideas .vh-detail .vh-btn.vh-primary { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .5) !important; }
body.lab .ds-ideas .vh-detail > footer, body.lab .ds-ideas .vh-detail-meta { border-color: var(--ds-stroke); }
body.lab .ds-ideas .vh-list-empty { border-radius: var(--ds-r-lg); background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
@media (max-width: 1100px) {
  body.lab .ds-ideas .vh-workspace.ds-iwork { grid-template-columns: 1fr; }
  body.lab .ds-ideas .vh-reading.ds-glass { position: static; }
  body.lab .ds-ideas .vh-filters > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ds-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.lab .ds-ideas .vh-filters > div { grid-template-columns: 1fr 1fr; }
  body.lab .ds-ideas .vh-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ds-idea { transition: none; } .ds-idea:hover { transform: none; } }

/* =========================================================================
   Calendar (planner.js: Planning + Scheduling in one), scoped to #plRoot
   ========================================================================= */
/* One colour per stage, used by pills, filter dots and post cards */
body.lab #plRoot .cal-s-idea { --c: #B3AC9F; --cb: rgba(179, 172, 159, .12); --cl: rgba(179, 172, 159, .32); }
body.lab #plRoot .cal-s-scripted { --c: #8FB8FF; --cb: rgba(143, 184, 255, .12); --cl: rgba(143, 184, 255, .34); }
body.lab #plRoot .cal-s-filmed { --c: #C58CFF; --cb: rgba(197, 140, 255, .12); --cl: rgba(197, 140, 255, .34); }
body.lab #plRoot .cal-s-editing { --c: #F2A93B; --cb: rgba(242, 169, 59, .12); --cl: rgba(242, 169, 59, .36); }
body.lab #plRoot .cal-s-ready { --c: #FFD84D; --cb: rgba(255, 216, 77, .12); --cl: rgba(255, 216, 77, .4); }
body.lab #plRoot .cal-s-scheduled { --c: #7BD89F; --cb: rgba(123, 216, 159, .12); --cl: rgba(123, 216, 159, .36); }
body.lab #plRoot .cal-s-posted { --c: #CFC8BC; --cb: rgba(207, 200, 188, .08); --cl: rgba(207, 200, 188, .24); }
body.lab #plRoot .cal-s-attention { --c: #FF6B81; --cb: rgba(255, 107, 129, .12); --cl: rgba(255, 107, 129, .4); }
body.lab #plRoot .pl-pill.cal-cm { --c: #7BD89F; --cb: rgba(123, 216, 159, .16); --cl: rgba(123, 216, 159, .5); font-weight: 800; }
body.lab #plRoot .pl-pill.cal-cmchg { --c: #FF9F6B; --cb: rgba(255, 159, 107, .12); --cl: rgba(255, 159, 107, .4); }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
/* Header and toolbar */
body.lab #plRoot .pl-head { margin-bottom: 16px; align-items: center; }
body.lab #plRoot .pl-head h1 { margin: 0; }
body.lab #plRoot .pl-head .eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--ds-ink-3); margin-bottom: 6px; }
body.lab #plRoot .pl-subt { color: var(--ds-ink-3); max-width: 640px; }
body.lab #plRoot .pl-newmain, body.lab #plRoot .pl-newcaret { height: 44px; background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px -10px rgba(255, 196, 60, .7) !important; }
body.lab #plRoot .pl-newmain { border-radius: 999px 0 0 999px !important; padding: 0 16px 0 20px !important; font-size: 14.5px !important; }
body.lab #plRoot .pl-newcaret { border-radius: 0 999px 999px 0 !important; }
.cal-bar { padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 12px; border-radius: var(--ds-r-lg); }
.cal-barrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-barrow .pl-sp { flex: 1; }
body.lab #plRoot .pl-ib, body.lab #plRoot .pl-btn { height: 34px; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; }
body.lab #plRoot .pl-ib { width: 34px; }
body.lab #plRoot .pl-mlabel { min-width: 150px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ds-ink); }
body.lab #plRoot .pl-stats { color: var(--ds-ink-3); }
.cal-filters, .cal-camps { display: flex; gap: 6px; flex-wrap: wrap; }
body.lab #plRoot .pl-chip { height: 30px; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink-2) !important; gap: 7px; }
body.lab #plRoot .pl-chip:hover { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; }
body.lab #plRoot .pl-chip.on { background: rgba(255, 216, 77, .14) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .5) !important; color: var(--ds-ink) !important; }
body.lab #plRoot .cal-stchip small { font-size: 11px; font-weight: 800; color: var(--ds-ink-3); }
/* Grid */
body.lab #plRoot .pl-scroll { border: 0; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
body.lab #plRoot .pl-dow { background: rgba(255, 246, 230, .03); border-color: var(--ds-stroke); }
body.lab #plRoot .pl-day { border-color: rgba(255, 246, 230, .06); }
body.lab #plRoot .pl-day.out { background: rgba(0, 0, 0, .14); }
body.lab #plRoot .pl-day.today { background: rgba(255, 216, 77, .04); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .45); }
body.lab #plRoot .cal-weekview .pl-day { min-height: 420px; }
body.lab #plRoot .pl-card, body.lab #plRoot .cal-post { border: 0; border-radius: 12px; background: rgba(255, 246, 230, .06); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .1); }
body.lab #plRoot .pl-card:hover, body.lab #plRoot .cal-post:hover { background: rgba(255, 246, 230, .1); }
body.lab #plRoot button.cal-post { position: relative; display: flex !important; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 2px; width: 100%; min-width: 0; height: auto; min-height: 0 !important; padding: 8px 9px !important; border: 0 !important; border-radius: 12px !important; background: rgba(255, 246, 230, .06) !important; text-align: left; white-space: normal; color: var(--ds-ink) !important; cursor: pointer; font-size: 12.5px !important; font-weight: 400 !important; line-height: 1.35; }
body.lab #plRoot button.cal-post:hover { background: rgba(255, 246, 230, .1) !important; }
body.lab #plRoot .cal-post .pl-camp { display: flex; align-items: center; gap: 6px; min-width: 0; }
body.lab #plRoot .cal-post .pl-sub { font-size: 11.5px; color: var(--ds-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab #plRoot .cal-post .pl-pills { justify-content: flex-start; }
body.lab #plRoot .cal-post.cal-k-posted { opacity: .78; }
body.lab #plRoot .cal-post:focus-visible, body.lab #plRoot .pl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.lab #plRoot .cal-post .pl-where { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--ds-ink-3); }
body.lab #plRoot .cal-post .pl-where b { color: var(--ds-ink-2); margin-right: 2px; }
body.lab #plRoot .cal-post.sc-moving { opacity: .4; }
body.lab #plRoot .pl-day.sc-drop-target, body.lab #plRoot .cal-lday.sc-drop-target { background: rgba(255, 216, 77, .08); box-shadow: inset 0 0 0 2px rgba(255, 216, 77, .5); }
body.lab #plRoot .cal-postbtn { height: 22px; min-height: 0 !important; padding: 0 9px !important; border: 0 !important; border-radius: 999px !important; font-size: 11px !important; font-weight: 800 !important; color: var(--ds-on-accent) !important; background: var(--accent) !important; box-shadow: none !important; cursor: pointer; }
body.lab #plRoot .cal-postbtn:hover { background: var(--ds-accent-hi) !important; }
/* List view */
.cal-list { padding: 8px 18px 14px; border-radius: var(--ds-r-lg); }
.cal-lday { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--ds-stroke); }
.cal-lday:first-child { border-top: 0; }
.cal-lday h3 { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); }
.cal-lday h3 small { color: var(--accent); font-weight: 800; margin-left: 4px; }
.cal-llist { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
/* Scheduled posts under the calendar: one list per campaign, one card per platform, soonest first */
.tb { margin-top: 16px; }
body.lab .tb-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ds-ink); }
.tb-title small { margin-left: 4px; color: var(--ds-ink-3); font-weight: 700; }
.tb-none { margin: 0; padding: 18px; border-radius: 14px; border: 1px dashed rgba(255, 246, 230, .12); font-size: 13px; color: var(--ds-ink-3); }
.tb-lists { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.tb-list { flex: 0 0 272px; display: flex; flex-direction: column; max-height: 620px; padding: 10px 8px 8px; border-radius: 14px; background: rgba(255, 246, 230, .045); border: 1px solid rgba(255, 246, 230, .07); }
.tb-lh { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.tb-lh b { font-size: 14px; font-weight: 700; color: var(--ds-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-lh small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ds-ink-3); white-space: nowrap; }
.tb-cards { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 0 2px 2px; }
body.lab .tb-card { all: unset; flex: none !important; display: grid !important; gap: 6px; min-height: 0 !important; padding: 10px 12px !important; border-radius: 10px !important; border: 1px solid rgba(255, 246, 230, .07) !important; background: #2A2620 !important; box-shadow: 0 1px 0 rgba(0, 0, 0, .35) !important; box-sizing: border-box; cursor: pointer; transition: background .12s; }
body.lab .tb-card:hover { background: #332E27 !important; }
body.lab .tb-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-card b { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ds-ink); }
.tb-meta { display: flex; align-items: center; gap: 8px; }
.tb-when { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ds-ink-3); }
.tb-when svg { width: 13px; height: 13px; }
.tb-plat { margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; flex: none; }
.tb-plat svg { width: 13px; height: 13px; }
/* Needs attention · To schedule · Up next · Bulk upload */
.cal-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(200px, .8fr); gap: 14px; margin-top: 16px; align-items: start; }
.cal-rsec { padding: 16px 16px 10px; border-radius: var(--ds-r-lg); }
body.lab .cal-rsec h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ds-ink); }
.cal-rsec h2 small { margin-left: 4px; color: var(--ds-ink-3); font-weight: 700; }
.cal-rrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 246, 230, .06); }
.cal-rrow:first-of-type { border-top: 0; }
body.lab .cal-rt { all: unset; flex: 1; min-width: 0; display: grid !important; gap: 2px; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left; white-space: normal; cursor: pointer; }
.cal-rt b { font-size: 13px; color: var(--ds-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-rt small { font-size: 11.5px; color: var(--ds-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.lab .cal-rt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cal-rnone { margin: 4px 0 8px; font-size: 12.5px; color: var(--ds-ink-3); }
body.lab .cal-bulk { display: grid; gap: 4px; align-content: center; min-height: 120px; padding: 16px !important; border: 1.5px dashed rgba(255, 246, 230, .18) !important; border-radius: var(--ds-r-lg) !important; background: rgba(255, 246, 230, .02) !important; box-shadow: none !important; color: var(--ds-ink-2) !important; text-align: left; white-space: normal; cursor: pointer; }
body.lab .cal-bulk b { font-size: 14px; color: var(--ds-ink); }
body.lab .cal-bulk small { font-size: 12px; color: var(--ds-ink-3); }
body.lab .cal-bulk:hover { border-color: rgba(255, 216, 77, .55) !important; background: rgba(255, 216, 77, .04) !important; }
@media (max-width: 1200px) { .cal-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .cal-rail { grid-template-columns: 1fr; }
  .cal-lday { grid-template-columns: 1fr; gap: 6px; }
  body.lab #plRoot .pl-mlabel { min-width: 0; }
}

/* =========================================================================
   "Post this video" (post-this-video.js reshapes the existing post form)
   ========================================================================= */
body.lab dialog.ds-post-dialog { width: min(1080px, 96vw); max-width: 96vw; padding: 0; border: 0 !important; border-radius: 24px !important; background: linear-gradient(180deg, #24201A, #1A1712) !important; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab dialog.ds-post-dialog::backdrop { background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab dialog.ds-post-dialog { max-height: 92vh; max-height: 92svh; overflow: hidden; }
body.lab .ds-postform { padding: 22px 24px 0; max-height: 92vh; max-height: 92svh; overflow-y: auto; }
body.lab .ds-ptv-left .post-video:has([data-post-preview] video) .post-video-drop { padding: 10px 12px; flex-direction: row; align-items: center; gap: 10px; min-height: 0; }
body.lab .ds-ptv-left .post-video:has([data-post-preview] video) .post-video-drop > span { display: none; }
body.lab .ds-ptv-left .post-video:has([data-post-preview] video) .post-video-drop > strong::after { content: " · replace"; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-postform .modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
body.lab .ds-postform .modal-header h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.ds-ptv-status { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-ptv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.ds-ptv-left, .ds-ptv-right { display: grid; gap: 14px; min-width: 0; }
body.lab .ds-ptv-left .post-video, body.lab .ds-ptv-left .post-cover { margin: 0; padding: 14px; border-radius: 18px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-ptv-left [data-post-preview] video { width: 100%; max-height: 380px; border-radius: 14px; background: #000; object-fit: contain; }
body.lab .ds-ptv-left .post-cover h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ds-ink); }
body.lab .ds-ptv-left .post-cover > small { display: block; margin-top: 8px; color: var(--ds-ink-4); font-size: 11.5px; }
.ds-frames { display: grid; gap: 10px; }
.ds-frames-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
body.lab .ds-frame { position: relative; aspect-ratio: 9 / 16; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; overflow: hidden; background: rgba(255, 246, 230, .06) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; cursor: pointer; }
.ds-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.lab .ds-frame.on { box-shadow: 0 0 0 2px var(--accent), 0 0 16px -2px rgba(255, 216, 77, .6) !important; }
body.lab .ds-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-frame-wait { background: linear-gradient(90deg, rgba(255, 246, 230, .04), rgba(255, 246, 230, .09), rgba(255, 246, 230, .04)); background-size: 200% 100%; animation: ds-shimmer 1.2s linear infinite; border-radius: 10px; aspect-ratio: 9 / 16; }
@keyframes ds-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
body.lab .ds-frame-up { display: grid !important; place-content: center; gap: 2px; font-size: 10.5px !important; font-weight: 700 !important; color: var(--ds-ink-2) !important; white-space: normal; text-align: center; line-height: 1.2; border: 1.5px dashed rgba(255, 246, 230, .2) !important; box-shadow: none !important; }
.ds-frame-up span { font-size: 18px; color: var(--ds-ink); }
.ds-frames-any { display: grid; grid-template-columns: minmax(0, 1fr) 48px auto; align-items: center; gap: 10px; }
.ds-frames-any label { display: grid; gap: 4px; font-size: 12px; color: var(--ds-ink-3); margin: 0; }
.ds-frames-any input[type=range] { width: 100%; accent-color: var(--accent); padding: 0 !important; height: 20px; }
.ds-frames-any canvas { width: 48px; border-radius: 6px; background: #000; }
.ds-frames-note { font-size: 12px; color: var(--ds-ink-3); }
body.lab .ds-ptv-left .post-cover [data-cover-upload] { font-size: 12px; }
.ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.post-cover:has([name=coverMediaId] option[value=""]:checked) [data-cover-clear] { display: none; }
.ds-ptv-past { color: var(--ds-amber, #F2A93B); font-size: 12.5px; font-weight: 600; }
/* Native file pickers look like the app's secondary button everywhere. */
body.lab input[type=file] { font: inherit; font-size: 13px; color: var(--ds-ink-3); max-width: 100%; }
body.lab input[type=file]::file-selector-button { margin-right: 10px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ds-ink); background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: pointer; }
body.lab input[type=file]::file-selector-button:hover { background: var(--ds-glass-3); }
body.lab .ds-ptv-right fieldset { margin: 0; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-ptv-right legend { padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--ds-ink); }
body.lab .ds-ptv-right textarea[name=caption] { min-height: 120px; }
.ds-ptv-when { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-ptv-when .ds-seg { justify-self: start; }
.ds-ptv-when .grid2 { margin: 0; }
.ds-ptv-nownote { font-size: 12.5px; color: var(--ds-ink-2); }
.ds-ptv-more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); width: max-content; }
.ds-ptv-more[open] > summary { margin-bottom: 10px; }
.ds-ptv-more { display: grid; gap: 10px; }
.ds-ptv-right > small { color: var(--ds-ink-4); font-size: 11.5px; }
/* One button: no Save plan, no Cancel (the draft saves itself; × or Esc closes) */
body.lab .ds-postform .actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin: 18px -24px 0; padding: 14px 24px 18px; border-top: 1px solid var(--ds-stroke); background: linear-gradient(180deg, rgba(30, 26, 21, .92), #1C1914); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.lab .ds-postform .actions > [data-close], body.lab .ds-postform .actions > button[type=submit] { display: none !important; }
body.lab .ds-postform .ds-ptv-go { height: 48px; min-width: 240px; padding: 0 24px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 15px !important; font-weight: 800 !important; color: var(--ds-on-accent) !important; background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 28px -10px rgba(255, 196, 60, .7) !important; }
body.lab .ds-postform .ds-ptv-go:disabled { opacity: .5; }
@media (max-width: 860px) { .ds-ptv { grid-template-columns: 1fr; } .ds-frames-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } body.lab .ds-postform .ds-ptv-go { width: 100%; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .ds-frame-wait { animation: none; } }
/* A scheduled, queued or published post: the same dialog, read-only (app.js postForm, post-this-video.js detail()) */
body.lab dialog.pd-dialog { width: min(1000px, 96vw); }
body.lab dialog.pd-dialog #modalForm { padding: 22px 24px 24px; max-height: 92vh; max-height: 92svh; overflow-y: auto; }
body.lab dialog.pd-dialog .modal-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 6px; }
.pd-media video { display: block; width: 100%; max-height: 520px; border-radius: 16px; background: #000; object-fit: contain; }
.pd-novideo { display: grid; place-items: center; aspect-ratio: 9 / 16; margin: 0; padding: 16px; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-3); font-size: 13px; text-align: center; }
.pd-info { display: grid; gap: 16px; min-width: 0; }
.pd-when { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; }
.pd-when b { font-size: 16px; font-weight: 750; color: var(--ds-ink); }
.pd-when small { font-size: 12px; color: var(--ds-ink-3); }
.pd-pill { --c: #7BD89F; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--ds-r-pill); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); color: var(--c); font-size: 12px; font-weight: 750; }
.pd-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pd-pill.pd-posted { --c: #CFC8BC; } .pd-pill.pd-attention { --c: #FF6B81; }
.pd dl { display: grid; gap: 0; margin: 0; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.pd dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.pd dl > div + div { border-top: 1px solid var(--ds-stroke); }
.pd dt { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.pd dd { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 13.5px; color: var(--ds-ink); min-width: 0; }
.pd-caption { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.pd-none { color: var(--ds-ink-4); }
.pd-acct { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pd-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; }
.pd-mark svg { width: 10px; height: 10px; }
body.lab .pd-plan { justify-self: start; min-height: 0 !important; height: auto; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--accent) !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer; }
body.lab .pd-plan:hover { text-decoration: underline; }
.pd-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ds-ink-2); }
body.lab .pd .notice { margin: 0; }
body.lab .pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--ds-stroke); }
body.lab .pd-actions .danger { margin-left: auto; }
/* One row on desktop: Cancel sits at the end of it, not alone on a new line. Phones get a 2-up grid with Cancel full width. */
@media (min-width: 761px) { body.lab .pd-actions { flex-wrap: nowrap; } body.lab .pd-actions > * { flex: 0 0 auto; white-space: nowrap; } }
@media (max-width: 760px) { body.lab .pd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } body.lab .pd-actions > * { width: 100%; min-width: 0; white-space: normal; justify-content: center; text-align: center; } body.lab .pd-actions .danger { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } .pd-media video { max-height: 360px; } .pd dl > div { grid-template-columns: 1fr; gap: 4px; } body.lab .pd-actions .danger { margin-left: 0; } }
/* + New: two clear starting points, each with one line saying what it is for */
body.lab .pl-menu-new { width: 300px; }
body.lab .pl-menu-new .pl-mi { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding-top: 9px !important; padding-bottom: 9px !important; white-space: normal; text-align: left; }
body.lab .pl-menu-new .pl-mi small { margin-left: 0; padding-left: 0; line-height: 1.35; color: var(--ds-ink-3); }

/* =========================================================================
   Editing: journey trackers (team.js, creator view)
   ========================================================================= */
body.lab .tk-board.ds-journeys { display: grid; gap: 22px; grid-template-columns: 1fr !important; overflow: visible; }
.ds-jchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
body.lab .ds-jchip { height: 32px; gap: 7px; }
.ds-jchip small { font-weight: 800; color: var(--ds-ink-3); }
.ds-jchip.on { background: rgba(255, 216, 77, .14); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .5); color: var(--ds-ink); }
.ds-jgroup { display: grid; gap: 10px; }
.ds-jgroup > header { display: flex; align-items: baseline; gap: 10px; padding: 0 2px; }
body.lab .ds-jgroup > header h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ds-ink); }
.ds-jgroup > header small { font-size: 12.5px; color: var(--ds-ink-3); font-weight: 600; }
body.lab .ds-jcard { display: grid; gap: 12px; padding: 16px 18px; border: 0; border-radius: var(--ds-r-lg); }
body.lab .ds-jcard.hot { box-shadow: var(--ds-shadow), inset 0 0 0 1.5px rgba(255, 216, 77, .45); }
body.lab .ds-jcard .ds-jhead { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; color: var(--ds-ink); text-align: left; }
body.lab .ds-jcard .ds-jhead .tk-order { margin: 0; font-size: 12px; }
body.lab .ds-jcard .tk-elapsed { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--ds-r-pill); background: var(--ds-glass-2) !important; color: var(--ds-ink-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-jcard .tk-elapsed.tk-due-soon { background: rgba(255, 216, 77, .12) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .4); }
body.lab .ds-jcard .tk-elapsed.tk-overdue { background: rgba(255, 107, 129, .14) !important; color: var(--ds-down) !important; box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .4); }
body.lab .ds-jhead .h { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; } /* a basis, so on a phone the pills wrap below the title instead of squeezing it */
body.lab .ds-jhead .h b { font-size: 15px; font-weight: 700; }
body.lab .ds-jhead .h small { font-size: 12px; color: var(--ds-ink-3); }
body.lab .ds-jhead:hover .h b { text-decoration: underline; text-underline-offset: 3px; }
/* The tracker: Sent → Editor assigned → Editing → Ready for you → Approved → Scheduled → Posted */
.ds-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ds-track li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ds-ink-4); }
.ds-track li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: rgba(255, 246, 230, .1); z-index: 0; }
.ds-track li:first-child::before { display: none; }
.ds-track li.done::before, .ds-track li.cur::before { background: linear-gradient(90deg, rgba(123, 216, 159, .7), rgba(123, 216, 159, .7)); }
.ds-track li i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #2A251E; box-shadow: inset 0 0 0 2px rgba(255, 246, 230, .16); }
.ds-track li.done { color: var(--ds-ink-3); }
.ds-track li.done i { background: var(--ds-up); box-shadow: none; }
.ds-track li.cur { color: var(--ds-ink); font-weight: 800; }
.ds-track li.cur i { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 216, 77, .2), 0 0 14px rgba(255, 216, 77, .6); }
.ds-jcard.hot .ds-track li.cur i { animation: ds-pulse 1.6s ease-in-out infinite; }
@keyframes ds-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 216, 77, .08), 0 0 18px rgba(255, 216, 77, .7); } }
.ds-jloop { justify-self: start; font-size: 12px; font-weight: 700; color: #FF9F6B; padding: 3px 10px; border-radius: var(--ds-r-pill); background: rgba(255, 159, 107, .1); box-shadow: inset 0 0 0 1px rgba(255, 159, 107, .35); }
.ds-jcount { justify-self: start; font-size: 12px; font-weight: 800; color: var(--ds-up); padding: 3px 10px; border-radius: var(--ds-r-pill); background: rgba(123, 216, 159, .1); }
.ds-jcancel { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
.ds-jnext { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-jnext .tk-progress-note { flex: 1; margin: 0; font-size: 13px; color: var(--ds-ink-2); line-height: 1.45; }
body.lab .ds-jnext .tk-card-cta { flex: none; width: auto; margin: 0; min-height: 0 !important; }
body.lab .ds-jcard .f { font-size: 12px; color: var(--ds-ink-4); }
.ds-jdone > summary { cursor: pointer; width: max-content; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); padding: 4px 2px; }
.ds-jdone[open] > summary { margin-bottom: 10px; }
.ds-jdone { display: grid; gap: 10px; }
/* Edit it myself: clip picker */
.ds-selfpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 50vh; overflow-y: auto; padding: 2px; }
body.lab .ds-selfclip { position: relative; display: grid; gap: 6px; margin: 0; padding: 6px; border-radius: 12px; background: rgba(255, 246, 230, .04); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: pointer; }
.ds-selfclip input { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ds-selfclip:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.ds-selfclip .media-preview-frame { aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #000; }
.ds-selfclip .media-preview-frame video, .ds-selfclip .media-preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.ds-selfclip b { font-size: 11.5px; font-weight: 600; color: var(--ds-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .ds-track li span { display: none; }
  .ds-track li.cur span { display: block; position: absolute; top: 20px; white-space: nowrap; }
  .ds-track { padding-bottom: 18px; }
  .ds-jnext { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ds-jcard.hot .ds-track li.cur i { animation: none; } }

/* =========================================================================
   Review (team.js reviewPage + library.js reviews / brandPage)
   ========================================================================= */
.ds-review { display: grid; gap: 18px; }
.ds-review > .ds-btn { justify-self: start; }
.ds-review .lab-head { margin: 0; }
.ds-review-sec { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
.ds-review-sec > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.lab .ds-review-sec > header h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ds-ink); display: flex; align-items: center; gap: 8px; }
.ds-review-sec > header h2 small { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 11px; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--ds-on-accent); }
.ds-review-sec > header p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.ds-review-none { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
/* From your editor: the existing cut cards, as a responsive grid */
body.lab .ds-fromeditor .tk-board.tk-one { display: block; overflow: visible; }
body.lab .ds-fromeditor .lab-bcol { min-height: 0; padding: 0; border: 0; background: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
body.lab .ds-fromeditor .lab-bcol > .bh { display: none; }
body.lab .ds-fromeditor .lab-bcol > .lab-muted { grid-column: 1 / -1; }
body.lab .ds-fromeditor .tk-card:not(.ds-jcard) { padding: 16px; border: 0; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .4); }
body.lab .ds-fromeditor .tk-card:not(.ds-jcard) .tk-card-cta { border-radius: var(--ds-r-pill) !important; }
/* With brands */
.ds-brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
body.lab .ds-brandcard { display: grid; gap: 12px; padding: 16px; border-radius: 16px; }
body.lab .ds-brandlink { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--ds-ink); text-decoration: none; }
.ds-brandlink > span:first-child { display: grid; gap: 3px; min-width: 0; }
.ds-brandlink b { font-size: 14.5px; }
.ds-brandlink small { font-size: 12px; color: var(--ds-ink-3); }
body.lab .ds-brandlink:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ds-pill.ds-attn { --c: var(--ds-down); } .ds-pill.ds-sched { --c: var(--ds-up); }
.ds-brandacts, .ds-brandbar { display: flex; gap: 8px; flex-wrap: wrap; }
body.lab .ds-review .lib-btn { height: 32px; min-height: 0 !important; padding: 0 13px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-size: 13px !important; font-weight: 700 !important; display: inline-flex; align-items: center; text-decoration: none; }
body.lab .ds-review .lib-btn:hover { background: rgba(255, 246, 230, .18) !important; }
/* A brand review link's page: feedback per video */
.ds-brandpage .lab-head { align-items: flex-start; }
.ds-fbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
body.lab .ds-fbcard { display: grid; gap: 10px; padding: 10px; border-radius: 18px; }
.ds-fbcard .media-preview-frame { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.ds-fbcard .media-preview-frame video { width: 100%; height: 100%; object-fit: contain; }
.ds-fbbody { display: grid; gap: 6px; padding: 0 4px 4px; }
.ds-fbbody strong { font-size: 13.5px; color: var(--ds-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-fbbody .ds-pill { justify-self: start; }
.ds-fbbody small { font-size: 12px; color: var(--ds-ink-3); }
.ds-fbbody p { margin: 0; font-size: 13px; color: var(--ds-ink-2); line-height: 1.45; }
/* Library keeps creating links; the list itself moved to Review */
body.lab .lib-reviews-moved { padding: 12px 16px; border-radius: 14px; }
body.lab .lib-reviews-moved p { margin: 0; font-size: 13px; }

/* =========================================================================
   Mix and match variations (mixmatch.js recipe screen + results)
   ========================================================================= */
.ds-mm { display: grid; gap: 16px; }
.ds-mm .lab-head { margin: 0; }
body.lab .ds-mm h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ds-ink); }
/* Left: clips by type (the existing pickers, compact) */
/* Middle: the recipe */
/* Right: count, preview, combos, one button */
/* Results */
.var-output-card { position: relative; }
.ds-mm-st { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 3px 9px; border-radius: var(--ds-r-pill); font-size: 11px; font-weight: 800; color: var(--ds-ink); background: rgba(20, 16, 12, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-mm-st-ready { color: var(--ds-up); } .ds-mm-st-posted { color: #CFC8BC; } .ds-mm-st-sched { color: var(--ds-up); } .ds-mm-st-making { color: var(--accent); } .ds-mm-st-fail { color: var(--ds-down); } .ds-mm-st-draft { color: var(--ds-ink-3); }
/* Mix and match: keep Hook → Demo → Ending on one row; tidy preview and speed pills */
body.lab .var-output-card > .var-missing { display: grid !important; place-items: center; color: var(--ds-ink-4); font-size: 12px !important; background: radial-gradient(120% 70% at 50% 30%, rgba(255, 216, 77, .08), transparent 60%), linear-gradient(180deg, #1c1813, #0f0d0a) !important; }

/* =========================================================================
   Library (library.js): campaign folders, video tiles with a player, selection bar
   ========================================================================= */
.ds-lib { display: grid; gap: 18px; }
.ds-lib .lab-head { margin: 0; }
body.lab .ds-lib .ds-llayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
body.lab .ds-lib .ds-lfolders { position: sticky; top: 12px; display: grid; gap: 2px; padding: 10px; border-radius: var(--ds-r-lg); }
body.lab .ds-lib .ds-lfolders > .eyebrow { margin: 6px 10px 8px; }
body.lab .ds-lib .lib-folder { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 0 !important; height: 38px; padding: 0 12px !important; border: 0 !important; border-radius: 12px !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-2) !important; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
body.lab .ds-lib .lib-folder:hover { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; }
body.lab .ds-lib .lib-folder.active { background: rgba(255, 216, 77, .12) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3) !important; }
body.lab .ds-lib .lib-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab .ds-lib .lib-folder b { font-size: 12px; font-weight: 700; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.ds-lmain { display: grid; gap: 12px; min-width: 0; }
body.lab .ds-lib .ds-lfilters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
body.lab .ds-lib .ds-lsearch { flex: 1 1 220px; margin: 0; }
body.lab .ds-lib .ds-lsearch input { width: 100%; height: 38px; min-height: 0; margin: 0; padding: 0 14px !important; border-radius: var(--ds-r-pill) !important; }
body.lab .ds-lib .ds-seg button.on { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12) !important; }
body.lab .ds-lib .lib-btn { display: inline-flex; align-items: center; height: 34px; min-height: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
body.lab .ds-lib .lib-btn:hover:not(:disabled) { background: var(--ds-glass-3) !important; }
body.lab .ds-lib .lib-btn.lib-primary { background: linear-gradient(180deg, #FFE27A, var(--accent)) !important; color: #14120E !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -8px rgba(255, 216, 77, .6) !important; }
body.lab .ds-lib .lib-btn:disabled { opacity: .4; cursor: default; }
/* Selection bar: sticky, appears with a selection */
body.lab .ds-lib .ds-lsel { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 54px; margin: 0; padding: 9px 12px 9px 16px; border: 0; border-radius: 18px; background: rgba(28, 24, 19, .82); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 14px 30px -18px rgba(0, 0, 0, .7); }
.ds-lsel > b { font-size: 14px; color: var(--ds-ink); }
.ds-lsel-gap { flex: 1; }
.ds-lsel-hint { font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-lsel small { width: 100%; font-size: 12px; color: var(--ds-warn, #FFB86B); }
/* Video tiles */
body.lab .ds-lib .ds-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; padding: 0; border: 0; border-radius: 0; overflow: visible; background: none; }
body.lab .ds-lib .lib-file.ds-lfile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: none; min-width: 0; }
.ds-lib .ds-lframe { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #3a2a1c, #1a140e); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 246, 230, .1); transition: box-shadow .2s, transform .2s; }
.ds-lib .ds-lfile.picked .ds-lframe { box-shadow: 0 0 0 2px var(--accent), 0 16px 34px -18px rgba(0, 0, 0, .8); }
.ds-lib .ds-lframe > video, .ds-lib .ds-lframe > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ds-lib .ds-lframe > .media-no-preview, .ds-lib .ds-lframe > span:first-child:not(.shade) { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ds-ink-3); font-size: 13px; }
.ds-lib .ds-lframe .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 26%, transparent 58%, rgba(0, 0, 0, .72)); }
.ds-lib .ds-lframe.ds-playing .shade, .ds-lib .ds-lframe.ds-playing .ds-vbottom, .ds-lib .ds-lframe.ds-playing .ds-play, .ds-lib .ds-lframe.ds-playing .ds-lcheck { display: none; }
.ds-lib .ds-lframe.ds-playing > video { pointer-events: auto; z-index: 2; object-fit: contain; background: #000; }
.ds-lib .ds-lframe.ds-playing .ds-vtop { z-index: 4; justify-content: flex-end; }
.ds-lib .ds-lacts-top { opacity: 1; }
/* Select checkbox, top left */
body.lab .ds-lcheck { position: relative; width: 26px; height: 26px; margin: 0; padding: 0; cursor: pointer; }
body.lab .ds-lcheck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ds-lcheck span { position: absolute; inset: 2px; border-radius: 8px; background: rgba(20, 16, 12, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 230, .55); transition: background .15s; pointer-events: none; }
.ds-lcheck input:checked + span { background: var(--accent); box-shadow: none; }
.ds-lcheck input:checked + span::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #14120E; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.ds-lcheck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-lstage { padding: 3px 8px; border-radius: var(--ds-r-pill); font-size: 11px; font-weight: 800; letter-spacing: .01em; background: rgba(20, 16, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ds-lstage-done { color: var(--ds-up); box-shadow: inset 0 0 0 1px rgba(123, 216, 159, .35); }
.ds-lstage-raw { color: #CFC8BC; box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .2); }
.ds-lstage-old { color: #FFB86B; box-shadow: inset 0 0 0 1px rgba(255, 184, 107, .4); }
.ds-lstages { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
/* The brand's decision from a review link, next to the Footage / Finished label. */
.ds-lstage-brandok { color: var(--ds-up); box-shadow: inset 0 0 0 1px rgba(123, 216, 159, .35); }
.ds-lstage-brandfix { color: #FFB86B; box-shadow: inset 0 0 0 1px rgba(255, 184, 107, .4); }
/* Name, campaign and Schedule below */
body.lab .ds-lib .ds-lmeta { display: grid; gap: 3px; min-width: 0; padding: 0 2px; }
.ds-lmeta strong { font-size: 13.5px; font-weight: 700; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-lmeta small { font-size: 12px; color: var(--ds-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-lmeta .ds-lwarn { color: #FFB86B; white-space: normal; }
body.lab .ds-lib .ds-lmeta .lib-file-actions { display: flex; gap: 6px; margin-top: 6px; }
body.lab .ds-lib .ds-lmeta .lib-file-actions small { white-space: normal; }
body.lab .ds-lib .ds-lmeta .lib-btn { height: 32px; flex: 1; justify-content: center; }
.ds-lib .ds-vmenu { top: 44px; }
body.lab .ds-vmenu [role=menuitem]:disabled { opacity: .4; cursor: default; }
body.lab .ds-lib .lib-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--ds-ink-3); border-radius: var(--ds-r-lg); background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-lib .lib-reviews-moved { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-lconfirm { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(255, 216, 77, .08); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3); font-weight: 600; }
body.lab .ds-lconfirm input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (hover: hover) { .ds-lib .ds-lfile:hover .ds-lframe { transform: translateY(-2px); } }
@media (max-width: 850px) {
  body.lab .ds-lib .ds-llayout { grid-template-columns: 1fr; }
  body.lab .ds-lib .ds-lfolders { position: static; display: flex; overflow-x: auto; padding: 6px; }
  body.lab .ds-lib .ds-lfolders > .eyebrow { display: none; }
  body.lab .ds-lib .lib-folder { flex: none; gap: 10px; }
}
@media (max-width: 520px) { body.lab .ds-lib .ds-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } body.lab .ds-lib .ds-lsel .lib-btn { flex: 1 1 auto; justify-content: center; } }
body.lab .ds-lib .lib-file.ds-lfile { border: 0 !important; border-radius: 0; box-shadow: none; }
/* Review › From your editor: the same tracker cards as Editing, only the ones waiting on you */
body.lab .ds-fromeditor .ds-revlist { display: grid; gap: 12px; overflow: visible; }
body.lab .ds-fromeditor .ds-revlist .ds-jcard { background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); }
body.lab .ds-revmore { justify-self: start; display: inline-flex; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); text-decoration: none; }
body.lab .ds-revmore:hover { color: var(--ds-ink); }
.ds-fbacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ds-fbacts:empty { display: none; }
body.lab .ds-fbacts .lib-btn { flex: 1; justify-content: center; }
body.lab .ds-brandcard .ds-brandlink { flex-wrap: wrap; }
body.lab .ds-brandcard .ds-brandlink > span:first-child { flex: 1 1 200px; min-width: 0; }
body.lab .ds-fbgrid { align-items: start; }
body.lab .ds-fbcard { align-content: start; }

/* =========================================================================
   Earnings › Payments (lab-pages.js + creator-payments.js) and Creator summary (summary.js)
   ========================================================================= */
.ds-earn, .ds-esum { display: grid; gap: 16px; }
.ds-earn .lab-head, .ds-esum .lab-head { margin: 0; }
/* Estimate hero */
body.lab .ds-earn .lab-payhero { margin: 0; padding: 24px 26px; gap: 36px; border: 0; border-radius: var(--ds-r-xl, 28px); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-earn .lab-payhero > div > span { font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-earn .lab-payhero > div:first-child > b { font-size: clamp(40px, 5.6vw, 80px); white-space: nowrap; display: inline-block; padding-right: 6px; }
body.lab .ds-earn .lab-payhero .split { height: 44px; gap: 4px; border-radius: 14px; }
body.lab .ds-earn .lab-payhero .split i:first-child { background: rgba(255, 246, 230, .1) !important; color: var(--ds-ink-2) !important; }
body.lab .ds-earn .lab-payhero .two { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
body.lab .ds-earn .lab-payhero .two span { padding: 12px 14px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-earn .lab-payhero .two b { font-size: 24px; letter-spacing: -.03em; }
body.lab .ds-earn .lab-payhero .two em { font-style: normal; font-size: 12px; color: var(--ds-ink-4); }
/* Payments received: its own section, right under the estimate */
body.lab .ds-ereceived { display: grid; gap: 16px; margin: 0; padding: 22px 24px; border: 0; border-radius: var(--ds-r-xl, 28px); background: linear-gradient(180deg, rgba(123, 216, 159, .07), var(--ds-glass-1) 55%); box-shadow: var(--ds-shadow), inset 0 0 0 1px rgba(123, 216, 159, .22); }
body.lab .ds-ereceived .cp-head { align-items: center; }
body.lab .ds-ereceived h2 { margin: 0; font-size: 18px; color: var(--ds-ink); }
body.lab .ds-ereceived .cp-head p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.cp-table { border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-ereceived .cp-row { border-top: 1px solid rgba(255, 246, 230, .06); font-variant-numeric: tabular-nums; }
body.lab .ds-ereceived .cp-sum { grid-template-columns: minmax(0, 1fr) 120px 120px 150px; padding: 12px 16px; font-size: 14px; color: var(--ds-ink-2); }
body.lab .ds-ereceived .cp-sum > b, body.lab .ds-ereceived .cp-sum > span:nth-child(n+2) { text-align: right; }
body.lab .ds-ereceived .cp-sum.th { opacity: 1; border-top: 0; padding: 10px 16px; font-size: 12px; font-weight: 700; color: var(--ds-ink-4); background: rgba(0, 0, 0, .18); }
body.lab .ds-ereceived .cp-sum > span:first-child { display: grid; gap: 6px; }
body.lab .ds-ereceived .cp-sum > span:first-child b { color: var(--ds-ink); }
.cp-bar { display: block; height: 4px; max-width: 220px; border-radius: 99px; background: rgba(255, 246, 230, .08); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ds-up); }
body.lab .ds-ereceived .cp-owed { color: #FFB86B; }
body.lab .ds-ereceived .cp-paid { color: var(--ds-up); }
.cp-history > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); }
.cp-history > summary:hover { color: var(--ds-ink); }
body.lab .ds-ereceived .cp-list .cp-row { grid-template-columns: 130px minmax(0, 1fr) auto auto; padding: 10px 4px; font-size: 13.5px; }
body.lab .ds-ereceived .cp-list .cp-row > b { font-variant-numeric: tabular-nums; color: var(--ds-ink); }
body.lab .ds-ereceived .lab-none { padding: 10px 0; }
body.lab #dialog .cp-form { grid-template-columns: 1fr 1fr; margin: 14px 0 4px; }
/* Estimates by video */
body.lab .ds-earn .lab-ledger { margin: 0; padding: 8px 22px 14px; border: 0; border-radius: var(--ds-r-xl, 28px); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
.ds-ehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
body.lab .ds-ehead h2 { margin: 0; font-size: 18px; color: var(--ds-ink); }
body.lab .ds-ehead p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.ds-ehead small { font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); }
body.lab .ds-earn .lab-prow2 { grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1.7fr) 110px 100px; padding: 11px 10px; border-bottom: 0; border-radius: 12px; }
body.lab .ds-earn .lab-prow2:not(.th):hover { background: rgba(255, 246, 230, .035); }
body.lab .ds-earn .lab-prow2.th { position: sticky; top: 0; z-index: 2; padding: 10px; border-radius: 0; background: rgba(24, 21, 17, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ds-stroke); font-size: 12px; font-weight: 700; color: var(--ds-ink-4); }
body.lab .ds-earn .lab-prow2 .inc { text-align: right; font-size: 15px; color: var(--ds-ink); }
body.lab .ds-earn .lab-prow2 .run { text-align: right; font-size: 13px; color: var(--ds-ink-4); }
body.lab .ds-earn .lab-prow2 .f i { padding: 3px 9px; font-size: 12px; }
body.lab .ds-earn .lab-prow2 .f i.b { background: rgba(255, 246, 230, .07); color: var(--ds-ink-2); }
body.lab .ds-earn .lab-prow2 .f i.c { background: rgba(123, 216, 159, .12); color: var(--ds-up); }
body.lab .ds-earn .lab-prow2 .f em { font-style: normal; color: var(--ds-ink-4); }
.ds-emonth { border-top: 1px solid var(--ds-stroke); }
.ds-emonth:first-of-type { border-top: 0; }
body.lab .ds-emonth > summary.lab-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 10px 10px; cursor: pointer; list-style: none; }
.ds-emonth > summary::-webkit-details-marker { display: none; }
body.lab .ds-emonth > summary.lab-mhead b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ds-ink); }
body.lab .ds-emonth > summary.lab-mhead b::before { content: ''; width: 7px; height: 7px; border: solid var(--ds-ink-3); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
body.lab .ds-emonth[open] > summary.lab-mhead b::before { transform: rotate(45deg); }
body.lab .ds-emonth > summary.lab-mhead > span { font-size: 14px; font-weight: 800; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
body.lab .ds-emonth > summary.lab-mhead em { font-style: normal; font-weight: 600; color: var(--ds-ink-3); }
/* Creator summary */
body.lab .ds-esum .sum-range { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-esum .sum-range label { margin: 0; font-size: 12px; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-esum .sum-range input, body.lab .ds-esum .sum-range select { height: 38px; min-height: 0; margin-top: 4px; }
body.lab .ds-esum .sum-range .ds-btn { height: 38px; }
body.lab .ds-esum .sum-kpis { margin: 0; gap: 14px; }
body.lab .ds-esum .lab-kpi, body.lab .ds-esum .sum-campaign, body.lab .ds-esum .sum-history { border: 0; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-esum .lab-kpi > span { font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-esum .lab-kpi > b { font-size: 32px; letter-spacing: -.035em; }
body.lab .ds-esum .sum-campaigns { gap: 14px; }
body.lab .ds-esum .sum-campaign .lab-ghost, body.lab .ds-esum .sum-history .lab-ghost { height: 32px; min-height: 0 !important; padding: 0 13px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-size: 12.5px !important; font-weight: 700; }
@media (max-width: 760px) {
  body.lab .ds-ereceived .cp-kpis { grid-template-columns: 1fr; }
  body.lab .ds-ereceived .cp-sum { grid-template-columns: minmax(0, 1fr) auto; }
  body.lab .ds-ereceived .cp-sum > span:nth-child(2), body.lab .ds-ereceived .cp-sum > span:nth-child(3) { display: none; }
  body.lab .ds-earn .lab-prow2 { grid-template-columns: 52px minmax(0, 1fr) auto; }
  body.lab .ds-earn .lab-prow2 .f, body.lab .ds-earn .lab-prow2 .run, body.lab .ds-earn .lab-prow2.th > span:nth-child(3), body.lab .ds-earn .lab-prow2.th > span:nth-child(5) { display: none; }
  body.lab .ds-earn .lab-payhero { grid-template-columns: 1fr; gap: 20px; }
  body.lab #dialog .cp-form { grid-template-columns: 1fr; }
  body.lab .ds-ereceived .cp-list .cp-row { grid-template-columns: minmax(0, 1fr) auto; }
}
body.lab #dialog .cp-form { align-items: start; }

/* =========================================================================
   Earnings › Views (performance.js): two dropdowns, three numbers, one chart, top videos
   ========================================================================= */
.ds-views { gap: 16px; }
body.lab .ds-views .ds-vctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.lab .ds-views .ds-vctl label { min-width: 0; flex: none; margin: 0; }
body.lab .ds-views .ds-vctl select { height: 40px; min-height: 0; min-width: 150px; margin: 0; padding: 0 34px 0 14px !important; border-radius: var(--ds-r-pill) !important; font-weight: 700; }
.ds-vsumhead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); }
.ds-vsumhead .ds-bubble { width: 340px; max-width: calc(100vw - 48px); }
body.lab .ds-vsumhead .perf-coverage { display: block; padding: 0; border: 0; background: none; color: inherit; font-size: 12.5px; line-height: 1.55; }
body.lab .ds-vsumhead .perf-coverage strong { color: var(--ds-ink); }
body.lab .ds-vwarn .ds-tip { background: rgba(255, 184, 107, .2) !important; color: #FFB86B !important; }
/* Three numbers */
body.lab .ds-views .ds-vkpis { gap: 14px; }
body.lab .ds-views .ds-vkpi { gap: 6px; padding: 18px 20px; border-radius: var(--ds-r-lg); align-content: start; }
body.lab .ds-views .ds-vkpi > span { font-size: 13px; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-views .ds-vkpi > b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ds-ink); }
body.lab .ds-views .ds-vkpi > small { color: var(--ds-ink-4); }
body.lab .ds-views .ds-vkpi .ds-vcmp { justify-self: start; padding: 3px 9px; border-radius: var(--ds-r-pill); font-size: 12px; font-weight: 700; color: var(--ds-ink-3); background: rgba(255, 246, 230, .06); }
body.lab .ds-views .ds-vkpi .ds-vcmp.up { color: var(--ds-up); background: rgba(123, 216, 159, .12); }
body.lab .ds-views .ds-vkpi .ds-vcmp.down { color: var(--ds-down); background: rgba(255, 107, 129, .12); }
body.lab .ds-vbest .ds-vbest-name { display: block; padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ds-ink) !important; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-align: left; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.lab .ds-vbest .ds-vbest-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ds-vbest .ds-up { color: var(--ds-up); }
/* Chart */
.ds-vchart, .ds-vtops { padding: 18px 20px; border-radius: var(--ds-r-lg); display: grid; gap: 12px; min-width: 0; }
.ds-vchart > header, .ds-vtops > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.lab .ds-vchart h2, body.lab .ds-vtops h2 { margin: 0; font-size: 17px; color: var(--ds-ink); }
body.lab .ds-vtops header p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.ds-vlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ds-ink-2); }
.ds-vlegend span { display: inline-flex; align-items: center; gap: 6px; }
.ds-vlegend i { width: 9px; height: 9px; border-radius: 3px; }
.ds-vlegend b { color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-vchart > header p { margin: 4px 0 0; font-size: 12.5px; color: var(--ds-ink-3); }
/* The plot fills the card: a y-axis column, then a stretchy area; text is HTML so it keeps the UI font. */
.ds-vplot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 10px; row-gap: 8px; min-width: 0; font-family: 'Rethink Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ds-vy { position: relative; min-width: 28px; font-size: 11.5px; font-weight: 500; color: var(--ds-ink-3); text-align: right; }
.ds-vy span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; line-height: 1; }
.ds-varea { position: relative; min-width: 0; cursor: crosshair; touch-action: pan-y; }
.ds-varea svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ds-varea svg line { stroke: rgba(255, 246, 230, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ds-varea svg line.z { stroke: rgba(255, 246, 230, .2); }
.ds-varea svg path { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Glow: a wider copy of the lines, blurred as one layer so the stretched plot never smears it sideways. */
.ds-varea svg.ds-vglow { filter: blur(3px); opacity: .28; }
.ds-varea svg.ds-vglow path { stroke-width: 6; }
.ds-vdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ds-glass-solid); pointer-events: none; }
.ds-vxh { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 246, 230, .3); pointer-events: none; }
.ds-vxh[hidden] { display: none; }
.ds-vx { grid-column: 2; position: relative; height: 16px; font-size: 11.5px; font-weight: 500; color: var(--ds-ink-3); }
.ds-vx span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ds-vx span.first { transform: none; }
.ds-vx span.last { transform: translateX(-100%); }
.ds-vtip { position: absolute; top: 0; z-index: 2; display: grid; gap: 5px; min-width: 170px; max-width: 250px; padding: 10px 12px; border-radius: 12px; background: var(--ds-glass-solid); box-shadow: inset 0 0 0 1px var(--ds-stroke), var(--ds-shadow); font-size: 12.5px; color: var(--ds-ink-2); pointer-events: none; }
.ds-vtip[hidden] { display: none; }
.ds-vtip b { color: var(--ds-ink); font-size: 12px; font-weight: 700; }
.ds-vtip span { display: flex; align-items: center; gap: 7px; }
.ds-vtip i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ds-vtip em { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 700; color: var(--ds-ink); }
@media (max-width: 600px) { .ds-vchart { padding: 16px 14px; } .ds-vplot { grid-template-rows: 150px auto; } }
/* Top videos */
.ds-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ds-vrow { border-radius: 14px; }
.ds-vrow.open { background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-vrow > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) 130px 120px; align-items: center; gap: 12px; width: 100%; min-height: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 14px !important; background: none !important; box-shadow: none !important; color: var(--ds-ink) !important; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
body.lab .ds-vrow > button:hover { background: rgba(255, 246, 230, .04) !important; }
.ds-vrow .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 246, 230, .06); font-size: 12px; font-weight: 800; color: var(--ds-ink-3); }
.ds-vrow:nth-child(1) .n { background: rgba(255, 216, 77, .18); color: var(--accent); }
.ds-vrow .t { display: grid; min-width: 0; }
.ds-vrow .t b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-vrow .t small, .ds-vrow .v small, .ds-vrow .p small { font-size: 11.5px; font-weight: 500; color: var(--ds-ink-4); }
.ds-vrow .v, .ds-vrow .p { display: grid; text-align: right; font-size: 15px; font-weight: 800; }
.ds-vrow .p { color: var(--ds-up); }
.ds-vdetail { display: grid; gap: 10px; padding: 4px 14px 14px; }
.ds-vdetail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ds-ink-3); }
.ds-vdetail-head b { color: var(--ds-ink); }
body.lab .ds-views .perf-chart path { stroke: var(--accent); }
body.lab .ds-views .ds-seg button.on { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; }
body.lab .ds-vtops > .ds-btn { justify-self: start; }
/* Raw measurements, behind a link */
.perf-raw > summary { cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); }
.perf-raw > summary:hover { color: var(--ds-ink); }
body.lab .perf-raw[open] { padding: 16px 20px; border-radius: var(--ds-r-lg); background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-views .perf-empty { padding: 26px; border-radius: var(--ds-r-lg); }
body.lab .ds-views .perf-error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  body.lab .ds-views .ds-vkpis { grid-template-columns: 1fr; }
  body.lab .ds-vrow > button { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .ds-vrow .p { display: none; }
  body.lab .ds-views .lab-head .lab-pills, body.lab .ds-views .ds-vctl, body.lab .ds-views .ds-vctl label, body.lab .ds-views .ds-vctl select { width: 100%; }
}
.ds-vrow .p.zero { color: var(--ds-ink-3); }
.ds-vsumhead .ds-tipwrap .ds-bubble, .ds-vsumhead .ds-tipwrap.ds-end .ds-bubble { top: calc(100% + 10px); bottom: auto; left: -10px; right: auto; transform-origin: top left; }
body.lab .ds-views .ds-vdetail .perf-chart svg { max-height: 200px; }
.ds-vsumhead { position: relative; }
@media (max-width: 760px) { .ds-vsumhead .ds-tipwrap { position: static; } .ds-vsumhead .ds-tipwrap .ds-bubble, .ds-vsumhead .ds-tipwrap.ds-end .ds-bubble { left: 0; right: 0; width: auto; max-width: none; } }

/* =========================================================================
   Settings › Connected accounts (connections.js) and the Settings tab strip
   ========================================================================= */
.ds-setnav { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 14px; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-setnav a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--ds-r-pill); font-size: 13px; font-weight: 700; color: var(--ds-ink-3); text-decoration: none; }
body.lab .ds-setnav a:hover { color: var(--ds-ink); }
body.lab .ds-setnav a[aria-current=page] { background: var(--ds-glass-3); color: var(--ds-ink); }
.ds-conns { display: grid; gap: 16px; }
.ds-conns .ds-setnav { margin: 0; justify-self: start; }
.ds-conns .lab-head { margin: 0; }
.ds-conn-list { display: grid; gap: 10px; }
.ds-conn { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--ds-r-lg); }
.ds-conn.warn { box-shadow: var(--ds-shadow), inset 0 0 0 1px rgba(255, 184, 107, .35); }
.ds-conn-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-conn-id > span:last-child { display: grid; min-width: 0; }
.ds-conn-id b { font-size: 15px; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-conn-id small { font-size: 12.5px; color: var(--ds-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-conn-plat { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #fff; background: #3A352F; }
.ds-plat-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); }
.ds-plat-tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.ds-plat-youtube { background: #E62117; }
.ds-plat-facebook { background: #1877F2; }
.ds-plat-linkedin { background: #0A66C2; }
.ds-conn-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ds-conn-status > div { display: grid; gap: 3px; }
.ds-conn-status dt { font-size: 11.5px; font-weight: 700; color: var(--ds-ink-4); }
.ds-conn-status dd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); }
.ds-conn-status dd i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 11px; background: rgba(255, 246, 230, .08); }
.ds-conn-status .ok dd { color: var(--ds-up); } .ds-conn-status .ok dd i { background: rgba(123, 216, 159, .16); }
.ds-conn-status .bad dd { color: #FFB86B; } .ds-conn-status .bad dd i { background: rgba(255, 184, 107, .16); }
.ds-conn-status .off dd, .ds-conn-status .unknown dd, .ds-conn-status .wait dd { color: var(--ds-ink-3); }
.ds-conn-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body.lab .ds-conn-acts .ds-conn-x { color: var(--ds-ink-3) !important; }
body.lab .ds-conn-acts .ds-conn-x:hover { color: var(--ds-down) !important; }
.ds-conn-empty { padding: 26px; border-radius: var(--ds-r-lg); display: grid; gap: 8px; justify-items: start; }
body.lab .ds-conn-empty h2 { margin: 0; font-size: 18px; }
body.lab .ds-conn-empty p { margin: 0; color: var(--ds-ink-3); font-size: 13.5px; }
.ds-conn-note { margin: 0; font-size: 12.5px; color: var(--ds-ink-4); max-width: 760px; }
@media (max-width: 900px) { .ds-conn { grid-template-columns: 1fr; gap: 12px; } .ds-conn-acts { justify-content: flex-start; } }
.ds-conn { grid-template-columns: minmax(220px, 1.1fr) minmax(300px, 1fr) minmax(260px, auto); } @media (max-width: 900px) { .ds-conn { grid-template-columns: 1fr; } }

/* =========================================================================
   Guide — "Your setup" checklist, How it works, How do I…? (guide.js); one-time tips; info lines
   ========================================================================= */
.gd { display: grid; gap: 16px; }
.gd .lab-head { margin: 0; }
.gd-guest { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.gd-main { display: grid; gap: 16px; min-width: 0; }
.gd-side { position: sticky; top: 12px; display: grid; gap: 16px; }
.gd-card { display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--ds-r-xl, 28px); }
.gd-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.lab .gd-card h2 { margin: 0; font-size: 18px; color: var(--ds-ink); }
body.lab .gd-card header p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.gd-count { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.gd-bar { height: 8px; border-radius: 99px; background: rgba(255, 246, 230, .08); overflow: hidden; }
.gd-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #7BD89F); transition: width .4s; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gd-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 246, 230, .03); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.gd-step.next { background: rgba(255, 216, 77, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .35); }
.gd-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 246, 230, .25); font-size: 13px; font-weight: 800; color: #14120E; }
.gd-step.next .gd-mark { box-shadow: inset 0 0 0 2px var(--accent); }
.gd-step.done .gd-mark { background: var(--ds-up); box-shadow: none; }
.gd-t { display: grid; gap: 2px; min-width: 0; }
.gd-t b { font-size: 14.5px; color: var(--ds-ink); }
.gd-t b small { margin-left: 6px; padding: 1px 7px; border-radius: var(--ds-r-pill); font-size: 10.5px; font-weight: 800; color: var(--ds-ink-3); background: rgba(255, 246, 230, .08); vertical-align: 1px; }
.gd-t > small { font-size: 12.5px; color: var(--ds-ink-3); }
.gd-step.done .gd-t b { color: var(--ds-ink-2); }
.gd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gd-done > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); padding: 2px 0 8px; }
.gd-done > summary:hover { color: var(--ds-ink); }
/* How it works */
.gd-how { display: grid; gap: 12px; }
body.lab .gd-how > h2 { margin: 0; font-size: 18px; color: var(--ds-ink); }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-sec { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--ds-r-lg); }
.gd-sec > header { display: flex; align-items: center; gap: 10px; }
.gd-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 15px; font-weight: 800; color: #14120E; background: linear-gradient(180deg, #FFE27A, var(--accent)); }
body.lab .gd-sec h3 { margin: 0; font-size: 16px; color: var(--ds-ink); }
body.lab .gd-sec > p { margin: 0; font-size: 13px; color: var(--ds-ink-2); }
body.lab .gd-sec > .ds-btn { justify-self: start; }
.gd-faqs { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--ds-stroke); }
.gd-faq > summary { cursor: pointer; padding: 8px 2px; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); list-style: none; display: flex; gap: 8px; }
.gd-faq > summary::-webkit-details-marker { display: none; }
.gd-faq > summary::before { content: '+'; flex: none; width: 14px; color: var(--ds-ink-4); }
.gd-faq[open] > summary::before { content: '–'; }
.gd-faq > summary:hover { color: var(--ds-ink); }
body.lab .gd-faq > p { margin: 0 0 8px 22px; font-size: 13px; color: var(--ds-ink-3); line-height: 1.5; }
body.lab .gd-faq > .ds-btn { margin: 0 0 10px 22px; }
/* How do I…? */
body.lab .gd-q input { width: 100%; height: 44px; min-height: 0; margin: 0; padding: 0 16px !important; border-radius: var(--ds-r-pill) !important; font-size: 14px; }
.gd-hits { display: grid; gap: 2px; }
.gd-hits:empty { display: none; }
.gd-none { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
.gd-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ds-stroke); font-size: 13px; color: var(--ds-ink-3); }
/* Home: the compact checklist inside Your tasks */
.gd-compact { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ds-stroke); }
.gd-chead { display: flex; align-items: center; gap: 10px; }
.gd-chead .ds-setup-eyebrow { flex: 1; }
body.lab .gd-chead a { font-size: 12.5px; font-weight: 700; color: var(--ds-ink-2); text-decoration: none; }
body.lab .gd-chead a:hover { color: var(--ds-ink); }
/* One-time tips */
.gd-tip { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 216, 77, .07); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .28); }
.gd-tip > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.gd-tip b { font-size: 13.5px; color: var(--ds-ink); }
.gd-tip small { font-size: 12.5px; color: var(--ds-ink-2); line-height: 1.45; }
.gd-tip-ic { font-size: 18px; }
/* A long warning becomes one line with an info icon */
body.lab .ds-infoline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-infoline .ds-bubble { width: 320px; }
body.lab .ds-infoline .lab-link { font-size: 13px; }
/* My campaigns: empty state */
.ds-cempty { margin: 0; padding: 14px 16px; border-radius: 16px; font-size: 13.5px; color: var(--ds-ink-2); background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-cempty b { color: var(--ds-ink); }
@media (max-width: 1100px) { .gd-layout { grid-template-columns: 1fr; } .gd-side { position: static; } }
@media (max-width: 720px) { .gd-grid { grid-template-columns: 1fr; } .gd-step { grid-template-columns: 26px minmax(0, 1fr); } .gd-acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* =========================================================================
   Consistency layer: the older shared building blocks (lab-card, lab-btn, lab-ghost, tab bars, inner boxes)
   drawn with the design system everywhere, so every page reads as one app. Markup and behaviour are unchanged.
   ========================================================================= */
/* Cards: soft glass with an inner edge, same as .ds-glass */
/* :where() keeps this as weak as the old .lab-card rule (it wins by coming last), so pages already redesigned keep their own card styles. */
:where(body.lab #app) .lab-card { border: 0; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); }
:where(body.lab #app) a.lab-card:hover { box-shadow: var(--ds-shadow), inset 0 0 0 1px rgba(255, 216, 77, .3); }
body.lab #app .lab-card h2 { color: var(--ds-ink); }
/* Boxes inside cards: a recessed well */
body.lab #app :is(.lab-bcol, .cmp-tk, .co-projection, .chat-setup, .lc-campaign, .ob-camp, .cmp-jump, .ticket-request-clip, .ticket-request-links, .sp-overview, .ep-range) { border: 0 !important; border-radius: 16px !important; background: var(--ds-well) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab #app a.cmp-jump:hover, body.lab #app a.lc-campaign:hover { box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3) !important; }
/* Primary button: the yellow capsule */
body.lab .lab-btn, body.lab #app button.primary { border: 0 !important; border-radius: var(--ds-r-pill) !important; background: linear-gradient(180deg, #FFE27A, var(--accent)) !important; color: #14120E !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px -10px rgba(255, 216, 77, .7) !important; }
body.lab .lab-btn:hover:not(:disabled), body.lab #app button.primary:hover:not(:disabled) { filter: brightness(1.05); }
body.lab .lab-btn:disabled, body.lab #app button.primary:disabled { opacity: .45; box-shadow: none !important; }
/* One yellow button per screen: inside cards the action becomes an accent-outlined pill */
body.lab #app .lab-card .lab-btn, body.lab #app .lab-card button.primary, body.lab #app .chat-setup button.primary { background: rgba(255, 216, 77, .08) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .55) !important; }
body.lab #app .lab-card .lab-btn:hover:not(:disabled), body.lab #app .lab-card button.primary:hover:not(:disabled) { background: rgba(255, 216, 77, .16) !important; filter: none; }
/* Secondary button: a glass pill */
body.lab .lab-ghost { border: 0 !important; border-radius: var(--ds-r-pill) !important; padding: 0 14px !important; min-height: 34px !important; background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-weight: 700 !important; }
body.lab .lab-ghost:hover:not(:disabled) { background: var(--ds-glass-3) !important; }
body.lab .lab-ghost:disabled { opacity: .45; }
/* Small stat pills in headers */
body.lab #app .lab-pill { border: 0; border-radius: 16px; background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
/* Tab bars: one segmented control everywhere (active tab is glass, never yellow) */
body.lab #app :is(.ec-tabs, .ep-tabs, .lc-tabs) { display: inline-flex; flex-wrap: wrap; gap: 2px; width: auto; max-width: 100%; margin: 0 0 18px; padding: 4px; border: 0 !important; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 3px rgba(0, 0, 0, .35); }
body.lab #app :is(.ec-tabs a, .ep-tabs a, .lc-tabs button) { display: inline-flex; align-items: center; height: 32px; min-height: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-3) !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none; }
body.lab #app :is(.ec-tabs a, .ep-tabs a, .lc-tabs button):hover { color: var(--ds-ink) !important; }
body.lab #app :is(.ec-tabs a[aria-current], .ep-tabs a[aria-current], .lc-tabs button.active) { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important; }
body.lab #app .lab-seg { border: 0; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab #app .lab-seg button { border-radius: var(--ds-r-pill) !important; }
body.lab #app .lab-seg button.on { background: var(--ds-glass-3) !important; }
/* Notices: one tone everywhere */
body.lab #app .notice { border: 0 !important; border-radius: 14px !important; background: rgba(255, 216, 77, .07) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .22); color: var(--ds-ink-2) !important; }
/* Auto-DMs: the connect box buttons match the rest */
body.lab #app .chat-setup button:not(.primary) { height: 34px; min-height: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-weight: 700; }
body.lab #app .chat-setup a { display: inline-flex; align-items: center; min-height: 34px; vertical-align: middle; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
/* Editors table: the pay-rate menu and Full-time switch stay readable */
body.lab #app .ec-table select { min-width: 132px; }
body.lab #app .ec-table td label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin: 0; }
/* New editing request: one glass card, the yellow accent instead of the old orange */
body.lab #app .ticket-simple { border: 0 !important; border-radius: var(--ds-r-xl, 28px) !important; background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke) !important; overflow: hidden; }
body.lab #app .ticket-simple .new-ticket-head { background: transparent !important; border-bottom: 1px solid var(--ds-stroke) !important; }
body.lab #app .ticket-simple .ticket-request-panel { border: 0 !important; background: transparent !important; }
body.lab #app .ticket-simple .ticket-request-support > h2::before { background: var(--accent) !important; }
body.lab #app .ticket-simple .ticket-request-drop { border-color: rgba(255, 216, 77, .3) !important; background: var(--ds-well) !important; }
body.lab #app .ticket-simple .ticket-request-drop > span:first-child { color: var(--accent) !important; }
body.lab #app button.ticket-campaign-choice { border: 0 !important; border-radius: 16px !important; background: var(--ds-well) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; }
body.lab #app button.ticket-campaign-choice:hover { background: rgba(255, 246, 230, .06) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3) !important; }
body.lab #app button.ticket-campaign-choice[aria-pressed="true"] { background: rgba(255, 216, 77, .12) !important; box-shadow: inset 0 0 0 1.5px var(--accent) !important; color: var(--ds-ink) !important; }
body.lab #app button.ticket-campaign-choice[aria-pressed="true"] .campaign-logo, body.lab #app button.ticket-campaign-choice[aria-pressed="true"] .campaign-logo-empty { background: var(--accent) !important; color: #14120E !important; }
body.lab #app button.ticket-campaign-choice:focus-visible { outline-color: var(--accent); }
/* Staff boards: job cards on the same glass as everywhere else */
body.lab #app .lab-bcol .tk-card, body.lab #app .lab-bcard { border: 0 !important; border-radius: 16px !important; background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab #app .lab-bcol .tk-card.hot, body.lab #app .lab-bcard.hot { box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .45) !important; }
body.lab #app .ticket-simple { --clay: var(--accent); }
@media (min-width: 801px) { body.lab #app .iv-row { grid-template-columns: 170px minmax(0, 1fr) 150px 90px 170px; } body.lab #app .iv-row > span:last-child { justify-self: end; } }
body.lab #app .lab-seg { flex-wrap: wrap; max-width: 100%; }
/* Mix and match (fix): the recipe stacks Hook ↓ Demo ↓ Ending so names wrap inside their slot and nothing spills
   into the side column; chips shorten long names with "…" and keep a clear × */
/* Upload dialog: a preview of every chosen clip */
.var-drop-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.var-drop-previews:empty { display: none; }
.var-drop-previews figure { margin: 0; display: grid; gap: 4px; min-width: 0; }
.var-drop-previews video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.var-drop-previews audio { width: 100%; }
.var-drop-previews figcaption { font-size: 11px; color: var(--ds-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Views › raw measurements: grouped by day, one clean row per video */
body.lab .ds-rawdays { display: grid; gap: 8px; margin-top: 12px; }
.ds-rawday { border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-rawday > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.ds-rawday > summary::-webkit-details-marker { display: none; }
.ds-rawday > summary::before { content: ''; width: 7px; height: 7px; border: solid var(--ds-ink-3); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.ds-rawday[open] > summary::before { transform: rotate(45deg); }
.ds-rawday > summary b { font-size: 14px; color: var(--ds-ink); }
.ds-rawday > summary span { font-size: 13px; font-weight: 700; color: var(--ds-up); font-variant-numeric: tabular-nums; }
.ds-rawday > summary small { margin-left: auto; font-size: 12px; color: var(--ds-ink-4); }
.ds-rawlist { display: grid; padding: 0 8px 8px; }
.ds-rawrow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 100px; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid rgba(255, 246, 230, .05); border-radius: 10px; }
.ds-rawrow:hover { background: rgba(255, 246, 230, .03); }
.ds-rawrow.base { opacity: .7; }
.ds-rawv { display: grid; gap: 2px; min-width: 0; }
.ds-rawv b { font-size: 13.5px; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-rawv small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ds-ink-3); }
.ds-rawv small i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.ds-rawwhy { color: var(--ds-ink-4) !important; }
.ds-rawflags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
body.lab .ds-rawflags .perf-badge { margin: 0; padding: 1px 7px; border: 0; border-radius: var(--ds-r-pill); font-style: normal; font-size: 11px; font-weight: 700; color: #FFB86B; background: rgba(255, 184, 107, .12); }
.ds-rawn { display: grid; text-align: right; font-size: 14px; font-weight: 800; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-rawn small { font-size: 11px; font-weight: 500; color: var(--ds-ink-4); }
.ds-rawn.perf-negative { color: var(--ds-down); }
@media (max-width: 640px) { .ds-rawrow { grid-template-columns: minmax(0, 1fr) auto; } .ds-rawrow > .ds-rawn:last-child { display: none; } }
/* Sidebar footer: one compact row (Guide · Discord), the profile row opens Settings */
body.lab .lab-navbottom { padding-top: 10px; }
.lab-ftiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
body.lab .lab-navbottom .lab-ftile { display: grid !important; justify-items: center; gap: 3px; height: auto !important; min-height: 0 !important; padding: 8px 4px !important; border-radius: 12px; font-size: 11px !important; font-weight: 600; color: var(--ds-ink-3) !important; text-align: center; }
body.lab .lab-navbottom .lab-ftile .icon { width: 18px; height: 18px; margin: 0 !important; }
body.lab .lab-navbottom .lab-ftile:hover { background: var(--ds-glass-2); color: var(--ds-ink) !important; }
body.lab .lab-navbottom .lab-ftile.on { background: var(--ds-glass-3); color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .lab-navbottom .lab-ftile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
body.lab .lab-navbottom a.lab-prof { margin-top: 6px; padding: 8px 10px !important; border-radius: 14px; }
body.lab .lab-navbottom a.lab-prof:hover { background: var(--ds-glass-2); }
body.lab .lab-navbottom a.lab-prof.on { background: var(--ds-glass-3); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .lab-prof > span:nth-child(2) { flex: 1; min-width: 0; }
body.lab .lab-prof b, body.lab .lab-prof small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
body.lab .lab-prof > .icon { width: 16px; height: 16px; flex: none; color: var(--ds-ink-4); }
body.lab .lab-prof:hover > .icon, body.lab .lab-prof.on > .icon { color: var(--ds-ink-2); }
/* The nav scrolls on short screens; show a thin scrollbar so that is obvious */
body.lab #sidebar > nav.lab-nav { scrollbar-width: thin; scrollbar-color: rgba(255, 246, 230, .2) transparent; }
body.lab #sidebar > nav.lab-nav::-webkit-scrollbar { width: 6px; }
body.lab #sidebar > nav.lab-nav::-webkit-scrollbar-thumb { background: rgba(255, 246, 230, .2); border-radius: 6px; }
/* Sidebar: footer tiles and the profile row use the glass highlight, not the yellow side bar */
body.lab .lab-navbottom .lab-ftile::before, body.lab .lab-navbottom a.lab-prof::before { display: none !important; }
/* Discord updates: even spacing between every block */
body.lab #app .dc { display: grid; gap: 16px; }
body.lab #app .dc > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.lab #app .dc .lab-head { margin: 0; }
body.lab #app .dc .dc-switch { border: 0 !important; border-radius: 14px !important; background: var(--ds-well) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
/* Settings: one column, every card the same width and spacing */
body.lab[data-page="settings"] #app > .page > :is(.lab-narrow, section, form) { max-width: 880px; }
body.lab[data-page="settings"] #app > .page > :is(section, form, .lab-card) { margin: 16px 0 0 !important; }
/* Any segmented switch: the selected option reads as selected */
body.lab .ds-seg button.on, body.lab .ds-seg button[aria-selected="true"] { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important; }
/* Guide: section icons are the sidebar's line icons on a quiet glass tile (no yellow blocks or glyphs) */
.gd-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--ds-glass-3); color: var(--ds-ink); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 0 rgba(255, 255, 255, .08); }
.gd-ic .icon { width: 19px; height: 19px; }
.gd-tip-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; color: var(--accent); background: rgba(255, 216, 77, .12); }
.gd-tip-ic .icon { width: 18px; height: 18px; }

/* Discord › Owner controls: two equal cards, then the channel assignment full width with its fields on one row */
body.lab #app .dc-grid2 { align-items: stretch; }
body.lab #app .dc-grid2 > .dc-card { display: flex; flex-direction: column; gap: 12px; margin: 0; }
body.lab #app .dc-grid2 > .dc-wide { grid-column: 1 / -1; }
body.lab #app .dc-card .dc-hd { display: grid; gap: 4px; }
body.lab #app .dc-card .dc-hd small { color: var(--ds-ink-3); font-size: 13px; }
body.lab #app .dc-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 246, 230, .06); }
body.lab #app .dc-line .dc-row-t { flex: 1; min-width: 0; }
body.lab #app .dc-line .dc-st { font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); }
body.lab #app .dc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: rgba(255, 246, 230, .25); }
body.lab #app .dc-dot.ok { background: var(--ds-up); box-shadow: 0 0 0 3px rgba(123, 216, 159, .18); }
body.lab #app .dc-line:has(.dc-dot.ok) .dc-st { color: var(--ds-up); }
body.lab #app .dc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
body.lab #app .dc-card .dc-actions .lab-ghost, body.lab #app .dc-inline .lab-ghost { width: auto; flex: none; }
body.lab #app .dc-card > .dc-hint { margin-top: auto; }
body.lab #app .dc-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
body.lab #app .dc-inline.dc-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
body.lab #app .dc-inline > label { margin: 0; }
body.lab #app .dc-inline > .dc-actions { margin: 0; }
body.lab #app .dc-inline :is(input, select) { height: 42px; min-height: 0; margin: 0; }
body.lab #app .dc-inline .lab-ghost { height: 42px; min-height: 0 !important; }
@media (max-width: 760px) { body.lab #app .dc-inline, body.lab #app .dc-inline.dc-form { grid-template-columns: minmax(0, 1fr); } }
/* Mix and match landing: one row per campaign — logo or initial, name, what's in it, and where the click goes */
body.lab .var-brand-intro { margin: 18px 0 10px; }
body.lab .var-brand-intro h2 { margin: 0; font-size: 17px; color: var(--ds-ink); }
body.lab .var-brand-intro p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
/* Mix and match landing: one card per campaign — a strip of its real clip frames, name and counts, one action. */
body.lab .var-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-bottom: 18px; }
body.lab .var-brand-card.ds-mmcamp { position: relative; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 12px; height: auto !important; min-height: 0 !important; margin: 0; padding: 10px 10px 12px !important; overflow: hidden; border: 0 !important; border-radius: 20px !important; background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; text-align: left !important; font: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
body.lab .var-brand-card.ds-mmcamp:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .5), 0 14px 32px rgba(0, 0, 0, .35) !important; transform: translateY(-2px); }
body.lab .var-brand-card.ds-mmcamp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.lab .var-brand-card.ds-mmcamp.busy { box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .55) !important; }
/* collective.css pins `.var-brand-card > span` to the corner (the old arrow); these spans are the card's sections. */
body.lab .var-brand-card.ds-mmcamp > span { position: relative; inset: auto; color: inherit; font-size: inherit; }
.ds-mmcamp-strip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; height: 148px; border-radius: 14px; overflow: hidden; }
.ds-mmcamp-f { position: relative; display: block; min-width: 0; background: linear-gradient(160deg, #33261a, #17120d); }
body.lab .ds-mmcamp-f video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; pointer-events: none; }
.ds-mmcamp-f:empty::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 246, 230, .03) 9px 18px); }
.ds-mmcamp-none { grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed rgba(255, 246, 230, .16); border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-mmcamp-none b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ds-glass-3); font-size: 20px; font-weight: 500; line-height: 1; color: var(--ds-ink-2); }
body.lab .var-brand-card.ds-mmcamp.empty:hover .ds-mmcamp-none { border-color: rgba(255, 216, 77, .45); color: var(--ds-ink-2); }
.ds-mmcamp-chip { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #14120E; font-size: 11px; font-weight: 800; font-style: normal; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.ds-mmcamp-body { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 4px; }
body.lab .ds-mmcamp-body > .campaign-logo, body.lab .ds-mmcamp-body > .campaign-logo-empty { position: static !important; flex: none; width: 36px !important; height: 36px !important; margin: 0 !important; border-radius: 10px !important; font-size: 15px !important; }
body.lab .ds-mmcamp-body > img.campaign-logo { background: #fff !important; padding: 3px; object-fit: contain; }
body.lab .ds-mmcamp.empty .ds-mmcamp-body > .campaign-logo-empty { color: var(--ds-ink-2) !important; background: var(--ds-glass-3) !important; }
.ds-mmcamp-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
body.lab .ds-mmcamp-t strong { font-size: 15px !important; font-weight: 750; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ds-ink) !important; }
body.lab .ds-mmcamp-t small { font-size: 12.5px !important; color: var(--ds-ink-3) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-mmcamp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 8px 4px 0; border-top: 1px solid var(--ds-stroke); }
body.lab .ds-mmcamp-foot small { font-size: 12px !important; color: var(--ds-ink-4) !important; }
body.lab .ds-mmcamp-go { position: static !important; flex: none; margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--ds-glass-3); font-size: 12.5px !important; font-weight: 700 !important; color: var(--ds-ink) !important; transition: background .15s, color .15s; }
body.lab .var-brand-card.ds-mmcamp.busy .ds-mmcamp-go { background: rgba(255, 216, 77, .16); color: var(--accent) !important; }
body.lab .var-brand-card.ds-mmcamp:hover .ds-mmcamp-go { background: var(--accent); color: #14120E !important; }
@media (max-width: 560px) { .ds-mmcamp-strip { height: 120px; } .ds-mmcamp.empty .ds-mmcamp-strip { height: 84px; } .ds-mmcamp-none { grid-auto-flow: column; align-items: center; } }
/* Library folders: the column never grows past its panel; long campaign names end in "…" and the count stays inside */
body.lab .ds-lib .ds-lfolders { grid-template-columns: minmax(0, 1fr); min-width: 0; }
body.lab .ds-lib .lib-folder { min-width: 0; width: 100%; }
body.lab .ds-lib .lib-folder span { flex: 1; min-width: 0; }
body.lab .ds-lib .lib-folder b { flex: none; }
/* Ideas: a real play button on every saved video; the platform's player opens in the card */
body.lab .ds-idea .ds-iplay { z-index: 4; opacity: .9; transform: none; }
body.lab .ds-idea .ds-iplay svg { width: 20px; height: 20px; margin-left: 3px; }
body.lab .ds-idea .ds-iplay:hover { background: rgba(255, 216, 77, .9) !important; color: #14120E !important; }
.ds-iframe-live { aspect-ratio: 9 / 16 !important; background: #000 !important; }
.ds-iframe-live.ds-ilive-instagram { aspect-ratio: 4 / 6.4 !important; background: #fff !important; }
.ds-iplayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
body.lab .ds-istop { position: absolute; z-index: 5; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 18px !important; line-height: 1; }
.ds-iwatch { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 14px; border-radius: var(--ds-r-pill); font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; background: rgba(20, 16, 12, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .25); }
.ds-iblocked { position: absolute; z-index: 4; left: 12px; right: 12px; top: calc(50% + 26px); text-align: center; font-size: 12px; line-height: 1.35; color: rgba(255, 246, 230, .78); }
.ds-iwatch:hover { background: rgba(20, 16, 12, .8); }

/* =========================================================================
   Mix and match v2 (mixmatch.js): campaign page rows, the recipe with pick-in-place rows, result tiles
   ========================================================================= */
.ds-mmc, .ds-mm { display: grid; gap: 16px; }
.ds-mmc .lab-head, .ds-mm .lab-head { margin: 0; align-items: flex-end; }
body.lab .ds-mmback { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13px !important; font-weight: 700; color: var(--ds-ink-3) !important; text-decoration: none; cursor: pointer; }
body.lab .ds-mmback:hover { color: var(--ds-ink) !important; }
.ds-mmc-title { display: flex; align-items: center; gap: 14px; }
body.lab .ds-mmc-title > .campaign-logo, body.lab .ds-mmc-title > .campaign-logo-empty { position: static !important; flex: none; width: 52px !important; height: 52px !important; margin: 0 !important; border-radius: 14px !important; display: grid; place-items: center; font-size: 20px !important; font-weight: 800; color: #14120E !important; background: linear-gradient(180deg, #FFE27A, var(--accent)) !important; object-fit: contain; }
body.lab .ds-mmc-title > img.campaign-logo { background: #fff !important; padding: 5px; }
body.lab .ds-mmc-title h1 { margin: 0; }
.ds-mmc-need { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ds-ink-2); background: rgba(255, 216, 77, .07); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .22); }
.ds-mmc-clips, .ds-mmc-batches { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--ds-r-xl, 28px); }
.ds-mmc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
body.lab .ds-mmc-head h2 { margin: 0; font-size: 18px; color: var(--ds-ink); }
body.lab .ds-mmc-head h2 small { font-size: 13px; color: var(--ds-ink-4); font-weight: 700; }
.ds-mmc-svc { font-size: 12.5px; color: var(--ds-ink-3); }
.ds-mmc-none { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-mmc-batches .var-batch-row { border-radius: 14px; padding: 10px 12px; }
body.lab .ds-mmc-batches .var-batch-row:hover { background: rgba(255, 246, 230, .04); }
/* A row of clips (campaign page and recipe) */
.ds-mmrow { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--ds-stroke); min-width: 0; }
.ds-mmc-clips .ds-mmrow:first-of-type { border-top: 0; }
.ds-mmrow > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.lab .ds-mmrow h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ds-ink); }
body.lab .ds-mmrow h3 small { font-size: 12px; color: var(--ds-ink-4); font-weight: 700; }
body.lab .ds-mmrow h3 i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ds-ink-2); background: var(--ds-glass-3); }
body.lab .ds-mmrow.on h3 i { color: #14120E; background: var(--accent); }
body.lab .ds-mmrow header p { margin: 2px 0 0; font-size: 12.5px; color: var(--ds-ink-3); }
.ds-mmrow-t { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; min-width: 0; border-radius: 14px; }
.ds-mmrow-t.var-drop-on { box-shadow: 0 0 0 2px var(--accent); background: rgba(255, 216, 77, .05); }
/* Clip tile */
body.lab .ds-mmt { position: relative; display: grid !important; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 14px !important; background: none !important; box-shadow: none !important; color: var(--ds-ink); cursor: default; }
body.lab label.ds-mmt { cursor: pointer; }
body.lab .ds-mmt > input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ds-mmt-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #3a2a1c, #1a140e); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .1); transition: box-shadow .15s, transform .15s; }
body.lab .ds-mmt-frame video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; background: #000; pointer-events: none; }
/* Clip stills and their hover players (clip-previews.js): the still fills the frame; the player sits on top, see-through until its first frame. */
body.lab img.lab-clipf, body.lab video.lab-clipv { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none; object-fit: cover; aspect-ratio: auto !important; pointer-events: none; }
body.lab .ds-mmt-frame video.lab-clipv { background: transparent; }
.ds-mmt-missing { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--ds-ink-3); }
.ds-mmt-ov { position: absolute; left: 8%; right: 8%; top: 12%; z-index: 1; text-align: center; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
body.lab .ds-mmt > b { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-mmt-check { position: absolute; z-index: 2; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(20, 16, 12, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 230, .6); }
label.ds-mmt:hover .ds-mmt-frame { transform: translateY(-1px); }
body.lab .ds-mmt.picked .ds-mmt-frame { box-shadow: 0 0 0 2.5px var(--accent); }
.ds-mmt.picked .ds-mmt-check { background: var(--accent); box-shadow: none; }
.ds-mmt.picked .ds-mmt-check::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #14120E; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
body.lab label.ds-mmt:has(input:focus-visible) .ds-mmt-frame { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Music and text tiles */
body.lab .ds-mmt-audio, body.lab .ds-mmt-text { min-height: 96px; padding: 12px !important; border-radius: 14px !important; background: var(--ds-well) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab .ds-mmt-audio.picked, body.lab .ds-mmt-text.picked { box-shadow: inset 0 0 0 2px var(--accent) !important; }
.ds-mmt-note { font-size: 20px; color: var(--accent); }
body.lab .ds-mmt-audio audio { width: 100%; height: 28px; }
body.lab .ds-mmt-text > span { font-size: 13px; font-weight: 700; line-height: 1.35; }
.ds-mmt-audio .ds-mmt-check, .ds-mmt-text .ds-mmt-check { top: 8px; right: 8px; }
/* Add tile */
body.lab .ds-mmt-add { display: grid !important; place-content: center; justify-items: center; gap: 4px; aspect-ratio: 9 / 16; min-height: 0 !important; height: auto !important; padding: 8px !important; border: 1.5px dashed rgba(255, 246, 230, .18) !important; border-radius: 14px !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-2) !important; text-align: center; cursor: pointer; }
body.lab .ds-mmt-add:hover { border-color: var(--accent) !important; color: var(--ds-ink) !important; background: rgba(255, 216, 77, .05) !important; }
.ds-mmt-add b { font-size: 22px; line-height: 1; }
.ds-mmt-add span { font-size: 12.5px; font-weight: 700; }
.ds-mmt-add small { font-size: 11px; color: var(--ds-ink-4); }
.ds-mmrow-t:has(.ds-mmt-audio) .ds-mmt-add, .ds-mmrow-t:has(.ds-mmt-text) .ds-mmt-add, [data-mm-kind="Audio"] .ds-mmt-add, [data-mm-slot="Audio"] .ds-mmt-add, [data-mm-slot="Text hooks"] .ds-mmt-add { aspect-ratio: auto; min-height: 96px !important; }
/* Manage actions on the campaign page */
.ds-mmt-wrap { position: relative; min-width: 0; }
.ds-mmt-wrap.menu-open { z-index: 20; }
/* ⋯ menu on each clip: top left, so the pick circle keeps the top right. */
.ds-mmt-more { position: absolute; z-index: 3; top: 6px; left: 6px; }
body.lab .ds-mmt-more > .ds-ico { width: 28px; height: 28px; opacity: 0; background: rgba(20, 16, 12, .62) !important; transition: opacity .15s; }
body.lab .ds-mmt-more > .ds-ico svg { width: 15px; height: 15px; }
.ds-mmt-wrap:hover .ds-mmt-more > .ds-ico, .ds-mmt-wrap:focus-within .ds-mmt-more > .ds-ico, .ds-mmt-wrap.menu-open .ds-mmt-more > .ds-ico { opacity: 1; }
@media (hover: none) { body.lab .ds-mmt-more > .ds-ico { opacity: 1; } }
.ds-mmt-menu { position: absolute; z-index: 30; top: 34px; left: 0; min-width: 164px; padding: 6px; border-radius: 14px; display: grid; background: rgba(32, 28, 22, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 18px 40px rgba(0, 0, 0, .55); }
.ds-mmt-menu[hidden] { display: none; }
body.lab .ds-mmt-menu [role=menuitem] { display: flex; align-items: center; justify-content: flex-start !important; width: 100%; gap: 10px; min-height: 0 !important; height: auto; padding: 8px 10px !important; border: 0 !important; border-radius: 9px !important; background: none !important; box-shadow: none !important; text-align: left; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ds-ink-2) !important; white-space: nowrap; }
body.lab .ds-mmt-menu [role=menuitem] svg { width: 15px; height: 15px; flex: none; }
body.lab .ds-mmt-menu [role=menuitem]:hover, body.lab .ds-mmt-menu [role=menuitem]:focus-visible { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; outline-offset: -2px; }
body.lab .ds-mmt-menu .ds-mmt-del { color: #FF8A9B !important; }
body.lab .ds-mmt-menu .ds-mmt-del:hover { background: rgba(255, 107, 129, .14) !important; color: #FFB3BE !important; }
/* The recipe: rows on the left, the summary on the right */
.ds-mm-pstage { position: relative; }
body.lab .ds-mm-pstage video { width: 100%; aspect-ratio: 9 / 16; max-height: 360px; border-radius: 14px; background: #000; object-fit: contain; }
/* Result tiles: the hook's frame (dimmed) until the video is exported; quieter buttons */
.var-output-card > video.var-poster { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: cover; background: #111; opacity: .45; }
.var-output-card > video.var-poster + .var-missing { position: absolute; inset: 0 0 auto 0; aspect-ratio: 9 / 13; background: none !important; color: var(--ds-ink-2) !important; font-weight: 700; }
body.lab .var-output-card { border: 0 !important; border-radius: 16px !important; background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; overflow: hidden; }
body.lab .var-output-card footer { gap: 6px !important; padding: 10px !important; }
body.lab .var-output-card footer strong { font-size: 13.5px !important; }
body.lab .var-output-card footer small { font-size: 11.5px !important; color: var(--ds-ink-3); line-height: 1.4; }
body.lab .var-output-card .button { height: 32px; min-height: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 12.5px !important; font-weight: 700; }
body.lab .var-output-card .button.primary { border: 0 !important; background: rgba(255, 216, 77, .1) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .5) !important; }
body.lab .var-output-card .button.primary:disabled { opacity: .45; }
body.lab .var-output-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 12px !important; }
body.lab .var-batch-stats { display: none !important; }
body.lab .var-render-notice { padding: 10px 14px !important; font-size: 13px !important; }
@media (max-width: 560px) { .ds-mmrow-t { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
body.lab .ds-mmrow-t[data-var-drop$="|Audio"] .ds-mmt-add, body.lab .ds-mmrow-t[data-var-drop$="|Text hooks"] .ds-mmt-add { aspect-ratio: auto; min-height: 96px !important; }
body.lab .ds-mmt.var-clip-card.picked, body.lab .ds-mmt.var-clip-card { border: 0 !important; box-shadow: none !important; outline: 0; background: none !important; }
body.lab .var-output-card > video.var-poster + .var-missing { display: none !important; }

/* Home: the staff queued-files check collapses to one line when empty. */
body.lab .hm-queued-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 13px; color: var(--ds-ink-3); }

/* ---------- Type floor: readable text is never smaller than 11px (glyphs inside small badges excepted) ---------- */
body.lab .vh-kicker, body.lab .vh-reset, body.lab .vh-remove, body.lab .vh-analysis > summary small,
body.lab .pl-dow span, body.lab .pl-pill, body.lab .gd-t b small, body.lab .ds-frame-up,
body.lab .ep-eyebrow, body.lab .ep-priority, body.lab .ep-stage, body.lab .ep-job-clock small, body.lab .ep-job-due small,
body.lab .co-video-state, body.lab .co-video-info p, body.lab .co-video-info span, body.lab .co-video-info b,
body.lab .lc-under small, body.lab .lc-preview-tabs span, body.lab .lc-preview-test p { font-size: 11px !important; }
body.lab .pl-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Auto-DM builder preview: the mock DM header sits on a neutral surface so its text stays readable. */
body.lab .lc-phone-head { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; }
body.lab .lc-phone-head * { color: inherit; }
/* Find campaigns: the name gets the card's full width; its status pill sits under it instead of squeezing it. */
.ds-deals .deal-card-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
.ds-deals .deal-card .deal-status { grid-column: 2; justify-self: start; margin-top: 0; }
/* Ideas: the platform chip (top left) already names the platform, so the fallback frame shows no centred label under the play button. */
.ds-ifallback b { display: none; }
body.lab .hm-queued-empty .lab-ghost { min-height: 32px !important; height: 32px; padding: 0 12px !important; font-size: 12.5px !important; }
body.lab #app .hm-queued-empty { padding: 10px 18px !important; }

.sum-status { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* =========================================================================
   New / edit campaign (app.js campaignForm): the "Post this video" dialog's materials, grouped panels on the
   left, a live preview of the campaign card and its 30-day base projection on the right, one button.
   ========================================================================= */
body.lab dialog.ds-cf-dialog { width: min(1040px, 96vw); max-width: 96vw; max-height: 92vh; max-height: 92svh; padding: 0 !important; overflow: hidden; border: 0 !important; border-radius: 24px !important; background: linear-gradient(180deg, #24201A, #1A1712) !important; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab dialog.ds-cf-dialog::backdrop { background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab .ds-cf-form { max-width: none; display: block; padding: 22px 24px 0; max-height: 92vh; max-height: 92svh; overflow-y: auto; }
body.lab .ds-cf-form .modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
body.lab .ds-cf-form .modal-header h2 { margin: 0; flex: 1; font-size: 22px !important; letter-spacing: -.02em; }
.ds-cf { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.ds-cf-main { display: grid; gap: 14px; min-width: 0; }
.ds-cf-sec { display: grid; gap: 12px; padding: 14px 16px 16px; border-radius: 18px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-cf-sec h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ds-ink); display: flex; align-items: baseline; gap: 6px; }
.ds-cf-sec h3 small { font-size: 12px; font-weight: 600; color: var(--ds-ink-4); }
body.lab .ds-cf label { display: grid; gap: 6px; margin: 0; color: var(--ds-ink-3) !important; font-size: 12.5px !important; }
body.lab .ds-cf label small { font-weight: 500; color: var(--ds-ink-4); }
body.lab .ds-cf input:not([type=radio]):not([type=checkbox]):not([type=file]), body.lab .ds-cf select, body.lab .ds-cf textarea { width: 100%; min-height: 42px; padding: 0 14px; border: 0 !important; border-radius: 12px !important; background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 14px !important; }
body.lab .ds-cf textarea { padding: 12px 14px; min-height: 96px; line-height: 1.5; resize: vertical; }
body.lab .ds-cf input:focus, body.lab .ds-cf select:focus, body.lab .ds-cf textarea:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 3px rgba(255, 216, 77, .12) !important; }
body.lab .ds-cf input::placeholder, body.lab .ds-cf textarea::placeholder { color: var(--ds-ink-4); }
body.lab .ds-cf input:disabled, body.lab .ds-cf input[readonly] { opacity: .65; }
.ds-cf-note { font-size: 12px; line-height: 1.45; color: var(--ds-ink-4); }
.ds-cf .notice { margin: 0; }
/* Brand: a square logo tile you click to add or replace, beside the name. */
.ds-cf-brand { display: flex; gap: 16px; align-items: flex-start; }
body.lab .ds-cf .ds-cf-logo { flex: none; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.ds-cf-logo > span { position: relative; display: block; border-radius: 18px; }
.ds-cf-logo .lab-logo { display: grid; place-items: center; border-radius: 18px; font-size: 24px; font-weight: 800; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .12); }
.ds-cf-logo > span::after { content: ""; position: absolute; inset: -3px; border-radius: 21px; border: 1.5px dashed rgba(255, 246, 230, .22); transition: border-color .2s; }
.ds-cf-logo:hover > span::after, .ds-cf-logo:focus-within > span::after { border-color: rgba(255, 216, 77, .7); }
body.lab .ds-cf .ds-cf-logo small { font-size: 11.5px; font-weight: 700; color: var(--ds-ink-2); }
.ds-cf-name { flex: 1; min-width: 0; display: grid; gap: 8px; }
body.lab .ds-cf .ds-cf-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ds-ink-2) !important; font-weight: 600; cursor: pointer; }
.ds-cf-name .ds-cf-check { margin-left: 6px; font-size: 12px !important; }
/* How you're paid: the type as three cards, its terms with units beside each number. */
.ds-cf-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
body.lab .ds-cf .ds-cf-type { position: relative; display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: pointer; transition: background .15s, box-shadow .15s; }
.ds-cf-type input { position: absolute; opacity: 0; pointer-events: none; }
.ds-cf-type b { font-size: 13.5px; font-weight: 700; color: var(--ds-ink-2); }
.ds-cf-type b small { font-size: 11px; color: var(--ds-ink-4); }
body.lab .ds-cf .ds-cf-type:hover { background: var(--ds-glass-2); }
body.lab .ds-cf .ds-cf-type:has(input:checked) { background: rgba(255, 216, 77, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .7); }
.ds-cf-type:has(input:checked) b { color: var(--ds-ink); }
.ds-cf-type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-cf-hint { margin: -2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ds-ink-3); }
.ds-cf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-cf-fields > [hidden] { display: none !important; }
.ds-cf-input { position: relative; display: flex; align-items: center; }
.ds-cf-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--ds-ink-3); pointer-events: none; }
body.lab .ds-cf .ds-cf-input > i + input { padding-left: 28px !important; }
body.lab .ds-cf .ds-cf-input input { padding-right: 112px !important; font-variant-numeric: tabular-nums; }
.ds-cf-input > em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--ds-ink-4); pointer-events: none; white-space: nowrap; }
.ds-cf .cf-ms { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-cf .ms-row label { display: inline-flex !important; }
body.lab .ds-cf .ms-row input { width: 110px !important; min-height: 36px; padding: 0 10px !important; }
/* Your plan: posting target and status side by side. */
.ds-cf-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
/* Tracking: start and optional end date side by side. */
.ds-cf-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-cf-status { display: grid; gap: 6px; }
.ds-cf-status > span { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-cf-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 3px rgba(0, 0, 0, .35); }
body.lab .ds-cf .ds-cf-seg label { display: block; cursor: pointer; }
.ds-cf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ds-cf-seg span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--ds-r-pill); font-size: 13px; font-weight: 700; color: var(--ds-ink-3); }
.ds-cf-seg input:checked + span { color: var(--ds-ink); background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35); }
.ds-cf-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Posting accounts: the accounts this campaign posts from and tracks. */
.ds-cf-accts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* One row per platform: its connected accounts, then a new account just for this campaign */
.ds-cf-accts:has(.ds-cf-plat) { display: grid; gap: 10px; }
.ds-cf-plat { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: start; }
.ds-cf-plat-hd { padding-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); }
.ds-cf-plat-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.ds-cf-new small { display: none; }
.ds-cf-new:has(input:checked) small { display: inline; }
body.lab .ds-cf .ds-cf-new { box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 0 0 1px transparent; border: 1px dashed var(--ds-stroke-2, rgba(255, 246, 230, .18)); background: none; }
body.lab .ds-cf .ds-cf-new:has(input:checked) { border-style: solid; border-color: transparent; }
@media (max-width: 560px) { .ds-cf-plat { grid-template-columns: minmax(0, 1fr); gap: 6px; } .ds-cf-plat-hd { padding-top: 0; } }
body.lab .ds-cf .ds-cf-acct { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--ds-r-pill); background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-2) !important; font-size: 13px !important; font-weight: 600; cursor: pointer; }
body.lab .ds-cf .ds-cf-acct:has(input:checked) { background: rgba(255, 216, 77, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .7); color: var(--ds-ink) !important; }
.ds-cf-acct small { font-size: 11.5px; color: var(--ds-ink-4); }
.ds-cf-preset { max-width: 320px; }
.ds-cf-preset-save { padding: 0 4px; }
/* Preview */
.ds-cf-side { position: sticky; top: 0; display: grid; gap: 12px; }
.ds-cf-side-lbl { font-size: 12px; font-weight: 700; color: var(--ds-ink-3); }
.ds-cf-side .ds-camps .lab-ccard { cursor: default; }
.ds-cf-side .ds-camps .lab-ccard:hover { transform: none; }
.ds-cf-card .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-cf-card .terms { display: grid; grid-template-columns: 1fr 1fr; }
.ds-cf-proj { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-cf-proj small { font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
.ds-cf-proj b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-cf-proj span { font-size: 12px; line-height: 1.45; color: var(--ds-ink-3); }
.ds-cf-foot { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ds-ink-4); }
/* One button: Create campaign / Save changes. × or Esc closes. */
body.lab .ds-cf-form .actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin: 18px -24px 0; padding: 14px 24px 18px; border-top: 1px solid var(--ds-stroke); background: linear-gradient(180deg, rgba(30, 26, 21, .92), #1C1914); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.lab .ds-cf-form .actions > [data-close] { display: none !important; }
body.lab .ds-cf-form .actions > button[type=submit] { height: 48px; min-width: 220px; padding: 0 24px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 15px !important; font-weight: 800 !important; color: var(--ds-on-accent) !important; background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(160, 100, 0, .32), 0 10px 26px -10px rgba(255, 196, 60, .7) !important; }
@media (max-width: 860px) {
  .ds-cf { grid-template-columns: 1fr; }
  .ds-cf-side { position: static; }
  .ds-cf-side .ds-cf-foot, .ds-cf-side-lbl { display: none; }
  body.lab .ds-cf-form .actions > button[type=submit] { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  body.lab dialog.ds-cf-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0 !important; }
  body.lab .ds-cf-form { max-height: 100dvh; padding: 16px 16px 0; }
  body.lab .ds-cf-form .actions { margin: 18px -16px 0; padding: 12px 16px 16px; }
  .ds-cf-fields, .ds-cf-plan, .ds-cf-dates { grid-template-columns: 1fr; }
  .ds-cf-side .ds-camps { display: none; }
}

/* =========================================================================
   Form dialog: the shared modal() in the design-system look (first used by Ideas › Save video).
   Add .ds-dialog to #dialog and .ds-dform to #modalForm. Same material as the campaign and post dialogs,
   sized for a short form; optional groups are collapsible panels; one button, × or Esc closes.
   ========================================================================= */
body.lab dialog.ds-dialog { width: min(600px, 96vw); max-width: 96vw; max-height: 92vh; max-height: 92svh; padding: 0 !important; overflow: hidden; border: 0 !important; border-radius: 24px !important; background: linear-gradient(180deg, #24201A, #1A1712) !important; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab dialog.ds-dialog::backdrop { background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab .ds-dform { max-width: none; display: block; padding: 22px 24px 0; max-height: 92vh; max-height: 92svh; overflow-y: auto; }
body.lab .ds-dform .modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
body.lab .ds-dform .modal-header h2 { margin: 0; flex: 1; font-size: 22px !important; letter-spacing: -.02em; color: var(--ds-ink); }
body.lab .ds-dform .modal-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink-2) !important; }
body.lab .ds-dform .modal-close:hover { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; }
body.lab .ds-dform .modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.lab .ds-dform .modal-close svg { width: 16px; height: 16px; }
.ds-dfields, .ds-dbody { display: grid; gap: 14px; min-width: 0; }
.ds-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.lab .ds-dform label { display: grid; gap: 6px; margin: 0; min-width: 0; color: var(--ds-ink-3) !important; font-size: 12.5px !important; font-weight: 600; }
body.lab .ds-dform input:not([type=radio]):not([type=checkbox]):not([type=file]), body.lab .ds-dform select, body.lab .ds-dform textarea { width: 100%; min-height: 42px; margin: 0; padding: 0 14px; font-family: inherit; font-weight: 500 !important; border: 0 !important; border-radius: 12px !important; background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 14px !important; }
body.lab .ds-dform textarea { padding: 12px 14px; min-height: 84px; line-height: 1.5; resize: vertical; }
body.lab .ds-dform input:focus, body.lab .ds-dform select:focus, body.lab .ds-dform textarea:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 3px rgba(255, 216, 77, .12) !important; }
body.lab .ds-dform input::placeholder, body.lab .ds-dform textarea::placeholder { color: var(--ds-ink-4); }
/* Optional groups: a panel whose header row opens it. Nested groups sit a shade deeper. */
.ds-dsec { border-radius: 18px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-dsec .ds-dsec { border-radius: 14px; background: rgba(0, 0, 0, .18); }
.ds-dsec > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: inherit; font-size: 13.5px; font-weight: 700; color: var(--ds-ink-2); cursor: pointer; }
.ds-dsec > summary::-webkit-details-marker { display: none; }
.ds-dsec > summary small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ds-ink-4); }
.ds-dsec > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: -3px 2px 0 0; border: solid var(--ds-ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.ds-dsec[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.ds-dsec > summary:hover { color: var(--ds-ink); }
.ds-dsec > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-dsec > .ds-dbody { padding: 2px 16px 16px; }
body.lab .ds-dform .ds-dnote { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ds-ink-3); }
/* One button. × or Esc closes. */
body.lab .ds-dform .actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin: 20px -24px 0; padding: 14px 24px 18px; border-top: 1px solid var(--ds-stroke); background: linear-gradient(180deg, rgba(30, 26, 21, .92), #1C1914); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.lab .ds-dform .actions > [data-close]:not(.primary) { display: none !important; }
body.lab .ds-dform .actions > :is(button[type=submit], button.primary[data-close]) { height: 48px; min-width: 180px; padding: 0 24px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 15px !important; font-weight: 800 !important; color: var(--ds-on-accent) !important; background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(160, 100, 0, .32), 0 10px 26px -10px rgba(255, 196, 60, .7) !important; }
body.lab .ds-dform .actions > button[type=submit]:disabled { opacity: .5; }
@media (max-width: 560px) {
  body.lab dialog.ds-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0 !important; }
  body.lab .ds-dform { display: flex; flex-direction: column; height: 100dvh; max-height: 100dvh; padding: 16px 16px 0; }
  body.lab .ds-dform .actions { margin: auto -16px 0; padding: 12px 16px 16px; }
  body.lab .ds-dform .ds-dfields { margin-bottom: 18px; }
  body.lab .ds-dform .actions > :is(button[type=submit], button.primary[data-close]) { width: 100%; min-width: 0; }
  .ds-dgrid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Bulk upload (scheduler.js bulk uploader, .sc-bulk > .sc-bk.ds-bk): the form-dialog material, a When panel that
   reads the pace back in words with one chip per day, the videos as rows, and one Schedule button.
   ========================================================================= */
.sc-bulk { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab .ds-bk { width: min(980px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #24201A, #1A1712); color: var(--ds-ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke); }
body.lab .sc-bulk.drag .ds-bk { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(255, 216, 77, .7); }
body.lab .ds-bk .sc-bkh { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 16px; }
body.lab .ds-bk .sc-bkh > div { flex: 1; min-width: 0; }
body.lab .ds-bk .sc-bkh h2 { margin: 0; font-size: 22px !important; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); }
body.lab .ds-bk .sc-bkh p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); }
body.lab .ds-bk .ds-bk-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0 !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink-2); font-size: 18px; cursor: pointer; }
body.lab .ds-bk .ds-bk-x:hover { background: var(--ds-glass-2) !important; color: var(--ds-ink); }
body.lab .ds-bk .ds-bk-x svg { width: 16px; height: 16px; }
.ds-bk-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 14px; padding: 0 24px 20px; }
.ds-bk-sec { display: grid; gap: 12px; min-width: 0; padding: 14px 16px 16px; border-radius: 18px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.ds-bk-sec > .ds-bk-grid { gap: 16px; }
body.lab .ds-bk h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ds-ink); }
/* Fields */
body.lab .ds-bk label, .ds-bk .ds-bk-gap > span, .ds-bk .ds-bk-fmt > span, .ds-bk .sc-bkacc > span { display: grid; gap: 6px; margin: 0; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-bk label small { font-weight: 500; color: var(--ds-ink-4); }
body.lab .ds-bk :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { width: 100%; min-height: 42px; margin: 0; padding: 0 12px; border: 0 !important; border-radius: 12px !important; background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font: inherit; font-size: 14px !important; font-weight: 500; color-scheme: dark; }
body.lab .ds-bk textarea { padding: 10px 12px; line-height: 1.45; resize: vertical; }
body.lab .ds-bk :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 3px rgba(255, 216, 77, .12) !important; }
body.lab .ds-bk :is(input, textarea)::placeholder { color: var(--ds-ink-4); }
body.lab .ds-bk :is(input, select, textarea, button):disabled { opacity: .55; cursor: default; }
body.lab .ds-bk input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
/* Campaign and accounts */
.ds-bk .sc-bkacc { display: grid; gap: 6px; min-width: 0; }
.ds-bk .sc-bkacc > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; }
body.lab .ds-bk .sc-acct { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--ds-r-pill); background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
body.lab .ds-bk .sc-acct:hover { background: var(--ds-glass-2); color: var(--ds-ink); }
body.lab .ds-bk .sc-acct.on { background: rgba(255, 216, 77, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .6); color: var(--ds-ink); }
.ds-bk .sc-acct:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-bk .sc-bkacc .sc-muted { font-size: 12.5px; line-height: 1.45; color: var(--ds-ink-3); }
/* When */
.ds-bk .sc-bkset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ds-bk .ds-bk-gap { grid-column: span 2; display: grid; gap: 6px; min-width: 0; }
body.lab .ds-bk .sc-bkset label.row { display: flex; align-items: center; gap: 8px; height: 42px; color: var(--ds-ink-2); font-size: 13px; cursor: pointer; }
.ds-bk-step { display: flex; align-items: center; height: 42px; border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-bk .ds-bk-step input[type=number][data-bkc] { min-height: 0; height: 42px; padding: 0 !important; background: none !important; box-shadow: none !important; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; -moz-appearance: textfield; }
.ds-bk-step input::-webkit-inner-spin-button, .ds-bk-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.lab .ds-bk .ds-bk-step button { flex: none; display: grid; place-items: center; width: 40px; height: 42px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-2); font-size: 18px; font-weight: 600; cursor: pointer; }
body.lab .ds-bk .ds-bk-step button:hover:not(:disabled) { color: var(--ds-ink); background: var(--ds-glass-1) !important; }
.ds-bk-seg { display: flex; flex-wrap: wrap; gap: 2px; width: max-content; max-width: 100%; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 3px rgba(0, 0, 0, .35); }
body.lab .ds-bk .ds-bk-seg label { display: block; cursor: pointer; }
.ds-bk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ds-bk-seg span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); white-space: nowrap; }
.ds-bk-seg label:hover span { color: var(--ds-ink-2); }
.ds-bk-seg input:checked + span { color: var(--ds-ink); background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35); }
.ds-bk-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.ds-bk-note { display: grid; gap: 4px; }
.ds-bk-note p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ds-ink-2); }
.ds-bk-note p + p { color: var(--ds-ink-3); }
body.lab .ds-bk .ds-bk-link { display: inline; min-height: 0 !important; height: auto; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ds-bk h3 .ds-bk-link { margin-left: auto; }
.ds-bk-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ds-bk-days li { display: grid; gap: 1px; padding: 7px 11px; border-radius: 12px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-bk-days b { font-size: 12px; font-weight: 700; color: var(--ds-ink); }
.ds-bk-days span { font-size: 11.5px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.ds-bk-days li.more { align-content: center; font-size: 12px; font-weight: 600; color: var(--ds-ink-3); background: none; box-shadow: none; }
/* Caption and format */
.ds-bk-fmt { display: grid; gap: 6px; align-content: start; }
.ds-bk-fmt small { font-size: 12px; line-height: 1.4; color: var(--ds-ink-4); }
body.lab .ds-bk .sc-bkcap { padding: 0; }
.ds-bk .ds-bk-linked { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ds-ink-3); }
/* Videos */
.ds-bk .sc-bkrows { display: grid; gap: 8px; }
.ds-bk .sc-bkrow { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) 148px 112px 104px 32px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 16px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-bk .sc-bkrow.error { box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .5); }
.ds-bk .sc-bkrow.scheduled, .ds-bk .sc-bkrow.queued, .ds-bk .sc-bkrow.saved { opacity: .75; }
.ds-bk .sc-bkn { font-size: 12px; color: var(--ds-ink-4); text-align: right; font-variant-numeric: tabular-nums; }
.ds-bk .sc-bkrow .sc-th { width: 40px; height: 64px; border-radius: 9px; background: rgba(0, 0, 0, .35); }
.ds-bk .sc-bkf { display: grid; gap: 6px; min-width: 0; }
body.lab .ds-bk .sc-bkrow :is(input, textarea) { min-height: 38px; font-size: 13.5px !important; }
body.lab .ds-bk .sc-bkf input { font-weight: 700; }
body.lab .ds-bk .sc-bkf textarea { min-height: 38px; padding: 8px 12px; font-size: 12.5px !important; }
.ds-bk .sc-bkf small { font-size: 11.5px; color: var(--ds-ink-3); }
.ds-bk .sc-bst { position: relative; overflow: hidden; display: inline-flex; justify-content: center; justify-self: start; padding: 4px 10px; border-radius: var(--ds-r-pill); background: var(--ds-glass-1); color: var(--ds-ink-3); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ds-bk .sc-bst.up i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 216, 77, .28); }
body.lab .ds-bk .sc-x.sm { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: none !important; color: var(--ds-ink-3); font-size: 17px; cursor: pointer; }
body.lab .ds-bk .sc-x.sm:hover:not(:disabled) { background: var(--ds-glass-2) !important; color: var(--ds-ink); }
body.lab .ds-bk .sc-bkdrop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border-radius: 16px; border: 1.5px dashed rgba(255, 246, 230, .2); color: var(--ds-ink-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
body.lab .ds-bk .sc-bkdrop:hover { border-color: rgba(255, 216, 77, .6); background: rgba(255, 216, 77, .04); }
.ds-bk .sc-bkdrop b { font-size: 14px; color: var(--ds-ink); }
.ds-bk .sc-bkdrop small { font-size: 12.5px; font-weight: 500; color: var(--ds-ink-3); }
/* Footer: Save as drafts beside the one primary button */
.ds-bk .sc-bkf2 { display: flex; align-items: center; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--ds-stroke); background: linear-gradient(180deg, rgba(30, 26, 21, .92), #1C1914); }
.ds-bk .sc-bkf2 small { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ds-ink-3); }
body.lab .ds-bk .sc-bkf2 .lab-ghost { height: 48px; padding: 0 20px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; font-size: 14px !important; font-weight: 700 !important; }
body.lab .ds-bk .sc-bkf2 .lab-ghost:hover:not(:disabled) { background: var(--ds-glass-2) !important; }
body.lab .ds-bk .sc-bkf2 .lab-btn { height: 48px; min-width: 200px; padding: 0 24px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 15px !important; font-weight: 800 !important; color: var(--ds-on-accent) !important; background: linear-gradient(180deg, #FFE98F 0%, var(--accent) 46%, #F3C12E 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(160, 100, 0, .32), 0 10px 26px -10px rgba(255, 196, 60, .7) !important; }
body.lab .ds-bk .sc-bkf2 :is(.lab-btn, .lab-ghost):disabled { opacity: .5; }
@media (max-width: 860px) {
  .ds-bk-grid { grid-template-columns: 1fr; }
  .ds-bk .sc-bkrow { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 32px; grid-template-areas: "th f f x" "th d t t" "th s s s"; }
  .ds-bk .sc-bkrow .sc-bkn { display: none; }
  .ds-bk .sc-bkrow .sc-th { grid-area: th; align-self: start; }
  .ds-bk .sc-bkrow .sc-bkf { grid-area: f; }
  .ds-bk .sc-bkrow input[type=date] { grid-area: d; }
  .ds-bk .sc-bkrow input[type=time] { grid-area: t; }
  .ds-bk .sc-bkrow > :is(.sc-bst, .sc-pill) { grid-area: s; justify-self: start; }
  .ds-bk .sc-bkrow .sc-x.sm { grid-area: x; align-self: start; }
}
@media (max-width: 600px) {
  .sc-bulk { padding: 0; }
  body.lab .ds-bk { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  body.lab .ds-bk .sc-bkh { padding: 16px 16px 12px; }
  .ds-bk-body { padding: 0 16px 16px; }
  .ds-bk .sc-bkset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-bk .sc-bkset > label:nth-child(3) { grid-column: span 2; }
  .ds-bk .ds-bk-gap .ds-bk-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .ds-bk .ds-bk-gap .ds-bk-seg span { justify-content: center; width: 100%; padding: 0 6px; }
  .ds-bk .sc-bkf2 { flex-wrap: wrap; padding: 12px 16px 16px; }
  .ds-bk .sc-bkf2 small { flex-basis: 100%; }
  body.lab .ds-bk .sc-bkf2 :is(.lab-btn, .lab-ghost) { flex: 1; min-width: 0; }
}

/* ---------- Mix and match: preview every video before making it, edit the hook caption, batch previews ---------- */
/* The stage is sized like the export (9:16) and captions scale with its width (1080 wide in the export). */
body.lab .ds-mm-pstage, body.lab .ds-mm-ct-f { position: relative; overflow: hidden; background: #000; container-type: inline-size; }
body.lab .ds-mm-pstage { width: min(100%, 240px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-mm-pstage video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.ds-mm-cap { position: absolute; left: 5.5%; right: 5.5%; z-index: 2; transform: translateY(-50%); text-align: center; font-family: 'TikTok Sans', var(--ds-font, system-ui), sans-serif; font-weight: 800; font-size: calc(var(--fs, 64) / 1080 * 100cqw); line-height: 1.2; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; paint-order: stroke fill; -webkit-text-stroke: calc(6 / 1080 * 100cqw) #000; }
.ds-mm-cap[hidden] { display: none; }
.ds-mm-cap.box { -webkit-text-stroke: 0; }
.ds-mm-cap.box > span { padding: calc(10 / 1080 * 100cqw) calc(18 / 1080 * 100cqw); background: rgba(0, 0, 0, .55); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ds-mm-pstage.editing .ds-mm-cap { pointer-events: auto; cursor: grab; touch-action: none; outline: 1.5px dashed rgba(255, 216, 77, .85); outline-offset: 4px; border-radius: 4px; }
.ds-mm-pstage.editing .ds-mm-cap.drag { cursor: grabbing; }
.ds-mm-pstage.editing .ds-mm-cap.empty > span { opacity: .5; }
/* Loading: a moving gradient over the frame until the clip can play. */
.ds-mm-wait { position: absolute; inset: 0; z-index: 1; display: grid; place-items: end center; padding-bottom: 14%; background: linear-gradient(110deg, #1a1611 25%, #3a2f20 42%, #5b4724 50%, #3a2f20 58%, #1a1611 75%); background-size: 260% 100%; animation: ds-shimmer 1.4s linear infinite; }
.ds-mm-wait[hidden] { display: none; }
.ds-mm-wait > span { font-size: 12px; font-weight: 600; color: var(--ds-ink-2); }
@media (prefers-reduced-motion: reduce) { .ds-mm-wait { animation: none; } }
body.lab .ds-mm-pbig { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.ds-mm-pbig svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.ds-mm-pstage.playing .ds-mm-pbig, .ds-mm-pstage.editing .ds-mm-pbig { display: none; }
.ds-mm-pnote { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ds-ink-4); }
/* Every video in the batch as a small 9:16 tile: tap to preview, untick to skip. */
body.lab .ds-mm-ct-f { display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-mm-ct-f video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ds-mm-ct-f > i { position: absolute; left: 5px; bottom: 3px; z-index: 3; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
/* Batch rows: the first videos of the batch. */
.ds-mm-bthumbs { display: flex; align-items: center; gap: 4px; flex: none; }
.ds-mm-bt { position: relative; width: 30px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: #000; box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-mm-bt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-mm-bt .ds-mm-wait { opacity: .8; }
.ds-mm-bthumbs > b { font-size: 11.5px; font-weight: 700; color: var(--ds-ink-3); }
@media (max-width: 600px) { .ds-mm-bthumbs .ds-mm-bt:nth-child(n+3) { display: none; } }
/* Results: a video still exporting shows the moving gradient and can be previewed from its clips. */
.var-output-card > .ds-mm-wait { inset: 0 0 auto 0; aspect-ratio: 9 / 13; opacity: .7; }
body.lab .var-output-card > .ds-mm-cardpv { position: absolute; inset: 0 0 auto 0; z-index: 2; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 13; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ds-mm-cardpv > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ds-mm-cardpv svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.var-output-card > .ds-mm-st { z-index: 3; }
.ds-mm-pmodal { display: grid; gap: 10px; justify-items: center; }
body.lab .ds-mm-pmodal .ds-mm-pstage { width: min(300px, 70vw); }


/* ---------- Top videos (trends.js): campaign page card, Ideas › Top by campaign, and the video viewer ---------- */
.ds-trend { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ds-trend .ds-cardhead h2 { align-items: center; }
.ds-trend .ds-cardhead h2 a { color: inherit; text-decoration: none; }
.ds-trend .ds-cardhead h2 a:hover { text-decoration: underline; }
.ds-trend-kws { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ds-trend-kws > small { font-size: 12px; font-weight: 700; color: var(--ds-ink-3); margin-right: 2px; }
.ds-chip.ds-trend-kw { cursor: default; height: 24px; font-size: 12px; }
.ds-chip.ds-trend-kw.main { color: var(--ds-ink); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .45); }
body.lab .ds-trend-x { all: unset; cursor: pointer; margin-left: 2px; padding: 0 2px; font-size: 15px; line-height: 1; color: var(--ds-ink-3); }
body.lab .ds-trend-x:hover, body.lab .ds-trend-x:focus-visible { color: var(--ds-down); }
.ds-trend-kwlist { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; align-items: center; }
.ds-trend-status { font-size: 12px; color: var(--ds-ink-3); margin-left: 4px; }
.ds-trend-status.busy { color: var(--ds-amber); }
.ds-trend-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ds-trend-bar .ds-seg { max-width: 100%; overflow-x: auto; }
.ds-trend-note { font-size: 12.5px; color: var(--ds-ink-3); margin: 0; }
.ds-trend-empty { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--ds-r-md); background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-trend-empty p { margin: 0; color: var(--ds-ink-2); font-size: 13.5px; max-width: 60ch; }
.ds-trend-board { display: grid; gap: 16px; margin-top: 14px; }

/* the carousel: 9:16 tiles that scroll sideways, with arrows at the ends when there is more */
.ds-trend-carousel { position: relative; min-width: 0; }
.ds-trend-rail { list-style: none; margin: 0; padding: 2px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: thin; }
.ds-trend-compact .ds-trend-rail { grid-auto-columns: 176px; }
.ds-trend-tile { display: grid; gap: 8px; scroll-snap-align: start; min-width: 0; }
body.lab .ds-trend-open { all: unset; display: block; cursor: pointer; border-radius: 16px; }
body.lab .ds-trend-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ds-trend-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #3a2a1c, #1a140e); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .1); transition: transform .2s, box-shadow .2s; }
.ds-trend-open:hover .ds-trend-frame { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .22), 0 14px 30px rgba(0, 0, 0, .45); }
.ds-trend-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 26%, transparent 60%, rgba(0, 0, 0, .7)); }
.ds-trend-frame.ds-frame-wait { background: linear-gradient(160deg, #3d2c1d 0%, #2a1f15 48%, #18120d 100%); animation: none; }
.ds-trend-frame.ds-frame-wait::before { content: ""; position: absolute; inset: -30% -60%; background: linear-gradient(110deg, transparent 36%, rgba(255, 216, 77, .14) 44%, rgba(255, 246, 230, .22) 50%, rgba(255, 150, 90, .14) 56%, transparent 64%); animation: ds-trend-sweep 2s cubic-bezier(.45, 0, .25, 1) infinite; }
.ds-trend-frame.ds-frame-wait::after { display: block; background: radial-gradient(120% 55% at 50% 108%, rgba(255, 216, 77, .28), transparent 70%); animation: ds-trend-glow 2s ease-in-out infinite; }
.ds-trend-tile:nth-child(2) .ds-frame-wait::before, .ds-trend-tile:nth-child(2) .ds-frame-wait::after { animation-delay: .15s; }
.ds-trend-tile:nth-child(3) .ds-frame-wait::before, .ds-trend-tile:nth-child(3) .ds-frame-wait::after { animation-delay: .3s; }
.ds-trend-tile:nth-child(4) .ds-frame-wait::before, .ds-trend-tile:nth-child(4) .ds-frame-wait::after { animation-delay: .45s; }
.ds-trend-tile:nth-child(5) .ds-frame-wait::before, .ds-trend-tile:nth-child(5) .ds-frame-wait::after { animation-delay: .6s; }
@keyframes ds-trend-sweep { from { transform: translateX(-55%); } to { transform: translateX(55%); } }

/* While collecting (trends.js scanStage): a caption doc fills as a strip of videos runs through a glowing scanner.
   From design/video showing how the viral videos being scraped .mov. */
.ds-scan { --scan-g: 150, 232, 140; display: grid; gap: 18px; padding: 18px 0 30px; border-radius: var(--ds-r-md); background: radial-gradient(60% 50% at 50% 100%, rgba(255, 190, 110, .12), transparent 70%), radial-gradient(80% 80% at 0% 0%, rgba(120, 150, 90, .16), transparent 60%); overflow: hidden; }
.ds-scan-doc { justify-self: center; width: min(760px, calc(100% - 32px)); padding: 14px 18px 12px; border-radius: 16px; background: linear-gradient(170deg, rgba(255, 246, 230, .1), rgba(255, 246, 230, .04)); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .12), 0 20px 44px -20px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ds-scan-doch { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ds-ink-3); }
.ds-scan-count { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
.ds-scan-count b { font-size: 18px; font-weight: 800; color: var(--ds-ink); margin-right: 2px; }
.ds-scan-clip { height: calc(5 * 26px + 4 * 4px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 82%, transparent); }
.ds-scan-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; will-change: transform; }
.ds-scan-row { display: grid; grid-template-columns: 22px 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 26px; font-size: 13px; }
.ds-scan-row > span { font-size: 10.5px; font-weight: 700; color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
.ds-scan-row > span + span { color: var(--ds-ink-3); }
.ds-scan-row > b { position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ds-ink); }
.ds-scan-row > small { font-size: 10.5px; color: var(--ds-ink-4); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
/* a new row decodes in: the words sharpen while a faint echo slides off underneath them */
.ds-scan-row.in > b { animation: ds-scan-decode .4s cubic-bezier(.2, .7, .2, 1) both; }
.ds-scan-row.in > b::after { content: attr(data-t); position: absolute; left: 6px; top: 7px; font-weight: 600; color: var(--ds-ink-3); pointer-events: none; animation: ds-scan-echo .55s ease-out both; }
.ds-scan-row.in > span, .ds-scan-row.in > small { animation: ds-scan-fade .3s ease-out both; }
/* A caption still being read (a first search has none yet): word-shaped bars with light running through them. */
.ds-scan-row.reading > span:first-child::before { content: ""; display: block; width: 5px; height: 5px; margin: 0 auto; border-radius: 50%; background: rgb(var(--scan-g)); box-shadow: 0 0 6px rgba(var(--scan-g), .8); }
.ds-scan-row.reading > b { display: flex; gap: 5px; align-items: center; overflow: hidden; }
.ds-scan-row.reading > b i { flex: none; height: 9px; border-radius: 5px; background: linear-gradient(90deg, rgba(255, 246, 230, .2) 0 35%, rgba(255, 246, 230, .5) 50%, rgba(255, 246, 230, .2) 65%) 0 0 / 300% 100%; animation: ds-scan-read 1.1s linear infinite; }
.ds-scan-row.reading > small { color: var(--ds-ink-3); }
/* The scanner card reaches past the tiles and the sprocket line by the same --scan-over above and below. */
.ds-scan-belt { --scan-tw: 78px; --scan-over: 22px; --scan-band: calc(var(--scan-tw) * 16 / 9 + 12px); position: relative; height: calc(var(--scan-band) + 2 * var(--scan-over) + 30px); }
.ds-scan-strip { position: absolute; left: 0; right: 0; top: var(--scan-over); padding-bottom: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* the sprocket holes under the strip */
.ds-scan-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 9px, transparent 9px 15px); border-top: 1px solid rgba(255, 246, 230, .06); }
/* frames that already went through the scanner (left half) go soft */
.ds-scan-strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 14px; width: 50%; z-index: 1; -webkit-backdrop-filter: blur(2.5px) saturate(.8); backdrop-filter: blur(2.5px) saturate(.8); }
.ds-scan-run { display: flex; width: max-content; animation: ds-scan-run 12s linear infinite; will-change: transform; }
.ds-scan-f { flex: none; margin-right: 6px; width: var(--scan-tw); aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #4a3624, #241a12); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .08); }
.ds-scan-f.blank { background: linear-gradient(170deg, rgba(255, 236, 205, .14), transparent 45%), linear-gradient(160deg, #4a3624, #241a12); }
.ds-scan-f.b1 { background: linear-gradient(170deg, rgba(255, 236, 205, .1), transparent 45%), linear-gradient(160deg, #5a3f2c, #2b2018); }
.ds-scan-f.b2 { background: linear-gradient(170deg, rgba(255, 236, 205, .1), transparent 45%), linear-gradient(160deg, #3e3a2a, #1f1c15); }
.ds-scan-f.b3 { background: linear-gradient(170deg, rgba(255, 236, 205, .16), transparent 45%), linear-gradient(160deg, #6a4a32, #2e2117); }
.ds-scan-f.b4 { background: linear-gradient(170deg, rgba(255, 236, 205, .08), transparent 45%), linear-gradient(160deg, #34382a, #1a1c15); }
.ds-scan-f.b5 { background: linear-gradient(170deg, rgba(255, 236, 205, .12), transparent 45%), linear-gradient(160deg, #553828, #261912); }
.ds-scan-f.b6 { background: linear-gradient(170deg, rgba(255, 236, 205, .1), transparent 45%), linear-gradient(160deg, #46402e, #221e16); }
.ds-scan-f.b7 { background: linear-gradient(170deg, rgba(255, 236, 205, .14), transparent 45%), linear-gradient(160deg, #5e4430, #2a1d14); }
.ds-scan-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-scan-eye { position: absolute; left: 50%; top: 0; z-index: 2; display: grid; align-content: start; justify-items: center; gap: 12px; width: 124px; height: calc(var(--scan-band) + 2 * var(--scan-over)); padding-top: 14px; transform: translateX(-50%); border-radius: 16px; background: linear-gradient(180deg, rgba(44, 38, 30, .78), rgba(70, 50, 34, .62)); box-shadow: inset 0 0 0 1.5px rgba(var(--scan-g), .65), 0 0 18px 2px rgba(var(--scan-g), .35), 0 0 46px 8px rgba(var(--scan-g), .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ds-scan-eye::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 26px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: rgba(255, 214, 140, .85); filter: blur(7px); animation: ds-scan-lamp 2.4s ease-in-out infinite; }
.ds-scan-eye small { font-size: 8.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ds-ink-2); }
.ds-scan-wave { display: flex; align-items: center; gap: 2px; height: 34px; }
.ds-scan-wave i { width: 2px; height: 100%; border-radius: 2px; background: rgb(var(--scan-g)); box-shadow: 0 0 4px rgba(var(--scan-g), .7); transform: scaleY(.3); animation: ds-scan-wave 1.1s ease-in-out infinite; }
.ds-scan-wave i:nth-child(3n) { animation-duration: .8s; } .ds-scan-wave i:nth-child(4n+1) { animation-duration: 1.35s; } .ds-scan-wave i:nth-child(5n+2) { animation-duration: .95s; }
.ds-scan-wave i:nth-child(2n) { animation-delay: -.3s; } .ds-scan-wave i:nth-child(3n+1) { animation-delay: -.55s; } .ds-scan-wave i:nth-child(7n) { animation-delay: -.8s; }
.ds-scan.compact .ds-scan-belt { --scan-tw: 58px; --scan-over: 16px; }
.ds-scan.compact .ds-scan-eye { width: 96px; }
@keyframes ds-scan-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ds-scan-wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes ds-scan-lamp { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes ds-scan-decode { 0% { opacity: 0; filter: blur(5px); transform: translateY(6px); } 60% { opacity: 1; filter: blur(.5px); } 100% { filter: none; transform: none; } }
@keyframes ds-scan-echo { 0% { opacity: .55; transform: translate(0, 0); filter: blur(.5px); } 100% { opacity: 0; transform: translate(10px, 12px); filter: blur(2px); } }
@keyframes ds-scan-fade { from { opacity: 0; } }
@keyframes ds-scan-read { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-width: 600px) { .ds-scan-row { grid-template-columns: 18px 54px minmax(0, 1fr); } .ds-scan-row > small { display: none; } .ds-scan-doc { padding: 12px 14px 10px; } }
@media (prefers-reduced-motion: reduce) { .ds-scan-run, .ds-scan-wave i, .ds-scan-eye::after, .ds-scan-row.in > b, .ds-scan-row.in > b::after, .ds-scan-row.in > span, .ds-scan-row.in > small, .ds-scan-row.reading > b i { animation: none; } .ds-scan-row.in > b::after { display: none; } }
@keyframes ds-trend-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ds-trend-frame.ds-frame-wait::before { animation: none; opacity: 0; } .ds-trend-frame.ds-frame-wait::after { animation: none; opacity: .6; } }
.ds-trend-rank { position: absolute; z-index: 3; top: 10px; left: 10px; min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: var(--ds-r-pill); font-size: 15px; font-weight: 800; color: var(--ds-ink); background: rgba(20, 16, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .22); }
.ds-trend-rank.gold { color: var(--ds-on-accent); background: linear-gradient(180deg, var(--ds-accent-hi), var(--accent)); box-shadow: 0 4px 14px rgba(255, 216, 77, .4); }
.ds-trend-tag { position: absolute; z-index: 3; top: 12px; right: 10px; }
.ds-trend-playmark { position: absolute; z-index: 3; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 246, 230, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .25); opacity: .75; transition: opacity .2s, transform .2s; }
.ds-trend-playmark svg { width: 20px; height: 20px; margin-left: 3px; }
.ds-trend-open:hover .ds-trend-playmark, .ds-trend-open:focus-visible .ds-trend-playmark { opacity: 1; transform: scale(1.06); }
.ds-trend-views { position: absolute; z-index: 3; left: 12px; bottom: 11px; font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.ds-trend-len { position: absolute; z-index: 3; right: 12px; bottom: 12px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.ds-trend-meta { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
.ds-trend-meta b { font-size: 13.5px; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-trend-meta small { font-size: 12px; color: var(--ds-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-trend-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--ds-r-pill); font-size: 13px; font-weight: 800; color: var(--ds-ink-2); background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-trend-chip.up { color: var(--ds-up); background: rgba(123, 216, 159, .14); box-shadow: inset 0 0 0 1px rgba(123, 216, 159, .32); }
.ds-trend-chip.new { color: var(--accent); background: rgba(255, 216, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .36); }
.ds-trend-tag .ds-trend-chip { background: rgba(20, 16, 12, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.lab .ds-trend-arrow { position: absolute; z-index: 5; top: calc(50% - 34px); width: 42px; height: 42px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; display: grid; place-items: center; cursor: pointer; color: var(--ds-ink) !important; background: rgba(32, 28, 22, .9) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--ds-stroke-hi), 0 10px 26px rgba(0, 0, 0, .5) !important; transition: opacity .2s; }
.ds-trend-arrow svg { width: 20px; height: 20px; }
.ds-trend-arrow.prev { left: -8px; } .ds-trend-arrow.next { right: -8px; }
.ds-trend-carousel.at-start .ds-trend-arrow.prev, .ds-trend-carousel.at-end .ds-trend-arrow.next { opacity: 0; pointer-events: none; }

/* shared numbers in the viewer */
.ds-trend-head { display: flex; align-items: baseline; gap: 8px; }
.ds-trend-big { font-size: clamp(34px, 4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ds-ink); }
.ds-trend-lbl { font-size: 15px; color: var(--ds-ink-3); font-weight: 600; }
.ds-trend-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ds-trend-spark { width: 100%; height: 44px; display: block; }

/* the viewer: a large player beside the video's numbers; previous / next at the sides */
body.ds-tv-open { overflow: hidden; }
.ds-tv { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.ds-tv-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 4, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ds-tv-box { position: relative; display: flex; gap: 0; max-height: calc(100vh - 48px); max-width: min(980px, calc(100vw - 140px)); border-radius: 22px; overflow: hidden; background: var(--ds-glass-solid); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 30px 80px rgba(0, 0, 0, .6); }
.ds-tv-player { position: relative; flex: none; height: min(calc(100vh - 48px), 780px); aspect-ratio: 9 / 16; background: #000; }
.ds-tv-player.ds-tv-instagram { background: #fff; aspect-ratio: 10 / 16; }
.ds-tv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ds-tv-player:fullscreen { aspect-ratio: auto; height: 100%; width: 100%; }
body.lab .ds-tv-full { position: static; width: 34px; height: 34px; color: var(--ds-ink) !important; background: var(--ds-glass-2) !important; }
.ds-tv-full svg, .ds-tv-close svg { width: 17px; height: 17px; }
.ds-tv-info { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; overflow-y: auto; min-width: 0; }
.ds-tv-top { display: flex; align-items: center; gap: 10px; }
.ds-tv-top .ds-trend-rank { position: static; }
.ds-tv-kicker { font-size: 13px; font-weight: 800; color: var(--ds-ink-2); flex: 1; min-width: 0; }
.ds-tv-count { font-size: 12px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.lab .ds-tv-close { position: static; width: 34px; height: 34px; color: var(--ds-ink) !important; background: var(--ds-glass-2) !important; }
.ds-tv-who { font-size: 15px; font-weight: 800; color: var(--ds-ink); text-decoration: none; justify-self: start; align-self: flex-start; }
a.ds-tv-who:hover { color: var(--accent); }
.ds-tv-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ds-ink-3); }
.ds-tv-stat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ds-tv-stat svg { width: 15px; height: 15px; color: var(--ds-ink-3); }
.ds-tv-stat b { color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-tv-trend { margin: 0; padding: 10px 12px 8px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-tv-trend figcaption { font-size: 11.5px; color: var(--ds-ink-3); margin-top: 4px; }
.ds-tv-facts { margin: 0; font-size: 13px; color: var(--ds-ink-3); line-height: 1.5; }
.ds-tv-cap { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ds-ink-2); white-space: pre-line; max-height: 9.5em; overflow-y: auto; }
.ds-tv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ds-tv-hint { margin: 0; font-size: 11.5px; color: var(--ds-ink-3); }
body.lab .ds-tv-nav { position: relative; z-index: 2; flex: none; width: 48px; height: 48px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; display: grid; place-items: center; cursor: pointer; color: var(--ds-ink) !important; background: rgba(32, 28, 22, .92) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke-hi), 0 10px 26px rgba(0, 0, 0, .5) !important; }
.ds-tv-nav svg { width: 22px; height: 22px; }
body.lab .ds-tv-nav:disabled { opacity: .25; cursor: default; }

@media (max-width: 860px) {
  .ds-tv { padding: 0; }
  .ds-tv-box { flex-direction: column; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; border-radius: 0; overflow-y: auto; }
  .ds-tv-player, .ds-tv-player.ds-tv-instagram { height: 68vh; width: 100%; aspect-ratio: auto; }
  .ds-tv-info { width: auto; overflow: visible; }
  body.lab .ds-tv-nav { position: fixed; top: 34vh; }
  body.lab .ds-tv-nav.prev { left: 8px; } body.lab .ds-tv-nav.next { right: 8px; }
}
@media (max-width: 560px) {
  .ds-trend { padding: 16px 14px; }
  .ds-trend-rail, .ds-trend-compact .ds-trend-rail { grid-auto-columns: 158px; gap: 12px; }
  .ds-trend-arrow { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .ds-trend-frame, .ds-trend-playmark { transition: none; } }

/* =========================================================================
   Mix and match · New batch wizard (mixmatch.js, .ds-wz): a step rail, one step at a time, and a footer that reads
   the batch back as a formula next to one button. Dialogs (.ds-wzd) for the hook text styler and the video preview.
   ========================================================================= */
.ds-wz { display: grid; gap: 16px; }
.ds-wz [hidden], .ds-wzd [hidden] { display: none !important; }
.ds-wz svg, .ds-wzd svg { width: 16px; height: 16px; flex: none; }
.ds-wz-top { display: flex; align-items: center; gap: 12px; }
.ds-wz-top .grow { flex: 1; }
body.lab .ds-wz-top h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.ds-wz-top small { font-size: 13px; color: var(--ds-ink-3); font-weight: 600; }
body.lab .ds-wz-card { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100vh - 220px); padding: 0; border-radius: var(--ds-r-xl, 28px); }
.ds-wz-rail { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-right: 1px solid var(--ds-stroke); border-radius: var(--ds-r-xl, 28px) 0 0 var(--ds-r-xl, 28px); background: rgba(0, 0, 0, .14); }
body.lab .ds-wz-step { display: flex; align-items: center; justify-content: flex-start !important; gap: 12px; width: 100%; min-height: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 14px !important; background: none !important; box-shadow: none !important; text-align: left; color: var(--ds-ink-3) !important; cursor: pointer; transition: background .15s; }
body.lab .ds-wz-step:hover { background: var(--ds-glass-1) !important; }
body.lab .ds-wz-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ds-wz-step > i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--ds-ink-3); background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-wz-step > i svg { width: 14px; height: 14px; stroke-width: 2.6; }
.ds-wz-step > span { display: grid; gap: 1px; min-width: 0; }
.ds-wz-step b { font-size: 14px; font-weight: 700; color: var(--ds-ink-2); }
.ds-wz-step small { font-size: 12px; color: var(--ds-ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab .ds-wz-step.cur { background: var(--ds-glass-3) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 0 rgba(255, 255, 255, .07) !important; }
.ds-wz-step.cur > i { color: var(--ds-on-accent); background: var(--accent); box-shadow: 0 4px 14px -4px rgba(255, 196, 60, .7); }
.ds-wz-step.cur b { color: var(--ds-ink); }
.ds-wz-step.cur small { color: var(--ds-ink-3); }
.ds-wz-step.done > i { color: var(--accent); background: rgba(255, 216, 77, .14); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3); }
.ds-wz-step.need > i { color: var(--ds-down); box-shadow: inset 0 0 0 1.5px rgba(255, 107, 129, .55); }
.ds-wz-step.need small { color: #FF9AA9; }
.ds-wz-main { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 24px 26px 28px; }
.ds-wz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.lab .ds-wz-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); }
.ds-wz-head p { margin: 4px 0 0; max-width: 640px; font-size: 13.5px; line-height: 1.45; color: var(--ds-ink-3); }
.ds-wz-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-wz-empty, .ds-wz-note { margin: 0; font-size: 13px; color: var(--ds-ink-3); }
.ds-wz-note { font-size: 12.5px; color: var(--ds-ink-4); }
.ds-wz-warn { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #FFCF94; background: rgba(242, 169, 59, .1); box-shadow: inset 0 0 0 1px rgba(242, 169, 59, .28); }
.ds-wz-actions { display: flex; gap: 8px; }
/* Clip steps: an upload tile, then the clips. */
.ds-wz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px 14px; border-radius: 16px; }
.ds-wz-grid.var-drop-on { box-shadow: 0 0 0 2px var(--accent); background: rgba(255, 216, 77, .05); }
.ds-wz-grid > .ds-mmt-add { align-self: start; }
.ds-wz-grid .ds-mmt-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
body.lab .ds-mmt-frame { container-type: inline-size; }
.ds-mmt-dur { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(12, 10, 8, .62); font-variant-numeric: tabular-nums; pointer-events: none; }
body.lab .ds-wz-txt { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; max-width: 100%; min-height: 0 !important; height: 30px; padding: 0 10px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; font-size: 12px; font-weight: 700; color: var(--ds-ink-3) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; cursor: pointer; }
.ds-wz-txt svg { width: 13px; height: 13px; }
.ds-wz-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab .ds-wz-txt:hover { color: var(--ds-ink) !important; background: var(--ds-glass-2) !important; }
body.lab .ds-wz-txt.on { color: var(--ds-ink) !important; background: rgba(255, 216, 77, .1) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .32) !important; }
body.lab .ds-wz-txt.on svg { color: var(--accent); }
/* On-screen text and music: rows to tick. */
.ds-wz-tracks { display: grid; gap: 8px; border-radius: 16px; }
.ds-wz-tracks.var-drop-on { box-shadow: 0 0 0 2px var(--accent); }
.ds-wz-arow { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; padding: 4px 6px 4px 4px; border-radius: 14px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); transition: background .15s, box-shadow .15s; }
.ds-wz-arow.picked { background: rgba(255, 216, 77, .07); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .45); }
body.lab .ds-wz-arow > label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin: 0; padding: 10px; border: 0 !important; background: none !important; box-shadow: none !important; cursor: pointer; }
.ds-wz-arow input[type=checkbox], .ds-wz-sp:not(.ds-wz-spc) input, .ds-wz-switch input, .ds-wz-vk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ds-wz-box { position: relative; flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(255, 246, 230, .3); }
.ds-wz-arow.picked .ds-wz-box, label:has(input:checked) > .ds-wz-box { background: var(--accent); box-shadow: none; }
label:has(input:checked) > .ds-wz-box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #14120E; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
label:has(input:focus-visible) > .ds-wz-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-wz-arow label > span { display: grid; gap: 1px; min-width: 0; }
.ds-wz-arow label b { font-size: 14px; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-wz-arow label small { font-size: 12px; color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
body.lab .ds-wz-aplay.on { color: var(--ds-on-accent) !important; background: var(--accent) !important; }
.ds-wz-amenu .ds-mmt-more { position: relative; top: auto; left: auto; }
.ds-wz-amenu .ds-mmt-more > .ds-ico { opacity: 1 !important; background: transparent !important; }
.ds-wz-amenu .ds-mmt-menu { left: auto; right: 0; }
.ds-wz-amenu.menu-open { z-index: 20; }
/* Speed chips and the looks switch. */
.ds-wz-speeds { display: flex; flex-wrap: wrap; gap: 10px; }
body.lab .ds-wz-sp { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 84px; height: 64px; margin: 0; padding: 0 16px; border-radius: 16px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: pointer; transition: background .15s, box-shadow .15s; }
body.lab .ds-wz-sp:hover { background: var(--ds-glass-2); }
.ds-wz-sp b { font-size: 17px; font-weight: 800; color: var(--ds-ink-2); font-variant-numeric: tabular-nums; }
.ds-wz-sp small { font-size: 11px; color: var(--ds-ink-4); }
body.lab .ds-wz-sp:has(input:checked) { background: rgba(255, 216, 77, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .55); }
.ds-wz-sp:has(input:checked) b { color: var(--ds-ink); }
.ds-wz-sp:not(.ds-wz-spc):has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Custom speed: one tile, the same size as the others, with the speed typed straight into it. */
body.lab .ds-wz-spc { cursor: text; }
.ds-wz-spc > small { font-weight: 700; color: var(--ds-ink-3); }
.ds-wz-spc > span { display: inline-flex; align-items: baseline; gap: 2px; }
body.lab .ds-wz-spc input, body.lab .ds-wzv-own input { width: 58px; height: 26px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 6px !important; font: inherit; font-size: 17px; font-weight: 800; text-align: center; color: var(--ds-ink); background: transparent !important; box-shadow: none !important; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
body.lab .ds-wz-spc input::placeholder { color: var(--ds-ink-4); font-weight: 700; }
.ds-wz-spc input::-webkit-inner-spin-button, .ds-wzv-own input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.lab .ds-wz-spc input:focus, body.lab .ds-wzv-own input:focus { outline: none; background: rgba(0, 0, 0, .3) !important; }
.ds-wz-spc > span > i, .ds-wzv-own i { font-style: normal; font-weight: 800; color: var(--ds-ink-3); }
body.lab .ds-wz-spc.on, body.lab .ds-wz-spc:focus-within { background: rgba(255, 216, 77, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .55); }
body.lab .ds-wz-spc.on > small { color: var(--accent); }
.ds-wzv-speed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.lab .ds-wzv-own { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin: 0; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: text; }
body.lab .ds-wzv-own input { width: 52px; font-size: 13px; }
body.lab .ds-wzv-own.on, body.lab .ds-wzv-own:focus-within { color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .55); }
.ds-wz-sec { display: grid; gap: 10px; }
body.lab .ds-wz-sec h3 { margin: 0; font-size: 15px; color: var(--ds-ink); }
body.lab .ds-wz-switch { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--ds-glass-1); box-shadow: inset 0 0 0 1px var(--ds-stroke); cursor: pointer; max-width: 560px; }
.ds-wz-switch > i { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--ds-stroke); transition: background .15s; }
.ds-wz-switch > i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ds-ink-3); transition: transform .15s, background .15s; }
.ds-wz-switch:has(input:checked) > i { background: var(--accent); box-shadow: none; }
.ds-wz-switch:has(input:checked) > i::after { transform: translateX(18px); background: #14120E; }
.ds-wz-switch:has(input:focus-visible) > i { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-wz-switch > span { display: grid; gap: 2px; }
.ds-wz-switch b { font-size: 14px; color: var(--ds-ink); }
.ds-wz-switch small { font-size: 12.5px; color: var(--ds-ink-3); }
/* Review: every video of the batch. */
body.lab .ds-wz-cap { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ds-ink-3); }
body.lab .ds-wz-cap input { width: 72px; height: 36px; margin: 0; padding: 0 10px !important; border: 0 !important; border-radius: 10px !important; color: var(--ds-ink); background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; }
.ds-wz-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px 12px; }
.ds-wz-v { position: relative; display: grid; gap: 6px; min-width: 0; }
body.lab .ds-wz-vf { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 14px !important; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, #33261a, #17120d) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; container-type: inline-size; transition: transform .15s, opacity .15s; }
body.lab .ds-wz-vf:hover { transform: translateY(-1px); }
body.lab .ds-wz-vf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-wz-vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ds-wz-vn, .ds-wz-vsp { position: absolute; z-index: 3; bottom: 8px; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: rgba(12, 10, 8, .62); }
.ds-wz-vn { left: 8px; } .ds-wz-vsp { right: 8px; color: var(--accent); }
.ds-wz-vplay { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .5); transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity .15s, transform .15s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ds-wz-vplay svg { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 2px; }
.ds-wz-vf:hover .ds-wz-vplay, .ds-wz-vf:focus-visible .ds-wz-vplay { opacity: 1; transform: translate(-50%, -50%); }
body.lab .ds-wz-vk { position: absolute; z-index: 4; top: 8px; right: 8px; display: block; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.ds-wz-vk > i { position: absolute; inset: 0; border-radius: 50%; background: rgba(20, 16, 12, .55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.ds-wz-vk:has(input:checked) > i { background: var(--accent); box-shadow: none; }
.ds-wz-vk:has(input:checked) > i::after { content: ''; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #14120E; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ds-wz-vk:has(input:focus-visible) > i { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-wz-v.off .ds-wz-vf { opacity: .38; filter: grayscale(.7); }
.ds-wz-v.off small { text-decoration: line-through; }
body.lab .ds-wz-vedit { display: inline-flex; align-items: center; gap: 5px; justify-self: start; min-height: 0 !important; height: 26px; padding: 0 9px !important; border: 0 !important; border-radius: 999px !important; font-size: 12px; font-weight: 700; color: var(--ds-ink-3) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; cursor: pointer; }
.ds-wz-vedit svg { width: 12px; height: 12px; }
body.lab .ds-wz-vedit:hover { color: var(--ds-ink) !important; background: var(--ds-glass-2) !important; }
body.lab .ds-wz-v.tweaked .ds-wz-vedit { color: var(--accent) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .35) !important; }
.ds-wz-v small { font-size: 11.5px; color: var(--ds-ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Footer: Back · the formula · one button. */
.ds-wz-foot { grid-column: 2; position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--ds-stroke); border-radius: 0 0 var(--ds-r-xl, 28px) 0; background: linear-gradient(180deg, rgba(34, 29, 23, .82), rgba(26, 22, 17, .94)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ds-wz-formula { flex: 0 1 auto; margin: 0 auto; padding: 8px 16px; border-radius: var(--ds-r-pill); font-size: 13px; font-weight: 700; color: var(--ds-ink-2); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--ds-stroke); text-align: center; font-variant-numeric: tabular-nums; }
.ds-wz-formula.warn { color: #FFCF94; box-shadow: inset 0 0 0 1px rgba(242, 169, 59, .4); }
.ds-wz-foot .ds-wz-go { min-width: 168px; }
.ds-wz-foot .ds-wz-prev svg { width: 15px; height: 15px; }
/* Caption: the hook's font, look (outline / box / shadow / plain), alignment and x, scaled to the frame like the render. */
.ds-mm-cap { right: auto; width: 88.89%; font-family: var(--ff, 'TikTok Sans'), var(--ds-font, system-ui), sans-serif; font-weight: var(--fw, 800); }
.ds-mm-cap.fx-box, .ds-mm-cap.fx-shadow, .ds-mm-cap.fx-plain { -webkit-text-stroke: 0; }
.ds-mm-cap.fx-box > span { padding: calc(10 / 1080 * 100cqw) calc(18 / 1080 * 100cqw); border-radius: calc(12 / 1080 * 100cqw); background: color-mix(in srgb, var(--bg, #000) 55%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ds-mm-cap.fx-shadow { text-shadow: 0 calc(4 / 1080 * 100cqw) calc(14 / 1080 * 100cqw) rgba(0, 0, 0, .8); }
.ds-mmt-frame .ds-mm-cap { pointer-events: none; }
/* Dialogs */
.ds-wzd { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ds-wzd[data-wzd="style"] { z-index: 72; }
.ds-wzd-card { display: flex; flex-direction: column; width: min(980px, 100%); max-height: calc(100dvh - 40px); overflow: hidden; border-radius: 24px; color: var(--ds-ink); background: linear-gradient(180deg, #24201A, #1A1712); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke); outline: none; }
.ds-wzd-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; }
.ds-wzd-h > div:first-child { flex: 1; min-width: 0; }
body.lab .ds-wzd-h h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); }
.ds-wzd-h h2 small { font-size: 14px; font-weight: 600; color: var(--ds-ink-3); }
.ds-wzd-h p { margin: 4px 0 0; font-size: 13px; color: var(--ds-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab .ds-wzd-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; color: var(--ds-ink-2) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; cursor: pointer; }
body.lab .ds-wzd-x:hover { color: var(--ds-ink) !important; background: var(--ds-glass-2) !important; }
.ds-wzd-f { display: flex; align-items: center; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--ds-stroke); }
.ds-wzd-f .grow { flex: 1; }
.ds-wzd-f small { font-size: 12.5px; color: var(--ds-ink-4); }
.ds-wzd-f .ds-btn-primary { min-width: 140px; }
.ds-wzs-body, .ds-wzv-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 26px; padding: 4px 24px 22px; }
.ds-wzs-left, .ds-wzv-left { display: grid; gap: 10px; justify-items: center; align-content: start; position: sticky; top: 0; }
body.lab .ds-wzd .ds-mm-pstage { width: 100%; max-width: 300px; border-radius: 16px; }
.ds-wzs-guide { position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--accent); opacity: .8; pointer-events: none; }
.ds-wzs-stage [data-mm-cap-el]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ds-wzs-form, .ds-wzv-form { display: grid; gap: 18px; align-content: start; min-width: 0; }
body.lab .ds-wzs-f { display: grid; gap: 8px; margin: 0; min-width: 0; }
.ds-wzs-f > span { font-size: 12.5px; font-weight: 700; color: var(--ds-ink-3); }
.ds-wzs-f > span b { margin-left: 4px; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
body.lab .ds-wzs-f textarea { width: 100%; min-height: 70px; margin: 0; padding: 12px 14px; border: 0 !important; border-radius: 12px !important; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ds-ink); background: rgba(0, 0, 0, .28) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; resize: vertical; }
body.lab .ds-wzs-f textarea:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 3px rgba(255, 216, 77, .12) !important; }
.ds-wzs-emoji { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -8px; }
body.lab .ds-wzs-emoji button { display: grid; place-items: center; width: 34px; height: 34px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; font-size: 17px; background: transparent !important; box-shadow: none !important; cursor: pointer; }
body.lab .ds-wzs-emoji button:hover { background: var(--ds-glass-2) !important; }
.ds-wzs-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.lab .ds-wzs-fonts button { height: 42px; min-height: 0 !important; padding: 0 8px !important; border: 0 !important; border-radius: 12px !important; font-size: 17px; color: var(--ds-ink-2) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; cursor: pointer; overflow: hidden; white-space: nowrap; }
body.lab .ds-wzs-fonts button:hover { background: var(--ds-glass-2) !important; }
body.lab .ds-wzs-fonts button[aria-pressed="true"] { color: var(--ds-ink) !important; background: rgba(255, 216, 77, .1) !important; box-shadow: inset 0 0 0 2px var(--accent) !important; }
.ds-wzs-sw { display: flex; flex-wrap: wrap; gap: 10px; }
body.lab .ds-wzs-sw button { width: 30px; height: 30px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--c) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) !important; cursor: pointer; }
body.lab .ds-wzs-sw button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.ds-wzs-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; }
.ds-wzs-size { flex: 1 1 180px; }
.ds-wzs-size input[type=range], .ds-wzv-trim input[type=range] { width: 100%; margin: 0; accent-color: var(--accent); }
.ds-wzd .ds-seg { flex-wrap: wrap; justify-self: start; border-radius: 18px; }
.ds-wzv-nav { display: flex; gap: 4px; }
.ds-wzv-ctl { display: flex; gap: 6px; }
.ds-wzv-ctl svg, .ds-wzd [data-mm="splay"] svg { width: 13px; height: 13px; }
.ds-wzv-ctl [data-mm="vplay"] svg, .ds-wzd [data-mm="vplay"] svg { fill: currentColor; stroke: none; }
body.lab .ds-wzv-trim { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ds-ink-2); }
.ds-wzv-trim b { font-size: 12.5px; color: var(--ds-ink); text-align: right; font-variant-numeric: tabular-nums; }
.ds-wzv-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-wzv-text small { font-size: 12px; color: var(--ds-ink-4); }
.ds-wzv-reset { justify-self: start; }
/* Results tracker on the batch page. */
.ds-wz-done { display: grid; gap: 14px; margin: 4px 0 14px; padding: 20px 22px; border-radius: var(--ds-r-xl, 28px); }
.ds-wz-done-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.lab .ds-wz-done h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); }
.ds-wz-done h2 svg { width: 20px; height: 20px; color: var(--ds-up); stroke-width: 2.6; }
.ds-wz-done p { margin: 4px 0 0; font-size: 13.5px; color: var(--ds-ink-3); }
.ds-wz-done-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-wz-done-a svg { width: 16px; height: 16px; }
.ds-wz-more { position: relative; }
.ds-wz-more .ds-mmt-menu { top: 46px; left: auto; right: 0; min-width: 210px; }
.ds-wz-prog { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-wz-prog > i { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg, #F3C12E, var(--accent), #FFE98F); transition: width .4s ease; }
.ds-wz-prog.live > i { background: linear-gradient(110deg, #F3C12E 30%, #FFF0B0 50%, #F3C12E 70%); background-size: 240% 100%; animation: ds-shimmer 1.6s linear infinite; }
.ds-wz-hint { margin: 0; font-size: 12px; color: var(--ds-ink-4); }
/* The selection bar over a batch's videos (mixmatch.js selBar): select all, Not scheduled, Clear, then the actions.
   The Library's selection bar look; it stays in view while the grid scrolls under it. */
.ds-mmsel { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 54px; padding: 8px 10px 8px 16px; border-radius: 18px; background: rgba(28, 24, 19, .82); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 14px 30px -18px rgba(0, 0, 0, .7); transition: box-shadow .2s; }
.ds-mmsel.on { box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .4), 0 14px 30px -18px rgba(0, 0, 0, .7); }
body.lab .ds-mmsel-all { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ds-ink-2); white-space: nowrap; cursor: pointer; }
.ds-mmsel-all b { font-weight: 800; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
/* round ticks (!important: body.lab input paints every input as a text field) */
body.lab :is(.ds-mmsel-all, .ds-mmf-s .vx-pick) input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid rgba(255, 246, 230, .75) !important; border-radius: 50% !important; background-color: rgba(0, 0, 0, .35) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .4) !important; cursor: pointer; transition: background-color .15s, border-color .15s; }
body.lab :is(.ds-mmsel-all input:is(:checked, :indeterminate), .ds-mmf-s .vx-pick input:checked) { border-color: var(--accent) !important; background-color: var(--accent) !important; }
.ds-mmsel-all input:checked::after, .ds-mmf-s .vx-pick input:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #14120e; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ds-mmsel-all input:indeterminate::after { content: ""; width: 9px; height: 2px; border-radius: 1px; background: #14120e; }
.ds-mmsel-all input:focus-visible, .ds-mmf-s .vx-pick input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.lab .ds-mmsel .ds-chip { border: 0; font-family: inherit; }
.ds-mmsel .grow { flex: 1; }
@media (max-width: 640px) { .ds-mmsel { top: 4px; padding-left: 12px; } .ds-mmsel .grow { flex-basis: 100%; height: 0; } .ds-mmsel .ds-wz-done-a { width: 100%; flex-wrap: nowrap; } .ds-mmsel .ds-btn-primary { flex: 1; min-width: 0; } .ds-mmsel-rv > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds-wz-prog.live > i { animation: none; } }
/* The fill (mixmatch.js fillStage): the batch's videos land one by one in a grid, a 1:1 copy of
   design/video showing how the mixed ND MATCHED VIDEOS GENE.mov, in the app's warm dark and yellow. Every size is a share of one tile's width (--w), measured
   from the recording: 7 columns, column gaps .29w, row gaps .09w, a frame .45w wide at the sides. Phones get 4 columns. */
.ds-mmf { --mmf-gold: 255, 216, 77; --mmf-clay: 224, 122, 71; position: relative; container-type: inline-size; isolation: isolate; overflow: hidden; border-radius: 6px;
  background: radial-gradient(60% 50% at 50% 46%, rgba(255, 216, 77, .07), transparent 75%), linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 8%, transparent 92%, rgba(0, 0, 0, .45)), linear-gradient(180deg, #0b0907 0%, #12100c 25%, #17130e 45%, #14110c 75%, #100d0a 100%);
  box-shadow: inset 0 0 0 1px var(--ds-stroke), 0 18px 40px -18px rgba(0, 0, 0, .8); }
.ds-mmf.rolling { cursor: pointer; }
.ds-mmf > * { --cols: 7; --k: 9.64; --w: calc(100cqw / var(--k)); --th: calc(var(--w) * 16 / 9); --rg: calc(var(--w) * .09); }
@container (max-width: 560px) { .ds-mmf > * { --cols: 4; --k: 5.77; } .ds-mmf-view { --rows: var(--rows4) !important; } .ds-mmf-s { --r: var(--r4) !important; } .ds-mmf-h > span { max-width: 36%; } .ds-mmf-info { padding: 12px 6px 5px; } .ds-mmf-info > span { display: none; } }
/* the frame: four corner brackets, a hairline down each side, the header and the bottom rule with its notch */
.ds-mmf-br { position: absolute; width: calc(var(--w) * .135); height: calc(var(--w) * .135); border: 0 solid rgba(255, 226, 122, .8); pointer-events: none; }
.ds-mmf-br.tl { top: calc(var(--w) * .02); left: 2px; border-width: 2px 0 0 2px; border-color: rgba(var(--mmf-gold), .75); }
.ds-mmf-br.tr { top: calc(var(--w) * .02); right: 2px; border-width: 2px 2px 0 0; border-color: rgba(255, 246, 230, .5); }
.ds-mmf-br.bl { bottom: 2px; left: 2px; border-width: 0 0 2px 2px; box-shadow: -2px 2px 6px -2px rgba(var(--mmf-gold), .45); }
.ds-mmf-br.br { bottom: 2px; right: 2px; border-width: 0 2px 2px 0; }
.ds-mmf-side { position: absolute; top: 0; bottom: 0; width: max(1.5px, calc(var(--w) * .014)); filter: drop-shadow(0 0 calc(var(--w) * .03) rgba(242, 169, 59, .5)); pointer-events: none; background: linear-gradient(180deg, transparent 6%, rgba(var(--mmf-gold), .75) 35%, rgba(242, 169, 59, .7) 50%, rgba(var(--mmf-clay), .85) 68%, transparent 92%); }
.ds-mmf-side.l { left: calc(var(--w) * .045); }
.ds-mmf-side.r { right: calc(var(--w) * .045); background: linear-gradient(180deg, transparent 6%, rgba(255, 226, 122, .65) 35%, rgba(242, 169, 59, .7) 50%, rgba(var(--mmf-clay), .85) 68%, transparent 92%); }
.ds-mmf-h { position: absolute; left: calc(var(--w) * .025); right: calc(var(--w) * .45); top: calc(var(--w) * .09); display: flex; align-items: center; gap: calc(var(--w) * .05); transform: translateY(-50%); }
.ds-mmf-h > span { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; padding-right: calc(var(--w) * .05); background: #0b0907; font: 500 max(8px, calc(var(--w) * .07)) / 1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 226, 122, .85); }
.ds-mmf-h > i { flex: 1; }
/* the header line runs the whole header, so its pink sits over the dots (52% = the panel's centre) whatever the label */
.ds-mmf-h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(var(--w) * .012)); z-index: -1; background: linear-gradient(90deg, rgba(255, 246, 230, .15) 0%, rgba(255, 246, 230, .45) 20%, rgba(255, 246, 230, .45) 46%, rgba(var(--mmf-gold), .85) 51%, rgba(255, 246, 230, .45) 56%, rgba(255, 246, 230, .4) 80%, transparent 100%); }
.ds-mmf-h::after { content: ""; position: absolute; left: 40%; width: 24%; top: 50%; height: 8px; transform: translateY(-50%); z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--mmf-gold), .12), transparent); }
.ds-mmf-dots { position: absolute; left: 50%; top: calc(var(--w) * .195); display: flex; gap: calc(var(--w) * .085); transform: translate(-50%, -50%); pointer-events: none; }
.ds-mmf-dots b { width: max(3px, calc(var(--w) * .03)); height: max(3px, calc(var(--w) * .03)); border-radius: 50%; background: #FFF3D1; box-shadow: 0 0 calc(var(--w) * .04) calc(var(--w) * .005) rgba(var(--mmf-gold), .75); }
.ds-mmf-rule { position: absolute; left: calc(var(--w) * .45); right: calc(var(--w) * .45); bottom: calc(var(--w) * .1); height: max(1.5px, calc(var(--w) * .014)); pointer-events: none; background: linear-gradient(90deg, transparent 1%, rgba(var(--mmf-clay), .75) 14%, rgba(242, 169, 59, .85) 27%, rgba(255, 226, 122, .9) 38%, rgba(var(--mmf-gold), 1) 51%, rgba(255, 226, 122, .9) 64%, rgba(242, 169, 59, .85) 75%, rgba(var(--mmf-clay), .75) 87%, transparent 99%); filter: drop-shadow(0 0 1px rgba(242, 169, 59, .45)); }
.ds-mmf-rule::before { content: ""; position: absolute; left: 38%; right: 38%; top: calc(var(--w) * -.03); bottom: calc(var(--w) * -.03); pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--mmf-gold), .3), transparent 100%); filter: blur(calc(var(--w) * .015)); }
.ds-mmf-rule > i { position: absolute; left: 50%; top: 0; width: calc(var(--w) * .27); height: max(4px, calc(var(--w) * .05)); transform: translateX(-50%); border: 1px solid rgba(var(--mmf-gold), .8); border-top: 0; border-radius: 0 0 3px 3px; background: rgba(var(--mmf-gold), .18); }
/* the grid: three rows show; --shift (set by the fill's clock) slides it up a row at a time, and rows outside fade */
.ds-mmf-view { --rows: var(--rows7); position: relative; margin: calc(var(--w) * .34) calc(var(--w) * .45) calc(var(--w) * .33); height: calc(var(--rows) * var(--th) + (var(--rows) - 1) * var(--rg)); }
.ds-mmf-grid { display: grid; grid-template-columns: repeat(var(--cols), var(--w)); column-gap: calc(var(--w) * .29); row-gap: var(--rg); transform: translateY(calc(var(--shift, 0) * -1 * (var(--th) + var(--rg)))); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.ds-mmf-s { --r: var(--r7); position: relative; width: var(--w); height: var(--th); border-radius: calc(var(--w) * .04); background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 1px rgba(255, 240, 215, .08);
  opacity: clamp(0, calc(1 - max(var(--shift, 0) - var(--r), var(--r) - var(--shift, 0) - 2)), 1); transition: opacity .35s; }
/* an empty slot's corner glints */
.ds-mmf-s::before { content: ""; position: absolute; inset: 2px; border-radius: inherit; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 2px 2px, rgba(255, 240, 215, .7) 1px, transparent 1.6px), radial-gradient(circle at calc(100% - 2px) 2px, rgba(255, 240, 215, .7) 1px, transparent 1.6px), radial-gradient(circle at 2px calc(100% - 2px), rgba(255, 240, 215, .7) 1px, transparent 1.6px), radial-gradient(circle at calc(100% - 2px) calc(100% - 2px), rgba(255, 240, 215, .7) 1px, transparent 1.6px); }
.ds-mmf-s > img, body.lab .ds-mmf-s > video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: inherit; object-fit: cover; pointer-events: none; opacity: 0; }
.ds-mmf-s.on { z-index: 2; background: #000; box-shadow: 0 0 0 1px rgba(255, 240, 215, .18); }
/* a filled tile keeps small corner glints: a lime dot bottom-left, faint white ones on the right */
.ds-mmf-s.on::before { z-index: 2; inset: 1px; opacity: 1; background: radial-gradient(circle at 3px calc(100% - 3px), var(--dot) 1.6px, transparent 2.6px), radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), rgba(255, 246, 230, .45) 1px, transparent 2px), radial-gradient(circle at calc(100% - 3px) 3px, rgba(255, 246, 230, .35) 1px, transparent 2px); }
.ds-mmf-s.in::before { z-index: 2; animation: ds-mmf-glint .5s linear var(--at, 0ms) forwards; }
@keyframes ds-mmf-glint { 0%, 17% { opacity: .55; } 18%, 99% { opacity: 0; inset: 2px; } 100% { opacity: 1; inset: 1px; background: radial-gradient(circle at 3px calc(100% - 3px), var(--dot) 1.6px, transparent 2.6px), radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), rgba(255, 246, 230, .45) 1px, transparent 2px), radial-gradient(circle at calc(100% - 3px) 3px, rgba(255, 246, 230, .35) 1px, transparent 2px); } }
.ds-mmf-s.on > img, body.lab .ds-mmf-s.on > video { opacity: 1; }
/* landing: 500ms per tile, measured frame by frame (t=0 is the first visible frame) */
.ds-mmf-s.in { z-index: 1; animation: ds-mmf-land .5s linear var(--at, 0ms) forwards; }
.ds-mmf-s.in > img, body.lab .ds-mmf-s.in > video { animation: ds-mmf-focus .5s linear var(--at, 0ms) forwards; }
@keyframes ds-mmf-land {
  0% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: rgba(255, 214, 150, 0); transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0) calc(var(--w) * 0.011) rgba(255, 240, 215, 0), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0); }
  6.6% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: rgba(255, 214, 150, .12); transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0) calc(var(--w) * 0.011) rgba(255, 240, 215, 0.6), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.03), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.015), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.015); }
  13.3% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: rgba(255, 214, 150, .12); transform: scale(1.03); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0) calc(var(--w) * 0.012) rgba(255, 240, 215, 0.65), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.13), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.07), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.06); }
  20% { z-index: 3; border-radius: calc(var(--w) * .015); background-color: #000; transform: scale(1.045); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0.008) calc(var(--w) * 0.022) rgba(255, 246, 230, 0.8), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.36), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.18), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.17); }
  26.6% { z-index: 3; border-radius: calc(var(--w) * .012); background-color: #000; transform: scale(1.06); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0.01) calc(var(--w) * 0.03) rgba(255, 246, 230, 0.85), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.58), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.3), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.28); }
  33.3% { z-index: 3; border-radius: calc(var(--w) * .012); background-color: #000; transform: scale(1.065); box-shadow: 0 0 0 calc(var(--w) * .024) rgba(12, 10, 6, .92), 0 0 calc(var(--w) * .01) calc(var(--w) * .05) rgba(255, 246, 230, 0.85), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.8), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.4), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.42); }
  40% { z-index: 3; border-radius: calc(var(--w) * .012); background-color: #000; transform: scale(1.065); box-shadow: 0 0 0 calc(var(--w) * .024) rgba(12, 10, 6, .92), 0 0 calc(var(--w) * .01) calc(var(--w) * .05) rgba(255, 246, 230, 0.85), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.92), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.46), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.48); }
  46.6% { z-index: 3; border-radius: calc(var(--w) * .012); background-color: #000; transform: scale(1.065); box-shadow: 0 0 0 calc(var(--w) * .024) rgba(12, 10, 6, .92), 0 0 calc(var(--w) * .01) calc(var(--w) * .05) rgba(255, 246, 230, 0.85), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.88), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.44), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.45); }
  53.3% { z-index: 3; border-radius: calc(var(--w) * .015); background-color: #000; transform: scale(1.035); box-shadow: 0 0 0 calc(var(--w) * .016) rgba(12, 10, 6, .88), 0 0 calc(var(--w) * 0.01) calc(var(--w) * 0.048) rgba(255, 216, 77, 0.8), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.6), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.32), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.3); }
  60% { z-index: 3; border-radius: calc(var(--w) * .025); background-color: #000; transform: scale(1.015); box-shadow: 0 0 0 calc(var(--w) * .012) rgba(12, 10, 6, .75), 0 0 calc(var(--w) * .008) calc(var(--w) * .045) rgba(250, 205, 90, 0.7), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.45), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.24), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.21); }
  66.6% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: #000; transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0.006) calc(var(--w) * 0.03) rgba(242, 190, 90, 0), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.3), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.16), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.14); }
  73.3% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: #000; transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0.006) calc(var(--w) * 0.03) rgba(242, 190, 90, 0), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.18), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.09), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.08); }
  80% { z-index: 3; border-radius: calc(var(--w) * .04); background-color: #000; transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0) calc(var(--w) * 0.012) rgba(0, 0, 0, 0), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.1), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.05), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.045); }
  90% { z-index: 2; border-radius: calc(var(--w) * .04); background-color: #000; transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 calc(var(--w) * 0) calc(var(--w) * 0.012) rgba(0, 0, 0, 0), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0.04), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0.02), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0.02); }
  100% { z-index: 2; border-radius: calc(var(--w) * .04); background-color: #000; transform: scale(1); box-shadow: 0 0 0 calc(var(--w) * 0) rgba(12, 10, 6, 0), 0 0 0 1px rgba(255, 240, 215, .18), 0 0 calc(var(--w) * .16) calc(var(--w) * .12) rgba(255, 240, 210, 0), 0 0 calc(var(--w) * .3) calc(var(--w) * .14) rgba(255, 196, 90, 0), 0 0 calc(var(--w) * .4) calc(var(--w) * .15) rgba(224, 122, 71, 0); }
}
@keyframes ds-mmf-focus {
  0% { opacity: .1; filter: blur(calc(var(--w) * .06)) saturate(.55) brightness(.9) contrast(1); }
  6.6% { opacity: .75; filter: blur(calc(var(--w) * .06)) saturate(.55) brightness(.9) contrast(1); }
  13.3% { opacity: 1; filter: blur(calc(var(--w) * .035)) saturate(.9) brightness(1.12) contrast(.95); }
  19% { opacity: 1; filter: blur(calc(var(--w) * .02)) saturate(.88) brightness(1.15) contrast(.9); }
  20% { opacity: 1; filter: blur(0px) saturate(.86) brightness(1.15) contrast(.88); }
  33.3%, 46.6% { opacity: 1; filter: blur(0px) saturate(.82) brightness(1.28) contrast(.8); }
  53.3%, 69.6% { opacity: 1; filter: blur(0px) saturate(.86) brightness(1.2) contrast(.84); }
  70%, 100% { opacity: 1; filter: blur(0px) saturate(1) brightness(1) contrast(1); }
}
/* over the image: a warm veil while it is blurred, then the outline it leaves behind (900ms timeline): a teal rim with a
   hairline gap from 333ms and a teal-blue glow that lingers past 500ms, then a plain edge */
.ds-mmf-s.in::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; animation: ds-mmf-trail .9s linear var(--at, 0ms) forwards; }
@keyframes ds-mmf-trail {
  0% { background-color: rgba(255, 236, 205, 0); box-shadow: 0 0 0 0 rgba(12, 10, 6, 0), 0 0 0 0 rgba(255, 216, 77, 0), 0 0 0 0 rgba(242, 169, 59, 0.0), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.0); }
  3.7% { background-color: rgba(255, 236, 205, .15); }
  7.4% { background-color: rgba(255, 236, 205, .08); }
  11.1% { background-color: rgba(255, 236, 205, .03); }
  14.8% { background-color: rgba(255, 236, 205, 0); }
  33.3% { box-shadow: 0 0 0 0 rgba(12, 10, 6, 0), 0 0 0 0 rgba(255, 216, 77, 0), 0 0 0 0 rgba(242, 169, 59, 0.0), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.0); }
  37% { box-shadow: 0 0 0 calc(var(--w) * .018) rgba(12, 10, 6, .5), 0 0 0 calc(var(--w) * .045) rgba(255, 216, 77, .85), 0 0 calc(var(--w) * .1) calc(var(--w) * .03) rgba(242, 169, 59, 0.6), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.14); }
  40.7% { box-shadow: 0 0 0 calc(var(--w) * .018) rgba(12, 10, 6, .45), 0 0 0 calc(var(--w) * .044) rgba(255, 216, 77, .8), 0 0 calc(var(--w) * .1) calc(var(--w) * .03) rgba(242, 169, 59, 0.6), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.252); }
  45% { box-shadow: 0 0 0 calc(var(--w) * .017) rgba(12, 10, 6, .4), 0 0 0 calc(var(--w) * .041) rgba(255, 216, 77, .8), 0 0 calc(var(--w) * .1) calc(var(--w) * .03) rgba(242, 169, 59, 0.576), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.28); }
  50% { box-shadow: 0 0 0 calc(var(--w) * .014) rgba(12, 10, 6, .32), 0 0 0 calc(var(--w) * .036) rgba(255, 216, 77, .75), 0 0 calc(var(--w) * .1) calc(var(--w) * .03) rgba(242, 169, 59, 0.504), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.294); }
  59% { box-shadow: 0 0 0 calc(var(--w) * .009) rgba(12, 10, 6, .18), 0 0 0 calc(var(--w) * .026) rgba(255, 216, 77, .6), 0 0 calc(var(--w) * .1) calc(var(--w) * .025) rgba(242, 169, 59, 0.384), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.196); }
  67% { box-shadow: 0 0 0 0 rgba(12, 10, 6, 0), 0 0 0 1px rgba(255, 216, 77, .25), 0 0 calc(var(--w) * .1) calc(var(--w) * .02) rgba(242, 169, 59, 0.144), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.14); }
  78% { box-shadow: 0 0 0 0 rgba(12, 10, 6, 0), 0 0 0 1px rgba(255, 216, 77, 0), 0 0 calc(var(--w) * .1) calc(var(--w) * .02) rgba(242, 169, 59, 0.048), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.056); }
  87%, 100% { background-color: rgba(255, 236, 205, 0); box-shadow: 0 0 0 0 rgba(12, 10, 6, 0), 0 0 0 1px rgba(255, 216, 77, 0), 0 0 calc(var(--w) * .1) calc(var(--w) * .02) rgba(242, 169, 59, 0.0), 0 0 calc(var(--w) * .2) calc(var(--w) * .12) rgba(255, 200, 120, 0.0); }
}
/* while a render runs: unfinished videos wait, soft and pulsing */
.ds-mmf-s.dev > img, body.lab .ds-mmf-s.dev > video { filter: blur(calc(var(--w) * .06)) brightness(.8); animation: ds-mmf-dev 1.6s ease-in-out infinite; }
@keyframes ds-mmf-dev { 0%, 100% { opacity: .3; } 50% { opacity: .6; } }
body.lab .ds-mmf-skip { position: absolute; right: calc(var(--w) * .45); bottom: calc(var(--w) * .14); z-index: 3; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
body.lab .ds-mmf-skip:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds-mmf-s { --dot: rgba(255, 240, 215, .45); }
.ds-mmf-s.st-ready, .ds-mmf-s.st-posted { --dot: var(--ds-up); }
.ds-mmf-s.st-making { --dot: var(--ds-amber); }
.ds-mmf-s.st-fail { --dot: var(--ds-down); }
.ds-mmf-s.st-sched { --dot: var(--ds-ready); }
/* after the fill the grid is the batch's videos: every row shows, and each tile opens its video */
.ds-mmf.settled .ds-mmf-view { height: auto; }
.ds-mmf.settled .ds-mmf-grid { transform: none; }
.ds-mmf.settled .ds-mmf-s { opacity: 1; }
/* the hook's words on a video that isn't rendered yet, sized against the tile like the export */
.ds-mmf-capw { position: absolute; inset: 0; z-index: 1; container-type: inline-size; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ds-mmf-s.in > .ds-mmf-capw { animation: ds-mmf-focus .5s linear var(--at, 0ms) both; }
body.lab .ds-mmf .ds-mmf-s > .ds-mmf-open { all: unset; position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer; }
.ds-mmf.rolling .ds-mmf-open { cursor: inherit; }
body.lab .ds-mmf .ds-mmf-s > .ds-mmf-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ds-mmf-info { position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 18px 8px 7px; border-radius: 0 0 calc(var(--w) * .04) calc(var(--w) * .04); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.2; pointer-events: none; opacity: 0; transition: opacity .15s; }
.ds-mmf-info b { font-size: 12px; font-weight: 800; }
.ds-mmf-info > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-mmf-info::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--dot); order: 2; }
.ds-mmf.settled .ds-mmf-s:hover .ds-mmf-info, .ds-mmf.settled .ds-mmf-s:focus-within .ds-mmf-info { opacity: 1; }
.ds-mmf.settled .ds-mmf-s:hover { z-index: 3; box-shadow: 0 0 0 1px rgba(255, 240, 215, .5), 0 0 calc(var(--w) * .12) calc(var(--w) * .02) rgba(255, 216, 77, .22); }
/* ticking a finished video, to schedule or send just those */
.ds-mmf-s .vx-pick { position: absolute; top: 4px; left: 4px; z-index: 4; display: grid; place-items: center; width: auto; height: auto; margin: 0; padding: 3px; border-radius: 50%; background: none; opacity: 0; transition: opacity .15s; }
/* the ticks show on hover, and on every ready video once one is selected */
.ds-mmf.settled .ds-mmf-s:hover .vx-pick, .ds-mmf.picking .vx-pick, .ds-mmf-s .vx-pick:focus-within, .ds-mmf-s.picked .vx-pick { opacity: 1; }
.ds-mmf.rolling .vx-pick { display: none; }
.ds-mmf .ds-mmf-s.picked, .ds-mmf.settled .ds-mmf-s.picked:hover { box-shadow: 0 0 0 2px var(--accent), 0 0 calc(var(--w) * .14) rgba(255, 216, 77, .35); }
.ds-mmf.settled.picking .ds-mmf-s:not(:has(.vx-pick)) { opacity: .4; } /* still rendering: can't be selected yet */
/* a video opened from the grid: its actions under the player */
.ds-mmf-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ds-mmf-acts svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .ds-mmf-grid, .ds-mmf-s { transition: none; } .ds-mmf-s.in, .ds-mmf-s.in::after, .ds-mmf-s.in > .ds-mmf-capw, .ds-mmf-s.in > img, body.lab .ds-mmf-s.in > video, .ds-mmf-s.dev > img, body.lab .ds-mmf-s.dev > video { animation: none; } .ds-mmf-s.in > img, body.lab .ds-mmf-s.in > video { opacity: 1; } }
@media (max-width: 900px) {
  body.lab .ds-wz-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
  .ds-wz-rail { grid-row: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ds-stroke); border-radius: var(--ds-r-xl, 28px) var(--ds-r-xl, 28px) 0 0; padding: 10px; scrollbar-width: none; }
  body.lab .ds-wz-step { flex: none; width: auto; padding: 8px 12px 8px 8px !important; }
  .ds-wz-step small { display: none; }
  .ds-wz-foot { grid-column: 1; flex-wrap: wrap; border-radius: 0 0 var(--ds-r-xl, 28px) var(--ds-r-xl, 28px); padding: 12px 16px; }
  .ds-wz-formula { order: -1; flex: 1 1 100%; }
  .ds-wz-foot .ds-wz-go { flex: 1; min-width: 0; }
  .ds-wz-main { padding: 18px 16px 22px; }
  .ds-wzs-body, .ds-wzv-body { grid-template-columns: minmax(0, 1fr); }
  .ds-wzs-left, .ds-wzv-left { position: static; }
  body.lab .ds-wzd .ds-mm-pstage { max-width: 220px; }
}
@media (max-width: 560px) {
  .ds-wzd { padding: 0; }
  .ds-wzd-card { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .ds-wz-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 10px; }
  .ds-wz-vgrid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
/* The tracker (and its ⋯ menu) sits above the video cards, and holds the page's one primary button. */
body.lab .ds-wz-done { z-index: 4; }
body.lab #app .var-output-grid .var-output-card footer .button.primary { color: var(--ds-ink) !important; background: var(--ds-glass-3) !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab #app .var-output-grid .var-output-card footer .button.primary:hover:not([disabled]) { background: rgba(255, 246, 230, .18) !important; }

/* Shared dialog: "Restored what you typed last time · Start over" (app.js keepModalDraft) */
.ds-draftnote{margin:0 0 12px;padding:8px 12px;border-radius:10px;background:rgba(255,216,77,.08);color:var(--ds-text-2,#cfc6b4);font-size:13px}
.ds-draftnote button{margin-left:6px}

/* =========================================================================
   Staff kit (ds-kit.js): avatar, stat sizes, meter, empty state, month bars, warn pill.
   Used by Student wins, Students, a student's page and Programs.
   ========================================================================= */
.ds-av { --av: 32px; position: relative; width: var(--av); height: var(--av); flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, #3A3128, #241F19); box-shadow: inset 0 0 0 1px rgba(255, 246, 230, .14); }
.ds-av b { font-size: calc(var(--av) * .36); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ds-ink-2); }
.ds-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-pill.ds-warn { --c: #E0B62E; }
.ds-stat-lead .ds-stat-val, .ds-stat-lead > strong { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; color: var(--ds-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-stat-sm .ds-stat-val { font-size: 24px; letter-spacing: -.03em; }
.ds-stat-val small { font-size: .6em; font-weight: 700; color: var(--ds-ink-3); letter-spacing: 0; }
.ds-stat-val.green-t { color: var(--ds-up) !important; }
.ds-meter { height: 6px; border-radius: var(--ds-r-pill); background: rgba(255, 246, 230, .08); overflow: hidden; }
.ds-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ds-empty { display: grid; justify-items: start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.ds-empty p { margin: 0; font-size: 13.5px; color: var(--ds-ink-3); }
/* Month bars: left $ axis, recessive gridlines, one accent series, label under each bar. */
.ds-bars { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; padding-top: 18px; }
.ds-bars-y { position: relative; height: var(--plot); min-width: 34px; }
.ds-bars-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; font-weight: 600; color: var(--ds-ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-bars-plot { position: relative; height: var(--plot); }
.ds-bars-gl { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(255, 246, 230, .07); }
.ds-bars-gl:first-child { border-top-color: rgba(255, 246, 230, .18); }
.ds-bars-cols { position: absolute; inset: 0; display: grid; gap: 10px; }
.ds-bar { position: relative; height: 100%; outline: none; cursor: default; }
.ds-bar i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(44px, 62%); height: var(--h); border-radius: 4px 4px 0 0; background: var(--accent); transition: filter .15s; }
.ds-bar.dim i { background: repeating-linear-gradient(135deg, rgba(255, 216, 77, .55) 0 4px, rgba(255, 216, 77, .25) 4px 8px); }
.ds-bar:not(.now) i { opacity: .72; }
.ds-bar:hover i, .ds-bar:focus-visible i { filter: brightness(1.12); opacity: 1; }
.ds-bar:focus-visible i { box-shadow: 0 0 0 2px var(--ds-glass-solid), 0 0 0 4px var(--accent); }
.ds-bar b { position: absolute; left: 50%; bottom: calc(var(--h) + 6px); transform: translateX(-50%); font-size: 12px; font-weight: 800; color: var(--ds-ink); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; }
.ds-bar.now b { opacity: 1; }
.ds-bar span { position: absolute; left: 0; right: 0; top: calc(100% + 8px); text-align: center; font-size: 12px; font-weight: 600; color: var(--ds-ink-3); }
.ds-bar.now span { color: var(--ds-ink); }
.ds-bars { padding-bottom: 28px; }
@media (prefers-reduced-motion: reduce) { .ds-bar i { transition: none; } }
/* Campaign logo tile: the campaign's image, or its initials, filling a rounded square (campaignLogo() inside .ds-logo). */
.ds-logo { --lg: 42px; width: var(--lg); height: var(--lg); flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-logo .campaign-logo, body.lab .ds-logo .campaign-logo-empty { display: grid; place-items: center; width: 100% !important; height: 100% !important; max-width: none; max-height: none; flex-basis: auto !important; margin: 0; border: 0 !important; border-radius: 0 !important; background: none !important; object-fit: cover; color: var(--ds-ink-2) !important; font-size: calc(var(--lg) * .3) !important; font-weight: 800; letter-spacing: -.02em; }

/* =========================================================================
   One segmented switch everywhere: .ds-seg (dsKit.seg), the older .lab-seg, and link tab strips draw the same
   track, the same option and the same selected state (aria-pressed, aria-selected, aria-current or .on).
   ========================================================================= */
body.lab #app .lab-seg { display: inline-flex; padding: 4px; gap: 2px; border: 0; border-radius: var(--ds-r-pill); background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--ds-stroke), inset 0 1px 3px rgba(0, 0, 0, .35); }
body.lab #app .lab-seg button { height: 30px; min-width: 0; padding: 0 14px !important; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: none !important; box-shadow: none !important; color: var(--ds-ink-3) !important; font-size: 13px; font-weight: 700; }
body.lab #app :is(.ds-seg, .lab-seg) button:hover:not([aria-pressed="true"]):not(.on) { color: var(--ds-ink) !important; }
body.lab :is(.ds-seg, #app .lab-seg) button:is([aria-pressed="true"], [aria-selected="true"], .on),
body.lab #app :is(.ec-tabs a[aria-current], .ep-tabs a[aria-current], .lc-tabs button.active) {
  color: var(--ds-ink) !important; background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35) !important;
}
body.lab :is(.ds-seg, .lab-seg) button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Money inputs ($ prefix, unit suffix) outside the campaign dialog: Editors rate, credits settings and rules dialogs */
body.lab .ds-cf-input > i + input { padding-left: 28px !important; }
body.lab .ds-cf-input > input { width: 100%; padding-right: 96px !important; font-variant-numeric: tabular-nums; }
body.lab .ds-cf-input > input::-webkit-inner-spin-button, body.lab .ds-cf-input > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.lab .ds-cf-input > input[type=number] { -moz-appearance: textfield; }
body.lab #app :is(.ec-tabs a, .ep-tabs a, .lc-tabs button) { height: 30px; font-size: 13px; font-weight: 700; }
body.lab #app .ep-controls .ep-tabs, body.lab #app .ep-logged > .ep-tabs { margin: 0; }
/* Deals, staff view: placements at a glance (deals.js staffCard) */
.ds-deals .deal-staff { gap: 12px; }
.ds-deals .deal-staff-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ds-deals .deal-staff-top .ds-logo { --lg: 44px; }
.deal-staff-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.deal-staff-meta .deal-pay { min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ds-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-staff-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
.deal-staff-nums span { display: grid; gap: 2px; min-width: 0; }
.deal-staff-nums small { font-size: 11.5px; font-weight: 600; color: var(--ds-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-staff-nums b { font-size: 18px; font-weight: 800; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.deal-staff-nums b i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ds-ink-3); }
.deal-staff-nums b.deal-hot { color: var(--accent); }
.ds-deals .deal-staff .ds-meter > span { background: var(--ds-up); }
.deal-staff-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; min-width: 0; }
.deal-staff-bottom .ds-deal-plats { flex: 1; min-width: 0; overflow: hidden; flex-wrap: nowrap; }
.deal-staff-bottom .ds-btn { flex: none; margin-left: auto; }
.deal-staff-none { font-size: 12px; color: var(--ds-ink-3); white-space: nowrap; }

/* Form dialogs, applied by dsKit.formDialog() across the staff pages: even spacing between fields, readable hints,
   checkbox rows that never stretch, one style for every field. */
body.lab .ds-dform > :not(.modal-header):not(.actions) + :not(.actions) { margin-top: 14px; }
body.lab .ds-dform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
body.lab .ds-dform fieldset.ds-pf-accounts { padding: 14px 16px; gap: 10px; }
body.lab .ds-dform fieldset > p, body.lab .ds-dform > p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ds-ink-2); }
body.lab .ds-dform label small { font-size: 12px; font-weight: 500; color: var(--ds-ink-4); }
body.lab .ds-dform input[type=checkbox], body.lab .ds-dform input[type=radio] { width: 16px !important; height: 16px; min-height: 0; margin: 0; padding: 0 !important; flex: none; accent-color: var(--accent); }
body.lab .ds-dform label:has(> input[type=checkbox]), body.lab .ds-dform label:has(> input[type=radio]) { display: flex !important; align-items: center; gap: 10px; font-size: 13px !important; color: var(--ds-ink-2) !important; }
body.lab .ds-dform .grid2, body.lab .ds-dform .ec-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0; }
body.lab .ds-dform .ec-form-grid label, body.lab .ds-dform .grid2 label { align-content: start; }
body.lab .ds-dform input[type=number]::-webkit-inner-spin-button, body.lab .ds-dform input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.lab .ds-dform input[type=number] { -moz-appearance: textfield; }
body.lab .ds-dform details > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ds-ink-2); }
body.lab .ds-dform .ec-error:not([hidden]) { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 107, 129, .1); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, .3); font-size: 13px; color: #FFB3BF; }
/* Assign dialog (team.js): same label style as every other dialog */
body.lab .ds-dform .assign-field { font-size: 12.5px !important; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.lab .ds-dform .assign-order { margin: 0; display: inline-flex; padding: 3px 10px; border-radius: var(--ds-r-pill); background: var(--ds-glass-2); font-size: 12.5px; color: var(--ds-ink-2); }
body.lab .ds-dform .assign-bulk { margin: 6px 0 0; font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--accent); }
body.lab .ds-dform [data-assign-clear] { justify-self: start; }
/* The × never gets the focus ring just because the dialog opened; keyboard focus still shows */
body.lab .ds-dform .modal-close:focus:not(:focus-visible) { outline: none; }
@media (max-width: 560px) { body.lab .ds-dform .grid2, body.lab .ds-dform .ec-form-grid { grid-template-columns: minmax(0, 1fr); } }
/* Field labels: the label text and any short hint share the first line; the field takes the full width below */
body.lab .ds-dform label:not(:has(> input[type=checkbox])):not(:has(> input[type=radio])) { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 6px; }
body.lab .ds-dform label:not(:has(> input[type=checkbox])):not(:has(> input[type=radio])) > :is(input, select, textarea, .ds-cf-input, span.ds-cf-input) { flex: 1 1 100%; }
body.lab .ds-dform label > small { margin: 0; }
/* Optional groups written as plain <details> read as the same collapsible panel */
body.lab .ds-dform details:not(.ds-dsec):not(.ds-about) { border-radius: 14px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); padding: 0 14px; }
body.lab .ds-dform details:not(.ds-dsec):not(.ds-about) > summary { list-style: none; min-height: 44px; display: flex; align-items: center; }
body.lab .ds-dform details:not(.ds-dsec):not(.ds-about) > summary::-webkit-details-marker { display: none; }
body.lab .ds-dform details:not(.ds-dsec):not(.ds-about) > summary::after { content: "▾"; margin-left: auto; color: var(--ds-ink-4); }
body.lab .ds-dform details[open]:not(.ds-dsec):not(.ds-about) { padding-bottom: 14px; display: grid; gap: 12px; }
/* Add someone: the editor sign-in link */
.tm-signin { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); font-size: 12.5px; color: var(--ds-ink-3); }
.tm-signin[hidden] { display: none; }
.tm-signin-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-signin-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ds-ink-2); }
/* Deals placement rules: platforms as a compact grid of checkboxes */
body.lab .ds-dform .deal-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
body.lab .ds-dform .deal-platforms legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--ds-ink-3); }
@media (max-width: 560px) { body.lab .ds-dform .deal-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Shared campaign assets dialog (campaign-assets.js): same material and controls as the other dialogs */
body.lab dialog.ca-dialog { width: min(760px, calc(100vw - 32px)); border: 0; border-radius: 24px; background: linear-gradient(180deg, #24201A, #1A1712); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke); outline: none; }
body.lab dialog.ca-dialog:focus, body.lab dialog.ca-dialog:focus-visible { outline: none; }
body.lab dialog.ca-dialog::backdrop { background: rgba(8, 6, 4, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab .ca-dialog .ca-close { width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; display: grid; place-items: center; border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-1) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink-2) !important; font-size: 20px; line-height: 1; }
body.lab .ca-dialog .ca-close:hover { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; }
body.lab .ca-dialog .ca-contribute { border: 0; border-radius: 14px; background: rgba(255, 246, 230, .035); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .ca-dialog .ca-contribute > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ds-ink-2); }
body.lab .ca-dialog .ca-contribute > summary::-webkit-details-marker { display: none; }
@media (max-width: 560px) { body.lab dialog.ca-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; } }
/* A field the page hides (e.g. the assign dialog's custom date) stays hidden whatever the label layout */
body.lab .ds-dform [hidden]:not(#_) { display: none !important; }

/* =========================================================================
   Dropdowns and date/time pickers (ds-controls.js). The native field stays the trigger, so it keeps the look of the form
   it sits in; this adds one chevron, one calendar and one clock icon everywhere, and the popover they open.
   :not(#_):not(#_) outranks the page rules that reset `background` with !important.
   ========================================================================= */
body.lab select:not([multiple]):not([size]):not(#_):not(#_) {
  -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5A898' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 13px center !important; background-size: 14px 14px !important;
}
body.lab select:not([multiple]):not([size]):not(#_):not(#_):is(:hover, :focus, [aria-expanded="true"]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD84D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}
body.lab select option, body.lab select optgroup { background: #1E1A15; color: #F6F1E6; }
body.lab :is(input[type=date], input[type=time], input[type=datetime-local]) { color-scheme: dark; font-variant-numeric: tabular-nums; }
@media (any-pointer: fine) {
  body.lab :is(input[type=date], input[type=datetime-local]):not([data-native]):not(#_):not(#_) {
    cursor: pointer; padding-right: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5A898' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px 16px !important;
  }
  body.lab input[type=time]:not([data-native]):not(#_):not(#_) {
    cursor: pointer; padding-right: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5A898' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px 16px !important;
  }
  body.lab :is(input[type=date], input[type=time], input[type=datetime-local]):not([data-native])::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
  body.lab :is(input[type=date], input[type=time], input[type=datetime-local])[aria-expanded="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 3px rgba(255, 216, 77, .12) !important; }
}

.ds-pop {
  position: fixed; inset: auto; z-index: 1000; margin: 0; padding: 6px; border: 0; border-radius: 16px; overflow: visible;
  color: var(--ds-ink); background: linear-gradient(180deg, #26221B, #1B1813);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke);
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; animation: ds-pop-in .13s ease-out;
}
@keyframes ds-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .ds-pop { animation: none; } }
body.lab .ds-pop button { margin: 0; min-height: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; font: inherit; cursor: pointer; }
body.lab .ds-pop button:disabled { opacity: .3; cursor: default; }
body.lab .ds-pop :is(button, [role=option]):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* dropdown list */
.ds-pop-search { padding: 4px 4px 8px; }
body.lab .ds-pop-search input { width: 100%; height: 38px; min-height: 0; margin: 0; padding: 0 12px 0 34px !important; border: 0 !important; border-radius: 10px !important; font-size: 13.5px !important;
  background: rgba(0, 0, 0, .3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5A898' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") no-repeat 11px center / 15px !important;
  box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink) !important; }
body.lab .ds-pop-search input:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent) !important; }
.ds-pop-opts { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; outline: none; }
.ds-pop-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 10px; border-radius: 10px; cursor: pointer; color: var(--ds-ink-2); }
.ds-pop-opt > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-pop-opt svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.ds-pop-opt.active { background: var(--ds-glass-2); color: var(--ds-ink); }
.ds-pop-opt.on { color: var(--ds-ink); font-weight: 700; }
.ds-pop-opt[aria-disabled] { opacity: .4; cursor: default; }
.ds-pop-opt[hidden], .ds-pop-group[hidden] { display: none; }
.ds-pop-gl { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-3); }
.ds-pop-group + .ds-pop-group, .ds-pop-opt + .ds-pop-group { margin-top: 4px; border-top: 1px solid rgba(255, 246, 230, .07); }
.ds-pop-none { margin: 0; padding: 14px 10px; color: var(--ds-ink-3); font-size: 13px; text-align: center; }

/* calendar */
.ds-pop-cal { padding: 14px; }
.ds-pop-calbox { width: 268px; }
.ds-pop-dt { display: flex; gap: 14px; }
.ds-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ds-pop-head b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
body.lab .ds-pop .ds-pop-nav { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50% !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; }
body.lab .ds-pop .ds-pop-nav:hover:not(:disabled) { background: var(--ds-glass-3) !important; }
.ds-pop-nav svg { width: 16px; height: 16px; }
.ds-pop-week, .ds-pop-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ds-pop-week span { padding: 4px 0 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ds-ink-4); }
body.lab .ds-pop .ds-pop-day { position: relative; height: 36px; padding: 0; border-radius: 10px !important; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.lab .ds-pop .ds-pop-day:hover:not(:disabled):not(.on) { background: var(--ds-glass-2) !important; }
body.lab .ds-pop .ds-pop-day.out { color: var(--ds-ink-4) !important; }
.ds-pop-day.today:not(.on)::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
body.lab .ds-pop .ds-pop-day.on { background: var(--accent) !important; color: #14120E !important; font-weight: 800; box-shadow: 0 6px 16px -8px rgba(255, 216, 77, .7) !important; }
.ds-pop-foot { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 246, 230, .07); }
.ds-pop-foot:empty { display: none; }
body.lab .ds-pop .ds-pop-chip { height: 30px; padding: 0 12px; border-radius: 999px !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; font-size: 12.5px; font-weight: 700; color: var(--ds-ink-2) !important; }
body.lab .ds-pop .ds-pop-chip:hover { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; }
body.lab .ds-pop .ds-pop-chip.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent) !important; color: var(--accent) !important; }
body.lab .ds-pop .ds-pop-clear { margin-left: auto; background: none !important; box-shadow: none !important; color: var(--ds-ink-3) !important; }

/* time list (alone, or beside the calendar) */
.ds-pop-tpop { width: 148px; }
.ds-pop-times { display: flex; flex-direction: column; width: 128px; padding-left: 14px; border-left: 1px solid rgba(255, 246, 230, .07); }
.ds-pop-tl { margin: 6px 0 12px; font-size: 14.5px; font-weight: 700; text-align: center; }
.ds-pop-tlist { max-height: 260px; }
.ds-pop-dt .ds-pop-tlist { flex: 1; max-height: 300px; }
body.lab .ds-pop .ds-pop-time { display: block; width: 100%; height: 34px; padding: 0 10px; border-radius: 9px !important; text-align: left; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ds-ink-2) !important; }
body.lab .ds-pop .ds-pop-time:hover:not(.on) { background: var(--ds-glass-2) !important; color: var(--ds-ink) !important; }
body.lab .ds-pop .ds-pop-time.on { background: var(--accent) !important; color: #14120E !important; font-weight: 800; }
@media (max-width: 560px) {
  .ds-pop-dt { flex-direction: column; }
  .ds-pop-times { width: auto; padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255, 246, 230, .07); }
  .ds-pop-dt .ds-pop-tlist { max-height: 150px; }
}
.ds-pop-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* dsKit.confirm: a small "are you sure" dialog. Stays a centred card on phones, with Cancel visible beside the main button. */
body.lab dialog.ds-dialog.ds-confirm { width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: 92vh; max-height: 92svh; border-radius: 22px !important; }
body.lab .ds-confirm .ds-dform { padding-bottom: 0; }
body.lab .ds-confirm .modal-header { margin-bottom: 8px; }
body.lab .ds-confirm .ds-confirm-body { color: var(--ds-ink-2); font-size: 14.5px; line-height: 1.55; }
body.lab .ds-confirm .ds-confirm-body p { margin: 0 0 8px; }
body.lab .ds-confirm .actions { position: static; gap: 8px; margin-top: 18px; }
body.lab .ds-confirm .actions > button { height: 44px; min-width: 0; padding: 0 20px !important; }
body.lab .ds-dform .actions > button[type=submit].ds-danger { background: linear-gradient(180deg, #FF8A9B, #E8566C) !important; color: #1A0A0D !important; box-shadow: 0 10px 24px -12px rgba(255, 107, 129, .8) !important; }
/* The shared modal() asked as an "are you sure" ({danger:true}): same card, Cancel shown, no ×. */
body.lab .ds-confirm .ds-dform .actions > [data-close]:not(.primary) { display: inline-flex !important; align-items: center; }
body.lab .ds-confirm .ds-dform .modal-close { display: none !important; }
body.lab .ds-confirm .ds-dform > p, body.lab .ds-confirm .ds-dform .tm-dlg-lede { font-size: 14.5px; line-height: 1.55; color: var(--ds-ink-2); }
@media (max-width: 560px) {
  body.lab dialog.ds-dialog.ds-confirm { width: calc(100vw - 24px); height: fit-content; max-height: 92dvh; border-radius: 22px !important; }
  body.lab .ds-confirm .ds-dform { height: auto; max-height: 92dvh; padding: 18px 16px 0; }
  body.lab .ds-confirm .actions { margin: 18px -16px 0; }
  body.lab .ds-confirm .actions > button { flex: 1; width: auto !important; }
}


/* =========================================================================
   Sweep: Account, onboarding, Discord, editor
   ========================================================================= */
/* Topbar account switcher (account.js): a ⋯-style menu of accounts instead of a <select>, so switching only happens on an explicit pick */
body.lab #topbar .acx.ds-menuwrap { position: relative; }
body.lab #topbar .acx .ds-vmenu { top: calc(100% + 6px); right: 0; z-index: 60; max-width: min(320px, calc(100vw - 32px)); }
body.lab #topbar .acx .ds-vmenu [role=menuitem] { overflow: hidden; text-overflow: ellipsis; }
/* Phones: the top bar row clips overflow, so the menu is placed against the bar itself */
@media (max-width: 760px) { body.lab #topbar .acx .ds-vmenu { position: fixed; top: 56px; right: 16px; } }


/* =========================================================================
   Sweep: Shell helpers (app.js): error toasts and remaining app.js markup
   ========================================================================= */
/* Error toast: toast(text,{error:true}) in app.js */
body.lab #toast.ds-toast-error { background: color-mix(in srgb, var(--ds-down) 24%, #1A1712) !important; color: var(--ds-ink) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-down) 55%, transparent), 0 14px 34px -12px rgba(0, 0, 0, .7) !important; }
/* Workspace load error (app.js bootstrap); loading uses .ds-loading below */
body.lab .ds-boot { display: grid; gap: 12px; justify-items: start; max-width: 560px; margin: 48px auto; padding: 24px; }
body.lab .ds-boot h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: var(--ds-ink); }
body.lab .ds-boot p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ds-ink-3); }
/* Small block helper (replaces inline display:block) */
body.lab .ds-block { display: block; }
/* Campaign form: the one-line terms note has no paragraph margin */
body.lab .ds-cf .ds-cf-notice { margin: 0; }
/* Guest editing request page: glass cards instead of the legacy panel */
body.lab .batch-detail-grid .ds-glass { background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)) !important; border: 0 !important; border-radius: var(--ds-r-lg) !important; padding: 16px; }
/* Not-found pages: empty state under the heading */
body.lab .edit-missing .ds-empty { margin-top: 12px; }
/* New editing request: send status line */
body.lab .ticket-send-note { margin: 0 0 12px; }


/* =========================================================================
   Sweep: Money and staff pages
   ========================================================================= */
/* Money and staff pages (deals, summary, payments, simulator, views, wins, coach, check-ins, invites) */
/* Error state: a ds-empty with a red edge, the message, and Try again */
body.lab .ds-empty.ds-alert { background: color-mix(in srgb, var(--ds-down) 7%, var(--ds-well)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-down) 38%, transparent); }
body.lab .ds-empty.ds-alert p { color: var(--ds-ink-2); }
/* Deals: a campaign brief keeps its line breaks */
body.lab .deal-brief { white-space: pre-wrap; }
/* Creator summary: stat tiles, one-line notes, loading */
body.lab .ds-esum .ds-stat.lab-kpi > .ds-stat-lbl { font-size: 12.5px; color: var(--ds-ink-3); }
body.lab .ds-esum .ds-stat.lab-kpi > .ds-stat-sub { font-size: 12px; color: var(--ds-ink-3); }
body.lab .ds-esum .ds-stat.lab-kpi > b.ds-stat-val { font-size: 32px; letter-spacing: -.035em; }
body.lab .ds-esum .ds-stat.lab-kpi select { justify-self: start; width: auto; height: 34px; min-height: 0; margin-top: 4px; }
body.lab .ds-esum .sum-info { margin: 0; }
body.lab .sum-loading { margin: 0; font-size: 13.5px; color: var(--ds-ink-3); }
/* Payments received: stat tiles (the outstanding tile stays amber when money is owed) */
body.lab .cp-stats .cp-due { box-shadow: inset 0 0 0 1px rgba(255, 184, 107, .35); }
body.lab .cp-stats .cp-due .ds-stat-val { color: #FFB86B; }
body.lab .cp-panel { display: grid; gap: 14px; padding: 20px 22px; }
body.lab .cp-panel .cp-stats .ds-stat { min-width: 140px; }
/* Earnings simulator: caveats behind About these numbers */
body.lab .sim-about { margin-top: 14px; }
body.lab .sim-about p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--ds-ink-3); }
/* Views: raw-measurement flags in the shared pill tones; exact times behind an info icon; the focusable chart */
body.lab .ds-rawflags .perf-badge.ds-pill { height: auto; padding: 1px 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
body.lab .ds-rawv .ds-tipwrap { margin-left: 6px; vertical-align: middle; }
body.lab .ds-varea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
/* Student wins: search hides rows in place */
body.lab .wn-table > a[hidden], body.lab .wn-table > .wn-none[hidden] { display: none; }
/* Coach: the large logo tile in the publish dialog; a student's four numbers; ticket pills */
body.lab .ds-logo.co-logo-lg { --lg: 64px; }
body.lab .co-stu-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
@media (max-width: 1100px) { body.lab .co-stu-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.lab .co-stu-kpis { grid-template-columns: minmax(0, 1fr); } }
body.lab .cmp-tk > .ds-pill { flex: none; }
/* Coaching check-in: the file picker as a secondary button */
body.lab .sp-panel .sp-file-label { flex-direction: row; width: max-content; margin: 8px 0 0; }
body.lab .sp-panel .sp-file-label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
body.lab .sp-panel .sp-file-off { opacity: .45; cursor: not-allowed; }
/* Student lifetime performance: refresh icon, and loading/error states in the ds look */
body.lab .student-perf-refresh { font-size: 17px; line-height: 1; }
body.lab .student-perf .ds-empty.student-perf-empty { padding: 14px 16px; text-align: left; }


/* =========================================================================
   Sweep: Shell, sidebar, Home, palette and connections
   ========================================================================= */
/* ⌘K search (palette.js): the design-system glass dialog, rows and keys */
body.lab .pk-back { background: rgba(6, 5, 4, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lab .pk { border: 0; border-radius: var(--ds-r-lg); background: linear-gradient(180deg, var(--ds-glass-2), var(--ds-glass-1)), var(--ds-glass-solid); box-shadow: var(--ds-shadow), inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink); }
body.lab .pk-in { border-bottom: 1px solid var(--ds-stroke); color: var(--ds-ink-3); }
body.lab .pk-in input { color: var(--ds-ink) !important; }
body.lab .pk-g { color: var(--ds-ink-3); letter-spacing: .06em; }
body.lab .pk-r { border-radius: var(--ds-r-md) !important; color: var(--ds-ink) !important; }
body.lab .pk-r:hover { background: var(--ds-glass-2) !important; }
body.lab .pk-r.on { background: var(--ds-glass-3) !important; box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .3) !important; }
body.lab .pk-r:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.lab .pk-r small { color: var(--ds-ink-3); }
body.lab .pk-none { color: var(--ds-ink-3); }
body.lab .pk-foot { border-top: 1px solid var(--ds-stroke); color: var(--ds-ink-3); }
body.lab :is(.pk, .pk-open) kbd { border: 0; border-radius: 6px; background: var(--ds-glass-2); box-shadow: inset 0 0 0 1px var(--ds-stroke); color: var(--ds-ink-3); }
body.lab #topbar .pk-open { border: 0 !important; border-radius: var(--ds-r-pill) !important; background: var(--ds-glass-2) !important; box-shadow: inset 0 0 0 1px var(--ds-stroke) !important; color: var(--ds-ink-3) !important; }
body.lab #topbar .pk-open:hover { background: var(--ds-glass-3) !important; color: var(--ds-ink) !important; }


/* =========================================================================
   Sweep: Editing team pages
   ========================================================================= */
body.lab .av-foot { color: var(--ds-ink-3); }


/* =========================================================================
   Sweep: Lab Chat, Mix and match, apply picker, campaigns, library, Ideas
   ========================================================================= */
/* Page header actions and subtitle next to lab-head ds-phead (Library, review link page, Mix and match campaign page) */
body.lab .ds-phead-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.lab .ds-phead-sub { margin: 6px 0 0; color: var(--ds-ink-3); font-size: 14px; line-height: 1.45; }

/* Apply-to-videos picker (apply.js): same glass dialog as the other ds dialogs */
body.lab .ap { border: 0; border-radius: 24px; background: linear-gradient(180deg, #24201A, #1A1712); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke); }
body.lab .ap-h .ap-x { flex: none; margin-left: auto; font-size: 20px; line-height: 1; }
body.lab .ap-list, body.lab .ap-f { border-top-color: var(--ds-stroke); }
body.lab .ap-f { background: transparent; }
body.lab .ap-list > .ds-empty { margin: 12px 8px; }

/* Campaign page: a home account's labelled Disconnect button (campaigns.js) */
body.lab .cmp-acct-on .cmp-disc { margin-left: auto; height: 26px; padding: 0 10px !important; font-size: 12px; }

/* Edit clip (variations-plus.js): glass card, ds-seg tabs, quiet notes */
body.lab .vx-ed { border: 0; border-radius: 24px; background: linear-gradient(180deg, #24201A, #1A1712); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--ds-stroke); }
body.lab .ds-seg [role="tab"][aria-selected="true"] { color: var(--ds-ink) !important; background: linear-gradient(180deg, rgba(255, 246, 230, .22), rgba(255, 246, 230, .12)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35) !important; }
body.lab .vx-note { margin: 0; color: var(--ds-ink-3); font-size: 12.5px; line-height: 1.5; }

/* Unfinished-batch and missing-clips rows (variation-setup.js) */
body.lab .var-setup-notice.ds-glass { padding: 14px 18px; border-radius: var(--ds-r-lg); }
body.lab .var-setup-warn strong { color: var(--ds-ink); }

/* Screen-reader-only text: pinned to the left edge of its positioning parent, so a label inside a horizontally scrolling
   board (whose own position is static) can never widen the page. */
.ds-sr, .sr-only { left: 0 !important; top: auto; }

/* =========================================================================
   Review fixes after the sweep
   ========================================================================= */
/* Review fixes: shell */
/* Discord: the inline Save/Assign buttons are ds-btn now; match the 42px selects beside them and keep them at their natural width. */
body.lab #app .dc-card .dc-actions .ds-btn, body.lab #app .dc-inline .ds-btn { width: auto; flex: none; }
body.lab #app .dc-inline .ds-btn { height: 42px; min-height: 0 !important; }

/* Review fixes: money */
/* Money tiles: long text values wrap inside their tile instead of spilling into the next one (ds-stat-val is nowrap by default). */
body.lab .ds-stat .ds-stat-val.ds-long { white-space: normal; }
body.lab .co-stu-kpis .ds-stat-val, body.lab .co-kpis .ds-stat-lead .ds-stat-val { white-space: normal; }
body.lab .ep-quota-stats .ds-stat-val { white-space: normal; }
/* Creator summary: the "known subtotal" note sits on its own line under the big figure */
body.lab .ds-esum .sum-kpis .ds-stat-val small { display: block; margin-top: 4px; white-space: normal; }
body.lab .ds-esum .sum-kpis .ds-stat-val small::first-letter { text-transform: uppercase; }
/* Students roster: the tuned tile padding that used to hang off .lab-kpi */
@media (min-width: 761px) { body.lab .co-kpis .ds-stat { padding: 16px 18px; } }

/* Review fixes: editing */
/* The hidden attribute must win over .ds-infoline's display:flex (e.g. the ticket send-status note, app.js updateTicketComposer) */
body.lab .ds-infoline[hidden] { display: none; }

/* Review fixes: calendar */
/* Remove video in the post form: .ds-btn sets display, so honour [hidden]; keep it from stretching in the .post-video grid */
body.lab .post-video [data-post-clear] { justify-self: start; }
body.lab .post-video [data-post-clear][hidden] { display: none; }

/* Review fixes: create */
/* Apply picker: the dialog takes focus on touch devices when it opens; no focus ring on the panel itself */
body.lab .ap:focus { outline: none; }
/* Students roster: one row of four tiles (lead + three); .ds-metrics' three-column default must not win here. hub.css keeps the tablet and phone layouts. */
body.lab .co-kpis.ds-metrics { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }

/* =========================================================================
   Earnings split (dsKit.split): base, CPM and bonus as one bar with a labelled key. Text stays in ink; colour marks identity.
   ========================================================================= */
.ds-split { display: grid; gap: 8px; min-width: 0; }
.ds-split-bar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--ds-glass-1); }
.ds-split-bar i { display: block; min-width: 3px; height: 100%; }
.ds-split-sm .ds-split-bar { height: 6px; }
.ds-split-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ds-ink-2); }
.ds-split-sm .ds-split-key { font-size: 12px; gap: 2px 10px; color: var(--ds-ink-3); }
.ds-split-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ds-split-key i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.ds-split-key b { color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-split-key em { font-style: normal; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.ds-split-base { background: var(--ds-ready); }
.ds-split-cpm { background: var(--accent); }
.ds-split-bonus { background: var(--ds-up); }
/* Student page: where the money comes from (overview) and what each deal paid (campaign cards) */
body.lab .co-report .co-earnsplit { display: grid; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--ds-well); box-shadow: inset 0 0 0 1px var(--ds-stroke); }
body.lab .co-report .co-earnsplit-hd { display: flex; align-items: center; gap: 8px; }
body.lab .co-report .co-earnsplit-hd h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ds-ink); }
body.lab .co-report .co-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 2px; }
body.lab .co-report .co-rates span { display: grid; gap: 2px; min-width: 0; }
body.lab .co-report .co-rates small { font-size: 12px; color: var(--ds-ink-3); }
body.lab .co-report .co-rates b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
body.lab .co-report .co-campaign-card > .co-cpay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
body.lab .co-report .co-cpay p { margin: 0; font-size: 13px; color: var(--ds-ink-2); }
body.lab .co-report .co-deal { font-weight: 700; color: var(--ds-ink) !important; }
body.lab .co-report .co-deal small { margin-right: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-ink-3); }
body.lab .co-report .co-campaign-card .co-crate b { display: inline; font-size: inherit; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { body.lab .co-report .co-rates { grid-template-columns: minmax(0, 1fr); } }
/* Students list: all-time earnings split on each card */
body.lab .co-roster .co-rsplit { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 246, 230, .06); }
body.lab .co-roster .co-rsplit > small { font-size: 12px; color: var(--ds-ink-3); }
body.lab .co-roster .co-rsplit > small b { color: var(--ds-ink); font-variant-numeric: tabular-nums; }
/* Pay history: Month · Videos · Base · CPM and bonus · Total */
body.lab .co-pay-history .co-pay-months > div { grid-template-columns: 1.5fr .5fr .8fr .9fr .9fr !important; }
@media (max-width: 700px) { body.lab .co-pay-history .co-pay-months > div { grid-template-columns: 1.2fr .8fr .8fr .9fr !important; } body.lab .co-pay-history .co-pay-months > div > span:nth-child(2) { display: none; } body.lab .co-pay-history .co-pay-months > div > span:nth-child(4) { display: block; } }
/* Phone (390px): My campaigns says "known subtotal" under its amount, so the figure never widens its card or the page. */
.ds-camps .ds-stat-val small.ds-known, .ds-camps .lab-ccard .terms b small.ds-known { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: normal; color: var(--ds-ink-3); }
/* Home earnings calendar: the same caption under the amount in the stat tiles and the selected day, so "$2,010 known subtotal" never overflows a phone tile. */
.ds-pnl .lab-sum { white-space: normal; }
.ds-pnl b small.ds-known, .lab-dash .lab-selday .ds-dpsum .amt small.ds-known { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: normal; color: var(--ds-ink-3); }
/* Library folders on a phone wrap as chips instead of each taking the full row (which left only "All videos" in view). */
@media (max-width: 850px) {
  body.lab .ds-lib .ds-lfolders { flex-wrap: wrap; overflow: visible; gap: 4px; }
  body.lab .ds-lib .lib-folder { flex: 0 1 auto; width: auto; max-width: 100%; height: 34px; }
  body.lab .ds-lib .lib-folder span { flex: 0 1 auto; }
}

/* =========================================================================
   Loading state — dsKit.loading(text): one component for every "Loading…" on a page.
   A full-width glass card with a spinner, the message and skeleton rows shaped like the list that is coming,
   so a page never shows a small floating box. { inline: true } is the one-line version inside a card.
   It fades in after a short delay, so fast loads never flash.
   ========================================================================= */
body.lab .ds-loading { display: grid; gap: 18px; width: 100%; box-sizing: border-box; margin: 0 0 16px; padding: 20px 22px 22px; text-align: left; animation: ds-loading-in .3s ease-out .15s both; }
body.lab .ds-loading-hd { display: flex; align-items: center; gap: 10px; min-height: 20px; }
body.lab .ds-loading-hd p, body.lab .ds-loading-hd h1 { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--ds-ink-2); }
body.lab .ds-spin { flex: none; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--ds-glass-3); border-top-color: var(--ds-accent-hi); animation: ds-spin .8s linear infinite; }
body.lab .ds-loading-rows { display: grid; }
body.lab .ds-loading-rows > i { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ds-stroke); }
body.lab .ds-loading-rows > i:first-child { border-top: 0; padding-top: 2px; }
body.lab .ds-loading-rows > i::before, body.lab .ds-loading-rows > i > b, body.lab .ds-loading-rows > i::after { content: ""; display: block; border-radius: 8px; background: linear-gradient(90deg, var(--ds-glass-1), var(--ds-glass-3), var(--ds-glass-1)); background-size: 200% 100%; animation: ds-shimmer 1.4s linear infinite; }
body.lab .ds-loading-rows > i::before { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; }
body.lab .ds-loading-rows > i > b { height: 12px; width: 46%; }
body.lab .ds-loading-rows > i > b + b { grid-column: 2; height: 10px; width: 28%; opacity: .7; }
body.lab .ds-loading-rows > i::after { grid-column: 3; grid-row: 1 / 3; width: 72px; height: 26px; border-radius: var(--ds-r-pill); }
body.lab .ds-loading-rows > i:nth-child(2) > b:first-child { width: 58%; }
body.lab .ds-loading-rows > i:nth-child(3) > b:first-child { width: 38%; }
body.lab .ds-loading-rows > i:nth-child(n+2) { opacity: .75; }
body.lab .ds-loading-rows > i:nth-child(n+3) { opacity: .5; }
body.lab .ds-loading-inline { display: inline-flex; align-items: center; gap: 10px; width: auto; margin: 0; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--ds-ink-3); animation: ds-loading-in .3s ease-out .15s both; }
body.lab .ds-loading-inline .ds-spin { width: 14px; height: 14px; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-loading-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { body.lab .ds-loading { padding: 16px; } body.lab .ds-loading-rows > i::after { width: 52px; } }
@media (prefers-reduced-motion: reduce) {
  body.lab .ds-loading, body.lab .ds-loading-inline, body.lab .ds-loading-rows > i::before, body.lab .ds-loading-rows > i > b, body.lab .ds-loading-rows > i::after { animation: none; }
  body.lab .ds-spin { animation-duration: 2.4s; }
}

/* Bulk assignment keeps selection readable on narrow screens. */
.tk-bulk-orders { max-height: 45vh; overflow-y: auto; }
body.lab .ds-dform .tk-bulk-order { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 0; }
.tk-bulk-order input { width: 18px; height: 18px; flex-shrink: 0; }
.tk-bulk-order span { min-width: 0; overflow-wrap: anywhere; }
.tk-bulk-order small { display: block; }
/* Phones: popup forms fit the visible screen (above Safari's toolbar) and scroll inside without bouncing the page. */
body.lab .ds-postform, body.lab dialog.pd-dialog #modalForm, body.lab .ds-cf-form, body.lab .ds-dform { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { body.lab .ds-postform .actions, body.lab .ds-dform .actions, body.lab .ds-cf-form .actions { padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important; } }
/* Cover picker: a tapped frame opens big over the form, with arrows and Use as cover. */
body.lab .ds-framebig, .ds-framebig { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(10,10,12,.86) !important; padding: 16px; }
.ds-framebig-in { position: relative; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.ds-framebig-in img { display: block; max-width: min(92vw, 520px); max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ds-framebig-in p { color: #fff; }
body.lab .ds-framebig-bar, body.lab .ds-framebig-bar span { display: flex; align-items: center; gap: 10px; color: #fff !important; font-size: 13px; }
body.lab .ds-framebig-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50% !important; border: 0 !important; background: rgba(0,0,0,.55) !important; color: #fff !important; font-size: 16px; z-index: 1; }
.ds-frames-any canvas { width: 96px !important; }
/* Latest posts: tiles never get narrower than 120px, and every text line under a tile stays on its own line with "…"
   instead of running into the next tile. */
.lab-dash .lab-latest .lab-thumbs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; }
.lab-dash .lab-latest .ds-vtile, .ds-vmeta, .ds-vmeta > * { min-width: 0; }
.ds-vmeta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-vmeta .meta { display: flex; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.ds-vmeta .meta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-vmeta .meta > :last-child { flex: none; max-width: 55%; }
/* Bulk upload: a brand's saved posting slots. */
.ds-bk-slots { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--ds-stroke); border-radius: 12px; }
.ds-bk-slotshead { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.ds-bk-slotchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ds-bk-slotchip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--ds-glass-3, #f1f2f4); font-size: 12.5px; font-weight: 600; }
body.lab .ds-bk-slotchip button { width: 20px; height: 20px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ds-ink-3) !important; }
body.lab .ds-bk-slotchips input[type=time] { width: 120px; height: 28px !important; min-height: 28px !important; padding: 0 8px !important; font-size: 12.5px !important; border-radius: 999px !important; }
.ds-bk-slotmode > label:nth-of-type(2), .ds-bk-slotmode > label:nth-of-type(3), .ds-bk-slotmode .ds-bk-gap { display: none !important; }
body.lab .ds-bk-slotchips input[type=time] { flex: 0 0 140px !important; width: 140px !important; background: var(--ds-glass-solid, #fff) !important; border: 1px dashed var(--ds-stroke) !important; }
body.lab .ds-bk-slotshead label.row { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
