/* ============================================================================
 * Export Groups page — local component styles.
 *
 * Mounted at /dc/export-page.css from app.py (see app.py head links).
 *
 * Three layers live here:
 *
 *  0) `.eg-wrap` / `.eg-list` / `.eg-canvas` / `.eg-drawer` REBUILD namespace
 *     — the new three-column Phase 1 rebuild (Export Group Rebuild 2026-06-22).
 *     Mirrors scheduling-page.css slot-for-slot against the shipped Scheduling
 *     page. These supersede the old drawer wizard.
 *
 *  1) `.dc-*` NEW namespace — canonical Export Groups components per
 *     EXPORT_GROUPS.md + export-steps.js. The STEP 1-5 wizard surfaces
 *     use these (`.dc-collapse`, `.dc-step-head`, `.dc-compare`, plus the
 *     `.dc-row` / `.dc-pill` / `.dc-chip` families from `dc-theme.css`).
 *
 *  2) `.eg-*` RESIDUAL namespace — what survived the migration from the
 *     pre-DC-system S6 wizard: `.eg-spec` (mono spec line helper),
 *     `.eg-pchip*` (profile chips inside compare items), `.eg-rl-*` +
 *     `.eg-rlist` (compare-list rendering), and `.eg-grp` (locked-group
 *     divider). Custom-props rebind to `--dc-*` tokens so dark mode flips
 *     for free. Drop these as their consumers migrate.
 *
 * --dc-platform-yt / --dc-platform-pt are defined in colors_and_type.css
 * (promoted 2026-06-22) — consumed here via var() with no local definition.
 * ──────────────────────────────────────────────────────────────────────── */

/* ============================================================================
 * LAYER 0 — Export Groups Rebuild (Phase 1, 2026-06-22)
 * Three-column shell: .eg-wrap → #export-groups-split → left-card [rail+canvas]
 *                     + outer gutter + drawer card.
 * Mirrors scheduling-page.css slot-for-slot.
 * ============================================================================ */

/* ── EG-WRAP — outer wrapper (mirrors .sched-wrap) ────────────────────────── */
.eg-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--dc-bg);
  font-family: var(--dc-font-sans);
  font-size: var(--dc-fs-base);
  color: var(--dc-ink);
}

/* ── #export-groups-split — Split.js flex row (mirrors #scheduling-split) ─── */
#export-groups-split {
  flex: 1 1 auto;
  min-height: 0;
}

/* ── EG-LEFT-PANEL — one rounded card holding [rail | inner-gutter | canvas]
   Mirrors #scheduling-split .sched-left-panel (scheduling-page.css).
   NOTE: app.py inline <style> sets .split-table { flex-direction:column }.
   The #export-groups-split prefix adds ID specificity to win back row layout. */
#export-groups-split .eg-left-panel {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: row;   /* rail | inner-gutter | canvas side-by-side */
  background: var(--dc-panel);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  overflow: hidden;
  box-sizing: border-box;
}

/* ── EG-LIST — left group-list rail INSIDE the left card ─────────────────────
   Mirrors .dc-sched-list (scheduling-page.css).
   No border-right — .dc-gutter--vertical provides the divider.               */
.eg-list {
  width: 268px;
  flex: 0 0 268px;
  min-width: 180px;
  max-width: 33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--dc-panel);
  overflow: hidden;
  position: relative;
}

/* Pinned header — "New Export Group" button + filters */
.eg-list__head {
  flex: none;
  padding: var(--dc-space-5) var(--dc-space-5) var(--dc-space-3);
  border-bottom: 1px solid var(--dc-line);
  display: flex;
  flex-direction: column;
  gap: var(--dc-space-3);
}

/* "EXPORT GROUPS" eyebrow + "New Export Group" button on one row */
.eg-list__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dc-space-3);
}
.eg-list__eyebrow {
  font-size: 10.5px;
  font-weight: var(--dc-fw-bold);
  letter-spacing: var(--dc-track-label);
  text-transform: uppercase;
  color: var(--dc-faint);
}

/* Filter row — platform + status dropdowns, 50/50 */
.eg-list__filters {
  display: flex;
  gap: var(--dc-space-2);
}
.eg-list__filters .eg-platform-wrap,
.eg-list__filters .eg-status-wrap {
  flex: 1 1 0;
  min-width: 0;
}
.eg-list__filters .shiny-input-container {
  margin-bottom: 0 !important;
}
.eg-list__filters label.control-label {
  display: none;
}
.eg-list__filters .form-select {
  font-size: 12px;
  height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23868686' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 10px;
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
}

