.layer-shell {
  margin-bottom: 72px;
}

.layer-view-nav-wrap {
  margin-top: 18px;
}

.layer-view-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 246, 0.94)),
    radial-gradient(circle at top left, rgba(137, 169, 255, 0.14), transparent 52%);
  border: 1px solid var(--yma-line-soft);
  border-radius: var(--card-radius);
  padding: 10px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
}

.layer-view-tab {
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-surface);
  color: var(--yma-ink-muted);
  border-radius: 999px;
  padding: 11px 18px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.layer-view-tab:hover {
  background: var(--white);
  border-color: var(--yma-line);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.layer-view-tab.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.16);
}

.layer-view-panel {
  display: none;
}

.layer-view-panel.active {
  display: block;
}

.layer-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
}

.layer-modal .layer-modal-backdrop {
  z-index: 0;
}

.layer-modal .layer-modal-card {
  z-index: 1;
}

.layer-modal.hidden {
  display: none;
}

.layer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.38);
  backdrop-filter: blur(8px);
}

.layer-modal-card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 246, 0.96)),
    radial-gradient(circle at top left, rgba(255, 231, 216, 0.2), transparent 44%),
    radial-gradient(circle at top right, rgba(137, 169, 255, 0.16), transparent 38%);
  border: 1px solid var(--yma-line-soft);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--card-shadow-lift);
}

.layer-modal-head,
.layer-modal-actions,
.layer-enrichment-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.layer-modal-head h3 {
  margin: 6px 0 0;
}

.layer-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.layer-modal-grid label,
.layer-modal-fields {
  display: grid;
  gap: 8px;
}

.layer-modal-grid span,
.layer-modal-fields > span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-modal-grid input,
.layer-modal-grid select {
  border: 1px solid var(--yma-line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--yma-surface-strong);
}

.layer-modal-fields {
  margin-bottom: 14px;
}

.layer-modal-fields label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
}

.layer-modal-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-paper);
  color: var(--gray-700);
  line-height: 1.55;
}

.layer-enrichment-progress {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.layer-enrichment-progress.hidden {
  display: none;
}

.layer-enrichment-progress-track {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.layer-enrichment-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--black), var(--yma-blue));
  transition: width 200ms ease;
}

.layer-inline-progress {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.layer-inline-progress.hidden,
.layer-profile-check-progress.hidden {
  display: none;
}

.layer-inline-progress-track {
  width: 140px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-200);
}

.layer-inline-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--black), var(--yma-blue));
  transition: width 240ms ease;
}

.layer-inline-progress > span,
.layer-profile-check-progress > span {
  color: var(--gray-500);
  font-size: 0.76rem;
  white-space: nowrap;
}

.layer-profile-check-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.layer-profile-check-progress .layer-inline-progress-track {
  flex: 1;
}

.layer-selection-hitbox {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}

.layer-selection-hitbox:hover {
  background: var(--gray-100);
}

.layer-selection-hitbox-header {
  min-width: 34px;
  min-height: 34px;
}

.layer-selection-hitbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.layer-provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.layer-status-badge {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-peach);
  color: #6b4f2a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.layer-status-badge.status-queued {
  border-color: rgba(245, 158, 11, 0.22);
  color: #8a5a00;
  background: #fff3d6;
}

.layer-status-badge.status-in_progress {
  border-color: rgba(99, 102, 241, 0.22);
  color: #4338ca;
  background: #e9e7ff;
}

.layer-status-badge.status-completed {
  border-color: rgba(16, 185, 129, 0.2);
  color: #0f766e;
  background: #dbfbef;
}

.layer-status-badge.status-updated {
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  background: #dbeafe;
}

.layer-status-badge.status-pending,
.layer-status-badge.status-skipped {
  border-color: rgba(100, 116, 139, 0.18);
  color: #475569;
  background: #f1f5f9;
}

.layer-status-badge.status-failed,
.layer-status-badge.status-partial {
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  background: #ffe5e5;
}

