/* ===== Анализ ссылочной массы · ITSEO дизайн-система ===== */
.bl {
  --t: #182033;
  --m: #596579;
  --b: #e2e7ee;
  --a: #8f5aff;
  --ah: #7142d4;
  --as: #f1edff;
  --a2: #2ec5c0;
  --a2s: #e6faf9;
  --sf: #f8fafc;
  --sfh: #f1f5f9;
  --bdc: #cbd5e1;
  --g: #16a34a;
  --gs: #ecfdf5;
  --y: #d97706;
  --ys: #fffbeb;
  --r: #dc2626;
  --rs: #fef2f2;
  --bl: #2563eb;
  --bls: #eff6ff;
  --rad: 10px;
  color: var(--t);
  text-align: left;
  min-width: 0;
}

.bl h1, .bl h2, .bl h3 {
  text-align: left;
  color: var(--t);
}

.bl * {
  box-sizing: border-box;
}

.bl .card {
  border: 1px solid var(--b);
  border-radius: var(--rad);
  box-shadow: none;
  background: #fff;
  min-width: 0;
}

.bl .card-body {
  min-width: 0;
}

.bl .form-control,
.bl .custom-select {
  border-radius: 8px;
  border-color: #d5dce6;
  color: var(--t);
}

.bl .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.bl .form-control-sm,
.bl .custom-select-sm {
  border-radius: 6px;
}

.bl .form-control:focus,
.bl .custom-select:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 .2rem rgba(143, 90, 255, .15);
}

.bl .btn {
  border-radius: 8px;
}

.bl .btn-sm {
  border-radius: 6px;
}

.bl .btn-primary {
  background: var(--a);
  border-color: var(--a);
}

.bl .btn-primary:hover,
.bl .btn-primary:focus {
  background: var(--ah);
  border-color: var(--ah);
}

.bl .btn-primary:disabled {
  background: #c6c6c6;
  border-color: #c6c6c6;
  cursor: not-allowed;
}

.bl .btn-outline-secondary {
  border-color: var(--bdc);
  color: var(--t);
  background: #fff;
}

.bl .btn-outline-secondary:hover,
.bl .btn-outline-secondary:focus {
  background: var(--sfh);
  border-color: #94a3b8;
  color: var(--t);
  box-shadow: none;
}

.bl .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--a);
  border-color: var(--a);
}

.bl .table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bl-title-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

/* Вкладки режимов (скопировано из shared/mode-switcher.blade.php, т.к. заменяемый блок удаляет inline-стили донора) */
.bl .tool-mode-switcher-container {
  position: relative;
  background-color: #f7f8fa;
  border-radius: 8px;
  padding: 0.5rem 1.25rem 0 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
  max-width: 100%;
}

.bl .tool-mode-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  min-width: 0;
}

.bl .tool-mode-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem 0.65rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #555e68;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.bl .tool-mode-tab:hover {
  color: #1a202c;
  text-decoration: none;
}

.bl .tool-mode-tab.active {
  color: var(--a) !important;
  font-weight: 700;
  border-bottom: 2.5px solid var(--a);
}

@media (max-width: 767.98px) {
  .bl .tool-mode-switcher-container {
    padding: 0.375rem 0.65rem 0 0.65rem;
    overflow: hidden;
  }
  .bl .tool-mode-switcher-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 2px;
  }
  .bl .tool-mode-switcher-tabs::-webkit-scrollbar {
    display: none;
  }
  .bl .tool-mode-tab {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0.5rem 0.35rem 0.6rem 0.35rem;
  }
  .bl .tool-mode-switcher-container[data-mode-count="2"] .tool-mode-switcher-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.5rem;
    overflow: visible;
  }
  .bl .tool-mode-switcher-container[data-mode-count="2"] .tool-mode-tab {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.25rem;
    white-space: normal;
    text-align: center;
    font-size: 0.875rem;
  }
}

.bl-nowrap {
  white-space: nowrap !important;
}

