:root {
  /* === SpeakerROI 2026-02 BRAND TOKENS (LIGHT CANON) ================== */
  /* Core surfaces */
  --bg: #F6F7FB;
  --bg-2: #EEF1F7;
  --card: #FFFFFF;          /* surface-1 */
  --card-2: #F1F3F9;        /* surface-2 */

  /* Text */
  --text: #0F172A;
  --muted: #64748B;

  /* Borders */
  --border: rgba(15, 23, 42, 0.10);

  /* Radii (map to existing) */
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Accent (single) */
  --accent: #4F46E5;
  --accent-ink: #FFFFFF;

  /* Semantic */
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #F59E0B;
  --info: #2563EB;

  /* Depth (soft, light UI) */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 2px 6px rgba(15, 23, 42, 0.08), 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-3: 0 6px 18px rgba(15, 23, 42, 0.10), 0 28px 80px rgba(15, 23, 42, 0.14);
  --overlay: rgba(15, 23, 42, 0.35);

  /* Glow recipes (subtle; no neon) */
  --glow-accent: 0 0 0 1px rgba(79, 70, 229, 0.22), 0 10px 28px rgba(79, 70, 229, 0.18);
  --glow-accent-strong: 0 0 0 1px rgba(79, 70, 229, 0.28), 0 14px 44px rgba(79, 70, 229, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --d-1: 120ms;
  --d-2: 180ms;
  --d-3: 260ms;
  --d-4: 320ms;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.20);

  /* === Kanban / Lead card sizing standard (kept) === */
  --kanban-col-min: 146px; /* -30% from 208px */      /* baseline column/card width */
  --lead-card-min-h:  0px;      /* min height */
  --lead-card-max-h:  420px;     /* max height (then overflow hidden) */
  --lead-card-pad: 14px;        /* 12–16px; keep existing look */

  /* === App frame sizing tokens (kept) === */
  --app-pad-x: 24px;
  --app-pad-y: 24px;
  --app-public-max-w: 960px;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
a { color: inherit; }
.container { max-width: 960px; margin: 0 auto; padding: 24px; }

/* === App frame (Bitrix-like work area) === */
html, body { height: 100%; }

.app-shell { min-height: 100vh; width: 100%; }
.app-content { padding: var(--app-pad-y) var(--app-pad-x); }

/* Internal app pages: full-width work area */
.content-app { max-width: none; margin: 0; }

/* Public pages: centered, readable width */
.content-public { max-width: var(--app-public-max-w); margin: 0 auto; }

@media (max-width: 820px){
  .app-content { padding: 16px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-1);
  margin: 14px 0;
  transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-2);
}
.row { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px){ .grid2{ grid-template-columns: 1fr; } }
h1 {
  margin: 6px 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  margin: 6px 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* === SpeakerROI BRAND: TYPO RHYTHM === */
p { margin: 8px 0; line-height: 1.5; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
}
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--card);
  color: var(--text);
  transition: box-shadow var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
input::placeholder { color: rgba(100, 116, 139, 0.85); }
input:focus { box-shadow: var(--focus-ring); border-color: rgba(79, 70, 229, 0.35); }
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--card);
  color: var(--text);
  resize: vertical;
  transition: box-shadow var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
textarea::placeholder { color: rgba(100, 116, 139, 0.85); }
textarea:focus { box-shadow: var(--focus-ring); border-color: rgba(79, 70, 229, 0.35); }
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--card);
  color: var(--text);
  transition: box-shadow var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
select:focus { box-shadow: var(--focus-ring); border-color: rgba(79, 70, 229, 0.35); }

button {
  padding: 10px 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out), opacity var(--d-2) var(--ease-out);
}
button:hover {
  box-shadow: var(--glow-accent);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.40);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

button.ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
button.ghost:hover {
  box-shadow: var(--shadow-1);
}
.formgrid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formgrid .span2 { grid-column: span 2; }
@media (max-width: 820px){ .formgrid{ grid-template-columns: 1fr; } .formgrid .span2{ grid-column: auto; } }
.muted { color: var(--muted); }
.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.35;
}
.alert {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin: 12px 0;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--card-2);
}
.list { list-style: none; padding: 0; margin: 0; }
.listitem {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.listitem:first-child { border-top: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: none;
  transition: box-shadow var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
.pill:hover { box-shadow: var(--shadow-1); }
.pill:active { transform: translateY(1px); }

/* Semantic pills (opt-in): add class to existing .pill elements */
.pill.is-success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
}
.pill.is-danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}
.pill.is-warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.10);
  color: var(--warning);
}
.pill.is-info {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: var(--info);
}
/* === SpeakerROI BRAND: PILL SEMANTICS === */
.pill.is-accent {
  border-color: rgba(79, 70, 229, 0.22);
  background: rgba(79, 70, 229, 0.10);
  color: var(--accent);
}
.kpis { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
@media (max-width: 820px){ .kpis{ grid-template-columns: repeat(2, 1fr); } }
.kpi {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--card-2);
  box-shadow: none;
}
.kpiLabel { font-size: 14px; color: var(--muted); }
.kpiVal { font-size: 20px; font-weight: 700; }

/* Make .pill consistent for buttons too */
button.pill {
  background: transparent;
  cursor: pointer;
}


/* Primary CTA: Add Event button */
#btnAddEvent {
  color: #ffffff !important;
  font-weight: 600;
  opacity: 1 !important;
  text-shadow: none;
}

#btnAddEvent:hover {
  color: #ffffff !important;
}


/* FORCE white text for primary CTA */
button#btnAddEvent.pill,
button#btnAddEvent.pill:hover,
button#btnAddEvent.pill:active,
button#btnAddEvent.pill:focus {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none;
}

/* === SpeakerROI primary buttons === */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out), opacity var(--d-2) var(--ease-out);
}

.btn-primary:hover { box-shadow: var(--glow-accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.40);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:hover {
  background: #111;
}

.btn-primary:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
}

