/* Kampanyalar and the new-campaign wizard (design V5 parity: Kampanyalar, Kampanya-Detay, Kampanya-Turleri,
   Kampanya-Yeni-Kaynak, Kampanya-Yontem, Kampanya-Yeni-Kurallar, Kampanya-Yeni-Ekip). Values are the design's own.
   Each page is one screen high on a desktop (its lists scroll inside), like the design at 1440x900. */

/* ----------------------------------------------------------------- page, header, buttons */
.cp-page { display: flex; flex-direction: column; height: 100vh; min-height: 0; line-height: normal; color: var(--text); }
.cp-body { flex: 1 1 auto; min-height: 0; padding: 16px; display: flex; gap: 16px; }
.cp-col { flex-direction: column; }
.cp-h1 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.cp-titlebox { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-titlebox.g1 { gap: 1px; }
.cp-crumb { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-titlerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cp-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--p-f1f3ee);
  color: var(--text); font-size: 11.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.cp-pill.blue { background: var(--p-eaf1fb); color: var(--blue); }
.cp-pill.green { background: var(--p-f1f3ee); color: var(--i-3a5507); }
.cp-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cp-btn { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--p-e0e0e0);
  border-radius: 10px; background: var(--card); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 400; cursor: pointer;
  text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.cp-btn:hover { background: var(--p-fafafa); color: var(--text); }
.cp-btn.primary { padding: 0 16px; border: 0; background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.cp-btn.primary:hover { background: var(--f-a7db2e); color: var(--lime-ink); }
.cp-btn:disabled { opacity: 0.55; cursor: default; }
.cp-link { border: 0; background: transparent; padding: 0; font-family: inherit; font-size: inherit; color: var(--green-ink); text-decoration: none;
  cursor: pointer; }
.cp-link:hover { color: var(--i-3a5507); }
.cp-sec-head .cp-link, .cp-wsec-head .cp-link, .cp-modal-head .cp-link, .cp-fedit .cp-link, .cp-hrow .cp-link { font-size: 12.5px; font-weight: 600; }
.cp-link.red { color: var(--red-ink); }
.cp-link.red:hover { color: var(--i-8f1b1b); }
.cp-empty { margin: 0; padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }
.cp-nowrap { white-space: nowrap; }
.cp-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-num { font-variant-numeric: tabular-nums; }
.cp-strong { color: var(--ink); }
.cp-grey { color: var(--text-2); }
.cp-muted12 { font-size: 12px; color: var(--muted); }
.cp-muted12.red { color: var(--red-ink); }
.cp-muted125 { font-size: 12.5px; color: var(--muted); }
.cp-grey125 { font-size: 12.5px; color: var(--text-2); }
.cp-grow { flex-grow: 1; min-height: 0; }
.cp-card { box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.cp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.cp-x { border: 0; background: transparent; padding: 0 0 0 6px; font: inherit; font-size: 14px; line-height: 1; color: var(--faint); cursor: pointer;
  display: none; }
.cp-x:hover { color: var(--red-ink); }

/* ----------------------------------------------------------------- numbers on top (Kampanyalar: 4, Kampanya-Detay: 5) */
.cp-kpis { display: grid; gap: 12px; flex-shrink: 0; }
.cp-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cp-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column;
  gap: 2px; min-width: 0; }
.cp-kpi-l { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.cp-kpi-l > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-kpi-v { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cp-kpi-v.sm { font-size: 24px; }
.cp-kpi-s { font-size: 12px; color: var(--text-2); }

/* ----------------------------------------------------------------- Kampanyalar: list */
.cp-list { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cp-tools { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.cp-search { width: 220px; height: 34px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 10px; padding: 0 12px;
  font-family: inherit; font-size: 13px; color: var(--ink); background: var(--card); }
.cp-search.sm { width: 200px; height: 32px; }
.cp-seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; }
.cp-seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-family: inherit; font-size: 12.5px;
  font-weight: 400; color: var(--ink); cursor: pointer; white-space: nowrap; }
.cp-seg button[aria-pressed="true"] { background: var(--p-f1f3ee); font-weight: 600; }
.cp-seg button span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-select { height: 34px; border: 1px solid var(--p-e0e0e0); border-radius: 10px; padding: 0 10px; background: var(--card); font-family: inherit;
  font-size: 13px; color: var(--ink); }
.cp-lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 112px 150px 156px 90px 104px 128px 104px; gap: 12px; }
.cp-lhead { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.cp-lrow { align-items: center; min-height: 58px; padding: 8px 16px; box-sizing: border-box; border-bottom: 1px solid var(--p-f4f4f4);
  text-decoration: none; color: var(--text); font-size: 12.5px; flex-shrink: 0; }
.cp-lrow:hover { background: var(--p-fafbf8); color: var(--text); }
.cp-lname { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-lname-t { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-typechip { align-self: flex-start; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11px; font-weight: 700; white-space: nowrap; }
.cp-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cp-prog { display: flex; flex-direction: column; gap: 5px; }
.cp-prog-bar { height: 6px; border-radius: 999px; background: var(--p-efefef); display: flex; overflow: hidden; }
.cp-prog-bar > span { border-radius: 999px; }
.cp-prog-t { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cp-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); flex-shrink: 0; }

/* ----------------------------------------------------------------- Kampanya-Detay: one campaign */
.cp-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; flex-shrink: 0; }
.cp-sec { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cp-sec.cp-agents { gap: 6px; }
.cp-sec-head { display: flex; align-items: baseline; gap: 8px; }
.cp-sec-head .cp-h2 { flex-grow: 1; }
.cp-h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.cp-orow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink); }
.cp-orow b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cp-obar { height: 8px; border-radius: 999px; background: var(--gray-bg); display: flex; overflow: hidden; }
.cp-obar > span { border-radius: 999px; }
.cp-agrid { display: grid; grid-template-columns: minmax(0, 1fr) 60px 56px 56px 50px; gap: 8px; }
.cp-ahead { padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cp-arow { align-items: center; min-height: 26px; font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-arow b { font-weight: 600; }
.cp-records { flex-grow: 1; min-height: 240px; display: flex; flex-direction: column; overflow: hidden; }
.cp-rtabs { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.cp-rtab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--p-e4e4e4);
  background: var(--card); font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--ink); cursor: pointer; white-space: nowrap; }
.cp-rtab[aria-selected="true"] { border-color: var(--lime); background: var(--lime-soft); font-weight: 600; }
.cp-rtab span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-rgrid { display: grid; gap: 12px; }
.cp-rhead { padding: 8px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.cp-rrow { align-items: center; min-height: 43px; padding: 0 16px; border-bottom: 1px solid var(--p-f6f6f6); font-size: 12.5px; color: var(--text); flex-shrink: 0; }
.cp-rwho { display: flex; flex-direction: column; min-width: 0; }
.cp-rwho b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-rwho small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-rwho small.cp-rnote { color: var(--amber-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-chip { justify-self: start; align-self: center; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.cp-chip.b { font-weight: 700; }
.cp-more { align-self: center; margin: 10px 0; height: 30px; padding: 0 12px; border: 1px solid var(--p-e4e4e4); border-radius: 10px; background: var(--card);
  font-family: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.cp-aside { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cp-dl { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.cp-dl div { display: flex; flex-direction: column; gap: 1px; }
.cp-dl dt { font-size: 11.5px; color: var(--muted); }
.cp-dl dd { margin: 0; font-size: 12.5px; line-height: 17px; color: var(--ink); }
.cp-hist { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.cp-hitem { display: flex; gap: 10px; align-items: flex-start; }
.cp-hdot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; flex-shrink: 0; }
.cp-hitem div { display: flex; flex-direction: column; }
.cp-hitem span { font-size: 12.5px; line-height: 18px; color: var(--ink); }
.cp-hitem small { font-size: 11.5px; color: var(--muted); }
.cp-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cp-opts1 { display: flex; flex-direction: column; gap: 8px; }
.cp-aside .cp-stats3 { grid-template-columns: 1fr; }

/* ----------------------------------------------------------------- Kampanya-Turleri: types */
.cp-types { width: 340px; flex-shrink: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cp-types-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 4px; }
.cp-types-head .cp-h2 { flex-grow: 1; }
.cp-types-list { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.cp-type { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-family: inherit; text-align: left; cursor: pointer; flex-shrink: 0; }
.cp-type.on { border-color: var(--lime); background: var(--lime-soft); }
.cp-type-line { display: flex; align-items: center; gap: 8px; width: 100%; }
.cp-type-line b { font-size: 14px; font-weight: 700; color: var(--ink); flex-grow: 1; }
.cp-type-sq { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cp-type-sub { font-size: 12px; color: var(--text-2); }
.cp-types-note { margin: auto 2px 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.cp-editor { flex-grow: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cp-editor-head { display: flex; align-items: center; gap: 10px; }
.cp-editor-count { flex-grow: 1; font-size: 12.5px; color: var(--muted); }
.cp-editor-grid { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; overflow-y: auto; }
.cp-editor-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cp-block { display: flex; flex-direction: column; gap: 6px; }
.cp-block.g8 { gap: 8px; }
.cp-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
/* text that looks like the design's plain text and is edited in place */
.cp-edit { border: 1px solid transparent; border-radius: 8px; background: transparent; font-family: inherit; color: var(--ink); margin: -3px -7px;
  padding: 2px 6px; min-width: 0; }
.cp-edit:hover { border-color: var(--line); }
.cp-edit:focus { border-color: var(--lime); outline: none; background: var(--card); }
.cp-edit-h2 { font-size: 18px; font-weight: 600; max-width: 55%; }
.cp-edit-text { font-size: 13.5px; line-height: 20px; resize: none; overflow: hidden; field-sizing: content; }
.cp-edit-chip { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; align-items: center; flex-shrink: 0; }
.cp-edit-chip:focus-within { outline: 2px solid var(--lime); }
/* an input as wide as its text: the hidden copy sizes the cell, the input fills it */
.cp-autow { display: inline-grid; min-width: 0; }
.cp-autow > * { grid-area: 1 / 1; font: inherit; letter-spacing: inherit; color: inherit; }
.cp-autow-s { visibility: hidden; white-space: pre; overflow: hidden; padding-right: 1px; }
.cp-autow input { width: 100%; min-width: 2ch; border: 0; padding: 0; margin: 0; background: transparent; outline: none; }
.cp-autow input::placeholder { color: inherit; opacity: 0.55; }
.cp-edit.cp-autow:focus-within { border-color: var(--lime); background: var(--card); }
.cp-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.cp-methods button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-family: inherit; font-size: 13px;
  font-weight: 400; cursor: pointer; }
.cp-methods button[aria-checked="true"] { background: var(--inverse); color: var(--on-inverse); font-weight: 600; }
.cp-methods button[aria-disabled="true"] { cursor: not-allowed; color: var(--i-a8a8a8); }
.cp-script { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; background: var(--p-fafaf7); border: 1px solid var(--p-efefea);
  font-family: inherit; font-size: 13.5px; line-height: 20px; color: var(--ink); resize: none; field-sizing: content; min-height: 66px; }
textarea.cp-script:focus { outline: none; border-color: var(--lime); }
.cp-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-vars > span { font-size: 12px; color: var(--muted); }
.cp-vars code { height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; background: var(--p-f1f3ee);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--i-3a5507); }
.cp-crits { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-crit { height: 28px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--p-f4f5f2);
  border: 1px solid var(--p-e6e8e3); font-family: inherit; font-size: 12px; color: var(--text); }
.cp-crit:hover .cp-x, .cp-crit:focus-within .cp-x, .cp-coderow:hover .cp-x, .cp-coderow:focus-within .cp-x,
.cp-qchip:hover .cp-x, .cp-qchip:focus-within .cp-x { display: inline; }
.cp-crit.dash { border: 1px dashed var(--p-cfcfcf); background: var(--card); cursor: pointer; }
.cp-crit-input { height: 26px; box-sizing: border-box; width: 200px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--lime); font-family: inherit;
  font-size: 12px; color: var(--ink); outline: none; }
.cp-coderow { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--p-ededed); }
.cp-coderow-t { flex-grow: 1; font-size: 13px; font-weight: 500; color: var(--ink); }
.cp-addlink { align-self: flex-start; border: 0; background: transparent; padding: 2px 0; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--green-ink); cursor: pointer; }
.cp-addlink:hover { color: var(--i-3a5507); }
.cp-formrow { display: flex; align-items: center; gap: 10px; min-height: 33px; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--p-f4f4f4);
  background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.cp-formrow.static { cursor: default; }
.cp-formrow:hover:not(.static) .cp-formrow-t { color: var(--green-ink); }
.cp-formrow-t { flex-grow: 1; font-size: 13px; color: var(--ink); }
.cp-formrow-k { font-size: 12px; color: var(--text-2); }
.cp-fedit { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--p-dcebb8); border-radius: 12px; background: var(--p-fbfdf5); }
.cp-fedit-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
.cp-fedit-row.end { display: flex; justify-content: space-between; }
.cp-fedit-codes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.cp-menu-wrap { position: relative; display: inline-flex; align-self: flex-start; }
.cp-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; max-height: 260px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--p-e2e4df); border-radius: 12px; box-shadow: 0 12px 32px var(--shade-14); padding: 6px; display: flex; flex-direction: column; }
.cp-menu button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-family: inherit; font-size: 13px;
  color: var(--ink); cursor: pointer; }
.cp-menu button:hover { background: var(--lime-soft); }
.cp-menu-empty { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

/* ----------------------------------------------------------------- wizard: steps, sections, summary */
.cp-steps { margin: 0; padding: 12px 18px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; flex-shrink: 0; }
.cp-step { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cp-stepno { width: 24px; height: 24px; border-radius: 50%; background: var(--p-efefef); color: var(--muted); font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.cp-step.done .cp-stepno { background: var(--green); color: var(--on-fill); }
.cp-step.now .cp-stepno { background: var(--lime); color: var(--lime-ink); }
.cp-stept { display: flex; flex-direction: column; min-width: 0; }
.cp-stept span { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cp-step.now .cp-stept span { font-weight: 700; }
.cp-stept small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-wrow { flex-grow: 1; min-height: 0; display: flex; gap: 16px; }
.cp-wmain { flex-grow: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.cp-wmain > * { flex-shrink: 0; }
.cp-wmain > .cp-grow { flex-shrink: 1; }
.cp-wsec { padding: 16px 20px; display: flex; flex-direction: column; min-width: 0; }
.cp-wsec.pad18 { padding: 18px 20px; }
.cp-wsec.g8 { gap: 8px; } .cp-wsec.g10 { gap: 10px; } .cp-wsec.g12 { gap: 12px; } .cp-wsec.g14 { gap: 14px; }
.cp-wsec-head { display: flex; align-items: baseline; gap: 10px; }
.cp-wsec-head.center { align-items: center; }
.cp-h2w { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.cp-h2w.grow { flex-grow: 1; }
.cp-h2w.mb2 { margin: 0 0 2px; }
.cp-lead { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.cp-opts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--p-e4e4e4); background: var(--card);
  font-family: inherit; text-align: left; cursor: pointer; }
.cp-radio.on { border-color: var(--lime); background: var(--lime-soft); }
.cp-radio.off { cursor: default; }
.cp-ring { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--p-c8c8c8); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; }
.cp-ring > span { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.cp-ring.sm { width: 16px; height: 16px; }
.cp-ring.sm > span { width: 8px; height: 8px; }
.on > .cp-ring, .on > .cp-mhead > .cp-ring { border-color: var(--green); }
.on > .cp-ring > span, .on > .cp-mhead > .cp-ring > span { background: var(--green); }
.cp-radio-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-radio-t b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cp-radio-t span { font-size: 12px; line-height: 16px; color: var(--text-2); }
.cp-names { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cp-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cp-input { height: 36px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 10px; padding: 0 12px; background: var(--card);
  font-family: inherit; font-size: 13.5px; font-weight: 400; color: var(--ink); width: 100%; }
.cp-input.cp-sel { padding: 0 10px; font-size: 13px; }
.cp-input.sm { height: 32px; font-size: 13px; padding: 0 10px; }
.cp-input.bad { border-color: var(--p-e7a3a3); background: var(--p-fff8f8); }
.cp-input:focus, .cp-search:focus, .cp-select:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.cp-srcrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-srcrow-l { font-size: 12.5px; color: var(--text-2); }
.cp-srcrow-l.cp-gap { margin-left: 6px; }
.cp-srcrow-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.cp-fchip { height: 28px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--p-f1f3ee);
  border: 0; font-family: inherit; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.cp-fselect { cursor: pointer; max-width: 260px; }
.cp-ftoggle { cursor: pointer; background: var(--card); border: 1px solid var(--p-e4e4e4); color: var(--text); }
.cp-ftoggle.on { background: var(--lime-soft); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.cp-fedit-codes .cp-fchip { height: 26px; font-size: 12px; }
.cp-dash { height: 28px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 10px; border: 1px dashed var(--p-cfcfcf); border-radius: 999px;
  background: var(--card); font-family: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; position: relative; }
.cp-dash:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.cp-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cp-stack-stats { margin-top: auto; }
.cp-stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-stat { padding: 12px 14px; border-radius: 12px; background: var(--p-fafaf7); border: 1px solid var(--p-efefea); display: flex; flex-direction: column; gap: 2px; }
.cp-stat.lime { background: var(--lime-soft); border-color: var(--p-dcebb8); }
.cp-stat-v { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-stat-l { font-size: 12px; color: var(--text-2); }
.cp-stat.lime .cp-stat-l { color: var(--i-3a5507); }
.cp-summary { width: 320px; flex-shrink: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; }
.cp-sdl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-sdl div { display: flex; flex-direction: column; gap: 2px; }
.cp-sdl dt { font-size: 12px; color: var(--muted); }
.cp-sdl dd { margin: 0; font-size: 13px; color: var(--ink); }
.cp-sdl dd.b { font-weight: 600; }
.cp-sdl dd.lh { line-height: 19px; }
.cp-pvbtn { margin-top: auto; height: 38px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 10px; background: var(--card); display: flex;
  align-items: center; justify-content: center; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--green-ink); cursor: pointer;
  flex-shrink: 0; }
.cp-pvbtn:hover { color: var(--i-3a5507); background: var(--p-fbfdf5); }

/* step 2 · Arama yöntemi */
.cp-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-mcard { box-sizing: border-box; border: 1.5px solid var(--p-e4e4e4); background: var(--card); border-radius: 14px; padding: 16px; display: flex;
  flex-direction: column; gap: 10px; }
.cp-mcard.on { border-color: var(--lime); background: var(--lime-soft); }
/* a method this installation does not have: visible so the choice is known, but plainly not selectable */
.cp-mcard.off { background: var(--p-fafafa); border-style: dashed; }
.cp-mcard.off > * { opacity: 0.6; }
.cp-mcard.off .cp-mhead { cursor: not-allowed; }
.cp-mhead { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; font-family: inherit; text-align: left;
  cursor: pointer; }
.cp-mhead[aria-disabled="true"] { cursor: default; }
.cp-mtitle { font-size: 15px; font-weight: 700; color: var(--ink); flex-grow: 1; }
.cp-mtext { margin: 0; font-size: 13px; line-height: 19px; color: var(--text); }
.cp-inner { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--p-eceee9); }
.cp-inner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.cp-inner-row b { color: var(--ink); font-weight: 600; }
.cp-minisel { height: 30px; border: 1px solid var(--p-e0e0e0); border-radius: 8px; padding: 0 8px; background: var(--card); font-family: inherit; font-size: 12.5px;
  color: var(--ink); }
.cp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.cp-check.sm { font-size: 12.5px; color: var(--text); }
.cp-check input { accent-color: var(--green-text); width: 16px; height: 16px; flex-shrink: 0; }
.cp-check.sm input { width: 15px; height: 15px; }
.cp-check input:disabled + * { color: inherit; }
.cp-mfoot { font-size: 12px; color: var(--text-2); }
.cp-why { font-size: 12px; line-height: 16px; color: var(--i-7a4e08); }
.cp-why-in { margin-left: auto; padding-left: 8px; font-size: 12px; font-weight: 400; color: var(--i-7a4e08); white-space: nowrap; }
.cp-check .cp-why-in { margin-left: 0; padding-left: 0; }
.cp-prio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cp-prio-b { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--p-e4e4e4);
  background: var(--card); font-family: inherit; text-align: left; cursor: pointer; }
.cp-prio-b.on { border-color: var(--lime); background: var(--lime-soft); }
.cp-prio-b > span:last-child { font-size: 12.5px; line-height: 17px; font-weight: 500; color: var(--ink); }
.cp-thr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text); }
.cp-thr.dim { opacity: 0.55; }
.cp-thr label, .cp-inl { display: inline-flex; align-items: center; gap: 6px; }
.cp-inl { font-size: 12.5px; color: var(--text); }
.cp-thr-q { margin-left: 8px; }
.cp-numin { width: 40px; height: 30px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 8px; text-align: center; font-family: inherit;
  font-size: 13px; color: var(--ink); background: var(--card); padding: 0 4px; }
.cp-numin.wide { width: 46px; }
.cp-numin:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.cp-qchip { height: 26px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--p-f1f3ee);
  border: 0; font-family: inherit; font-size: 12px; color: var(--ink); white-space: nowrap; }
.cp-qchip.dash { border: 1px dashed var(--p-cfcfcf); background: var(--card); color: var(--text); cursor: pointer; }
.cp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cp-colf { display: flex; flex-direction: column; min-width: 0; }
.cp-colf.g8 { gap: 8px; } .cp-colf.g6 { gap: 6px; }
.cp-colf.pt4 { padding-top: 4px; }
.cp-lbl14 { font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-lbl12 { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cp-val13 { font-size: 13px; color: var(--ink); }
.cp-cap { font-size: 12px; line-height: 17px; color: var(--muted); }

/* step 3 · Kurallar */
.cp-rrule { display: flex; align-items: center; gap: 10px; min-height: 35px; border-bottom: 1px solid var(--p-f4f4f4); font-size: 13px; color: var(--ink); }
/* a value of the design that is chosen in place: it reads as the design's text, a click opens the choices */
.cp-inlsel { -webkit-appearance: none; appearance: none; height: 22px; border: 0; border-radius: 6px; padding: 0 3px; margin: 0 -3px;
  background: transparent; font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.cp-inlsel:hover { background: var(--veil); }
.cp-inlsel:focus-visible { outline: 2px solid var(--green); outline-offset: 0; }
.cp-inlsel.b { font-weight: 600; color: var(--ink); text-align: right; }
.cp-chip .cp-inlsel { height: 18px; margin: 0 1px; padding: 0 2px; }
.cp-muted12 .cp-inlsel { height: 15px; line-height: 15px; vertical-align: baseline; }
.cp-days { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-day { width: 42px; height: 32px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-family: inherit;
  font-size: 12.5px; font-weight: 600; background: var(--gray-bg); color: var(--faint); cursor: pointer; }
.cp-day.on { background: var(--inverse); color: var(--on-inverse); }
.cp-hline { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink);
  text-align: left; cursor: pointer; }
.cp-hline span { color: var(--muted); }
.cp-hline:hover { color: var(--green-ink); }
.cp-hedit { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--p-eceee9); border-radius: 10px; background: var(--p-fafaf7); }
.cp-hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text); }
.cp-hrow > span:first-child { width: 64px; color: var(--text-2); }
.cp-time { height: 30px; box-sizing: border-box; border: 1px solid var(--p-e0e0e0); border-radius: 8px; padding: 0 8px; background: var(--card); font-family: inherit;
  font-size: 12.5px; color: var(--ink); }
.cp-cgrid { display: grid; grid-template-columns: 30px minmax(0, 1fr) 240px 150px; gap: 12px; }
.cp-chead { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.cp-crow { align-items: center; min-height: 39px; border-bottom: 1px solid var(--p-f6f6f6); cursor: pointer; }
.cp-crow input { accent-color: var(--green-text); width: 16px; height: 16px; }
.cp-cname { font-size: 13px; font-weight: 500; color: var(--ink); }
.cp-cform { font-size: 12.5px; color: var(--text-2); }
.cp-auto { margin-top: auto; }

/* step 4 · Ekip */
.cp-team { display: flex; flex-direction: column; overflow: hidden; }
.cp-team-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.cp-tgrid { display: grid; grid-template-columns: 30px minmax(0, 1fr) 90px minmax(0, 1fr) 120px; gap: 12px; }
.cp-thead { padding: 8px 18px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.cp-trow { align-items: center; min-height: 45px; padding: 0 18px; border-bottom: 1px solid var(--p-f6f6f6); background: var(--card); cursor: pointer; flex-shrink: 0; }
.cp-trow.on { background: var(--p-fbfdf5); }
.cp-trow input { accent-color: var(--green-text); width: 16px; height: 16px; }
.cp-tname { font-size: 13px; font-weight: 600; color: var(--ink); }
.cp-twork { font-size: 12.5px; color: var(--text); }
.cp-trow .cp-num { font-size: 12.5px; color: var(--text); }
.cp-dist { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--p-ededed);
  background: var(--card); font-family: inherit; text-align: left; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); }
.cp-dist.on { border-color: var(--lime); background: var(--lime-soft); }
.cp-dist[aria-disabled="true"] { cursor: default; }

/* "Temsilci ekranını önizle": the agent's call box for a contact of this campaign */
.cp-modal-back { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: center; justify-content: center;
  padding: 16px; }
.cp-modal { width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 16px;
  box-shadow: 0 12px 32px var(--shade-20); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cp-modal-head { display: flex; align-items: baseline; gap: 8px; }
.cp-pv { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.cp-pv-chip { align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--p-e4e6e1); font-size: 12px; color: var(--text); }
.cp-pv-chip b { color: var(--i-a1470d); font-weight: 600; margin-right: 4px; }
.cp-pv-name { margin-top: 6px; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--ink); }
.cp-pv-num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-pv-script { margin-top: 6px; }
.cp-pv-btns { display: flex; gap: 8px; margin-top: 6px; }
.cp-pv-btns .cp-btn { cursor: default; }
.cp-pv-btns .cp-btn.primary { flex-grow: 1; justify-content: center; }
.cp-pv-part { display: flex; flex-direction: column; gap: 6px; }
.cp-pv-codes { display: flex; flex-wrap: wrap; gap: 6px; }

/* ----------------------------------------------------------------- smaller screens: the page scrolls, columns stack;
   a table keeps its columns and scrolls sideways inside its card (the page itself never does) */
@media (max-width: 1100px), (max-height: 640px) {
  .cp-page { height: auto; min-height: 100vh; }
  .cp-page > .top { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 8px; }
  .cp-titlebox { flex: 1 1 260px; }
  .cp-titlerow { flex-wrap: wrap; row-gap: 4px; }
  .cp-body:not(.cp-col), .cp-wrow { flex-wrap: wrap; }
  .cp-main, .cp-wmain, .cp-editor { flex: 1 1 100%; min-width: 0; overflow: visible; }
  .cp-aside, .cp-summary, .cp-types { width: 100%; }
  .cp-list, .cp-records, .cp-team { min-height: 0; overflow-x: auto; }
  .cp-scroll, .cp-hist, .cp-types-list, .cp-editor-grid { overflow: visible; }
  .cp-lgrid { min-width: 1120px; }
  .cp-rgrid { min-width: 880px; }
  .cp-tgrid { min-width: 720px; }
  .cp-cgrid { min-width: 620px; }
  .cp-wsec { overflow-x: auto; }
  .cp-foot, .cp-tools { min-width: 0; }
}
@media (max-width: 720px) {
  .cp-body { padding: 12px; }
  .cp-kpis.four, .cp-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-grid2, .cp-opts3, .cp-mgrid, .cp-prio, .cp-names, .cp-two, .cp-steps, .cp-editor-grid, .cp-stats3 { grid-template-columns: 1fr; }
  .cp-tools, .cp-rtabs, .cp-editor-head { flex-wrap: wrap; }
  .cp-search, .cp-search.sm { width: 100%; }
  .cp-seg { overflow-x: auto; max-width: 100%; }
  .cp-lrow, .cp-lhead { padding-left: 12px; padding-right: 12px; }
  .cp-page > .top .top-tabs { height: 44px; }
}
