/* ═══════════════════════════════════════════════════════════
   Collection Campaigning Set — Shared Design Tokens + Styles

   Widget styles for these step_types (workflow-neutral — the
   canonical CCS workflow uses them in the order below, but each
   widget's CSS makes no positional assumption and any workflow
   template may reference any subset of them in any sequence):

     collection_create         — Set the Stage hero
     collection_compose_showroom — Compose Showroom (CSS in cc_psc_cs.css)
     collection_pick_clients   — Curate the Welcome
     collection_launch_studio  — Launch + Cinematic Reveal
     collection_monitor        — Watch & Curate
     collection_finals_studio  — Finals Picker + Quota
     collection_lock_invoice   — Lock + Invoice

   Plus shared leaf widgets (collection_lock_notice,
   collection_advance_invoice) and shared chrome (treasure card,
   cinematic reveal, focus-visible, reduced-motion).
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ═══════════════════════════════════════════════════════════
     T-25 SEMANTIC PALETTE TOKENS
     BusinessType.color_* fields override these per-request via a
     <style> block injected into the base template <head>. Defaults
     match Bokitta's brand register; other BusinessTypes override
     via CSS variable cascade. Existing rules using --cc-* aliases
     continue to work unchanged.
     ═══════════════════════════════════════════════════════════ */

  /* Brand register */
  --color-brand-primary:        #1a1a2e;
  --color-brand-accent:         #c29954;
  --color-brand-accent-bright:  #d4a865;
  --color-brand-accent-soft:    #fbf6ec;

  /* Vote/sentiment register */
  --color-vote-positive:        #db2777;
  --color-vote-positive-soft:   #c4798e;

  /* Status semantic register */
  --color-status-firm:          #10B981;
  --color-status-provisional:   #F59E0B;
  --color-status-blocked:       #DC2626;

  /* CTA + text */
  --color-cta-primary:          #c29954;
  --color-text-emphasis:        #1a1a2e;

  /* Chrome stripe */
  --color-chrome-stripe-start:  #db2777;
  --color-chrome-stripe-end:    #c29954;

  /* ── Typography ── */
  --cc-serif: 'Fraunces', Georgia, serif;
  --cc-sans: 'Manrope', -apple-system, sans-serif;
  --cc-mono: 'JetBrains Mono', monospace;

  /* ── Core Colors — aliased through T-25 semantic palette above.
     New rules should prefer --color-* directly. ── */
  --cc-navy:        var(--color-brand-primary);
  --cc-gold:        var(--color-brand-accent);
  --cc-gold-bright: var(--color-brand-accent-bright);
  --cc-gold-soft:   var(--color-brand-accent-soft);
  --cc-rose:        var(--color-vote-positive-soft);
  --cc-pink:        var(--color-vote-positive);

  /* ── Surfaces ── */
  --cc-bg: var(--bk-parchment, #faf9f5);
  --cc-surface: var(--bk-card, #ffffff);
  --cc-surface-sunken: #f8f7f2;
  --cc-border: var(--bk-border, #e9ecef);
  --cc-text: var(--bk-text, #2d2d3a);
  --cc-text-muted: var(--bk-text-muted, #6c757d);

  /* ── Semantic — aliased through T-25 status tokens above ── */
  --cc-success: var(--color-status-firm);
  --cc-danger:  var(--color-status-blocked);
  --cc-amber:   var(--color-status-provisional);

  /* ── Spacing ── */
  --cc-radius: var(--bk-radius-lg, 14px);
  --cc-radius-sm: var(--bk-radius-sm, 6px);
  --cc-radius-md: var(--bk-radius-md, 10px);
  --cc-radius-pill: var(--bk-radius-pill, 9999px);

  /* ── Shadows ── */
  --cc-shadow-sm: var(--bk-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  --cc-shadow-md: var(--bk-shadow-md, 0 2px 8px rgba(0,0,0,0.08));

  /* ── Gold foil gradient ── */
  --cc-gold-foil: linear-gradient(135deg, #c29954 0%, #f5e6c0 25%, #d4a865 50%, #c29954 75%, #e8d09a 100%);
}

/* ═══════════════════════════════════
   Curate the Welcome — stack layout
   ═══════════════════════════════════ */

/* Container */
.cpc-curate {
  font-family: var(--cc-sans);
  color: var(--cc-text);
}

/* ── Stats strip ── */
.cpc-stats-strip {
  display: flex; gap: 0; border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface);
}
.cpc-stat {
  flex: 1; display: flex; flex-direction: column;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--cc-border);
}
.cpc-stat:last-child { border-right: none; }
.cpc-stat-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text-muted);
}
.cpc-stat-label small { font-weight: 400; opacity: 0.7; }
.cpc-stat-value {
  font-size: 0.88rem; font-weight: 600;
  color: var(--cc-navy); margin-top: 2px;
  font-family: var(--cc-mono);
}
.cpc-stat-value strong { font-size: 1.1rem; }

/* ── Tab row ── */
.cpc-tab-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface);
}
.cpc-tabs { display: flex; gap: 0.25rem; }
.cpc-tab {
  padding: 4px 12px; border-radius: var(--cc-radius-pill);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--cc-text-muted);
  cursor: pointer; transition: all 0.12s;
  user-select: none;
}
.cpc-tab:hover { color: var(--cc-navy); }
.cpc-tab-active { background: var(--cc-navy); color: white; }
.cpc-tab-hint {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; color: var(--cc-text-muted);
}
.cpc-tab-hint-tap {
  font-weight: 700; color: var(--cc-navy);
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Distributor table ── */
.cpc-table-wrap {
  overflow-x: auto;
  max-height: 380px; overflow-y: auto;
}
.cpc-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.82rem;
}
.cpc-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--cc-surface-sunken);
  padding: 0.5rem 0.75rem;
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted);
  text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--cc-border);
}
.cpc-th-check { width: 30px; }
.cpc-th-name { min-width: 200px; }

/* Table rows */
.cpc-trow { transition: background 0.1s; }
.cpc-trow:hover { background: var(--cc-surface-sunken); }
.cpc-trow td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cc-border) 40%, transparent);
  vertical-align: middle;
}
.cpc-row-first {
  background: var(--cc-gold-soft);
  border-left: 3px solid var(--cc-gold);
}
.cpc-row-first td:first-child { padding-left: calc(0.75rem - 3px); }

/* Hint row */
.cpc-hint-row td {
  padding: 0.35rem 0.75rem;
  background: var(--cc-surface-sunken);
  font-size: 0.75rem; color: var(--cc-text-muted);
  font-style: italic;
  border-bottom: 1px solid var(--cc-border);
}