.bl-tool-badge {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--as);
  color: var(--a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl-h {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.bl-sub {
  color: var(--m);
  font-size: .875rem;
  line-height: 1.45;
}

.bl-btn-ghost {
  border: 0;
  background: none;
  color: var(--a);
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

.bl-btn-ghost:hover {
  text-decoration: underline;
  color: var(--ah);
}

.bl-btn-ghost:disabled {
  color: #b8bfcc;
  cursor: not-allowed;
  text-decoration: none;
}

.bl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.bl-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

/* ----- Источники и бейджи ----- */
.bl-src-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.bl-src-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.bl-src-prcy {
  background: var(--as);
  color: #6333d9;
  border: 1px solid #ddd2ff;
}

.bl-src-scrappa {
  background: var(--a2s);
  color: #0e7470;
  border: 1px solid #b5efec;
}

.bl-src-itseo {
  background: var(--sfh);
  color: var(--m);
  border: 1px solid var(--b);
}

.bl-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.bl-badge-ok { background: var(--gs); color: #15803d; border: 1px solid #bbf7d0; }
.bl-badge-warn { background: var(--ys); color: #b45309; border: 1px solid #fde68a; }
.bl-badge-bad { background: var(--rs); color: #b91c1c; border: 1px solid #fecaca; }
.bl-badge-info { background: var(--bls); color: #1d4ed8; border: 1px solid #bfdbfe; }
.bl-badge-muted { background: var(--sfh); color: var(--m); border: 1px solid var(--b); }

/* ----- Экран запуска ----- */
.bl-launch-row {
  display: flex;
  gap: .65rem;
  align-items: stretch;
}

.bl-launch-row .bl-input-row {
  flex: 1 1 auto;
  min-width: 0;
}

.bl-launch-row .bl-input-row .form-control,
.bl-launch-btn {
  min-height: 44px;
}

.bl-launch-btn {
  flex-shrink: 0;
  min-width: 195px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bl-launch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .9rem;
  font-size: .8125rem;
  color: var(--m);
  margin-top: .65rem;
}

.bl-included-wrap {
  border-top: 1px solid var(--b);
  margin-top: 1rem;
  padding-top: .9rem;
}

.bl-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.bl-inc-item {
  background: var(--sf);
  border: 1px solid var(--b);
  border-radius: 9px;
  padding: .65rem .8rem;
}

.bl-inc-title {
  font-size: .84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .25rem;
}

.bl-inc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bl-inc-desc {
  font-size: .78rem;
  color: var(--m);
  line-height: 1.38;
}

.bl-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.bl-input-row .form-control {
  padding-right: 2.5rem;
  font-weight: 500;
  height: 100%;
}

.bl-clear-btn {
  position: absolute;
  right: .4rem;
  border: 0;
  background: transparent;
  color: var(--m);
  padding: .15rem .45rem;
  font-size: 1.15rem;
  line-height: 1;
}

.bl-clear-btn:hover {
  background: var(--sfh);
  color: var(--t);
}

.bl-field-error {
  color: var(--r);
  font-size: .8125rem;
  margin-top: .35rem;
  font-weight: 500;
}

.bl-radio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}

.bl-radio-card {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid var(--b);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  transition: border-color .15s, background .15s;
}

.bl-radio-card:hover {
  border-color: #b79cff;
}

.bl-radio-card.is-selected {
  border-color: var(--a);
  background: #faf8ff;
}

.bl-radio-card input {
  margin-top: .22rem;
  accent-color: var(--a);
  flex-shrink: 0;
}

.bl-rc-title {
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  line-height: 1.3;
}

.bl-rc-desc {
  font-size: .78rem;
  color: var(--m);
  margin-top: .2rem;
  line-height: 1.35;
}

.bl-cost-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--sfh);
  color: var(--t);
  border: 1px solid var(--b);
}

.bl-check-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bl-inline-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--b);
}

.bl-net-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: 9px;
  background: var(--sf);
  border: 1px solid var(--b);
}

.bl-net-val {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ----- Прогресс ----- */
.bl-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bl-prog-pct {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--a);
  font-variant-numeric: tabular-nums;
}

.bl-prog-track {
  height: 10px;
  border-radius: 999px;
  background: var(--sfh);
  overflow: hidden;
  border: 1px solid var(--b);
}

.bl-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--a2));
  transition: width .3s ease;
}

.bl-steps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bl-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--b);
  background: var(--sf);
  font-size: .875rem;
}

.bl-step.is-active {
  border-color: var(--a);
  background: #faf8ff;
}

.bl-step.is-done {
  border-color: #bbf7d0;
  background: #f5fcf7;
}

.bl-prog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ----- Шапка отчёта ----- */
.bl-rep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
}