/* horizontal button group */
.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* === SpeakerROI: unified primary action buttons (black/white) === */
.action-btn {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.action-btn:hover { background: #111 !important; border-color: #111 !important; }
.action-btn:active { transform: translateY(2px); }

/* inline row for action buttons */
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ensure dashboard "+ Добавить выступление" isn't washed out (even if it has disabled styles) */
#addEventBtn.action-btn { opacity: 1 !important; filter: none !important; }

/* Force links styled as buttons to never look like links */
a.action-btn, a.action-btn:visited, a.action-btn:hover, a.action-btn:active {
  text-decoration: none !important;
  color: #fff !important;
}

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  padding: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  transform: translateY(2px);
  transition: transform var(--d-3) var(--ease-out), opacity var(--d-3) var(--ease-out);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-close {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: none;
  transition: box-shadow var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
.modal-close:hover {
  box-shadow: var(--shadow-1);
}
.modal-close:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .modal-card { transition: none; transform: none; }
  .modal-close { transition: none; }
}

/* === Force black "+ Добавить выступление" on Dashboard === */
button:has-text("+ Добавить выступление"),
a:has-text("+ Добавить выступление") {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

/* Fallback: dashboard add-event button */
.dashboard button,
.dashboard a {
  background: var(--accent);
  color: #fff;
}

/* Public lead form validation */
.invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.field_error {
  margin-top: 6px;
  font-size: 13px;
  color: #e11d48;
}

/* Public lead form validation */
.invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.field_error {
  margin-top: 6px;
  font-size: 13px;
  color: #e11d48;
}

/* === Public lead form validation === */
.invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.field_error {
  margin-top: 6px;
  font-size: 13px;
  color: #e11d48;
}

.req { color: #e11d48; margin-left: 4px; }

/* === Public lead form validation === */
.invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

.field_error {
  margin-top: 6px;
  font-size: 13px;
  color: #e11d48;
}

.req { color: #e11d48; margin-left: 4px; }


/* --- form validation --- */
.field-error input { border-color: #ffb3b3; background: #fffafa; }
.field-error label { color: #a40000; }
.field-msg { color: #a40000; font-size: 13px; margin-top: 6px; }
.req { color: #a40000; }


/* === Kanban v2 (layout only, no business logic) === */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(var(--kanban-col-min), 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 10px;
}
.kanban-col {
  background: var(--bg-panel);
  border: var(--border-muted);
  border-radius: var(--r-lg);
  padding: var(--s-4);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kanban-empty {
  border: var(--border-muted);
  border-radius: 12px;
  padding: var(--s-4);
  background: rgba(255,255,255,0.02);
}


.empty-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.empty-text {
  font-size: 14px;
  opacity: 0.78;
  line-height: 1.35;
}




.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-weight: 800;
  font-size: 14px;

  padding: var(--s-2) var(--s-3);
  border-bottom: var(--border-muted);
  background: transparent;

  position: sticky;
  top: 0;
  z-index: 2;
}

.kanban-head > :first-child {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}




.kanban-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.lead-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--lead-card-pad);
  max-height: var(--lead-card-max-h);
  width: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}



/* Визуал success на Этапе 4 — пока не трогаем намеренно */


.lead-card.success::before, .lead-card.mode-success::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.65);
}



.lead-card.fail::before, .lead-card.mode-fail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.65);
}

.lead-main {
  flex: 1;
  min-width: 0;
}

/* Micro-UX (no JS) */
.lead-card {
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.lead-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255,255,255,0.055);
}

.hint {
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.85;
}

.muted {
  opacity: 0.78;
}


/* Lead header right + money badge */
.lead-header-right {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.money-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  white-space: nowrap;
}

/* Lead card (unified structure) */
.lead-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lead-title {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-meta {
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.lead-contact {
  margin-top: 4px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.lead-contact > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-note {
  margin-top: 6px;
  font-size: 13px;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lead-money { margin-top: 6px; }
.lead-success-hint {
  margin-top: 8px;
  font-size: 20px;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lead-pay-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lead-pay-row input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
}

.lead-pay-row .action-btn {
  width: auto !important;
  white-space: nowrap;
}


@media (max-width: 1100px) {
  .kanban { grid-template-columns: 1fr 1fr; }
  .kanban-col { max-height: none; }
}

@media (max-width: 650px) {
  .kanban { grid-template-columns: 1fr; }
}



/* Payments block (compact, scalable) */
.payments-list {
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-item {
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

.payment-item .amount {
  font-weight: 700;
  font-size: 14px;
}

.payment-item .lead-ref {
  opacity: 0.75;
  font-size: 14px;
}

.payment-item .date {
  opacity: 0.6;
  font-size: 13px;
}


/* Unified controls */
button,
input[type="number"] {
  height: 36px;
  border-radius: var(--r-sm);
}

button {
  padding: var(--s-2) var(--s-3);
}

/* Canonical button padding */
button.primary,
button.ghost,
button.success,
button.danger {
  padding: var(--s-2) var(--s-3);
}

/* Canonical action button standard */
button.primary,
button.ghost,
button.success,
button.danger {
  padding: 10px 16px !important;
  line-height: normal;
}


input[type="number"] {
  padding: 0 var(--s-2);
}

button.ghost {
  opacity: 0.8;
}

button.ghost:hover {
  opacity: 1;
}

/* Kanban pill */
.kanban-head .pill,
.kanban-head span.pill,
.kanban-head .count,
.kanban-head .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: var(--border-soft);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lead-card.mode-in_work .lead-pay-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lead-card.mode-in_work .lead-pay-row input[type="number"] {
  flex: 1;
  min-width: 0;
}

@media (max-width: 650px) {
  .lead-card.mode-in_work .lead-pay-row { flex-direction: column; align-items: stretch; }
  .lead-card.mode-in_work .lead-pay-row .action-btn { width: 100% !important; }
}

/* Lead header stability */
.lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.lead-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-header-right {
  flex: 0 0 auto;
  max-width: 45%;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.lead-card.mode-in_work .ghost {
  font-size: 20px;
  height: 30px;
}

/* Payments row alignment */
.payment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-item .actions {
  display: flex;
  justify-content: flex-end;
}

/* Kanban head alignment */
.kanban-head {
  min-height: 44px;
}

.kanban-head h3,
.kanban-head h4,
.kanban-head strong {
  margin: 0;
  line-height: 1.2;
}

/* Success polish */
/* STEP 1.1: unify phone color across columns (match Success) */
.lead-phone {
  color: var(--muted) !important;
}

.lead-card.success::before, .lead-card.mode-success::before {
  width: 2px;
  opacity: 0.6;
}

.lead-card.success .lead-success-hint, .lead-card.mode-success .lead-success-hint {
  font-size: 20px;
  opacity: 0.65;
  line-height: 1.3;
}

/* Payments CTA */
.payment-item form button {
  height: 30px;
  font-size: 20px;
  padding: 6px var(--s-3);
}


/* === Kanban HARD LAYOUT FIX === */

/* === Kanban FRAME (Bitrix-like board) === */
.kanban-page {
  /* page wrapper (if present) should allow the board to consume height */
  min-height: calc(100vh - 24px);
}

/* DEPRECATED: replaced by canonical event kanban override */
/*
.kanban-scroll {
  /* The board lives inside app-content; let it take available height */
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;

  /* Give the board a stable working height (Bitrix-like) */
}
/* Columns: on wide screens fit into viewport; on narrow enable horizontal scroll */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  align-items: start;
}
.kanban-col {
  min-width: 0;

  /* Column becomes its own scroll container for cards */
  max-height: 100%;
  height: 100%;
}
.kanban-col .kanban-body,
.kanban-col .col-body,
.kanban-col .cards,
.kanban-col .items {
  /* whichever container exists, make it scrollable */
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1 1 auto;
}

/* If cards are direct children (no wrapper), still allow scroll */
.kanban-col > *:last-child {
  min-height: 0;
}

@media (max-width: 1100px) {
  .kanban-scroll {
    height: calc(100vh - 160px);
    min-height: 480px;
  }
  .kanban {
    grid-template-columns: repeat(4, 280px);
    width: max-content;
  }
  .kanban-col {
    width: 280px;
    max-width: 280px;
  }
}



/* scroll container */
.kanban-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}
/* grid must NOT shrink */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}
@media (max-width: 1100px) {
  .kanban {
    grid-template-columns: repeat(4, 280px) !important;
    width: max-content !important;
  }
}
/* Narrow screens: allow horizontal scroll, fixed readable columns */

/* columns are fixed-width panels */


/* cards must never overflow column */
.lead-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* input/button must shrink inside card */
.lead-pay-row {
  min-width: 0;
}

.lead-pay-row input,
.lead-pay-row button {
  min-width: 0;
}


/* === Icon buttons (outline) === */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;

  border-radius: 999px;
  transition: background 120ms ease, transform 120ms ease, filter 120ms ease;
}

.icon-btn:disabled,
.icon-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.icon-btn:disabled:hover,
.icon-btn[aria-disabled="true"]:hover {
  background: transparent;
}




.icon-btn--plain{
  background: transparent;
  border: 0;
  padding: 0;
}

.icon-btn--plain:hover,
.icon-btn--plain:active{
  background: transparent;
}

.icon-img{
  width: 20px;
  height: 20px;
  display: block;
}

.icon-btn--plain:hover,
.icon-btn--plain:active { background: transparent; }




.icon-btn:active { transform: translateY(1px); }

.icon-btn .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-btn--danger { color: rgba(239, 68, 68, 0.95); }
.icon-btn--danger:hover { background: rgba(239, 68, 68, 0.10); }
.icon-btn--danger:active { background: rgba(239, 68, 68, 0.16); }

.icon-btn--success { color: rgba(34, 197, 94, 0.95); }
.icon-btn--success:hover { background: rgba(34, 197, 94, 0.12); }
.icon-btn--success:active { background: rgba(34, 197, 94, 0.18); }

.icon-btn--neutral { color: rgba(100, 116, 139, 0.95); }
.icon-btn--neutral:hover { background: rgba(100, 116, 139, 0.10); }
.icon-btn--neutral:active { background: rgba(100, 116, 139, 0.16); }

/* Start button (В работу): blue accent, hover/active like action */
.icon-btn--start { color: rgba(59, 130, 246, 0.95); }
.icon-btn--start:hover { background: rgba(59, 130, 246, 0.10); }
.icon-btn--start:active { background: rgba(59, 130, 246, 0.16); }

/* Warning (Вернуть в работу): orange accent */
.icon-btn--warning { color: rgba(245, 158, 11, 0.98); }
.icon-btn--warning:hover { background: rgba(245, 158, 11, 0.12); }
.icon-btn--warning:active { background: rgba(245, 158, 11, 0.18); }

/* Filled SVG icon (play) */
.icon-btn .icon-fill {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* Make in_work actions read like a compact action row */

/* Make in_work actions read like a compact action row */

.icon-btn[aria-label="В работу"] {
    color: #000;
}


/* Force lead identity visible in all stages */
.lead-card.mode-new .lead-title,
.lead-card.mode-in_work .lead-title,
.lead-card.mode-fail .lead-title,
.lead-card.mode-new .lead-contact,
.lead-card.mode-in_work .lead-contact,
.lead-card.mode-fail .lead-contact {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--text) !important;
}

.lead-card.mode-new .lead-contact,
.lead-card.mode-in_work .lead-contact,
.lead-card.mode-fail .lead-contact {
  display: flex !important;
}


/* Kanban: prevent lead-main collapsing (always show name/phone) */
.lead-card {
  flex-wrap: wrap;
}

.lead-main {
  flex: 1 1 220px;
  min-width: 220px;
}


.lead-card {
  position: relative;
}
.lead-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lead-pay-row input {
  width: 170px;
}
/* Step 3: paid badge below contacts */
.money-badge--below {
  display: inline-block;
  margin-top: 8px;
}


/* Step 4: payment form раскрывается по клику */
.pay-details {
  position: relative;
}

.pay-details > summary {
  list-style: none;
  cursor: pointer;
}

.pay-details > summary::-webkit-details-marker {
  display: none;
}

/* Окно ввода суммы появляется над иконками справа снизу */
.pay-details[open] .pay-form {
  position: absolute;
  right: 0;
  bottom: 46px; /* над рядом иконок */
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 5;
  white-space: nowrap;
}

.pay-form input {
  width: 160px;
}

.pay-save {
  padding: 8px 12px;
  border-radius: 10px;
}


/* Step A: center icon buttons + reduce gap between fail and pay */
.icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

/* If icons are SVG, prevent baseline shifting */
.icon-btn svg,
.icon-btn img {
  display: block !important;
}

/* Make fail + pay icons closer to each other */


/* Step B: payment popup (checkbox toggle) */
.pay-pop {
  position: relative;
}

/* hide checkbox */
.pay-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* popup hidden by default */
.pay-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 46px; /* над рядом иконок */
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  z-index: 10;
  width: 360px;
}

/* show when checked */
.pay-toggle:checked ~ .pay-panel {
  display: block;
}

.pay-title {
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.pay-form input {
  width: 100%;
  padding: 12px 14px; /* пункт 6: отступ внутри поля */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
}

.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center; /* пункт 5: центровка кнопок */
  align-items: center;
}

.pay-cancel {
  cursor: pointer;
  user-select: none;
}


/* Step B.2: payment popup as full card overlay */
.pay-panel {
  position: absolute;
  inset: 0;               /* ← 1:1 перекрытие карточки */
  width: 100%;
  height: 100%;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);

  border-radius: inherit;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}

/* Центровка контента внутри overlay */
.pay-panel > .pay-title,
.pay-panel > form {
  width: 100%;
}

/* Контейнер формы */
.pay-panel .pay-form {
  max-width: 320px;
  margin: 0 auto;
}

/* Заголовок */
.pay-title {
  text-align: center;
  font-size: 16px;
  margin-bottom: 14px;
}

/* Поле ввода */
.pay-form input {
  text-align: center;
  font-size: 16px;
}

/* Кнопки */
.pay-actions {
  margin-top: 14px;
}


/* Step B.2 FIX: pay-panel overlays the whole lead-card */
.pay-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* hidden by default */
.pay-panel {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;            /* 1:1 карточка */
  width: 100% !important;
  height: 100% !important;

  background: rgba(255,255,255,0.96) !important;
  border-radius: inherit !important;

  z-index: 20 !important;
  padding: 0 !important;

  align-items: center !important;
  justify-content: center !important;
}

/* show when checked (pay-panel is sibling after the checkbox) */
.pay-toggle:checked ~ .pay-panel {
  display: flex !important;
}

.pay-panel-inner {
  width: min(340px, calc(100% - 32px));
  margin: 0 auto;
}

.pay-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-form input {
  width: 100%;
  padding: 12px 14px;   /* отступ внутри поля */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  text-align: center;
  font-size: 16px;
}

.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}


/* FIX: stable full-card payment overlay */
.pay-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* hidden by default */
.pay-panel {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;              /* 1:1 перекрытие карточки */
  width: 100% !important;
  height: 100% !important;

  background: rgba(255,255,255,0.96) !important;
  border-radius: inherit !important;

  z-index: 30 !important;
  padding: 0 !important;

  align-items: center !important;
  justify-content: center !important;
}

/* show when checked */
.pay-toggle:checked ~ .pay-panel {
  display: flex !important;
}

.pay-panel-inner {
  width: min(340px, calc(100% - 32px));
  margin: 0 auto;
}

.pay-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  text-align: center;
  font-size: 16px;
}