/* Name cell */
.cpc-name-cell { display: flex; align-items: center; gap: 0.5rem; }
.cpc-name-info { display: flex; flex-direction: column; min-width: 0; }
.cpc-client-name {
  font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpc-client-sub {
  font-size: 0.7rem; color: var(--cc-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpc-badge-new {
  font-size: 0.55rem; font-weight: 700;
  padding: 1px 6px; border-radius: var(--cc-radius-pill);
  background: linear-gradient(135deg, #c29954, #e6c47a);
  color: white; text-transform: uppercase;
  letter-spacing: 0.03em; white-space: nowrap;
}

/* Phase pill */
.cpc-phase-pill {
  display: inline-block;
  padding: 2px 8px; border-radius: var(--cc-radius-pill);
  font-size: 0.68rem; font-weight: 600;
  background: var(--cc-surface-sunken); color: var(--cc-text-muted);
}
.cpc-phase-1 { background: var(--cc-gold-soft); color: var(--cc-gold); }

/* Checkbox */
.cpc-td-check { width: 30px; text-align: center; }
.cpc-dist-check {
  width: 16px; height: 16px;
  border: 2px solid var(--cc-border); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0; transition: all 0.12s;
}
.cpc-dist-check--checked {
  background: var(--cc-navy); border-color: var(--cc-navy);
  color: white; font-size: 0.65rem;
}

/* Avatar */
.cpc-dist-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.cpc-av-1 { background: linear-gradient(135deg, #1a1a2e, #3a3a5e); }
.cpc-av-2 { background: linear-gradient(135deg, #c29954, #e6c47a); }
.cpc-av-3 { background: linear-gradient(135deg, #7b2d5f, #b8548e); }
.cpc-av-4 { background: linear-gradient(135deg, #2d6b7b, #54a8b8); }
.cpc-av-5 { background: linear-gradient(135deg, #5f2d7b, #9854b8); }
.cpc-av-6 { background: linear-gradient(135deg, #7b542d, #b88654); }
.cpc-av-7 { background: linear-gradient(135deg, #2d7b3f, #54b86e); }

/* Channel pills */
.cpc-ch-pill {
  display: inline-block;
  padding: 1px 6px; border-radius: var(--cc-radius-pill);
  font-size: 0.6rem; font-weight: 600; white-space: nowrap;
}
.cpc-ch-email { background: #e8f0fe; color: #1a73e8; }
.cpc-ch-wa { background: #e6f9ee; color: #128c7e; }
.cpc-ch-none { background: var(--cc-surface-sunken); color: var(--cc-text-muted); }

/* ── Honorary section ── */
.cpc-honorary-section {
  padding: 1rem;
  border-top: 1px solid var(--cc-border);
}
.cpc-honorary-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.cpc-honorary-title {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted);
}
.cpc-honorary-right {
  font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted);
}
.cpc-honorary-count { color: var(--cc-gold); font-weight: 700; }
.cpc-honorary-desc {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cc-gold);
  border-radius: var(--cc-radius);
  background: var(--cc-gold-soft);
}
.cpc-honorary-desc em {
  font-size: 0.82rem; color: var(--cc-navy);
  font-style: italic;
}

/* Honorary cards */
.cpc-honorary-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.cpc-honorary-card {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 0.75rem; background: var(--cc-surface);
  transition: border-color 0.15s;
}
.cpc-honorary-card:hover { border-color: var(--cc-gold); }
.cpc-honorary-card-top {
  display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 8px;
}
.cpc-honorary-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
  flex-shrink: 0;
}
.cpc-honorary-card-info { flex: 1; min-width: 0; }
.cpc-honorary-card-name {
  font-size: 0.88rem; font-weight: 700; color: var(--cc-navy);
}
.cpc-honorary-card-sub {
  font-size: 0.72rem; color: var(--cc-text-muted); margin-top: 1px;
}
.cpc-honorary-remove {
  background: none; border: none;
  font-size: 0.7rem; font-weight: 700; color: var(--cc-danger);
  cursor: pointer; padding: 0 4px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.03em;
  white-space: nowrap;
}
.cpc-honorary-remove:hover { color: #b71c1c; }
.cpc-honorary-card-fields {
  display: flex; gap: 1.5rem; margin-bottom: 6px;
}
.cpc-honorary-field-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  color: var(--cc-text-muted); letter-spacing: 0.04em;
}
.cpc-honorary-field-value {
  font-size: 0.78rem; color: var(--cc-navy); margin-top: 1px;
  font-family: var(--cc-mono);
}
.cpc-honorary-template-pill {
  display: inline-block; padding: 3px 12px;
  border: 1px solid var(--cc-border); border-radius: 20px;
  font-size: 0.75rem; color: var(--cc-navy);
  background: var(--cc-surface);
}
.cpc-honorary-card-note {
  font-size: 0.75rem; color: var(--cc-gold);
  font-style: italic; margin-top: 6px;
}
.cpc-honorary-note-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  color: var(--cc-text-muted); letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.cpc-honorary-note-text {
  font-size: 0.78rem; color: var(--cc-navy); font-style: italic;
}

/* Add honorary input (dashed box) */
.cpc-honorary-add {
  text-align: center;
  margin-bottom: 0.75rem;
}
.cpc-honorary-name-input {
  width: 100%; padding: 0.6rem 1rem;
  border: 2px dashed var(--cc-gold);
  border-radius: var(--cc-radius);
  background: transparent;
  font-size: 0.88rem; font-weight: 600;
  color: var(--cc-gold);
  text-align: center;
  font-family: var(--cc-sans);
  transition: all 0.15s;
}
.cpc-honorary-name-input::placeholder {
  color: var(--cc-gold); opacity: 0.8;
}
.cpc-honorary-name-input:focus {
  outline: none; border-color: var(--cc-navy);
  color: var(--cc-navy); text-align: left;
}

/* Available templates row */
.cpc-honorary-templates {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.cpc-templates-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted);
}
.cpc-template-pill {
  display: inline-block; padding: 4px 14px;
  border: 1px solid var(--cc-border); border-radius: 20px;
  font-size: 0.75rem; color: var(--cc-navy);
  background: var(--cc-surface);
  cursor: default; white-space: nowrap;
}

/* ── Launch panel ── */
.cpc-launch-panel {
  border-top: 2px solid var(--cc-border);
  padding: 1rem; background: var(--cc-surface-sunken);
}
.cpc-launch-header {
  font-weight: 700; font-size: 0.92rem;
  color: var(--cc-navy); margin-bottom: 0.25rem;
}
.cpc-launch-sub {
  font-size: 0.65rem; font-weight: 400;
  color: var(--cc-text-muted); display: block;
  margin-top: 2px; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cpc-launch-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 0.75rem;
}
.cpc-launch-card {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 1rem; background: var(--cc-surface);
  display: flex; flex-direction: column;
}
.cpc-launch-card--primary {
  border-color: var(--cc-gold); background: var(--cc-gold-soft);
}
.cpc-launch-card-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 0.35rem;
}
.cpc-launch-icon { font-size: 1.1rem; }
.cpc-launch-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted);
}
.cpc-launch-card h4 {
  margin: 0 0 0.35rem; font-size: 0.9rem;
  font-weight: 700; color: var(--cc-navy);
}
.cpc-launch-card p {
  margin: 0 0 0.5rem; font-size: 0.78rem;
  color: var(--cc-text-muted); line-height: 1.4; flex: 1;
}
.cpc-launch-card small {
  display: block; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--cc-text-muted); margin-bottom: 0.5rem;
}

/* Buttons */
.cpc-btn {
  border: none; border-radius: var(--cc-radius-sm);
  padding: 0.5rem 1.25rem; font-weight: 600;
  font-size: 0.82rem; cursor: pointer;
  font-family: var(--cc-sans);
  min-height: 38px; transition: all 0.15s;
  text-align: center;
}
.cpc-btn-primary { background: var(--cc-navy); color: white; }
.cpc-btn-primary:hover { background: #2a2a4e; }
.cpc-btn-ghost {
  background: none; color: var(--cc-navy);
  border: 1px solid var(--cc-border);
}
.cpc-btn-ghost:hover { border-color: var(--cc-navy); }

/* Empty state + placeholder */
.cpc-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  color: var(--cc-text-muted); font-size: 0.85rem;
}
.cpc-list-placeholder {
  padding: 2rem; text-align: center;
  color: var(--cc-text-muted); font-size: 0.85rem;
}

/* ═══════════════════════════════════
   Launch Studio
   ═══════════════════════════════════ */

.cls-artifact-zone, .cls-artifact-studio { padding: 0.5rem 0; }
.cls-artifact-info { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.cls-status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: var(--cc-radius-pill);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  background: var(--cc-gold-soft); color: var(--cc-gold);
}

.cls-print-sequence { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.cls-seq-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-family: var(--cc-mono);
  background: var(--cc-surface-sunken); color: var(--cc-text-muted);
}

.cls-template-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0.5rem 0; }
.cls-template-card {
  padding: 1rem; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm);
  text-align: center; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  transition: border-color 0.15s;
}
.cls-template-card:hover { border-color: var(--cc-gold); }

.cls-preview-zone { min-height: 200px; border: 1px solid var(--cc-border); border-radius: var(--cc-radius); margin: 0.5rem 0; }
.cls-preview-placeholder { padding: 2rem; text-align: center; color: var(--cc-text-muted); }

.cls-launch-actions { display: flex; gap: 0.5rem; padding: 0.75rem 0; }
.cls-launch-btn {
  background: var(--cc-gold); color: var(--cc-navy); border: none;
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 700; cursor: pointer; min-height: 44px;
}
.cls-launch-btn:hover { background: var(--cc-gold-bright); }
.cls-schedule-btn {
  background: none; color: var(--cc-navy); border: 1px solid var(--cc-border);
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 600; cursor: pointer; min-height: 44px;
}

.cls-sequence-rail { padding: 0.5rem; }
.cls-seq-header { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--cc-text-muted); padding-bottom: 0.5rem; }
.cls-seq-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.cls-seq-num { font-family: var(--cc-mono); font-size: 0.7rem; color: var(--cc-text-muted); width: 1.5rem; }
.cls-seq-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: var(--cc-radius-sm); }
.cls-seq-name { font-size: 0.8rem; }
.cls-seq-empty { padding: 1rem; color: var(--cc-text-muted); font-style: italic; }

.cls-print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; padding: 0.75rem 0; }

/* ═══════════════════════════════════
   Monitor — Watch & Curate
   ═══════════════════════════════════ */

.cm-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.cm-stat, .cm-stat-card {
  padding: 0.75rem;
  background: var(--cc-surface);
  border-radius: var(--cc-radius-sm);
  box-shadow: var(--cc-shadow-sm);
  text-align: center;
}
.cm-stat-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cc-text-muted); font-family: var(--cc-mono); }
.cm-stat-value { display: block; font-size: 1.3rem; font-weight: 700; color: var(--cc-navy); font-family: var(--cc-serif); margin-top: 0.2rem; }
.cm-status-pill { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--cc-radius-pill); background: var(--cc-gold-soft); color: var(--cc-gold); font-weight: 700; }

.cm-console-grid { display: grid; grid-template-columns: 1fr 1.2fr 0.8fr; gap: 0.75rem; padding: 0.75rem 0; }
.cm-col { background: var(--cc-surface); border-radius: var(--cc-radius-sm); padding: 0.75rem; box-shadow: var(--cc-shadow-sm); }
.cm-col-header { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cc-text-muted); padding-bottom: 0.5rem; border-bottom: 1px solid var(--cc-border); margin-bottom: 0.5rem; }

.cm-print-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0;
}
.cm-print-num { font-family: var(--cc-mono); font-size: 0.7rem; color: var(--cc-text-muted); width: 2rem; }
.cm-print-name { font-size: 0.85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-palette-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.cm-palette-warm { background: #e8913a; }
.cm-palette-cool { background: #5b8fd9; }
.cm-palette-neutral { background: #9ca3af; }
.cm-palette-deep { background: #7c3aed; }
.cm-demand { font-family: var(--cc-mono); font-size: 0.75rem; color: var(--cc-navy); min-width: 3rem; text-align: right; }
.cm-selected { background: var(--cc-gold-soft); border-radius: var(--cc-radius-sm); }

.cm-star-btn {
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
  color: var(--cc-border); min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.cm-selected .cm-star-btn { color: var(--cc-gold); }

.cm-activity-placeholder { padding: 1rem; color: var(--cc-text-muted); font-style: italic; }

.cm-curation-toolbar { display: flex; gap: 0.25rem; padding: 0.5rem 0; }
.cm-sort-btn {
  padding: 0.3rem 0.75rem; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-pill);
  background: none; font-size: 0.75rem; cursor: pointer; min-height: 44px;
}
.cm-sort-active { background: var(--cc-navy); color: white; border-color: var(--cc-navy); }

.cm-curation-footer { padding: 0.75rem 0; }
.cm-advance-btn {
  background: var(--cc-gold); color: var(--cc-navy); border: none;
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 700; cursor: pointer; min-height: 44px;
}
.cm-advance-btn:hover { background: var(--cc-gold-bright); }

.cm-distributors-panel, .cm-curation-workspace, .cm-activity-stream { min-height: 100px; }
.cm-curation-list, .cm-curation-placeholder { padding: 0.5rem 0; }
.cm-curation-placeholder { color: var(--cc-text-muted); font-style: italic; }

@keyframes cm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Step 6 styles moved to cfs_step6.css */

/* ═══════════════════════════════════
   Lock & Invoice
   ═══════════════════════════════════ */

.cli-status-bar { padding: 0.5rem 0; }
.cli-status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: var(--cc-radius-pill);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  background: var(--cc-surface-sunken); color: var(--cc-text-muted);
}
.cli-locked { background: var(--cc-navy); color: white; }
.cli-status-locked { background: var(--cc-navy); color: white; }
.cli-status-po_created { background: var(--cc-success); color: white; }

.cli-designer-info { padding: 0.5rem 0; color: var(--cc-text-muted); }

.cli-lock-console, .cli-invoice-studio { min-height: 200px; }
.cli-matrix-zone { min-height: 100px; }
.cli-matrix-placeholder, .cli-inv-placeholder { padding: 2rem; text-align: center; color: var(--cc-text-muted); font-style: italic; }

.cli-lock-actions, .cli-inv-actions { display: flex; gap: 0.5rem; padding: 0.75rem 0; }
.cli-lock-btn {
  background: var(--cc-navy); color: white; border: none;
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 700; cursor: pointer; min-height: 44px;
}
.cli-lock-btn:hover { background: #2a2a4e; }
.cli-extend-btn {
  background: none; color: var(--cc-navy); border: 1px solid var(--cc-border);
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 600; cursor: pointer; min-height: 44px;
}

.cli-inv-header { font-weight: 700; padding: 0.5rem 0; border-bottom: 1px solid var(--cc-border); margin-bottom: 0.5rem; }

.cli-lock-notice { padding: 1rem; }
.cli-notice-sealed { text-align: center; }
.cli-notice-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.cli-notice-title { font-family: var(--cc-serif); font-size: 1.4rem; font-weight: 600; color: var(--cc-navy); }
.cli-notice-collection { font-family: var(--cc-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cc-text-muted); margin: 0.25rem 0; }
.cli-notice-body { padding: 0.75rem 0; color: var(--cc-text); }
.cli-notice-pending { padding: 0.5rem 0; }

.cli-invoice-card { padding: 0.75rem; }
.cli-inv-ready, .cli-inv-pending {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
}
.cli-inv-icon { font-size: 1.5rem; }
.cli-inv-label { font-size: 0.85rem; }

/* ── Stat Strip ── */
.cli-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.5rem 0 0.65rem;
}
.cli-stat-tile {
  padding: 0.55rem 0.4rem;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  text-align: center;
  min-width: 0;
}
.cli-stat-tile--navy { background: var(--cc-navy); border-color: var(--cc-navy); }
.cli-stat-tile--green { border: 2px solid var(--cc-success); }
.cli-stat-tile--pink  { border: 2px solid var(--cc-pink); }
.cli-stat-tile--amber { border: 2px solid var(--cc-amber, #F59E0B); }
.cli-stat-tile-label {
  font-family: var(--cc-mono);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cc-text-muted);
  margin-bottom: 0.15rem;
  line-height: 1.3;
  word-break: break-word;
}
.cli-stat-tile--navy .cli-stat-tile-label { color: rgba(255,255,255,0.7); }
.cli-stat-tile-value {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cc-navy);
  font-weight: 600;
  line-height: 1.1;
}
.cli-stat-tile--navy .cli-stat-tile-value { color: #fff; }

/* ── Distributor Matrix ── */
.cli-dist-matrix-wrap { margin: 0.25rem 0 0.5rem; }
.cli-dist-matrix-eyebrow {
  font-family: var(--cc-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cc-text-muted);
  padding: 0.4rem 0 0.25rem;
  border-bottom: 1px solid var(--cc-border);
  margin-bottom: 0.25rem;
}
.cli-dist-matrix { padding: 0.25rem 0; max-height: 220px; overflow-y: auto; }
.cli-dist-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cc-border);
}
.cli-dist-row:last-child { border-bottom: none; }
.cli-dist-identity { min-width: 110px; max-width: 130px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.cli-dist-name { font-size: 0.78rem; font-weight: 600; color: var(--cc-navy); line-height: 1.3; }
.cli-dist-badge {
  display: inline-block;
  font-family: var(--cc-mono);
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--cc-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cli-dist-badge--anchor { background: var(--cc-gold-foil); color: var(--cc-navy); }
.cli-dist-badge--first  { background: var(--cc-success); color: white; }
.cli-dist-context { font-size: 0.7rem; color: var(--cc-text-muted); }
.cli-dist-chips { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; min-width: 0; }
.cli-dist-chip {
  font-family: var(--cc-mono);
  font-size: 0.58rem;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  background: var(--cc-surface-sunken);
  color: var(--cc-navy);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.cli-dist-chip--skipped {
  background: none;
  border: 1px dashed var(--cc-border);
  color: var(--cc-text-muted);
  opacity: 0.4;
  padding: 0.08rem 0.2rem;
}
.cli-dist-totals { min-width: 64px; text-align: right; display: flex; flex-direction: column; gap: 0.05rem; flex-shrink: 0; }
.cli-dist-totals-units {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cc-navy);
  font-weight: 600;
}
.cli-dist-totals-local { font-family: var(--cc-mono); font-size: 0.6rem; color: var(--cc-text-muted); }
.cli-dist-status { min-width: 58px; text-align: right; flex-shrink: 0; }
.cli-dist-locked-badge {
  display: inline-block;
  background: var(--cc-success);
  color: white;
  font-family: var(--cc-mono);
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--cc-radius-pill);
  font-weight: 700;
}
.cli-dist-day { font-family: var(--cc-mono); font-size: 0.6rem; color: var(--cc-text-muted); margin-top: 0.15rem; }

/* ── PO Preview navy panel ── */
.cli-po-preview {
  background: var(--cc-navy);
  color: white;
  border-radius: var(--cc-radius-sm);
  overflow: hidden;
  margin-top: 0.6rem;
}
.cli-po-placeholder { padding: 1rem; color: rgba(255,255,255,0.5); font-style: italic; font-size: 0.85rem; }
.cli-po-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
}
.cli-po-supplier-name { font-weight: 700; font-size: 0.9rem; }
.cli-po-supplier-sub  { font-family: var(--cc-mono); font-size: 0.62rem; opacity: 0.65; margin-top: 0.1rem; }
.cli-po-number { font-family: var(--cc-mono); font-weight: 700; color: var(--cc-gold); letter-spacing: 0.08em; font-size: 0.9rem; }
.cli-po-draft-badge { font-family: var(--cc-mono); font-size: 0.55rem; opacity: 0.55; text-transform: uppercase; }
.cli-po-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.cli-po-table th {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.35rem 0.6rem;
  font-family: var(--cc-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: left;
}
.cli-po-table th:last-child { text-align: right; }
.cli-po-table td {
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: white;
}
.cli-po-table td:last-child { text-align: right; color: var(--cc-gold); }
.cli-po-total-row td {
  border-top: 1px solid var(--cc-gold);
  border-bottom: none;
  color: var(--cc-gold);
  font-weight: 700;
  padding-top: 0.45rem;
}

/* ── CTA row ── */
.cli-cta-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0 0.25rem;
  flex-wrap: wrap;
}
.cli-adjust-btn {
  background: none;
  color: var(--cc-navy);
  border: 1px solid var(--cc-navy);
  padding: 0.55rem 1.1rem;
  border-radius: var(--cc-radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
}
.cli-adjust-btn:hover { background: var(--cc-navy); color: white; }
.cli-cancel-btn {
  background: var(--cc-danger);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--cc-radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
}
.cli-cancel-btn:hover { background: #b71c1c; }
.cli-send-btn {
  background: var(--cc-gold);
  color: var(--cc-navy);
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--cc-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 0 12px rgba(194,153,84,0.45);
  margin-left: auto;
}
.cli-send-btn:hover { background: var(--cc-gold-bright, #d4aa64); box-shadow: 0 0 20px rgba(194,153,84,0.65); }
.cli-send-btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* ── Invoice Studio tabs ── */
.cli-inv-tabs { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.25rem 0; }
.cli-inv-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.cli-inv-tab:hover { background: var(--cc-surface-sunken); }
.cli-inv-tab.cli-inv-tab--active { background: var(--cc-navy); border-color: var(--cc-navy); }
.cli-inv-tab.cli-inv-tab--active .cli-inv-tab-name { color: white; }
.cli-inv-tab.cli-inv-tab--active .cli-inv-tab-meta { color: rgba(255,255,255,0.65); }
.cli-inv-tab-name { font-size: 0.85rem; font-weight: 600; color: var(--cc-navy); flex: 1; }
.cli-inv-tab-meta { font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted); }
.cli-inv-tab-status {
  font-family: var(--cc-mono); font-size: 0.6rem; padding: 0.1rem 0.4rem;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-surface-sunken); color: var(--cc-text-muted);
}
.cli-inv-tab-status--sent { background: var(--cc-success); color: white; }
.cli-inv-tab-status--ready { background: var(--cc-gold); color: var(--cc-navy); }
.cli-inv-preview {
  background: var(--cc-surface-sunken);
  border: 1px solid var(--cc-border);
  border-top: 2px solid var(--cc-navy);
  border-radius: var(--cc-radius-sm);
  padding: 0.5rem 0.65rem 0.65rem;
  margin: 0.4rem 0;
  min-height: 64px;
}
.cli-inv-preview-eyebrow {
  font-family: var(--cc-mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cc-navy);
  opacity: 0.55;
  margin-bottom: 0.2rem;
}
.cli-inv-preview-name { font-size: 0.85rem; font-weight: 700; color: var(--cc-navy); }
.cli-inv-preview-meta { font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted); margin-top: 0.08rem; }
.cli-inv-preview-empty { color: var(--cc-text-muted); font-style: italic; font-size: 0.82rem; }
.cli-inv-generate-btn {
  background: var(--cc-navy); color: white; border: none;
  padding: 0.55rem 1.1rem; border-radius: var(--cc-radius-sm);
  font-weight: 600; cursor: pointer; min-height: 40px;
}
.cli-inv-send-btn {
  background: var(--cc-gold); color: var(--cc-navy); border: none;
  padding: 0.55rem 1.1rem; border-radius: var(--cc-radius-sm);
  font-weight: 700; cursor: pointer; min-height: 40px;
}

/* ── Lock Notice (cln) enhanced ── */
.cln-cover-wash {
  width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 50%, #1a2a2e 100%);
  border-radius: var(--cc-radius-sm) var(--cc-radius-sm) 0 0;
  margin: -0.75rem -0.75rem 0.75rem;
  width: calc(100% + 1.5rem);
}
.cln-cover-locked-text {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.cln-cover-collection {
  font-family: var(--cc-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cc-gold);
  margin-top: 0.35rem;
}
.cln-commitment-headline {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}
.cln-commitment-qty {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--cc-navy);
  font-weight: 700;
}
.cln-commitment-unit {
  font-family: var(--cc-sans);
  font-size: 1rem;
  color: var(--cc-text-muted);
  margin-left: 0.35rem;
}
.cln-commitment-sub { text-align: center; font-size: 0.82rem; color: var(--cc-text-muted); padding-bottom: 0.25rem; }
.cln-ships-in {
  text-align: center;
  font-family: var(--cc-mono);
  font-size: 0.7rem;
  color: var(--cc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
}

/* ── Print tiles with designer note ── */
.cln-print-tile {
  background: #faf7f0;
  border: 1.5px solid rgba(194,153,84,0.3);
  border-radius: var(--cc-radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.cln-tile-header {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem;
}
.cln-tile-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  background-color: var(--cc-border);
}
.cln-tile-thumb--empty { background-color: var(--cc-border); }
.cln-tile-meta { flex: 1; min-width: 0; }
.cln-tile-name { font-size: 0.85rem; font-weight: 600; color: var(--cc-navy); }
.cln-tile-qty {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cc-gold);
  font-weight: 600;
}
.cln-tile-unit { font-size: 0.7rem; color: var(--cc-text-muted); margin-left: 0.15rem; }
.cln-tile-styles { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0.2rem; }
.cln-tile-designer-note {
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--cc-text-muted);
  padding: 0.35rem 0.65rem 0.5rem;
  border-top: 1px solid rgba(194,153,84,0.2);
  line-height: 1.5;
}
.cln-tile-designer-label {
  font-family: var(--cc-mono);
  font-style: normal;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cc-gold);
  margin-right: 0.35rem;
}

/* ── Timeline ── */
.cln-timeline {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--cc-border);
  margin-top: 0.5rem;
}
.cln-timeline-title {
  font-family: var(--cc-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cc-text-muted);
  margin-bottom: 0.4rem;
}
.cln-timeline-stages { display: flex; flex-direction: column; gap: 0.4rem; }
.cln-timeline-stage { display: flex; align-items: center; gap: 0.55rem; }
.cln-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cc-gold);
  flex-shrink: 0;
}
.cln-timeline-dot--dim {
  background: none;
  border: 1.5px solid var(--cc-border);
}
.cln-timeline-stage--active .cln-timeline-label { color: var(--cc-navy); font-weight: 600; }
.cln-timeline-label { font-size: 0.78rem; color: var(--cc-text-muted); }

/* ── Signature ── */
.cln-signature {
  text-align: center;
  font-family: var(--cc-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--cc-text-muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--cc-border);
}

/* ── Affordance buttons ── */
.cln-affordances {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--cc-border);
}
.cln-btn-pdf {
  flex: 1;
  padding: 0.6rem;
  border: 1.5px solid var(--cc-navy);
  background: none;
  color: var(--cc-navy);
  border-radius: var(--cc-radius-pill);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
}
.cln-btn-pdf:hover { background: var(--cc-surface-sunken); }
.cln-btn-forward {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: var(--cc-navy);
  color: white;
  border-radius: var(--cc-radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
}
.cln-btn-forward:hover { background: #2a2a4e; }

/* ── Immutability footer ── */
.cln-immutability-footer {
  font-family: var(--cc-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cc-text-muted);
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid var(--cc-border);
  opacity: 0.65;
}

/* ── Advance Invoice (cai) overrides ── */
/* ── Party grid ── */
.cai-party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface-sunken);
}
.cai-party-col { display: flex; flex-direction: column; gap: 0.1rem; }
.cai-party-label {
  font-family: var(--cc-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cc-gold);
  font-weight: 700;
}
.cai-party-name { font-size: 0.82rem; font-weight: 600; color: var(--cc-navy); }
.cai-party-detail { font-size: 0.75rem; color: var(--cc-text-muted); }

/* ── Totals block ── */
.cai-totals-block {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--cc-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cai-totals-qty-line { display: flex; justify-content: space-between; }
.cai-totals-qty-label { font-size: 0.82rem; color: var(--cc-text-muted); }
.cai-totals-qty-value { font-family: var(--cc-serif); font-style: italic; font-size: 1.1rem; color: var(--cc-navy); font-weight: 700; }
.cai-totals-currency-note { font-family: var(--cc-mono); font-size: 0.68rem; color: var(--cc-text-muted); }
.cai-totals-fx-line { font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted); font-style: italic; }

/* ── Bank transfer panel ── */
.cai-bank-panel {
  background: #faf7f0;
  border: 1px solid rgba(194,153,84,0.3);
  border-radius: var(--cc-radius-sm);
  padding: 0.65rem 0.85rem;
  margin: 0.5rem 0.75rem;
}
.cai-bank-label {
  font-family: var(--cc-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cc-text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.cai-bank-row { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.2rem; }
.cai-bank-key { font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted); min-width: 60px; }
.cai-bank-iban { font-family: var(--cc-mono); font-size: 0.82rem; color: var(--cc-navy); font-weight: 600; letter-spacing: 0.04em; }
.cai-bank-val  { font-family: var(--cc-mono); font-size: 0.78rem; color: var(--cc-navy); }
.cai-bank-usd-note { font-size: 0.72rem; color: var(--cc-text-muted); font-style: italic; margin-top: 0.25rem; }

/* ── Payment terms ── */
.cai-payment-panel {
  background: var(--cc-surface-sunken);
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--cc-border);
  font-size: 0.8rem;
  color: var(--cc-text-muted);
}
.cai-accounting-note {
  border-top: 1px solid var(--cc-border);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.76rem;
}

.cai-placeholder { color: var(--cc-text-muted); font-style: italic; }

/* ═══════════════════════════════════
   Shared: Editable Field Inputs
   ═══════════════════════════════════ */

