/* ==============================================================
   NSPT TRIAGE WORKSPACE (Matte Soft-UI)
   Отдельный файл — чистый UTF-8, изолирован от core.css
   ============================================================== */
.triage-workspace {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;   /* поднимаем над WebGL-слоем точек (.spatial-bg z-index:0) */
  z-index: 10;          /* иначе летающие точки давали «серую пелену» поверх карточек */
}

/* 1. KPI Bar */
.triage-kpi-bar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #ffffff; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 16px 24px; margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.triage-kpi-item { display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748B; font-weight: 700; }
.kpi-val { font-size: 24px; font-weight: 800; color: #0F172A; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-divider { width: 1px; height: 32px; background: #E2E8F0; }
.text-emerald { color: #059669 !important; }
.text-amber { color: #D97706 !important; }
.flex-align { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.kpi-dot { width: 8px; height: 8px; background: #D97706; border-radius: 50%; display: inline-block; }
.kpi-copilot-msg { margin-left: auto; font-size: 13px; color: #475569; background: #F8FAFC; padding: 8px 16px; border-radius: 8px; border: 1px solid #E2E8F0; }

/* 2. Лента Лидов (Bento Cards) */
.triage-feed { display: flex; flex-direction: column; gap: 16px; }

.triage-bento-card {
  display: flex; align-items: stretch; gap: 24px;
  background: #ffffff; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.triage-bento-card:hover { border-color: #CBD5E1; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); transform: translateY(-2px); }
.triage-bento-card.border-amber { border-left: 4px solid #F59E0B; }

/* Левый блок: Скор */
.triage-score-box {
  width: 90px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid transparent;
}
.score-green { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.score-amber { background: #FFFBEB; color: #D97706; border-color: #FDE047; }
.score-red   { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.score-val { font-size: 32px; font-weight: 900; line-height: 1; }
.score-lbl { font-size: 10px; text-transform: uppercase; font-weight: 700; margin-top: 4px; opacity: 0.8; }

/* Центр: Инфо */
.triage-info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.triage-head { display: flex; align-items: baseline; gap: 12px; }
.client-name { font-size: 18px; font-weight: 800; color: #0F172A; }
.client-meta { font-size: 13px; color: #64748B; font-weight: 500; }

.triage-enrichment { display: flex; gap: 8px; flex-wrap: wrap; }
.enrich-tag { font-size: 12px; color: #475569; background: #F1F5F9; padding: 4px 8px; border-radius: 6px; border: 1px solid #E2E8F0; }
.enrich-tag b { color: #0F172A; }

.triage-route-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.badge-green { background: #ECFDF5; color: #059669; }
.badge-amber { background: #FFFBEB; color: #D97706; }
.badge-red   { background: #FEF2F2; color: #DC2626; }

.blocker-tag { font-size: 11px; font-weight: 700; color: #EF4444; background: #FEF2F2; border: 1px solid #FECACA; padding: 4px 8px; border-radius: 6px; }

.triage-nba { background: #F0F9FF; border: 1px solid #BAE6FD; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.nba-lbl { font-size: 11px; font-weight: 800; color: #0284C7; text-transform: uppercase; }
.nba-text { font-size: 13px; font-weight: 600; color: #0F172A; }

/* Правый блок: Действия */
.triage-action-box {
  width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center;
  padding-left: 24px; border-left: 1px solid #E2E8F0;
}
.action-status { font-size: 11px; font-weight: 800; text-transform: uppercase; text-align: right; margin-bottom: 4px; }

/* ── Премиальные кнопки действий (Soft-UI, сочные) ── */
.btn-primary, .btn-ghost, .btn-danger-outline {
  padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit; letter-spacing: .01em;
}
.btn-primary:active, .btn-ghost:active, .btn-danger-outline:active { transform: translateY(0) scale(.99); }

/* Принять маршрут — главное действие, синий с градиентом и свечением */
.btn-primary {
  background: linear-gradient(135deg, #0A6EFF 0%, #0052E0 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(0,102,255,.32), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(0,102,255,.42), inset 0 1px 0 rgba(255,255,255,.25); filter: brightness(1.04); }

/* Скрипт звонка — лёгкая нейтральная */
.btn-ghost {
  background: #fff; color: #334155; border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.btn-ghost:hover { background: #F8FAFC; border-color: #CBD5E1; color: #0F172A; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(15,23,42,.08); }

/* В отказ — красный контур, заливается на hover */
.btn-danger-outline {
  background: #fff; color: #DC2626; border: 1px solid #FECACA;
}
.btn-danger-outline:hover { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; border-color: #DC2626; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(220,38,38,.32); }

.triage-empty { text-align: center; padding: 60px 20px; color: #64748B; }
.triage-empty .empty-ic { font-size: 48px; margin-bottom: 16px; }
.triage-empty h3 { font-size: 20px; color: #0F172A; margin-bottom: 8px; }
.triage-empty p { font-size: 14px; }

/* ==============================================================
   ДАШБОРД ПРИЁМА (Matte Soft-UI)
   ============================================================== */
.nd-workspace { padding: 24px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; display: flex; flex-direction: column; gap: 20px; }

/* KPI */
.nd-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nd-kpi { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); transition: transform .15s ease, box-shadow .15s ease; }
.nd-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.nd-kpi--alert { border-color: #FDE68A; background: linear-gradient(180deg, #FFFBEB, #fff); }
.nd-kpi__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nd-kpi__ic svg { width: 22px; height: 22px; }
.nd-kpi__ic--blue { background: #EFF6FF; color: #2563EB; }
.nd-kpi__ic--emerald { background: #ECFDF5; color: #059669; }
.nd-kpi__ic--amber { background: #FFFBEB; color: #D97706; }
.nd-kpi__val { font-size: 28px; font-weight: 800; color: #0F172A; line-height: 1; font-variant-numeric: tabular-nums; }
.nd-kpi__lbl { font-size: 12px; color: #64748B; margin-top: 4px; }

/* строка карточек */
.nd-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.nd-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.nd-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.nd-card__title { font-size: 15px; font-weight: 700; color: #0F172A; }
.nd-card__sub { font-size: 12px; color: #94A3B8; }

/* воронка / источники — общие бары */
.nd-funnel, .nd-sources { display: flex; flex-direction: column; gap: 16px; }
.nd-funnel__top, .nd-source__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.nd-funnel__name, .nd-source__name { font-size: 13px; font-weight: 600; color: #334155; display: flex; align-items: center; gap: 8px; }
.nd-funnel__num, .nd-source__num { font-size: 14px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; }
.nd-bar { height: 8px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.nd-bar__fill { height: 100%; border-radius: 999px; transition: width .4s cubic-bezier(.16,1,.3,1); }
.nd-bar__fill--green { background: linear-gradient(90deg, #10B981, #059669); }
.nd-bar__fill--amber { background: linear-gradient(90deg, #F59E0B, #D97706); }
.nd-bar__fill--red   { background: linear-gradient(90deg, #F43F5E, #DC2626); }
.nd-bar__fill--blue  { background: linear-gradient(90deg, #3B82F6, #2563EB); }
.nd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.nd-dot--green { background: #10B981; } .nd-dot--amber { background: #F59E0B; } .nd-dot--red { background: #F43F5E; }

/* CTA */
.nd-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #EFF6FF, #F0F9FF); border: 1px solid #BAE6FD; border-radius: 16px; padding: 16px 22px; }
.nd-cta__txt { font-size: 14px; color: #0F172A; }
.nd-cta__txt b { color: #0284C7; }
.nd-cta .btn-primary { width: auto; padding: 11px 18px; }

@media (max-width: 900px) { .nd-kpi-grid { grid-template-columns: repeat(2, 1fr); } .nd-row { grid-template-columns: 1fr; } }

/* ==============================================================
   ПАЙПЛАЙН ПРИЁМА (трекер со степпером, Matte Soft-UI)
   ============================================================== */
.pt-workspace { padding: 24px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.pt-table { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.03); }

/* колонки строки: Клиент | Путь | SLA | Действие */
.pt-head, .pt-row { display: grid; grid-template-columns: 210px 1fr 64px 230px; gap: 18px; align-items: center; }
.pt-head { padding: 12px 22px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; }
.pt-h-sla { text-align: center; }

.pt-row { padding: 16px 22px; border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: background .12s ease; }
.pt-row:last-child { border-bottom: none; }
.pt-row:hover { background: #F8FAFC; }
.pt-row--alarm { background: linear-gradient(90deg, #FEF2F2, #fff 40%); }

/* Клиент */
.pt-client { min-width: 0; }
.pt-client__name { display: block; font-size: 14px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-client__meta { font-size: 12px; color: #94A3B8; }
.pt-client__meta b { color: #475569; }
.pt-arch { font-family: monospace; font-weight: 700; }

/* Путь — степпер */
.pt-path { min-width: 0; }
.pt-stepper { display: flex; align-items: flex-start; margin-bottom: 8px; }
.pt-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.pt-step:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: #E2E8F0; }
.pt-step--done:not(:last-child)::after { background: #10B981; }
.pt-step__dot { width: 11px; height: 11px; border-radius: 50%; background: #E2E8F0; position: relative; z-index: 1; box-shadow: 0 0 0 2px #fff; }
.pt-step--done .pt-step__dot { background: #10B981; }
.pt-step--current .pt-step__dot { background: #fff; }
.pt-step--current.pt-step--green .pt-step__dot { background: #10B981; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #A7F3D0; }
.pt-step--current.pt-step--amber .pt-step__dot { background: #F59E0B; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FDE68A; }
.pt-step--current.pt-step--red   .pt-step__dot { background: #F43F5E; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FECACA; }
.pt-step--current.pt-step--blue  .pt-step__dot { background: #3B82F6; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #BFDBFE; }
.pt-step__lbl { font-size: 10px; color: #CBD5E1; margin-top: 6px; white-space: nowrap; }
.pt-step--done .pt-step__lbl { color: #64748B; }
.pt-step--current .pt-step__lbl { color: #0F172A; font-weight: 700; }
.pt-stage { font-size: 12px; font-weight: 600; }
.pt-stage--green { color: #059669; } .pt-stage--amber { color: #D97706; }
.pt-stage--red { color: #DC2626; } .pt-stage--blue { color: #2563EB; }

/* SLA */
.pt-sla { text-align: center; }
.pt-sla__chip { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #475569; background: #F1F5F9; border: 1px solid #E2E8F0; }
.pt-sla__chip--hot { color: #fff; background: #F43F5E; border-color: #F43F5E; box-shadow: 0 2px 8px rgba(244,63,94,.3); }

/* Действие */
.pt-action { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-action__txt { flex: 1; font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-action__btn { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 1px solid #E2E8F0; background: #fff; color: #64748B; font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s ease; }
.pt-action__btn:hover { background: #0066FF; color: #fff; border-color: #0066FF; }

@media (max-width: 900px) { .pt-head { display: none; } .pt-row { grid-template-columns: 1fr; gap: 12px; } }

/* Трекер: NBA как кнопка «Назначить спецу» */
.pt-assign { flex: 1; min-width: 0; text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid #E2E8F0; background: #F8FAFC; color: #334155; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .15s ease; font-family: inherit; }
.pt-assign:hover { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }

/* Контекстные действия трекера — цвет по типу */
.pt-assign--decide  { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }
.pt-assign--decide:hover { background: #DC2626; border-color: #DC2626; color: #fff; }
.pt-assign--ping    { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.pt-assign--ping:hover { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.pt-assign--promote { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.pt-assign--promote:hover { background: #059669; border-color: #059669; color: #fff; }
.pt-assign--check   { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.pt-assign--open    { background: #F8FAFC; border-color: #E2E8F0; color: #475569; }

/* ==============================================================
   ВСЕ КЛИЕНТЫ — РЕЕСТР С ФИЛЬТРАМИ (Matte Soft-UI)
   ============================================================== */
.rg-workspace { padding: 24px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }

/* тулбар */
.rg-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rg-search { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 260px; background: #fff; border: 1px solid #E2E8F0; border-radius: 11px; padding: 9px 13px; box-shadow: 0 1px 3px rgba(15,23,42,.03); }
.rg-search:focus-within { border-color: #BFDBFE; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.rg-search svg { width: 17px; height: 17px; color: #94A3B8; flex-shrink: 0; }
.rg-search input { flex: 1; border: none; outline: none; font-size: 14px; color: #0F172A; background: transparent; font-family: inherit; }
.rg-search__clear { border: none; background: #F1F5F9; color: #64748B; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 11px; }

.rg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid #E2E8F0; background: #fff; color: #475569; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.rg-chip:hover { border-color: #CBD5E1; }
.rg-chip--active { background: #0066FF; border-color: #0066FF; color: #fff; }
.rg-chip__cnt { font-size: 11px; font-weight: 700; background: rgba(15,23,42,.06); color: inherit; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.rg-chip--active .rg-chip__cnt { background: rgba(255,255,255,.25); }

/* таблица */
.rg-table { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.rg-head, .rg-row { display: grid; grid-template-columns: 1.4fr 80px 150px 1.2fr 1.4fr 40px; gap: 14px; align-items: center; }
.rg-head { padding: 13px 20px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; }
.rg-row { padding: 14px 20px; border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: background .12s ease; }
.rg-row:last-child { border-bottom: none; }
.rg-row:hover { background: #F8FAFC; }
.rg-cell { font-size: 13.5px; color: #334155; min-width: 0; }
.rg-cell--name { font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-arch { font-family: monospace; font-weight: 700; font-size: 12px; color: #64748B; background: #F1F5F9; padding: 3px 7px; border-radius: 5px; }

/* KazScore-бар */
.rg-score { display: flex; align-items: center; gap: 8px; }
.rg-score__bar { flex: 1; height: 6px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.rg-score__fill { height: 100%; border-radius: 999px; background: #94A3B8; }
.rg-score__fill--green { background: #10B981; } .rg-score__fill--amber { background: #F59E0B; }
.rg-score__fill--red { background: #F43F5E; } .rg-score__fill--blue { background: #3B82F6; }
.rg-score__val { font-size: 12px; font-weight: 700; color: #475569; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.rg-stage { font-size: 12.5px; font-weight: 600; color: #475569; }
.rg-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.rg-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rg-status--green { color: #059669; } .rg-status--amber { color: #D97706; }
.rg-status--red { color: #DC2626; } .rg-status--blue { color: #2563EB; }
.rg-cell--act { text-align: right; }
.rg-open { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #E2E8F0; background: #fff; color: #64748B; font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s ease; }
.rg-open:hover { background: #0066FF; color: #fff; border-color: #0066FF; }

.rg-empty { text-align: center; padding: 44px 20px; color: #94A3B8; font-size: 14px; }
.rg-footer { margin-top: 14px; font-size: 12.5px; color: #94A3B8; text-align: right; }
.rg-footer span { font-weight: 700; color: #475569; }

@media (max-width: 900px) { .rg-head { display: none; } .rg-row { grid-template-columns: 1fr 1fr; gap: 8px; } .rg-cell--score, .rg-cell--act { display: none; } }

/* ==============================================================
   КАРТОЧКА КЛИЕНТА — панель действий (досье)
   ============================================================== */
.dossier-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.da-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid #E2E8F0; background: #fff; color: #334155; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; font-family: inherit; }
.da-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.da-btn:hover { background: #F8FAFC; border-color: #CBD5E1; color: #0F172A; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.06); }
.da-btn--primary { background: linear-gradient(135deg, #0A6EFF, #0052E0); color: #fff; border: none; box-shadow: 0 4px 14px rgba(0,102,255,.3); }
.da-btn--primary:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 6px 18px rgba(0,102,255,.4); }
.dossier-soon { font-size: 11.5px; color: #94A3B8; background: #F8FAFC; border: 1px dashed #E2E8F0; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; text-align: center; }

/* ==============================================================
   KAZSCORE — движок объяснимого скоринга
   ============================================================== */
.ks-workspace { padding: 24px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.ks-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.ks-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); margin-bottom: 16px; }
.ks-card__head { margin-bottom: 16px; }
.ks-card__title { font-size: 14px; font-weight: 700; color: #0F172A; }

/* форма */
.ks-form { position: sticky; top: 24px; margin-bottom: 0; }
.ks-presets { display: flex; gap: 8px; margin-bottom: 18px; }
.ks-preset { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid #E2E8F0; background: #F8FAFC; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.ks-preset:hover { background: #fff; border-color: #CBD5E1; transform: translateY(-1px); }
.ks-field { margin-bottom: 16px; }
.ks-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #64748B; margin-bottom: 8px; }
.ks-field label b { font-size: 13px; font-weight: 700; color: #0F172A; }
.ks-field input[type=range] { width: 100%; height: 6px; border-radius: 999px; background: #E2E8F0; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ks-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #0066FF; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,102,255,.4); cursor: pointer; }
.ks-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #0066FF; border: 3px solid #fff; cursor: pointer; }

/* кольцо */
.ks-gauge-card { display: flex; flex-direction: column; align-items: center; }
.ks-gauge { position: relative; width: 160px; height: 160px; }
.ks-gauge svg { width: 100%; height: 100%; }
.ks-gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ks-gauge__val { font-size: 44px; font-weight: 900; color: #0F172A; line-height: 1; }
.ks-gauge__max { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; margin-top: 2px; }
.ks-route { margin-top: 16px; font-size: 15px; font-weight: 800; }
.ks-route--green { color: #059669; } .ks-route--amber { color: #D97706; } .ks-route--red { color: #DC2626; }
.ks-thresholds { margin-top: 8px; font-size: 11.5px; color: #94A3B8; }
.ks-thresholds b { color: #475569; }

/* факторы */
.ks-factors { display: flex; flex-direction: column; gap: 2px; }
.ks-factor { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F1F5F9; }
.ks-factor__name { font-size: 13px; color: #475569; }
.ks-factor__val { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: #64748B; }
.ks-factor__val--pos { color: #059669; } .ks-factor__val--neg { color: #DC2626; }
.ks-factor--total { border-bottom: none; border-top: 2px solid #E2E8F0; margin-top: 4px; padding-top: 12px; }
.ks-factor--total .ks-factor__name { font-weight: 700; color: #0F172A; }
.ks-factor--total .ks-factor__val { font-size: 20px; color: #0F172A; }

/* блокеры / банки / советы */
.ks-blockers { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-blocker { font-size: 12px; font-weight: 700; color: #DC2626; background: #FEF2F2; border: 1px solid #FECACA; padding: 5px 10px; border-radius: 7px; }
.ks-banks { display: flex; flex-direction: column; gap: 8px; }
.ks-bank { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #334155; }
.ks-bank__p { font-size: 12px; font-weight: 700; color: #059669; }
.ks-tips { display: flex; flex-direction: column; gap: 10px; }
.ks-tip { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #334155; line-height: 1.4; }
.ks-tip__ic { flex-shrink: 0; }

@media (max-width: 900px) { .ks-grid { grid-template-columns: 1fr; } .ks-form { position: static; } }

/* ==============================================================
   ДОКУМЕНТЫ ДЕЛА (загрузчик на Storage)
   ============================================================== */
.doc-block { margin-bottom: 14px; }
.doc-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.doc-block__title { font-size: 13px; font-weight: 700; color: #0F172A; }
.doc-type { font-size: 12px; padding: 5px 8px; border: 1px solid #E2E8F0; border-radius: 7px; background: #fff; color: #334155; font-family: inherit; cursor: pointer; }

.doc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1.5px dashed #CBD5E1; border-radius: 12px; background: #F8FAFC; cursor: pointer; transition: all .15s ease; margin-bottom: 12px; position: relative; }
.doc-drop:hover { border-color: #0066FF; background: #EFF6FF; }
.doc-drop--busy { opacity: .6; pointer-events: none; }
.doc-drop svg { width: 22px; height: 22px; color: #64748B; }
.doc-drop span { font-size: 12.5px; color: #64748B; font-weight: 500; }
.doc-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; transition: border-color .15s ease; }
.doc-item:hover { border-color: #CBD5E1; }
.doc-item__main { flex: 1; min-width: 0; cursor: pointer; }
.doc-item__name { display: block; font-size: 13px; font-weight: 600; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item__main:hover .doc-item__name { color: #0066FF; }
.doc-item__meta { font-size: 11px; color: #94A3B8; }
.doc-item__del { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #FECACA; background: #fff; color: #DC2626; font-size: 12px; cursor: pointer; transition: all .15s ease; }
.doc-item__del:hover { background: #DC2626; color: #fff; }
.doc-empty { font-size: 12.5px; color: #94A3B8; text-align: center; padding: 12px 0; }

/* ==============================================================
   МАРШРУТИЗАЦИЯ (DTB / Санация / Квази)
   ============================================================== */
.rt-workspace { padding: 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 10; }
.rt-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-radius: 16px; margin-bottom: 18px; border: 1px solid #E2E8F0; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.03); border-left: 4px solid #94A3B8; }
.rt-head--green { border-left-color: #10B981; } .rt-head--amber { border-left-color: #F59E0B; } .rt-head--red { border-left-color: #F43F5E; }
.rt-head__title { font-size: 18px; font-weight: 800; color: #0F172A; }
.rt-head__sub { font-size: 13px; color: #64748B; margin-top: 2px; }
.rt-head__count { font-size: 22px; font-weight: 800; color: #0F172A; background: #F1F5F9; min-width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rt-list { display: flex; flex-direction: column; gap: 12px; }
.rt-card { display: flex; align-items: stretch; gap: 18px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 20px; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.03); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border-left: 3px solid #CBD5E1; }
.rt-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.07); }
.rt-card--green { border-left-color: #10B981; } .rt-card--amber { border-left-color: #F59E0B; } .rt-card--red { border-left-color: #F43F5E; }
.rt-card__main { flex: 1; min-width: 0; }
.rt-card__top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rt-card__name { font-size: 15px; font-weight: 800; color: #0F172A; }
.rt-card__p { font-size: 12px; font-weight: 700; color: #059669; background: #ECFDF5; padding: 2px 8px; border-radius: 6px; }
.rt-card__line { font-size: 13px; color: #334155; margin-top: 3px; }
.rt-card__line--dim { color: #94A3B8; }
.rt-card__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-content: center; }
.rt-status { font-size: 12px; font-weight: 700; }
.rt-status--green { color: #059669; } .rt-status--amber { color: #D97706; } .rt-status--red { color: #DC2626; } .rt-status--blue { color: #2563EB; }
.rt-act { padding: 7px 14px; border-radius: 9px; border: 1px solid #E2E8F0; background: #F8FAFC; color: #334155; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s ease; font-family: inherit; }
.rt-act:hover { background: #0066FF; border-color: #0066FF; color: #fff; }
.rt-empty { text-align: center; padding: 44px; color: #94A3B8; font-size: 14px; background: #fff; border: 1px dashed #E2E8F0; border-radius: 14px; }

/* KazScore — числовые поля ввода рядом со слайдером */
.ks-field__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.ks-field__top label { font-size: 12.5px; color: #64748B; margin: 0; }
.ks-num-wrap { display: inline-flex; align-items: center; gap: 5px; }
.ks-num { width: 96px; padding: 5px 8px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 13px; font-weight: 700; color: #0F172A; text-align: right; font-family: inherit; font-variant-numeric: tabular-nums; outline: none; transition: border-color .15s ease; -moz-appearance: textfield; }
.ks-num:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,.12); }
.ks-num::-webkit-outer-spin-button, .ks-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ks-unit { font-size: 11px; color: #94A3B8; font-weight: 600; }

/* ==============================================================
   БИЛЛИНГ — живые финансы (Escrow + Smart-Split)
   ============================================================== */
.bl-workspace { padding: 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 10; }
.bl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.bl-kpi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.bl-kpi__v { font-size: 24px; font-weight: 800; color: #0F172A; line-height: 1; }
.bl-kpi__l { font-size: 12px; color: #64748B; margin-top: 6px; }
.bl-kpi--amber { border-color: #FDE68A; } .bl-kpi--amber .bl-kpi__v { color: #D97706; }
.bl-kpi--green { border-color: #A7F3D0; } .bl-kpi--green .bl-kpi__v { color: #059669; }

.bl-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bl-bar__title { font-size: 15px; font-weight: 700; color: #0F172A; }
.bl-new { padding: 9px 16px; border-radius: 10px; border: none; background: linear-gradient(135deg, #0A6EFF, #0052E0); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,102,255,.3); transition: all .15s ease; font-family: inherit; }
.bl-new:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bl-new:disabled { opacity: .5; cursor: not-allowed; }
.bl-empty { padding: 28px; text-align: center; color: #64748B; font-size: 13.5px; line-height: 1.6; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 14px; }
.bl-empty b { color: #0F172A; }

.bl-list { display: flex; flex-direction: column; gap: 12px; }
.bl-deal { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(15,23,42,.03); border-left: 3px solid #CBD5E1; }
.bl-deal--escrow { border-left-color: #F59E0B; }
.bl-deal--settled { border-left-color: #10B981; }
.bl-deal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bl-deal__bank { font-size: 15px; font-weight: 800; color: #0F172A; margin-right: 12px; }
.bl-deal__amount { font-size: 14px; font-weight: 700; color: #334155; margin-right: 12px; }
.bl-deal__fee { font-size: 12.5px; color: #94A3B8; }
.bl-deal__fee b { color: #475569; }
.bl-deal__right { display: flex; align-items: center; gap: 12px; }
.bl-state { font-size: 12px; font-weight: 700; }
.bl-state--escrow { color: #D97706; } .bl-state--settled { color: #059669; }
.bl-settle { padding: 7px 14px; border-radius: 9px; border: none; background: #059669; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.bl-settle:hover { background: #047857; }
.bl-settle:disabled { opacity: .5; cursor: not-allowed; }

.bl-splits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E2E8F0; }
.bl-split { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 9px; padding: 9px 11px; }
.bl-split__who { display: block; font-size: 11px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .03em; }
.bl-split__pct { font-size: 11px; color: #94A3B8; margin-right: 6px; }
.bl-split__amt { font-size: 14px; font-weight: 800; color: #0F172A; }
.bl-split--platform { border-color: #BFDBFE; } .bl-split--platform .bl-split__amt { color: #2563EB; }
.bl-split--operator { border-color: #A7F3D0; } .bl-split--operator .bl-split__amt { color: #059669; }
.bl-split--referral { border-color: #FDE68A; }
.bl-split--specialists { border-color: #E2E8F0; }

@media (max-width: 900px) { .bl-kpis { grid-template-columns: repeat(2,1fr); } .bl-splits { grid-template-columns: repeat(2,1fr); } }

/* ==============================================================
   ИСТОЧНИКИ (партнёры)
   ============================================================== */
.pr-workspace { padding: 24px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 10; }
.pr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.pr-kpi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.pr-kpi__v { font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1; }
.pr-kpi__l { font-size: 12px; color: #64748B; margin-top: 6px; }
.pr-list { display: flex; flex-direction: column; gap: 12px; }
.pr-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 20px; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.03); transition: transform .15s ease, box-shadow .15s ease; }
.pr-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.07); }
.pr-card__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pr-card__main { flex: 1; min-width: 0; }
.pr-card__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pr-card__name { font-size: 15px; font-weight: 800; color: #0F172A; }
.pr-card__type { font-size: 11px; font-weight: 700; color: #64748B; background: #F1F5F9; padding: 2px 8px; border-radius: 6px; }
.pr-card__conv { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.pr-bar { flex: 1; height: 7px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.pr-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3B82F6, #2563EB); }
.pr-conv-val { font-size: 12px; font-weight: 700; color: #2563EB; min-width: 34px; }
.pr-card__side { flex-shrink: 0; text-align: right; }
.pr-card__clients { font-size: 13px; color: #475569; }
.pr-card__clients b { font-size: 16px; font-weight: 800; color: #0F172A; }
.pr-status { font-size: 11.5px; font-weight: 700; display: block; margin-top: 4px; }
.pr-status--green { color: #059669; } .pr-status--amber { color: #D97706; } .pr-status--red { color: #DC2626; }

/* ==============================================================
   ZERO-POACHING (защита от увода)
   ============================================================== */
.zp-workspace { padding: 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 10; }
.zp-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #0F172A, #1E293B); border-radius: 18px; padding: 22px 26px; margin-bottom: 18px; color: #fff; }
.zp-hero__ic { font-size: 38px; flex-shrink: 0; }
.zp-hero__title { font-size: 19px; font-weight: 800; }
.zp-hero__sub { font-size: 13px; color: #CBD5E1; margin-top: 4px; line-height: 1.5; max-width: 720px; }

.zp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.zp-kpi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.zp-kpi__v { font-size: 28px; font-weight: 800; color: #0F172A; line-height: 1; }
.zp-kpi__l { font-size: 12px; color: #64748B; margin-top: 6px; }
.zp-kpi--green { border-color: #A7F3D0; } .zp-kpi--green .zp-kpi__v { color: #059669; }
.zp-kpi--red { border-color: #FECACA; } .zp-kpi--red .zp-kpi__v { color: #DC2626; }

.zp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.zp-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.zp-card__head { font-size: 14px; font-weight: 700; color: #0F172A; margin-bottom: 14px; }

.zp-rules { display: flex; flex-direction: column; gap: 12px; }
.zp-rule { display: flex; gap: 10px; align-items: flex-start; }
.zp-rule__dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.zp-rule__text { font-size: 13px; color: #334155; line-height: 1.45; }

.zp-escrow { display: flex; flex-direction: column; gap: 8px; }
.zp-esc { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; border-left: 3px solid #94A3B8; }
.zp-esc--active { border-left-color: #F59E0B; }
.zp-esc--resolved { border-left-color: #10B981; opacity: .75; }
.zp-esc__hash { display: block; font-family: monospace; font-size: 12.5px; font-weight: 700; color: #0F172A; }
.zp-esc__src { font-size: 11px; color: #94A3B8; }
.zp-esc__right { display: flex; align-items: center; gap: 10px; }
.zp-esc__days { font-size: 11px; color: #64748B; }
.zp-esc__days b { color: #D97706; font-weight: 800; }
.zp-esc__state { font-size: 11px; font-weight: 700; color: #475569; }

@media (max-width: 900px) { .zp-kpis { grid-template-columns: 1fr; } .zp-cols { grid-template-columns: 1fr; } }

/* ==============================================================
   AI-РЕКОМЕНДАЦИИ / AI-ОБУЧЕНИЕ (Matte)
   ============================================================== */
.air-workspace, .ail-workspace { padding: 24px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 10; }
.air-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.air-list { display: flex; flex-direction: column; gap: 12px; }
.air-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(15,23,42,.03); border-left: 3px solid #CBD5E1; transition: box-shadow .15s ease, transform .15s ease; }
.air-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.air-card--high { border-left-color: #F43F5E; }
.air-card--medium { border-left-color: #F59E0B; }
.air-card--low { border-left-color: #94A3B8; }
.air-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.air-prio { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 6px; }
.air-prio--high { color: #DC2626; background: #FEF2F2; }
.air-prio--medium { color: #D97706; background: #FFFBEB; }
.air-prio--low { color: #64748B; background: #F1F5F9; }
.air-src { font-size: 12px; color: #94A3B8; font-weight: 600; }
.air-text { font-size: 14px; color: #334155; line-height: 1.5; margin-bottom: 14px; }
.air-acts { display: flex; gap: 8px; }
.air-acts .btn-primary, .air-acts .btn-ghost { width: auto; padding: 8px 16px; }
.air-empty { text-align: center; padding: 44px; color: #94A3B8; font-size: 14px; background: #fff; border: 1px dashed #E2E8F0; border-radius: 14px; }

.ail-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.ail-kpi { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.ail-kpi__v { font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1; }
.ail-kpi__l { font-size: 12px; color: #64748B; margin-top: 6px; }
.ail-kpi--green .ail-kpi__v { color: #059669; }
.ail-kpi--red .ail-kpi__v { color: #DC2626; }
.ail-kpi--blue .ail-kpi__v { color: #2563EB; }
.ail-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.03); }
.ail-card__head { font-size: 14px; font-weight: 700; color: #0F172A; margin-bottom: 14px; }
.ail-lake { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ail-lake__grp { }
.ail-lake__term { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; margin-bottom: 8px; }
.ail-lake__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #F1F5F9; font-size: 13px; color: #475569; }
.ail-lake__row b { color: #0F172A; font-weight: 700; }

@media (max-width: 900px) { .ail-kpis { grid-template-columns: repeat(2,1fr); } .ail-lake { grid-template-columns: 1fr; } }

/* ==============================================================
   ФОРМА «НОВЫЙ ЛИД»
   ============================================================== */
.kpi-newlead { padding: 9px 16px; border-radius: 10px; border: none; background: linear-gradient(135deg, #0A6EFF, #0052E0); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,102,255,.3); transition: all .15s ease; font-family: inherit; white-space: nowrap; }
.kpi-newlead:hover { transform: translateY(-1px); filter: brightness(1.05); }

.lf-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lf-modal { width: 560px; max-width: 100%; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(15,23,42,.3); }
.lf-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid #F1F5F9; }
.lf-head__title { font-size: 18px; font-weight: 800; color: #0F172A; }
.lf-head__sub { font-size: 12.5px; color: #64748B; margin-top: 3px; }
.lf-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #E2E8F0; background: #fff; color: #64748B; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.lf-close:hover { background: #F1F5F9; color: #0F172A; }
.lf-body { padding: 20px 24px; }
.lf-row { display: flex; gap: 12px; }
.lf-field { flex: 1; margin-bottom: 14px; min-width: 0; }
.lf-field--wide { flex: 2; }
.lf-field label { display: block; font-size: 12px; font-weight: 600; color: #64748B; margin-bottom: 6px; }
.lf-field input { width: 100%; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 14px; color: #0F172A; font-family: inherit; outline: none; transition: border-color .15s ease, box-shadow .15s ease; -moz-appearance: textfield; }
.lf-field input:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,.12); }
.lf-field input::-webkit-outer-spin-button, .lf-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lf-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid #F1F5F9; }
.lf-foot .btn-primary, .lf-foot .btn-ghost { width: auto; padding: 11px 20px; }

/* ════════════════════════════════════════════════════
   ТЕРМИНАЛ ЮРИСТ (LAW) — Matte Soft-UI, цвет отдела #D4AF37
   ════════════════════════════════════════════════════ */
/* — степпер снятия ареста ЧСИ — */
.law-cases { display: flex; flex-direction: column; gap: 12px; }
.law-case { border: 1px solid #EEF0F4; border-radius: 14px; padding: 14px 16px; background: #fff; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease; }
.law-case:hover { box-shadow: 0 6px 22px rgba(15,23,42,.07); border-color: #E4D9B8; transform: translateY(-1px); }
.law-case__top { display: flex; justify-content: space-between; align-items: baseline; }
.law-case__name { font-weight: 650; color: #0F172A; font-size: 15px; }
.law-case__amount { font-weight: 650; color: #B58A1B; font-size: 14px; font-variant-numeric: tabular-nums; }
.law-case__meta { font-size: 12.5px; color: #64748B; margin: 2px 0 12px; }
.law-case__meta b { color: #334155; font-weight: 600; }
.law-case__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.law-case__step { font-size: 12px; color: #64748B; }

/* — горизонтальный степпер 5 узлов — */
.law-step { display: flex; align-items: flex-start; gap: 0; }
.law-step__node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.law-step__node::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #E8EBF0; z-index: 0; }
.law-step__node:first-child::before { display: none; }
.law-step__node.is-done::before, .law-step__node.is-now::before { background: #D4AF37; }
.law-step__dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; background: #F1F3F7; color: #94A3B8; border: 2px solid #E8EBF0; transition: all .15s ease; }
.law-step__node.is-done .law-step__dot { background: #D4AF37; color: #fff; border-color: #D4AF37; }
.law-step__node.is-now .law-step__dot { background: #fff; color: #B58A1B; border-color: #D4AF37; box-shadow: 0 0 0 4px rgba(212,175,55,.16); }
.law-step__lbl { font-size: 10.5px; line-height: 1.2; color: #94A3B8; max-width: 64px; }
.law-step__node.is-done .law-step__lbl, .law-step__node.is-now .law-step__lbl { color: #475569; font-weight: 600; }
.law-step--big { margin: 18px 0 6px; }
.law-step--big .law-step__dot { width: 30px; height: 30px; font-size: 13px; }
.law-step--big .law-step__node::before { top: 15px; }
.law-step--big .law-step__lbl { font-size: 11.5px; max-width: 80px; }

/* — бейджи статусов — */
.law-badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.law-badge--blue { background: #EAF2FF; color: #1D4ED8; }
.law-badge--amber { background: #FEF6E7; color: #B45309; }
.law-badge--red { background: #FDECEC; color: #DC2626; }
.law-badge--green { background: #E9F9EF; color: #15803D; }

/* — дедлайны — */
.law-dl { display: flex; flex-direction: column; gap: 2px; }
.law-dl__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F4F6F9; }
.law-dl__row:last-child { border-bottom: none; }
.law-dl__body { flex: 1; min-width: 0; }
.law-dl__name { font-size: 13.5px; font-weight: 600; color: #0F172A; }
.law-dl__act { font-size: 11.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.law-dl__date { font-size: 12.5px; font-weight: 650; color: #334155; font-variant-numeric: tabular-nums; }

/* — AI прогнозы судей — */
.law-ai { display: flex; flex-direction: column; gap: 8px; }
.law-ai__row { font-size: 12.5px; line-height: 1.45; color: #334155; padding: 10px 12px; border-radius: 10px; background: #F8FAFC; border-left: 3px solid #CBD5E1; }
.law-ai__row.is-high { background: #FDF4F4; border-left-color: #E11D48; }
.law-ai__row.is-medium { background: #FFFBEB; border-left-color: #D97706; }
.law-ai__row.is-low { background: #F8FAFC; border-left-color: #94A3B8; }

/* — ядро ЧСИ: шапка + крупные карточки — */
.law-bailiff-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 16px; }
.law-bailiff-title { font-size: 19px; font-weight: 700; color: #0F172A; }
.law-bailiff-sub { font-size: 13px; color: #64748B; margin-top: 3px; }
.law-bcards { display: flex; flex-direction: column; gap: 16px; }
.law-bcard { background: #fff; border: 1px solid #EEF0F4; border-radius: 16px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.law-bcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.law-bcard__name { font-size: 16px; font-weight: 700; color: #0F172A; }
.law-bcard__meta { font-size: 12.5px; color: #64748B; margin-top: 3px; }
.law-bcard__meta b { color: #334155; font-weight: 600; }
.law-bcard__next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; background: #FBFAF5; border: 1px solid #F0EAD6; border-radius: 12px; }
.law-bcard__nexttxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.law-bcard__nextlbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: #B58A1B; font-weight: 700; }
.law-bcard__nextval { font-size: 14px; font-weight: 650; color: #0F172A; }
.law-bcard__nexthint { font-size: 12px; color: #64748B; }
.law-bcard__next .btn-primary { width: auto; padding: 10px 20px; white-space: nowrap; }

/* ─── ВХОДЯЩИЕ · назначения из приёмной ─── */
.law-inbox-card { position: relative; border-left: 3px solid #2563EB; }
.law-inbox-ribbon { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #1D4ED8; background: #EAF2FF; border: 1px solid #D6E4FF; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.law-inbox-score { text-align: right; flex-shrink: 0; }
.law-inbox-score span { font-size: 20px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; line-height: 1; }
.law-inbox-score small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: #A8A29E; font-weight: 700; margin-top: 3px; }
.law-inbox-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.law-inbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEF0F4; }
.law-inbox-time { font-size: 12px; color: #94A3B8; }
.law-inbox-acts { display: flex; gap: 10px; }
.law-inbox-acts .btn-primary, .law-inbox-acts .btn-danger-outline { width: auto; padding: 9px 18px; white-space: nowrap; }
.law-inbox-empty { text-align: center; padding: 56px 20px; color: #94A3B8; }
.law-inbox-empty__ic { font-size: 44px; margin-bottom: 14px; }
.law-inbox-empty h3 { font-size: 16px; font-weight: 700; color: #475569; margin: 0 0 6px; }
.law-inbox-empty p { font-size: 13px; margin: 0; }

/* ─── ПАПКА ДЕЛА (виджет документов) ─── */
.case-folder { background: #fff; border: 1px solid #EEF0F4; border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.law-bcard__headacts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.case-folder-btn { font-size: 12px; font-weight: 600; color: #1D4ED8; background: #EAF2FF; border: 1px solid #D6E4FF; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.case-folder-btn:hover { background: #DBE9FF; border-color: #B9D2FF; }
.law-cases__dl { font-size: 11.5px; color: #94A3B8; white-space: nowrap; }
.law-cases__dl b { color: #475569; font-weight: 600; }

/* ─── Биржа: документы дела (есть/нужно) ─── */
.bounty-docs { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding-top: 12px; border-top: 1px solid #F0EAD6; }
.bounty-docs__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bounty-docs__lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.bounty-docs__lbl--have { color: #15803D; }
.bounty-docs__lbl--need { color: #B45309; }
.bounty-doc-chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid transparent; }
.bounty-doc-chip--have { background: #E9F9EF; color: #15803D; border-color: #BBF7D0; }
.bounty-doc-chip--need { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }

/* ─── Папка дела: статус документа + версии ─── */
.doc-item__side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doc-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.doc-status--draft { background: #F1F5F9; color: #64748B; }
.doc-status--final { background: #EAF2FF; color: #1D4ED8; }
.doc-status--filed { background: #E9F9EF; color: #15803D; }
.doc-advance { font-size: 11px; font-weight: 600; color: #0066FF; background: transparent; border: 1px solid #C7DBFF; padding: 3px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.doc-advance:hover { background: #EFF6FF; border-color: #0066FF; }

/* ─── Суд: блок AI-прогноза в карточке ─── */
.law-court__ai { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; background: #FBFAF5; border: 1px solid #F0EAD6; border-radius: 12px; }
.law-court__ailbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #B58A1B; white-space: nowrap; }
.law-court__aival { font-size: 13px; color: #334155; font-weight: 600; }

/* ─── Биржа: полная карточка дела (боковая панель) ─── */
.bcd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcd-row { display: flex; flex-direction: column; gap: 6px; }
.bcd-cell { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #F8FAFC; border: 1px solid #EEF0F4; border-radius: 10px; }
.bcd-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; }
.bcd-val { font-size: 13.5px; color: #0F172A; font-weight: 600; line-height: 1.5; }
.bcd-row .bcd-val { font-weight: 500; }

/* Вторичная кнопка (была не стилизована) */
.btn-secondary { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #334155; border: 1px solid #CBD5E1; border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn-secondary:hover { border-color: #0066FF; color: #0066FF; background: #F8FAFC; }
.btn-secondary .ic { font-size: 14px; }

/* Справочники LAW: поиск + Matte-таблица */
.law-ref-search { background: #fff; border: 1px solid #CBD5E1; border-radius: 10px; padding: 9px 14px; font-size: 13px; color: #0F172A; outline: none; min-width: 260px; transition: border .15s; }
.law-ref-search:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,.08); }
.law-table { width: 100%; border-collapse: collapse; }
.law-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; padding: 12px 18px; background: #F8FAFC; border-bottom: 1px solid #EEF0F4; }
.law-table td { padding: 13px 18px; font-size: 13.5px; color: #475569; border-bottom: 1px solid #F1F5F9; }
.law-table tbody tr:hover td { background: #F8FAFC; }
.law-table tbody tr:last-child td { border-bottom: none; }

/* Генератор (Matte): форма + живое превью */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .gen-grid { grid-template-columns: 1fr; } }
.gen-preview-wrap { min-height: 280px; }
.gen-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; height: 100%; min-height: 240px; color: #94A3B8; font-size: 13px; padding: 24px; }
.gen-empty__ic { font-size: 40px; }
.gen-doc { background: #FBFAF5; border: 1px solid #F0EAD6; border-radius: 12px; padding: 20px 22px; font-size: 13.5px; line-height: 1.7; }

/* Lex-Check (Matte) */
.lex-autosave-m { font-size: 11px; color: #94A3B8; }
.lexm-doc { width: 100%; min-height: 360px; resize: vertical; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; font-size: 13.5px; line-height: 1.7; color: #1F2937; background: #FBFAF5; outline: none; font-family: 'Inter', sans-serif; }
.lexm-doc:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,.06); }
.lexm-list { display: flex; flex-direction: column; gap: 12px; }
.lexm-alert { border: 1px solid #EEF0F4; border-left-width: 3px; border-radius: 12px; padding: 14px 16px; background: #fff; transition: opacity .2s; }
.lexm-alert.is-applied { opacity: .6; }
.lexm-alert.is-applied .lexm-alert__txt { text-decoration: line-through; color: #94A3B8; }
.lexm-alert--danger { border-left-color: #DC2626; }
.lexm-alert--warn { border-left-color: #B45309; }
.lexm-alert--info { border-left-color: #1D4ED8; }
.lexm-alert__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lexm-alert__ic { width: 18px; height: 18px; flex-shrink: 0; }
.lexm-alert__ic svg { width: 18px; height: 18px; }
.lexm-ic--danger { color: #DC2626; } .lexm-ic--warn { color: #B45309; } .lexm-ic--info { color: #1D4ED8; }
.lexm-alert__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
.lexm-alert__txt { font-size: 13px; line-height: 1.6; color: #475569; margin: 0 0 10px; }
.lexm-alert__txt m { background: #FEF3C7; color: #92400E; padding: 0 3px; border-radius: 3px; font-style: normal; }
.lexm-note { font-size: 11.5px; color: #94A3B8; margin-top: 14px; line-height: 1.5; }

/* ════════════════════════════════════════════════════
   ЮРИСТ · КИЛЛЕР-ФИЧИ — слоновая кость / золото / графит
   ════════════════════════════════════════════════════ */
.law-ivory { background: #FFFCF5; }
.law-badge--graphite { background: #1F2937; color: #F3F4F6; }

/* ─── БИРЖА ДЕЛ (Bounty Board) ─── */
.bounty-hero { background: #fff; border: 1px solid #F0EAD6; border-radius: 20px; padding: 30px 32px; text-align: center; max-width: 760px; margin: 0 auto 24px; box-shadow: 0 2px 14px rgba(120,90,20,.05); }
.bounty-hero__title { font-size: 26px; font-weight: 800; color: #0F172A; letter-spacing: -.01em; }
.bounty-hero__sub { font-size: 13.5px; color: #78716C; margin: 8px auto 22px; max-width: 520px; line-height: 1.5; }
.bounty-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.bounty-stat { padding: 16px 12px; border-radius: 14px; background: #F8FAFC; border: 1px solid #EEF0F4; }
.bounty-stat--green { background: #ECFDF5; border-color: #BBF7D0; }
.bounty-stat--amber { background: #FFFBEB; border-color: #FDE68A; }
.bounty-stat__val { font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1; font-variant-numeric: tabular-nums; }
.bounty-stat--green .bounty-stat__val { color: #15803D; }
.bounty-stat--amber .bounty-stat__val { color: #B45309; }
.bounty-stat__lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #94A3B8; font-weight: 700; margin-top: 6px; }

.bounty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.bounty-card { background: #fff; border: 1px solid #EEF0F4; border-radius: 18px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(15,23,42,.04); display: flex; flex-direction: column; transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease; }
.bounty-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,.10); border-color: #CBD5E1; transform: translateY(-2px); }
.bounty-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bounty-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #64748B; background: #F1F5F9; padding: 3px 9px; border-radius: 7px; }
.bounty-escrow { display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #15803D; background: #DCFCE7; padding: 4px 9px; border-radius: 7px; }
.bounty-escrow svg { width: 12px; height: 12px; }
.bounty-escrow--off { color: #9A3412; background: #FEF3C7; }
.bounty-card__grade { display: flex; gap: 8px; margin-bottom: 12px; }
.bounty-diff { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.bounty-diff--green { background: #ECFDF5; color: #15803D; }
.bounty-diff--amber { background: #FFFBEB; color: #B45309; }
.bounty-diff--red { background: #FEF2F2; color: #DC2626; }
.bounty-card__title { font-size: 15.5px; font-weight: 700; color: #0F172A; line-height: 1.3; margin-bottom: 6px; }
.bounty-card__client { font-size: 13px; color: #64748B; margin-bottom: 18px; }
.bounty-card__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid #F1F5F9; margin-top: auto; margin-bottom: 16px; }
.bounty-card__lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #94A3B8; font-weight: 700; }
.bounty-card__price { font-size: 17px; font-weight: 800; color: #0F172A; margin-top: 2px; }
.bounty-card__time { font-size: 13.5px; font-weight: 650; color: #334155; margin-top: 4px; }
.bounty-take { width: 100%; padding: 12px; border-radius: 12px; background: #0066FF; color: #fff; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: background .15s ease; font-family: inherit; }
.bounty-take:hover:not(:disabled) { background: #2563EB; }
.bounty-take:disabled { background: #E7E5E4; color: #A8A29E; cursor: not-allowed; }

/* ─── LEX-CHECK (Split-Screen Validator) ─── */
.lex-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: calc(100vh - 200px); min-height: 520px; }
@media (max-width: 1000px) { .lex-split { grid-template-columns: 1fr; height: auto; } }
.lex-pane { border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.lex-pane--doc { background: #FFFCF5; border: 1px solid #EDE9E0; box-shadow: 0 2px 12px rgba(120,90,20,.05); }
.lex-pane--ai { background: #0F172A; border: 1px solid #1E293B; box-shadow: 0 10px 34px rgba(15,23,42,.22); }
.lex-pane__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #F0EAD6; background: #FFFDF8; }
.lex-pane__head--dark { background: #131C2E; border-bottom-color: #1E293B; }
.lex-pane__title { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #44403C; }
.lex-pane__title svg { color: #B45309; }
.lex-pane__title--light { color: #F1F5F9; }
.lex-pane__title--light svg { color: #FBBF24; }
.lex-autosave { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #15803D; background: #DCFCE7; padding: 4px 9px; border-radius: 7px; }
.lex-doc { flex: 1; width: 100%; padding: 26px 30px; resize: none; outline: none; border: none; background: transparent; color: #1C1917; font-size: 15px; line-height: 1.75; font-family: Georgia, 'Times New Roman', 'Playfair Display', serif; }
.lex-run { font-size: 12px; font-weight: 700; color: #FBBF24; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.3); padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: background .15s ease; font-family: inherit; }
.lex-run:hover { background: rgba(251,191,36,.24); }
.lex-report { flex: 1; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lex-report__cap { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #64748B; text-align: center; }
.lex-alert { padding: 16px; border-radius: 14px; border: 1px solid; }
.lex-alert--danger { background: rgba(244,63,94,.10); border-color: rgba(244,63,94,.28); }
.lex-alert--info { background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.26); }
.lex-alert--warn { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.26); }
.lex-alert__head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-weight: 700; font-size: 13px; }
.lex-alert__ic { display: inline-flex; }
.lex-alert__ic svg { width: 16px; height: 16px; }
.lex-alert--danger .lex-alert__head { color: #FB7185; }
.lex-alert--info .lex-alert__head { color: #38BDF8; }
.lex-alert--warn .lex-alert__head { color: #FBBF24; }
.lex-alert__txt { font-size: 13px; line-height: 1.6; color: #CBD5E1; margin: 0; }
.lex-alert__txt m { background: #1E293B; color: #fff; padding: 1px 6px; border-radius: 5px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-style: normal; }
.lex-alert__fix { margin-top: 12px; font-size: 12px; font-weight: 700; color: #0F172A; background: #fff; border: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: background .15s ease; font-family: inherit; }
.lex-alert__fix:hover { background: #E2E8F0; }
.lex-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #64748B; font-size: 13px; line-height: 1.55; padding: 30px; max-width: 320px; margin: 0 auto; }
.lex-empty svg { color: #475569; }
