/* ============================================================
   Campaign Flow v2 — extra styles
   Builds on /styles.css + /redesign-styles.css
   ============================================================ */

/* ── Page shell (reuses .rd-shell vocabulary) ───────────── */
.cf-shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100%;
  background: var(--bg-canvas);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}

/* ── Stepper ────────────────────────────────────────────── */
.cf-stepper {
  display: flex; align-items: center;
  max-width: 760px;
  margin: 16px 0 24px;
}
.cf-stepper .step {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.cf-stepper .step .dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 12px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.cf-stepper .step.done .dot { background: var(--mint); color: var(--ink); }
.cf-stepper .step.active .dot { background: var(--ink); color: white; box-shadow: 0 0 0 4px rgba(0,43,80,0.08); }
.cf-stepper .step .label {
  font-size: 12px; font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.cf-stepper .step.active .label,
.cf-stepper .step.done .label { color: var(--ink); }
.cf-stepper .bar {
  flex: 1; height: 2px;
  background: var(--bg-soft);
  margin: 0 12px;
  border-radius: 999px;
  position: relative; overflow: hidden;
}
.cf-stepper .bar .fill {
  position: absolute; inset: 0;
  background: var(--mint);
  transform-origin: left;
  transition: transform .4s ease;
}

/* ── Wizard card ────────────────────────────────────────── */
.cf-wizard {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: flex-start;
}
.cf-wcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(0,43,80,0.02);
  padding: 24px;
}
.cf-wcard h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
}
.cf-wcard .desc {
  font-size: 12.5px; color: var(--ink-soft);
  margin-bottom: 18px;
}