/* Platform filter tinting */
.eg-platform-wrap[data-platform="youtube"] .form-select {
  background-color: var(--dc-platform-yt-soft);
  border-color: var(--dc-platform-yt-line);
  color: var(--dc-platform-yt);
  font-weight: var(--dc-fw-semi);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c0392b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.eg-platform-wrap[data-platform="pluto"] .form-select {
  background-color: var(--dc-platform-pt-soft);
  border-color: var(--dc-platform-pt-line);
  color: color-mix(in oklch, var(--dc-platform-pt) 72%, black);
  font-weight: var(--dc-fw-semi);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a07000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
:root[data-bs-theme="dark"] .eg-platform-wrap[data-platform="pluto"] .form-select {
  color: color-mix(in oklch, var(--dc-platform-pt) 40%, white);
}

/* Sort note — small muted line below filters */
.eg-list__sort-note {
  font-size: 11px;
  color: var(--dc-faint);
}

/* Group-list scroll area */
.eg-list__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--dc-space-2) 0;
}

/* ── EG-GROUPROW — compact row for one export group ──────────────────────── */
.eg-grouprow {
  display: flex;
  align-items: flex-start;
  gap: var(--dc-space-3);
  padding: var(--dc-space-3) var(--dc-space-5);
  cursor: pointer;
  position: relative;
  transition: background var(--dc-dur-fast);
}
.eg-grouprow:hover {
  background: color-mix(in oklch, var(--dc-ink) 4%, var(--dc-panel));
}
.eg-grouprow.is-selected {
  background: var(--dc-primary-soft);
}
.eg-grouprow.is-selected::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--dc-edge-width);
  background: var(--dc-primary);
  border-radius: 0 3px 3px 0;
}

.eg-grouprow__body {
  flex: 1 1 auto;
  min-width: 0;
}
/* Top line: code + platform text (left) · status pill (right) */
.eg-grouprow__top {
  display: flex;
  align-items: center;
  gap: var(--dc-space-2);
  margin-bottom: var(--dc-space-1);
  min-width: 0;
  flex-wrap: wrap;
}
.eg-grouprow__top-spacer { flex: 1 1 auto; }