.bl-rep-id {
  min-width: 0;
  flex: 1 1 360px;
}

.bl-rep-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}

.bl-rep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .8rem;
  color: var(--m);
}

.bl-rep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.bl-subtabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: .35rem;
  border-top: 1px solid var(--b);
  padding-top: .75rem;
  scrollbar-width: none;
}

.bl-subtabs::-webkit-scrollbar {
  display: none;
}

.bl-subtab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--m);
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.bl-subtab:hover {
  background: var(--sfh);
  color: var(--t);
}

.bl-subtab.active {
  background: var(--as);
  color: var(--ah);
  border-color: #d9cbff;
}

/* ----- Вердикт ----- */
.bl-verdict {
  padding: .9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #d9cbff;
  background: linear-gradient(135deg, #faf8ff 0%, #f3faff 100%);
}

.bl-verdict.is-ok {
  border-color: #bbf7d0;
  background: #f4fbf7;
}

.bl-verdict.is-warn {
  border-color: #fde68a;
  background: #fffcf2;
}

.bl-verdict.is-bad {
  border-color: #fecaca;
  background: #fef5f5;
}

.bl-verdict-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .3rem;
}

.bl-verdict-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-top: .45rem;
}

.bl-verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
}

.bl-verdict-main {
  flex: 1 1 380px;
  min-width: 0;
}

.bl-score-box {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border: 1px solid var(--b);
  border-radius: 10px;
  padding: .55rem .85rem;
  flex-shrink: 0;
}

.bl-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bl-actions-box {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(24, 32, 51, .08);
}

.bl-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .45rem;
}

.bl-action-item {
  background: #fff;
  border: 1px solid var(--b);
  border-radius: 8px;
  padding: .55rem .7rem;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .3rem;
}

.bl-pill-btn {
  border: 1px solid var(--b);
  background: #fff;
  color: var(--t);
  border-radius: 999px;
  padding: .22rem .65rem;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.bl-pill-btn:hover {
  border-color: var(--a);
}

.bl-pill-btn.is-active {
  outline: 2px solid var(--a);
  outline-offset: 1px;
}

.bl-pill-btn.is-ok { background: var(--gs); color: #15803d; border-color: #bbf7d0; }
.bl-pill-btn.is-warn { background: var(--ys); color: #b45309; border-color: #fde68a; }
.bl-pill-btn.is-bad { background: var(--rs); color: #b91c1c; border-color: #fecaca; }

.bl-gap-pages {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--b);
}

@media (max-width: 991.98px) {
  .bl-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Сетки карточек ----- */
.bl-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bl-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.bl-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}

/* Триумвират авторитетности */
.bl-auth-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--b);
  border-radius: var(--rad);
  background: #fff;
  min-width: 0;
}

.bl-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.bl-ring-val {
  position: absolute;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bl-auth-body {
  min-width: 0;
  flex: 1;
}

.bl-auth-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--m);
}

.bl-auth-sub {
  font-size: .8rem;
  color: var(--m);
  margin-top: .2rem;
  line-height: 1.35;
}

.bl-iks-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Кросс-сверка KPI */
.bl-kpi-box {
  padding: .8rem .9rem;
  border-radius: 9px;
  border: 1px solid var(--b);
  background: var(--sf);
  min-width: 0;
}

.bl-kpi-lbl {
  font-size: .76rem;
  font-weight: 600;
  color: var(--m);
  margin-bottom: .45rem;
}

.bl-kpi-pair {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.bl-kpi-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
}

.bl-kpi-src {
  font-size: .72rem;
  color: var(--m);
}

.bl-kpi-val {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bl-kpi-big {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.bl-note-bar {
  padding: .6rem .85rem;
  border-radius: 8px;
  background: var(--sf);
  border: 1px solid var(--b);
  font-size: .8125rem;
  color: var(--m);
}

/* Стек-бар backlink_scopes */
.bl-stack-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sfh);
  border: 1px solid var(--b);
}

.bl-stack-seg {
  height: 100%;
  transition: width .25s;
}

.bl-scope-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.bl-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .84rem;
}

.bl-scope-row > strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.bl-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

/* Мини-гистограммы */
.bl-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 24px;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  margin-bottom: .42rem;
}