.layer-hero {
  background:
    radial-gradient(circle at top right, rgba(137, 169, 255, 0.28), transparent 30%),
    radial-gradient(circle at bottom left, rgba(212, 245, 223, 0.55), transparent 34%),
    var(--yma-paper);
}

.layer-hero-copy {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.layer-hero-copy h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 100;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.layer-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 760px;
}

.layer-hero-controls {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.layer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.layer-hero-grid,
.layer-segment-grid,
.layer-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.layer-hero-grid {
  margin-top: 28px;
}

.layer-hero-stat,
.layer-segment-card,
.layer-opportunity-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 246, 0.94)),
    radial-gradient(circle at top left, rgba(137, 169, 255, 0.1), transparent 58%);
  border: 1px solid var(--yma-line-soft);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.layer-hero-stat .stat-value {
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.layer-hero-stat p,
.layer-segment-card p,
.layer-opportunity-card p,
.layer-overview-card p,
.layer-coverage-card p,
.layer-city-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.layer-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.layer-overview-card,
.layer-coverage-card,
.layer-city-card,
.layer-method-card {
  padding: 22px;
}

.layer-overview-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.layer-overview-controls label {
  display: grid;
  gap: 8px;
}

.layer-overview-controls span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-overview-controls select {
  border: 1px solid var(--yma-line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--yma-surface-strong);
}

.layer-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.layer-calibration-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--yma-line-soft);
  border-radius: 16px;
  background: var(--yma-paper);
  color: var(--gray-700);
  line-height: 1.6;
}

.layer-card-head {
  margin-bottom: 16px;
}

.layer-overview-card h3,
.layer-card-head h3,
.layer-segment-card h3,
.layer-opportunity-card h3 {
  margin: 0 0 8px;
}

.layer-overview-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.layer-overview-metric {
  padding: 14px;
  border: 1px solid var(--yma-line-soft);
  border-radius: 16px;
  background: var(--yma-paper);
}

.layer-overview-metric strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 6px;
}

.layer-coverage-list {
  display: grid;
  gap: 12px;
}

.layer-funnel-head {
  margin-bottom: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.layer-coverage-row {
  display: grid;
  gap: 8px;
}

.layer-coverage-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.layer-track {
  display: grid;
  gap: 8px;
}

.layer-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
}

.layer-bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}

.layer-bar-core > span {
  background: linear-gradient(90deg, var(--black), var(--gray-600));
}

.layer-bar-edge > span {
  background: linear-gradient(90deg, var(--yma-peach), var(--yma-blue));
}

.layer-coverage-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
}

.layer-funnel-step-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.layer-funnel-step-meta strong {
  font-size: 1rem;
}

.layer-funnel-step-value {
  color: var(--gray-600);
  font-weight: 600;
}

.layer-funnel-step-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
}

.layer-funnel-step-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--black), var(--yma-blue));
}

.layer-segment-card {
  display: grid;
  gap: 14px;
}

.layer-segment-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.layer-segment-topline strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-top: 8px;
}

.layer-segment-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.layer-kpi {
  border: 1px solid var(--yma-line-soft);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--yma-paper);
}

.layer-kpi span {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.layer-kpi strong {
  font-size: 1.1rem;
}

.layer-segment-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-700);
}

.layer-segment-notes li,
.layer-opportunity-card li,
.layer-method-card li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.layer-city-table table {
  width: 100%;
  border-collapse: collapse;
}

.layer-city-table th,
.layer-city-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  font-size: 14px;
}

.layer-city-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.layer-opportunity-card ul,
.layer-method-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.layer-workspace {
  margin-top: 6px;
  grid-template-columns: 1fr;
}

.layer-taxonomy-panel,
.layer-provider-workspace,
.layer-profile-panel {
  padding: 20px;
  min-width: 0;
  border-radius: 26px;
  border: 1px solid var(--yma-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 246, 0.96)),
    radial-gradient(circle at top left, rgba(137, 169, 255, 0.1), transparent 54%);
  box-shadow: var(--card-shadow);
}

