.product-catalog-tools,
.product-comparison-panel,
.product-comparison-empty {
  margin-block: 18px;
  border: 1px solid color-mix(in srgb, var(--line, #2b4262) 84%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel, #0b1b33) 94%, #4cb8ff 6%);
  box-shadow: 0 14px 34px rgb(0 8 24 / 18%);
}

.product-catalog-tools,
.product-comparison-panel { padding: clamp(16px, 2vw, 24px); }

.product-catalog-tools-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.product-catalog-tools-head h3,
.product-comparison-panel h3 { margin: 2px 0 0; }

.product-catalog-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.product-catalog-filter-grid .field { margin: 0; }
.product-catalog-filter-grid input,
.product-catalog-filter-grid select { width: 100%; }

.product-compare-choice {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line, #2b4262);
  border-radius: 10px;
  background: linear-gradient(145deg, #f7fbff, #dff3ff) !important;
  background-color: #e8f7ff !important;
  color: #073d68 !important;
  -webkit-text-fill-color: #073d68 !important;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 760;
}

.product-compare-choice > span {
  color: #073d68 !important;
  -webkit-text-fill-color: #073d68 !important;
}

.product-compare-choice:has(input:checked) {
  border-color: #0870b8;
  background: linear-gradient(145deg, #e8f7ff, #c9ebff) !important;
  background-color: #d9f1ff !important;
}

.product-compare-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: .56;
}

/* Customer-product contrast locks. These selectors intentionally outrank the
   shared portal paint layer because product routes use their own shell class. */
#app.app-shell .main.orionos-sellable-product .product-compare-choice {
  background: linear-gradient(145deg, #f7fbff, #dff3ff) !important;
  background-color: #e8f7ff !important;
  color: #073d68 !important;
  -webkit-text-fill-color: #073d68 !important;
}

#app.app-shell .main.orionos-sellable-product .product-compare-choice > span {
  color: #073d68 !important;
  -webkit-text-fill-color: #073d68 !important;
}

#app.app-shell .main.orionos-sellable-product :is(.btn.primary, button.primary) {
  border-color: rgba(220, 247, 255, .78) !important;
  background: linear-gradient(135deg, #063b78, #0753a6 54%, #0a65a8) !important;
  background-color: #0753a6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.product-comparison-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: center;
  padding: 16px 20px;
}

.product-comparison-empty strong { color: var(--ink, #eff8ff); }
.product-comparison-empty span { color: var(--muted, #aac2d8); }

.product-comparison-panel .table-wrap { margin-top: 14px; }
.product-comparison-panel table { min-width: 620px; }
.product-comparison-panel th:first-child { position: sticky; left: 0; background: var(--panel, #0b1b33); }
.product-comparison-panel tbody th { color: var(--muted, #aac2d8); font-size: .82rem; }

.product-readiness-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.product-readiness-gates {
  margin: 8px 0 12px;
  border: 1px solid rgb(245 158 11 / 28%);
  border-radius: 10px;
  background: rgb(245 158 11 / 6%);
  padding: 9px 11px;
}

.product-readiness-gates summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.product-readiness-gates ul {
  margin: 8px 0;
  padding-left: 20px;
}

#productCatalogGrid > [hidden],
#productCatalogEmpty[hidden] { display: none !important; }

@media (max-width: 980px) {
  .product-catalog-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .product-catalog-tools-head { align-items: stretch; flex-direction: column; }
  .product-catalog-tools-head .btn { width: 100%; }
  .product-catalog-filter-grid { grid-template-columns: 1fr; }
  .product-comparison-empty { grid-template-columns: 1fr; }
}

.auditguard-case-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr);
  gap: 12px;
}

.auditguard-case-filters .field { margin: 0; }
.auditguard-result-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  border: 1px solid var(--line, #2b4262);
  border-radius: 999px;
  color: var(--muted, #aac2d8);
  font-size: .75rem;
}

.source-health-card.locked { border-style: dashed; opacity: .78; }
.source-control-locked { display: inline-flex; cursor: not-allowed; }

@media (max-width: 620px) {
  .auditguard-case-filters { grid-template-columns: 1fr; }
}