.bl-bar-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-bar-path {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.bl-bar-path > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-bar-row > strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bl-bar-row.is-clickable {
  cursor: pointer;
  padding: .2rem .35rem;
  margin: 0 -.35rem .3rem;
  border-radius: 6px;
}

.bl-bar-row.is-clickable:hover {
  background: var(--sfh);
}

.bl-bar-row.is-active {
  background: var(--as);
}

.bl-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--sfh);
  overflow: hidden;
}

.bl-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--a);
}

/* Чек-лист здоровья */
.bl-health-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bl-health-item {
  border: 1px solid var(--b);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.bl-health-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  cursor: pointer;
}

.bl-health-btn:hover {
  background: var(--sf);
}

.bl-health-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.bl-health-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.bl-health-det {
  padding: .65rem .9rem .8rem 2.65rem;
  border-top: 1px solid var(--b);
  background: var(--sf);
  font-size: .82rem;
  color: var(--m);
}

/* ----- Сегментные переключатели ----- */
.bl-dyn-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.bl-ctrl-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.bl-seg {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--sfh);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--b);
  gap: 2px;
  max-width: 100%;
}

.bl-seg button {
  border: 0;
  background: transparent;
  color: var(--m);
  font-size: .8rem;
  font-weight: 600;
  padding: .32rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.bl-seg button:hover {
  color: var(--t);
}

.bl-seg button.is-active {
  background: #fff;
  color: var(--ah);
  box-shadow: 0 1px 2px rgba(24, 32, 51, .08);
}

/* ----- Графики SVG и подсказка ----- */
.bl-chart-box {
  position: relative;
  width: 100%;
  min-width: 0;
}

.bl-chart-box svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bl-tip {
  position: fixed;
  z-index: 1060;
  pointer-events: none;
  background: #182033;
  color: #fff;
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .78rem;
  box-shadow: 0 8px 24px rgba(24, 32, 51, .22);
  max-width: 270px;
}

.bl-tip-title {
  font-weight: 700;
  margin-bottom: .28rem;
  color: #e2e8f0;
}

.bl-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  line-height: 1.4;
}

.bl-corr-verdict {
  padding: .6rem .85rem;
  border-radius: 8px;
  background: var(--sf);
  border: 1px solid var(--b);
  font-size: .83rem;
}

.bl-dr-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.bl-dr-cell {
  padding: .65rem .8rem;
  border: 1px solid var(--b);
  border-radius: 8px;
  background: var(--sf);
  text-align: center;
}

/* ----- Таблицы и фильтры ----- */
.bl-honest-banner {
  padding: .75rem 1rem;
  border-radius: 9px;
  background: var(--bls);
  border: 1px solid #bfdbfe;
  font-size: .84rem;
  color: #1e3a8a;
}

.bl-filters-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.bl-table {
  font-size: .85rem;
  color: var(--t);
}

.bl-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--b);
  background: var(--sf);
  font-size: .76rem;
  font-weight: 700;
  color: var(--m);
  white-space: nowrap;
  padding: .65rem .75rem;
}

.bl-table td {
  vertical-align: middle;
  padding: .65rem .75rem;
  border-top: 1px solid var(--b);
}

.bl-table-hover tbody tr {
  cursor: pointer;
}

.bl-table-hover tbody tr:hover {
  background: #faf8ff;
}

.bl-table tr.is-me {
  background: #f8f5ff;
}

.bl-sort {
  cursor: pointer;
  user-select: none;
}

.bl-sort:hover {
  color: var(--t);
}

.bl-sort.is-asc::after {
  content: " ▲";
  color: var(--a);
  font-size: .68rem;
}

.bl-sort.is-desc::after {
  content: " ▼";
  color: var(--a);
  font-size: .68rem;
}