.layer-taxonomy-panel-hidden {
  display: none;
}

.layer-provider-workspace-crm {
  width: 100%;
}

.tree-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.tree-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-paper);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  min-width: 0;
}

.tree-item.active {
  background: var(--black);
  color: var(--white);
}

.tree-item strong,
.tree-item small {
  color: var(--gray-500);
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.tree-item strong {
  color: inherit;
  line-height: 1.4;
}

.layer-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.layer-panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.layer-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.layer-filter-grid label,
.layer-filter-actions label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.layer-filter-grid span,
.layer-filter-actions span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-filter-grid select,
.layer-filter-grid input,
.layer-filter-actions select {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.96);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.layer-filter-grid select:focus,
.layer-filter-grid input:focus,
.layer-filter-actions select:focus {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.38);
  outline: none;
  background: #fff;
}

.layer-filter-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.layer-crm-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.layer-crm-filter-grid label {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at top left, rgba(248, 200, 158, 0.08), transparent 58%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.layer-crm-filter-grid span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-crm-filter-grid select,
.layer-crm-filter-grid input {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.96);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.layer-crm-filter-grid select:focus,
.layer-crm-filter-grid input:focus {
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.42);
  outline: none;
  background: #fff;
}

.layer-filter-span-2 {
  grid-column: span 2;
}

.layer-crm-filter-actions {
  margin: 14px 0 12px;
}

.layer-crm-bulk-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at top right, rgba(202, 216, 255, 0.14), transparent 40%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.layer-crm-bulk-group {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.layer-crm-bulk-group label,
.layer-profile-action-field > span,
.layer-crm-assignment-editor label > span {
  display: block;
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-crm-bulk-group select,
.layer-crm-assignment-editor select,
.layer-crm-event-composer select,
.layer-crm-event-composer textarea {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
}

.layer-crm-enrichment-group {
  margin-left: auto;
}

.layer-provider-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.layer-provider-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-family: "GT Alpina", Georgia, serif;
}

.layer-provider-table-shell {
  margin-top: 10px;
}

.layer-provider-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.93));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.layer-provider-pagination > div {
  display: grid;
  gap: 3px;
}

.layer-provider-pagination-total {
  min-width: 0;
}

.layer-provider-pagination strong {
  font-size: 14px;
}

.layer-provider-pagination span {
  color: var(--gray-500);
  font-size: 12px;
}

.layer-provider-pagination label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-provider-pagination select {
  min-width: 116px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--gray-900);
  font: inherit;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.layer-provider-search {
  display: grid !important;
  gap: 6px;
  justify-self: stretch;
}

.layer-provider-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.layer-provider-page-select {
  justify-self: end;
}

.layer-provider-table-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 252, 0.97));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.layer-provider-table-card table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
}

.layer-provider-table-card::-webkit-scrollbar {
  height: 10px;
}

.layer-provider-table-card::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.layer-provider-table-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #f1f5f9;
  border-radius: 999px;
}

.layer-provider-table-card th,
.layer-provider-table-card td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.layer-provider-table-card th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: rgba(248, 250, 252, 0.92);
  white-space: nowrap;
}

.layer-provider-table-card tr:last-child td {
  border-bottom: 0;
}

.layer-provider-table-row {
  cursor: pointer;
}