.pay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}


/* SpeakerROI: pay overlay (surgical, 1:1 card) */

/* containing block for absolute overlay */
.lead-card {
  position: relative;
}

/* hide checkbox but keep it functional via label[for] */
.lead-card .pay-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* full-card overlay */
.lead-card .pay-panel {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;

  z-index: 30 !important;

  background: rgba(255,255,255,0.96) !important;
  border-radius: inherit !important;

  padding: 0 !important;
  overflow: auto !important;

  align-items: center !important;
  justify-content: center !important;
}

.lead-card .pay-toggle:checked ~ .pay-panel {
  display: flex !important;
}

.lead-card .pay-panel-inner {
  width: min(360px, calc(100% - 32px));
  margin: 0 auto;
}

/* SpeakerROI: pay overlay GLOBAL (final) */
/* Никаких зависимостей от родителя — чтобы работало даже при битом CSS выше */

/* 1) чекбокс никогда не виден */
.pay-toggle{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:0 !important;
  height:0 !important;
}

/* 2) панель по умолчанию скрыта */
.pay-panel{
  display:none !important;
}

/* 3) когда чекбокс включён — показываем */
.pay-toggle:checked ~ .pay-panel{
  display:flex !important;
}

/* 4) делаем панель настоящим оверлеем карточки */
.lead-card{ position:relative; }          /* якорь */
.lead-card .pay-panel{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:999 !important;
  background:rgba(255,255,255,0.96) !important;
  border-radius:inherit !important;
  align-items:center !important;
  justify-content:center !important;
}

/* SpeakerROI: pay overlay FINAL anchor fix */
/* 1) гарантируем, что якорь позиционирования — именно карточка */
.lead-card { position: relative !important; }

/* 2) снимаем позиционирование/обрезание с контейнера действий,
      чтобы pay-panel не “прилипал” к узкому правому блоку */

/* 3) чекбокс никогда не виден */
.pay-toggle{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:0 !important;
  height:0 !important;
}

/* 4) panel = оверлей 1:1 */
.pay-panel{
  display:none !important;
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:999 !important;

  background:rgba(255,255,255,0.96) !important;
  border-radius:inherit !important;

  align-items:center !important;
  justify-content:center !important;
}

/* 5) включили чекбокс → показали оверлей */
.pay-toggle:checked ~ .pay-panel{
  display:flex !important;
}


/* Force size for svg <img> icons inside action buttons */


/* Align action icons vertically centered in lead cards */





/* Normalize button/label baseline differences */

/* Ensure the image itself doesn't introduce baseline offset */


/* Optical alignment for like/dislike SVG images */






/* Micro-adjust: move Fail button 3px right (closer to Add payment) */


/* Lead details: clickable name */
.lead-title-btn{background:transparent;border:none;padding:0;margin:0;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.lead-title-btn { text-decoration: none !important; }
.lead-title-btn:hover{text-decoration:underline}
.lead-title-btn:hover { text-decoration: none !important; }


/* FIX: show lead title in success column */
.lead-card.success .lead-title, .lead-card.mode-success .lead-title,
.lead-card.success .lead-title-btn, .lead-card.mode-success .lead-title-btn {
  display: block !important;
}


/* FIX: ensure lead title visible in success cards */
.lead-card.success .lead-title-btn, .lead-card.mode-success .lead-title-btn{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 6px !important;
}

/* if success cards use flex/grid ordering, force title first */

.lead-card.success .lead-title-btn, .lead-card.mode-success .lead-title-btn{
  order: 0 !important;
}


/* FIX: success title contrast */
.lead-card.success .lead-title, .lead-card.mode-success .lead-title,
.lead-card.success .lead-title-btn, .lead-card.mode-success .lead-title-btn{
  color: var(--text) !important;
}


/* === Lead card layout contract (DO NOT OVERRIDE BY MODE) === */
/* Goal: identical geometry across all stages/modes. Stage may affect only colors/content. */

:root {
  --lead-actions-w: 220px; /* keep existing baseline */
}

.lead-card {
  /* keep as row: main + actions */
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--s-4) !important;

  /* enforce sizing standard */
  padding: var(--lead-card-pad) !important;
  padding-right: var(--lead-card-pad-r) !important;
  min-height: var(--lead-card-min-h) !important;
  max-height: var(--lead-card-max-h) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
box-sizing: border-box !important;
}

