/* 设置 · 型号库：紧凑表 + 编辑锁胶囊 */
#stab-models .prod-create-fold {
  margin-bottom: 10px;
  padding: 8px 12px;
}
#stab-models .prod-create-fold > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
}
#stab-models .prod-create-fold > summary::-webkit-details-marker { display: none; }
#stab-models .prod-create-body {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e2e8f0);
}
#stab-models .prod-form-grid,
#modal-product-edit .prod-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 10px;
}
#stab-models .prod-form-grid label,
#modal-product-edit .prod-form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
#stab-models .prod-form-grid input,
#modal-product-edit .prod-form-grid input {
  width: 100%;
  margin: 0;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 13px;
  box-sizing: border-box;
}
#stab-models .prod-span-2,
#modal-product-edit .prod-span-2 {
  grid-column: span 2;
}
#stab-models .prod-gift-cell,
#modal-product-edit .prod-gift-cell {
  display: flex;
  align-items: end;
  padding-bottom: 4px;
}
#stab-models .prod-toolbar {
  margin: 8px 0;
  gap: 8px;
  flex-wrap: wrap;
}
#stab-models .prod-table-wrap {
  max-height: min(62vh, 640px);
  overflow: auto;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 8px;
  background: var(--card, #fff);
}
#stab-models .prod-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
#stab-models .prod-table th,
#stab-models .prod-table td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#stab-models .prod-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1f4e79;
  color: #fff;
  font-weight: 700;
}
#stab-models .prod-table .prod-model { text-align: left; font-weight: 700; }
#stab-models .prod-table .prod-size { font-size: 11px; }
#stab-models .prod-table .prod-actions { white-space: nowrap; }
#stab-models .prod-table .prod-actions button {
  min-height: 26px;
  padding: 2px 6px;
  font-size: 11px;
  margin: 0 1px;
}
#stab-models .prod-gift-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
}
#modal-product-edit .prod-gift-cell {
  display: flex;
  align-items: end;
  padding-bottom: 4px;
}
@media (max-width: 900px) {
  #stab-models .prod-form-grid,
  #modal-product-edit .prod-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  #stab-models .prod-span-2,
  #modal-product-edit .prod-span-2 {
    grid-column: span 2;
  }
}
