.pimm-products-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
}

.pimm-products-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pimm-products-hero.compact {
  padding: 16px;
}

.pimm-products-title-block {
  min-width: 0;
}

.pimm-products-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 6px;
}

.pimm-products-hero h1 {
  margin: 0 0 7px 0;
  font-size: 28px;
  line-height: 1.15;
  color: #142033;
}

.pimm-products-hero p {
  margin: 0;
  color: #667085;
  max-width: 760px;
  line-height: 1.45;
}

.pimm-products-context-card {
  min-width: 210px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 13px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.pimm-products-context-label {
  font-size: 11px;
  color: #667085;
  font-weight: 700;
}

.pimm-products-context-card strong {
  color: #0f766e;
  font-size: 15px;
}

.pimm-products-context-card small {
  color: #667085;
}

.pimm-products-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pimm-products-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #d9e2ef;
  background: #ffffff;
  color: #667085;
}

.pimm-products-badge.ok {
  border-color: rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

.pimm-products-badge.warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.pimm-products-badge.muted {
  border-color: #d9e2ef;
  background: #f4f6f8;
  color: #667085;
}

.pimm-products-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.pimm-products-section-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #142033;
}

.pimm-products-section-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.pimm-products-safe-note {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid #d9e2ef;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pimm-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pimm-products-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 148px;
  padding: 15px;
  text-decoration: none;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  color: #142033;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.pimm-products-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.pimm-products-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pimm-products-card-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f766e;
  font-weight: 900;
}

.pimm-products-card-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
  font-weight: 900;
}

.pimm-products-card strong {
  font-size: 17px;
}

.pimm-products-card small {
  color: #667085;
  line-height: 1.4;
}

.pimm-products-open-pill {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid #d9e2ef;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.pimm-products-empty-panel,
.pimm-products-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
}

.pimm-products-empty-panel h2,
.pimm-products-placeholder h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.pimm-products-empty-panel p,
.pimm-products-placeholder p {
  margin: 0;
  color: #667085;
}

.pimm-products-empty-grid {
  min-width: 360px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pimm-products-empty-grid span {
  padding: 7px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 9px;
  background: #f4f6f8;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.pimm-products-back-btn {
  align-self: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.pimm-products-mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pimm-products-mini-nav a {
  padding: 8px 10px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  text-decoration: none;
  color: #142033;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.pimm-products-mini-nav a.active {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

@media (max-width: 1200px) {
  .pimm-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .pimm-products-hero,
  .pimm-products-section-head,
  .pimm-products-empty-panel,
  .pimm-products-placeholder {
    flex-direction: column;
  }

  .pimm-products-grid,
  .pimm-products-empty-grid {
    grid-template-columns: 1fr;
  }

  .pimm-products-context-card,
  .pimm-products-empty-grid {
    min-width: 0;
  }
}

.pimm-products-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  margin-top: 14px;
}

.pimm-products-detail-panel {
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.pimm-products-detail-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  font-weight: 900;
  margin-bottom: 7px;
}

.pimm-products-detail-panel h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #142033;
}

.pimm-products-detail-panel p {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.pimm-products-field-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pimm-products-field-preview span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #f4f6f8;
  color: #142033;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .pimm-products-detail-grid,
  .pimm-products-field-preview {
    grid-template-columns: 1fr;
  }
}

.pimm-products-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  margin-top: 14px;
}

.pimm-products-detail-panel {
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.pimm-products-detail-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  font-weight: 900;
  margin-bottom: 7px;
}

.pimm-products-detail-panel h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #142033;
}

.pimm-products-detail-panel p {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.pimm-products-field-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pimm-products-field-preview span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #f4f6f8;
  color: #142033;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .pimm-products-detail-grid,
  .pimm-products-field-preview {
    grid-template-columns: 1fr;
  }
}