.lead-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* === SpeakerROI Lead Card Visual Contract v1 === */

/* === SpeakerROI Lead Card Visual Contract v1 ===
   - Same structure across all stages
   - Fixed right actions zone
   - Card may grow only via note (clamped)
   DO NOT add mode-specific layout overrides below this block.
*/
.lead-card {
  padding: 14px !important;
  min-height: 116px !important;

  /* allow controlled growth */
  max-height: none !important;
  overflow: visible !important;

  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.lead-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Title: up to 2 lines */
.lead-title {
  font-size: 16px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

/* Contacts: single line, never wrap */
.lead-contact {
  overflow: hidden !important;
}
.lead-contact > span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Money: single line */
.money-badge {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Note: ONLY block allowed to add height, but capped to 4 lines */
.lead-note {
  overflow: hidden !important;
  overflow-wrap: anywhere !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

/* Success hint: never drives big growth */
.lead-success-hint {
  overflow: hidden !important;
  overflow-wrap: anywhere !important;

  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

/* === SpeakerROI Kanban Anti-Overflow Contract === */

/* STEP 3.1: prevent equal-height stretching in card lists */
.kanban-col .cards,
.kanban-col .items,
.kanban-col .kanban-body,
.kanban-col .col-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.kanban-col .cards > .lead-card,
.kanban-col .items > .lead-card,
.kanban-col .kanban-body > .lead-card,
.kanban-col .col-body > .lead-card {
  flex: 0 0 auto !important;
}


/* STEP 3.1: unclamp long text blocks; card handles overflow via scroll */
.lead-note,
.lead-success-hint {
  display: block !important;
  overflow: visible !important;
  text-overflow: initial !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}


/* STEP 3.1: card auto-height until max-height, then internal scroll */
.lead-card {
  height: auto !important;
  max-height: 420px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* STEP 3.1: do not clamp note text; let card handle overflow via scroll */
.lead-note {
  display: block !important;
  overflow: visible !important;
  text-overflow: initial !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}


/* === SpeakerROI Kanban Anti-Overflow Contract === */
/* Goal: cards must never overlap neighboring columns, even in ultra-narrow layouts. */
.kanban-col {
  overflow: hidden !important; /* prevent visual overlap into next column */
}
.lead-card {
  max-width: 100% !important;
  min-width: 0 !important;     /* allow flex children to shrink */
  overflow-x: hidden !important;
  overflow-y: auto !important; /* internal scroll when over max-height */
}

.lead-main {
  min-width: 0 !important;
}

/* === SpeakerROI Kanban Hard Clip Contract === */

/* === SpeakerROI Kanban Hard Clip Contract ===
   Goal: absolutely no visual overlap between columns.
   Works even when inner elements use transforms/positioning.
*/
.kanban {
  /* ensure grid items establish their own paint boundary behavior */
  align-items: start;
}
.kanban > .kanban-col,
.kanban-col {
  position: relative !important;
  overflow: hidden !important;

  /* hard clip: prevents painting outside the element box even with transforms */
  contain: paint !important;

  /* isolate stacking context so neighbors can't draw over it */
  isolation: isolate !important;
}
.kanban-col .lead-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure kanban head doesn't steal height and body can scroll */
.kanban-col .kanban-head { flex: 0 0 auto; }
.kanban-col .kanban-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }


/* === Event page frame === */
/* This makes the kanban a real "board" area; the page stops growing vertically. */
.event-page {
  display: flex;
  flex-direction: column;
  gap: 16px;

  /* app-content has padding 24px top+bottom => 48px total */
  min-height: calc(100vh - 48px);
  height: auto;
  overflow: visible;
}

/* Let the board consume remaining height inside event page */
.event-page .kanban-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;            /* override previous calc() */
}

/* Column cards scroll inside the column */
.event-page .kanban-col {
  height: 100%;
}

.event-page .kanban-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === Event page compact header (Variant A) === */
.event-header { margin: 4px 0 10px; }
.event-title-row { display:flex; align-items:baseline; gap: 12px; flex-wrap: wrap; }
.event-back { text-decoration:none; }
.event-title { margin: 0; line-height: 1.1; }
.event-meta { margin-top: 8px; display:flex; flex-wrap: wrap; gap: 8px; line-height: 1.2; }

.meta-chip {
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

/* Collapsible cards */
.card.is-collapsible { padding: 14px 16px; }
.card-summary { cursor: pointer; list-style: none; }
.card-summary::-webkit-details-marker { display: none; }
.card-summary { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.summary-h { font-size: 18px; font-weight: 700; margin: 0; }
.summary-sub { font-size: 13px; margin-top: 3px; }
.card-body { margin-top: 12px; }

/* Slightly tighter KPI block when opened */
.kpis-compact { gap: 10px; }
.kpis-compact .kpi { padding: 10px 12px; }


/* === Report card layout (chips top-left, payments top-right, KPIs bottom) === */
.event-page #eventReportCard .report-card-inner{
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.event-page #eventReportCard .report-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-page #eventReportCard .report-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.event-page #eventReportCard .report-actions{
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.event-page #eventReportCard .kpis{
  margin-top: auto !important; /* уводим KPI к низу карточки */
}


/* === Manual lead button: top-right in header (no edge hugging) === */
.event-header{
  position: relative;
}

.event-header #openManualLeadBtn{
  position: absolute;
  top: 12px;
  right: 16px;
  margin: 0;
  z-index: 2;
}

/* On narrow screens, avoid overlap with title/actions */
@media (max-width: 720px){
  .event-header #openManualLeadBtn{
    position: static;
    display: inline-flex;
    margin-top: 12px;
  }
}

/* === Event header actions (icons) === */
.event-title-row { align-items: center; }
.event-title-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;   /* небольшой отступ от названия */
}

/* Hide the track URL input but keep it in DOM for copy logic */
#trackUrlInput {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  padding: 2px;          /* минимальная зона клика */
  font-size: 16px;
  line-height: 1;
}

.icon-btn:hover { filter: brightness(0.98); }

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-btn-compact {
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.icon-btn:hover { opacity: 0.75; }
.icon-btn:active { opacity: 0.6; }

/* === Event report compact KPIs (first-screen) === */
/* === Event report compact KPIs (first-screen) === */
/* Keep report always visible but compact to free space for kanban */
.content-app .kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.content-app .kpi {
  padding: 10px 12px;
}

.content-app .kpiLabel {
  margin-bottom: 3px;
}

@media (max-width: 1100px) {
  .content-app .kpis { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 560px) {
  .content-app .kpis { grid-template-columns: 1fr; }
}

/* FIX: unhide kanban on event page
   Safety override: some rules in this file hide .kanban-scroll (display:none / height:0).
   We must ALWAYS show the Kanban on the event page.
*/
.event-page .kanban-scroll {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* FIX: event payments should not steal kanban height
   Keep Kanban as primary workspace. Payments remain visible but cannot collapse the board. */
.event-page .event-payments {
  flex: 0 0 auto;
  max-height: 220px;
  overflow: auto;
}
.event-page .event-payments .payments-list {
  overflow: auto;
}

/* FIX: event page compact vertical geometry (kanban on first screen)
   Goal: KPI + Kanban headers visible without page scroll (Bitrix-like first screen). */
.event-page {
  gap: 10px;                 /* was 16px */
}

.event-page #eventReportCard {
  padding: 12px 14px;        /* tighter than default card */
}

.event-page #eventReportCard .kpis {
  margin-top: 8px !important;
}

.event-page .section-head {
  margin-top: 6px !important;  /* override inline margin-top:12px; until we remove it */
}

/* FIX: event page board-frame (kanban is primary scroll area)
   Goal: minimal page scroll; main scroll is inside kanban columns. */
.event-page {
  height: calc(100vh - 48px);
  overflow: hidden;
}

.event-page .kanban-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

/* === CANONICAL EVENT KANBAN OVERRIDE (do not duplicate) === */
.event-page {
  display: flex;
  flex-direction: column;
  gap: 16px;

  height: calc(100vh - 48px);
  min-height: 0;
  overflow: hidden;
}

.event-page .kanban-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;

  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.event-page .kanban {
  gap: 12px;
  align-items: stretch;

  min-height: 0;
  height: 100%;
}

.event-page .kanban-col {
  flex: 0 0 360px;

  display: flex;
  flex-direction: column;

  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.event-page .kanban-col .kanban-body {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;
}
/* === /CANONICAL EVENT KANBAN OVERRIDE === */

/* STEP 2.1: pin lead date */
/* STEP 2.1: pin lead date */
.lead-card{ position: relative; }
.lead-card .lead-date{
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
  white-space: nowrap;
}

/* STEP 2.2: lead name -2px */
/* STEP 2.2: lead name -2px */
/* STEP 2.2.1: lead name -3px */
/* STEP 2.2.1: lead name -3px total */
/* STEP 2.3: openPaymentsBtn padding */
/* STEP 2.3: openPaymentsBtn padding */
#openPaymentsBtn{
  padding: 8px 12px;
}


@font-face{
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root{


  --actions-btn-size: 28px; /* icon button box */
  --actions-rail-w: 32px;   /* slightly wider than buttons */
  --actions-rail-gap: 4px;  /* gap from card edge/content */
}

/* Reserve a right corridor so content never goes under the rail */
.lead-card .lead-body,
.lead-card .lead-main,
.lead-card .lead-content{
  padding-right: calc(var(--actions-rail-w) + var(--actions-rail-gap) + 8px);
}

/* Date stays in top-right of content, but not inside the rail */
.lead-card .lead-date{
  right: calc(var(--actions-rail-w) + var(--actions-rail-gap) + 8px);
}

.lead-card{ position: relative; }
/* Some modes wrap actions into a row; force vertical stack */
button.danger:hover { box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.22), 0 12px 32px rgba(220, 38, 38, 0.18); }
button.danger:active { transform: translateY(1px); }
button.danger:disabled { box-shadow: none; transform: none; }

button.danger.ghost {
  background: var(--card);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: none;
}
button.danger.ghost:hover { box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18), 0 10px 24px rgba(15, 23, 42, 0.08); }

.hidden { display: none !important; }


/* speakerroi: lead modal close button contrast (brand-aligned) */
#leadDetailOverlay [data-lead-modal-close="1"] {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: none;
  transition: box-shadow var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
}
#leadDetailOverlay [data-lead-modal-close="1"]:hover {
  box-shadow: var(--shadow-1);
}
#leadDetailOverlay [data-lead-modal-close="1"]:active {
  transform: translateY(1px);
}\n\n/* === Auth v3 (from scratch) === */
.auth3{
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
}