.cc-field-input, .cc-mood-input, .cls-schedule-input {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.85rem;
  background: var(--cc-surface);
  font-family: var(--cc-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-height: 44px;
}
.cc-field-input:hover, .cc-mood-input:hover { border-color: var(--cc-gold); }
.cc-field-input:focus, .cc-mood-input:focus, .cls-schedule-input:focus {
  border-color: var(--cc-gold);
  box-shadow: 0 0 0 3px rgba(194,153,84,0.15);
  outline: none;
}
.cc-mood-input {
  min-height: 60px; resize: vertical;
  font-family: var(--cc-serif); font-style: italic;
  border: 1px solid rgba(194,153,84,0.25);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  color: var(--cc-navy);
  background: rgba(194,153,84,0.06);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}
.cc-mood-input:hover { border-color: var(--cc-gold); }
.cc-mood-input:focus {
  border-color: var(--cc-gold);
  box-shadow: none;
  outline: none;
}
.cc-mood-input::placeholder {
  color: var(--cc-gold);
  opacity: 0.55;
  font-style: italic;
}
.cc-mood-prompt { position: relative; }
.cc-mood-counter {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 0.7rem; color: var(--cc-text-muted);
  font-family: var(--cc-mono);
}

/* Season chips */
.cc-chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-chip {
  padding: 4px 14px; border-radius: var(--cc-radius-pill);
  border: 1px solid var(--cc-border); cursor: pointer;
  font-size: 0.8rem; transition: all 0.2s;
  background: var(--cc-surface); min-height: 44px;
  display: flex; align-items: center;
}
.cc-chip:hover { border-color: var(--cc-gold); }
.cc-chip-active {
  background: var(--cc-gold); color: #fff;
  border-color: var(--cc-gold);
}

/* Save buttons */
.cc-save-btn, .cc-save-mood-btn {
  padding: 8px 20px; border-radius: var(--cc-radius-sm);
  border: none; cursor: pointer; font-weight: 600;
  font-size: 0.85rem; transition: all 0.2s;
  background: var(--cc-navy); color: #fff;
  min-height: 44px;
}
.cc-save-btn:hover, .cc-save-mood-btn:hover { background: #2a2a4e; }
.cc-field-actions { align-self: end; }

/* Cover file input (hidden, clickable dropzone) */
.cc-cover-file {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.cc-cover-dropzone { position: relative; cursor: pointer; }
.cc-drop-icon { font-size: 2rem; color: var(--cc-gold); }
.cc-drop-label { font-size: 0.85rem; }

/* ═══════════════════════════════════
   Launch Studio — Template picker state
   ═══════════════════════════════════ */

.cls-template-card { background: none; }
.cls-template-active {
  border-color: var(--cc-gold); background: var(--cc-gold-soft);
  box-shadow: 0 0 0 2px rgba(194,153,84,0.2);
}
.cls-tpl-icon { display: block; font-size: 1.5rem; margin-bottom: 0.25rem; }
.cls-tpl-name { display: block; }
.cls-section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  color: var(--cc-text-muted); letter-spacing: 0.04em;
  padding: 0.5rem 0 0.25rem;
}
.cls-schedule-row { padding: 0.25rem 0; }
.cls-save-spec-btn {
  background: none; color: var(--cc-navy); border: 1px solid var(--cc-border);
  padding: 0.65rem 1.5rem; border-radius: var(--cc-radius-sm);
  font-weight: 600; cursor: pointer; min-height: 44px;
}

/* Distributor print cards (JS-rendered) */
.cls-print-card-full {
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius);
  overflow: hidden; margin-bottom: 1rem;
}
.cls-print-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--cc-border); }
.cls-print-title { font-weight: 700; font-size: 1rem; }
.cls-print-story { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--cc-text); }
.cls-vote-strip {
  display: flex; gap: 0.5rem; padding: 0.5rem 1rem;
  border-top: 1px solid var(--cc-border);
}
.cls-vote-btn {
  padding: 6px 16px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-pill); background: none;
  cursor: pointer; font-size: 0.85rem; min-height: 44px;
}
.cls-vote-btn:hover { border-color: var(--cc-gold); }
.cls-vote-active { background: var(--cc-gold-soft); border-color: var(--cc-gold); }
.cls-comment-row {
  display: flex; gap: 0.5rem; padding: 0.5rem 1rem;
}
.cls-comment-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.85rem; min-height: 44px;
}
.cls-comment-btn {
  padding: 8px 14px; background: var(--cc-navy); color: white;
  border: none; border-radius: var(--cc-radius-sm); cursor: pointer; min-height: 44px;
}
.cls-quota-section {
  padding: 0.75rem 1rem; background: var(--cc-surface-sunken);
  border-top: 1px solid var(--cc-border);
}
.cls-quota-row {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0;
}
.cls-quota-style { font-size: 0.82rem; flex: 1; }
.cls-quota-input {
  width: 70px; padding: 4px 8px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); text-align: center;
  font-size: 0.85rem; min-height: 36px;
}
.cls-quota-stepper {
  display: flex; gap: 2px;
}
.cls-stepper-btn {
  width: 28px; height: 28px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); background: var(--cc-surface);
  cursor: pointer; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cls-stepper-btn:hover { background: var(--cc-gold-soft); }
.cls-quota-save-btn {
  padding: 7px 18px; background: var(--cc-gold); color: var(--cc-navy);
  border: none; border-radius: var(--cc-radius-sm);
  font-weight: 700; cursor: pointer; min-height: 44px;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════
   Monitor — Reminder button + selected count
   ═══════════════════════════════════ */

.cm-reminder-btn {
  padding: 4px 10px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-pill); background: none;
  font-size: 0.7rem; cursor: pointer; min-height: 32px;
  color: var(--cc-text-muted);
}
.cm-reminder-btn:hover { border-color: var(--cc-gold); color: var(--cc-gold); }
.cm-selected-count {
  font-family: var(--cc-mono); font-size: 0.75rem;
  color: var(--cc-text-muted); margin-right: 0.5rem;
}
.cm-demand-bar {
  height: 6px; border-radius: 3px;
  background: var(--cc-border); flex: 1; max-width: 80px; overflow: hidden;
}
.cm-demand-fill { height: 100%; border-radius: 3px; background: var(--cc-gold); }
.cm-sentiment { font-size: 0.7rem; color: var(--cc-text-muted); white-space: nowrap; }

/* Step 6 selected count + stepper styles moved to cfs_step6.css */

/* ═══════════════════════════════════
   Lock & Invoice — Matrix table
   ═══════════════════════════════════ */

.cli-matrix-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.8rem;
}
.cli-matrix-table th {
  padding: 0.4rem 0.6rem; background: var(--cc-navy); color: white;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  position: sticky; top: 0; z-index: 1;
}
.cli-matrix-table td {
  padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--cc-border);
  text-align: center;
}
.cli-matrix-table td:first-child { text-align: left; font-weight: 600; }
.cli-matrix-total { font-weight: 700; background: var(--cc-surface-sunken); }
.cli-matrix-zero { color: var(--cc-text-muted); opacity: 0.4; }
.cli-matrix-high { color: var(--cc-gold); font-weight: 700; }

.cli-inv-dist-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--cc-border);
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.cli-inv-dist-tab {
  padding: 0.4rem 0.75rem; border: none; background: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem; cursor: pointer; min-height: 44px;
}
.cli-inv-dist-tab-active { border-bottom-color: var(--cc-gold); font-weight: 700; }
.cli-inv-preview { padding: 0.5rem 0; min-height: 100px; }
.cli-extend-input {
  padding: 8px 12px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.85rem;
  min-height: 44px; margin-right: 0.5rem;
}

/* ═══════════════════════════════════
   Shared: Reduced motion
   ═══════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════
   Shared: Focus visible
   ═══════════════════════════════════ */

.cc-resample-btn:focus-visible,
.cc-sample-btn:focus-visible,
.cc-save-btn:focus-visible,
.cc-save-mood-btn:focus-visible,
.cc-field-input:focus-visible,
.cc-mood-input:focus-visible,
.cc-chip:focus-visible,
.cpc-btn:focus-visible,
.cpc-search:focus-visible,
.cpc-qf-chip:focus-visible,
.cls-launch-btn:focus-visible,
.cls-schedule-btn:focus-visible,
.cls-template-card:focus-visible,
.cls-vote-btn:focus-visible,
.cls-quota-save-btn:focus-visible,
.cm-star-btn:focus-visible,
.cm-sort-btn:focus-visible,
.cm-advance-btn:focus-visible,
.cm-reminder-btn:focus-visible,
.cfs-confirm-btn:focus-visible,
.cfs-launch-btn:focus-visible,
.cfs-select-btn:focus-visible,
.cli-lock-btn:focus-visible,
.cli-extend-btn:focus-visible,
.cai-action-pill:focus-visible,
.cln-action-link:focus-visible {
  outline: 2px solid var(--cc-navy);
  outline-offset: 2px;
}

/* ═══════════════════════════════════
   Monitor — Palette Balance Bar
   ═══════════════════════════════════ */

.cm-palette-balance {
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--cc-border);
  margin-top: 0.5rem;
}
.cm-balance-label {
  font-family: var(--cc-mono);
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text-muted); margin-bottom: 0.4rem;
}
.cm-balance-bar {
  display: flex; height: 10px; border-radius: 5px;
  overflow: hidden; background: var(--cc-border);
}
.cm-balance-seg { transition: width 0.3s ease; min-width: 0; }
/* NOTE: deeper saturation than .cm-palette-warm by design — the
   smaller balance-bar pixel footprint reads better with darker hue. */
