:root {
  --orange: #1fbf6b;
  /* Bridge content-module variable names to the app's design tokens */
  --surface-1: var(--wash);
  --surface-2: #ffffff;
  --border: var(--line);
  --border-strong: var(--line-2);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --text-accent: var(--ginger);
}
/* ============================================================
   content-styles.css — Ginger CRM Content Module
   Add these to your main stylesheet (or paste at the bottom)
   ============================================================ */

/* ── Content client grid ─────────────────────────────────── */
.content-client-card { transition: box-shadow 0.12s; }
.content-client-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.stat-mini { text-align: center; }
.stat-mini-val { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.stat-mini-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ── Article table inline controls ──────────────────────── */
.input-inline {
  font-family: inherit; font-size: 11px; padding: 3px 6px;
  border: 1px solid var(--border); border-radius: 5px;
  background: white; color: var(--text-primary);
}
.select-inline {
  font-family: inherit; font-size: 11px; padding: 3px 5px;
  border: 1px solid var(--border); border-radius: 5px;
  background: white; color: var(--text-primary);
}

/* ── Wizard steps bar ────────────────────────────────────── */
.wizard-steps-bar {
  display: flex; align-items: center;
  background: white; padding: 14px 18px 11px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  border-radius: 10px;
}
.wizard-step-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.wizard-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
  transition: all 0.2s;
}
.wizard-dot.active { background: var(--orange); color: white; border: none; cursor: default; }
.wizard-dot.done   { background: var(--orange); color: white; border: none; cursor: pointer; }
.wizard-dot.future { background: var(--surface-1); border: 2px solid var(--border); color: var(--text-muted); cursor: default; }
.wizard-step-name  { font-size: 9px; color: var(--text-muted); font-weight: 400; white-space: nowrap; }
.wizard-step-name.active { color: var(--orange); font-weight: 600; }
.wizard-connector  { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 14px; transition: background 0.3s; }
.wizard-connector.filled { background: var(--orange); }

/* ── Wizard nav ──────────────────────────────────────────── */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* ── Upload drop zone ────────────────────────────────────── */
.upload-drop-zone {
  border: 2px dashed var(--border-strong); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface-1); transition: border-color 0.12s;
}
.upload-drop-zone:hover { border-color: var(--orange); }
.upload-drop-zone i { font-size: 20px; color: var(--text-muted); }
.upload-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.upload-sub   { font-size: 11px; color: var(--text-muted); }
.file-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; background: white;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 11px; color: var(--text-secondary);
}
.file-chip i { font-size: 12px; color: var(--orange); }