.auth3__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 680px at 20% 15%, rgba(15,23,42,0.10), rgba(0,0,0,0) 60%),
    radial-gradient(900px 560px at 85% 10%, rgba(15,23,42,0.08), rgba(0,0,0,0) 55%),
    linear-gradient(135deg, rgba(15,23,42,0.035), rgba(0,0,0,0));
  pointer-events: none;
}

.auth3__wrap{
  width: 100%;
  max-width: 980px;
  position: relative;
}

.auth3__shell{
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  padding: 22px;
}

.auth3__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.auth3__brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1;
}

.auth3__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0)),
    linear-gradient(135deg, #000, rgba(0,0,0,.65));
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.auth3__word--muted{ opacity: .7; }

.auth3__tagline{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
}

.auth3__grid{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
  align-items: stretch;
  padding: 18px 6px 6px;
}

@media (max-width: 900px){
  .auth3__header{ flex-direction: column; align-items: flex-start; }
  .auth3__tagline{ text-align: left; }
  .auth3__grid{ grid-template-columns: 1fr; }
}

.auth3__side{
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-soft);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

@media (max-width: 900px){
  .auth3__side{ min-height: unset; }
}

.auth3__h1{
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.auth3__p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.auth3__list{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.auth3__li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-soft);
}

.auth3__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 5px;
  opacity: .85;
}

.auth3__card{
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px){
  .auth3__card{ min-height: unset; }
}

.auth3__cardhead{ margin-bottom: 12px; }

.auth3__h2{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.auth3__muted{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}


.auth3__alert{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 14px;
}

.auth3__form{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.auth3__field{ display: grid; gap: 6px; }
.auth3__label{ font-size: 13px; color: var(--muted); }

.auth3__input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.96);
}

.auth3__input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.auth3__field--err .auth3__input{
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.auth3__msg{
  font-size: 13px;
  color: var(--danger);
}

/* Neutralize Chrome/Safari autofill (prevents blue/yellow fields) */
.auth3__input:-webkit-autofill,
.auth3__input:-webkit-autofill:hover,
.auth3__input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px rgba(255,255,255,.96) inset;
  border: 1px solid var(--border);
}

/* CTA */
.auth3__btn{
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: box-shadow var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), opacity var(--d-2) var(--ease-out);
}
.auth3__btn:hover{ box-shadow: var(--shadow-1); }
.auth3__btn:active{ transform: translateY(1px); opacity: .92; }
.auth3__btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18); }


.auth3__footer{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.auth3__link{
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid rgba(79, 70, 229, 0.35);
  padding-bottom: 1px;
  transition: border-color var(--d-2) var(--ease-out), opacity var(--d-2) var(--ease-out);
}

.auth3__link:hover{ border-bottom-color: rgba(79, 70, 229, 0.65); }
/* === SpeakerROI BRAND: AUTH3 LINK ACTIVE === */
.auth3__link:active{ opacity: .85; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .auth3__btn:active{ transform: none; }
}
/* === /Auth v3 === */\n

/* === Auth v3 register centering === */
/* Center the whole auth shell on /register */
body:has(main.auth3) .auth3__wrap{
  margin-left: auto;
  margin-right: auto;
}

/* On register page: visually center grid */
body:has(main.auth3) .auth3__grid{
  justify-content: center;
}

/* Narrow screens: no side bias */
@media (min-width: 901px){
  body:has(main.auth3) .auth3__grid{
    grid-template-columns: 1fr 1fr;
  }
}
/* === /Auth v3 register centering === */


/* === Auth v3 viewport centering fix === */
/* Force auth3 to align to the viewport center even inside constrained parent containers */
.auth3{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
}
/* Ensure wrap is centered */
.auth3__wrap{ margin-left: auto; margin-right: auto; }
/* === /Auth v3 viewport centering fix === */

/* === Home v1 === */
.home1{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
  position: relative;
}
.home1__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 22% 18%, rgba(79, 70, 229, 0.16), rgba(79, 70, 229, 0) 60%),
    radial-gradient(780px 480px at 82% 12%, rgba(79, 70, 229, 0.10), rgba(79, 70, 229, 0) 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  pointer-events:none;
}
.home1__hero{ padding: 34px 18px 26px; }
.home1__wrap{ width:100%; max-width: 1040px; margin: 0 auto; position: relative; }

.home1__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.home1__brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.home1__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0)),
    linear-gradient(135deg, #000, rgba(0,0,0,.65));
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.home1__word--muted{ opacity: .7; }

.home1__nav{ display:flex; gap: 14px; }
.home1__navlink{
  text-decoration:none;
  color: rgba(0,0,0,.72);
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.home1__navlink:hover{ border-bottom-color: rgba(0,0,0,.4); }

.home1__topcta{ display:flex; gap: 10px; align-items:center; }

.home1__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
  padding: 22px 10px 0;
}

@media (max-width: 980px){
  .home1__nav{ display:none; }
  .home1__grid{ grid-template-columns: 1fr; }
}

.home1__h1{
  margin: 0;
  font-size: 40px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.home1__lead{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 56ch;
}

.home1__ctas{ margin-top: 18px; display:flex; gap: 12px; flex-wrap: wrap; }
.home1__trust{ margin-top: 16px; display:flex; gap: 10px; flex-wrap: wrap; }
.home1__pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,.65);
  font-size: 13px;
}

.home1__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-decoration:none;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.75);
}
.home1__btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}
.home1__btn--ghost{
  background: var(--card-soft);
}
.home1__btn--big{ padding: 12px 16px; }

.home1__card{
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 26px 90px rgba(0,0,0,.14);
  padding: 18px;
  min-height: 360px;
}
.home1__cardhead{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.home1__kpiLabel{ color: var(--muted); font-size: 20px; }
.home1__kpiValue{ font-weight: 900; font-size: 14px; }

.home1__flow{
  margin-top: 14px;
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(0,0,0,.78);
  font-size: 13px;
}
.home1__step{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: var(--card-soft);
}
.home1__arrow{ opacity: .55; }
.home1__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background:#000;
  opacity:.85;
}

.home1__mini{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}
.home1__miniRow{
  display:flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-soft);
}
.home1__miniKey{ color: var(--muted); font-size: 13px; }
.home1__miniVal{ font-weight: 900; font-size: 13px; }

.home1__section{ padding: 26px 18px; }
.home1__section--last{ padding-bottom: 44px; }

