
/* SmartScout Portal v1.1.0 — Product administration */
.products-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.products-toolbar h2{
  margin:4px 0 5px;
  font-size:1.4rem;
}
.products-toolbar p:last-child{
  margin:0;
  color:var(--muted);
  font-size:.82rem;
}
.product-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  color:var(--muted);
  font-size:.7rem;
}
.legacy-config-note{
  margin-top:14px;
  background:var(--amber-soft);
  color:var(--amber);
  padding:10px 12px;
  border-radius:10px;
  font-size:.72rem;
  line-height:1.45;
}
.product-modal{
  width:min(980px,calc(100vw - 24px));
}
.product-form{
  display:grid;
  gap:16px;
}
.product-form-section{
  border:1px solid var(--line);
  border-radius:16px;
  padding:17px;
  background:#fff;
}
.section-title{
  display:flex;
  gap:11px;
  align-items:flex-start;
  margin-bottom:15px;
}
.section-title>span{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#edf1ff;
  color:var(--primary);
  font-size:.72rem;
  font-weight:900;
}
.section-title h3{
  margin:0 0 3px;
  font-size:.92rem;
}
.section-title p{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
}
.form-grid-3{
  display:grid;
  grid-template-columns:1fr 1fr .7fr;
  gap:13px;
}
.toggle-row{
  display:flex;
  align-items:flex-start;
  gap:11px;
  background:#f8faff;
  border:1px solid #e6ebf6;
  border-radius:12px;
  padding:12px;
  margin-bottom:14px;
}
.toggle-row input{
  width:17px;
  height:17px;
  margin:2px 0 0;
  flex:0 0 auto;
}
.toggle-row span{
  display:block;
}
.toggle-row strong{
  display:block;
  color:var(--text);
  font-size:.78rem;
}
.toggle-row small{
  display:block;
  color:var(--muted);
  font-weight:500;
  margin-top:3px;
}
.url-preview{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:13px;
  background:#f6f8fc;
  border-radius:10px;
  padding:10px 12px;
}
.url-preview span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
}
.url-preview code{
  color:var(--primary);
}
.activity-note{
  background:#f6f8fc;
  color:var(--muted);
  border-radius:10px;
  padding:10px 12px;
  font-size:.7rem;
}
.product-notes{
  min-height:100px;
  resize:vertical;
}
.product-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  position:sticky;
  bottom:-22px;
  padding:14px 0 0;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 22%);
}
.badge-draft,.badge-setup,.badge-qa,.badge-ready,.badge-live,.badge-archived,.badge-legacy{
  text-transform:lowercase;
}
.badge-live,.badge-ready{
  background:var(--green-soft);
  color:var(--green);
}
.badge-draft,.badge-setup,.badge-qa,.badge-legacy{
  background:var(--amber-soft);
  color:var(--amber);
}
.badge-archived{
  background:#eef0f4;
  color:#6d7482;
}
@media(max-width:760px){
  .products-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .form-grid-3{
    grid-template-columns:1fr;
  }
  .product-form-actions{
    position:static;
  }
}