.eg-grouprow__code {
  font-family: var(--dc-font-mono);
  font-size: 12.5px;
  font-weight: var(--dc-fw-semi);
  color: var(--dc-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.eg-grouprow__platform-text {
  font-size: 12px;
  color: var(--dc-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.eg-grouprow__name {
  font-size: 12px;
  color: var(--dc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-top: 1px;
}
.eg-grouprow__meta {
  font-size: 11px;
  color: var(--dc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Group info button — pinned top-right, align-self:flex-start keeps it on
   the top line even when the body has 3 lines of text. */
.eg-grouprow__info {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--dc-radius);
  appearance: none;
  background: none;
  border: 1px solid var(--dc-line-2);
  color: var(--dc-faint);
  font-size: 13px;
  cursor: pointer;
  transition: color var(--dc-dur-fast), background var(--dc-dur-fast),
              border-color var(--dc-dur-fast);
  flex-shrink: 0;
}
.eg-grouprow__info:hover {
  background: color-mix(in oklch, var(--dc-ink) 6%, transparent);
  border-color: var(--dc-faint);
  color: var(--dc-ink);
}
.eg-grouprow__info.is-drawer-open {
  background: var(--dc-primary-soft);
  border-color: var(--dc-primary-line);
  color: var(--dc-primary);
}

/* Empty state in group list */
.eg-list__empty {
  padding: var(--dc-space-8) var(--dc-space-6);
  text-align: center;
  color: var(--dc-faint);
  font-size: 12px;
}

/* ── EG-CANVAS — center working canvas INSIDE the left card ──────────────────
   Fills remaining width (flex:1 1 0; min-width:0) after rail + inner gutter.
   Mirrors .sched-center (scheduling-page.css).                               */
.eg-canvas {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dc-bg);
}

/* Step-strip header — pinned, never scrolls */
.eg-canvas__head {
  flex: none;
  border-bottom: 1px solid var(--dc-line);
  background: var(--dc-panel);
  min-height: 52px;
}
.eg-canvas__head-row {
  display: flex;
  align-items: center;
  gap: var(--dc-space-5);
  padding: var(--dc-space-4) var(--dc-space-8);
  min-height: 52px;
}

/* Scrollable body */
.eg-canvas__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--dc-space-5) var(--dc-space-8) var(--dc-space-8);
  background: var(--dc-panel);
}

/* Step label left of the step strip */
.eg-step-header {
  display: flex;
  align-items: center;
  gap: var(--dc-space-5);
  flex: 1 1 auto;
  min-width: 0;
}
.eg-step-label {
  font-size: 10.5px;
  font-weight: var(--dc-fw-bold);
  letter-spacing: var(--dc-track-label);
  text-transform: uppercase;
  color: var(--dc-faint);
  white-space: nowrap;
}

/* Empty state (no group selected) */
.eg-canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  text-align: center;
  color: var(--dc-muted);
  padding: var(--dc-space-8);
  background: var(--dc-panel);
}
.eg-canvas-empty__icon {
  font-size: 36px;
  color: var(--dc-faint);
  margin-bottom: var(--dc-space-5);
}
.eg-canvas-empty__title {
  font-size: var(--dc-fs-md);
  font-weight: var(--dc-fw-semi);
  color: var(--dc-ink);
  margin-bottom: var(--dc-space-3);
}
.eg-canvas-empty__sub {
  font-size: 13px;
  color: var(--dc-muted);
}

/* ── EG-FILMS-TOOLBAR — search + sort row above the select-films table ─────── */
.eg-films-toolbar {
  display: flex;
  align-items: center;
  gap: var(--dc-space-3);
  margin-bottom: var(--dc-space-4);
  flex-wrap: wrap;
}

/* Search input with leading icon, mirroring .dc-sched-search */
.eg-films-search {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
}
.eg-films-search__icon {
  position: absolute;
  left: var(--dc-space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--dc-faint);
  font-size: 13px;
  pointer-events: none;
}
.eg-films-search input {
  width: 100%;
  padding: var(--dc-space-2) var(--dc-space-3) var(--dc-space-2) 28px;
  font-size: 13px;
  background: var(--dc-panel-2);
  border: 1px solid var(--dc-line-2);
  border-radius: var(--dc-radius);
  color: var(--dc-ink);
  outline: none;
  transition: border-color var(--dc-dur-fast);
}
.eg-films-search input:focus {
  border-color: var(--dc-primary-line);
  box-shadow: var(--dc-shadow-focus);
}
.eg-films-search input::placeholder { color: var(--dc-faint); }

/* Sort dropdown + count */
.eg-films-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--dc-space-2);
  flex-shrink: 0;
}
.eg-films-toolbar__sort label {
  font-size: 11px;
  color: var(--dc-faint);
  white-space: nowrap;
}
.eg-films-toolbar__sort select {
  font-size: 12px;
  padding: 4px 28px 4px 8px;
  border-radius: var(--dc-radius);
  border: 1px solid var(--dc-line-2);
  background: var(--dc-panel-2);
  color: var(--dc-ink);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px 9px;
}

/* Selection count */
.eg-films-count {
  font-size: 12px;
  color: var(--dc-muted);
  white-space: nowrap;
}
.eg-films-count strong { color: var(--dc-primary); }

/* ── EG-FILMS-TABLE — dense select-films table ────────────────────────────── */
.eg-films-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.eg-films-table thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: var(--dc-track-label);
  color: var(--dc-faint);
  font-weight: var(--dc-fw-bold);
  padding: 8px 10px;
  border-bottom: 1px solid var(--dc-line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--dc-panel-2);
  z-index: 1;
}
.eg-films-table thead th.th-toggle { width: 40px; text-align: center; }
.eg-films-table thead th.th-poster { width: 42px; }
.eg-films-table thead th.th-profile { width: 140px; }
.eg-films-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--dc-line);
  vertical-align: middle;
}
.eg-films-table tbody tr:hover { background: var(--dc-panel-2); }
.eg-films-table tbody tr.is-added {
  background: color-mix(in oklch, var(--dc-ok) 5%, var(--dc-panel));
}
.eg-films-table tbody tr.is-added:hover {
  background: color-mix(in oklch, var(--dc-ok) 9%, var(--dc-panel));
}

/* Toggle button: + (add) or check (added) */
.eg-film-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--dc-line-2);
  border-radius: var(--dc-radius-sm);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dc-faint);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dc-dur-fast), border-color var(--dc-dur-fast),
              color var(--dc-dur-fast);
}
.eg-film-toggle:hover {
  background: var(--dc-primary-soft);
  border-color: var(--dc-primary-line);
  color: var(--dc-primary);
}
.eg-film-toggle.is-added {
  background: var(--dc-ok-soft);
  border-color: color-mix(in oklch, var(--dc-ok) 40%, var(--dc-panel));
  color: var(--dc-ok);
}
.eg-film-toggle.is-added:hover {
  background: var(--dc-danger-soft);
  border-color: color-mix(in oklch, var(--dc-danger) 30%, var(--dc-panel));
  color: var(--dc-danger);
}