.home1__h2{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home1__tiles{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .home1__tiles{ grid-template-columns: 1fr; } }

.home1__tile{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.home1__tileTitle{ font-weight: 900; margin-bottom: 6px; }
.home1__tileText{ color: var(--muted); font-size: 14px; line-height: 1.4; }

.home1__benefits{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 980px){ .home1__benefits{ grid-template-columns: 1fr; } }

.home1__benefit{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
}

.home1__ctaRow{ margin-top: 16px; display:flex; gap: 12px; flex-wrap: wrap; }

.home1__faq{ margin-top: 14px; display:grid; gap: 10px; }
.home1__qa{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  padding: 10px 12px;
}
.home1__q{ cursor:pointer; font-weight: 900; }
.home1__a{ margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }

@media (prefers-reduced-motion: reduce){
  .home1__btn:active{ transform: none; }
}
/* === /Home v1 === */

/* === SpeakerROI 2026-02 BRAND BASE OVERRIDES (APPEND) === */
html, body {
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:where(button, [role="button"], a, input, select, textarea) { outline: none; }
:where(button, [role="button"], a, input, select, textarea):focus-visible {
  box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* === SpeakerROI BRAND: #btnAddEvent CTA OVERRIDE === */
#btnAddEvent {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 1px solid transparent !important;
  box-shadow: var(--shadow-1) !important;
}
#btnAddEvent:hover { box-shadow: var(--glow-accent) !important; }
#btnAddEvent:active { transform: translateY(1px); }
#btnAddEvent:disabled { box-shadow: none !important; transform: none !important; }

/* === SpeakerROI BRAND: INPUT STATES (OPTIONAL) === */
.is-error input,
.is-error textarea,
.is-error select {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}
.is-error .hint { color: var(--danger); }

/* === SpeakerROI BRAND: ICON BUTTONS === */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: box-shadow var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out);
}
.icon-btn:hover {
  background: var(--card-2);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.icon-btn:active {
  transform: translateY(1px);
}

/* Compact icon buttons (if used) */
.icon-btn.is-compact {
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
}

/* Semantic accents (opt-in) */
.icon-btn.is-danger:hover {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
}
.icon-btn.is-accent:hover {
  background: rgba(79, 70, 229, 0.10);
  color: var(--accent);
}

/* === SpeakerROI FIX: REMOVE .hint FROM LEAD CARDS === */
/* Lead cards should not show generic .hint (money/status cards only) */
.lead-card .hint,
.kanban .hint {
  display: none !important;
}

/* === SpeakerROI BRAND: ALERT SEMANTICS === */
.alert.is-success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
}
.alert.is-warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.28);
}
.alert.is-info {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

/* === SpeakerROI BRAND: BUTTON SIZING NORMALIZER === */
/* One size for primary controls (do NOT touch icon/close micro-buttons) */
:root {
  --btn-h: 40px;
  --btn-px: 14px;
  --btn-fs: 14px;
  --btn-fw: 600;
}

button:not(.icon-btn):not(.modal-close):not(.pill):not(.is-compact):not([data-lead-modal-close="1"]) {
  min-height: var(--btn-h);
  padding: 10px var(--btn-px);
  font-size: var(--btn-fs);
  font-weight: var(--btn-fw);
  line-height: 1.1;
}

/* Ensure consistent sizing for known button classes */
.btn-primary,
button.ghost,
button.danger,
button.danger.ghost {
  min-height: var(--btn-h);
  font-size: var(--btn-fs);
  line-height: 1.1;
}

/* CTA Add Event: keep existing styling, but align size */
#btnAddEvent {
  min-height: var(--btn-h) !important;
  font-size: var(--btn-fs) !important;
  line-height: 1.1 !important;
}


/* === UI: interactive title link (no underline) === */
.ui-title-link,
.ui-title-link:hover,
.ui-title-link:focus,
.ui-title-link:active {
  text-decoration: none !important;
  cursor: pointer;
}

/* === UI: interactive title link hover === */
.ui-title-link {
  transition: opacity var(--d-2, 120ms) var(--ease-out, ease);
}

.ui-title-link:hover {
  opacity: 0.7;
}


/* SPEAKERROI_PATCH_ICONBTN_HOVER_ONLY v1 */
/* Goal: icon-btn is visually quiet by default; hover appears ONLY on hover; focus-visible keeps real focus-ring */
.icon-btn {
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(17,17,17,0.10) !important;
  box-shadow: var(--shadow-1) !important;
  backdrop-filter: blur(10px) !important;
  transform: translateY(-1px);
}

.icon-btn:focus-visible {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(17,17,17,0.10) !important;
  box-shadow: var(--focus-ring) !important;
  backdrop-filter: blur(10px) !important;
}

.icon-btn:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-1) !important;
}


/* SPEAKERROI_PATCH_EVENT_ACTIONS_CLICKABLE_V1 */
/* Ensure ⋮ actions are actually clickable (fix overlay/anchor intercept issues) */
.event-actions {
  position: relative;
  isolation: isolate;
  z-index: 60;
  pointer-events: auto;
}

.event-actions .js-actions-btn {
  position: relative;
  z-index: 61;
  pointer-events: auto;
}

.event-actions .actions-menu {
  position: absolute;
  z-index: 62;
  pointer-events: auto;
}

/* SPEAKERROI_PATCH_DASHBOARD_EVENT_PROGRESS_RING_V1 */
.event-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-ring {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring__svg {
  width: 38px;
  height: 38px;
  transform: rotate(-90deg);
}

.progress-ring__bg,
.progress-ring__fg {
  fill: none;
  stroke-width: 4;
}

.progress-ring__bg {
  stroke: var(--border);
  opacity: 0.65;
}

.progress-ring__fg {
  --c: 87.9646;
  stroke: hsl(var(--h) 90% 45%);
  stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: calc(var(--c) * (1 - (var(--p) / 100)));
  transition: stroke-dashoffset 220ms ease, stroke 220ms ease;
}

.progress-ring__label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--text);
}


/* SPEAKERROI_PATCH_DASHBOARD_MENU_CLICK_FIX_V2 */
/* Keep ⋮ clickable, but do NOT raise all action buttons above the opened menu.
   Only the currently opened menu row gets the top z-index. */

.listitem {
  position: relative;
}

.ui-title-link {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline !important;
}

/* baseline: clickable but not 'above everything' */
.event-actions {
  position: relative !important;
  z-index: 80 !important;
  pointer-events: auto !important;
}

.event-actions * {
  pointer-events: auto !important;
}

/* when a menu is open, raise ONLY that row */
.event-actions.is-open {
  z-index: 10050 !important;
}

/* ensure menu itself is above its own trigger and neighbors */
.event-actions.is-open .actions-menu {
  z-index: 10051 !important;
}


/* SPEAKERROI_PATCH_ACTIONS_MENU_UI_V1 */
/* Actions menu UI — unified items (a + button) per brandbook (light, surface, border, soft shadow) */
.actions-menu {
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border-2, rgba(15,23,42,0.10));
  border-radius: 12px;
  box-shadow: var(--shadow-2, 0 12px 30px rgba(15,23,42,0.10));
  padding: 6px;
}

a.actions-item,
button.actions-item {
  width: 100%;
  display: flex;
  align-items: center;

  padding: 10px 10px;
  border-radius: 10px;

  background: transparent;
  border: none;

  color: var(--text-2, #0F172A);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;

  cursor: pointer;
}

a.actions-item:visited {
  color: var(--text-2, #0F172A);
}

a.actions-item:hover,
button.actions-item:hover {
  background: var(--card-2, #F1F3F9);
}

a.actions-item:focus-visible,
button.actions-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(79,70,229,0.20));
}

a.actions-item + a.actions-item,
a.actions-item + button.actions-item,
button.actions-item + a.actions-item,
button.actions-item + button.actions-item {
  margin-top: 2px;
}



/* Actions menu: danger item */
.actions-item--danger {
  color: rgba(220, 38, 38, 0.95) !important;
}

.actions-item--danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* SPEAKERROI_PATCH_ACTIONS_MENU_VIEWPORT_V1 */
/* Prevent menu from breaking page layout */
.actions-menu {
  max-width: min(240px, calc(100vw - 16px));
  box-sizing: border-box;
}

.event-actions {
  position: relative;
}

/* === SpeakerROI: Dashboard info icon + tooltip (SAFE LOCAL ADDON) === */

.info-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  user-select:none;
}

.has-tip[data-tooltip]{
  position: relative;
}

.has-tip[data-tooltip]::after{
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: 100%;
  z-index: 50;

  width: 280px;
  min-width: 280px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;

  padding: 10px 12px;
  border-radius: 10px;

  background: #111;
  color: #fff;

  font-size: 13px;
  line-height: 1.35;
  white-space: pre-line;

  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease-in-out;
}

.has-tip[data-tooltip]:hover::after{
  opacity: 1;
}