.layer-provider-table-row:hover {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.layer-provider-table-row.is-active {
  background:
    linear-gradient(180deg, rgba(248, 200, 158, 0.16), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at left top, rgba(202, 216, 255, 0.08), transparent 36%);
}

.layer-company-cell {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.layer-company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.layer-branch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.layer-branch-chip.tone-success {
  background: #eafbf1;
  color: #116149;
  border-color: rgba(17, 97, 73, 0.12);
}

.layer-branch-chip.tone-info {
  background: #eef2ff;
  color: #4338ca;
  border-color: rgba(67, 56, 202, 0.14);
}

.layer-branch-chip.tone-warn {
  background: #fff3e2;
  color: #a16207;
  border-color: rgba(161, 98, 7, 0.15);
}

.layer-branch-chip.tone-danger {
  background: #ffe8e8;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.14);
}

.layer-branch-chip.tone-neutral {
  background: #f5f7fa;
  color: #475467;
  border-color: rgba(71, 84, 103, 0.12);
}

.layer-branch-chip.tone-muted {
  background: #f8fafc;
  color: #667085;
  border-color: rgba(102, 112, 133, 0.12);
}

.layer-company-cell strong {
  font-size: 15px;
  line-height: 1.32;
}

.layer-company-cell small {
  color: var(--gray-500);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.layer-enrichment-cell {
  display: grid;
  gap: 5px;
  min-width: 128px;
}

.layer-enrichment-cell small {
  color: var(--gray-500);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.layer-inline-link-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0;
  text-align: left;
}

.layer-inline-link-button:hover {
  text-decoration: underline;
}

.layer-enrichment-note {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.layer-table-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.layer-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ddfbf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.layer-crm-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  border: 1px solid rgba(67, 56, 202, 0.08);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.layer-owner-cell {
  display: grid;
  gap: 3px;
  min-width: 130px;
}

.layer-owner-cell small {
  color: var(--gray-500);
}

.layer-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fff, #f8fafc);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.layer-rating-value {
  white-space: nowrap;
}

.layer-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.layer-sort-button span {
  color: var(--gray-500);
  font-weight: 700;
}

.layer-detail-empty {
  color: var(--gray-500);
}

.layer-provider-detail.hidden {
  display: none;
}

.layer-detail-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.layer-detail-panel h4 {
  margin: 0 0 12px;
}

.layer-website-profile-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.layer-profile-field {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.layer-profile-field span,
.layer-finding-label {
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layer-profile-field p {
  margin: 0;
  white-space: pre-wrap;
}

.layer-findings-modal-card {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.layer-findings-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.layer-finding-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}

.layer-finding-row input[type="checkbox"] {
  margin-top: 5px;
}

.layer-finding-value {
  min-height: 80px;
  padding: 10px;
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.layer-finding-value.is-proposed {
  background: #eefbf4;
  border: 1px solid #bce7cd;
}

.layer-finding-meta {
  margin-top: 7px;
  color: var(--gray-500);
  font-size: 0.76rem;
}

.layer-detail-rationale {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.layer-detail-rationale strong {
  display: block;
  margin-bottom: 8px;
}

.layer-detail-rationale ul {
  margin: 0 0 10px 18px;
  color: var(--gray-700);
}

.layer-detail-rationale li {
  margin-bottom: 6px;
}

.layer-panel-copy {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.55;
}

.layer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.layer-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.layer-form-grid span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-form-grid input,
.layer-form-grid textarea,
.layer-form-grid select,
.layer-contact-surface-item input,
.layer-contact-surface-item button {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.97);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.layer-form-grid input:focus,
.layer-form-grid textarea:focus,
.layer-form-grid select:focus,
.layer-contact-surface-item input:focus {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.38);
  outline: none;
  background: #fff;
}

.layer-form-full {
  grid-column: 1 / -1;
}

.layer-form-hint {
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.5;
}

.layer-profile-action-field {
  display: grid;
  gap: 8px;
  align-content: end;
}

.layer-crm-assignment-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.layer-crm-assignment-editor label {
  display: grid;
  gap: 8px;
}

.layer-crm-assignee-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.layer-crm-assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border: 1px solid rgba(67, 56, 202, 0.08);
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

.layer-crm-assignee-chip button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.layer-crm-event-composer {
  display: grid;
  gap: 8px;
}

.layer-crm-event-composer textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.layer-crm-event-composer button {
  justify-self: start;
}

.layer-crm-timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.layer-crm-timeline-item {
  position: relative;
  padding: 0 0 18px 24px;
  border-left: 2px solid #e2e8f0;
}

.layer-crm-timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 4px #fff;
}

.layer-crm-timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.layer-crm-timeline-item strong,
.layer-crm-timeline-item span {
  display: block;
}

.layer-crm-timeline-item strong {
  margin-bottom: 5px;
  line-height: 1.4;
}

.layer-crm-timeline-item span {
  color: var(--gray-500);
  font-size: 12px;
}

.layer-profile-bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.layer-profile-bookmark {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-600);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.layer-profile-bookmark:hover {
  background: #fff;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.layer-profile-bookmark.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.layer-profile-bookmark span {
  display: block;
}

.layer-profile-bookmark small,
.layer-profile-bookmark em {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 600;
  color: inherit;
  opacity: 0.72;
}

.layer-profile-bookmark em {
  opacity: 1;
}

.layer-profile-bookmark.is-disabled,
.layer-profile-bookmark:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: #f3f4f6;
  color: var(--gray-500);
}

.layer-provider-detail [data-provider-tab-panel] {
  display: none;
}

.layer-provider-detail [data-provider-tab-panel].is-active {
  display: block;
}

.layer-provider-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.layer-provider-hero-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.layer-provider-hero-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-provider-hero-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #111827;
}

.layer-provider-hero-card p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.layer-business-summary-grid,
.layer-contact-grid,
.layer-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layer-business-summary-card,
.layer-contact-card,
.layer-project-card,
.layer-branch-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  padding: 16px;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.layer-business-summary-card span,
.layer-contact-card span,
.layer-project-card span,
.layer-branch-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-business-summary-card strong,
.layer-contact-card strong,
.layer-project-card strong,
.layer-branch-card strong {
  display: block;
  line-height: 1.35;
}

.layer-contact-card p,
.layer-project-card p,
.layer-branch-card p,
.layer-business-summary-card p {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.layer-contact-card ul,
.layer-project-card ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--gray-700);
}

.layer-contact-card li,
.layer-project-card li {
  margin-bottom: 6px;
}

.layer-contact-card.is-placeholder,
.layer-project-card.is-placeholder,
.layer-branch-card.is-placeholder {
  background: #f9fafb;
  border-style: dashed;
}

.layer-branch-network-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.layer-branch-bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.layer-branch-bookmark {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.layer-branch-bookmark:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.layer-branch-bookmark.active {
  background: #111111;
  color: #fff;
  border-color: #111111;
}

.layer-branch-bookmark.is-suspect {
  border-color: #f59e0b;
  background: #fff7ed;
}

.layer-branch-bookmark small {
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
}

.layer-branch-bookmark .layer-branch-chip {
  margin-left: auto;
}

.layer-branch-card.is-active {
  border-color: #111111;
  box-shadow:
    0 0 0 1px #111111 inset,
    0 16px 30px rgba(15, 23, 42, 0.08);
}

.layer-company-cell small.layer-company-subline {
  display: block;
  margin-top: 4px;
}

.layer-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
}

.layer-model-internals {
  display: grid;
  gap: 10px;
}

.layer-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layer-model-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  min-width: 0;
}

.layer-model-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.layer-model-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.layer-model-note {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.5;
}

.layer-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.layer-plus-action {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.layer-plus-action:hover {
  transform: translateY(-1px);
}

.layer-compact-select {
  display: grid;
  gap: 6px;
  min-width: 230px;
}

.layer-compact-select span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-compact-select select {
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font: inherit;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.layer-compact-action {
  padding: 9px 14px;
  min-height: 38px;
  border-radius: 999px;
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.layer-compact-action:hover {
  background: #242424;
  border-color: #242424;
}

.layer-compact-action:disabled {
  opacity: 0.58;
  transform: none;
}

.layer-compact-muted {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
  box-shadow: none;
}

.layer-compact-muted:hover {
  background: #f8f8f8;
  border-color: rgba(17, 17, 17, 0.18);
}

.layer-filter-popover-wrap {
  position: relative;
}

.layer-filter-trigger {
  min-width: 116px;
  justify-content: center;
}

.layer-filter-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(620px, calc(100vw - 80px));
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.layer-filter-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.layer-filter-popover-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.layer-filter-popover-grid span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-filter-popover-grid select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font: inherit;
}

.layer-filter-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.layer-contact-surface-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.layer-contact-surface-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  min-width: 0;
  overflow: hidden;
}

.layer-contact-surface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.layer-contact-surface-head::-webkit-details-marker {
  display: none;
}

.layer-contact-surface-group[open] .layer-contact-surface-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.layer-contact-surface-head span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-contact-surface-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  color: #111827;
}

.layer-contact-surface-count {
  white-space: nowrap;
}

.layer-contact-surface-note {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.layer-contact-surface-items {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.layer-contact-surface-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  min-width: 0;
}

.layer-contact-surface-value {
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.layer-contact-surface-subvalue,
.layer-contact-surface-meta {
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.layer-contact-surface-item input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.layer-contact-surface-fields {
  display: grid;
  gap: 8px;
}

.layer-contact-surface-fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layer-contact-surface-fields.three-col {
  grid-template-columns: 1.2fr 1fr auto;
}

.layer-contact-surface-item .ghost-btn {
  align-self: start;
  width: auto;
}

.layer-contact-surface-empty {
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 14px;
  color: var(--gray-600);
  font-size: 13px;
  background: #f8fafc;
}

.layer-contact-surface-actions {
  flex-wrap: wrap;
}

.layer-selection-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.93));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.layer-selection-bar .layer-inline-actions {
  margin-top: 0;
  align-items: center;
}

.layer-run-result-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.layer-run-result-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.layer-run-result-item:hover {
  background: #f8f8f8;
}

.layer-run-result-item strong,
.layer-run-result-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-run-result-item span {
  font-size: 13px;
  color: var(--gray-500);
}

.layer-provider-row {
  cursor: pointer;
}

.layer-provider-row:hover {
  background: rgba(17, 17, 17, 0.03);
}

.layer-category-editor {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  min-width: 0;
}

.layer-category-editor h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.layer-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.layer-context-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.layer-context-card span,
.layer-context-description-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-context-card strong {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--black);
  overflow-wrap: anywhere;
}

.layer-context-description {
  margin: 12px 0 0;
  color: var(--gray-700);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.layer-provider-table table {
  width: 100%;
  border-collapse: collapse;
}

.layer-provider-table th,
.layer-provider-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.layer-provider-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.layer-provider-name {
  display: grid;
  gap: 4px;
}

.layer-provider-name a {
  color: var(--black);
}

.layer-provider-name small {
  color: var(--gray-500);
}

.layer-provider-list .tree-item,
#layer-category-list .tree-item {
  display: grid;
  gap: 4px;
  align-items: start;
}

.layer-provider-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.layer-provider-item.is-selected {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(248, 200, 158, 0.18), rgba(255, 255, 255, 0.96));
}