/* Poster cell */
.eg-film-poster {
  width: 28px;
  height: 42px;
  border-radius: var(--dc-radius-sm);
  background: var(--dc-panel-2);
  border: 1px solid var(--dc-line);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc-faint);
  font-size: 13px;
  flex-shrink: 0;
}

/* Title cell */
.eg-film-title {
  font-weight: var(--dc-fw-semi);
  color: var(--dc-ink);
  line-height: 1.3;
  display: block;
}
.eg-film-original-title {
  font-size: 11.5px;
  color: var(--dc-muted);
  font-style: italic;
  line-height: 1.2;
  display: block;
  margin-top: 1px;
}

/* ID cells */
.eg-film-id {
  font-family: var(--dc-font-mono);
  font-size: 12px;
  color: var(--dc-muted);
}
.eg-film-imdb {
  font-family: var(--dc-font-mono);
  font-size: 12px;
  color: var(--dc-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--dc-space-1);
}
.eg-film-imdb:hover { text-decoration: underline; }
.eg-film-imdb i { font-size: 10px; }

/* ffprobe spec line */
.eg-film-spec {
  font-family: var(--dc-font-mono);
  font-size: 11px;
  color: var(--dc-muted);
  white-space: nowrap;
}

/* Profile dropdown */
.eg-film-profile select {
  font-size: 11.5px;
  font-family: var(--dc-font-mono);
  padding: 2px 24px 2px 6px;
  border-radius: var(--dc-radius-sm);
  border: 1px solid var(--dc-line-2);
  background: var(--dc-panel-2);
  color: var(--dc-ink);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 10px 8px;
}

/* Film click → film drawer hint */
.eg-film-title-cell { cursor: pointer; }
.eg-film-title-cell:hover .eg-film-title { color: var(--dc-primary); }

/* ── EG-DRAWER CONTENT — inside .split-detail rounded card ──────────────────
   dc-theme.css .split-detail provides: background, border, border-radius,
   height:100%, overflow:hidden, display:flex, flex-direction:column.
   .eg-drawer here styles CONTENT + CHROME only — not the card shell itself. */
.eg-drawer--hidden { display: none !important; }

/* Group details drawer sections */
.eg-drawer-section {
  margin-bottom: var(--dc-space-6);
}
.eg-drawer-section:last-child { margin-bottom: 0; }
.eg-drawer-section-label {
  font-size: 10.5px;
  font-weight: var(--dc-fw-bold);
  letter-spacing: var(--dc-track-label);
  text-transform: uppercase;
  color: var(--dc-faint);
  margin-bottom: var(--dc-space-3);
}

/* Key-value grid */
.eg-kv {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--dc-space-2) var(--dc-space-4);
  font-size: 13px;
}
.eg-kv__k {
  font-size: 11px;
  font-weight: var(--dc-fw-bold);
  letter-spacing: var(--dc-track-label);
  text-transform: uppercase;
  color: var(--dc-faint);
  display: flex;
  align-items: flex-start;
  padding-top: 1px;
}
.eg-kv__v { color: var(--dc-ink); word-break: break-word; }
.eg-kv__v.mono { font-family: var(--dc-font-mono); font-size: 12px; }
.eg-kv__v.muted { color: var(--dc-muted); font-style: italic; }

/* Stats block — 3 stat tiles */
.eg-drawer__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dc-space-3);
  margin-top: var(--dc-space-3);
}
.eg-stat {
  background: var(--dc-panel-2);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  padding: var(--dc-space-4);
  text-align: center;
}
.eg-stat__value {
  font-size: 18px;
  font-weight: var(--dc-fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--dc-ink);
  line-height: 1.1;
}
.eg-stat__label {
  font-size: 10px;
  font-weight: var(--dc-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--dc-track-label);
  color: var(--dc-faint);
  margin-top: var(--dc-space-1);
}