.bl-url-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.bl-dr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: .15rem .45rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.bl-dr-high { background: var(--gs); color: #15803d; }
.bl-dr-mid { background: var(--bls); color: #1d4ed8; }
.bl-dr-low { background: var(--sfh); color: var(--m); }

/* Конкуренты: линейка */
.bl-ruler-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bl-ruler-row {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr 48px;
  align-items: center;
  gap: .75rem;
  font-size: .84rem;
}

.bl-ruler-track {
  height: 10px;
  border-radius: 999px;
  background: var(--sfh);
  overflow: hidden;
}

.bl-ruler-fill {
  height: 100%;
  border-radius: 999px;
  background: #94a3b8;
}

.bl-ruler-row.is-me .bl-ruler-fill {
  background: var(--a);
}

/* Безопасность и техпаспорт */
.bl-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.bl-kv-item {
  padding: .65rem .8rem;
  border: 1px solid var(--b);
  border-radius: 8px;
  background: var(--sf);
}

.bl-kv-k {
  font-size: .75rem;
  color: var(--m);
}

.bl-kv-v {
  font-size: .88rem;
  font-weight: 600;
  margin-top: .15rem;
  word-break: break-word;
}

/* ----- Сравнение ----- */
.bl-cmp-toolbar {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.bl-cmp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bl-site-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--b);
  background: var(--sf);
  font-size: .83rem;
  font-weight: 600;
}

.bl-site-chip button {
  border: 0;
  background: none;
  color: var(--m);
  padding: 0 .15rem;
  line-height: 1;
  font-size: 1rem;
  cursor: pointer;
}

.bl-site-chip button:hover {
  color: var(--r);
}

.bl-cmp-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.bl-cmp-add-row .custom-select {
  width: auto;
  min-width: 220px;
}

.bl-cmp-chart-ctrls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bl-cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bl-leg-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--b);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.bl-leg-btn.is-off {
  opacity: .42;
}

.bl-spark-cell {
  width: 96px;
  min-width: 96px;
}

/* ----- Пакетная проверка доноров ----- */
.bl-bulk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.bl-bulk-left,
.bl-bulk-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bl-bulk-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
  min-height: 1.25rem;
}

.bl-mono-ta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .84rem;
}

.bl-bulk-left .bl-mono-ta {
  flex: 1 1 auto;
  min-height: 205px;
  resize: vertical;
}

.bl-bulk-side #bl-batch-run-btn {
  margin-top: auto;
}

.bl-thresholds {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(220px, 1.4fr);
  gap: .65rem;
  align-items: end;
}

.bl-th-field label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--m);
  margin-bottom: .25rem;
}

.bl-th-checks {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-bottom: .2rem;
}

.bl-inline-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .81rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.bl-inline-check input {
  accent-color: var(--a);
}

.bl-verdict-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.bl-state-preview {
  background: var(--sf);
  border: 1px solid var(--b);
  border-radius: 8px;
  padding: .6rem .8rem;
}

.bl-sp-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
  padding: .2rem 0;
}

/* ----- Модалки, шторка и тосты ----- */
.bl-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem 1rem;
  overflow-y: auto;
}

.bl-modal[hidden],
.bl-drawer[hidden],
.bl-tip[hidden] {
  display: none !important;
}

.bl-modal__box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--b);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  width: 100%;
  padding: 1.25rem;
}

.bl-drawer {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(15, 23, 42, .42);
  display: flex;
  justify-content: flex-end;
}

.bl-drawer__box {
  width: min(460px, 100%);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--b);
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: -10px 0 36px rgba(15, 23, 42, .18);
}

.bl-toasts {
  position: fixed;
  right: 1rem;
  bottom: 4.5rem;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-width: min(340px, calc(100vw - 2rem));
}

.bl-toast {
  background: #182033;
  color: #fff;
  padding: .65rem .9rem;
  border-radius: 8px;
  font-size: .84rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
}

/* ----- Адаптивность ----- */
@media (max-width: 1024px) {
  .bl-bulk-grid {
    grid-template-columns: 1fr;
  }
  .bl-bulk-left .bl-mono-ta {
    min-height: 150px;
  }
  .bl-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bl-thresholds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-th-checks {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .4rem 1.15rem;
  }
  .bl-kv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .bl-launch-row {
    flex-direction: column;
  }
  .bl-launch-btn {
    width: 100%;
  }
  .bl-included-grid,
  .bl-grid-2,
  .bl-grid-3,
  .bl-grid-4,
  .bl-grid-5,
  .bl-radio-cards,
  .bl-filters-grid,
  .bl-dr-strip,
  .bl-kv-grid {
    grid-template-columns: 1fr;
  }
  .bl-thresholds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-th-checks {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .4rem 1rem;
  }
  .bl-ruler-row {
    grid-template-columns: 120px 1fr 40px;
    gap: .5rem;
  }
  .bl-health-btn {
    flex-direction: column;
    align-items: flex-start;
  }
  .bl-health-det {
    padding-left: .9rem;
  }
  .bl-rep-actions {
    width: 100%;
  }
  .bl-rep-actions .btn {
    flex: 1 1 auto;
  }
  .bl-subtabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: .3rem;
  }
  .bl-subtab {
    padding: .38rem .68rem;
    font-size: .81rem;
  }
}

