@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #E5E7EB;
  min-height: 100vh;
}

/* ===== OVERLAY ===== */
.lc-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: lc-fade-in 0.3s ease;
}
@keyframes lc-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ===== MODAL ===== */
.lc-modal {
  width: 90%; max-width: 1400px; height: 85vh;
  background: #FFFFFF; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: lc-slide-up 0.3s ease;
}
@keyframes lc-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TOP BAR ===== */
.lc-top-bar {
  height: 48px; min-height: 48px;
  background: #FFFFFF;
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.lc-back-btn {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; background: none; border: none;
  color: #374151; font-family: inherit;
}
.lc-back-btn svg { width: 18px; height: 18px; stroke: #6B7280; }
.lc-back-btn span { font-size: 13px; color: #6B7280; }
.lc-back-btn:hover span { color: #374151; }

.lc-lead-id { font-size: 13px; font-weight: 500; color: #9CA3AF; margin-left: 6px; }
.lc-lead-name { font-size: 18px; font-weight: 700; color: #111827; margin-left: 10px; letter-spacing: -0.01em; }

/* Commission badge — lighter, no gradient/pulse */
.lc-commission-badge {
  display: flex; align-items: center; gap: 6px;
  margin-left: 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 4px 10px;
}

.lc-commission-badge .lc-cb-icon { font-size: 12px; opacity: 0.9; }
.lc-commission-badge .lc-cb-sum {
  font-weight: 600; font-size: 13px; color: #047857;
}
.lc-commission-badge .lc-cb-pct {
  background: rgba(4,120,87,0.12); border-radius: 4px;
  padding: 2px 5px; font-size: 10px; color: #047857; font-weight: 600;
}

.lc-top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lc-top-right .lc-responsible { font-size: 12px; color: #9CA3AF; font-weight: 500; }
.lc-responsible-clickable { cursor: pointer; text-decoration: none; }
.lc-responsible-clickable:hover { color: #4B5563; }

/* Agent picker popup */
.agent-picker-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
/* Один скролл — в списке, а не в .crm-modal-body (иначе колесо уходит в «внешний» скролл и кажется, что не крутится) */
#agent-picker-overlay .crm-modal-body.agent-picker-body {
  overflow: hidden !important;
  flex: 1 1 auto;
  min-height: 0;
}
.agent-picker-search {
  width: 100%; padding: 10px 14px; border: 1px solid var(--bd, #E5E7EB); border-radius: 10px;
  font-size: 14px; color: var(--tx, #1e293b); background: #fff;
  flex-shrink: 0;
}
.agent-picker-search::placeholder { color: #9CA3AF; }
.agent-picker-search:focus { outline: none; border-color: rgba(108,92,231,.5); box-shadow: 0 0 0 2px rgba(108,92,231,.15); }
.agent-picker-list-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  max-height: min(280px, 45vh);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
.agent-picker-list-wrap::-webkit-scrollbar {
  width: 8px;
}
.agent-picker-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}
.agent-picker-list-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}
.agent-picker-loading { padding: 16px; text-align: center; color: #6B7280; font-size: 14px; }
.agent-picker-empty { padding: 16px; text-align: center; color: #6B7280; font-size: 14px; }
.agent-picker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(108,92,231,.2); margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(250,245,255,.92) 0%, rgba(243,232,255,.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 1px 2px rgba(15,23,42,.05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s cubic-bezier(0.32,0.72,0,1), background .2s cubic-bezier(0.32,0.72,0,1), transform .2s cubic-bezier(0.32,0.72,0,1), box-shadow .2s cubic-bezier(0.32,0.72,0,1);
}
.agent-picker-row:hover {
  border-color: rgba(108,92,231,.32);
  background: linear-gradient(180deg, rgba(245,243,255,.95) 0%, rgba(237,233,254,.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), inset 0 -1px 2px rgba(108,92,231,.12), 0 3px 10px rgba(108,92,231,.12);
  transform: translateY(-1px);
}
.agent-picker-row.active {
  border-color: rgba(108,92,231,.45);
  background: linear-gradient(180deg, rgba(237,233,254,.95) 0%, rgba(221,214,254,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 3px rgba(108,92,231,.18), 0 0 0 3px rgba(108,92,231,.15);
  transform: scale(.97);
}
.agent-picker-name { font-size: 14px; font-weight: 600; color: var(--tx, #1e293b); }
.agent-avatar-initials {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #6366f1);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Agent card popup */
.agent-card-inner { text-align: center; padding: 12px 0; }
.agent-card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 12px; display: block; object-fit: cover;
}
.agent-card-inner .agent-avatar-initials { width: 64px; height: 64px; font-size: 22px; margin: 0 auto 12px; }
.agent-card-name { font-size: 18px; font-weight: 700; color: var(--tx, #1e293b); margin-bottom: 4px; }
.agent-card-role { font-size: 13px; color: var(--t2, #64748b); margin-bottom: 14px; }
.agent-card-row { font-size: 13px; color: var(--t2); margin-bottom: 8px; }

#agent-picker-overlay .crm-modal-footer{
  gap: 12px;
}

/* Secondary controls — smaller, subtle */
.lc-icon-btn {
  background: none; border: none; cursor: pointer;
  color: #9CA3AF; display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.lc-icon-btn svg { width: 16px; height: 16px; }
.lc-icon-btn:hover { color: #6B7280; background: #F3F4F6; }

/* ===== ЭТАПЫ (модалка) — стрелки; buildLeadDealStageStripHtml + funnelStageModalArrowStyle */
#lcOverlay .lc-modal-stage-wrap.brd-stage-strip-wrap {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* Десктоп / планшет карточки: узкие мягкие chevron + стеклянный объём (только ПК) */
@media (min-width: 769px) {
  #lcModalStageStrip.brd-stage-strip--card-arrows {
    --lc-chev-d: 7px; /* глубина «носа» стрелки */
    --lc-chev-notch: 6px; /* мягкий вырез слева */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    min-width: min-content;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 7px 10px 9px;
    isolation: isolate;
    background:
      radial-gradient(120% 180% at 50% -20%, rgba(255, 255, 255, 0.55), transparent 55%),
      linear-gradient(180deg, #f5f8fb 0%, #e9eef5 52%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow {
    flex: 1 1 0;
    min-width: 42px;
    max-width: 148px;
    min-height: 32px;
    margin-left: -5px;
    padding: 5px 6px 5px 13px;
    border-radius: 0 !important;
    box-sizing: border-box;
    /* Мягкий нос: несколько точек вместо одного острия */
    clip-path: polygon(
      0 0,
      calc(100% - var(--lc-chev-d)) 0,
      calc(100% - 1px) 38%,
      100% 50%,
      calc(100% - 1px) 62%,
      calc(100% - var(--lc-chev-d)) 100%,
      0 100%,
      var(--lc-chev-notch) 58%,
      calc(var(--lc-chev-notch) - 1px) 52%,
      calc(var(--lc-chev-notch) - 1px) 48%,
      var(--lc-chev-notch) 42%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    border: none;
    -webkit-backdrop-filter: blur(10px) saturate(1.18);
    backdrop-filter: blur(10px) saturate(1.18);
    filter:
      drop-shadow(0 2px 4px rgba(15, 23, 42, 0.07))
      drop-shadow(0 6px 16px rgba(15, 23, 42, 0.1))
      drop-shadow(0 0 0 0.5px rgba(255, 255, 255, 0.45));
  }
  /* Левее в полосе — выше z-index: «нос» предыдущего сегмента не перекрывается следующим (margin-left отрицательный). */
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(1) { z-index: 40; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(2) { z-index: 39; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(3) { z-index: 38; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(4) { z-index: 37; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(5) { z-index: 36; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(6) { z-index: 35; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(7) { z-index: 34; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(8) { z-index: 33; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(9) { z-index: 32; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(10) { z-index: 31; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(11) { z-index: 30; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(12) { z-index: 29; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(13) { z-index: 28; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(14) { z-index: 27; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(15) { z-index: 26; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(16) { z-index: 25; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(17) { z-index: 24; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(18) { z-index: 23; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    pointer-events: none;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%, rgba(15, 23, 42, 0.06) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      inset 0 -1px 0 rgba(15, 23, 42, 0.1);
    opacity: 0.95;
    z-index: 1;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive::after {
    display: none;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive {
    background-image: none !important;
    border: none !important;
    background-color: rgba(230, 238, 244, 0.72) !important;
    box-shadow: none !important;
    filter:
      drop-shadow(0 2px 3px rgba(15, 23, 42, 0.06))
      drop-shadow(0 5px 14px rgba(15, 23, 42, 0.08))
      drop-shadow(0 0 0 0.5px rgba(255, 255, 255, 0.38));
  }
  /* Обводка как у .lc-btn-call (desktop): border + слои тени; здесь — drop-shadow под clip-path */
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on {
    z-index: 55 !important; /* выше :nth-child(*), иначе активный не поверх соседей */
    background-image: none !important;
    border: none !important;
    background-color: var(--lc-stage, #7ccdda) !important;
    box-shadow: none !important;
    filter:
      drop-shadow(0 3px 8px color-mix(in srgb, var(--lc-stage, #22c55e) 22%, transparent))
      drop-shadow(0 0 0 1px color-mix(in srgb, var(--lc-stage, #22c55e) 8%, transparent))
      drop-shadow(0 0 0.65px color-mix(in srgb, var(--lc-stage, #22c55e) 35%, transparent))
      drop-shadow(0 3px 6px rgba(15, 23, 42, 0.08))
      drop-shadow(0 10px 22px rgba(15, 23, 42, 0.12))
      drop-shadow(0 0 0 0.5px rgba(255, 255, 255, 0.55));
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active::before,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on::before {
    background:
      linear-gradient(125deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.12) 36%, transparent 50%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, transparent 40%, rgba(15, 23, 42, 0.07) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 -1px 0 rgba(15, 23, 42, 0.08);
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:first-child {
    margin-left: 0;
    clip-path: polygon(
      0 0,
      calc(100% - var(--lc-chev-d)) 0,
      calc(100% - 1px) 38%,
      100% 50%,
      calc(100% - 1px) 62%,
      calc(100% - var(--lc-chev-d)) 100%,
      0 100%
    );
    padding-left: 10px;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:first-child::before {
    clip-path: polygon(
      0 0,
      calc(100% - var(--lc-chev-d)) 0,
      calc(100% - 1px) 38%,
      100% 50%,
      calc(100% - 1px) 62%,
      calc(100% - var(--lc-chev-d)) 100%,
      0 100%
    );
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg-txt {
    position: relative;
    z-index: 2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    max-width: 100%;
    color: inherit;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active:hover,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on:hover {
    transform: scale(1.022);
    z-index: 62 !important;
    filter:
      drop-shadow(0 5px 14px color-mix(in srgb, var(--lc-stage, #22c55e) 32%, transparent))
      drop-shadow(0 0 12px color-mix(in srgb, var(--lc-stage, #22c55e) 15%, transparent))
      drop-shadow(0 0 0.65px color-mix(in srgb, var(--lc-stage, #22c55e) 40%, transparent))
      drop-shadow(0 4px 8px rgba(15, 23, 42, 0.1))
      drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14))
      drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.65));
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive:hover {
    transform: scale(1.016);
    z-index: 62 !important;
    filter:
      drop-shadow(0 4px 8px rgba(15, 23, 42, 0.08))
      drop-shadow(0 10px 20px rgba(15, 23, 42, 0.1))
      drop-shadow(0 0 0 1px rgba(255, 255, 255, 0.5))
      brightness(1.03);
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active:active,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--on:active {
    transform: scale(1.012);
    transition-duration: 0.08s;
    filter:
      drop-shadow(0 3px 8px color-mix(in srgb, var(--lc-stage, #22c55e) 22%, transparent))
      drop-shadow(0 0 0 1px color-mix(in srgb, var(--lc-stage, #22c55e) 8%, transparent))
      drop-shadow(0 0 0.65px color-mix(in srgb, var(--lc-stage, #22c55e) 35%, transparent))
      drop-shadow(0 2px 5px rgba(15, 23, 42, 0.1))
      drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12))
      drop-shadow(0 0 0 0.5px rgba(255, 255, 255, 0.45))
      brightness(1.04) saturate(1.06);
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive:active {
    transform: scale(1.01);
    transition-duration: 0.08s;
    filter:
      drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08))
      drop-shadow(0 5px 12px rgba(15, 23, 42, 0.09))
      drop-shadow(0 0 0 0.5px rgba(255, 255, 255, 0.4));
  }
  @supports (background: color-mix(in srgb, red, blue)) {
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive {
      background-image: none !important;
      background-color: color-mix(in srgb, var(--lc-stage, #8dbbc7) 14%, rgba(240, 245, 248, 0.78)) !important;
    }
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active,
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on {
      background-image: none !important;
      background-color: color-mix(in srgb, var(--lc-stage, #7ccdda) 72%, rgba(255, 255, 255, 0.42)) !important;
    }
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:focus-visible {
    outline: 2px solid var(--lc-stage, var(--ac, #6c5ce7));
    outline-offset: 2px;
    z-index: 68 !important;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--drop-target {
    transform: scale(1.05) !important;
    z-index: 72 !important;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.22)) drop-shadow(0 0 0 2.5px var(--lc-stage, var(--ac)))
      drop-shadow(0 0 0 1px var(--lc-bevel, var(--lc-stage))) !important;
    box-shadow:
      inset 0 -8px 0 0 var(--lc-stage, var(--ac)),
      0 10px 26px rgba(15, 23, 42, 0.14) !important;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  #lcModalStageStrip.brd-stage-strip--card-arrows {
    padding: 7px 8px 9px;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow {
    min-width: 40px;
    min-height: 34px;
    padding: 5px 5px 5px 12px;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:first-child {
    padding-left: 9px;
  }
}

/* Мобильная полноэкранная карточка (≤768px): те же chevron-стрелки, без лишних бликов */
@media (max-width: 768px) {
  #lcModalStageStrip.brd-stage-strip--card-arrows {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    min-width: min-content;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 10px;
    isolation: auto;
    background: #eef2f7;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow::before,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive::after {
    display: none !important;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow {
    flex: 1 1 0;
    min-width: 52px;
    max-width: 220px;
    min-height: 44px;
    margin-left: -6px;
    padding: 8px 8px 8px 17px;
    border-radius: 0 !important;
    box-sizing: border-box;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: opacity 0.15s ease, background 0.15s ease;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    filter: none !important;
    box-shadow: none !important;
    border: none;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(1) { z-index: 40; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(2) { z-index: 39; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(3) { z-index: 38; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(4) { z-index: 37; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(5) { z-index: 36; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(6) { z-index: 35; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(7) { z-index: 34; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(8) { z-index: 33; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(9) { z-index: 32; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(10) { z-index: 31; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(11) { z-index: 30; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(12) { z-index: 29; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(13) { z-index: 28; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(14) { z-index: 27; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(15) { z-index: 26; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(16) { z-index: 25; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(17) { z-index: 24; }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:nth-child(18) { z-index: 23; }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding-left: 12px;
  }

  /* Сброс градиентов из inline style; обводка как у .lc-btn-call (border + box-shadow + inset) */
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on {
    z-index: 55 !important;
    background-color: var(--lc-stage, #7ccdda) !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--lc-stage, #22c55e) 35%, transparent) !important;
    box-shadow:
      0 3px 8px color-mix(in srgb, var(--lc-stage, #22c55e) 22%, transparent),
      0 0 0 1px color-mix(in srgb, var(--lc-stage, #22c55e) 8%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive {
    background-color: #e8edf3 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  @supports (background: color-mix(in srgb, red, blue)) {
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive {
      background-color: color-mix(in srgb, var(--lc-stage, #8dbbc7) 18%, #f0f5f8) !important;
      background-image: none !important;
    }
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active,
    #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on {
      background-color: color-mix(in srgb, var(--lc-stage, #7ccdda) 68%, #ffffff) !important;
    }
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active:hover,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on:hover {
    z-index: 62 !important;
    transform: none;
    filter: none !important;
    box-shadow:
      0 5px 14px color-mix(in srgb, var(--lc-stage, #22c55e) 32%, transparent),
      0 0 12px color-mix(in srgb, var(--lc-stage, #22c55e) 15%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive:hover {
    z-index: 62 !important;
    transform: none;
    filter: none !important;
  }
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active:active,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on:active,
  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive:active {
    transform: none;
    filter: none !important;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-inactive:hover {
    opacity: 0.92;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg-txt {
    position: relative;
    z-index: 2;
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    max-width: 100%;
    color: inherit;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:focus-visible {
    outline: 2px solid var(--lc-stage, var(--ac, #6c5ce7));
    outline-offset: 2px;
    z-index: 68 !important;
  }

  #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--drop-target {
    z-index: 72 !important;
    box-shadow: inset 0 -3px 0 0 var(--lc-stage, var(--ac)) !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== STEPPER ===== — card-like steps, one line, centered */
.lc-stepper {
  display: flex; width: 100%; height: 40px; min-height: 40px;
  flex-shrink: 0; border-bottom: 1px solid #E5E7EB;
  background: #FAFAFA; gap: 8px; padding: 0 8px; align-items: center;
}
.lc-step {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; position: relative;
  height: 40px; padding: 0 16px; border-radius: 8px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  white-space: nowrap; text-align: center; min-width: 0;
}
.lc-step:first-child { margin-left: 0; }
.lc-step:last-child { margin-right: 0; }
.lc-step.done { color: #FFFFFF; background: #9CA3AF; }
.lc-step.active { color: #fff; background: #374151; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.lc-step.future { color: #9CA3AF; background: #F3F4F6; }
.lc-step:hover { filter: brightness(0.97); }

/* ===== BODY ===== */
.lc-body { display: flex; flex: 1; overflow: hidden; min-height: 0; }

/* LEFT — scrollable */
.lc-col-left {
  width: 40%; border-right: 1px solid #E5E7EB;
  overflow-y: auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}

/* RIGHT — flex column with fixed header */
.lc-col-right {
  width: 60%; display: flex; flex-direction: column;
  overflow: hidden;
}

/* Right: fixed top (plan + tabs) */
.lc-right-header {
  flex-shrink: 0;
  padding: 12px 20px 0 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

/* Plan block — calmer, compact */
.lc-plan {
  background: #FEFCE8; border: 1px solid #FEF08A;
  border-radius: 8px;
  padding: 8px 12px; margin-bottom: 10px;
}
.lc-plan-row {
  display: flex; align-items: center; gap: 8px;
}
.lc-plan-row .lc-warn { font-size: 14px; flex-shrink: 0; opacity: 0.9; }
.lc-plan-row .lc-plan-title { font-weight: 600; font-size: 12px; color: #374151; white-space: nowrap; flex-shrink: 0; }
.lc-plan-input {
  flex: 1; height: 32px; background: #FFFFFF;
  border: 1px solid #E5E7EB; border-radius: 6px;
  padding: 0 10px; font-size: 13px; color: #1A1A1A;
  outline: none; font-family: inherit; min-width: 0;
}
.lc-plan-input::placeholder { color: #9CA3AF; }
.lc-plan-input:focus { border-color: #22C55E; }
.lc-plan-btn {
  height: 32px; padding: 0 14px; background: #DC2626;
  color: #FFFFFF; font-weight: 600; font-size: 12px;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: inherit; transition: background 0.2s; white-space: nowrap;
}
.lc-plan-btn:hover { background: #B91C1C; }

/* Tabs */
.lc-tabs { display: flex; gap: 16px; }
.lc-tab {
  font-size: 12px; font-weight: 500; color: #6B7280;
  padding-bottom: 8px; cursor: pointer;
  border: none; border-bottom: 2px solid transparent;
  background: none; font-family: inherit; transition: all 0.15s;
}
.lc-tab.active { color: #047857; font-weight: 600; border-bottom-color: #047857; }
.lc-tab:hover { color: #047857; }

/* Right: scrollable timeline */
.lc-right-scroll {
  flex: 1; overflow-y: auto; padding: 12px 20px;
}

/* Scrollbar */
.lc-col-left::-webkit-scrollbar,
.lc-right-scroll::-webkit-scrollbar { width: 4px; }
.lc-col-left::-webkit-scrollbar-thumb,
.lc-right-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

/* ===== SECTIONS ===== — clearer label/value hierarchy */
.lc-section {
  border-left: 3px solid #22C55E;
  padding: 10px 0 10px 14px;
  margin: 0;
}
.lc-section-label {
  font-weight: 600; font-size: 11px; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.lc-client-name { font-weight: 700; font-size: 17px; color: #111827; margin-bottom: 8px; line-height: 1.25; }
.lc-row {
  font-size: 13px; color: #374151; margin-bottom: 5px;
  display: flex; align-items: center; gap: 6px;
}
.lc-row .lc-label { color: #9CA3AF; font-weight: 500; min-width: 0; }
.lc-row-heat { align-items: center; }
.lc-heat-wrap { position: relative; }
.lc-heat-trigger {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.lc-heat-wrap.open .lc-heat-trigger {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
.lc-heat-panel {
  position: absolute;
  z-index: 50;
  left: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
.lc-heat-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  font-family: inherit;
  padding: 7px 8px;
  cursor: pointer;
}
.lc-heat-item:hover { background: #f3f4f6; }
.lc-heat-item.is-active {
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}

/* Метки лида: funnel, stage, interest_level, source, property_type */
.lc-meta-row { flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-meta-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-meta-b {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #E5E7EB;
  color: #374151;
}
.lc-meta-b.lc-badge-hot { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }
.lc-meta-b.lc-badge-warm { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.lc-meta-b.lc-badge-cold { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #fff; }

.lc-phone-icons { display: flex; gap: 8px; margin-left: 8px; }
.lc-phone-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; transition: transform 0.15s;
}
.lc-phone-icon:hover { transform: scale(1.1); }
/* Кнопка звонка — CRM-стиль, увеличенная hit-area, hover */
.lc-phone-icon.lc-call {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  margin-left: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lc-phone-icon.lc-call:hover {
  background: #22C55E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}
.lc-phone-icon.lc-call:hover svg { stroke: #fff; }
.lc-phone-icon.lc-msg { background: #2D9CDB; }
.lc-phone-icon svg { width: 14px; height: 14px; stroke: #fff; fill: none; }
.lc-phone-icon.lc-call svg { stroke: #22C55E; }

/* Скрыто в UI: бюджет, цель покупки, способ оплаты (данные в API сохраняются) */
.lc-row:has(.lc-budget),
#lcGoalGroup,
#lcPaymentGroup {
  display: none !important;
}

.lc-row.lc-budget-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.lc-row.lc-budget-row.lc-missing {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.15);
}
.lc-budget { color: #047857; font-weight: 600; font-size: 13px; }
.lc-row.lc-budget-row.lc-missing .lc-budget { color: #b91c1c; }
.lc-desc {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.lc-desc.lc-desc-placeholder .lc-desc-placeholder-text,
.lc-desc .lc-desc-placeholder-text { color: #94a3b8; font-style: italic; }
.lc-request-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-request-group {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  padding: 9px;
}
.lc-request-group.lc-missing {
  border-color: #ef4444;
  background: #fef2f2;
}
.lc-request-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.lc-request-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lc-request-option {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
  font-family: inherit;
}
.lc-request-option.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}

/* AI Block — calmer, compact */
.lc-ai-block {
  background: #FFFBEB; border-radius: 8px;
  padding: 12px 14px; border-left: 3px solid #D97706;
}
.lc-ai-title { font-weight: 600; font-size: 12px; color: #92400E; margin-bottom: 6px; }
.lc-ai-row { font-size: 13px; color: #374151; margin-bottom: 4px; line-height: 1.4; }
.lc-ai-link {
  color: #B45309; font-weight: 600; font-size: 12px;
  cursor: pointer; text-decoration: none; margin-top: 6px; display: inline-block;
}
.lc-ai-link:hover { text-decoration: underline; }

/* ===== TIMELINE ===== — date / type / text hierarchy, less noise */
.lc-timeline { display: flex; flex-direction: column; position: relative; padding-left: 44px; }
.lc-tl-item {
  position: relative; padding: 8px 12px; margin-bottom: 8px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
  transition: box-shadow 0.2s;
}
.lc-tl-item:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.lc-tl-item:last-child { margin-bottom: 0; }
.lc-tl-dot-col { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; z-index: 2; }
.lc-tl-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lc-tl-dot.blue { background: #3B82F6; }
.lc-tl-dot.purple { background: #7C3AED; }
.lc-tl-dot.green { background: #22C55E; }
.lc-tl-dot.gray { background: #9CA3AF; }
.lc-tl-line { display: none; }
.lc-tl-content { flex: 1; min-width: 0; font-size: 13px; color: #4B5563; line-height: 1.5; }
.lc-tl-header { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.lc-tl-header .lc-tl-meta { font-weight: 400; color: #9CA3AF; font-size: 11px; }

/* Audio */
.lc-audio {
  background: #F3F4F6; border-radius: 8px;
  padding: 8px 12px; display: flex; align-items: center; gap: 10px; height: 40px;
}
.lc-play-btn {
  width: 28px; height: 28px; display: grid; place-items: center;
  cursor: pointer; background: none; border: none;
}
.lc-play-btn svg { width: 16px; height: 16px; fill: #1A1A1A; }
.lc-audio-time { font-size: 12px; color: #6B7280; font-variant-numeric: tabular-nums; min-width: 32px; }
.lc-audio-track { flex: 1; height: 4px; background: #D1D5DB; border-radius: 2px; position: relative; cursor: pointer; }
.lc-audio-track-fill { height: 100%; background: #3B82F6; border-radius: 2px; width: 90%; }
.lc-audio-thumb {
  width: 12px; height: 12px; background: #3B82F6; border-radius: 50%;
  position: absolute; top: -4px; left: 90%; transform: translateX(-50%); cursor: grab;
}

/* AI Analysis — calmer */
.lc-ai-analysis {
  background: #FAF5FF; border-radius: 8px;
  border-left: 3px solid #7C3AED; padding: 10px 12px;
}
.lc-ai-analysis-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lc-ai-analysis-header .lc-ai-label { font-weight: 600; font-size: 12px; color: #6D28D9; }
.lc-ai-analysis-header .lc-ai-time { font-weight: 400; font-size: 11px; color: #9CA3AF; }
.lc-ai-analysis-header .lc-chevron {
  margin-left: auto; font-size: 14px; color: #9CA3AF;
  cursor: pointer; background: none; border: none;
}
.lc-ai-analysis-text {
  font-size: 13px; color: #374151; line-height: 1.5;
  max-height: 200px; overflow: hidden; transition: max-height 0.3s ease;
}
.lc-ai-analysis-text.collapsed { max-height: 0; }
.lc-tl-task { display: flex; align-items: center; gap: 6px; }
.lc-tl-task .lc-check { color: #22C55E; font-size: 14px; }
.lc-tl-comment { font-size: 13px; color: #374151; line-height: 1.5; margin-top: 4px; }

/* ===== BOTTOM BAR ===== — aligned buttons, unified heights/radii */
.lc-bottom {
  display: flex; border-top: 1px solid #E5E7EB;
  flex-shrink: 0; min-height: 56px; background: #FFFFFF;
  align-items: center;
}
.lc-bottom-left {
  width: 40%; padding: 10px 20px;
  display: flex; gap: 10px; align-items: center;
  border-right: 1px solid #E5E7EB;
}
.lc-bottom-right {
  width: 60%; padding: 10px 20px;
  display: flex; gap: 10px; align-items: center;
}
.lc-action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s; white-space: nowrap;
  height: 36px; box-sizing: border-box;
}
.lc-action-btn:hover { filter: brightness(0.95); }
.lc-action-btn:active { transform: scale(0.98); }
.lc-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lc-btn-call { background: #16a34a; color: #FFFFFF; }
.lc-btn-call svg { stroke: #FFFFFF; fill: none; }
.lc-btn-write { background: #E5E7EB; color: #374151; }
.lc-btn-write svg { stroke: #374151; fill: none; }
.lc-btn-task { background: #6366f1; color: #FFFFFF; }
.lc-btn-task svg { stroke: #FFFFFF; fill: none; }
.lc-btn-sms {
  background: linear-gradient(180deg, #CCFBF1, #99F6E4);
  color: #0F766E;
  border: 1px solid rgba(13,148,136,.35);
  box-shadow: 0 3px 8px rgba(13,148,136,.22), 0 0 0 1px rgba(13,148,136,.08), inset 0 1px 0 rgba(255,255,255,.85);
}
.lc-btn-sms:hover { box-shadow: 0 5px 14px rgba(13,148,136,.32), 0 0 12px rgba(13,148,136,.15), inset 0 1px 0 rgba(255,255,255,.9); }
.lc-btn-sms svg { stroke: #0F766E; fill: none; }
.lc-chat-btn-wrap { position: relative; display: inline-flex; }
.lc-btn-chat { background: #0ea5e9; color: #FFFFFF; }
.lc-btn-chat svg { stroke: #FFFFFF; fill: none; }
.lc-btn-chat-label { display: inline; }

/* Hide communication/task quick actions in lead card modal */
#lcOverlay #lcPhoneCall,
#lcOverlay #lcBtnCall,
#lcOverlay #lcBtnChat,
#lcOverlay #lcBtnSms,
#lcOverlay .lc-bottom .lc-btn-task {
  display: none !important;
}

/* Desktop popup only: ghost back button, pill responsible, same visual style as kanban action buttons */
@media (min-width: 901px) {
  .lc-back-btn {
    border-radius: 11px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.6);
    transition: background 0.15s;
  }
  .lc-back-btn:hover {
    background: #F3F4F6;
  }
  .lc-top-right .lc-responsible {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.6);
  }
  .lc-action-btn {
    border-radius: 14px;
    height: 42px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }
  .lc-action-btn:hover { filter: none; box-shadow: 0 5px 14px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,.9); transform: translateY(-1px); }
  .lc-action-btn:active { transform: scale(0.96); }
  .lc-btn-call {
    background: linear-gradient(180deg, #E8F8ED, #D4F1DE);
    color: #166534;
    border: 1px solid rgba(34,197,94,.35);
    box-shadow: 0 3px 8px rgba(34,197,94,.22), 0 0 0 1px rgba(34,197,94,.08), inset 0 1px 0 rgba(255,255,255,.85);
  }
  .lc-btn-call:hover { box-shadow: 0 5px 14px rgba(34,197,94,.32), 0 0 12px rgba(34,197,94,.15), inset 0 1px 0 rgba(255,255,255,.9); }
  .lc-btn-call svg { stroke: #166534; fill: none; }
  .lc-btn-write {
    background: linear-gradient(180deg, #E5E7EB, #D1D5DB);
    color: #374151;
    border-color: rgba(55,65,81,.12);
    box-shadow: 0 2px 6px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .lc-btn-write:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.95); }
  .lc-btn-write svg { stroke: #374151; fill: none; }
  .lc-btn-task {
    background: linear-gradient(180deg, #FEF3E2, #FDE8C8);
    color: #B45309;
    border: 1px solid rgba(245,158,11,.4);
    box-shadow: 0 3px 8px rgba(245,158,11,.22), 0 0 0 1px rgba(245,158,11,.1), inset 0 1px 0 rgba(255,255,255,.85);
  }
  .lc-btn-task:hover { box-shadow: 0 5px 14px rgba(245,158,11,.32), 0 0 12px rgba(245,158,11,.18), inset 0 1px 0 rgba(255,255,255,.9); }
  .lc-btn-task svg { stroke: #B45309; fill: none; }
  .lc-btn-chat {
    background: linear-gradient(180deg, #E8F4FD, #D4ECFA);
    color: #0C6BA3;
    border: 1px solid rgba(14,165,233,.4);
    box-shadow: 0 3px 8px rgba(14,165,233,.22), 0 0 0 1px rgba(14,165,233,.1), inset 0 1px 0 rgba(255,255,255,.85);
  }
  .lc-btn-chat:hover { box-shadow: 0 5px 14px rgba(14,165,233,.32), 0 0 12px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.9); }
  .lc-btn-chat svg { stroke: #0C6BA3; fill: none; }
}
.lc-chat-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #EF4444; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
}
.lc-chat-unanswered {
  position: absolute; top: 2px; right: 2px;
  font-size: 8px; color: #F59E0B; line-height: 1;
}

/* Action item wrapper (for mobile labels) — desktop: label inline next to icon */
.lc-action-item { display: inline-flex; align-items: center; }
.lc-action-label { display: inline; font-size: 13px; font-weight: 600; }
.lc-action-btn .lc-action-label { display: inline; }

/* Comment + send — same height, radius, system */
.lc-comment-wrap { flex: 1; position: relative; min-width: 0; }
.lc-comment-input {
  width: 100%; height: 38px; background: #FFFFFF;
  border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 0 38px 0 12px; font-size: 13px; color: #1A1A1A;
  outline: none; font-family: inherit; box-sizing: border-box;
}
.lc-comment-input::placeholder { color: #9CA3AF; }
.lc-comment-input:focus { border-color: #22C55E; }
.lc-attach {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); color: #9CA3AF;
  cursor: pointer; background: none; border: none;
}
.lc-attach svg { width: 16px; height: 16px; }
.lc-send-btn {
  height: 38px; padding: 0 18px; background: #22C55E; color: #FFFFFF;
  font-weight: 600; font-size: 13px; border: none;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: all 0.2s; white-space: nowrap; box-sizing: border-box;
}
.lc-send-btn:hover { background: #16A34A; }
/* Hide duplicate "Отправить" label next to send button (button already has "Отправить →") */
.lc-action-item .lc-send-btn ~ .lc-action-label { display: none; }

@media (max-width: 900px) {
  .lc-modal { width: 100%; height: 100vh; border-radius: 0; }
  .lc-body { flex-direction: column; gap: 0; }
  .lc-col-left, .lc-col-right { width: 100%; }
  .lc-col-left {
    border-right: none; border-bottom: 1px solid #E5E7EB; max-height: 45vh;
    padding: 4px 12px 4px; gap: 4px;
  }
  .lc-bottom { flex-direction: column; }
  .lc-bottom-left, .lc-bottom-right { width: 100%; border-right: none; }
  .lc-top-bar {
    flex-wrap: wrap; height: auto; min-height: auto;
    padding: 4px 12px; gap: 4px 6px; align-content: center;
  }
  .lc-commission-badge { margin-left: 6px; padding: 4px 8px; }
  .lc-commission-badge .lc-cb-sum { font-size: 13px; }
  .lc-lead-id { font-size: 14px; margin-left: 6px; }
  .lc-lead-name { font-size: 18px; margin-left: 8px; }
  .lc-top-right { gap: 8px; }
  .lc-top-right .lc-responsible { font-size: 12px; }

  /* Stepper: scroll + compact — меньше по высоте */
  .lc-stepper {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    min-height: 32px; height: 32px; padding: 0;
  }
  .lc-stepper::-webkit-scrollbar { display: none; }
  .lc-step { flex: 0 0 auto; min-width: 100px; font-size: 12px; }

  /* Right header: plan + tabs — одна компактная полоса, равномерный gap */
  .lc-right-header {
    display: flex; flex-direction: column; gap: 6px;
    padding: 3px 12px 2px; border-bottom: 1px solid #E5E7EB;
  }
  .lc-plan { margin-bottom: 0; padding: 5px 8px; }
  .lc-plan-row .lc-plan-title { font-size: 12px; }
  .lc-plan-input { height: 32px; font-size: 12px; padding: 0 8px; }
  .lc-plan-btn { height: 32px; padding: 0 12px; font-size: 12px; }
  .lc-tabs { gap: 4px; padding-bottom: 0; margin: 0; }
  .lc-tab { font-size: 12px; padding-bottom: 4px; }

  /* Main content scroll area — плотнее, меньше воздух над bottom bar */
  .lc-right-scroll { padding: 4px 12px 4px; }

  /* Sections: сильно уплотнено — строки и заголовки ближе */
  .lc-section { padding-left: 12px; margin-bottom: 0; }
  .lc-section-label { margin-bottom: 1px; font-size: 11px; }
  .lc-client-name { font-size: 17px; margin-bottom: 2px; }
  .lc-row { margin-bottom: 2px; font-size: 13px; }
  .lc-desc { margin-top: 2px; }

  /* Bottom bar: compact + safe area + labels under buttons (mobile only) */
  .lc-bottom {
    min-height: 72px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
    overflow: visible;
  }
  .lc-bottom-left {
    padding: 4px 0; gap: 6px;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start;
    overflow: visible;
  }
  .lc-bottom-right { padding: 4px 0; gap: 8px; align-items: flex-end; }
  .lc-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }
  .lc-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: auto;
    min-height: auto;
    min-width: 56px;
    overflow: visible;
    padding: 8px 14px;
    font-size: 13px;
  }
  .lc-action-btn .lc-action-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 10px;
    line-height: 1.1;
    color: #111827;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
  }
  .lc-comment-input { height: 36px; font-size: 13px; padding: 0 36px 0 10px; }
  .lc-send-btn { padding: 8px 16px; font-size: 13px; }
}


/* Fix: task title input in expanded plan */
#lcPlanExTitle {
  outline: none;
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.5);
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  padding: 6px 10px;
  margin: 8px 12px 0;
  border-radius: 6px;
  width: calc(100% - 24px);
  min-height: 32px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
#lcPlanExTitle:focus {
  outline: none;
  border-bottom: 2px solid #22c55e;
  background: rgba(255,255,255,0.7);
}
#lcPlanExTitle:empty::before {
  content: 'Название задачи...';
  color: #94a3b8;
  font-weight: 400;
}
/* Fix: description textarea */
#lcPlanExDesc {
  outline: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.4);
  font-size: 13px;
  color: #475569;
  padding: 6px 10px;
  margin: 4px 12px 0;
  border-radius: 6px;
  width: calc(100% - 24px);
  min-height: 40px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}
#lcPlanExDesc:focus {
  outline: none;
  border-color: #22c55e;
  background: rgba(255,255,255,0.6);
}







/* === TIMELINE v3 === */
.lc-timeline::before { content: ''; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 1px; background: transparent; border-left: 1px dashed #E5E7EB; z-index: 0; }
.lc-tl-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.lc-tl-item:last-child { margin-bottom: 0; }
.lc-tl-item[data-type="call"] {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.lc-tl-item[data-type="ai"] {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
}
.lc-tl-content { font-size: 13px; color: #64748b; line-height: 1.5; }
.lc-tl-header { font-size: 13px; color: #374151; }
.lc-tl-header .lc-tl-meta { font-weight: 400; color: #9CA3AF; font-size: 11px; }
.lc-tl-item[style*='fffbeb'] { border-left: 3px solid #F59E0B; }
.lc-tl-dot.orange { background: #F59E0B; }
.lc-tl-dot.red { background: #EF4444; }

/* Timeline text hierarchy */
.lc-tl-type { color: #9CA3AF; font-weight: 400; font-size: 12px; }
.lc-tl-text { color: #374151; font-weight: 500; font-size: 13px; }

/* SMS/events text: never truncate, allow long URLs to wrap */
.lc-tl-header,
.lc-tl-text {
  display: block;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
}

/* Timeline date in top-right corner of item content */
.lc-tl-content {
  position: relative;
}
.lc-tl-header {
  position: relative;
  padding-right: 130px;
}
.lc-tl-header .lc-tl-meta {
  position: absolute;
  top: 0;
  right: 0;
  white-space: nowrap;
}

/* Timeline notes */
.lc-tl-notes { font-size: 12px; color: #9CA3AF; margin-top: 4px; line-height: 1.4; }

/* «Запись разговора» — текстовая кнопка в тон таймлайну (без градиентов/обводок) */
.lc-tl-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lc-tl-rec:hover { color: #1d4ed8; }
.lc-tl-rec:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Попап плеера записи (overlay + .a как у crm-modal) */
.lc-rec-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 720;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lc-rec-overlay.a { display: flex; }
.lc-rec-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 20px 24px 24px;
  box-sizing: border-box;
}
.lc-rec-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.lc-rec-close:hover { background: rgba(0, 0, 0, 0.1); color: #1e293b; }
.lc-rec-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 40px 8px 0;
}
.lc-rec-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}
.lc-rec-audio {
  display: block;
  width: 100%;
  margin-top: 4px;
}

/* ==========================================================================
   Stage stepper polish v3 — 2026-04-23
   Объём на всех стрелках с иерархией:
     - все сегменты: базовая тень + лёгкий inset highlight
     - пройденные: насыщенные, лёгкий лифт
     - активная: усиленная тень, больший лифт, saturate +8%, font-weight 600
     - будущие: лёгкая полупрозрачность 0.72 (не 0.42), тень сохраняется
   Работает на воронках с любым числом стадий.
   Специфичность: #lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow
   Без media-query.
   Откат: удалить весь блок до маркера END v3.
   ========================================================================== */

#lcModalStageStripWrap,
#lcModalStageStrip.brd-stage-strip--card-arrows {
  overflow: visible;
}

/* БАЗА для всех стрелок: базовая тень + плавные переходы */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow {
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.14));
  transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
}

/* Полированный блик сверху — создаёт ощущение глянца на всех стрелках.
   ::after свободен у сегментов (::before занят под chevron-угол). */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
  /* Наследуем clip-path от родителя, если есть — не выходим за форму стрелки.
     Если clip-path у родителя объявлен, блик автоматически обрежется. */
}

/* Текст должен быть выше блика */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow .brd-stage-seg-txt {
  position: relative;
  z-index: 2;
}

/* ПРОЙДЕННЫЕ (до активной) — насыщенные, лёгкий лифт */
#lcModalStageStrip.brd-stage-strip--card-arrows:has(.step-active, .brd-stage-seg--on) .brd-stage-seg.brd-stage-seg--arrow {
  transform: translateY(-1px);
}

/* АКТИВНАЯ — усиленная тень, бОльший лифт, saturate, bold text */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active,
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28)) saturate(1.08);
  z-index: 3;
}

#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active .brd-stage-seg-txt,
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on .brd-stage-seg-txt {
  font-weight: 600;
}

/* Усиленный блик на активной — глянцевая подсветка */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active::after,
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on::after {
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%);
}

/* БУДУЩИЕ (после активной) — лёгкая полупрозрачность, но тень сохраняется */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active ~ .brd-stage-seg.brd-stage-seg--arrow,
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on ~ .brd-stage-seg.brd-stage-seg--arrow {
  opacity: 0.72;
  transform: translateY(0);
}

/* Hover на будущей — возвращается полностью */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.step-active ~ .brd-stage-seg.brd-stage-seg--arrow:hover,
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow.brd-stage-seg--on ~ .brd-stage-seg.brd-stage-seg--arrow:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Hover на пройденной — приподнимается чуть сильнее */
#lcModalStageStrip.brd-stage-strip--card-arrows .brd-stage-seg.brd-stage-seg--arrow:not(.step-active):not(.brd-stage-seg--on):hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* END stage stepper polish v3 2026-04-23 */

/* ===== ROP CONTROL VIEW ===== */
.lc-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 3px rgba(15, 23, 42, 0.06);
}
.lc-view-toggle-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lc-view-toggle-btn:hover { color: #334155; }
.lc-view-toggle-btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lc-view-work[hidden],
.lc-view-rop[hidden] {
  display: none !important;
}

.lc-modal-views {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lc-view-work {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lc-view-rop {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.88) 100%);
}

.lc-rop-control-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.lc-rop-chip {
  min-width: 0;
  flex: 1 1 calc(100% / 7 - 6px);
  max-width: none;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.lc-rop-chip--bad { border-color: rgba(239, 68, 68, 0.35); background: rgba(254, 242, 242, 0.85); }
.lc-rop-chip--warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(255, 251, 235, 0.88); }
.lc-rop-chip--watch { border-color: rgba(99, 102, 241, 0.32); background: rgba(238, 242, 255, 0.88); }
.lc-rop-chip-k {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 3px;
}
.lc-rop-chip-v {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.lc-rop-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(248px, 0.95fr);
  gap: 12px;
  padding: 12px 14px;
  align-items: start;
}

.lc-rop-ai-hero {
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background:
    linear-gradient(165deg, rgba(238, 242, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(245, 243, 255, 0.92) 100%);
  box-shadow:
    0 14px 40px rgba(99, 102, 241, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible;
  min-height: 300px;
}
.lc-rop-ai-hero-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}
.lc-rop-ai-hero-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #312e81;
  letter-spacing: -0.01em;
}
.lc-rop-ai-hero-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
}
.lc-rop-ai-hero-body {
  padding: 10px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lc-rop-ai-sect {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.lc-rop-ai-sect--lead {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.22);
  padding: 12px 14px;
}
.lc-rop-ai-sect--done {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.82);
}
.lc-rop-ai-sect--step {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(240, 253, 244, 0.85);
}
.lc-rop-ai-sect--tasks {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.9);
}
.lc-rop-status-reason {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}
.lc-rop-itog-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.lc-rop-itog-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 12px;
  line-height: 1.4;
}
.lc-rop-itog-k {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.lc-rop-itog-v {
  color: #334155;
  font-weight: 600;
}
.lc-rop-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lc-rop-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}
.lc-rop-stat-chip-k {
  color: #94a3b8;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lc-rop-compact-line {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
}
.lc-rop-compact-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.lc-rop-expand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-rop-expand-btn {
  align-self: flex-start;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  background: rgba(238, 242, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #4338ca;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lc-rop-expand-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.lc-rop-expand-btn:active { transform: scale(0.98); }
.lc-rop-step-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}
.lc-rop-step-date {
  margin: 0 0 6px;
  font-size: 12px;
}
.lc-rop-step-why {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.lc-rop-ai-lead {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #1e293b;
  margin: 0;
}
.lc-rop-ai-sect-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}
.lc-rop-ai-sect-body {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  word-break: break-word;
}
.lc-rop-ai-sect-body p { margin: 0 0 6px; }
.lc-rop-ai-sect-body p:last-child { margin-bottom: 0; }
.lc-rop-pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.lc-rop-ai-empty {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  margin-bottom: 4px;
  grid-column: 1 / -1;
}
.lc-rop-ai-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #4338ca;
}
.lc-rop-ai-empty-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.lc-rop-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lc-rop-agent-control {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
.lc-rop-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lc-rop-acc {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.lc-rop-acc--control { border-color: rgba(99, 102, 241, 0.22); }
.lc-rop-acc--action { border-color: rgba(34, 197, 94, 0.22); }
.lc-rop-acc-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.lc-rop-acc-summary::-webkit-details-marker { display: none; }
.lc-rop-acc-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-top: -3px;
}
.lc-rop-acc[open] > .lc-rop-acc-summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.lc-rop-acc-summary:hover {
  background: rgba(248, 250, 252, 0.9);
  color: #1e293b;
}
.lc-rop-acc-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
}
.lc-rop-acc[open] > .lc-rop-acc-body {
  padding-top: 10px;
}
.lc-rop-acc-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lc-rop-acc-agent-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.lc-rop-acc-sub {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.lc-rop-why-list--compact {
  font-size: 11px;
  padding-left: 14px;
  margin-bottom: 0;
}
.lc-rop-next-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}
.lc-rop-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.lc-rop-kv {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 11px;
  line-height: 1.35;
}
.lc-rop-kv--wide { grid-column: 1 / -1; }
.lc-rop-kv span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.lc-rop-kv strong {
  color: #334155;
  font-weight: 700;
}
.lc-rop-kv-list .lc-rop-side-row {
  padding: 3px 0;
  font-size: 11px;
}
.lc-rop-contact-verdict {
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}
.lc-rop-contact-note {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
  font-style: italic;
}
.lc-rop-ac-head { margin-bottom: 8px; }
.lc-rop-ac-block {
  padding: 8px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}
.lc-rop-ac-block:first-of-type { border-top: none; padding-top: 0; }
.lc-rop-ac-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.lc-rop-why-list,
.lc-rop-q-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.lc-rop-why-list li,
.lc-rop-q-list li { margin-bottom: 3px; }
.lc-rop-rop-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-rop-act-btn {
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #4338ca;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.lc-rop-act-btn:hover { background: rgba(238, 242, 255, 0.95); }
.lc-rop-act-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  padding: 2px 0;
}
.lc-rop-side-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: visible;
}
.lc-rop-side-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
}
.lc-rop-side-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  font-size: 12px;
  line-height: 1.4;
}
.lc-rop-side-row:last-of-type { border-bottom: none; }
.lc-rop-side-k { color: #94a3b8; flex-shrink: 0; max-width: 48%; }
.lc-rop-side-v { color: #1e293b; font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }
.lc-rop-muted { color: #94a3b8; font-weight: 500; font-style: italic; }

.lc-rop-risk {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.lc-rop-risk--normal { background: rgba(34, 197, 94, 0.12); color: #15803d; border-color: rgba(34, 197, 94, 0.25); }
.lc-rop-risk--attention { background: rgba(245, 158, 11, 0.14); color: #b45309; border-color: rgba(245, 158, 11, 0.3); }
.lc-rop-risk--critical { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.28); }

.lc-rop-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.lc-rop-status--norma {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
}
.lc-rop-status--na_kontrole {
  background: rgba(129, 140, 248, 0.14);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.28);
}
.lc-rop-status--bez_dvizheniya {
  background: rgba(251, 146, 60, 0.14);
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.28);
}
.lc-rop-status--prosrocheno {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
}
.lc-rop-status--vmeshatsya {
  background: rgba(136, 19, 55, 0.12);
  color: #881337;
  border-color: rgba(190, 18, 60, 0.28);
}

.lc-rop-link-btn {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  text-align: left;
  margin-top: 4px;
}
.lc-rop-link-btn:hover { text-decoration: underline; }

.lc-rop-empty {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  padding: 8px 0;
  margin: 0;
}

.lc-rop-task-date { font-size: 12px; }
.lc-rop-task-date--overdue { color: #dc2626; font-weight: 600; }
.lc-rop-task-date--today { color: #d97706; font-weight: 600; }
.lc-rop-task-date--future { color: #64748b; }
.lc-rop-task-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-rop-task-btn {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #4338ca;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lc-rop-task-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.18);
}
.lc-rop-task-btn:active { transform: scale(0.98); }

.lc-rop-agent-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.lc-rop-agent-badge--active { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.lc-rop-agent-badge--watch { background: rgba(129, 140, 248, 0.14); color: #4338ca; }
.lc-rop-agent-badge--inactive { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.lc-rop-agent-badge--outside { background: rgba(136, 19, 55, 0.1); color: #881337; }

.lc-rop-disc-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lc-rop-disc-widget--bad {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.72) 0%, rgba(255, 255, 255, 0.62) 100%);
}
.lc-rop-disc-widget--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.72) 0%, rgba(255, 255, 255, 0.62) 100%);
}
.lc-rop-disc-widget--good {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.72) 0%, rgba(255, 255, 255, 0.62) 100%);
}
.lc-rop-disc-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-rop-disc-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.lc-rop-disc-badge--bad {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.lc-rop-disc-badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.lc-rop-disc-badge--good {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.lc-rop-disc-badge--no_data {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}
.lc-rop-disc-reason {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
}
.lc-rop-disc-percent {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.lc-rop-disc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.lc-rop-disc-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.lc-rop-disc-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.2;
}
.lc-rop-disc-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lc-rop-disc-kpi--bad {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.72);
}
.lc-rop-disc-kpi--bad .lc-rop-disc-kpi-val { color: #b91c1c; }
.lc-rop-disc-kpi--good {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.72);
}
.lc-rop-disc-kpi--good .lc-rop-disc-kpi-val { color: #15803d; }
.lc-rop-disc-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-rop-disc-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lc-rop-disc-meter-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.lc-rop-disc-meter-val {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.lc-rop-disc-meter-val--good { color: #15803d; }
.lc-rop-disc-meter-val--warn { color: #b45309; }
.lc-rop-disc-meter-val--bad { color: #b91c1c; }
.lc-rop-disc-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
.lc-rop-disc-meter-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.lc-rop-disc-meter-fill--good {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.85), rgba(74, 222, 128, 0.95));
}
.lc-rop-disc-meter-fill--warn {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.85), rgba(251, 191, 36, 0.95));
}
.lc-rop-disc-meter-fill--bad {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.85), rgba(248, 113, 113, 0.95));
}
.lc-rop-disc-conclusion {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: #475569;
}
.lc-rop-disc-action {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
}
.lc-rop-disc-action-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366f1;
  margin-bottom: 4px;
}
.lc-rop-disc-action p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #312e81;
}
.lc-rop-disc-grid .lc-rop-side-row { padding: 3px 0; font-size: 11px; }
.lc-rop-disc-verdict {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.lc-rop-rec-primary {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}
.lc-rop-ac-sublabel {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin: 6px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lc-rop-key-events {
  flex-shrink: 0;
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lc-rop-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.lc-rop-events-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.lc-rop-events-list {
  overflow: visible;
}
.lc-rop-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}
.lc-rop-tl-item {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-height: 44px;
}
.lc-rop-tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12px;
  flex-shrink: 0;
  position: relative;
}
.lc-rop-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  flex-shrink: 0;
  margin-top: 4px;
}
.lc-rop-tl-item:not(:last-child) .lc-rop-tl-rail::after {
  content: '';
  flex: 1;
  width: 2px;
  background: rgba(148, 163, 184, 0.35);
  margin-top: 4px;
}
.lc-rop-tl-body {
  flex: 1;
  padding-bottom: 10px;
  min-width: 0;
}
.lc-rop-tl-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
}
.lc-rop-tl-text {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  word-break: break-word;
  line-height: 1.4;
}
.lc-rop-tl-date {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}
.lc-rop-ev {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  font-size: 11px;
  line-height: 1.35;
}
.lc-rop-ev:last-child { border-bottom: none; }
.lc-rop-ev-type { flex-shrink: 0; font-weight: 700; color: #6366f1; min-width: 72px; }
.lc-rop-ev-text { flex: 1; color: #334155; min-width: 0; word-break: break-word; line-height: 1.4; }
.lc-rop-ev-meta { flex-shrink: 0; color: #94a3b8; white-space: nowrap; }

.lc-rop-extra {
  margin: 0 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.85);
  overflow: visible;
}
.lc-rop-extra-summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  list-style: none;
}
.lc-rop-extra-summary::-webkit-details-marker { display: none; }
.lc-rop-extra-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.lc-rop-extra-desc { padding-top: 8px; font-size: 12px; color: #475569; }
.lc-rop-extra-desc p { margin: 6px 0 0; line-height: 1.45; word-break: break-word; }

@media (max-width: 1100px) {
  .lc-rop-main { grid-template-columns: 1fr; }
  .lc-rop-ai-hero-body { grid-template-columns: 1fr; }
  .lc-rop-ai-sect--lead { grid-column: auto; }
  .lc-rop-control-bar { gap: 6px; }
  .lc-rop-chip { flex: 1 1 calc(50% - 6px); }
  .lc-view-toggle { margin-left: 6px; }
  .lc-view-toggle-btn { font-size: 10px; padding: 4px 7px; }
}