/* Film roster summary */
.eg-drawer__roster {
  display: flex;
  flex-direction: column;
  gap: var(--dc-space-1);
}
.eg-roster-row {
  display: flex;
  align-items: center;
  gap: var(--dc-space-3);
  padding: var(--dc-space-2) var(--dc-space-3);
  border-radius: var(--dc-radius-sm);
  font-size: 12.5px;
  color: var(--dc-muted);
  transition: background var(--dc-dur-fast);
}
.eg-roster-row:hover {
  background: color-mix(in oklch, var(--dc-ink) 4%, var(--dc-panel));
}
.eg-roster-row__id {
  font-family: var(--dc-font-mono);
  font-size: 11px;
  color: var(--dc-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.eg-roster-row__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dc-ink);
}
.eg-roster-more {
  font-size: 11.5px;
  color: var(--dc-primary);
  padding: var(--dc-space-2) var(--dc-space-3);
  cursor: pointer;
}

/* ── Rail-gutter for the eg-list resize handle ───────────────────────────────
   Absolutely positioned on the right edge of .eg-list, same as #sched-rail-gutter */
#eg-rail-gutter {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: col-resize;
  z-index: 10;
}
#eg-rail-gutter:hover {
  background: color-mix(in oklch, var(--dc-primary) 15%, transparent);
}

/* ============================================================================
 * END LAYER 0
 * ============================================================================ */

/* ── `.eg-*` custom-props rebound onto `--dc-*` tokens so the residual
 *    namespace flips with `data-bs-theme`. Mirrors the original behaviour
 *    of the inline-in-app.py block before this file was extracted.        */
:root {
    --eg-accent:        var(--dc-primary);
    --eg-accent-soft:   var(--dc-primary-soft);
    --eg-accent-line:   var(--dc-primary-line);
    --eg-ok:            var(--dc-ok);
    --eg-ok-soft:       var(--dc-ok-soft);
    --eg-warn:          var(--dc-warn);
    --eg-warn-soft:     var(--dc-warn-soft);
    --eg-line:          var(--dc-line);
    --eg-line-2:        var(--dc-line-2);
    --eg-muted:         var(--dc-muted);
    --eg-faint:         var(--dc-faint);
    --eg-mono:          var(--dc-font-mono);
}

/* ── Mono spec line used by `_source_specs_line_compact` helper.
 *    `_row_disclosure` re-classes the result to `.dc-row__spec`; the
 *    pending / preview_running rows keep this default class.            */
.eg-spec { font-family: var(--eg-mono); font-size: 11.5px;
           color: var(--eg-muted); margin-top: 4px;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Compare-list items stack vertically when video is large:
 * video on top, info row + Select button below. */
.eg-rl-item { display: flex; flex-direction: column;
              gap: 8px; padding: 9px 11px;
              border: 1px solid var(--eg-line);
              border-radius: 7px; background: var(--dc-panel); }

/* ============================================================================
 * `.dc-*` NEW namespace — canonical Export Groups components per
 * EXPORT_GROUPS.md + export-steps.js. As legacy `.eg-*` surfaces migrate to
 * these classes, the corresponding `.eg-*` rule above gets pruned.
 * ──────────────────────────────────────────────────────────────────────── */

/* ── Generic .dc-collapse — clickable head + collapsible body ────────────
   Used by the STEP 1 active-decision card per export-steps.js `collapsePanel`.
   Click handler is the delegated listener in components/poster.py
   (`window._dcCollapseWired`); these rules just handle the visual side.    */
.dc-collapse__head { cursor: pointer; user-select: none; }
.dc-collapse__chev { transition: transform 0.2s var(--dc-ease, cubic-bezier(0.2,0,0,1)); }
.dc-collapse.is-collapsed .dc-collapse__body { display: none; }
.dc-collapse.is-collapsed .dc-collapse__chev { transform: rotate(-90deg); }

/* ── Step 1 header chip-row (replaces .eg-lhead) ─────────────────────────
   Flat row at the top of the preview-review body: count label (left) +
   worker pill (right). No box / dashed border — matches export-steps.js
   `bodyPreview()` header pattern. */
.dc-step-head { display: flex; align-items: center; justify-content: space-between;
                gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── Compare-other-profiles disclosure (replaces .eg-rlist outer shell) ──
   The summary acts as a button (server-state toggle via Shiny event); the
   body holds the dc-select + Create preview + indented compare items.
   Lives inside a `.dc-row--decision.dc-collapse` body. */
.dc-compare { margin-top: 14px; border-top: 1px dashed var(--dc-line); padding-top: 11px; }
.dc-compare.is-open > .dc-compare__summary > .dc-compare__chev { transform: rotate(90deg); }