.layer-provider-check {
  padding-top: 6px;
}

.layer-provider-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #111111;
  cursor: pointer;
}

.layer-provider-select {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 4px;
  cursor: pointer;
  color: inherit;
  min-width: 0;
}

.layer-provider-select strong,
.layer-provider-select small {
  color: inherit;
}

.layer-provider-list .tree-item.active small,
#layer-category-list .tree-item.active small {
  color: #d1d5db;
}

.layer-profile-keyinfo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.layer-keyinfo-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 15px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.layer-keyinfo-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-keyinfo-card strong {
  display: block;
  color: #111827;
  line-height: 1.35;
  font-size: 18px;
}

.layer-keyinfo-card p {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.layer-profile-panel {
  max-height: calc(100vh - 36px);
  overflow: auto;
  position: fixed;
  left: 50%;
  top: 18px;
  bottom: 24px;
  width: min(1180px, calc(100vw - 48px));
  transform: translateX(-50%);
  z-index: 160;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border-radius: 24px;
  display: none;
}

.layer-profile-panel.is-open {
  display: block;
}

.layer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.layer-modal-backdrop.hidden {
  display: none;
}

.layer-provider-detail.is-readonly .layer-form-grid input,
.layer-provider-detail.is-readonly .layer-form-grid textarea,
.layer-provider-detail.is-readonly .layer-form-grid select,
.layer-provider-detail.is-readonly .layer-contact-surface-item input {
  background: #f8fafc;
  color: var(--gray-700);
  pointer-events: none;
}

.layer-provider-detail.is-readonly [data-remove-channel-item],
.layer-provider-detail.is-readonly .layer-contact-surface-actions {
  display: none;
}

#layer-save-channels,
#layer-save-signals,
#layer-save-commercial {
  display: none;
}