/* ── Keyword cards ───────────────────────────────────────── */
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kw-card {
  border-radius: 9px; border: 1px solid var(--border);
  background: white; padding: 11px 12px; cursor: pointer;
  transition: border-color 0.12s;
}
.kw-card:hover { border-color: var(--border-strong); }
.kw-card.selected { border: 2px solid var(--orange); background: #ecfbf3; }
.kw-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.kw-name   { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.kw-checkbox {
  width: 15px; height: 15px; border-radius: 4px;
  border: 2px solid var(--border-strong); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.kw-checkbox.checked { background: var(--orange); border-color: var(--orange); }
.kw-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.tag { font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 500; }
.tag-market          { background: #e8f1f9; color: #3b82c4; }
.tag-vol             { background: var(--surface-1); color: var(--text-secondary); }
.tag-diff-low        { background: #ecfbf3; color: #0d5c33; }
.tag-diff-medium     { background: #fef3e0; color: #1d2733; }
.tag-diff-high       { background: #fdebec; color: #a32d2d; }
.tag-intent          { background: var(--surface-1); color: var(--text-muted); }

/* ── Title selection ─────────────────────────────────────── */
.title-group     { margin-bottom: 16px; padding-bottom: 16px; }
.title-group-sep { border-bottom: 1px solid var(--border); }
.title-group-hdr { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.title-group-meta { font-weight: 400; text-transform: none; letter-spacing: 0; color: #BBB; }
.title-opt {
  border-radius: 8px; border: 1px solid var(--border); background: white;
  padding: 9px 11px; display: flex; align-items: flex-start;
  gap: 9px; cursor: pointer; transition: border-color 0.12s; margin-bottom: 5px;
}
.title-opt:hover   { border-color: var(--border-strong); }
.title-opt.selected { border: 2px solid var(--orange); background: #ecfbf3; }
.radio-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--border-strong); flex-shrink: 0;
  margin-top: 2px; display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.radio-dot.filled { background: var(--orange); border-color: var(--orange); }
.radio-inner      { width: 5px; height: 5px; border-radius: 50%; background: white; }
.title-opt-text   { font-size: 12px; color: var(--text-primary); line-height: 1.5; }
.custom-title-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.custom-title-row i { font-size: 12px; color: var(--text-muted); }

/* ── Outline cards ───────────────────────────────────────── */
.outline-card  { background: white; border-radius: 11px; border: 1px solid var(--border); overflow: hidden; }
.outline-hdr   { padding: 11px 13px; display: flex; align-items: center; cursor: pointer; transition: background 0.1s; }
.outline-hdr:hover { background: var(--surface-1); }
.outline-num   { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-1); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.outline-num.outlined { background: #ecfbf3; color: #0d5c33; }
.outline-ttl   { font-size: 12px; font-weight: 500; color: var(--text-primary); line-height: 1.4; flex: 1; margin: 0 8px; }
.outline-arrow { font-size: 13px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.outline-arrow.open { transform: rotate(180deg); }
.outline-body  { display: none; padding: 11px 13px; border-top: 1px solid var(--border); }
.outline-body.open { display: block; }
.outline-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 11px; }
.meta-item { font-size: 11px; color: var(--text-secondary); }
.meta-item strong { color: var(--text-primary); display: block; margin-bottom: 1px; font-weight: 600; }
.outline-structure-lbl { font-size: 9px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.h2-row  { font-size: 11px; color: var(--text-primary); padding: 5px 8px; background: var(--surface-1); border-radius: 6px; border-left: 2.5px solid var(--orange); margin-bottom: 4px; }
.faq-row { font-size: 11px; color: var(--text-muted); padding: 5px 8px; background: var(--surface-1); border-radius: 6px; border-left: 2.5px solid var(--border); margin-bottom: 4px; }

/* ── Writing step ────────────────────────────────────────── */
.progress-bar-bg   { background: var(--surface-1); border-radius: 20px; height: 7px; overflow: hidden; margin-bottom: 15px; }
.progress-bar-fill { height: 100%; background: var(--orange); border-radius: 20px; width: 0%; transition: width 0.7s ease; }
.write-item  { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--surface-1); border: 1px solid var(--border); margin-bottom: 8px; }
.write-icon  { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: all 0.3s; }
.write-icon.writing { background: #ecfbf3; border-color: var(--orange); }
.write-icon.done    { background: #ecfbf3; border-color: #0d5c33; }
.write-icon.error   { background: #fdebec; border-color: var(--red); }
.write-ttl    { font-size: 12px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.write-status { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.write-status.writing { color: var(--orange); }
.write-status.done    { color: #0d5c33; }
.write-status.error   { color: var(--red); }

/* ── Done card ───────────────────────────────────────────── */
.done-card { text-align: center; padding: 24px 20px; }
.done-icon { width: 48px; height: 48px; border-radius: 50%; background: #ecfbf3; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.done-icon i { font-size: 24px; color: #0d5c33; }
.done-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.done-sub   { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge-accent { background: #ecfbf3; color: var(--orange); border: 1px solid #a6ebc4; }

/* ── Alert warning bar ───────────────────────────────────── */
.alert-warning {
  background: #ecfbf3; border: 1px solid #fef3e0; border-radius: 9px;
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #1d2733; margin-bottom: 12px;
}