/* tiny field + label */
.cf-field { margin-bottom: 14px; }
.cf-field label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 5px;
}
.cf-field .hint {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.cf-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  color: var(--ink);
  outline: none;
}
.cf-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,43,80,0.08); }
.cf-textarea { min-height: 80px; resize: vertical; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* select pills */
.cf-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: white;
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.cf-pill.on {
  background: var(--ink); color: white; border-color: var(--ink);
}
.cf-pill.on .check {
  width: 12px; height: 12px;
  background: var(--mint);
  border-radius: 999px;
  display: inline-grid; place-items: center;
  color: var(--ink);
}
.cf-pill.warn { border-color: var(--coral); color: var(--coral); }

/* deliverable rows */
.cf-deliv {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 100px 1fr 80px 30px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.cf-deliv .pl {
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.cf-deliv .ct { font-size: 12px; color: var(--ink); }
.cf-deliv .qty {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  text-align: right;
}
.cf-deliv .del {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.cf-deliv .del:hover { background: rgba(255,68,68,0.08); color: var(--red); }

/* ── Wizard preview ────────────────────────────────────── */
.cf-preview {
  background: white;
  border-radius: 18px;
  padding: 18px;
  border: 1px dashed var(--line);
  position: sticky; top: 16px;
}
.cf-preview .label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-preview h4 {
  margin: 4px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.018em;
}
.cf-preview .field-grp {
  display: grid; gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cf-preview .field-grp:last-child { border-bottom: 0; }
.cf-preview .field-grp .k {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-preview .field-grp .v {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}
.cf-preview .ai-budget {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(28,28,201,0.06), rgba(31,214,180,0.06));
  border: 1px solid rgba(28,28,201,0.15);
  border-radius: 12px;
  padding: 12px;
}
.cf-preview .ai-budget .h {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo);
  display: flex; align-items: center; gap: 5px;
}
.cf-preview .ai-budget .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.015em;
}
.cf-preview .ai-budget .ds { font-size: 11px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

/* ── Sticky footer (wizard) ─────────────────────────────── */
.cf-footer {
  margin-top: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; bottom: 0;
}
.cf-footer .progress { font-size: 11.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.cf-footer .autosave {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: #0a8a72;
  font-weight: 600;
}
.cf-footer .autosave .pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--mint-deep); animation: cfPulse 1.6s ease-in-out infinite; }
@keyframes cfPulse { 50% { transform: scale(1.5); opacity: 0.6; } }

/* ── Status badges (campaign) ───────────────────────────── */
.cf-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.01em;
}
.cf-status .dot { width: 6px; height: 6px; border-radius: 999px; }
.cf-status.draft { background: rgba(0,43,80,0.08); color: var(--ink); }
.cf-status.draft .dot { background: var(--ink-soft); }
.cf-status.recruiting { background: rgba(0,156,255,0.14); color: var(--cyan-dark); }
.cf-status.recruiting .dot { background: var(--cyan); animation: cfPulse 1.6s ease-in-out infinite; }
.cf-status.in_progress { background: rgba(31,214,180,0.18); color: #0a8a72; }
.cf-status.in_progress .dot { background: var(--mint-deep); animation: cfPulse 1.6s ease-in-out infinite; }
.cf-status.completed { background: rgba(28,28,201,0.12); color: var(--indigo); }
.cf-status.completed .dot { background: var(--indigo); }
.cf-status.cancelled { background: rgba(255,68,68,0.10); color: #B12B2B; }
.cf-status.cancelled .dot { background: var(--red); }
.cf-status.archived { background: rgba(0,43,80,0.06); color: var(--ink-soft); }
.cf-status.archived .dot { background: var(--ink-soft); }

/* ── Status dropdown (chevron) ──────────────────────────── */
.cf-status-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  font-size: 11px; font-weight: 700;
  position: relative;
}
.cf-status-trigger.draft { background: rgba(0,43,80,0.08); color: var(--ink); }
.cf-status-trigger.recruiting { background: rgba(0,156,255,0.14); color: var(--cyan-dark); }
.cf-status-trigger.in_progress { background: rgba(31,214,180,0.18); color: #0a8a72; }
.cf-status-trigger.completed { background: rgba(28,28,201,0.12); color: var(--indigo); }
.cf-status-trigger svg { opacity: 0.6; }

/* ── Status menu (dropdown popover) ──────────────────────── */
.cf-status-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,43,80,0.18);
  padding: 6px;
  min-width: 220px;
}
.cf-status-menu .item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink);
}
.cf-status-menu .item:hover { background: var(--bg-soft); }
.cf-status-menu .item.danger { color: #B12B2B; }
.cf-status-menu .item.danger:hover { background: rgba(255,68,68,0.08); }
.cf-status-menu .item .arrow { margin-left: auto; opacity: 0.4; }
.cf-status-menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.cf-status-menu .lbl {
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 10px 4px;
}

/* ── Campaign card (dashboard) ──────────────────────────── */
.cf-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.cf-card:hover {
  border-color: rgba(28,28,201,0.20);
  box-shadow: 0 14px 30px -22px rgba(0,43,80,0.22);
}
.cf-card .head {
  display: flex; align-items: flex-start; gap: 12px;
}
.cf-card .head .icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: white; font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.cf-card .head .meta { flex: 1; min-width: 0; }
.cf-card .head .nm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 6px;
}
.cf-card .head .sub {
  font-size: 11.5px; color: var(--ink-soft);
  margin-top: 2px;
}
.cf-card .head .more {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.cf-card .head .more:hover { background: var(--bg-soft); color: var(--ink); }
.cf-card .kpis {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 12px;
}
.cf-card .kpis .kpi {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 7px 9px;
}
.cf-card .kpis .kpi .k {
  font-size: 9px; font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.cf-card .kpis .kpi .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.cf-card .progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  margin-top: 12px;
  overflow: hidden;
}
.cf-card .progress-track .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mint-deep));
  border-radius: 999px;
}
.cf-card .footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-soft);
}
.cf-card .footer .due b { color: var(--ink); font-weight: 700; }
.cf-card.checked {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,43,80,0.08);
}
.cf-card .check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  background: white;
  cursor: pointer;
}
.cf-card.checked .check { background: var(--ink); border-color: var(--ink); color: white; }