.layer-profile-panel .layer-provider-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
  box-shadow: 0 -28px 0 28px #fff;
}

.layer-profile-panel .layer-detail-panel {
  padding: 14px;
  margin-bottom: 12px;
}

.layer-profile-panel .layer-detail-panel h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.layer-profile-panel .layer-panel-head {
  margin-bottom: 10px;
}

.layer-profile-panel .layer-form-hint {
  font-size: 12px;
  margin-bottom: 10px;
}

.layer-profile-panel .layer-form-grid,
.layer-profile-panel .layer-profile-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.layer-profile-panel .layer-form-wide {
  grid-column: span 2;
}

.layer-profile-panel .layer-form-full {
  grid-column: 1 / -1;
}

.layer-profile-panel .layer-form-grid label,
.layer-profile-panel .layer-crm-assignment-editor label {
  gap: 5px;
}

.layer-profile-panel .layer-form-grid span,
.layer-profile-panel .layer-profile-action-field > span,
.layer-profile-panel .layer-crm-assignment-editor label > span {
  font-size: 10px;
  letter-spacing: 0.07em;
}

.layer-profile-panel .layer-form-grid input,
.layer-profile-panel .layer-form-grid textarea,
.layer-profile-panel .layer-form-grid select,
.layer-profile-panel .layer-contact-surface-item input,
.layer-profile-panel .layer-contact-surface-item button,
.layer-profile-panel .layer-crm-assignment-editor select,
.layer-profile-panel .layer-crm-event-composer select,
.layer-profile-panel .layer-crm-event-composer textarea {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}

