.nec-home-dashboard {
  margin-bottom: 28px;
  color: #0f172a;
}

.nec-shell {
  display: grid;
  grid-template-columns: 318px 1fr;
  gap: 22px;
  align-items: start;
}

.nec-filter-rail,
.nec-content-shell,
.nec-stat-card,
.nec-inspection-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #edf2f7;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.nec-filter-rail {
  padding: 18px;
  position: sticky;
  top: 88px;
}

.nec-content-shell {
  padding: 18px;
}

.nec-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.nec-searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  max-width: 620px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.nec-searchbar input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #0f172a;
  font-size: 14px;
}

.nec-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nec-icon-btn,
.nec-pro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #edf2f7;
  background: #fff;
  color: #0f172a;
}

.nec-icon-btn {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.nec-pro-btn {
  gap: 8px;
  padding: 0 16px;
  height: 42px;
  background: linear-gradient(135deg, #62a5ff, #3b82f6);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
}

.nec-rail-head,
.nec-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.nec-title {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
}

.nec-reset {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.nec-filter-box {
  padding: 14px;
  border-radius: 22px;
  background: #fbfdff;
  border: 1px solid #edf2f7;
  margin-bottom: 14px;
}

.nec-filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #edf2f7;
}

.nec-filter-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 13px;
}

.nec-toggle-pills,
.nec-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nec-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #edf2f7;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.nec-chip.active,
.nec-chip.is-active {
  background: linear-gradient(135deg, #62a5ff, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.nec-mini-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #dbeafe;
  position: relative;
}

.nec-mini-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
}

.nec-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.nec-chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 96px;
  margin: 16px 0 10px;
}

.nec-chart-bars span {
  flex: 1 1 auto;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  opacity: .95;
}

.nec-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #111827;
}

.nec-section-label {
  margin: 16px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

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

.nec-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.nec-check i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  display: inline-block;
  background: #fff;
}

.nec-check.active i {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 3px #fff;
}

.nec-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.nec-stat-card {
  padding: 18px;
}

.nec-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nec-stat-top .tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 800;
}

.nec-stat-top .tag.neutral {
  background: #f8fafc;
  color: #94a3b8;
}

.nec-stat-value {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 800;
  color: #111827;
}

.nec-stat-label {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.nec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nec-inspection-card {
  padding: 14px;
}

.nec-card-media {
  position: relative;
  min-height: 186px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff, #f3f6fb);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nec-card-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
}

.nec-card-badge {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.9);
  color: #64748b;
}

.nec-card-badge.primary {
  background: linear-gradient(135deg, #62a5ff, #3b82f6);
  color: #fff;
}

.nec-card-fav {
  position: absolute;
  right: 14px;
  top: 14px;
  color: #ef4444;
  font-size: 16px;
}

.nec-card-visual {
  width: 85%;
  height: 110px;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  position: relative;
  transform: perspective(800px) rotateX(18deg);
  box-shadow: inset 0 -14px 26px rgba(30, 64, 175, 0.12);
}

.nec-card-visual::before,
.nec-card-visual::after {
  content: '';
  position: absolute;
  bottom: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f2937;
  box-shadow: inset 0 0 0 6px #94a3b8;
}

.nec-card-visual::before {
  left: 42px;
}

.nec-card-visual::after {
  right: 42px;
}

.nec-card-visual.dark {
  background: linear-gradient(135deg, #d6dce5, #7c8ba1);
}

.nec-card-visual.green {
  background: linear-gradient(135deg, #d8e4d5, #a4b69f);
}

.nec-card-visual.white {
  background: linear-gradient(135deg, #ffffff, #dbe4ef);
}

.nec-card-meta {
  padding: 14px 2px 4px;
}

.nec-card-kicker {
  color: #94a3b8;
  font-size: 13px;
}

.nec-card-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.nec-card-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.nec-card-price {
  white-space: nowrap;
  font-size: 13px;
  color: #64748b;
}

.nec-card-price strong {
  color: #111827;
  font-size: 24px;
}

.nec-card-name {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.nec-card-copy {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1360px) {
  .nec-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .nec-shell {
    grid-template-columns: 1fr;
  }

  .nec-filter-rail {
    position: static;
  }

  .nec-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nec-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nec-summary-grid,
  .nec-cards-grid,
  .nec-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .nec-content-shell,
  .nec-filter-rail,
  .nec-stat-card,
  .nec-inspection-card {
    border-radius: 22px;
  }
}