/* CANONICAL: Lead rail (scoped) */

/* CONTRACT: lead-rail
   - Используется ТОЛЬКО внутри .lead-card
   - Отвечает ТОЛЬКО за layout панели действий
   - НЕ участвует в document flow
   - Ширина задаётся централизованно через --actions-rail-w
   - ЗАПРЕЩЕНО:
     • добавлять flex-grow / width: auto
     • выносить за пределы lead-card
     • использовать для бизнес-логики
*/

/* UX: lead-rail buttons interaction (scoped) */
.lead-card .lead-rail .icon-btn {
  cursor: pointer;
  touch-action: manipulation;
}

/* Рельс НЕ должен выглядеть кликабельным сам по себе */
.lead-card .lead-rail {
  cursor: default;
}


.lead-card .lead-rail{
  position: absolute;
  right: var(--actions-rail-gap);
  top: var(--actions-rail-gap);
  bottom: var(--actions-rail-gap);
  width: var(--actions-rail-w);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;

  padding: 2px 0 0 0;
  margin: 0;
}
/* Force compact actions size inside lead rail (26x26) */
.lead-card .lead-rail .icon-btn{
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
}

/* Compact hover for actions rail: keep original feel, but smaller footprint */
.lead-card .lead-rail .icon-btn{
  overflow: hidden;
}

.lead-card .lead-rail .icon-btn:hover,
.lead-card .lead-rail .icon-btn:active,
.lead-card .lead-rail .icon-btn:focus-visible{
  transform: none;
  outline: none;

  /* small compact feedback without external growth */
  background-color: rgba(0,0,0,0.04);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}


.lead-card .lead-rail > *{
  margin: 0;
}


.lead-card .lead-rail > form,
.lead-card .lead-rail > a,
.lead-card .lead-rail > button,
.lead-card .lead-rail > label{
  display: flex;
  justify-content: center;
  width: 100%;
}

.lead-card .lead-rail form{
  display: flex;
  justify-content: center;
  width: 100%;
}



/* CONTRACT: lead-rail button shape
   - Каноническая форма кнопки: border-radius = 10px
   - Менять радиус ТОЛЬКО осознанным UX-решением
   - Не подгонять под вкус / соседние компоненты
*/
/* CANONICAL: Lead rail buttons */
.lead-card .lead-rail .icon-btn,
.lead-card .lead-rail label.icon-btn,
.lead-card .lead-rail button.icon-btn,
.lead-card .lead-rail a.icon-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--actions-btn-size);
  height: var(--actions-btn-size);
  padding: 0;
  border-radius: 7px;
  box-sizing: border-box;
  line-height: 1;
}

/* Rail safety: prevent hover enlargement from overflowing compact cards */
.lead-card .lead-rail .icon-btn:hover,
.lead-card .lead-rail .icon-btn:active{
  transform: none;
}

/* CANONICAL: Danger buttons */
/* Purpose: destructive actions must be visually red and never inherit primary/neutral button styles */
.btn.danger,
button.btn.danger,
a.btn.danger {
  background: var(--danger, #E11D48);
  border-color: var(--danger, #E11D48);
  color: #fff;
}

.btn.danger:hover,
button.btn.danger:hover,
a.btn.danger:hover {
  filter: brightness(0.95);
}

.btn.danger:active,
button.btn.danger:active,
a.btn.danger:active {
  transform: translateY(1px);
}



/* === Lead DnD === */
/* Kanban empty-state: hide immediately when a card exists (no reload) */
.kanban-body:has(.lead-card) .kanban-empty {
  display: none !important;
}

body.lead-dnd-dragging .kanban-col:has(.kanban-body.lead-dnd-drop-forbidden) .kanban-head {
  opacity: 0.35;
}

body.lead-dnd-dragging .kanban-col:has(.kanban-body.lead-dnd-drop-forbidden) .kanban-head .pill {
  opacity: 0.40;
}

.kanban-body.lead-dnd-drop-forbidden.lead-dnd-drop-reject {
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.14) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .kanban-body.lead-dnd-drop-forbidden.lead-dnd-drop-reject {
    animation: leadDndDropReject 420ms ease-out;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0);
  }
}


@keyframes leadDndDropReject {
  0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0); background: rgba(220, 38, 38, 0.10); }
  25%  { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18); background: rgba(220, 38, 38, 0.14); }
  55%  { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.12); background: rgba(220, 38, 38, 0.13); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0); background: rgba(220, 38, 38, 0.10); }
}
body.lead-dnd-dragging .kanban-body.lead-dnd-drop-forbidden {
  cursor: not-allowed !important;
  background: rgba(220, 38, 38, 0.10) !important;
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.lead-dnd-dragging) .lead-card {
    transition: transform 140ms ease-out;
  }
}

body.lead-dnd-dragging .kanban-body:hover {
  outline: 2px solid rgba(79, 70, 229, 0.30);
  outline-offset: -2px;
  background: rgba(79, 70, 229, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
  body.lead-dnd-dragging .kanban-body {
    transition: outline 120ms ease-out, background 120ms ease-out;
  }
}

body.lead-dnd-armed .lead-card:hover,
body.lead-dnd-armed .lead-card:active,
body.lead-dnd-dragging .lead-card:hover,
body.lead-dnd-dragging .lead-card:active {
  transform: none !important;
}

body.lead-dnd-dragging { cursor: grabbing; }

/* оригинал прячем, чтобы не было "двойника" */
.lead-dnd-origin-hidden { visibility: hidden; }

/* ghost должен быть поверх ВСЕГО и не ловить клики */
.lead-dnd-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  pointer-events: none;

  /* ощущение "контроля": чуть меньше прозрачности + тень + лёгкое размытие */
  opacity: 0.96;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.22));
  border-radius: 14px;

  /* производительность */
  will-change: transform;
}

/* placeholder удерживает место и снижает "прыжки" списка */
.lead-dnd-placeholder {
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
}

/* === Landing v4 (template: home.html) — isolated classes (.l4*) === */
.l4 {
  background: var(--bg);
  color: var(--text);
}

.l4-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.l4-hero {
  padding: 56px 0 28px;
}

.l4-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.l4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.l4-h1 {
  margin: 14px 0 10px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.l4-h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.l4-h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
}

.l4-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.l4-lead p {
  margin: 0 0 10px;
}

.l4-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.l4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
  box-shadow: var(--shadow-1);
}

.l4-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.l4-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 0 0 1px rgba(79,70,229,.22), 0 10px 28px rgba(79,70,229,.18);
}

.l4-btn--ghost {
  background: var(--surface-1);
}

.l4-card {
  border-radius: var(--r-xl);
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  padding: 18px 18px 16px;
}

.l4-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.l4-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.l4-section {
  padding: 34px 0;
}

.l4-section--last {
  padding: 42px 0 64px;
}

.l4-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.l4-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.l4-stack {
  display: grid;
  gap: 16px;
}

.l4-panel {
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  padding: 18px;
}

.l4-panel--accent {
  border-color: rgba(79,70,229,.28);
  box-shadow: 0 0 0 1px rgba(79,70,229,.16), var(--shadow-1);
}

.l4-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.l4-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.l4-list li {
  margin: 0 0 8px;
}

.l4-list--compact li {
  margin: 0 0 6px;
}

.l4-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--text);
  font-weight: 650;
}

.l4-chain span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px;
}

.l4-arrow {
  background: transparent;
  border: none;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.l4-kpi {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.l4-kpi li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.l4-kpi span {
  color: var(--muted);
}

.l4-kpi b {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--text);
}

.l4-spacer {
  height: 10px;
}

.l4-mt {
  margin-top: 26px;
}

.l4-final {
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(79,70,229,.10), rgba(255,255,255,0));
  border: 1px solid rgba(79,70,229,.20);
  box-shadow: var(--shadow-1);
  padding: 22px;
}

.l4-final__pill {
  display: inline-flex;
  margin: 10px 0 14px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid rgba(79,70,229,.22);
  color: var(--text);
  font-weight: 650;
}

@media (max-width: 980px) {
  .l4-hero__grid {
    grid-template-columns: 1fr;
  }
  .l4-grid3 {
    grid-template-columns: 1fr;
  }
  .l4-grid2 {
    grid-template-columns: 1fr;
  }
  .l4-h1 {
    font-size: 34px;
    line-height: 42px;
  }
  .l4-h2 {
    font-size: 28px;
    line-height: 36px;
  }
}