/* ── Bulk action bar ────────────────────────────────────── */
.cf-bulkbar {
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.cf-bulkbar .count {
  background: var(--mint); color: var(--ink);
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}
.cf-bulkbar .grow { flex: 1; }
.cf-bulkbar button {
  background: rgba(255,255,255,0.12);
  color: white; border: 0;
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.cf-bulkbar button:hover { background: rgba(255,255,255,0.22); }
.cf-bulkbar button.danger:hover { background: rgba(255,68,68,0.40); }

/* ── Milestone timeline ─────────────────────────────────── */
.cf-timeline {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.cf-timeline h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 6px;
}
.cf-timeline .track {
  position: relative;
  padding: 4px 0;
}
.cf-timeline .rail {
  position: absolute;
  top: 22px; left: 6px; right: 6px;
  height: 4px; border-radius: 999px;
  background: var(--bg-soft);
}
.cf-timeline .rail .fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--mint-deep), var(--cyan));
  border-radius: 999px;
}
.cf-timeline .milestones {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.cf-timeline .ms {
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
}
.cf-timeline .ms .node {
  width: 12px; height: 12px; border-radius: 999px;
  background: white;
  border: 2px solid var(--line-strong);
  position: relative; z-index: 2;
  margin-top: 12px;
}
.cf-timeline .ms.done .node { background: var(--mint-deep); border-color: var(--mint-deep); }
.cf-timeline .ms.active .node {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0,43,80,0.10);
}
.cf-timeline .ms.late .node {
  background: var(--coral); border-color: var(--coral);
  animation: cfPulse 1.6s ease-in-out infinite;
}
.cf-timeline .ms .lbl {
  font-size: 10px; font-weight: 700;
  margin-top: 8px;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-align: center;
}
.cf-timeline .ms .dt {
  font-size: 9.5px; color: var(--ink-soft);
  margin-top: 1px;
}
.cf-timeline .ms.late .dt { color: var(--coral); font-weight: 700; }
.cf-timeline .ms .badge-late {
  position: absolute; top: -6px;
  font-size: 8px; font-weight: 800;
  background: var(--coral); color: white;
  padding: 1px 6px; border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── Application list (detail) ─────────────────────────── */
.cf-apps {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  overflow: hidden;
}
.cf-app-row {
  display: grid;
  grid-template-columns: 220px 100px 1fr 110px 130px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  align-items: center;
}
.cf-app-row + .cf-app-row { border-top: 1px solid var(--line); border-radius: 0; }
.cf-app-row:hover { background: var(--bg-soft); }
.cf-app-row.pending { background: rgba(254,233,96,0.06); }
.cf-app-row .who {
  display: flex; align-items: center; gap: 9px;
  min-width: 0;
}
.cf-app-row .who .nm { font-weight: 700; font-size: 12.5px; }
.cf-app-row .who .hl { font-size: 11px; color: var(--ink-soft); }
.cf-app-row .rate {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  text-align: right;
}
.cf-app-row .rate .sub { font-size: 9.5px; color: var(--ink-soft); font-weight: 600; }
.cf-app-row .msg {
  font-size: 11.5px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4;
}
.cf-app-row .actions { display: flex; gap: 5px; justify-content: flex-end; }
.cf-app-row .btn-mini {
  padding: 5px 9px;
  border-radius: 7px;
  border: 0; font-family: inherit;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.cf-app-row .btn-mini.approve { background: var(--mint-deep); color: white; }
.cf-app-row .btn-mini.reject  { background: rgba(255,68,68,0.10); color: #B12B2B; }
.cf-app-row .btn-mini.view    { background: var(--bg-soft); color: var(--ink); }

/* ── Creator apply drawer (mobile phone view) ───────────── */
.cf-phone {
  width: 100%; height: 100%;
  background: var(--bg-canvas);
  display: flex; flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cf-phone .status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 4px;
  font-size: 12px; font-weight: 700;
}
.cf-phone .header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.cf-phone .header .back {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink);
}
.cf-phone .header h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
}
.cf-phone .content { flex: 1; padding: 14px 16px 0; overflow-y: auto; }
.cf-phone .brief-hero {
  background: linear-gradient(135deg, #002B50 0%, #1C1CC9 100%);
  color: white;
  border-radius: 16px;
  padding: 16px;
  position: relative; overflow: hidden;
}
.cf-phone .brief-hero::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,111,163,0.55), transparent 60%);
  filter: blur(8px);
}
.cf-phone .brief-hero .lbl { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.cf-phone .brief-hero h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  margin: 4px 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.cf-phone .brief-hero .row1 { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-phone .brief-hero .pp {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.cf-phone .brief-hero .stats {
  display: flex; gap: 12px;
  margin-top: 12px;
  font-size: 10px;
  opacity: 0.85;
  position: relative;
  letter-spacing: 0;
}
.cf-phone .brief-hero .stats > div {
  min-width: 0;
}
.cf-phone .brief-hero .stats b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700;
  display: block;
  letter-spacing: -0.015em;
  opacity: 1;
  margin-bottom: 1px;
  white-space: nowrap;
}
.cf-phone .brief-hero .stats span {
  font-size: 10px;
  white-space: nowrap;
}
.cf-phone .match-stripe {
  margin-top: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.cf-phone .match-stripe .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a8a72;
}
.cf-phone .match-stripe .copy {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.cf-phone .match-stripe .copy b { color: var(--ink); font-weight: 700; }
.cf-phone .req-list {
  margin-top: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.cf-phone .req-list h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  margin: 0 0 10px;
}
.cf-phone .req-list .req {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  align-items: center;
}
.cf-phone .req-list .req .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--ink-soft);
}
.cf-phone .req-list .req b { font-weight: 700; }
.cf-phone .req-list .req .v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 12.5px;
}

