/* PSC v2 Phase 11 — Dispatcher v2 body styling (3 sections).
 *
 * Visual contract: docs/psc-widgets/psc_client_documents_sop_step3_dispatch_body_mockup.html
 * Foundation: --bk-* tokens (apps/portal/static/portal/css/design_tokens.css).
 * Honors PSC Aesthetic Foundation: 44×44 hit targets, focus-visible rings,
 * no raw hex colors (tokens only), prefers-reduced-motion respected.
 */

/* ── Section frame ─────────────────────────────────────────────────── */
.psc-dispatch-section {
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius, 10px);
  overflow: hidden;
  margin-bottom: 8px;
}
.psc-dispatch-section:last-child { margin-bottom: 0; }

.psc-dispatch-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bk-surface-inset, #f8f9fb);
  border-bottom: 1px solid var(--bk-border-soft, #eef0f3);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-text-muted, #72727e);
}
.psc-dispatch-count {
  margin-left: auto;
  min-width: 20px;
  padding: 0 5px;
  height: 16px;
  background: var(--bk-navy, #1a1a2e);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.psc-dispatch-body { padding: 8px 10px 10px; }

/* ───── Cinematic Editor mount states (Phase 3/5, 2026-06-27) ──────────
 * The editor window is a `.kb-popup-modal` popup — chrome (drag, resize,
 * close, geometry persistence, tray chip) all come from PSCWindows for
 * free. The only editor-specific CSS lives in the `.ce-shell` mount div
 * and the two transient overlays below: a loading spinner shown while
 * the bundle + mount fragment fetch (Po2) and an error state with a
 * retry button if either fetch fails (H4). The old custom
 * .psc-editor-window + 5 .pwr-* handles + iframe overlay were dropped
 * along with the iframe approach. */
.ce-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
}
.ce-loading,
.ce-mount-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--bk-text-muted, #72727e);
  font-size: 0.9rem;
}
.ce-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bk-border, #e9ecef);
  border-top-color: var(--bk-gold, #c29954);
  border-radius: 50%;
  animation: ce-spin 0.8s linear infinite;
}
.ce-loading-text { letter-spacing: 0.02em; }
@keyframes ce-spin { to { transform: rotate(360deg); } }
.ce-mount-error-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bk-red, #DC2626);
}
.ce-mount-error-msg {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--bk-text, #2d2d3a);
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border, #e9ecef);
  border-radius: var(--bk-radius-sm, 6px);
  padding: 8px 12px;
  max-width: 480px;
  word-break: break-word;
  text-align: center;
}
.ce-mount-error-retry {
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  background: var(--bk-navy, #1a1a2e);
  color: #fff;
  border: none;
  border-radius: var(--bk-radius-sm, 6px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ce-mount-error-retry:hover { background: #2a2a44; }
.ce-mount-error-retry:active { transform: scale(0.98); }
.ce-mount-error-retry:focus-visible {
  outline: 2px solid var(--bk-gold, #c29954);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .ce-spinner { animation: none; }
  .ce-mount-error-retry { transition: none; }
}

/* Stage C.2-FIX — section title text in the eyebrow row (replaces the
 * removed bus chips). Producer-facing label only. */
.psc-dispatch-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bk-text, #2d2d3a);
}

/* Stage C.2-FIX — Documents Available collapsed-by-default header.
 * Producer can expand by clicking the slim summary row. */
.docs-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--bk-surface-inset, #f8f9fb);
  border: none;
  border-radius: var(--bk-radius, 10px);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
  min-height: 44px;
}
.docs-summary-header:hover {
  background: var(--bk-card, #ffffff);
}
.docs-summary-header:focus-visible {
  outline: 2px solid var(--bk-navy, #1a1a2e);
  outline-offset: 2px;
}
.docs-summary-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bk-text, #2d2d3a);
  flex: 0 0 auto;
}
.docs-summary-stat {
  font-size: 0.78rem;
  color: var(--bk-text-muted, #72727e);
  flex: 1;
}
.docs-summary-stat strong {
  color: var(--bk-navy, #1a1a2e);
  font-weight: 700;
}
.docs-summary-sep {
  margin: 0 4px;
  color: var(--bk-text-dim, #b8b8c0);
}
.docs-summary-chevron {
  font-size: 0.9rem;
  color: var(--bk-text-muted, #72727e);
  transition: transform 160ms ease;
  flex: 0 0 auto;
}
.psc-dispatch-section[data-docs-collapsible]:not(.docs-collapsed) .docs-summary-chevron {
  transform: rotate(180deg);
}
.psc-dispatch-section.docs-collapsed .docs-body {
  display: none;
}
/* When collapsed, drop the section's border so the slim header sits flush. */
.psc-dispatch-section[data-docs-collapsible].docs-collapsed {
  background: transparent;
  border: none;
  overflow: visible;
}
.psc-dispatch-section[data-docs-collapsible].docs-collapsed .docs-summary-header {
  border: 1px solid var(--bk-border, #e2e4e8);
}

/* ── Bus chips (eyebrow chips — consumes blue / produces gold) ─────── */
.bus-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(26, 26, 46, 0.08);
  color: var(--bk-navy, #1a1a2e);
  border: 1px solid rgba(26, 26, 46, 0.18);
  border-radius: 9999px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.bus-chip--produces {
  background: rgba(194, 153, 84, 0.12);
  color: var(--bk-gold, #c29954);
  border-color: rgba(194, 153, 84, 0.35);
}

/* ── Section 1: Documents Available picker — tight inline chips ───── */
.docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.docs-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border-soft, #eef0f3);
  border-radius: 9999px;          /* pill */
  cursor: pointer;
  min-height: 26px;
  font-size: 0.72rem;
  line-height: 1.1;
  transition: background 120ms ease, border-color 120ms ease;
  user-select: none;
  flex: 0 0 auto;
}
.docs-row:hover {
  background: var(--bk-card, #ffffff);
  border-color: var(--bk-gold, #c29954);
}
.docs-row.is-checked {
  background: rgba(194, 153, 84, 0.10);
  border-color: var(--bk-gold, #c29954);
}
.docs-row:focus-within {
  outline: 2px solid var(--bk-navy, #1a1a2e);
  outline-offset: 2px;
}
.docs-checkbox-input {
  /* Native checkbox is visually replaced by .docs-checkbox below; kept
   * for screen readers + form semantics. */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.docs-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--bk-text-muted, #72727e);
  border-radius: 3px;
  background: var(--bk-card, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  flex: 0 0 auto;
}
.docs-row.is-checked .docs-checkbox {
  background: var(--bk-gold, #c29954);
  border-color: var(--bk-gold, #c29954);
}
.docs-row.is-checked .docs-checkbox::after {
  content: "✓";
  font-weight: 700;
  line-height: 1;
}
.docs-label {
  color: var(--bk-text, #2d2d3a);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}
.docs-meta {
  color: var(--bk-text-muted, #72727e);
  font-size: 0.68rem;
  white-space: nowrap;
}
.docs-footer {
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(194, 153, 84, 0.10);
  border: 1px dashed var(--bk-gold, #c29954);
  border-radius: var(--bk-radius-sm, 6px);
  font-size: 0.66rem;
  color: var(--bk-text, #2d2d3a);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.docs-footer-count {
  font-weight: 700;
  color: var(--bk-navy, #1a1a2e);
}

/* ── Body-level Dispatch CTA ─────────────────────────────────────────
 * Phase 11 — producer's primary action lives at the bottom of the body
 * (sealed PSC footer can't host a step-specific action). Gold pill,
 * 44×44 hit target, disabled when not ready or already completed. */
.dispatch-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius, 10px);
}
.dispatch-cta-status {
  font-size: 0.78rem;
  color: var(--bk-text-muted, #72727e);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dispatch-cta-status .ok::before {
  content: "●";
  color: var(--bk-emerald, #10B981);
  font-size: 0.8rem;
  margin-right: 4px;
}
.dispatch-cta-status .wait::before {
  content: "●";
  color: var(--bk-amber, #F59E0B);
  font-size: 0.8rem;
  margin-right: 4px;
}
.dispatch-cta-button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  background: var(--bk-gold, #c29954);
  color: var(--bk-navy, #1a1a2e);
  border: 1px solid var(--bk-gold-soft, #e0bd76);
  border-radius: var(--bk-radius-sm, 6px);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 120ms ease, opacity 120ms ease;
}
.dispatch-cta-button:hover:not(:disabled) {
  background: var(--bk-gold-soft, #e0bd76);
}
.dispatch-cta-button:focus-visible {
  outline: 2px solid var(--bk-navy, #1a1a2e);
  outline-offset: 2px;
}
.dispatch-cta-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dispatch-cta-button.is-completed {
  background: var(--bk-emerald, #10B981);
  color: #ffffff;
  border-color: #059669;
  cursor: default;
}

/* ── Section 2: Default Actions chips + Configure link ─────────────── */
.actions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.actions-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bk-text, #2d2d3a);
}
.actions-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--bk-text-muted, #72727e);
}
.actions-chip[data-tone="primary"]::before { background: var(--bk-emerald, #10B981); }
.actions-chip[data-tone="warning"]::before { background: var(--bk-amber, #F59E0B); }
.actions-chip[data-tone="destructive"]::before { background: var(--bk-red, #DC2626); }
/* Stage C.5 (Mockup-2 lock) — gold-left-bordered source note replaces
 * the previous .actions-source flex layout. Single-editor-entry rule:
 * Section 2 no longer hosts an "Open Editor" link — the note merely
 * tells the producer where to find the editor in Section 3. */
.actions-source-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--bk-text, #2d2d3a);
  padding: 6px 10px;
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border-soft, #eef0f3);
  border-left: 3px solid var(--bk-gold, #c29954);
  border-radius: var(--bk-radius-sm, 6px);
  line-height: 1.4;
}
.actions-source-note i { color: var(--bk-text-muted, #72727e); }
.actions-source-note code {
  background: var(--bk-card, #ffffff);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  border: 1px solid var(--bk-border-soft, #eef0f3);
}
.actions-source-note .hint {
  display: block;
  color: var(--bk-text-muted, #72727e);
  font-size: 0.74rem;
  margin-top: 2px;
}
.actions-source-note strong { color: var(--bk-navy, #1a1a2e); }

/* Stage C.5 — Cinematic ON/OFF toggle (Mockup-2 lock, Section 3 eyebrow).
 * Emerald track when ON, dim when OFF; 28px hit area + focus-visible
 * ring per Aesthetic Foundation. */
.cin-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--bk-text, #2d2d3a);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  user-select: none;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--bk-border-soft, #eef0f3);
  border-radius: 9999px;
  background: var(--bk-card, #ffffff);
  transition: border-color 120ms, background 120ms;
}
.cin-toggle:hover {
  border-color: var(--bk-gold, #c29954);
}
.cin-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cin-toggle-track {
  display: inline-block;
  width: 30px;
  height: 16px;
  background: var(--bk-text-dim, #b8b8c0);
  border-radius: 9999px;
  position: relative;
  transition: background 160ms ease;
  flex: 0 0 auto;
}
.cin-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: left 160ms ease;
}
.cin-toggle input:checked + .cin-toggle-track {
  background: var(--bk-emerald, #10B981);
}
.cin-toggle input:checked + .cin-toggle-track .cin-toggle-thumb {
  left: 16px;
}
.cin-toggle input:focus-visible + .cin-toggle-track {
  outline: 2px solid var(--bk-navy, #1a1a2e);
  outline-offset: 2px;
}
.cin-toggle-label {
  text-transform: none;
  letter-spacing: 0;
  color: var(--bk-text, #2d2d3a);
}
.cin-toggle-label strong {
  color: var(--bk-navy, #1a1a2e);
  font-weight: 800;
}

/* Stage C.5 — Section 3 OFF-state hint card (muted, dashed border).
 * Replaces the dropdown row when Cinematic view is toggled OFF. */
.cin-off-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px dashed var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius-sm, 6px);
  font-size: 0.82rem;
  color: var(--bk-text, #2d2d3a);
}
.cin-off-hint .ic {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--bk-text-dim, #b8b8c0);
}
.cin-off-hint strong {
  color: var(--bk-navy, #1a1a2e);
  font-weight: 700;
}
.cin-off-hint .muted {
  color: var(--bk-text-muted, #72727e);
  font-size: 0.76rem;
  margin-top: 3px;
  line-height: 1.4;
}

/* Stage C.5 — toggle-driven body visibility (per Mockup-2). */
.psc-section-body.is-hidden { display: none; }

/* ── Section 3: Cinematic dropdown + selected-template card ─────────── */
.cin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.cin-open-editor-btn {
  min-height: 36px;
  padding: 6px 14px;
  background: var(--bk-navy, #1a1a2e);
  color: var(--bk-card, #ffffff) !important;
  border: 1px solid var(--bk-navy, #1a1a2e);
  border-radius: var(--bk-radius-sm, 6px);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease;
}
.cin-open-editor-btn:hover {
  background: #2a2a44;
}
.cin-open-editor-btn:focus-visible {
  outline: 2px solid var(--bk-gold, #c29954);
  outline-offset: 2px;
}
/* Disabled state — set when Cinematic toggle is OFF or no template selected. */
/* Per [[feedback_no_hardwire_no_fallback]] — block the link rather than fall  */
/* back to the admin changelist (which was confusing the producer).            */
.cin-open-editor-btn.is-disabled,
.cin-open-editor-btn[aria-disabled="true"] {
  background: var(--bk-surface-inset, #f8f9fb);
  color: var(--bk-text-dim, #9a9aa6) !important;
  border-color: var(--bk-border, #e2e4e8);
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none; /* belt-and-braces with the JS preventDefault */
}
.cin-open-editor-btn.is-disabled:hover {
  background: var(--bk-surface-inset, #f8f9fb);
}
.cin-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bk-text, #2d2d3a);
}
.cin-select {
  min-height: 44px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius-sm, 6px);
  background-color: var(--bk-card, #ffffff);
  color: var(--bk-text, #2d2d3a);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath d='M3 4.5L6 8L9 4.5' stroke='%2372727e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
.cin-select:focus-visible {
  outline: 2px solid var(--bk-navy, #1a1a2e);
  outline-offset: 2px;
}
.cin-tpl-card {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius-sm, 6px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}
.cin-tpl-card.is-hidden { display: none; }
.cin-tpl-card-name {
  font-weight: 700;
  color: var(--bk-navy, #1a1a2e);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cin-tpl-card-key {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.7rem;
  color: var(--bk-text-muted, #72727e);
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  padding: 1px 6px;
  border-radius: 4px;
}
.cin-tpl-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  background: var(--bk-navy, #1a1a2e);
  color: #fff;
  border-radius: var(--bk-radius-sm, 6px);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.cin-tpl-card-link:hover { background: var(--bk-navy-2, #2d2d3a); }
.cin-tpl-card-link:focus-visible {
  outline: 2px solid var(--bk-gold, #c29954);
  outline-offset: 2px;
}
.cin-tpl-card-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.cin-tpl-card-instance {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  color: var(--bk-text-muted, #72727e);
  font-style: italic;
}
.cin-tpl-card-instance code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.65rem;
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  padding: 0 4px;
  border-radius: 3px;
}

/* Reduced motion: handled globally by psc_motion.css (spec 4.3 — no
 * reduced-motion query in widget CSS outside _shells/). The .docs-row
 * transitions are short (120ms) and visually identical to system
 * instant when reduced.
 */

/* ───── Dispatcher v4 (2026-06-26) ────────────────────────────────────
 * New asset-section grammar: Clients + Documents are bus-consumed and
 * rendered as collapsible read-only summary sections. Visual contract:
 * docs/psc-widgets/psc_dispatcher_v4_mockup.html
 */
.psc-dispatch-section-eyebrow {
  padding: 6px 12px 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bk-text-muted, #72727e);
}
.psc-section-count {
  background: var(--bk-navy, #1a1a2e);
  color: #fff;
  border-radius: var(--bk-radius-pill, 9999px);
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  margin-right: 6px;
}

/* Section A — Clients chip grid */
.asset-clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.asset-client-chip {
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius, 10px);
  padding: 6px 12px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.asset-client-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bk-text, #2d2d3a);
}
.asset-client-code {
  font-size: 11px;
  color: var(--bk-text-muted, #72727e);
}

/* Section A + B — provenance line */
.asset-section-provenance {
  margin-top: 8px;
  font-size: 11px;
  color: var(--bk-text-muted, #72727e);
  border-top: 1px dashed var(--bk-border-soft, #eef0f3);
  padding-top: 6px;
}
.asset-section-provenance code {
  background: var(--bk-surface-inset, #f8f9fb);
  border: 1px solid var(--bk-border-soft, #eef0f3);
  padding: 1px 5px;
  border-radius: var(--bk-radius-sm, 6px);
  font-size: 10.5px;
  color: var(--bk-navy, #1a1a2e);
}

/* Section A + B — empty-state hint */
.asset-empty-hint {
  color: var(--bk-text-muted, #72727e);
  font-style: italic;
  font-size: 13px;
  padding: 12px 8px;
  text-align: center;
}
.asset-empty-hint strong {
  color: var(--bk-amber, #F59E0B);
  font-style: normal;
}

/* Section B — read-only chip variant of .docs-row */
.docs-list-readonly { gap: 8px; }
.docs-row-readonly {
  cursor: default;
}
.docs-row-readonly:hover {
  background: inherit;  /* no hover lift in read-only mode */
}
.docs-checkbox-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bk-gold, #c29954);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
.docs-row-readonly.is-empty .docs-checkbox-static {
  background: var(--bk-text-dim, #9a9aa6);
  opacity: 0.5;
}
.docs-row-readonly.is-empty { opacity: 0.6; }

/* Section D — slim cinematic eyebrow with toggle (the one row visible when OFF) */
.cinematic-eyebrow {
  justify-content: space-between;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--bk-text-muted, #72727e);
  padding: 8px 12px;
}
.cinematic-eyebrow .psc-dispatch-title {
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
  color: var(--bk-text-muted, #72727e);
  letter-spacing: 0;
}

/* Section E — standalone dispatch CTA */
.dispatch-cta-section {
  background: transparent;
  border: none;
  padding: 0;
}
.dispatch-cta-section .dispatch-cta-row {
  background: var(--bk-card, #ffffff);
  border: 1px solid var(--bk-border, #e2e4e8);
  border-radius: var(--bk-radius, 10px);
  padding: 12px 14px;
}

/* Hide body when section is collapsed (overrides the v2 .docs-collapsed
 * rule which only hides .docs-body specifically). */
.psc-dispatch-section.docs-collapsed > .psc-dispatch-body { display: none; }
.psc-dispatch-section.docs-collapsed > .cinematic-eyebrow { border-bottom: none; }