/* === SpeakerROI Landing (sr-*) — isolated styles === */
.sr-landing { background: var(--bg, #ffffff); color: var(--text, #0f172a); }
.sr-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-block { padding: 44px 0; }
.sr-hero { padding: 64px 0 44px; }
.sr-hero__inner { max-width: 780px; }

.sr-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  background: var(--surface-2, rgba(15, 23, 42, 0.03));
  color: var(--muted, rgba(15, 23, 42, 0.65));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sr-h1 { margin: 16px 0 10px; font-size: 40px; line-height: 48px; font-weight: 750; letter-spacing: -0.02em; }
.sr-h2 { margin: 0 0 14px; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; }

.sr-sub { margin: 0 0 10px; color: var(--muted, rgba(15, 23, 42, 0.65)); font-size: 16px; line-height: 24px; }
.sr-text { margin: 0; color: var(--muted, rgba(15, 23, 42, 0.65)); font-size: 16px; line-height: 24px; }

.sr-grid { display: grid; gap: 16px; }
.sr-grid--2 { grid-template-columns: 1fr 1fr; }
.sr-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.sr-card {
  border-radius: var(--r-xl, 18px);
  background: var(--surface-1, #ffffff);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  box-shadow: var(--shadow-1, 0 10px 30px rgba(15, 23, 42, 0.06));
  padding: 18px;
}

.sr-card__title { margin: 0 0 10px; font-size: 18px; line-height: 24px; font-weight: 740; color: var(--text, #0f172a); }

.sr-card--accent {
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.10), var(--shadow-1, 0 10px 30px rgba(15, 23, 42, 0.06));
}

.sr-list { margin: 0; padding-left: 18px; color: var(--muted, rgba(15, 23, 42, 0.65)); font-size: 16px; line-height: 24px; }
.sr-list li { margin: 0 0 8px; }

.sr-chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sr-chip {
  padding: 8px 10px;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  background: var(--surface-2, rgba(15, 23, 42, 0.03));
  font-weight: 800;
  color: var(--text, #0f172a);
}
.sr-chain__arrow { color: var(--muted, rgba(15, 23, 42, 0.55)); font-weight: 900; }

.sr-mini { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sr-mini__pill {
  padding: 8px 12px;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  background: var(--surface-2, rgba(15, 23, 42, 0.03));
  font-weight: 850;
}
.sr-mini__arrow { color: var(--muted, rgba(15, 23, 42, 0.55)); font-weight: 900; }

.sr-kpi { margin-top: 12px; display: grid; gap: 10px; }
.sr-kpi__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-lg, 16px);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  background: var(--surface-2, rgba(15, 23, 42, 0.03));
}
.sr-kpi__row span { color: var(--muted, rgba(15, 23, 42, 0.65)); }
.sr-kpi__row b { color: var(--text, #0f172a); font-weight: 900; font-variant-numeric: tabular-nums; }

.sr-final { padding: 56px 0 76px; }

.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  margin-top: 14px;
  border-radius: var(--r-md, 12px);
  text-decoration: none;
  font-weight: 900;
  color: #ffffff;
  background: var(--accent, #4f46e5);
  border: 1px solid rgba(79, 70, 229, 0.28);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.sr-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(79, 70, 229, 0.22); }

@media (max-width: 980px) {
  .sr-grid--2 { grid-template-columns: 1fr; }
  .sr-grid--3 { grid-template-columns: 1fr; }
  .sr-h1 { font-size: 40px; line-height: 48px; }
  .sr-h2 { font-size: 32px; line-height: 40px; }
}


SPEAKERROI_HOME1_BRAND_V1

.home1{
  position: relative;
  min-height: 100vh;
}

.home1__hero{
  position: relative;
  padding: 28px 0 64px;
}

.home1__wrap{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.home1__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0 22px;
}

.home1__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home1__mark{
  width: 34px;
  height: 34px;
  display: block;
}


.home1__word{
  font-size: 18px;
  line-height: 1;
}

.home1__word--muted{
  opacity: .72;
}

.home1__nav{
  display:flex;
  align-items:center;
  gap: 12px;
}

.home1__navlink{
  color: var(--text-2);
  text-decoration:none;
  font-weight: 800;
  padding: 10px 10px;
  border-radius: 12px;
}

.home1__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  padding-top: 26px;
}

.home1__copy{
  max-width: 560px;
}

.home1__h1{
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.home1__sub{
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 22px;
}

.home1__cta{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 0 0 16px;
}

.home1__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 900;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}

.home1__btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.26);
}

.home1__btn--big{
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}

.home1__note{
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

.home1__trust{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}

.home1__pill{
  border: 1px solid var(--border);
  background: var(--card-soft);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}

.home1__proof{
  display:flex;
  justify-content:flex-end;
}

.home1__proofShell{
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 22px 60px rgba(15,23,42,0.08);
  overflow:hidden;
}

.home1__proofTop{
  padding: 18px 18px 0;
}

.home1__proofTitle{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home1__proofMeta{
  margin-top: 4px;
  color: var(--text-2);
  font-weight: 800;
  font-size: 13px;
}

.home1__proofGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 18px 10px;
}

.home1__proofCol{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.75);
}

.home1__proofHead{
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.home1__proofRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(0,0,0,.06);
  color: var(--text);
  font-weight: 800;
}

.home1__proofRow:first-of-type{
  border-top: 0;
}

.home1__proofRow span{
  color: var(--text-2);
  font-weight: 800;
}

.home1__proofBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.home1__roi{
  display:flex;
  align-items:baseline;
  gap: 8px;
}

.home1__roiLabel{
  color: var(--text-2);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home1__roiVal{
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.home1__proofHint{
  color: var(--text-2);
  font-weight: 800;
  font-size: 20px;
  text-align: right;
  max-width: 220px;
}

@media (max-width: 980px){
  .home1__grid{
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 16px;
  }
  .home1__copy{
    max-width: 100%;
  }
  .home1__h1{
    font-size: 40px;
  }
  .home1__proof{
    justify-content:flex-start;
  }
}

.home1__grid{
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
}

.home1__copy{
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.home1__cta{
  justify-content: center;
}

.home1__trust{
  justify-content: center;
}


/* SPEAKERROI_HOME1_APP_CONTENT_PADDING_FIX_V1 */
/* Root cause: .app-content adds 24px top padding; hero background lives inside main.home1.
   For landing only, remove layout padding so the hero background is continuous from top. */
body:has(main.home1) .app-content{
  padding: 0;
}
body:has(main.home1) .content-public{
  max-width: none;
}


/* SPEAKERROI_PROGRESS_RING_TOOLTIP_CANONICAL_V2 */
/* SPEAKERROI_PROGRESS_RING_TOOLTIP_STACKING_FIX_V1 */
/* SPEAKERROI_PROGRESS_RING_TOOLTIP_STACKING_FIX_V2 */
/* Raise the whole row above neighbors ONLY when hovering the ring hit-zone.
   This fixes tooltip being hidden by other list items due to stacking contexts. */
.listitem:has(.progress-hit:hover) {
  z-index: 6000;
}

/* If the card creates a clipping/stacking boundary, allow overflow for the activities card only. */
.card:has(> .list) {
  overflow: visible;
}

.list {
  overflow: visible;
}

.listitem {
  overflow: visible;
  position: relative;
}

.progress-ring {
  z-index: 1;
}

.progress-ring:hover {
  z-index: 5000;
}

.progress-ring {
  position: relative;
}

.progress-hit {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: help;
}

.progress-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--text);
  pointer-events: none;
}

.progress-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 160px;
  padding: 8px 10px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease;
  z-index: 3000;
  white-space: nowrap;
}

.progress-tooltip__money {
  margin-top: 6px;
  font-weight: 700;
  font-size: 13px;
}

.progress-hit:hover + .progress-tooltip {
  opacity: 1;
  visibility: visible;
}




/* SPEAKERROI_TOOLTIP_OVERFLOW_ROOTFIX_V1 */
/* Root-cause fix: tooltip is rendered outside the row (above), so parent containers must not clip it. */
.card {
  overflow: visible !important;
}


/* SPEAKERROI_PROGRESS_RING_TOOLTIP_STACKING_FIX_V3 */
/* Root-cause: tooltips that render upward get covered by previous list rows due to paint order.
   Fix: raise the entire hovered row above its neighbors. */
.listitem {
  position: relative;
}

.listitem:hover {
  z-index: 7000;
}

.home1__brand{
  display: flex;
  align-items: center;
}

.home1__logo{
  width: 240px;
  height: auto;
  display: block;
}

/* Parasigma logo — auth pages */
.auth3__logo{
  width: 240px;
  height: auto;
  display: block;
}

.kanban-head .pill {
  font-size: 13px;
}

.kanban-head span.pill {
  font-size: 13px;
}

.kanban-head .count {
  font-size: 13px;
}