.cm-balance-warm { background: #e65100; }
.cm-balance-cool { background: #1565c0; }
.cm-balance-neutral { background: #9e9e9e; }
.cm-balance-deep { background: #4a148c; }
.cm-balance-counts {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.4rem;
}
.cm-balance-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-family: var(--cc-mono);
  color: var(--cc-text-muted);
}
.cm-chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.cm-balance-chip--warm .cm-chip-dot { background: #e65100; }
.cm-balance-chip--cool .cm-chip-dot { background: #1565c0; }
.cm-balance-chip--neutral .cm-chip-dot { background: #9e9e9e; }
.cm-balance-chip--deep .cm-chip-dot { background: #4a148c; }
.cm-chip-n { font-weight: 700; }
.cm-balance-verdict {
  font-size: 0.75rem; color: var(--cc-text-muted);
  margin-top: 0.25rem; font-style: italic;
}

/* Monitor — Duplicate detection */
.cm-row-duplicate { border-left: 3px solid #ff9800; }
.cm-dup-flag {
  position: absolute; top: 2px; left: 2px;
  font-size: 0.55rem; font-family: var(--cc-mono);
  background: #ff9800; color: #fff; padding: 1px 4px;
  border-radius: 3px; text-transform: uppercase; font-weight: 700;
}
.cm-cur-thumb-wrap { position: relative; display: inline-block; }
.cm-duplicate-alerts { padding: 0 0.5rem; }
.cm-dup-alert {
  display: flex; align-items: flex-start; gap: 0.4rem;
  padding: 0.5rem; margin-bottom: 0.35rem;
  background: #fff3e0; border: 1px solid #ffe0b2;
  border-radius: var(--cc-radius-sm); font-size: 0.8rem;
}
.cm-dup-alert-icon { color: #ff9800; font-size: 1rem; }
.cm-dup-alert-text { flex: 1; line-height: 1.4; }

/* Monitor — Enhanced curation rows */
.cm-row-top3 .cm-demand-fill {
  background: linear-gradient(90deg, var(--cc-gold), #f5e6c0);
}
.cm-cur-sentiment {
  display: flex; gap: 0.35rem; font-size: 0.75rem;
  font-family: var(--cc-mono); white-space: nowrap;
}
.cm-sent-up { color: var(--cc-success); }
.cm-sent-down { color: var(--cc-danger); }
.cm-sent-comments { color: var(--cc-gold); }
.cm-footer-stats {
  display: flex; gap: 0.75rem; font-size: 0.8rem;
  color: var(--cc-text-muted); font-family: var(--cc-mono);
}

/* Step 6 enhanced finalist tiles moved to cfs_step6.css */

/* ═══════════════════════════════════
   LEAF: Lock Notice (collection_lock_notice)
   ═══════════════════════════════════ */

.cln-notice { padding: 0; }
.cln-sealed-card {
  background: var(--cc-surface);
  border: 2px solid rgba(194,153,84,0.25);
  border-radius: var(--cc-radius-md);
  overflow: hidden;
  border-image: linear-gradient(135deg, #c29954, #f5e6c0, #d4a865, #c29954, #e8d09a) 1;
}
.cln-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cc-border);
}
.cln-from {
  font-family: var(--cc-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text-muted);
}
.cln-seal-badge {
  font-family: var(--cc-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: linear-gradient(135deg, #c29954, #f5e6c0, #d4a865);
  background-size: 200% 200%;
  color: var(--cc-navy); font-weight: 700;
  padding: 3px 10px; border-radius: var(--cc-radius-pill);
}
.cln-hero {
  padding: 1.25rem 1rem; text-align: center;
}
.cln-hero-title {
  font-family: var(--cc-serif); font-size: 1.6rem;
  color: var(--cc-navy); font-weight: 700;
  margin-bottom: 0.25rem;
}
.cln-hero-title em {
  background: linear-gradient(135deg, var(--cc-gold), var(--cc-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cln-hero-collection {
  font-family: var(--cc-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cc-text-muted); margin-bottom: 0.15rem;
}
.cln-hero-season {
  font-family: var(--cc-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cc-text-muted);
}
.cln-hero-intro {
  font-size: 0.9rem; color: var(--cc-navy);
  margin-top: 0.5rem; line-height: 1.5;
}

/* Top picks grid */
.cln-top-picks {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--cc-border);
}
.cln-picks-label {
  font-family: var(--cc-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text-muted); font-weight: 600;
  margin-bottom: 0.5rem;
}
.cln-picks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.cln-pick-card {
  background: var(--cc-surface-sunken);
  border-radius: var(--cc-radius-sm);
  overflow: hidden; text-align: center;
  padding-bottom: 0.5rem;
}
.cln-pick-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background-size: cover; background-position: center;
  background-color: var(--cc-border);
  position: relative;
}
.cln-pick-thumb--empty {
  background: linear-gradient(135deg, var(--cc-surface-sunken), var(--cc-border));
}
.cln-pick-badge {
  position: absolute; bottom: 4px; left: 4px;
  font-size: 0.5rem; font-family: var(--cc-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--cc-gold); color: #fff;
  padding: 1px 6px; border-radius: 3px; font-weight: 700;
}
.cln-pick-name {
  font-size: 0.78rem; font-weight: 600;
  color: var(--cc-navy); margin-top: 0.3rem;
  padding: 0 0.3rem;
}
.cln-pick-qty {
  font-family: var(--cc-serif); font-size: 1.2rem;
  color: var(--cc-gold); font-weight: 700;
}
.cln-pick-unit {
  font-size: 0.6rem; font-family: var(--cc-mono);
  color: var(--cc-text-muted);
}
.cln-pick-styles {
  display: flex; flex-wrap: wrap; gap: 3px;
  justify-content: center; padding: 0 0.3rem;
}
.cln-style-chip {
  font-size: 0.6rem; font-family: var(--cc-mono);
  background: #fff; padding: 1px 6px;
  border-radius: var(--cc-radius-pill);
  color: var(--cc-navy);
}

.cln-closing {
  padding: 0.75rem 1rem; text-align: center;
  font-family: var(--cc-serif); font-size: 0.9rem;
  color: var(--cc-navy); border-top: 1px solid var(--cc-border);
}
.cln-action-zone {
  padding: 0.75rem 1rem; text-align: center;
  border-top: 1px solid var(--cc-border);
}
.cln-action-link {
  display: inline-block; padding: 10px 24px;
  background: var(--cc-gold); color: #fff;
  border-radius: var(--cc-radius-sm); cursor: pointer;
  font-weight: 600; font-size: 0.85rem; border: none;
  min-height: 44px; transition: background 0.2s;
}
.cln-action-link:hover { background: #d4a865; }

.cln-pending-card {
  padding: 1rem; text-align: center;
}
.cln-pending-title {
  font-family: var(--cc-serif); font-size: 1.1rem;
  color: var(--cc-navy); font-weight: 600;
}
.cln-pending-body { font-size: 0.85rem; color: var(--cc-text-muted); }

/* ═══════════════════════════════════
   LEAF: Advance Invoice (collection_advance_invoice)
   ═══════════════════════════════════ */

.cai-invoice { padding: 0; }
.cai-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ff9800, var(--cc-gold));
  color: #fff;
}
.cai-header-left {
  display: flex; align-items: center; gap: 0.5rem;
}
.cai-doc-icon { font-size: 1.5rem; }
.cai-header-title {
  font-weight: 700; font-size: 0.95rem;
}
.cai-header-sub {
  font-size: 0.72rem; opacity: 0.85;
}
.cai-badge {
  font-family: var(--cc-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: var(--cc-radius-pill);
  font-weight: 700;
}
.cai-badge--locked { background: rgba(255,255,255,0.25); color: #fff; }
.cai-badge--draft { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

.cai-meta {
  padding: 0.6rem 1rem; background: var(--cc-surface-sunken);
  border-bottom: 1px solid var(--cc-border);
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.cai-meta-row {
  display: flex; flex-direction: column;
}
.cai-meta-label {
  font-family: var(--cc-mono); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text-muted); font-weight: 700;
}
.cai-meta-value {
  font-size: 0.85rem; color: var(--cc-navy); font-weight: 500;
}

.cai-table-wrap {
  overflow-x: auto; padding: 0 0.5rem;
}
.cai-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.82rem;
}
.cai-table thead { background: var(--cc-navy); color: #fff; }
.cai-table th {
  padding: 0.5rem 0.6rem; font-family: var(--cc-mono);
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700;
  text-align: left;
}
.cai-th-qty, .cai-th-num { text-align: right; }
.cai-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--cc-border); }
.cai-table tbody tr:nth-child(even) { background: var(--cc-surface-sunken); }
.cai-td-num {
  font-family: var(--cc-mono); font-size: 0.75rem;
  color: var(--cc-text-muted); text-align: right;
}
.cai-td-print {
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 500;
}
.cai-thumb {
  width: 28px; height: 28px; border-radius: 4px;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.cai-td-styles {
  display: flex; flex-wrap: wrap; gap: 3px;
}
.cai-style-chip {
  font-size: 0.65rem; font-family: var(--cc-mono);
  background: var(--cc-surface-sunken); padding: 1px 6px;
  border-radius: var(--cc-radius-pill);
}
.cai-td-qty {
  text-align: right; font-family: var(--cc-mono);
  font-weight: 600;
}
.cai-totals-row {
  background: var(--cc-surface-sunken) !important;
  border-top: 2px solid var(--cc-navy);
}
.cai-totals-label {
  font-weight: 700; text-align: right;
  padding-right: 0.6rem !important;
}
.cai-totals-value {
  font-family: var(--cc-serif); font-size: 1.05rem;
  font-weight: 700; color: var(--cc-navy);
  text-align: right;
}
.cai-empty {
  padding: 1.5rem; text-align: center;
  color: var(--cc-text-muted); font-size: 0.85rem;
}

.cai-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.75rem 1rem; border-top: 1px solid var(--cc-border);
}
.cai-action-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 8px 16px; border-radius: var(--cc-radius-pill);
  border: 1px solid var(--cc-border); background: var(--cc-surface);
  cursor: pointer; font-size: 0.8rem; font-weight: 500;
  transition: all 0.2s; min-height: 40px;
}
.cai-action-pill:hover {
  border-color: var(--cc-navy); background: var(--cc-surface-sunken);
}
.cai-action-pill--gold {
  background: var(--cc-gold); color: #fff; border-color: var(--cc-gold);
}
.cai-action-pill--gold:hover {
  background: #d4a865; border-color: #d4a865;
}
.cai-pill-icon { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   Treasure Card Chrome — distributor-facing animated header
   ═══════════════════════════════════════════════════════════ */

/* 1. Animated gradient bar (6px) */
.cc-treasure-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--cc-pink), var(--cc-gold), var(--cc-pink));
  background-size: 200% 100%;
}

/* 2. Cover with breathing */
.cc-treasure-cover {
  position: relative;
  overflow: hidden;
  max-height: 220px;
}
.cc-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Audio glyph */
.cc-audio-glyph {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(26,26,46,0.7);
  border: 2px solid var(--cc-gold);
  color: var(--cc-gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.cc-audio-glyph:hover { transform: scale(1.1); }
.cc-audio-glyph.is-playing { background: var(--cc-gold); color: var(--cc-navy); }

/* 4. Eyebrow */
.cc-treasure-eyebrow {
  padding: 12px 20px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cc-gold);
}

/* 5. Title with shimmer */
.cc-treasure-title {
  padding: 8px 20px 0;
  font-family: var(--cc-serif);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--cc-navy);
  background: linear-gradient(90deg, var(--cc-navy) 0%, var(--cc-gold) 50%, var(--cc-navy) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 6. Mood line */
.cc-treasure-mood {
  padding: 4px 20px 0;
  font-family: var(--cc-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--cc-text-muted);
}

/* 7. Gold CTA */
.cc-treasure-cta-wrap {
  padding: 16px 20px;
  text-align: center;
}
.cc-treasure-cta {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-gold) 0%, #e6c77b 50%, var(--cc-gold) 100%);
  border: none;
  border-radius: var(--cc-radius-pill, 24px);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(194,153,84,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cc-treasure-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(194,153,84,0.5);
}

/* ── Animations (only when motion allowed) ── */
@media (prefers-reduced-motion: no-preference) {
  .cc-treasure-bar {
    animation: cc-bar-shift 4s linear infinite;
  }
  .cc-cover-img {
    animation: cc-breathe 6s ease-in-out infinite;
  }
  .cc-treasure-title {
    animation: cc-shimmer 3s ease-in-out infinite;
  }
  .cc-treasure-cta {
    animation: cc-glow 2s ease-in-out infinite;
  }
  .cc-audio-glyph {
    animation: cc-aura-pulse 3s ease-in-out infinite;
  }
  .cc-audio-glyph.is-playing .cc-audio-wave {
    animation: cc-audio-ring 1s ease-in-out infinite;
  }
}

@keyframes cc-bar-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes cc-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes cc-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes cc-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(194,153,84,0.35); }
  50% { box-shadow: 0 4px 30px rgba(194,153,84,0.6); }
}
@keyframes cc-aura-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,153,84,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(194,153,84,0); }
}
@keyframes cc-audio-ring {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* ── Reduced motion fallback ── */
@media (prefers-reduced-motion: reduce) {
  .cc-treasure-bar,
  .cc-cover-img,
  .cc-treasure-title,
  .cc-treasure-cta,
  .cc-audio-glyph,
  .cc-audio-glyph .cc-audio-wave {
    animation: none !important;
  }
  .cc-treasure-title {
    -webkit-text-fill-color: var(--cc-navy);
    background: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   Cinematic Reveal — full-screen choreographed takeover
   ═══════════════════════════════════════════════════════════ */

.cls-reveal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--cc-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
}
.cls-reveal::backdrop {
  background: var(--cc-navy);
}

/* Cover — rises from bottom */
.cr-cover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.cr-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

/* Title */
.cr-title {
  position: relative;
  z-index: 2;
  font-family: var(--cc-serif);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  text-align: center;
  opacity: 0;
  padding: 0 20px;
}

/* Mood line */
.cr-mood {
  position: relative;
  z-index: 2;
  font-family: var(--cc-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cc-gold);
  text-align: center;
  opacity: 0;
  margin-top: 8px;
}

/* Greeting */
.cr-greeting {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  opacity: 0;
  margin-top: 16px;
}

/* Skip button */
.cr-skip {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
}
.cr-skip:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Tap-to-play fallback */
.cr-tap-to-play {
  position: relative;
  z-index: 3;
  margin-top: 24px;
  padding: 10px 24px;
  font-size: 0.9rem;
  color: var(--cc-gold);
  background: rgba(194,153,84,0.15);
  border: 1px solid var(--cc-gold);
  border-radius: 20px;
  cursor: pointer;
}

/* Particles */
.cr-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cr-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cc-gold);
  opacity: 0;
}
.cr-p1 { top: 15%; left: 10%; }
.cr-p2 { top: 25%; left: 85%; }
.cr-p3 { top: 40%; left: 20%; }
.cr-p4 { top: 55%; left: 75%; }
.cr-p5 { top: 70%; left: 30%; }
.cr-p6 { top: 80%; left: 60%; }
.cr-p7 { top: 20%; left: 50%; }
.cr-p8 { top: 60%; left: 15%; }
.cr-p9 { top: 35%; left: 90%; }
.cr-p10 { top: 75%; left: 45%; }
.cr-p11 { top: 45%; left: 65%; }
.cr-p12 { top: 85%; left: 80%; }

/* ── Reveal animations (motion allowed) ── */
@media (prefers-reduced-motion: no-preference) {
  .cr-cover {
    animation: cr-cover-rise 1.2s ease-out forwards;
  }
  .cr-skip {
    animation: cr-fade-in 0.3s ease-out 0.6s forwards;
  }
  .cr-title {
    animation: cr-fade-in 0.6s ease-out 0.8s forwards;
  }
  .cr-mood {
    animation: cr-fade-in 0.5s ease-out 1s forwards;
  }
  .cr-greeting {
    animation: cr-fade-in 0.5s ease-out 1.2s forwards;
  }
  .cr-particle {
    animation: cr-particle 3s ease-out forwards;
  }
  .cr-p1 { animation-delay: 0.4s; }
  .cr-p2 { animation-delay: 0.5s; }
  .cr-p3 { animation-delay: 0.6s; }
  .cr-p4 { animation-delay: 0.7s; }
  .cr-p5 { animation-delay: 0.8s; }
  .cr-p6 { animation-delay: 0.9s; }
  .cr-p7 { animation-delay: 1.0s; }
  .cr-p8 { animation-delay: 1.1s; }
  .cr-p9 { animation-delay: 1.2s; }
  .cr-p10 { animation-delay: 1.3s; }
  .cr-p11 { animation-delay: 1.4s; }
  .cr-p12 { animation-delay: 1.5s; }
}

@keyframes cr-cover-rise {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cr-fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cr-particle {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  20% { opacity: 0.8; transform: scale(1) translateY(-10px); }
  100% { opacity: 0; transform: scale(0.5) translateY(-40px); }
}

/* ── Reveal reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .cr-cover,
  .cr-skip,
  .cr-title,
  .cr-mood,
  .cr-greeting {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .cr-particle {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   Launch Studio — Designer Console (4-Band Vertical)
   ═══════════════════════════════════════════════════════════ */

/* ── PSC Eyebrow ── */
.cls-psc-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 1rem;
  background: var(--cc-surface-sunken); border-bottom: 1px solid var(--cc-border);
}
.cls-psc-group {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--cc-mono); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cc-text-muted);
}
.cls-psc-group-icon { font-size: 0.85rem; }
.cls-psc-star {
  padding: 0.15rem 0.5rem; border-radius: var(--cc-radius-pill);
  background: var(--cc-gold-soft); color: var(--cc-gold); font-weight: 700;
}
.cls-psc-status {
  font-family: var(--cc-mono); font-size: 0.6rem;
  color: var(--cc-text-muted); font-weight: 600;
}

/* ── Title Row ── */
.cls-psc-title-row { padding: 0.75rem 1rem 0.5rem; }
.cls-psc-title {
  font-family: var(--cc-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--cc-navy); margin: 0;
}
.cls-psc-subtitle {
  font-family: var(--cc-sans); font-size: 0.75rem;
  color: var(--cc-text-muted); margin: 0.15rem 0 0;
}

/* ── BAND 1: Readiness Checklist ── */
.cls-readiness-strip {
  display: flex; flex-wrap: nowrap; gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--cc-border);
  overflow-x: auto;
}
.cls-readiness-chip {
  display: flex !important;
  flex-direction: column !important;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: default;
  min-width: 0;
  flex: 1 1 0;
  justify-content: center;
}
.cls-chip-label {
  display: block;
  font-family: var(--cc-mono); font-size: 0.45rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.15;
  color: inherit; opacity: 0.6;
}
.cls-chip-subtitle {
  display: block;
  font-size: 0.58rem; font-weight: 600;
  line-height: 1.2; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit;
}
.cls-chip-ok {
  background: #f4f9f1; color: #2d7a4f;
  border: 1.5px solid #a8d5ba;
}
.cls-chip-fail {
  background: #fdf5f3; color: #c0392b;
  border: 1.5px solid #e8b4b0;
}
.cls-chip-optional {
  background: #faf8f4; color: #8a7f6e;
  border: 1.5px solid #ddd8ce;
}

/* ── Band containers ── */
.cls-band {
  border-top: 1px solid var(--cc-border);
}
.cls-band-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem;
  background: var(--cc-surface-sunken);
  border-bottom: 1px solid var(--cc-border);
}
.cls-band-label {
  font-family: var(--cc-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cc-text); font-weight: 700;
}
.cls-band-meta {
  font-family: var(--cc-mono); font-size: 0.62rem;
  color: var(--cc-text-muted); font-weight: 600;
}

/* ═══ BAND 2: Slide Timeline Composer ═══ */
.cls-timeline {
  padding: 0.75rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cls-timeline-track {
  display: flex; gap: 0.65rem; align-items: flex-start;
  position: relative;
  padding-bottom: 0.5rem;
  min-width: min-content;
}
/* Connector line behind slides */
.cls-timeline-track::before {
  content: '';
  position: absolute;
  top: 40px; left: 16px; right: 60px;
  height: 2px;
  background: var(--cc-border);
  z-index: 0;
}

/* Individual slide card */
.cls-slide {
  position: relative; z-index: 1;
  min-width: 140px; max-width: 160px;
  flex-shrink: 0;
}
.cls-slide-drag {
  font-size: 0.65rem; color: var(--cc-text-muted);
  text-align: center; cursor: grab;
  padding: 0.15rem 0; letter-spacing: 2px;
  line-height: 1;
}
.cls-slide-drag:active { cursor: grabbing; }
.cls-slide-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.cls-slide-card:hover {
  box-shadow: var(--cc-shadow-sm);
  border-color: var(--cc-gold);
}
.cls-slide-preview {
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  overflow: hidden;
}
.cls-slide-preview--title {
  background: linear-gradient(135deg, var(--cc-navy), #2d2d5e);
  color: white;
}
.cls-slide-preview-text {
  font-family: var(--cc-serif); font-size: 0.72rem;
  font-weight: 600; text-align: center;
  padding: 0 0.5rem;
}
.cls-slide-preview-icon { margin-right: 0.25rem; }
.cls-slide-preview--greeting {
  background: linear-gradient(135deg, #fdf2e9, #fce8d5);
  color: var(--cc-navy);
}
.cls-slide-audio-wave {
  font-size: 0.85rem; letter-spacing: 3px; opacity: 0.7;
}
.cls-slide-audio-empty {
  font-size: 0.65rem; color: var(--cc-text-muted); font-style: italic;
}
.cls-slide-preview--prints {
  background: var(--cc-surface-sunken);
}
.cls-slide-grid-mini {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 4px;
  width: 52px; height: 52px;
}
.cls-slide-grid-dot {
  background: var(--cc-border); border-radius: 3px;
}
.cls-slide-preview--close {
  background: linear-gradient(135deg, #f5eedd, #fdf8f0);
}
.cls-slide-close-text {
  font-family: var(--cc-serif); font-size: 0.65rem;
  color: var(--cc-navy); padding: 0 0.5rem;
  text-align: center;
}
.cls-slide-meta {
  padding: 0.35rem 0.5rem;
  border-top: 1px solid var(--cc-border);
}
.cls-slide-name {
  font-size: 0.65rem; font-weight: 700;
  color: var(--cc-text);
}
.cls-slide-timing {
  font-family: var(--cc-mono); font-size: 0.55rem;
  color: var(--cc-text-muted);
}
.cls-slide-remove {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: white; border: 1px solid var(--cc-border);
  border-radius: 50%; font-size: 0.7rem;
  color: var(--cc-text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
  line-height: 1;
}
.cls-slide:hover .cls-slide-remove { opacity: 1; }
.cls-slide-remove:hover { color: #dc2626; border-color: #dc2626; }

/* Optional slide (e.g. no greeting) */
.cls-slide--optional .cls-slide-card { opacity: 0.55; border-style: dashed; }

/* Drag states */
.cls-slide--dragging { opacity: 0.4; }
.cls-slide--drop-target .cls-slide-card { border-color: var(--cc-gold); box-shadow: 0 0 0 2px rgba(194, 153, 84, 0.25); }

/* + Add slide affordance */
.cls-slide-add {
  position: relative; z-index: 1;
  min-width: 100px; flex-shrink: 0;
  display: flex; align-items: flex-start;
  padding-top: 16px;
}
.cls-slide-add-btn {
  background: none; border: 2px dashed var(--cc-border);
  border-radius: 8px; padding: 0.75rem 0.65rem;
  cursor: pointer; color: var(--cc-text-muted);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem; transition: border-color 0.15s, color 0.15s;
  width: 100%;
}
.cls-slide-add-btn:hover { border-color: var(--cc-gold); color: var(--cc-gold); }
.cls-slide-add-icon { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.cls-slide-add-text { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cls-slide-add-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  box-shadow: var(--cc-shadow-md);
  padding: 0.35rem;
  min-width: 140px;
  z-index: 10;
}
.cls-slide-add-option {
  display: block; width: 100%;
  background: none; border: none;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem; text-align: left;
  cursor: pointer; border-radius: 4px;
  color: var(--cc-text);
}
.cls-slide-add-option:hover { background: var(--cc-surface-sunken); }

/* ═══ BAND 3: Distributor Grid (country-grouped, 2-column) ═══ */
.cls-dg-wrap { /* container for Band 3 */ }
.cls-dg-empty {
  text-align: center; padding: 1.25rem;
  font-size: 0.8rem; color: var(--cc-text-muted);
  font-style: italic;
}

/* Toolbar: select-all + search */
.cls-dg-toolbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface-sunken);
}
.cls-dg-select-all-label {
  font-size: 0.6rem; font-weight: 600; color: var(--cc-text-muted);
  display: flex; align-items: center; gap: 0.25rem;
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cls-dg-toolbar input[type="checkbox"] {
  width: 13px; height: 13px; accent-color: var(--cc-navy);
}
.cls-dg-toolbar-sep {
  width: 1px; height: 14px;
  background: var(--cc-border); flex-shrink: 0;
}
.cls-dg-set-deadline-label {
  font-size: 0.58rem; font-weight: 600; color: var(--cc-text-muted);
  display: flex; align-items: center; gap: 0.3rem;
  cursor: pointer;
}
.cls-dg-set-deadline-text {
  white-space: nowrap;
}
.cls-dg-set-deadline {
  width: 90px; padding: 1px 4px;
  font-size: 0.55rem; font-weight: 600;
  border: 1px solid var(--cc-border);
  border-radius: 4px;
  background: var(--cc-surface);
  color: var(--cc-text);
  cursor: pointer; outline: none;
}
.cls-dg-set-deadline:hover { border-color: var(--cc-gold); }
.cls-dg-set-deadline:focus { border-color: var(--cc-gold); }
.cls-dg-search {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.62rem;
  border: 1px solid var(--cc-border);
  border-radius: 5px;
  outline: none; width: 140px;
  background: var(--cc-surface);
}
.cls-dg-search:focus { border-color: var(--cc-gold); }

/* Country group */
.cls-dg-country-group {
  border-bottom: 1px solid var(--cc-border);
}
.cls-dg-country-group:last-child { border-bottom: none; }
.cls-dg-country-header {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, var(--cc-surface-sunken), var(--cc-surface));
  cursor: pointer; user-select: none;
}
.cls-dg-country-flag { font-size: 0.85rem; line-height: 1; }
.cls-dg-country-name {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cc-text);
}
.cls-dg-country-count {
  font-size: 0.52rem; font-weight: 600;
  color: var(--cc-text-muted); margin-left: auto;
}
.cls-dg-country-arrow {
  font-size: 0.5rem; color: var(--cc-text-muted);
  transition: transform 0.15s;
}
.cls-dg-country-group.cls-dg-collapsed .cls-dg-country-arrow {
  transform: rotate(-90deg);
}
.cls-dg-country-group.cls-dg-collapsed .cls-dg-grid { display: none; }

/* Two-column grid */
.cls-dg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Individual client row */
.cls-dg-row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid var(--cc-border);
  min-height: 36px;
  transition: background 0.1s;
}
.cls-dg-row:hover { background: var(--cc-surface-sunken); }
.cls-dg-row:nth-child(odd) { border-right: 1px solid var(--cc-border); }
.cls-dg-row.cls-dg-hidden { display: none; }

/* Checkbox */
.cls-dg-cb {
  width: 13px; height: 13px;
  accent-color: var(--cc-navy);
  flex-shrink: 0; cursor: pointer;
}

/* Avatar */
.cls-dg-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cc-surface-sunken);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: var(--cc-text);
  flex-shrink: 0; text-transform: uppercase;
}

/* Name */
.cls-dg-name {
  font-size: 0.65rem; font-weight: 600; color: var(--cc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1;
}

/* Inline fields cluster */
.cls-dg-fields {
  display: flex; align-items: center; gap: 0.3rem;
  flex-shrink: 0;
}

/* Tiny pill */
.cls-dg-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border-radius: 4px;
  font-size: 0.5rem; font-weight: 600;
  background: var(--cc-surface-sunken);
  color: var(--cc-text-muted);
  white-space: nowrap;
}
.cls-dg-pill-icon {
  font-size: 0.55rem; flex-shrink: 0; opacity: 0.7;
}

/* Deadline input */
.cls-dg-deadline-input {
  width: 72px; padding: 1px 4px;
  font-size: 0.5rem; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.06);
  color: var(--cc-success);
  cursor: pointer; outline: none;
}
.cls-dg-deadline-input:hover { border-color: var(--cc-gold); }
.cls-dg-deadline-input:focus { border-color: var(--cc-gold); background: var(--cc-surface); }

/* Channel action buttons */
.cls-dg-channel {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; opacity: 0.35; cursor: default;
  color: var(--cc-text-muted);
  background: none; border: none; padding: 0;
  min-width: 20px; min-height: 20px;
}
.cls-dg-channel--active {
  opacity: 1; cursor: pointer;
}
.cls-dg-channel--active:hover {
  color: var(--cc-gold);
}
.cls-dg-channel:disabled {
  opacity: 0.25; cursor: default;
}
.cls-dg-channel--sent {
  color: var(--cc-success); opacity: 1;
}

/* Preview action button */
.cls-dg-action {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--cc-border);
  border-radius: 4px; cursor: pointer;
  font-size: 0.6rem; color: var(--cc-text-muted);
  flex-shrink: 0;
  transition: background 0.1s, border-color 0.1s;
}
.cls-dg-action:hover {
  background: var(--cc-surface-sunken);
  border-color: var(--cc-gold); color: var(--cc-text);
}

/* Footer count */
.cls-dg-footer {
  padding: 0.3rem 0.75rem;
  font-size: 0.55rem; color: var(--cc-text-muted);
  border-top: 1px solid var(--cc-border);
  background: var(--cc-surface-sunken);
  display: flex; gap: 0.75rem;
}
.cls-dg-footer strong { color: var(--cc-text); }

/* ═══ BAND 4: Three CTA Panels ═══ */
.cls-band-ctas {
  padding: 1rem;
  background: var(--cc-surface-sunken);
}
.cls-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.cls-cta-panel {
  padding: 1rem;
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 0.5rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cls-cta-panel:hover { transform: translateY(-2px); box-shadow: var(--cc-shadow-md); }

/* CTA 1: Preview — purple-bordered */
.cls-cta-preview {
  background: var(--cc-surface);
  border: 2px solid #7c3aed;
}
.cls-cta-preview .cls-cta-icon { color: #7c3aed; }

/* CTA 2: Schedule — navy */
.cls-cta-schedule {
  background: var(--cc-navy);
  border: 2px solid var(--cc-navy);
}
.cls-cta-schedule .cls-cta-icon,
.cls-cta-schedule .cls-cta-label,
.cls-cta-schedule .cls-cta-desc { color: rgba(255,255,255,0.9); }

/* CTA 3: Launch — gold-glowing */
.cls-cta-launch-now {
  background: linear-gradient(135deg, #fdf8f0, #fef3e2);
  border: 2px solid var(--cc-gold);
  box-shadow: 0 0 12px rgba(194, 153, 84, 0.2);
}
.cls-cta-icon {
  font-size: 1.5rem; line-height: 1;
}
.cls-cta-icon--gold { color: var(--cc-gold); }
.cls-cta-label {
  font-family: var(--cc-mono); font-size: 0.65rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cc-text);
}
.cls-cta-desc {
  font-size: 0.72rem; color: var(--cc-text-muted);
  line-height: 1.4;
}
.cls-cta-picker { margin-top: 0.25rem; }
.cls-preview-select, .cls-schedule-input {
  width: 100%; padding: 0.35rem 0.5rem;
  font-size: 0.75rem; border: 1px solid var(--cc-border);
  border-radius: 6px; background: var(--cc-surface);
  color: var(--cc-text);
}
.cls-btn {
  padding: 0.5rem 0.75rem;
  border: none; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s;
}
.cls-btn:hover { opacity: 0.85; }
.cls-btn--preview { background: #7c3aed; color: white; }
.cls-btn--schedule { background: white; color: var(--cc-navy); border: 1px solid var(--cc-border); }
.cls-btn--launch {
  background: linear-gradient(135deg, var(--cc-gold), #d4a85c);
  color: white; font-size: 0.8rem;
}
.cls-cta-disabled {
  opacity: 0.45; pointer-events: none;
}
.cls-launching { opacity: 0.6; pointer-events: none; }

/* ── Responsive: stack bands on narrow ── */
@media (max-width: 900px) {
  .cls-cta-row { grid-template-columns: 1fr; }
  .cls-dg-grid { grid-template-columns: 1fr; }
  .cls-dg-row:nth-child(odd) { border-right: none; }
  .cls-dg-fields { flex-wrap: wrap; }
  .cls-timeline-track { gap: 0.4rem; }
  .cls-slide { min-width: 120px; max-width: 130px; }
}

/* ── Active slide highlight ── */
.cls-slide--active .cls-slide-card {
  border-color: var(--cc-gold);
  box-shadow: 0 0 0 2px rgba(194, 153, 84, 0.2);
}

/* ── Slide Editor Panel ── */
.cls-slide-editor {
  background: var(--cc-surface);
  border: 1px solid var(--cc-gold);
  border-radius: 10px;
  margin-top: 0.75rem;
  box-shadow: var(--cc-shadow-md);
  overflow: hidden;
}
.cls-se-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(135deg, #fdf8f0, #fef3e2);
  border-bottom: 1px solid var(--cc-border);
}
.cls-se-title {
  font-family: var(--cc-serif);
  font-size: 0.85rem; font-weight: 600;
  color: var(--cc-navy);
}
.cls-se-close {
  background: none; border: none; font-size: 1.1rem;
  color: var(--cc-text-muted); cursor: pointer; line-height: 1;
}
.cls-se-close:hover { color: var(--cc-navy); }
.cls-se-body {
  padding: 0.75rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.cls-se-field {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.cls-se-label {
  font-family: var(--cc-mono);
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cc-text-muted);
}
.cls-se-input, .cls-se-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  background: var(--cc-surface);
  color: var(--cc-text);
  width: 100%;
}
.cls-se-input:focus, .cls-se-select:focus {
  outline: none;
  border-color: var(--cc-gold);
  box-shadow: 0 0 0 2px rgba(194, 153, 84, 0.15);
}
.cls-se-file-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.cls-se-file-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem; font-weight: 600;
  background: var(--cc-navy); color: white;
  border: none; border-radius: 5px;
  cursor: pointer; white-space: nowrap;
}
.cls-se-file-btn:hover { opacity: 0.85; }
.cls-se-file-name {
  font-size: 0.7rem; color: var(--cc-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cls-se-file-preview {
  max-width: 100%; max-height: 120px;
  border-radius: 6px; margin-top: 0.35rem;
  object-fit: cover;
}
audio.cls-se-file-preview {
  width: 100%; height: 36px; margin-top: 0.35rem;
}
.cls-se-info {
  font-size: 0.75rem; color: var(--cc-text-muted);
  font-style: italic;
  padding: 0.5rem 0;
}
.cls-se-footer {
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--cc-border);
  display: flex; justify-content: flex-end;
}
.cls-se-save {
  padding: 0.4rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  background: linear-gradient(135deg, var(--cc-gold), #d4a85c);
  color: white; border: none; border-radius: 6px;
  cursor: pointer;
}
.cls-se-save:hover { opacity: 0.85; }

/* Divider between mic recorder and file upload */
.cls-se-divider {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.15rem 0;
}
.cls-se-divider::before, .cls-se-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--cc-border);
}
.cls-se-divider span {
  font-size: 0.65rem; color: var(--cc-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}

/* ── Inline Mic Recorder (greeting slide editor) ── */
.cls-se-mic-zone {
  border: 1px dashed var(--cc-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}
.cls-mic-state { display: flex; align-items: center; gap: 0.6rem; }
.cls-mic-btn {
  min-height: 44px; padding: 0.45rem 1rem;
  font-size: 0.78rem; font-weight: 700;
  border: none; border-radius: 6px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.cls-mic-btn:focus-visible { outline: 2px solid var(--cc-navy); outline-offset: 2px; }
.cls-mic-btn:active { transform: scale(0.97); }
.cls-mic-record-btn {
  background: var(--cc-navy); color: white;
}
.cls-mic-record-btn:hover { opacity: 0.88; }
.cls-mic-icon { font-size: 1rem; }
.cls-mic-hint {
  font-size: 0.68rem; color: var(--cc-text-muted);
  font-style: italic;
}
/* Recording state */
.cls-mic-recording-row {
  display: flex; align-items: center; gap: 0.5rem; flex: 1;
}
.cls-mic-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cc-red, #DC2626);
  animation: cls-mic-pulse-anim 1s ease-in-out infinite;
}
@keyframes cls-mic-pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.cls-mic-timer {
  font-family: var(--cc-mono);
  font-size: 0.85rem; font-weight: 700;
  color: var(--cc-navy); min-width: 2.5em;
}
.cls-mic-wave {
  display: flex; align-items: flex-end; gap: 2px; height: 22px;
}
.cls-mic-wave span {
  width: 3px; background: var(--cc-gold);
  border-radius: 2px; height: 30%;
  transition: height 0.15s ease;
}
.cls-mic-stop-btn {
  background: var(--cc-red, #DC2626); color: white;
}
.cls-mic-stop-btn:hover { opacity: 0.88; }
/* Preview state */
.cls-mic-preview { flex-direction: column; gap: 0.5rem; }
.cls-mic-player { width: 100%; height: 36px; border-radius: 6px; }
.cls-mic-preview-actions { display: flex; gap: 0.5rem; }
.cls-mic-use-btn {
  background: var(--cc-emerald, #10B981); color: white; flex: 1;
}
.cls-mic-use-btn:hover { opacity: 0.88; }
.cls-mic-use-btn:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
.cls-mic-redo-btn {
  background: transparent; color: var(--cc-navy);
  border: 1px solid var(--cc-border); flex: 0;
}
.cls-mic-redo-btn:hover { background: var(--cc-bg); }
@media (prefers-reduced-motion: reduce) {
  .cls-mic-pulse { animation: none; }
  .cls-mic-wave span { transition: none; }
}

/* ── Preview Distributor Modal Overlay ── */
.cls-preview-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.cls-preview-overlay--visible { opacity: 1; pointer-events: auto; }
.cls-preview-modal {
  background: var(--cc-surface); border-radius: 12px;
  width: 90%; max-width: 480px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(12px); transition: transform 0.2s;
}
.cls-preview-overlay--visible .cls-preview-modal {
  transform: translateY(0);
}
.cls-preview-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  background: var(--cc-navy); color: white;
}
.cls-preview-modal-title {
  font-family: var(--cc-serif); font-weight: 500; font-size: 0.95rem;
}
.cls-preview-modal-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.2rem; cursor: pointer; padding: 0.25rem;
  line-height: 1;
}
.cls-preview-modal-close:hover { color: white; }
.cls-preview-modal-body {
  padding: 1rem;
}

/* ── Full Distributor Preview Modal ── */
.cls-preview-modal--full {
  max-width: 420px; width: 92%;
  max-height: 88vh;
}
.cls-preview-modal--full .cls-preview-modal-header {
  flex-shrink: 0;
}
.cls-preview-modal-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(194, 153, 84, 0.15); color: var(--cc-gold);
  border-radius: var(--cc-radius-pill);
  margin-left: auto;
}
.cls-preview-modal-body--scroll {
  overflow-y: auto;
  max-height: calc(88vh - 52px);
  padding: 0;
}

/* Treasure frame wrapper */
.cls-dp-treasure-frame {
  position: relative;
  background: linear-gradient(160deg, #fdf8f0 0%, #fef9f2 50%, #fcf5eb 100%);
  border: 1px solid rgba(194, 153, 84, 0.2);
  padding: 0;
}
.cls-dp-treasure-frame > * { position: relative; z-index: 1; }

/* Eyebrow */
.cls-dp-eyebrow {
  text-align: center;
  font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cc-gold);
  padding: 1rem 1rem 0.5rem;
}

/* Header: collection name + mood */
.cls-dp-header {
  text-align: center;
  padding: 0 1.25rem 0.75rem;
}
.cls-dp-collection-name {
  font-family: var(--cc-serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--cc-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.cls-dp-mood {
  font-family: var(--cc-serif);
  font-size: 0.85rem;
  color: var(--cc-text-muted);
}

/* Invitation message */
.cls-dp-invitation {
  margin: 0.5rem 1.25rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--cc-gold);
  border-radius: 0 8px 8px 0;
}
.cls-dp-invitation-text {
  font-family: var(--cc-serif);
  font-size: 0.88rem; font-style: italic;
  color: var(--cc-navy);
  line-height: 1.5;
}

/* Print cards */
.cls-dp-prints {
  padding: 0 1rem 0.75rem;
  display: flex; flex-direction: column;
  gap: 0.75rem;
}
.cls-dp-print {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.cls-dp-print-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cls-dp-print-num {
  font-size: 0.7rem; font-weight: 700;
  color: var(--cc-text-muted);
  background: rgba(0,0,0,0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--cc-mono, monospace);
}
.cls-dp-print-name {
  font-size: 0.85rem; font-weight: 600;
  color: var(--cc-navy);
  flex: 1;
}
.cls-dp-vote-chip {
  display: flex; gap: 0.4rem; margin-left: auto;
}
.cls-dp-heart, .cls-dp-skip {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.cls-dp-heart {
  color: #e74c6f; background: rgba(231, 76, 111, 0.08);
  border-color: rgba(231, 76, 111, 0.15);
}
.cls-dp-heart:hover { background: rgba(231, 76, 111, 0.18); }
.cls-dp-skip {
  color: var(--cc-text-muted); background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
.cls-dp-skip:hover { background: rgba(0,0,0,0.08); }
.cls-dp-heart[disabled], .cls-dp-skip[disabled] {
  opacity: 0.45; cursor: default; pointer-events: none;
}
.cls-dp-print-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.cls-dp-print-story {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem; line-height: 1.5;
  color: var(--cc-text);
  border-top: 1px solid rgba(0,0,0,0.04);
  background: rgba(0,0,0,0.01);
}
.cls-dp-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--cc-text-muted);
  font-style: italic;
}
.cls-dp-close {
  text-align: center;
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(194, 153, 84, 0.15);
  background: linear-gradient(to bottom, transparent, rgba(194, 153, 84, 0.04));
}
.cls-dp-close em {
  font-family: var(--cc-serif);
  font-size: 1rem;
  color: var(--cc-navy);
  display: block;
  line-height: 1.5;
}

/* ── Distributor View — Header ── */
.cls-dist-header { text-align: center; padding: 1.25rem 0 0.75rem; }
.cls-dist-cover { margin-bottom: 0.75rem; position: relative; overflow: hidden; }
.cls-dist-cover-img, .cls-cover-thumb {
  width: 100%; max-height: 360px; object-fit: cover;
  border-radius: var(--cc-radius);
}
.cls-dist-title {
  font-family: var(--cc-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--cc-navy); letter-spacing: -0.01em;
}
.cls-dist-mood, .cls-mood-line {
  font-family: var(--cc-serif); font-style: italic;
  color: var(--cc-text-muted); margin-top: 0.25rem; font-size: 0.95rem;
}
.cls-dist-eyebrow {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--cc-gold);
  margin-top: 0.5rem; padding: 0.3rem 0.85rem;
  display: inline-block;
  border: 1px solid rgba(194, 153, 84, 0.3);
  border-radius: var(--cc-radius-pill);
}

/* ── Cover Breathe Animation ── */
.cls-cover-breathe {
  animation: cls-cover-breathe 6s ease-in-out infinite;
}
@keyframes cls-cover-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ── Distributor View — Print Canvas ── */
.cls-print-canvas-full {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 0.5rem 0;
}
.cls-canvas-placeholder { padding: 2rem; text-align: center; color: var(--cc-text-muted); }
.cls-print-card-full {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
}
.cls-print-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--cc-border);
}
.cls-print-number {
  font-family: var(--cc-mono); font-size: 0.65rem;
  font-weight: 700; color: var(--cc-text-muted);
  background: var(--cc-surface-sunken);
  padding: 0.15rem 0.4rem; border-radius: 4px;
}
.cls-print-title {
  font-family: var(--cc-serif); font-size: 0.9rem;
  font-weight: 600; color: var(--cc-navy); flex: 1;
}
.cls-vote-chip { display: flex; gap: 0.35rem; margin-left: auto; }
.cls-heart-btn, .cls-skip-btn {
  width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid transparent;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all 0.15s;
}
.cls-heart-btn { color: #e74c6f; }
.cls-heart-btn:hover { background: rgba(231, 76, 111, 0.1); border-color: rgba(231, 76, 111, 0.2); }
.cls-heart-btn.voted { background: #e74c6f; color: white; border-color: #e74c6f; }
.cls-skip-btn { color: var(--cc-text-muted); }
.cls-skip-btn:hover { background: rgba(0, 0, 0, 0.05); border-color: var(--cc-border); }
.cls-skip-btn.voted { background: var(--cc-text-muted); color: white; }
.cls-print-fullimg {
  width: 100%; max-height: 400px;
  object-fit: cover; display: block;
}
.cls-print-story { padding: 0.75rem 0.85rem; }
.cls-print-hook {
  font-family: var(--cc-serif); font-size: 0.88rem;
  color: var(--cc-navy); font-weight: 600;
  margin-bottom: 0.3rem;
}
.cls-print-body {
  font-size: 0.78rem; color: var(--cc-text-muted);
  line-height: 1.5;
}
.cls-comment-row {
  display: flex; gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--cc-border);
  background: var(--cc-surface-sunken);
}
.cls-comment-input {
  flex: 1; padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  background: var(--cc-surface);
  color: var(--cc-text);
}
.cls-comment-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem; font-weight: 700;
  background: var(--cc-navy); color: white;
  border: none; border-radius: 6px;
  cursor: pointer;
}
.cls-comment-btn:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════
   Mobile Responsive — Distributor Cards
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* TODO(verify): orphan mobile rules — confirm classes exist elsewhere or remove. */
  /* The following block targets .cc-treasure-chrome, .cc-tc-*, etc.,
     which are not defined in this file. Either they live in another
     stylesheet or they're dead code. Verify before un-commenting.
    /* Treasure chrome — stacked layout */
  .cc-treasure-chrome .cc-tc-cover {
    max-height: 180px;
  }
  .cc-treasure-chrome .cc-tc-title {
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
  }
  .cc-treasure-chrome .cc-tc-eyebrow {
    font-size: 0.65rem;
  }
  .cc-treasure-chrome .cc-tc-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  */

  /* Cinematic reveal — full viewport on mobile */
  .cls-reveal {
    padding: 1rem;
  }
  .cls-reveal .cr-cover {
    max-height: 40vh;
  }
  .cls-reveal .cr-title {
    font-size: 1.4rem;
  }
  .cls-reveal .cr-mood {
    font-size: 0.9rem;
  }

  /* Print grid — 2 columns on tablet, 1 on phone */
  .cc-print-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  /* Finals grid — single column with horizontal scroll for quotas */
  .cc-finals-tile {
    padding: 0.75rem;
  }
  .cc-finals-tile .cc-ft-quotas {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cc-finals-tile .cc-ft-stepper {
    min-width: 60px;
  }

  /* Step body shell split → stack on mobile */
  .psc-shell-split {
    flex-direction: column !important;
  }
  .psc-shell-split .psc-split-primary,
  .psc-shell-split .psc-split-secondary {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Monitor sections — full-width stack */
  .cc-monitor-grid {
    grid-template-columns: 1fr !important;
  }

  /* Invoice card — tighter spacing */
  .cc-invoice-card {
    padding: 1rem;
  }
  .cc-invoice-card .cc-ic-table {
    font-size: 0.8rem;
  }

  /* Action pills — wrap on small screens */
  .cc-action-pills {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .cc-action-pills .cc-pill {
    flex: 1 1 auto;
    min-width: 100px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Phone-specific overrides */
  .cc-print-grid {
    grid-template-columns: 1fr !important;
  }

  .cc-treasure-chrome .cc-tc-cover {
    max-height: 140px;
  }
  .cc-treasure-chrome .cc-tc-title {
    font-size: 1rem;
  }

  /* Quota stepper — compact */
  .cc-finals-tile .cc-ft-stepper button {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .cc-finals-tile .cc-ft-stepper input {
    width: 40px;
    font-size: 0.85rem;
  }

  /* PSC popup — full viewport */
  .psc-popup-overlay .psc-popup {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh;
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Set the Stage (collection_create) — Hero, Identity, Mood/Greeting
   Templates: _cc_hero.html, _cc_identity.html, _cc_mood.html
   ═══════════════════════════════════════════════════════════════ */

.cc-hero-zone {
  display: flex; flex-direction: column; gap: 1rem;
}
.cc-cover-frame {
  position: relative; border-radius: var(--cc-radius);
  overflow: hidden; max-height: 280px;
}
.cc-cover-frame .cc-cover-img {
  width: 100%; max-height: 280px; object-fit: cover; display: block;
}
.cc-cover-replace {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(26,26,46,0.75); color: #fff; border: none;
  border-radius: var(--cc-radius-sm); padding: 0.35rem 0.75rem;
  font-size: 0.75rem; cursor: pointer; backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.cc-cover-replace:hover { background: rgba(26,26,46,0.9); }
.cc-replace-icon { margin-right: 0.25rem; }
.cc-cover-file-hidden {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.cc-cover-dropzone {
  border: 2px dashed var(--cc-border, #e2e4e8); border-radius: var(--cc-radius, 14px);
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s; background: var(--cc-surface-sunken, #f8f9fb);
}
.cc-cover-dropzone:hover { border-color: var(--cc-gold); }
.cc-drop-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem; pointer-events: none;
}
.cc-drop-hint { font-size: 0.7rem; color: var(--cc-text-muted); }

/* Palette */
.cc-palette-section { padding: 0.5rem 0; }
.cc-palette-eyebrow {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--cc-text-muted); margin-bottom: 0.5rem;
}
.cc-palette-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; margin-bottom: 0.75rem;
}
.cc-palette-card {
  border: 2px solid var(--cc-border); border-radius: var(--cc-radius-sm);
  overflow: hidden; cursor: pointer; text-align: center;
  background: var(--cc-card); transition: border-color 0.15s, transform 0.1s;
}
.cc-palette-card:hover { border-color: var(--cc-gold); transform: translateY(-1px); }
.cc-palette-card--chosen {
  border-color: var(--cc-gold); box-shadow: 0 0 0 2px var(--cc-gold-soft);
}
.cc-palette-card .cc-palette-strip { height: 48px; width: 100%; }
.cc-palette-label {
  font-size: 0.75rem; font-weight: 700; color: var(--cc-navy);
  padding: 0.3rem 0.25rem 0.1rem;
}
.cc-palette-hint {
  font-size: 0.65rem; color: var(--cc-text-muted); padding-bottom: 0.35rem;
}
.cc-palette-swatches {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}

/* ── Identity Zone ──
   Standard bordered inputs matching mockup screenshot. */

.cc-identity-zone { display: flex; flex-direction: column; gap: 1rem; }
.cc-id-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem;
}
.cc-id-field { display: flex; flex-direction: column; gap: 0.2rem; }
.cc-id-field--full { grid-column: 1 / -1; }
.cc-id-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cc-text-muted);
}
.cc-id-input {
  border: 1px solid var(--cc-border, #e2e4e8);
  border-radius: 4px; padding: 0.55rem 0.65rem; font-size: 0.9rem;
  color: var(--cc-navy); background: var(--cc-card, #fff);
  transition: border-color 0.15s;
  width: 100%; box-sizing: border-box;
}
.cc-id-input:hover { border-color: var(--cc-text-muted, #6c757d); }
.cc-id-input:focus {
  outline: none; border-color: var(--cc-navy);
}
.cc-id-input::placeholder { color: var(--cc-text-muted); opacity: 0.5; }
.cc-id-saved {
  font-size: 0.6rem; color: var(--cc-success, #10b981);
  min-height: 0.9em; transition: opacity 0.3s;
  font-family: var(--cc-mono);
}

/* Season chips */
.cc-season-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.cc-season-chip {
  padding: 0.3rem 0.65rem; border: 1.5px solid var(--cc-border);
  border-radius: var(--cc-radius-pill, 9999px); font-size: 0.75rem;
  font-weight: 600; color: var(--cc-text-muted); background: var(--cc-card);
  cursor: pointer; transition: all 0.15s; min-height: 32px;
  display: inline-flex; align-items: center;
}
.cc-season-chip:hover { border-color: var(--cc-gold); color: var(--cc-navy); }
.cc-season-chip--active {
  background: var(--cc-gold); color: var(--cc-navy);
  border-color: var(--cc-gold); font-weight: 700;
}

.cc-month-select {
  appearance: auto; border: 1px solid var(--cc-border, #e2e4e8);
  border-radius: 4px; padding: 0.55rem 0.65rem; font-size: 0.9rem;
  color: var(--cc-navy); background: var(--cc-card, #fff); width: 100%;
  box-sizing: border-box;
}
.cc-month-select:focus {
  outline: none; border-color: var(--cc-navy);
}

/* Deadlines — two date-time pickers side by side */
.cc-deadlines {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem;
  padding-top: 0.75rem;
}
.cc-deadline-field { display: flex; flex-direction: column; gap: 0.2rem; }
.cc-deadline-prompt {
  font-size: 0.7rem; color: var(--cc-text-muted); font-style: italic;
}
.cc-deadline-input {
  border: 1px solid var(--cc-border, #e2e4e8);
  border-radius: 4px; padding: 0.45rem 0.65rem; font-size: 0.85rem;
  color: var(--cc-navy); background: var(--cc-card, #fff);
  width: 100%; box-sizing: border-box;
}
.cc-deadline-input:focus {
  outline: none; border-color: var(--cc-navy);
}
.cc-deadline-tz {
  font-size: 0.6rem; color: var(--cc-text-muted);
  font-family: var(--cc-mono); text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Mood & Greeting Zone ──
   Spec: "Two side-by-side panels in a 60/40 split.
   Left = mood prompt. Right = greeting recorder." */

.cc-mood-zone { padding: 0; }
.cc-mood-split {
  display: flex; gap: 1.25rem;
}
.cc-mood-left { flex: 3; display: flex; flex-direction: column; gap: 0.35rem; }
.cc-mood-right { flex: 2; display: flex; flex-direction: column; }

.cc-mood-prompt-text {
  font-size: 0.85rem; color: var(--cc-navy);
  font-style: italic;
}
.cc-mood-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.cc-mood-usage {
  font-size: 0.6rem; color: var(--cc-text-muted); font-style: italic;
}

/* AI trigger */
.cc-ai-trigger {
  background: none; border: none; padding: 0.25rem 0;
  font-size: 0.7rem; color: var(--cc-gold); cursor: pointer;
  font-family: var(--cc-mono); text-transform: uppercase;
  letter-spacing: 0.05em; transition: color 0.15s;
  margin-top: 0.35rem; align-self: flex-start;
}
.cc-ai-trigger:hover { color: var(--cc-navy); }
.cc-ai-sparkle { margin-right: 0.15rem; }
.cc-ai-suggestions {
  padding: 0.5rem; background: var(--cc-surface-sunken);
  border-radius: var(--cc-radius-sm); margin-top: 0.25rem; font-size: 0.8rem;
}

/* ── Greeting recorder ──
   Spec: "80px circular tap target, soft pink-gold gradient fill, white mic icon"
   State 3: "The circle becomes a play button, and below it: 0:42 · sounds good?" */

.cc-greeting-zone {
  background: var(--cc-navy, #1a1a2e); border-radius: var(--cc-radius, 14px);
  padding: 1.5rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 200px;
}
.cc-greeting-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; text-align: center;
}
.cc-hidden { display: none !important; }
.cc-greeting-copy { min-width: 0; }
.cc-greeting-title {
  font-size: 0.85rem; font-weight: 600; color: #fff;
}
.cc-greeting-hint {
  font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem;
}
.cc-greeting-nudge {
  font-family: var(--cc-mono); font-size: 0.55rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); line-height: 1.5;
}
.cc-greeting-duration {
  font-size: 0.9rem; color: #fff;
}
.cc-duration-value {
  font-weight: 700; font-family: var(--cc-mono); font-size: 1.1rem;
  color: var(--cc-gold);
}
.cc-greeting-actions {
  display: flex; gap: 0.5rem; justify-content: center;
}
.cc-greeting-player { display: none; }

/* Record / Stop / Play — 80px circle with pink-gold gradient */
.cc-record-btn {
  width: 80px; height: 80px; border-radius: 50%;
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cc-pink, #e8a0bf), var(--cc-gold));
  color: #fff; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(194,153,84,0.25);
}
.cc-record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(194,153,84,0.35);
}
.cc-record-btn svg { width: 32px; height: 32px; }

.cc-stop-btn {
  width: 80px; height: 80px; border-radius: 50%;
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--cc-danger, #dc2626); color: #fff;
  animation: cc-record-pulse 1.5s ease-in-out infinite;
}
.cc-stop-btn svg { width: 32px; height: 32px; }
@keyframes cc-record-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
}

.cc-play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(255,255,255,0.15); color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}
.cc-play-btn:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.cc-play-btn svg { width: 32px; height: 32px; }

.cc-rerecord-btn, .cc-discard-btn {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--cc-radius-pill, 9999px); padding: 0.3rem 0.75rem;
  font-size: 0.7rem; cursor: pointer; color: rgba(255,255,255,0.7);
  transition: all 0.15s;
}
.cc-rerecord-btn:hover { border-color: var(--cc-gold); color: var(--cc-gold); }
.cc-discard-btn:hover { border-color: var(--cc-danger, #dc2626); color: var(--cc-danger, #dc2626); }

.cc-recording-label { color: var(--cc-danger, #dc2626); }
.cc-recording-timer {
  font-family: var(--cc-mono); font-size: 1rem;
  color: var(--cc-danger, #dc2626); font-weight: 600;
}

/* Waveform — 18 thin bars, staggered delays (spec: decoration, pure CSS) */
.cc-waveform {
  display: flex; align-items: center; gap: 2px; height: 32px;
  justify-content: center;
}
.cc-waveform span {
  width: 3px; background: var(--cc-gold); border-radius: 1.5px;
  height: 4px; animation: cc-wave 0.6s ease-in-out infinite alternate;
}
.cc-waveform span:nth-child(2) { animation-delay: 0.05s; }
.cc-waveform span:nth-child(3) { animation-delay: 0.1s; }
.cc-waveform span:nth-child(4) { animation-delay: 0.15s; }
.cc-waveform span:nth-child(5) { animation-delay: 0.2s; }
.cc-waveform span:nth-child(6) { animation-delay: 0.25s; }
.cc-waveform span:nth-child(7) { animation-delay: 0.3s; }
.cc-waveform span:nth-child(8) { animation-delay: 0.35s; }
.cc-waveform span:nth-child(9) { animation-delay: 0.4s; }
.cc-waveform span:nth-child(10) { animation-delay: 0.45s; }
.cc-waveform span:nth-child(11) { animation-delay: 0.5s; }
.cc-waveform span:nth-child(12) { animation-delay: 0.55s; }
.cc-waveform span:nth-child(13) { animation-delay: 0.6s; }
.cc-waveform span:nth-child(14) { animation-delay: 0.65s; }
.cc-waveform span:nth-child(15) { animation-delay: 0.7s; }
.cc-waveform span:nth-child(16) { animation-delay: 0.75s; }
.cc-waveform span:nth-child(17) { animation-delay: 0.8s; }
.cc-waveform span:nth-child(18) { animation-delay: 0.85s; }
@keyframes cc-wave {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Set the Stage focus-visible */
.cc-season-chip:focus-visible,
.cc-ai-trigger:focus-visible,
.cc-record-btn:focus-visible,
.cc-stop-btn:focus-visible,
.cc-play-btn:focus-visible,
.cc-rerecord-btn:focus-visible,
.cc-discard-btn:focus-visible,
.cc-palette-card:focus-visible,
.cc-id-input:focus-visible,
.cc-deadline-input:focus-visible,
.cc-mood-input:focus-visible {
  outline: 2px solid var(--cc-navy);
  outline-offset: 2px;
}

/* Set the Stage responsive */
@media (max-width: 600px) {
  .cc-id-grid { grid-template-columns: 1fr; }
  .cc-deadlines { grid-template-columns: 1fr; }
  .cc-palette-cards { grid-template-columns: 1fr 1fr; }
  .cc-mood-split { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-waveform span { animation-duration: 0.01ms !important; }
  .cc-stop-btn { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Stats strip layout + subtitle
*/
.cm-stat-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem;
}
.cm-stat-row .cm-stat-card {
  flex: 1 1 120px; min-width: 100px;
  background: var(--cc-surface); border-radius: var(--cc-radius-sm);
  border: 1.5px solid var(--cc-border); padding: 0.6rem 0.75rem;
}
.cm-stat-sub {
  display: block; font-size: 0.6rem; font-family: var(--cc-mono);
  color: var(--cc-text-muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 0.2rem;
}
.cm-monitor-subtitle {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem;
  font-size: 0.8rem; color: var(--cc-text-muted); font-style: italic;
  margin-bottom: 0.4rem; line-height: 1.5;
}
.cm-phase-day { color: var(--cc-navy); font-style: normal; }
.cm-countdown-live { color: var(--cc-gold); font-style: normal; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: LIVE pip (WebSocket connection indicator)
*/
.cm-live-pip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--cc-mono); font-size: 0.6rem; font-weight: 700;
  color: var(--cc-text-muted); letter-spacing: 0.05em;
}
.cm-live-pip::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: #9e9e9e; flex-shrink: 0;
}
.cm-live-pip.cm-pip-connected::before { background: var(--cc-success); }
.cm-live-pip.cm-pip-connected { color: var(--cc-success); }
@keyframes cm-pip-blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
.cm-live-pip.cm-pip-connected::before { animation: cm-pip-blink 2s ease-in-out infinite; }
.cm-live-pip.cm-pip-disconnected::after { content: ' reconnecting\2026'; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Stat tile variants
*/
.cm-stat-urgent .cm-stat-value { color: #c62828; }
.cm-stat-warn .cm-stat-value { color: var(--cc-gold); }
.cm-stat-navy .cm-stat-value { color: var(--cc-navy); font-family: Georgia, serif; font-style: italic; }
.cm-stat-hearts { background: #fce4ec !important; }
.cm-stat-hearts .cm-stat-value { color: #e91e63; font-family: Georgia, serif; font-style: italic; }
.cm-stat-skips { background: #fdf6ec !important; }
.cm-stat-skips .cm-stat-value { color: #5d4037; font-family: Georgia, serif; font-style: italic; }
.cm-stat-engaged { border-color: var(--cc-success) !important; }
.cm-stat-engaged .cm-stat-value { color: var(--cc-success); font-family: Georgia, serif; font-style: italic; }
.cm-stat-alerts { background: #fff8e1 !important; }
.cm-stat-alerts .cm-stat-value { color: #e65100; font-family: Georgia, serif; font-style: italic; }
.cm-alerts-tap { cursor: pointer; text-decoration: underline; color: #e65100 !important; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Vote bar (Heart Leaderboard rows)
*/
.cm-vote-bar-track {
  height: 6px; background: var(--cc-border); border-radius: 3px;
  overflow: hidden; width: 100%; max-width: 280px; flex: 1;
}
.cm-vote-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.4s ease;
  background: var(--cc-gold);
}
.cm-row-top .cm-vote-bar-fill { background: var(--cc-success); }
.cm-row-mid .cm-vote-bar-fill { background: var(--cc-gold); opacity: 0.7; }
.cm-row-quiet .cm-vote-bar-fill,
.cm-row-unseen .cm-vote-bar-fill { background: var(--cc-border); }
.cm-heart-count {
  font-family: Georgia, serif; font-style: italic; font-size: 1rem;
  color: var(--cc-navy); white-space: nowrap;
}
.cm-voted-qualifier {
  font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted);
}
.cm-leader-star { color: #f9a825; font-size: 0.9rem; }

/* Print tier borders */
.cm-row-top { border: 1.5px solid var(--cc-success) !important; border-radius: var(--cc-radius-sm); }
.cm-row-quiet { border: 1.5px dashed var(--cc-danger) !important; border-radius: var(--cc-radius-sm); }
.cm-row-unseen { opacity: 0.65; }

/* Diagnostic text */
.cm-diagnostic {
  font-family: var(--cc-mono); font-size: 0.6rem; color: #c62828;
  font-weight: 700; text-transform: uppercase; margin-top: 2px; display: block;
}

/* Trend arrows */
.cm-trend { font-size: 0.8rem; font-weight: 700; min-width: 1.2rem; text-align: center; }
.cm-trend-up { color: var(--cc-success); }
.cm-trend-down { color: var(--cc-danger); }
.cm-trend-flat { color: var(--cc-text-muted); }

/* Curation row anatomy */
.cm-curation-row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.5rem; margin-bottom: 0.3rem;
  border-radius: var(--cc-radius-sm); border: 1.5px solid var(--cc-border);
  background: var(--cc-surface); transition: border-color 0.2s;
}
.cm-print-thumb {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: 3px; flex-shrink: 0;
}
.cm-print-thumb-placeholder {
  width: 40px; height: 40px; background: var(--cc-surface-sunken);
  border-radius: 3px; flex-shrink: 0;
}
.cm-print-label {
  font-size: 0.82rem; font-weight: 700; color: var(--cc-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px;
}
.cm-print-spec {
  font-family: var(--cc-mono); font-size: 0.6rem; color: var(--cc-text-muted);
  text-transform: uppercase; display: block; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px;
}
.cm-print-meta { flex: 1; min-width: 0; }
.cm-vote-area {
  display: flex; align-items: center; gap: 0.4rem;
  flex: 1; min-width: 0; max-width: 320px;
}
.cm-row-amend-btn {
  background: none; border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm);
  color: var(--cc-text-muted); font-size: 0.65rem; padding: 2px 6px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.cm-row-amend-btn:hover { border-color: #7b1fa2; color: #7b1fa2; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Distributor presence strip (4 states)
*/
.cm-dist-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.5rem 0.75rem; margin-bottom: 0.4rem;
  border-radius: var(--cc-radius-sm); border-left: 4px solid var(--cc-border);
  background: var(--cc-surface); position: relative;
}
.cm-dist-completed { border-left-color: var(--cc-success) !important; }
.cm-dist-inprogress { border-left-color: var(--cc-gold) !important; }
.cm-dist-paused { border-left-color: #9e9e9e !important; }
.cm-dist-never-opened { border: 1.5px dashed var(--cc-danger) !important; border-left-width: 1.5px !important; }
.cm-dist-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--cc-mono); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.cm-chip-completed { background: #e8f5e9; color: #2e7d32; }
.cm-chip-inprogress { background: #fff8e1; color: #f57f17; }
.cm-chip-paused { background: var(--cc-surface-sunken); color: var(--cc-text-muted); }
.cm-chip-never-opened { background: #ffebee; color: #c62828; }
.cm-dist-info { flex: 1; min-width: 0; }
.cm-dist-status-line {
  font-family: var(--cc-mono); font-size: 0.65rem; color: var(--cc-text-muted);
  margin-top: 2px; display: block;
}
.cm-dist-active-label {
  font-family: var(--cc-mono); font-size: 0.65rem; color: #43a047;
  font-weight: 700; display: none;
}
.cm-first-col-badge {
  font-size: 0.6rem; color: var(--cc-gold); font-family: var(--cc-mono);
  border: 1px solid var(--cc-gold); border-radius: 3px;
  padding: 1px 4px; white-space: nowrap; flex-shrink: 0;
}
.cm-dist-vote-tally {
  font-family: var(--cc-mono); font-size: 0.7rem; color: var(--cc-text-muted);
  white-space: nowrap; flex-shrink: 0;
}

/* Pulse dot (active distributor presence via WS) */
@keyframes cm-pulse-breath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.cm-pulse-dot {
  width: 4px; height: 4px; border-radius: 50%; background: #43a047;
  display: none; animation: cm-pulse-breath 2s ease-in-out infinite;
  position: absolute; top: 6px; right: 6px; flex-shrink: 0;
}
.cm-dist-active-now .cm-pulse-dot { display: block; }
.cm-dist-active-now .cm-dist-active-label { display: block !important; }

/* WhatsApp nudge button */
.cm-whatsapp-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--cc-radius-pill);
  background: #7b1fa2; color: white; border: none;
  font-size: 0.7rem; font-weight: 700; cursor: pointer; min-height: 32px;
  text-decoration: none; flex-shrink: 0;
}
.cm-whatsapp-btn:hover { background: #6a1a94; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Activity feed
*/
.cm-activity-feed { padding: 0.25rem 0; }
.cm-activity-event {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.4rem 0.5rem; border-left: 3px solid var(--cc-border);
  margin-bottom: 0.3rem; border-radius: 0 var(--cc-radius-sm) var(--cc-radius-sm) 0;
  background: var(--cc-surface); font-size: 0.8rem;
}
.cm-event-heart { border-left-color: #e91e63; }
.cm-event-skip { border-left-color: #9e9e9e; }
.cm-event-open { border-left-color: #1976d2; }
.cm-event-completion { border-left-color: var(--cc-success); }
.cm-event-pause { border-left-color: #ff9800; }
.cm-event-flag { border-left-color: var(--cc-danger); }
.cm-event-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--cc-navy);
  color: white; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cm-event-body { flex: 1; line-height: 1.4; }
.cm-event-time {
  font-size: 0.65rem; color: var(--cc-text-muted); white-space: nowrap;
}
.cm-event-time-heart { color: #e91e63; }
.cm-event-time-completion { color: var(--cc-success); }
.cm-event-time-open { color: #1976d2; }
.cm-event-time-flag { color: var(--cc-danger); }

@keyframes cm-event-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cm-event-slide-in { animation: cm-event-slide-in 0.2s ease-out forwards; }
.cm-activity-empty { color: var(--cc-text-muted); font-style: italic; font-size: 0.82rem; padding: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Footer intervention buttons
*/
.cm-footer-auto-close {
  font-style: italic; color: var(--cc-text-muted);
  font-size: 0.78rem; margin: 0.5rem 0 0.35rem; line-height: 1.4;
}
.cm-footer-interventions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.cm-intervention-btn {
  padding: 0.4rem 0.85rem; border-radius: var(--cc-radius-pill);
  border: 1.5px solid var(--cc-border); background: none;
  font-size: 0.78rem; cursor: pointer; min-height: 36px; font-weight: 600;
  transition: background 0.15s;
}
.cm-btn-amend { border-color: #7b1fa2; color: #7b1fa2; }
.cm-btn-amend:hover { background: #f3e5f5; }
.cm-btn-nudge { border-color: var(--cc-gold); color: var(--cc-gold); }
.cm-btn-nudge:hover { background: var(--cc-gold-soft); }
.cm-btn-extend { border-color: #1976d2; color: #1976d2; }
.cm-btn-extend:hover { background: #e3f2fd; }
.cm-footer-override { margin-top: 0.25rem; }

/* ═══════════════════════════════════════════════════════════════
   Monitor Enhanced: Amendment workspace
*/
.cm-amendment-zone {
  border: 1.5px solid #ffe0b2; border-radius: var(--cc-radius);
  margin: 0.5rem 0; overflow: hidden;
}
.cm-amend-banner {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff8e1; border-bottom: 1px solid #ffe0b2;
  padding: 0.6rem 0.75rem; font-size: 0.8rem; color: #5d4037;
}
.cm-amend-banner-icon { font-size: 1rem; flex-shrink: 0; }
.cm-amend-close {
  margin-left: auto; background: none; border: none;
  cursor: pointer; font-size: 0.9rem; color: var(--cc-text-muted);
  min-width: 32px; min-height: 32px;
}
.cm-amend-print-info {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface);
}
.cm-amend-print-name { font-weight: 700; font-size: 0.9rem; }
.cm-amend-votes { font-family: var(--cc-mono); font-size: 0.75rem; color: var(--cc-text-muted); }
.cm-amend-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--cc-surface);
}
.cm-amend-opt { padding: 0.75rem; border-right: 1px solid var(--cc-border); }
.cm-amend-opt:last-child { border-right: none; }
.cm-amend-opt-reword { border-top: 3px solid var(--cc-navy); }
.cm-amend-opt-replace { border-top: 3px solid #7b1fa2; }
.cm-amend-opt-pull { border-top: 3px solid #c62828; }
.cm-amend-opt-header { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; }
.cm-amend-opt-desc {
  font-size: 0.75rem; color: var(--cc-text-muted); margin-bottom: 0.5rem; line-height: 1.4;
}
.cm-amend-action-btn {
  display: block; width: 100%;
  padding: 0.4rem 0.6rem; border: 1.5px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); background: none;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; min-height: 36px;
  transition: background 0.15s;
}
.cm-amend-opt-reword .cm-amend-action-btn { border-color: var(--cc-navy); color: var(--cc-navy); }
.cm-amend-opt-reword .cm-amend-action-btn:hover { background: #e8eaf6; }
.cm-amend-opt-replace .cm-amend-action-btn { border-color: #7b1fa2; color: #7b1fa2; }
.cm-amend-opt-replace .cm-amend-action-btn:hover { background: #f3e5f5; }
.cm-amend-pull-confirm { border-color: #c62828 !important; color: #c62828 !important; }
.cm-amend-pull-confirm:hover { background: #ffebee !important; }
.cm-amend-story-input {
  width: 100%; padding: 0.35rem; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.8rem;
  margin-bottom: 0.35rem; min-height: 36px; box-sizing: border-box;
}

/* ═════════════════════════════════════════════════════════════
   T-26: Pricing — Component Mapping Matrix
   collection_pricing step type
   All classes use .cp- prefix.
   ═════════════════════════════════════════════════════════════ */

/* ── Stat Strip (Zone 2) ── */
.cp-stat-strip {
  display: flex; gap: 8px; padding: 8px 0; overflow-x: auto;
}
.cp-stat-tile {
  flex: 1 1 0; min-width: 100px; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--cc-radius-sm); border: 1px solid var(--cc-border);
  background: var(--cc-surface); cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  padding: 6px 8px;
}
.cp-stat-tile:hover { box-shadow: var(--cc-shadow-sm); transform: translateY(-1px); }
.cp-stat-tile:active { transform: translateY(0); }
.cp-stat-tile:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: 2px;
}
.cp-stat-value {
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  font-family: var(--cc-mono);
}
.cp-stat-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cc-text-muted); margin-top: 2px;
}
.cp-stat-tile--total { border-color: var(--cc-navy); }
.cp-stat-tile--total .cp-stat-value { color: var(--cc-navy); }
.cp-stat-tile--mapped { border-color: var(--cc-success); }
.cp-stat-tile--mapped .cp-stat-value { color: var(--cc-success); }
.cp-stat-tile--pending { border-color: var(--cc-amber); }
.cp-stat-tile--pending .cp-stat-value { color: var(--cc-amber); }
.cp-stat-tile--flagged { border-color: var(--cc-danger); }
.cp-stat-tile--flagged .cp-stat-value { color: var(--cc-danger); }
.cp-stat-tile--stale { border-color: var(--cc-text-muted); }
.cp-stat-tile--stale .cp-stat-value { color: var(--cc-text-muted); }

/* ── Mapping Matrix (Zone 3) ── */
.cp-matrix { width: 100%; overflow-x: auto; }
.cp-matrix-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm);
}
.cp-matrix-table thead { position: sticky; top: 0; z-index: 2; }
.cp-matrix-header-cell {
  background: var(--cc-navy); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 10px 8px; text-align: center;
  white-space: nowrap; min-width: 100px;
}
.cp-matrix-header-cell--print {
  color: var(--cc-gold); text-align: left; padding-left: 12px;
  min-width: 160px; position: sticky; left: 0; z-index: 3;
}
.cp-matrix-row-header {
  background: var(--cc-gold-soft); padding: 8px 12px;
  font-size: 0.8rem; font-weight: 600; color: var(--cc-navy);
  vertical-align: middle; height: 68px;
  border-bottom: 1px solid var(--cc-border);
  white-space: nowrap; position: sticky; left: 0; z-index: 1;
}
.cp-print-number {
  font-size: 0.65rem; color: var(--cc-text-muted); margin-right: 4px;
}
.cp-matrix-cell {
  height: 68px; padding: 6px; vertical-align: middle;
  border-bottom: 1px solid var(--cc-border);
  border-left: 1px solid var(--cc-border);
  cursor: pointer; transition: background 0.15s;
  text-align: center; font-size: 0.75rem;
}
.cp-matrix-cell:hover { background: rgba(0,0,0,0.03); }
.cp-matrix-cell:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: -2px;
}
.cp-matrix-cell-icon { font-size: 1.1rem; display: block; margin-bottom: 2px; }
.cp-matrix-cell-price {
  font-family: var(--cc-mono); font-size: 0.75rem; font-weight: 600;
  display: block;
}
.cp-matrix-cell-label {
  font-size: 0.6rem; color: var(--cc-text-muted); text-transform: uppercase;
  display: block;
}

/* Cell states */
.cp-cell--mapped { background: rgba(16,185,129,0.08); }
.cp-cell--mapped .cp-matrix-cell-icon { color: var(--cc-success); }
.cp-cell--flagged { background: rgba(220,38,38,0.08); }
.cp-cell--flagged .cp-matrix-cell-icon { color: var(--cc-danger); }
.cp-cell--pending { background: var(--cc-gold-soft); }
.cp-cell--pending .cp-matrix-cell-icon { color: var(--cc-amber); }
.cp-cell--no-pairing {
  background: var(--cc-surface-sunken);
  border: 1px dashed var(--cc-border);
  cursor: default; opacity: 0.5;
}
.cp-cell--no-pairing .cp-matrix-cell-icon { color: var(--cc-text-muted); }

/* ── Pending Strip ── */
.cp-pending-strip {
  background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--cc-radius-sm); padding: 10px 12px; margin: 8px 0;
}
.cp-pending-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.cp-pending-icon { color: var(--cc-danger); font-size: 1rem; }
.cp-pending-title {
  font-size: 0.8rem; font-weight: 700; color: var(--cc-danger);
}
.cp-pending-count {
  font-size: 0.7rem; font-weight: 600; color: var(--cc-danger);
  background: rgba(220,38,38,0.1); border-radius: var(--cc-radius-pill);
  padding: 1px 8px;
}
.cp-pending-list { list-style: none; margin: 0; padding: 0; }
.cp-pending-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 0.75rem; color: var(--cc-text);
  border-bottom: 1px solid rgba(220,38,38,0.1);
}
.cp-pending-item:last-child { border-bottom: none; }
.cp-pending-item-status {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  padding: 1px 6px; border-radius: var(--cc-radius-pill);
  background: rgba(220,38,38,0.1); color: var(--cc-danger);
}
.cp-pending-empty {
  font-size: 0.75rem; color: var(--cc-text-muted); font-style: italic;
}

/* ── Derived Total Bar ── */
.cp-derived-total {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cc-navy); color: #fff;
  border-radius: var(--cc-radius-sm); padding: 12px 16px; margin: 8px 0;
}
.cp-derived-total-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cp-derived-total-value {
  font-size: 1.25rem; font-weight: 700; font-family: var(--cc-mono);
  color: var(--cc-gold);
}
.cp-derived-total-cells {
  font-size: 0.7rem; color: rgba(255,255,255,0.7); margin-left: 8px;
}

/* ── Side Panel (480px slide-in) ── */
.cp-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 999;
}
.cp-side-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 95vw;
  background: var(--cc-surface); box-shadow: -4px 0 16px rgba(0,0,0,0.12);
  z-index: 1000; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cp-side-panel[style*="display: block"],
.cp-side-panel.cp-panel--open {
  transform: translateX(0);
}
.cp-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--cc-border);
  background: var(--cc-navy); color: #fff; flex-shrink: 0;
}
.cp-panel-title { font-size: 0.9rem; font-weight: 700; margin: 0; }
.cp-panel-print-name { color: var(--cc-gold); }
.cp-panel-separator { margin: 0 6px; opacity: 0.5; }
.cp-panel-close {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; border-radius: var(--cc-radius-sm);
  transition: background 0.15s;
}
.cp-panel-close:hover { background: rgba(255,255,255,0.1); }
.cp-panel-close:focus-visible {
  outline: 2px solid var(--cc-gold); outline-offset: 2px;
}
.cp-panel-body {
  flex: 1; overflow-y: auto; padding: 12px 16px;
}
.cp-panel-section { margin-bottom: 16px; }
.cp-panel-section-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--cc-navy);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em;
}
.cp-panel-section-icon { font-size: 1rem; }
.cp-panel-rows { display: flex; flex-direction: column; gap: 4px; }
.cp-panel-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--cc-radius-sm);
  background: var(--cc-surface-sunken); font-size: 0.8rem;
}
.cp-panel-row-icon { width: 20px; text-align: center; }
.cp-panel-row-name { flex: 1; font-weight: 500; }
.cp-panel-row-qty { width: 50px; text-align: center; font-family: var(--cc-mono); }
.cp-panel-row-price { width: 70px; text-align: right; font-family: var(--cc-mono); }
.cp-panel-row-subtotal {
  width: 80px; text-align: right; font-weight: 600;
  font-family: var(--cc-mono);
}

/* Autocomplete */
.cp-panel-add { position: relative; margin-top: 6px; }
.cp-autocomplete {
  width: 100%; padding: 8px 10px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.8rem;
  background: var(--cc-surface); min-height: 44px; box-sizing: border-box;
  transition: border-color 0.15s;
}
.cp-autocomplete:focus {
  border-color: var(--cc-navy); outline: none;
  box-shadow: 0 0 0 2px rgba(26,26,46,0.15);
}
.cp-ac-results {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cc-surface); border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); box-shadow: var(--cc-shadow-md);
  max-height: 240px; overflow-y: auto; z-index: 10;
}
.cp-ac-result {
  padding: 8px 10px; cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.1s; min-height: 44px;
}
.cp-ac-result:hover, .cp-ac-result[aria-selected="true"] {
  background: var(--cc-gold-soft);
}
.cp-ac-result-name { flex: 1; font-weight: 500; }
.cp-ac-result-type {
  font-size: 0.65rem; text-transform: uppercase; color: var(--cc-text-muted);
  font-weight: 600;
}
.cp-ac-result-price { font-family: var(--cc-mono); font-size: 0.8rem; }
.cp-ac-staleness--fresh .cp-ac-result-price { color: var(--cc-success); }
.cp-ac-staleness--warn .cp-ac-result-price { color: var(--cc-amber); }
.cp-ac-staleness--stale .cp-ac-result-price { color: var(--cc-danger); }

/* Subtotals */
.cp-panel-subtotals {
  border-top: 1px solid var(--cc-border); padding-top: 10px; margin-top: 12px;
}
.cp-panel-subtotal-row {
  display: flex; justify-content: space-between; padding: 3px 0;
  font-size: 0.8rem; color: var(--cc-text-muted);
}
.cp-panel-subtotal-value { font-family: var(--cc-mono); font-weight: 600; }
.cp-panel-total-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 0.9rem; font-weight: 700; color: var(--cc-navy);
  border-top: 2px solid var(--cc-navy); margin-top: 4px;
}
.cp-panel-total-value { font-family: var(--cc-mono); }

/* Panel actions */
.cp-panel-actions {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--cc-border); flex-shrink: 0;
}
.cp-btn-save, .cp-btn-flag, .cp-btn-reset {
  flex: 1; min-height: 44px; border: none; border-radius: var(--cc-radius-sm);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.cp-btn-save {
  background: var(--cc-navy); color: #fff;
}
.cp-btn-save:hover { background: #2a2a4a; }
.cp-btn-save:active { background: #0f0f1e; }
.cp-btn-save:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: 2px;
}
.cp-btn-save:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
.cp-btn-flag {
  background: rgba(220,38,38,0.1); color: var(--cc-danger); border: 1px solid var(--cc-danger);
}
.cp-btn-flag:hover { background: rgba(220,38,38,0.2); }
.cp-btn-flag:active { background: rgba(220,38,38,0.3); }
.cp-btn-flag:focus-visible {
  outline: 2px solid var(--cc-danger); outline-offset: 2px;
}
.cp-btn-flag:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
.cp-btn-reset {
  background: var(--cc-surface); color: var(--cc-text);
  border: 1px solid var(--cc-border);
}
.cp-btn-reset:hover { background: var(--cc-surface-sunken); }
.cp-btn-reset:active { background: var(--cc-border); }
.cp-btn-reset:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: 2px;
}
.cp-btn-reset:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* ── Confirm Modal ── */
.cp-confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1100;
  display: flex; align-items: center; justify-content: center;
}
.cp-confirm-modal {
  background: var(--cc-surface); border-radius: var(--cc-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 420px; max-width: 90vw; overflow: hidden;
}
.cp-confirm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--cc-navy); color: #fff;
}
.cp-confirm-header h3 { margin: 0; font-size: 1rem; }
.cp-confirm-close {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; border-radius: var(--cc-radius-sm);
  transition: background 0.15s;
}
.cp-confirm-close:hover { background: rgba(255,255,255,0.1); }
.cp-confirm-close:focus-visible {
  outline: 2px solid var(--cc-gold); outline-offset: 2px;
}
.cp-confirm-body { padding: 16px; }
.cp-confirm-message {
  font-size: 0.85rem; color: var(--cc-text); line-height: 1.5; margin: 0 0 12px;
}
.cp-confirm-summary { margin: 12px 0; }
.cp-confirm-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--cc-border); font-size: 0.85rem;
}
.cp-confirm-label { color: var(--cc-text-muted); }
.cp-confirm-value { font-weight: 600; color: var(--cc-navy); }
.cp-confirm-total { font-family: var(--cc-mono); font-size: 1rem; }
.cp-confirm-actions {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--cc-border);
}
.cp-btn-cancel {
  flex: 1; min-height: 44px; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); background: var(--cc-surface);
  color: var(--cc-text); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-cancel:hover { background: var(--cc-surface-sunken); }
.cp-btn-cancel:active { background: var(--cc-border); }
.cp-btn-cancel:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: 2px;
}
.cp-btn-lock {
  flex: 1; min-height: 44px; border: none; border-radius: var(--cc-radius-sm);
  background: var(--cc-gold-foil); color: var(--cc-navy);
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.cp-btn-lock:hover { box-shadow: var(--cc-shadow-md); transform: translateY(-1px); }
.cp-btn-lock:active { transform: translateY(0); }
.cp-btn-lock:focus-visible {
  outline: 2px solid var(--cc-gold); outline-offset: 2px;
}
.cp-btn-lock:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* ── Direct Catalog Mode (Baykron) ── */
.cp-direct-catalog { padding: 4px 0; }
.cp-dc-summary {
  font-size: 0.85rem; color: var(--cc-text); margin-bottom: 8px;
}
.cp-dc-resolved { font-weight: 700; color: var(--cc-success); }
.cp-dc-total { font-weight: 700; color: var(--cc-navy); }
.cp-dc-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.cp-dc-table thead { background: var(--cc-navy); color: #fff; }
.cp-dc-table th {
  padding: 8px 10px; font-weight: 600; text-transform: uppercase;
  font-size: 0.7rem; letter-spacing: 0.03em; text-align: left;
}
.cp-dc-table td { padding: 8px 10px; border-bottom: 1px solid var(--cc-border); }
.cp-dc-price-col { text-align: right; font-family: var(--cc-mono); }
.cp-dc-row--mapped td { background: rgba(16,185,129,0.06); }
.cp-dc-row--pending td { background: var(--cc-gold-soft); }
.cp-dc-row--flagged td { background: rgba(220,38,38,0.06); }
.cp-dc-status {
  font-size: 0.7rem; font-weight: 600; padding: 2px 8px;
  border-radius: var(--cc-radius-pill);
}
.cp-dc-status--mapped { color: var(--cc-success); background: rgba(16,185,129,0.1); }
.cp-dc-status--pending { color: var(--cc-amber); background: rgba(245,158,11,0.1); }
.cp-dc-status--flagged { color: var(--cc-danger); background: rgba(220,38,38,0.1); }
.cp-dc-total-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cc-navy); color: #fff; padding: 10px 14px;
  border-radius: var(--cc-radius-sm); margin-top: 8px;
}
.cp-dc-total-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.cp-dc-total-value {
  font-size: 1.1rem; font-weight: 700; font-family: var(--cc-mono);
  color: var(--cc-gold);
}

/* ── Fresh Costing Mode (Legacy) ── */
.cp-fresh-costing { text-align: center; padding: 24px 16px; }
.cp-fc-icon { font-size: 2.5rem; margin-bottom: 8px; }
.cp-fc-title {
  font-size: 1rem; font-weight: 700; color: var(--cc-navy); margin: 0 0 8px;
}
.cp-fc-message {
  font-size: 0.85rem; color: var(--cc-text-muted); line-height: 1.5;
  max-width: 400px; margin: 0 auto;
}
.cp-fc-spinner {
  width: 24px; height: 24px; border: 2px solid var(--cc-border);
  border-top-color: var(--cc-gold); border-radius: 50%;
  margin: 12px auto 0; animation: cp-spin 0.8s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .cp-side-panel,
  .cp-stat-tile,
  .cp-btn-save, .cp-btn-flag, .cp-btn-reset,
  .cp-btn-cancel, .cp-btn-lock,
  .cp-matrix-cell,
  .cp-autocomplete,
  .cp-ac-result,
  .cp-panel-close,
  .cp-confirm-close,
  .cp-fc-spinner {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════
   Lock & Invoice — Rebuilt (v2)
   Zone 1: Status Banner
   Zone 2: Stat Strip (5 tiles)
   Zone 3: Roll-up Matrix
   Zone 4: Action Bar
   ═══════════════════════════════════ */

/* ── Zone 1: Status Banner ── */
.cli-status-banner {
  padding: 0.75rem 0.85rem;
  border-radius: var(--cc-radius-sm);
  margin-bottom: 0.15rem;
}
.cli-status-banner--attention {
  background: var(--cc-gold-foil, #fbf6ec);
  border-left: 3px solid var(--cc-gold);
}
.cli-status-banner--success {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--cc-success);
}
.cli-status-banner--blocked {
  background: rgba(220, 38, 38, 0.06);
  border-left: 3px solid var(--cc-danger);
}
.cli-status-banner--info {
  background: var(--cc-surface-sunken, #f4f5f7);
  border-left: 3px solid var(--cc-navy);
}

.cli-banner-breadcrumb {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  font-family: var(--cc-mono); font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cc-text-muted); margin-bottom: 0.5rem;
}
.cli-bc-sep { opacity: 0.4; }
.cli-bc-active { color: var(--cc-navy); font-weight: 700; }

.cli-headline {
  font-family: var(--cc-serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--cc-navy);
  margin: 0 0 0.25rem; line-height: 1.25;
}

.cli-subhead {
  font-size: 0.82rem; color: var(--cc-text-muted);
  margin: 0 0 0.5rem; display: flex; align-items: center;
  gap: 0.4rem; flex-wrap: wrap;
}

.cli-banner-message {
  display: flex; align-items: flex-start; gap: 0.4rem;
  font-size: 0.78rem; color: var(--cc-text);
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
}
.cli-banner-icon { flex-shrink: 0; font-size: 0.9rem; }
.cli-banner-text { line-height: 1.45; }

.cli-locked-banner {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--cc-navy); color: white;
  padding: 0.65rem 1rem; border-radius: var(--cc-radius-sm);
}
.cli-locked-icon { font-size: 1.1rem; }
.cli-locked-text { font-size: 0.85rem; font-weight: 600; }

/* ── Zone 2: Stat Strip (5 tiles) — appended v2 ── */
.cli-stat-strip {
  grid-template-columns: repeat(5, 1fr);
}
.cli-stat-tile-sub {
  font-family: var(--cc-mono);
  font-size: 0.52rem; color: var(--cc-text-muted);
  margin-top: 0.1rem; line-height: 1.3;
}
.cli-stat-tile--navy .cli-stat-tile-sub { color: rgba(255, 255, 255, 0.55); }
.cli-stat-tile-sub--danger { color: var(--cc-danger); }
.cli-stat-tile-sub--amber { color: var(--cc-amber, #F59E0B); }

/* ── Zone 3: Roll-up Matrix ── */
.cli-rollup-wrap { padding: 0.25rem 0; }
.cli-matrix-eyebrow {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--cc-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cc-text-muted);
  padding: 0.4rem 0 0.25rem; border-bottom: 1px solid var(--cc-border);
  margin-bottom: 0.25rem;
}
.cli-matrix-eyebrow-meta { font-weight: 400; }

.cli-matrix-scroll {
  overflow-x: auto; overflow-y: visible;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  margin-bottom: 0.5rem;
}

.cli-matrix-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.78rem;
}
.cli-matrix-table thead { position: sticky; top: 0; z-index: 2; }
.cli-matrix-th-print,
.cli-matrix-th-style,
.cli-matrix-th-total {
  background: var(--cc-navy); color: white;
  padding: 0.45rem 0.6rem;
  font-family: var(--cc-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; text-align: center; white-space: nowrap;
}
.cli-matrix-th-print { text-align: left; min-width: 120px; }
.cli-matrix-th-total { text-align: right; }

.cli-matrix-row { border-bottom: 1px solid var(--cc-border); }
.cli-matrix-row:nth-child(even) { background: var(--cc-surface-sunken, #f8f9fb); }

.cli-matrix-print {
  padding: 0.4rem 0.6rem; vertical-align: top;
  min-width: 120px;
}
.cli-matrix-print-name {
  font-weight: 600; color: var(--cc-navy);
  display: block; font-size: 0.82rem;
}
.cli-matrix-print-meta {
  font-family: var(--cc-mono); font-size: 0.55rem;
  color: var(--cc-text-muted);
}

.cli-matrix-cell {
  padding: 0.35rem 0.5rem; text-align: center;
  vertical-align: middle;
}
.cli-matrix-cell--na { color: var(--cc-text-muted); opacity: 0.3; }
.cli-matrix-cell--zero { color: var(--cc-text-muted); }
.cli-matrix-cell--active { color: var(--cc-navy); font-weight: 600; }

.cli-cell-qty { display: block; font-family: var(--cc-serif); font-size: 0.95rem; font-weight: 600; }
.cli-cell-usd {
  display: block; font-family: var(--cc-mono);
  font-size: 0.6rem; color: var(--cc-gold); font-weight: 600;
}
.cli-cell-dist {
  display: block; font-family: var(--cc-mono);
  font-size: 0.5rem; color: var(--cc-text-muted);
}

.cli-matrix-row-total {
  padding: 0.35rem 0.6rem; text-align: right;
  vertical-align: middle; border-left: 2px solid var(--cc-border);
}
.cli-row-total-qty {
  display: block; font-family: var(--cc-serif);
  font-size: 0.95rem; font-weight: 700; color: var(--cc-navy);
}
.cli-row-total-usd {
  display: block; font-family: var(--cc-mono);
  font-size: 0.55rem; color: var(--cc-text-muted);
}

.cli-matrix-grand-total td {
  padding: 0.55rem 0.6rem;
  border-top: 2px solid var(--cc-gold);
  background: var(--cc-gold-foil, #fbf6ec);
  font-weight: 700; color: var(--cc-navy);
}
.cli-matrix-grand-label { text-align: left; font-size: 0.72rem; }
.cli-matrix-grand-value {
  text-align: right;
  font-family: var(--cc-serif); font-size: 1.15rem;
  font-style: italic;
}

.cli-matrix-placeholder {
  padding: 2rem; text-align: center;
  color: var(--cc-text-muted); font-style: italic;
}

/* ── Exception flags ── */
.cli-exceptions { padding: 0.25rem 0; }
.cli-exception {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.65rem; margin-bottom: 0.25rem;
  border-radius: var(--cc-radius-sm);
  font-size: 0.78rem;
}
.cli-exception--amber {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--cc-amber, #F59E0B);
  color: var(--cc-text);
}
.cli-exception--danger {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--cc-danger);
  color: var(--cc-text);
}
.cli-exception-icon { flex-shrink: 0; font-size: 0.9rem; }
.cli-exception-text { flex: 1; }
.cli-exception-badge {
  font-family: var(--cc-mono); font-size: 0.55rem;
  padding: 0.1rem 0.4rem; border-radius: var(--cc-radius-pill);
  text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(245, 158, 11, 0.15); color: var(--cc-amber, #F59E0B);
}
.cli-exception-badge--blocking {
  background: rgba(220, 38, 38, 0.15); color: var(--cc-danger);
}

/* ── Distributor breakdown ── */
.cli-dist-breakdown {
  margin-top: 0.5rem; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
}
.cli-dist-breakdown-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.65rem; cursor: pointer;
  font-family: var(--cc-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-navy); font-weight: 600;
  background: var(--cc-surface-sunken, #f4f5f7);
  border-radius: var(--cc-radius-sm);
  list-style: none;
}
.cli-dist-breakdown-toggle::-webkit-details-marker { display: none; }
.cli-dist-breakdown-arrow { transition: transform 0.2s; }
.cli-dist-breakdown[open] .cli-dist-breakdown-arrow { transform: rotate(180deg); }

/* ── Zone 4: Action Bar ── */
.cli-action-bar { padding: 0.5rem 0; }

.cli-action-locked {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--cc-navy); color: white;
  padding: 0.65rem 1rem; border-radius: var(--cc-radius-sm);
}
.cli-action-locked-icon { font-size: 1.1rem; }
.cli-action-locked-text { font-size: 0.85rem; font-weight: 600; }

.cli-action-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  align-items: center; padding: 0.25rem 0;
}

/* ── Button system (cli-btn) ── */
.cli-btn {
  min-height: 44px; padding: 0.65rem 1.2rem;
  font-weight: 600; font-size: 0.82rem;
  border-radius: var(--cc-radius-sm);
  cursor: pointer; transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.cli-btn:focus-visible {
  outline: 2px solid var(--cc-navy); outline-offset: 2px;
}
.cli-btn:disabled, .cli-btn.cli-btn--disabled {
  opacity: 0.45; pointer-events: none; cursor: not-allowed;
}

.cli-btn--ghost {
  background: none; color: var(--cc-navy);
  border: 1px solid transparent;
}
.cli-btn--ghost:hover { background: var(--cc-surface-sunken, #f4f5f7); }
.cli-btn--ghost:active { background: var(--cc-border); }

.cli-btn--outline {
  background: white; color: var(--cc-navy);
  border: 1px solid var(--cc-navy);
}
.cli-btn--outline:hover { background: var(--cc-navy); color: white; }
.cli-btn--outline:active { background: #0d0d1a; color: white; }

.cli-btn--lock {
  background: linear-gradient(135deg, var(--cc-gold) 0%, var(--cc-gold-bright, #d4a865) 100%);
  color: var(--cc-navy); border: none;
  font-weight: 700; margin-left: auto;
  box-shadow: 0 2px 8px rgba(194, 153, 84, 0.35);
}
.cli-btn--lock:hover {
  box-shadow: 0 4px 16px rgba(194, 153, 84, 0.5);
  transform: translateY(-1px);
}
.cli-btn--lock:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(194, 153, 84, 0.25); }

/* ── Lock confirmation modal ── */
.cli-lock-modal {
  position: fixed; inset: 0; z-index: 1050;
  display: flex; align-items: center; justify-content: center;
}
.cli-lock-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 26, 46, 0.55);
}
.cli-lock-modal-content {
  position: relative; z-index: 1;
  background: white; border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow-lg, 0 4px 16px rgba(0, 0, 0, 0.12));
  padding: 1.5rem; max-width: 480px; width: 90%;
}
.cli-lock-modal-title {
  font-family: var(--cc-serif); font-size: 1.15rem;
  font-weight: 700; color: var(--cc-navy);
  margin: 0 0 0.75rem;
}
.cli-lock-modal-body { font-size: 0.85rem; color: var(--cc-text); line-height: 1.5; }
.cli-lock-modal-summary {
  margin: 0.5rem 0; padding-left: 1.2rem;
  font-size: 0.82rem; color: var(--cc-text);
}
.cli-lock-modal-summary li { margin-bottom: 0.2rem; }
.cli-lock-modal-warn { color: var(--cc-amber, #F59E0B); font-weight: 600; }
.cli-lock-modal-blocked {
  padding: 0.5rem 0.65rem; margin: 0.5rem 0;
  background: rgba(220, 38, 38, 0.08); border-left: 3px solid var(--cc-danger);
  border-radius: var(--cc-radius-sm); color: var(--cc-danger);
  font-size: 0.82rem;
}
.cli-lock-modal-notice {
  margin-top: 0.75rem; font-size: 0.78rem;
  color: var(--cc-text-muted);
}
.cli-lock-modal-confirm-label {
  display: block; margin-top: 0.75rem;
  font-size: 0.78rem; font-weight: 600; color: var(--cc-navy);
}
.cli-lock-modal-input {
  width: 100%; margin-top: 0.35rem;
  padding: 0.55rem 0.65rem; border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm); font-size: 0.85rem;
  font-family: var(--cc-mono);
}
.cli-lock-modal-input:focus {
  border-color: var(--cc-navy);
  outline: 2px solid var(--cc-navy); outline-offset: 1px;
}
.cli-lock-modal-actions {
  display: flex; justify-content: flex-end;
  gap: 0.5rem; margin-top: 1rem;
}

/* ── Configuration footer ── */
.cli-config-footer {
  padding: 0.35rem 0; margin-top: 0.5rem;
  border-top: 1px dashed var(--cc-border);
  font-family: var(--cc-mono); font-size: 0.55rem;
  color: var(--cc-text-muted); opacity: 0.6;
}
.cli-config-label { font-weight: 700; }

/* ── Lock notice v2 ── */
.cli-notice-muted {
  font-size: 0.78rem; color: var(--cc-text-muted);
  margin-top: 0.35rem;
}

/* ── Invoice card v2 ── */
.cli-inv-details {
  display: flex; flex-direction: column; flex: 1; gap: 0.1rem;
}
.cli-inv-meta {
  font-family: var(--cc-mono); font-size: 0.62rem;
  color: var(--cc-text-muted);
}
.cli-inv-view-btn { flex-shrink: 0; }

/* ── Lock & Invoice reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .cli-btn, .cli-locked-banner, .cli-action-locked,
  .cli-dist-breakdown-arrow, .cli-lock-modal-overlay {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   T-26  Price Picker  (collection_pricing side panel — Price Mapper)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Smart filter dropdowns ── */
.cp-pp-filters {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--cc-bg, #f4f5f7);
  border-radius: var(--cc-radius-sm, 6px);
  margin-bottom: 0.5rem;
}
.cp-pp-filter-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.cp-pp-filter-lbl {
  flex: 0 0 70px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cc-text-muted, #6c757d);
}
.cp-pp-filter-select {
  flex: 1; min-width: 0;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  border: 1px solid var(--cc-border, #e9ecef);
  border-radius: var(--cc-radius-sm, 6px);
  background: var(--cc-card, #ffffff);
  color: var(--cc-text, #2d2d3a);
  cursor: pointer;
}
.cp-pp-filter-select:focus-visible {
  outline: 2px solid var(--cc-navy, #1a1a2e);
  outline-offset: 2px;
}

/* ── Search input ── */
.cp-pp-search-wrap {
  padding: 0 0 0.5rem;
}
.cp-pp-search {
  width: 100%; box-sizing: border-box;
  min-height: 44px; padding: 0.55rem 0.75rem;
  border: 1px solid var(--cc-border, #e9ecef);
  border-radius: var(--cc-radius-sm, 6px);
  font-size: 0.85rem; color: var(--cc-text, #2d2d3a);
  background: var(--cc-card, #ffffff);
  transition: border-color 0.15s;
}
.cp-pp-search:focus {
  outline: none;
  border-color: var(--cc-gold, #c29954);
  box-shadow: 0 0 0 2px rgba(194,153,84,0.15);
}

/* ── Results list ── */
.cp-pp-results {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding-bottom: 0.5rem;
}
.cp-pp-loading, .cp-pp-empty {
  text-align: center; padding: 1.5rem 0.75rem;
  font-size: 0.8rem; color: var(--cc-text-muted, #6c757d);
}

/* ── Individual result row ── */
.cp-pp-result-row {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  background: var(--cc-card, #ffffff);
  border: 1px solid var(--cc-border, #e9ecef);
  border-radius: var(--cc-radius-sm, 6px);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cp-pp-result-row:hover {
  border-color: var(--cc-gold, #c29954);
  box-shadow: var(--cc-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.cp-pp-result-row:focus-visible {
  outline: 2px solid var(--cc-gold, #c29954);
  outline-offset: 2px;
}
.cp-pp-result-row:active {
  background: var(--cc-bg, #f4f5f7);
}
.cp-pp-result-top {
  display: flex; justify-content: space-between; align-items: center;
}
.cp-pp-result-code {
  font-weight: 700; font-size: 0.82rem;
  color: var(--cc-navy, #1a1a2e);
  font-family: monospace;
}
.cp-pp-result-frp {
  font-weight: 700; font-size: 0.85rem;
  color: var(--cc-emerald, #10B981);
}
.cp-pp-result-meta {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  font-size: 0.7rem; color: var(--cc-text-muted, #6c757d);
}
.cp-pp-result-meta span {
  padding: 0.1rem 0.4rem;
  background: var(--cc-bg, #f4f5f7);
  border-radius: var(--cc-radius-pill, 9999px);
}
.cp-pp-result-select {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 80px;
  padding: 0.35rem 0.75rem; margin-top: 0.25rem;
  background: var(--cc-navy, #1a1a2e); color: #fff;
  border: none; border-radius: var(--cc-radius-sm, 6px);
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  align-self: flex-end;
}
.cp-pp-result-select:hover { background: #2a2a4e; }
.cp-pp-result-select:active { background: #0e0e1e; transform: scale(0.97); }
.cp-pp-result-select:focus-visible {
  outline: 2px solid var(--cc-navy, #1a1a2e);
  outline-offset: 2px;
}

/* ── Currently mapped indicator ── */
.cp-pp-mapped {
  padding: 0.6rem 0.75rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid var(--cc-emerald, #10B981);
  border-radius: var(--cc-radius-sm, 6px);
  margin-top: 0.5rem;
}
.cp-pp-mapped-header {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cc-emerald, #10B981);
  margin-bottom: 0.25rem;
}
.cp-pp-mapped-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cp-pp-mapped-code {
  font-weight: 700; font-family: monospace; font-size: 0.85rem;
  color: var(--cc-navy, #1a1a2e);
}
.cp-pp-mapped-price {
  font-weight: 700; font-size: 0.9rem;
  color: var(--cc-emerald, #10B981);
}

/* ── Result description + prices (Price Picker v2) ── */
.cp-pp-result-desc {
  font-size: 0.75rem; color: var(--cc-text-muted, #6c757d);
  line-height: 1.35; margin-top: 0.1rem;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cp-pp-result-prices {
  display: flex; gap: 0.75rem; margin-top: 0.25rem;
  font-size: 0.78rem; font-weight: 600;
}
.cp-pp-result-prices span {
  color: var(--cc-navy, #1a1a2e);
}

/* ── Pagination controls ── */
.cp-pp-pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.25rem; margin-top: 0.25rem;
  border-top: 1px solid var(--cc-border, #e9ecef);
  flex-shrink: 0;
}
.cp-pp-pager-btn {
  min-height: 36px; padding: 0.3rem 0.75rem;
  background: var(--cc-navy, #1a1a2e); color: #fff;
  border: none; border-radius: var(--cc-radius-sm, 6px);
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.cp-pp-pager-btn:hover { background: #2a2a4e; }
.cp-pp-pager-btn:active { background: #0e0e1e; }
.cp-pp-pager-btn:focus-visible {
  outline: 2px solid var(--cc-navy, #1a1a2e);
  outline-offset: 2px;
}
.cp-pp-pager-btn[disabled] {
  opacity: 0.35; pointer-events: none; cursor: not-allowed;
}
.cp-pp-pager-info {
  font-size: 0.72rem; color: var(--cc-text-muted, #6c757d);
  font-weight: 600;
}

/* ── Price Picker reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .cp-pp-result-row, .cp-pp-search, .cp-pp-result-select,
  .cp-pp-pager-btn {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