.layer-profile-panel textarea {
  min-height: 74px;
}

.layer-profile-panel .layer-crm-assignment-editor {
  grid-template-columns: minmax(0, 320px) auto;
  margin-top: 8px;
}

.layer-profile-panel .layer-crm-event-composer {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  align-items: stretch;
}

.layer-profile-panel .layer-crm-event-composer textarea {
  min-height: 58px;
}

.layer-profile-panel .layer-website-profile-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layer-profile-panel .layer-profile-field {
  padding: 8px 10px;
}

.layer-profile-panel .layer-profile-field span {
  font-size: 10px;
}

.layer-profile-panel .layer-profile-field p {
  font-size: 12px;
  line-height: 1.45;
}

.layer-offer-draft-panel .layer-panel-head {
  align-items: center;
}

.layer-offer-generate-btn {
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 14px;
  white-space: normal;
}

.layer-loading-chip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-loading-block {
  display: grid;
  gap: 12px;
}

.layer-progress {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.layer-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eceff3;
  overflow: hidden;
}

.layer-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b2118 0%, #ffb400 100%);
  transition: width 220ms ease;
}

.layer-shimmer-card,
.layer-shimmer-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(229, 231, 235, 0.7), rgba(243, 244, 246, 0.92), rgba(229, 231, 235, 0.7));
  background-size: 200% 100%;
  animation: layer-shimmer 1.3s linear infinite;
}

