.home-research-frame {
  position:relative;
  overflow:hidden;
  margin-top:22px;
  border-radius:18px;
  background:#e6ede6;
}
.home-research {
  display:block;
  width:100%;
  height:clamp(125px, 23vw, 260px);
  object-fit:cover;
  object-position:center 55%;
}

.home-research-controls {
  display:flex;
  position:absolute;
  align-items:center;
  gap:10px;
  right:12px;
  bottom:12px;
  border-radius:10px;
  background:#17291fe0;
  color:#fff;
  padding:6px 8px 6px 12px;
  font-size:13px;
}
.home-research-controls button {
  font-size:12px;
  padding:4px 8px;
  border-radius:6px;
}
.home-products { margin-top:24px; }
.home-products h2 { margin-bottom:12px; }
.home-product-cards {
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:clamp(8px, 1.3vw, 16px);
}
.home-product-cards button {
  aspect-ratio:1;
  min-width:0;
  padding:6px;
  border:1px solid #d4e1d7;
  border-radius:16px;
  background:#f0f5ef;
  color:#274437;
  font-size:clamp(14px, 1.8vw, 22px);
  overflow-wrap:anywhere;
}
.home-product-cards button:is(:hover,:focus-visible) {
  background:#dbe9dd !important;
  border-color:#7ca085 !important;
  color:#1e3d2e !important;
}
.home-product-dialog {
  width:min(650px, calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  padding:20px;
  border:1px solid #cfdbd1;
  border-radius:16px;
  color:#213a30;
}
.home-product-dialog::backdrop { background:#15282077; }
.home-product-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.home-product-dialog h2 { margin:0; }
.home-product-dialog p { margin:14px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.home-product-dialog :is(img, video) {
  display:block;
  width:100%;
  max-height:55dvh;
  object-fit:contain;
  margin-top:12px;
  border-radius:8px;
  background:#f0f5ef;
}
#homeProductForm fieldset { padding:0; margin:0; min-width:0; border:0; }
#homeProductForm textarea { resize:vertical; }
.home-product-options { display:flex; flex-wrap:wrap; gap:14px; margin:12px 0; }
.home-product-options input { width:auto; margin-right:4px; }
#homeProductStatus { margin:10px 0 0; overflow-wrap:anywhere; }
@media (max-width:700px) {
  .home-product-cards { grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width:340px) {
  .home-product-cards { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