/* ----- Production runtime additions ----- */
.bl-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ah);
  background: var(--as);
  border: 1px solid #d9c8ff;
  border-radius: 999px;
  padding: .25rem .65rem;
  white-space: nowrap;
}

.bl-quota-badge.is-low {
  color: #b45309;
  background: var(--ys);
  border-color: #fde68a;
}

.bl-quota-badge.is-empty {
  color: #b91c1c;
  background: var(--rs);
  border-color: #fecaca;
}

.bl-banner-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .72rem .95rem;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  font-size: .86rem;
}

.bl-banner-warn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .78rem .95rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  background: var(--ys);
  color: #78350f;
  font-size: .86rem;
}

.bl-banner-shared {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .72rem 1rem;
  border-radius: 10px;
  border: 1px solid #d9c8ff;
  background: linear-gradient(90deg, var(--as) 0%, #f8fafc 100%);
  color: var(--t);
  font-size: .86rem;
  margin-bottom: 1rem;
}

.bl-batch-prog-box {
  padding: .85rem 1rem;
  border: 1px solid var(--b);
  border-radius: var(--rad);
  background: #fff;
  margin-bottom: 1rem;
}

.bl-history-del {
  color: var(--m);
  padding: .2rem .42rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  line-height: 1;
}

.bl-history-del:hover {
  color: var(--r);
  background: var(--rs);
  border-color: #fecaca;
}

.bl-locked-card {
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--rad);
  background: var(--sf);
}

/* Health tab: shared counters, IP groups, live neighbor probes, homepage links */
.bl-net-subbox {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--b);
}

.bl-net-subttl {
  font-size: .78rem;
  font-weight: 600;
  color: var(--m);
  margin-bottom: .45rem;
}

.bl-chart-note {
  padding: .62rem .85rem;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  color: var(--m);
  font-size: .82rem;
  line-height: 1.45;
}

.bl-counter-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.bl-counter-item {
  padding: .5rem .65rem;
  border: 1px solid var(--b);
  border-radius: 8px;
  background: var(--sf);
  font-size: .82rem;
}

.bl-counter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.bl-counter-id {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--t);
  font-weight: 600;
}

.bl-ip-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .65rem;
  font-size: .8rem;
  color: var(--t);
}

.bl-ip-addr {
  font-family: var(--mono);
  font-weight: 600;
}

.bl-nb-dom-link {
  font-weight: 600;
  word-break: break-all;
}

.bl-nb-detail-cell {
  max-width: 360px;
  word-break: break-word;
  font-size: .83rem;
}

.bl-nb-ip-cell {
  white-space: nowrap;
  font-size: .8rem;
}

.bl-ip-history-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  padding-top: .75rem;
  border-top: 1px solid var(--b);
  font-size: .78rem;
  color: var(--m);
}

.bl-ip-hist-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .5rem;
  border-radius: 6px;
  border: 1px solid var(--b);
  background: var(--sf);
  color: var(--t);
  font-size: .75rem;
}

.bl-ip-hist-pill.is-active {
  border-color: #bbf7d0;
  background: var(--gs);
  color: #15803d;
}

.bl-dom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-top: .45rem;
}

.bl-dom-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .16rem .45rem;
  border-radius: 6px;
  border: 1px solid var(--b);
  background: var(--sf);
  font-size: .75rem;
  color: var(--t);
  text-decoration: none;
  max-width: 100%;
  word-break: break-all;
}

.bl-dom-chip:hover {
  border-color: var(--a);
  color: var(--a);
  text-decoration: none;
}

.bl-ip-more {
  margin-top: .4rem;
  padding: 0;
  font-size: .76rem;
}

.bl-pl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  flex-wrap: wrap;
}

.bl-pl-controls {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 1 1 240px;
  max-width: 360px;
}

.bl-pl-controls .form-control {
  min-width: 150px;
}

.bl-url-cell {
  max-width: 380px;
  word-break: break-all;
}

.bl-pl-anchor {
  max-width: 280px;
  word-break: break-word;
}