.layer-shimmer-card {
  min-height: 102px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.layer-shimmer-line {
  height: 14px;
  border-radius: 999px;
}

.layer-shimmer-line.short {
  width: 38%;
}

.layer-shimmer-line.medium {
  width: 62%;
}

.layer-shimmer-line.long {
  width: 100%;
}

.layer-shimmer-stack {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

@keyframes layer-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.layer-taxonomy-panel .layer-form-grid {
  grid-template-columns: 1fr;
}

.layer-profile-panel .layer-detail-panel,
.layer-taxonomy-panel .layer-category-editor {
  overflow: hidden;
}

.layer-profile-panel .layer-panel-head,
.layer-taxonomy-panel .layer-panel-head {
  align-items: flex-start;
}

.layer-profile-panel .layer-offer-draft-panel .layer-panel-head {
  align-items: center;
}

.layer-profile-panel textarea,
.layer-taxonomy-panel textarea {
  resize: vertical;
}

.layer-filter-grid-compact {
  margin-bottom: 4px;
}

.layer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.layer-stats-grid-funnel {
  grid-template-columns: 1fr;
}

.layer-stat-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.layer-stat-card span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
}

.layer-stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.layer-action-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(17, 17, 17, 0.03);
  display: grid;
  gap: 8px;
}

.layer-action-result.hidden {
  display: none;
}

.layer-action-result h5 {
  margin: 0;
  font-size: 0.95rem;
}

.layer-action-result p,
.layer-action-result ul {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.55;
}

.layer-action-result ul {
  padding-left: 18px;
}

@media (max-width: 1120px) {
  .layer-hero-grid,
  .layer-segment-grid,
  .layer-opportunity-grid,
  .layer-filter-grid,
  .layer-stats-grid,
  .layer-contact-surface-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-crm-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-crm-enrichment-group {
    margin-left: 0;
  }

  .layer-overview-grid,
  .layer-hero-copy,
  .layer-overview-controls {
    grid-template-columns: 1fr;
  }

  .layer-hero-controls {
    justify-items: start;
  }

  .layer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .layer-view-nav {
    padding: 10px;
  }

  .layer-modal-grid {
    grid-template-columns: 1fr;
  }

  .layer-hero-grid,
  .layer-segment-grid,
  .layer-opportunity-grid,
  .layer-overview-metrics,
  .layer-segment-kpis,
  .layer-filter-grid,
  .layer-crm-filter-grid,
  .layer-provider-hero-grid,
  .layer-form-grid,
  .layer-stats-grid {
    grid-template-columns: 1fr;
  }

  .layer-provider-pagination,
  .layer-filter-popover-grid {
    grid-template-columns: 1fr;
  }

  .layer-provider-page-select {
    justify-self: stretch;
  }

  .layer-filter-popover {
    left: 0;
    right: 0;
    width: auto;
  }

  .layer-filter-span-2 {
    grid-column: span 1;
  }

  .layer-provider-head,
  .layer-filter-actions,
  .layer-inline-actions,
  .layer-selection-bar,
  .layer-provider-pagination,
  .layer-crm-bulk-bar,
  .layer-crm-bulk-group {
    flex-direction: column;
    align-items: stretch;
  }

  .layer-crm-assignment-editor {
    grid-template-columns: 1fr;
  }

  .layer-city-table {
    overflow-x: auto;
  }

  .layer-profile-panel {
    right: 12px;
    left: 12px;
    width: auto;
    transform: none;
  }

  .layer-profile-panel .layer-profile-form-grid,
  .layer-profile-panel .layer-form-grid,
  .layer-profile-panel .layer-crm-event-composer,
  .layer-profile-panel .layer-website-profile-summary,
  .layer-provider-hero-grid,
  .layer-contact-surface-groups,
  .layer-contact-surface-fields.two-col,
  .layer-contact-surface-fields.three-col,
  .layer-business-summary-grid,
  .layer-contact-grid,
  .layer-project-grid {
    grid-template-columns: 1fr;
  }

  .layer-profile-panel .layer-form-wide {
    grid-column: 1;
  }

  .layer-finding-row {
    grid-template-columns: auto 1fr;
  }

  .layer-finding-row > :last-child {
    grid-column: 2;
  }
}