/* drawer that slides up */
.cf-drawer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px 12px;
  box-shadow: 0 -10px 40px rgba(0,43,80,0.14);
  z-index: 5;
  transform: translateY(0);
}
.cf-drawer .handle {
  width: 40px; height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  margin: 0 auto 12px;
}
.cf-drawer h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  margin: 0 0 4px;
}
.cf-drawer .sub { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 14px; }
.cf-drawer label { font-size: 11px; font-weight: 700; margin-bottom: 4px; display: block; }
.cf-drawer .field { margin-bottom: 12px; }
.cf-drawer .input,
.cf-drawer textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  outline: none;
}
.cf-drawer textarea { min-height: 70px; }
.cf-drawer .rate-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items: center;
}
.cf-drawer .rate-row .suggest {
  font-size: 10.5px; color: var(--cyan-dark);
  font-weight: 700;
  padding: 6px 10px;
  background: rgba(0,156,255,0.10);
  border-radius: 8px;
  cursor: pointer;
}
.cf-drawer .submit-row { display: flex; gap: 8px; margin-top: 4px; }
.cf-drawer .btn-cancel {
  padding: 12px 14px;
  background: var(--bg-soft); color: var(--ink);
  border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.cf-drawer .btn-submit {
  flex: 1;
  padding: 12px 14px;
  background: var(--ink); color: white;
  border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

/* phone "Quick Apply" pinned CTA before drawer */
.cf-phone .cta-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: var(--ink); color: white;
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 4;
  box-shadow: 0 12px 30px rgba(0,43,80,0.25);
}
.cf-phone .cta-bar .rate {
  font-size: 10.5px; opacity: 0.7; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cf-phone .cta-bar .v { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 16px; }
.cf-phone .cta-bar .apply {
  background: var(--mint); color: var(--ink);
  border: 0; border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.01em;
}

/* ── Consolidation map (rationale panel) ─────────────── */
.cf-map {
  padding: 24px;
  background: var(--bg-canvas);
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  overflow-y: auto;
}
.cf-map .eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-map h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin: 6px 0 4px;
  line-height: 1.1;
}
.cf-map .lede { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 18px; }
.cf-map .compare {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 18px;
}
.cf-map .compare .arrow-col {
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: var(--indigo);
}
.cf-map .col {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.cf-map .col.old { background: rgba(255,68,68,0.04); border-color: rgba(255,68,68,0.18); }
.cf-map .col.new { background: linear-gradient(135deg, rgba(28,28,201,0.05), rgba(31,214,180,0.05)); border-color: rgba(28,28,201,0.20); }
.cf-map .col h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.cf-map .col .tag {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  margin-right: 6px;
}
.cf-map .col.old .tag { background: rgba(255,68,68,0.12); color: #B12B2B; }
.cf-map .col.new .tag { background: rgba(28,28,201,0.12); color: var(--indigo); }
.cf-map .flowbox {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 11px;
  margin-top: 8px;
}
.cf-map .flowbox .node {
  background: white;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.cf-map .flowbox .node.danger { border-color: rgba(255,68,68,0.4); background: rgba(255,68,68,0.05); }
.cf-map .flowbox .node.ok { border-color: rgba(28,28,201,0.30); }
.cf-map .flowbox .down {
  text-align: center; color: var(--ink-soft); font-size: 10px;
  line-height: 1;
}
.cf-map .status-chain {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.cf-map .changes {
  margin-top: 16px;
}
.cf-map .changes h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.cf-map .changes .row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.45;
}
.cf-map .changes .row .ic {
  width: 16px; height: 16px;
  color: var(--mint-deep);
  flex-shrink: 0; margin-top: 1px;
}
.cf-map .changes .row b { font-weight: 700; }
.cf-map .changes .row .from {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(255,68,68,0.4);
  text-decoration-thickness: 1.5px;
}
